@font-face {
  font-family: Newsreader;
  src: url("/assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
body:has(.identification-layout:not([hidden])) { display: flex; flex-direction: column; min-height: 100svh; }
body:has(.identification-layout:not([hidden])) #main { flex: 1; }
.identification-layout {
  width: min(100% - var(--gutter) * 2, 1120px); margin-inline: auto;
  padding-block: var(--space-24) var(--section-space);
  font: 400 16px/1.5 "Schibsted Grotesk", Inter, sans-serif;
}
.identification-content { min-width: 0; max-width: 536px; }
.identification-heading { display: flex; align-items: center; gap: var(--space-12); }
.identification-heading h1 {
  font: 600 44px/48px Newsreader, Georgia, serif; letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.identification-heading h1:focus { outline: none; }
.identification-icon { flex: 0 0 auto; color: var(--outline); }
.identification-layout #status { margin-top: var(--space-24); }
.identification-layout #scientific-name { margin-top: var(--space-8); font-style: italic; }
.identification-layout[data-state="matched"] #status { margin-top: var(--space-16); }
.identification-steps {
  display: grid; gap: var(--space-20); margin: var(--space-32) 0 0; padding: 0; list-style: none;
}
.identification-steps li { display: flex; align-items: center; gap: var(--space-12); font-size: 17px; }
.identification-steps li[data-stage="current"] { font-weight: 650; color: var(--forest); }
.step-marker {
  position: relative; width: 24px; height: 24px; flex: 0 0 auto;
  border: 1.5px solid var(--outline); border-radius: 50%;
}
[data-stage="done"] .step-marker { background: var(--forest); border-color: var(--forest); }
[data-stage="done"] .step-marker::after {
  content: ""; position: absolute; inset: 5px 7px 7px 7px;
  border: solid var(--cream); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
[data-stage="current"] .step-marker { border-width: 2px; border-color: var(--forest); box-shadow: inset 0 0 0 4px var(--accent); }
[data-stage="pending"] .step-marker { border-color: var(--border); }
.identification-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-16);
  margin-top: var(--space-24);
}
[data-state="loading"] .identification-links .primary {
  min-height: 44px; padding-inline: 0; background: transparent; color: var(--forest);
  text-decoration: underline; text-underline-offset: .24em;
}
.identification-photo {
  aspect-ratio: 4 / 3; margin-top: var(--space-24); overflow: hidden;
  background: var(--light); border-radius: 20px;
}
.identification-photo img { width: 100%; height: 100%; object-fit: contain; }
.identification-content > section { margin-top: var(--space-24); padding-top: var(--space-16); border-top: 1px solid var(--border); }
.identification-content h2, .identification-audio h2 {
  margin-bottom: var(--space-12); font: 600 26px/32px Newsreader, Georgia, serif; letter-spacing: -.02em;
}
.matches { list-style: none; padding: 0; margin: 0; }
.matches li { padding-block: var(--space-8); }
.matches i { display: block; font-size: var(--text-small); }
.match-reference { display: flex; align-items: center; gap: var(--space-16); }
.match-reference img { width: 68px; height: 64px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; }
.match-reference figcaption { font-size: var(--text-small); line-height: 1.5; }
@media (min-width: 1024px) {
  .identification-layout:is([data-photo], [data-sound]) {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 48px;
  }
  .identification-photo { margin-top: 0; position: sticky; top: calc(var(--header-height) + var(--space-24)); }
}
@media (max-width: 600px) {
  .identification-heading h1 { font-size: 34px; line-height: 38px; }
  .identification-icon { width: 28px; height: 28px; }
  .identification-steps { gap: var(--space-12); margin-top: var(--space-24); }
}
