/* What's Making That Noise? — field guide meets audio app.
   Night band (dark) holds the listening tools; paper (light) holds the reading. */
:root {
  --ink: #161b29;
  --ink-2: #4a5367;
  --ink-3: #6b7284;
  --paper: #fbfaf7;
  --paper-2: #f3f1eb;
  --card: #ffffff;
  --line: #e4e0d6;
  --link: #1f4ea3;
  --ochre: #8a5300;
  --night: #0a0e1a;
  --night-2: #111829;
  --night-3: #1a2340;
  --night-line: rgba(196, 210, 255, .1);
  --night-text: #eef1f8;
  --night-muted: #a9b3cb;
  --moon: #ffcf5c;
  --moon-2: #ffe29a;
  --moon-ink: #1a1405;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(22, 27, 41, .06), 0 6px 20px -8px rgba(22, 27, 41, .18);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── base ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* height:auto keeps every photo at its own aspect ratio when CSS narrows it (width/height attrs only reserve space) */
img { max-width: 100%; height: auto; }
svg { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 20; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 2px; }
.prose :focus-visible, .grid-sec :focus-visible { outline-color: var(--link); }
[hidden] { display: none !important; }

/* ── header ───────────────────────────────────────────────────────── */
.top { background: var(--night); border-bottom: 1px solid var(--night-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-text); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; padding: 10px 0; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 19px; }
.topnav { display: flex; gap: 2px; }
.topnav a { color: var(--night-muted); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.topnav a:hover { color: var(--moon-2); background: rgba(255, 255, 255, .05); }

/* ── night band ───────────────────────────────────────────────────── */
.night {
  background:
    radial-gradient(900px 420px at 88% -12%, rgba(66, 92, 170, .38) 0%, transparent 62%),
    radial-gradient(600px 300px at 0% 110%, rgba(255, 207, 92, .05) 0%, transparent 70%),
    var(--night);
  color: var(--night-text); padding: 22px 0 40px;
}
.night a { color: var(--moon-2); }
.night h1 { font-family: var(--serif); font-size: clamp(32px, 5.2vw, 54px); line-height: 1.06; letter-spacing: -0.015em; margin: 10px 0 14px; font-weight: 700; max-width: 26ch; text-wrap: balance; }
.night .lede { color: #d3d9e8; font-size: clamp(17px, 1.7vw, 19.5px); line-height: 1.6; max-width: 68ch; margin: 0 0 26px; text-wrap: pretty; }
.crumbs { font-size: 13.5px; color: var(--night-muted); }
.crumbs a { color: var(--night-muted); }
.prose .crumbs, .prose .crumbs a { color: var(--ink-2); }
.hint { color: var(--night-muted); font-size: 15px; margin: 22px 0 0; max-width: 75ch; }
.hero { padding: 48px 0 52px; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); max-width: 14ch; letter-spacing: -0.025em; }
.hero .lede { max-width: 60ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 36px; }
.btn, .btn-ghost { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; border: 1.5px solid var(--moon); cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .15s, color .15s, transform .15s; }
.btn { background: var(--moon); color: var(--moon-ink) !important; }
.btn:hover { background: var(--moon-2); }
.btn-ghost { background: transparent; color: var(--moon-2) !important; border-color: rgba(255, 207, 92, .55); }
.btn-ghost:hover { background: rgba(255, 207, 92, .1); border-color: var(--moon); }

/* ── player ───────────────────────────────────────────────────────── */
.clips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.clips > * { min-width: 0; }
.clip { margin: 0; background: linear-gradient(180deg, #161f38 0%, var(--night-2) 100%); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 16px; color: var(--night-text); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.clip-head { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; }
.clip-animal { font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; color: var(--moon) !important; align-self: flex-start; }
.clip-animal:hover { text-decoration: underline; }
.clip-label { font-weight: 650; font-size: 16px; line-height: 1.35; text-wrap: balance; }
.clip-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.play { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--moon); color: var(--moon-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 0 rgba(255, 207, 92, .5), 0 6px 18px -6px rgba(255, 207, 92, .55); transition: transform .15s, background .15s; }
.play:hover { transform: scale(1.05); background: var(--moon-2); }
.play:active { transform: scale(.97); }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .i-play { margin-left: 2px; }
.play .i-pause, .clip.playing .play .i-play, .quiz-play.playing .i-play { display: none; }
.clip.playing .play .i-pause, .quiz-play.playing .i-pause { display: block; }
.clip.playing .play { animation: halo 2.2s ease-out infinite; }
.clip.loading .play::after, .mini-play.loading::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--moon); animation: spin .8s linear infinite; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(255, 207, 92, .45), 0 6px 18px -6px rgba(255, 207, 92, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 207, 92, 0), 0 6px 18px -6px rgba(255, 207, 92, .55); } }
@keyframes spin { to { transform: rotate(360deg); } }
.clip-big { padding: 20px; }
.clip-big .clip-label { font-size: 18.5px; }
.clip-big .play { width: 64px; height: 64px; }
.clip-big .play svg { width: 28px; height: 28px; }
.clip-big .wave { height: 56px; }
.wave { --p: 0%; position: relative; height: 44px; cursor: pointer; border-radius: 6px; touch-action: manipulation; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: rgba(169, 184, 222, .38); max-width: none; }
.wave:hover svg { fill: rgba(169, 184, 222, .5); }
.wave-prog { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wave .wave-prog svg { fill: var(--moon); }
.wave::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--p); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--moon-2); opacity: 0; transition: opacity .2s; }
.clip.playing .wave::after { opacity: 1; }
.clip-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font: 12.5px/1.45 var(--mono); color: var(--night-muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.clip-main { container-type: inline-size; }
.clip-where { font-family: var(--font); font-size: 13px; flex: 1 1 100%; min-width: 0; }
@container (min-width: 380px) { .clip-where { flex: 1 1 auto; text-align: right; } }
.clip-time { white-space: nowrap; }
.clip-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--night-line); font-size: 13.5px; color: var(--night-muted); }
.tog { position: relative; display: inline-flex; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tog > span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); color: var(--night-muted); font-weight: 600; transition: background .15s, color .15s, border-color .15s; user-select: none; }
.tog > span:hover { color: var(--night-text); border-color: rgba(196, 210, 255, .25); }
.tog svg, .dl svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tog input:checked + span { background: var(--moon); border-color: var(--moon); color: var(--moon-ink); }
.tog input:focus-visible + span { outline: 3px solid var(--moon); outline-offset: 2px; }
.vol { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 4px; }
.vol-l { font-weight: 600; }
.vol input { -webkit-appearance: none; appearance: none; width: 96px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--moon), var(--moon)) 0 / 90% 100% no-repeat, rgba(169, 184, 222, .25); cursor: pointer; margin: 0; }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--moon-2); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.vol input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--moon-2); border: 0; }
.vol input::-moz-range-progress { background: var(--moon); height: 4px; border-radius: 4px; }
.dl { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 10px; margin-left: auto; border-radius: 999px; color: var(--night-muted) !important; text-decoration: none; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.dl:hover { color: var(--night-text) !important; background: rgba(255, 255, 255, .05); }
.credit { font-size: 12px; line-height: 1.5; color: var(--night-muted); margin: 10px 0 0; }
.credit a { color: var(--night-muted) !important; }
.credit a:hover { color: var(--night-text) !important; }

/* ── compare grids (home featured, hubs, identifier) ──────────────── */
.compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 16px; align-items: start; }
.compare-col { min-width: 0; }
.compare-col h2 { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -0.005em; margin: 0 0 10px; }
.compare-col h2 a { text-decoration: none; }
.compare-col h2 a:hover { text-decoration: underline; }
.compare .clip-tools .vol { display: none; }
.compare .dl { margin-left: 0; }

/* home: featured clips with a photo header */
.hero .compare { align-items: stretch; }
.feat { display: flex; flex-direction: column; }
.feat .clip { flex: 1; }
.feat-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--night-3); }
.feat-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.feat-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 31, 56, 0) 70%, rgba(22, 31, 56, .55) 100%); }
.feat-media + .clip { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); margin-top: -1px; background: linear-gradient(180deg, #161f38 0%, var(--night-2) 100%); }

/* ── reading area ─────────────────────────────────────────────────── */
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; padding-top: 40px; padding-bottom: 64px; }
.prose-wrap.single { grid-template-columns: minmax(0, 760px); }
.prose-wrap > * { min-width: 0; }
.prose { max-width: 720px; font-size: 17.5px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.015em; line-height: 1.1; font-weight: 700; }
.prose h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 31px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin: 48px 0 12px; text-wrap: balance; }
.prose h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: var(--ochre); margin: 28px 0 4px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-3); }
.sci { font-weight: 400; color: var(--ink-2); font-size: .68em; font-style: italic; }
.alike { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.alike li { margin: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; line-height: 1.55; }
.sources { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--line); padding-left: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 650; cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > :not(summary) { margin: 0 0 16px; }
.park-inline, .park-note { font-size: 14.5px; color: var(--ink-2); background: var(--paper-2); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 32px; }
.hub-link a { font-weight: 700; }
.key { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.key th, .key td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.key tr:last-child td { border-bottom: 0; }
.key th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--paper-2); }
.key td:last-child { white-space: nowrap; font-weight: 700; }
.hub-sec .clip, .review .clip { margin: 14px 0; }
.help-box, .ad-slot { border: 2px dashed var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0; }
.credit-list li { font-size: 15px; }

/* sidebar */
.side { align-self: start; position: sticky; top: 20px; }
.side h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); margin: 0 0 6px; font-weight: 750; }
.side ul { list-style: none; padding: 4px 16px; margin: 0 0 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.side li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.side li:last-child { border-bottom: 0; }

/* ── animal page: photo, then player ──────────────────────────────── */
.animal-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 820px; }
.animal-top > * { min-width: 0; }
.animal-top.has-photo { max-width: none; }
.animal-top.has-photo .hero-photo { order: -1; }
@media (min-width: 900px) {
  .animal-top.has-photo { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); background: var(--night-3); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8); }
@media (max-width: 899px) { .hero-photo img { aspect-ratio: 16 / 10; } }
.photo-credit { display: block; font-size: 12px; line-height: 1.45; color: var(--night-muted); margin-top: 8px; }
.photo-credit a { color: var(--night-muted) !important; }
.extra-photo { margin: 28px 0; }
.extra-photo img { display: block; width: 100%; border-radius: var(--radius-sm); background: var(--paper-2); }
.extra-photo figcaption { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }
.extra-photo .photo-credit, .extra-photo .photo-credit a { color: var(--ink-2) !important; display: inline; font-size: 13px; }

/* facts: a field-guide spec sheet */
.facts-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 10px; margin: 48px 0 28px; background: var(--card); box-shadow: var(--shadow); }
.facts-box h2 { margin: 0 0 4px; font-size: 25px; }
.facts-box dl { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.fact { padding: 12px 0 14px; border-top: 1px solid var(--line); }
.fact dt { font-weight: 750; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ochre); margin-bottom: 3px; }
.fact dd { margin: 0; font-size: 16px; line-height: 1.5; }
.fact .cite { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.facts-note { font-size: 14px; color: var(--ink-2); margin: 4px 0 6px !important; }
@media (max-width: 600px) { .facts-box { padding: 18px 16px 6px; } .facts-box dl { grid-template-columns: 1fr; } }

/* range map */
.range { margin: 0 0 28px; padding: 20px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.range-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.range-summary { font-size: 16px; margin: 0 !important; flex: 1 1 260px; }
.range-map { display: block; width: 100%; max-width: 600px; height: auto; margin: 0 auto; }
.range-map .rm-states { fill: #ebe8e0; }
.range-map .rm-year { fill: #c9772c; }
.range-map .rm-summer { fill: #4f9a5a; }
.range-map .rm-winter { fill: #4867b8; }
.range-map .rm-lines { fill: none; stroke: #ffffff; stroke-width: 1; stroke-linejoin: round; }
.range figcaption { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.lg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-year i { background: #c9772c; } .lg-summer i { background: #4f9a5a; } .lg-winter i { background: #4867b8; }
.range-text { border-left: 3px solid var(--ochre); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 4px 18px 6px; margin: 0 0 28px; }

/* ── photo cards (home grid, A–Z) ─────────────────────────────────── */
.grid-sec { padding: 40px 0 0; }
.grid-sec h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 31px); font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px; }
.grid-note { font-size: 14px; color: var(--ink-2); margin: 20px 0 0; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #d6d1c4; }
.card a { text-decoration: none; color: var(--ink); }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card a:focus-visible { outline: none; }
.card a:focus-visible::after { outline: 3px solid var(--link); outline-offset: 2px; }
.card span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cards-wide .card strong::after { content: " →"; color: var(--ochre); }
.cards-wide { padding-bottom: 64px; }

.cards-photo, .az-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.card-photo, .az-card { display: grid; grid-template-areas: "media" "body"; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.card-media { grid-area: media; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #d9d4c7, #ebe7dd); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .5s ease; }
.card-photo:hover .card-media img, .az-card:hover .card-media img { transform: scale(1.04); }
.card-body, .az-body { grid-area: body; display: flex; flex-direction: column; gap: 2px; padding: 11px 14px 14px; min-width: 0; }
.card-body strong { font-size: 16.5px; line-height: 1.3; }
.card-body span, .az-call { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-play { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--night); color: var(--moon); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s, background .15s; }
.card-photo .mini-play, .az-card .mini-play { grid-area: media; align-self: end; justify-self: end; margin: 0 10px 10px 0; background: var(--moon); color: var(--moon-ink); box-shadow: 0 4px 14px -2px rgba(0, 0, 0, .45); }
.mini-play:hover { transform: scale(1.07); }
.mini-play svg { width: 18px; height: 18px; fill: currentColor; }
.mini-play .i-play { margin-left: 2px; }
.mini-play .i-pause, .mini-play.on .i-play { display: none; }
.mini-play.on .i-pause { display: block; }
.mini-play.on { background: #fff !important; color: var(--night) !important; }

/* ── identifier ───────────────────────────────────────────────────── */
.ident { background: rgba(255, 255, 255, .025); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 18px 18px 14px; margin-bottom: 8px; }
.ident fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.ident legend { font-weight: 750; margin-bottom: 8px; font-size: 12px; color: var(--night-muted); text-transform: uppercase; letter-spacing: .1em; padding: 0; }
.chip { position: relative; display: inline-block; margin: 0 4px 8px 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 15px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 15px; cursor: pointer; background: var(--night-2); transition: background .15s, border-color .15s; user-select: none; }
.chip span:hover { border-color: rgba(196, 210, 255, .3); }
.chip input:checked + span { background: var(--moon); color: var(--moon-ink); border-color: var(--moon); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--moon); outline-offset: 2px; }
.ident .btn-ghost { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.ident-count { color: var(--night-muted); margin: 18px 0 14px; }
.ident-card h2 { display: flex; align-items: center; gap: 12px; }
.ident-thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--night-line); }
.ident-lede { font-size: 14.5px; line-height: 1.55; color: var(--night-muted); margin: 10px 2px 0; }
.all-list, .az-list { columns: 2; column-gap: 32px; }
.all-list li, .az-list li { break-inside: avoid; }
.all-list > li:first-child, .az-list > li:first-child { margin-top: 0; }

/* ── /animal-sounds/ A–Z ──────────────────────────────────────────── */
.az-filters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; margin: 4px 0 8px; }
.az-flabel { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--night-muted); font-weight: 750; }
.az-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { font: inherit; font-size: 15px; min-height: 40px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-text); cursor: pointer; }
.fchip:hover { border-color: rgba(196, 210, 255, .3); }
.fchip span { color: var(--night-muted); font-size: 13px; font-family: var(--mono); margin-left: 2px; }
.fchip[aria-pressed="true"] { background: var(--moon); border-color: var(--moon); color: var(--moon-ink); font-weight: 700; }
.fchip[aria-pressed="true"] span { color: #4a3b10; }
.az-count { color: var(--night-muted); margin: 8px 0 16px; font-size: 15px; }
.az-grid { list-style: none; padding: 0; margin: 0; display: grid; }
.az-card { position: relative; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; transition: border-color .2s, transform .2s; }
.az-card:hover { border-color: rgba(255, 207, 92, .45); }
.az-card[hidden] { display: none; }
.az-card .card-media { background: linear-gradient(135deg, var(--night-3), var(--night-2)); }
.az-name { color: var(--night-text) !important; font-weight: 700; text-decoration: none; font-size: 16.5px; line-height: 1.3; }
.az-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.az-call { font-size: 13.5px; line-height: 1.45; color: var(--night-muted); }

/* ── quiz ─────────────────────────────────────────────────────────── */
.quiz { background: linear-gradient(180deg, #161f38 0%, var(--night-2) 100%); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 20px; max-width: 880px; }
.quiz-start { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.quiz-note, .quiz-sub { color: var(--night-muted); font-size: 14px; }
.quiz-head { display: flex; justify-content: space-between; color: var(--night-muted); font: 13px var(--mono); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.quiz-player { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.quiz-play { width: 68px; height: 68px; }
.quiz-play svg { width: 28px; height: 28px; }
.quiz-play.playing { animation: halo 2.2s ease-out infinite; }
.quiz-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .quiz-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quiz-choice { font: inherit; display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 10px; border-radius: 14px; border: 2px solid var(--night-line); background: var(--night); color: var(--night-text); cursor: pointer; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.3; transition: border-color .15s, transform .15s; }
.quiz-choice img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.quiz-choice:hover:not(:disabled) { border-color: var(--moon); transform: translateY(-2px); }
.quiz-choice:disabled { cursor: default; opacity: .55; }
.quiz-choice.is-right { border-color: #5ec27a; opacity: 1; }
.quiz-choice.is-wrong { border-color: #e0615a; opacity: 1; }
.quiz-reveal { margin: 16px 0 12px; }
.quiz-reveal p { margin: 0 0 6px; }
.res-right { color: #8be0a2; font-weight: 700; }
.res-wrong { color: #ffb0aa; font-weight: 700; }
.quiz-final { font-family: var(--serif); font-size: 34px; font-weight: 700; margin: 0 0 4px; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-challenge { background: var(--night-3); border-radius: 10px; padding: 8px 12px; display: inline-block; }

/* ── footer ───────────────────────────────────────────────────────── */
.foot { background: var(--night); color: var(--night-muted); padding: 48px 0 32px; font-size: 14.5px; border-top: 1px solid var(--night-line); }
.foot a { color: #cfd6e6; text-decoration-color: rgba(207, 214, 230, .35); }
.foot a:hover { color: var(--moon-2); }
.foot h2 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--night-muted); margin: 0 0 10px; font-weight: 750; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 3px 0; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; margin-bottom: 28px; }
.foot .park-note { background: var(--night-2); color: var(--night-muted); border: 1px solid var(--night-line); }
.legal { font-size: 13px; line-height: 1.7; }

/* ── review (unlisted) ────────────────────────────────────────────── */
.review h1 { margin-top: 24px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.review-meta { font-size: 13px; border-collapse: collapse; width: 100%; }
.review-meta th { text-align: left; vertical-align: top; padding: 3px 8px 3px 0; color: var(--ink-2); white-space: nowrap; }
.review-meta td { padding: 3px 0; word-break: break-word; }
.flag { color: #b3261e; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .prose-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; margin-top: 40px; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .top-in { display: block; min-height: 0; }
  .brand { display: inline-flex; padding: 12px 0 4px; }
  .topnav { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px 6px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { padding: 10px 9px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .night { padding: 16px 0 32px; }
  .hero { padding: 32px 0 36px; }
  .hero-cta { margin-bottom: 28px; }
  .hero-cta .btn, .hero-cta .btn-ghost { flex: 1 1 auto; justify-content: center; }
  .prose { font-size: 17px; }
  .prose-wrap { padding-top: 28px; padding-bottom: 48px; }
  .clip { padding: 14px; }
  .clip-big { padding: 16px; }
  .clip-big .play { width: 58px; height: 58px; }
  .tog > span { min-height: 40px; }
  .vol input { width: 84px; }
  .cards-photo, .az-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body, .az-body { padding: 9px 11px 12px; }
  .card-body strong, .az-name { font-size: 15.5px; }
  .card-body span, .az-call { font-size: 13px; }
  .mini-play { width: 42px; height: 42px; }
  .all-list, .az-list { columns: 1; }
  .az-filters { grid-template-columns: 1fr; gap: 6px; }
  .key { display: block; overflow-x: auto; font-size: 14.5px; }
  .key td:last-child { white-space: normal; }
  .range { padding: 16px 14px 14px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .ident { padding: 14px 12px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .clip.loading .play::after, .mini-play.loading::after { border-color: rgba(255, 207, 92, .6); }
  .card-photo:hover .card-media img, .az-card:hover .card-media img { transform: none; }
}
