@font-face{font-family:'Fredoka';font-weight:700;font-display:swap;src:url('/fonts/Fredoka-700.woff') format('woff')}
@font-face{font-family:'Fredoka';font-weight:600;font-display:swap;src:url('/fonts/Fredoka-600.woff') format('woff')}
@font-face{font-family:'Nunito';size-adjust:103.31%;font-weight:400;font-display:swap;src:url('/fonts/Nunito-400.woff') format('woff')}@font-face{font-family:'Nunito';size-adjust:103.31%;font-style:italic;font-weight:400;font-display:swap;src:url('/fonts/Nunito-Italic-400.woff') format('woff')}@font-face{font-family:'Nunito';size-adjust:103.31%;font-style:italic;font-weight:700;font-display:swap;src:url('/fonts/Nunito-Italic-700.woff') format('woff')}
@font-face{font-family:'Nunito';size-adjust:103.31%;font-weight:700;font-display:swap;src:url('/fonts/Nunito-700.woff') format('woff')}
@font-face{font-family:'Fredoka';font-weight:500;font-display:swap;src:url('/fonts/Fredoka-500.woff') format('woff')}
@font-face{font-family:'Nunito';size-adjust:103.31%;font-weight:800;font-display:swap;src:url('/fonts/Nunito-800.woff') format('woff')}
:root{--bg:#F2E8CF;--surface:#fff;--surface-alt:#E7D9B4;--ink:#2E2A25;--muted:#6B6155;--border:#DDCBA0;--green:#386641;--green-dark:#2C5134;--sage:#6A994E;--gold:#EBB93C;--gold-deep:#7A5205;--display:'Fredoka','Trebuchet MS',system-ui,sans-serif;--body:'Nunito',system-ui,-apple-system,sans-serif;--shadow:0 14px 34px rgba(46,42,37,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:var(--body);color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
[id]{scroll-margin-top:76px}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.14;margin:0}p{margin:0}a{color:var(--green)}
.wrap{max-width:920px;margin:0 auto;padding:0 22px}
/* The top bar sits in the same place on every page of the site (home,
   community and cams use a 1080px/28px shell), whatever width the page
   content below runs at. */
header .wrap{max-width:1080px;padding:0 28px}
/* The Bird Guide index is a grid page like home, cams and community, so it
   runs at their 1080px/28px too. Species pages keep the narrower 920px/22px
   reading column — a page of prose, a map and a card does not want to be as
   wide as a card grid. (Cat asked why the Guide's margins looked different.) */
main.wrap.guide{max-width:1080px;padding:0 28px}
header{position:fixed;top:0;left:0;right:0;z-index:30;background:transparent;border-bottom:1px solid transparent;transition:background .28s ease,border-color .28s ease}
header.scrolled{background:rgba(242,232,207,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--border)}
.nav{display:flex;align-items:center;justify-content:space-between;height:80px}
.wordmark{font-family:var(--display);font-weight:700;color:#fff;letter-spacing:-.3px;text-decoration:none;font-size:24px;transition:color .28s ease}
header.scrolled .wordmark{color:var(--green)}
.nav>nav{display:flex;align-items:center;gap:24px}
.nav-link{color:#fff;text-decoration:none;font-family:var(--body);font-weight:600;font-size:15px;white-space:nowrap;transition:color .28s ease}
header.scrolled .nav-link{color:var(--green)}
.lbl-short{display:none}
/* The sitewide nav pill: 16px / 14px 26px, dropping to 14px / 10px 16px under
   760px and hidden under 540px. These exact numbers are also in index.html,
   community.html, cams/index.html, trips/index.html and daily/index.html. The
   Guide ran 15px / 11px 20px and shrank to 13.5px / 9px 15px, which is what made
   the same top-right button change size page to page (Cat, 2026-08-14). */
.btn{display:inline-block;font-family:var(--body);font-weight:800;font-size:16px;line-height:1.6;background:#fff;color:var(--green);text-decoration:none;padding:14px 26px;border-radius:999px;white-space:nowrap;transition:background .28s ease,color .28s ease}
header.scrolled .nav .btn{background:var(--green);color:#fff}
@media(max-width:760px){.nav>nav{gap:14px}.nav .btn{font-size:14px;padding:10px 16px}}
@media(max-width:540px){.nav .btn{display:none}}
@media(max-width:600px){.nav{height:64px}.wordmark{font-size:20px}.nav-link{font-size:14px}.lbl-full{display:none}.lbl-short{display:inline}}
/* Narrow screens: the inline nav collapses into an obvious Menu dropdown. */
.mnav{display:none;position:relative}
.mnav summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:7px;font-family:var(--display);font-weight:700;font-size:15px;color:#fff;background:rgba(0,0,0,.22);border:1.5px solid rgba(255,255,255,.55);border-radius:999px;padding:8px 16px;transition:color .28s ease,border-color .28s ease,background .28s ease}
.mnav summary::-webkit-details-marker{display:none}
.mnav summary::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor;transition:transform .2s ease}
.mnav[open] summary::after{transform:rotate(180deg)}
header.scrolled .mnav summary{color:var(--green);border-color:var(--green);background:transparent}
.mnav .navdrop{position:absolute;right:0;top:calc(100% + 10px);min-width:220px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 40px rgba(46,42,37,.22);padding:8px;z-index:60}
.mnav .navdrop a{display:block;margin:0;padding:12px 14px;border-radius:9px;color:var(--green-dark);background:none;text-decoration:none;font-family:var(--body);font-weight:600;font-size:15.5px;white-space:nowrap}
.mnav .navdrop a:hover{background:var(--surface-alt)}
@media(max-width:640px){.nav>nav{display:none}.mnav{display:block}}
.phero{position:relative;margin:0;min-height:250px;display:flex;align-items:flex-end;overflow:hidden;background:linear-gradient(150deg,#2C5134,#386641)}
.phero.has-chrome{background-image:url(/assets/video/species-hero-poster.jpg),linear-gradient(150deg,#2C5134,#386641);background-size:cover;background-position:center}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:0;transition:opacity .9s ease}
.hero-video.ready{opacity:1}
.phero::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(30,45,30,.22) 0%,rgba(30,45,30,.42) 55%,rgba(22,36,24,.78) 100%)}
.phero-inner{position:relative;z-index:2;width:100%;padding-top:92px;padding-bottom:20px}
/* A hub that runs its content at the grid width takes the hero with it, so the
   h1 shares a left edge with the cards below (the same fix the Bird Guide index
   needed, Cat 2026-08-16). Species pages keep the 920px reading column. */
.phero.wide .wrap.phero-inner{max-width:1080px;padding-left:28px;padding-right:28px}
@media (prefers-reduced-motion: reduce){.hero-video{transition:none}}
.crumbs{font-size:13px;color:var(--muted);margin:18px 0 6px}.crumbs a{color:var(--muted)}
.phero .crumbs{color:rgba(255,255,255,.78);margin:0 0 6px}.phero .crumbs a{color:rgba(255,255,255,.78)}
.backlink{display:inline-flex;align-items:center;gap:5px;color:rgba(255,255,255,.85);text-decoration:none;font-family:var(--display);font-weight:600;font-size:13.5px;margin-bottom:10px}
.backlink:hover{color:#fff}
.backlink svg{width:15px;height:15px}
.totop{position:fixed;right:18px;bottom:18px;z-index:40;width:44px;height:44px;border-radius:50%;border:none;background:var(--green);color:#fff;box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .25s ease}
.totop.show{opacity:1;pointer-events:auto}
.totop:hover{background:var(--green-dark)}
.totop svg{width:20px;height:20px}
h1{font-size:clamp(28px,4.5vw,40px);color:var(--green-dark)}
.phero h1{color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.sci{font-style:italic;color:var(--muted);font-size:18px;margin-top:2px}
.phero .sci{color:#EFE7D2;text-shadow:0 1px 6px rgba(0,0,0,.35)}
main.wrap{padding-top:10px}
.camgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.camcard{margin:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.camcard figcaption{padding:10px 14px;display:flex;flex-direction:column;gap:2px}
.camcard figcaption span{color:var(--muted);font-size:13px}
.camthumb{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;cursor:pointer;background:#1e1b17}
.camthumb img{width:100%;height:100%;object-fit:cover;display:block}
.camplay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.camplay svg{width:52px;height:52px;fill:#fff;background:rgba(0,0,0,.55);border-radius:50%;padding:12px;transition:transform .15s}
.camthumb:hover .camplay svg{transform:scale(1.08)}
.cambadge{position:absolute;top:10px;left:10px;font:700 11px/1 var(--display);letter-spacing:.4px;color:#fff;padding:5px 8px;border-radius:6px}
.cambadge.live{background:#C0392B}
.cambadge.seasonal{background:rgba(0,0,0,.6)}
.camframe{aspect-ratio:16/9}
.camframe iframe{width:100%;height:100%;border:0;display:block}
.mcal{max-width:430px;margin-bottom:8px}
.mcal svg{width:100%;height:auto;display:block}
/* Card-style chip furniture: the IUCN disc and the habitat flag, exactly
   as the collector card draws them. .hdia is the pre-2026-08-15 diamond, kept
   as the fallback for a habitat key with no flag sprite. */
.sdisc{width:23px;height:23px;border-radius:50%;color:#fff;font-family:var(--display);font-weight:600;font-size:10px;display:inline-flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.92);flex:none}
.hdia{width:21px;height:21px;border-radius:5px;transform:rotate(45deg);display:inline-flex;align-items:center;justify-content:center;flex:none;margin:0 2px}
.hdia svg{transform:rotate(-45deg);width:12px;height:12px;color:#fff}
.hflag{width:21px;height:21px;object-fit:contain;flex:none;margin:0 2px;vertical-align:-5px}
.lead{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px 20px;margin:18px 0;box-shadow:var(--shadow);font-size:16.5px}
section{margin:36px 0}
main>section+section{border-top:1px solid var(--border);padding-top:30px}
main>section.cta{border-top:none;padding-top:32px}
main>section.banner{border-top:none;padding-top:0}
h2{font-size:22px;color:var(--green-dark);margin:0 0 14px}
.gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px}
.gallery figure{flex:0 0 min(86%,520px);scroll-snap-align:start;margin:0;background:var(--surface);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.gallery img{width:100%;height:340px;object-fit:cover;display:block;background:var(--surface-alt)}
.gallery figcaption{font-size:12px;color:var(--muted);padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.capreport{background:none;border:none;color:var(--muted);font-family:var(--body);font-weight:700;font-size:11.5px;text-decoration:underline;cursor:pointer;padding:0;flex:none}
.capreport:hover{color:var(--green)}
.capreport[disabled]{text-decoration:none;cursor:default}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-weight:700;font-size:12.5px;border-radius:999px;padding:5px 13px;color:var(--gold-deep);background:var(--surface-alt)}
.chip.iucn{color:#fff;background:var(--sage)}.chip.iucn.threat{background:#B4562E}
.chip.tier{color:#fff;background:var(--green)}.chip.tier.legendary{background:var(--gold-deep)}
.audio-row{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 14px;margin-bottom:10px}
.audio-row audio{width:100%}.audio-row .cr{font-size:12px;color:var(--muted)}
/* Full column width, restored 2026-08-19 at Cat's request. It was capped at
   480px on 18 August to stop three recordings giving up ~735px of page; she
   wants the picture readable over that, and the sonogram is the point of the
   section. Aspect ratio is held by the width/height attributes either way. */
/* The sonogram is the shape of the call: time across, pitch up, loudness as
   brightness. The playhead is what makes it click — without a line moving with
   the sound it reads as decoration rather than as the same thing you are hearing. */
.sono{position:relative;margin:0 0 9px;line-height:0;border-radius:9px;overflow:hidden;background:#FFF;border:1px solid var(--border)}
.sono img{width:100%;height:auto;display:block}
/* Two parts: a wash over what has played, which is what the eye tracks, and a
   solid bar at the leading edge with a cream halo so it stays readable where it
   crosses a dark note. A hairline alone is not findable on a busy picture. */
.sono .pl{position:absolute;top:0;bottom:0;left:0;width:0;background:rgba(188,71,73,.16);border-right:1px solid rgba(188,71,73,.35);pointer-events:none}
.sono .ph{position:absolute;top:0;bottom:0;width:4px;margin-left:-2px;background:#BC4749;box-shadow:0 0 0 1.5px rgba(253,237,217,.95),0 0 10px rgba(188,71,73,.55);border-radius:2px;left:0;pointer-events:none}
.sono .ph::before,.sono .ph::after{content:"";position:absolute;left:50%;transform:translateX(-50%);border-left:6px solid transparent;border-right:6px solid transparent}
.sono .ph::before{top:0;border-top:7px solid #BC4749}
.sono .ph::after{bottom:0;border-bottom:7px solid #BC4749}
@media (prefers-reduced-motion:reduce){.sono .ph{transition:none}}
.cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px 16px;font-size:15px}
.cols a{text-decoration:none}
.faq dt{font-family:var(--display);font-weight:600;color:var(--green-dark);margin-top:14px}
.faq dd{margin:4px 0 0}
.src{font-size:12.5px;color:var(--muted);margin-top:8px}
.linklist{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.linklist a{display:flex;flex-direction:column;justify-content:center;min-height:66px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 14px;text-decoration:none;color:var(--green-dark);font-weight:700;box-shadow:var(--shadow)}
.linklist .sub{display:block;font-weight:400;font-size:12.5px;color:var(--muted);font-style:italic}
.cta{background:linear-gradient(150deg,#2C5134,#386641);color:#fff;border-radius:20px;padding:28px 24px;margin:44px 0 36px;text-align:center;box-shadow:var(--shadow)}
.cta p{margin:8px auto 16px}
.cta h2{color:#fff}.cta p{color:rgba(255,255,255,.9);margin:8px auto 16px;max-width:560px}
.cta a{display:inline-block;background:var(--gold);color:#2E2A25;font-family:var(--display);font-weight:700;text-decoration:none;border-radius:999px;padding:12px 24px}
.banner{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;margin:18px 0;box-shadow:var(--shadow)}
.banner video{width:100%;max-height:480px;display:block;background:#1F281F}
.banner .cr{font-size:12px;color:var(--muted);padding:7px 14px}
.vs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
@media(max-width:640px){.vs{grid-template-columns:1fr}}
.vs .side{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.vs .side img{width:100%;height:260px;object-fit:cover;display:block;background:var(--surface-alt)}
.vs .side .inner{padding:14px 16px}
.vs .side h2{font-size:19px;margin:0}
.vs .side h2 a{text-decoration:none;color:var(--green-dark)}
.vs .side .sci{font-size:14px;margin:0 0 8px}
.vs .side .tip{font-size:14.5px;margin-top:10px}
.vs .side .cr{font-size:11.5px;color:var(--muted);padding:5px 16px 0;margin:0 -16px;border-top:1px dashed var(--border)}
footer{position:relative;overflow:hidden;background:#1F281F;color:#fff;padding:92px 0;margin-top:44px}
footer.plain{padding:40px 0}
footer.plain::after{content:none}
footer .bg-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
footer::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(15,20,15,.16) 0%,rgba(15,20,15,.55) 100%)}
.foot{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.foot .wordmark{color:#fff}.foot nav a{color:#EAF1E4;text-decoration:none;margin-left:22px;font-weight:700}
.foot .copy{color:#E3ECDD;font-size:13px;width:100%}
.note{font-size:13.5px;color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:6px}
.chip svg{width:15px;height:15px;flex:none}
.linklist a.pic{flex-direction:row;align-items:center;justify-content:flex-start;gap:11px}
.linklist .th{width:46px;height:46px;border-radius:10px;object-fit:cover;background:var(--surface-alt);flex:none}
.linklist .txt{min-width:0}
.tipbox{background:#EEF3E8;border-left:3px solid var(--green);border-radius:12px;padding:14px 16px}
.jumpnav{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.jumpnav a{font-family:var(--display);font-weight:600;font-size:12.5px;color:var(--green);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:5px 12px;text-decoration:none}
.jumpnav a:hover{background:var(--surface-alt)}
.confgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.confcard{display:block;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden;text-decoration:none;box-shadow:var(--shadow);transition:transform .12s ease,box-shadow .12s ease}
.confcard:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(46,42,37,.14)}
.confcard img{width:100%;height:210px;object-fit:cover;display:block;background:var(--surface-alt)}
.confcard .inner{display:block;padding:12px 14px 14px}
.confcard b{display:block;font-family:var(--display);font-weight:600;font-size:17px;color:var(--green-dark)}
.confcard i{display:block;font-size:13.5px;color:var(--muted);margin-bottom:6px}
.confcard .tip{display:block;font-size:14px;color:var(--muted);line-height:1.5}
.rangemap{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:10px;box-shadow:var(--shadow);touch-action:pan-y;overflow:hidden}
.rangemap svg{display:block}
.rangemap.zoomed{touch-action:none;cursor:grab}
.rangemap.zoomed:active{cursor:grabbing}
.mapreset{position:absolute;right:10px;bottom:10px;display:none;padding:5px 11px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--ink);font:600 12px/1 inherit;cursor:pointer;box-shadow:var(--shadow)}
.rangemap.zoomed .mapreset{display:block}
.rangemap svg{width:100%;height:auto;display:block}
/* Range map in the page's own greens (Cat, 2026-08-12: back from the card's
   charcoal palette): parchment continents, green range, sage vagrants. */
.mp{fill:#E4D5AC;stroke:#fff;stroke-width:.5}
.mp.in{fill:var(--green)}
.mp.vg{fill:var(--sage)}
.maplegend{font-size:12.5px;color:var(--muted);display:flex;gap:16px;padding:8px 4px 0;margin-bottom:12px}
.maplegend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.gallery figure{position:relative;cursor:zoom-in}
.zoomtag{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:50%;background:rgba(31,40,31,.55);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none}
.zoomtag svg{width:17px;height:17px}
.lb{position:fixed;inset:0;z-index:60;background:rgba(20,26,20,.92);display:none;flex-direction:column;align-items:center;justify-content:center;padding:24px}
.lb.open{display:flex}
.lb .iwrap{overflow:auto;max-width:94vw;max-height:76vh;border-radius:10px;-webkit-overflow-scrolling:touch}
.lb img{display:block;max-width:94vw;max-height:76vh;cursor:zoom-in}
.lb.zoomed img{max-width:none;max-height:none;cursor:zoom-out}
.lb .cap{color:#EAF1E4;font-size:13px;margin-top:12px;text-align:center;max-width:82ch}
.lbbtn{position:fixed;z-index:61;background:rgba(255,255,255,.14);border:none;color:#fff;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lbbtn svg{width:22px;height:22px}
.lbbtn:hover{background:rgba(255,255,255,.26)}
.lbreport{margin-top:10px;background:transparent;border:1px solid rgba(255,255,255,.4);color:#EAF1E4;border-radius:999px;padding:7px 16px;font-family:var(--body);font-weight:700;font-size:12.5px;cursor:pointer}
.lbreport:hover{background:rgba(255,255,255,.12)}
.lbreport[disabled]{opacity:.7;cursor:default}
.lb .x{top:16px;right:16px}
.lb .pv{left:12px;top:50%;transform:translateY(-50%)}
.lb .nx{right:12px;top:50%;transform:translateY(-50%)}
@media(max-width:600px){.lb .pv,.lb .nx{top:auto;bottom:14px;transform:none}.lb .pv{left:14px}.lb .nx{right:14px}}
@font-face{font-family:'NothingYouCouldDo';font-weight:400;font-display:swap;src:url('/fonts/NothingYouCouldDo.ttf') format('truetype')}
/* Species cards: real-card presence — paper shadow at rest, lift on hover. */
.scard{display:block;line-height:0}
.scard svg{width:100%;height:auto;border-radius:12px;filter:drop-shadow(0 1px 2px rgba(46,42,37,.18)) drop-shadow(0 6px 14px rgba(46,42,37,.16))}
a.scard{text-decoration:none;transition:transform .18s ease}
@media(hover:hover){
a.scard:hover{transform:translateY(-6px) scale(1.045)}
a.scard:hover svg{filter:drop-shadow(0 2px 3px rgba(46,42,37,.2)) drop-shadow(0 16px 30px rgba(46,42,37,.28))}
}
a.scard:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-radius:12px;transform:translateY(-6px) scale(1.045)}
@media (prefers-reduced-motion: reduce){a.scard,a.scard:hover{transform:none;transition:none}}
/* The card grid lives in the shared sheet rather than the Bird Guide index's own
   <style>, because the family and order hubs now show cards too (Cat, 2026-08-16:
   "each browse by family/order subpage shows bird cards rather than photos").
   The folder-specific skin — kraft background, ink-on-brown loading text — stays
   on the index, where folders exist. */
.cardgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:26px 20px;padding:18px}
.cardgrid[data-frag]>i{display:block;aspect-ratio:750/1050;border-radius:12px;background:var(--surface-alt)}
@media(max-width:480px){.cardgrid{grid-template-columns:repeat(2,1fr);gap:18px 12px;padding:14px}}
.floading{color:var(--muted);font-weight:700;padding:18px;text-align:center}
.fretry{font-family:var(--body);font-weight:700;font-size:13.5px;color:var(--green);background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:5px 14px;cursor:pointer}
.cardgrid a.scard{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease,filter .18s ease}
.cardgrid a.scard.in{opacity:1;transform:none}
@media(hover:hover){.cardgrid a.scard.in:hover{transform:translateY(-6px) scale(1.045)}}
@media (prefers-reduced-motion: reduce){.cardgrid a.scard{opacity:1;transform:none;transition:none}.cardgrid a.scard.in:hover{transform:none}}
/* Hub card sections: a family heading over its grid, the grid on the same paper
   as the rest of the page. On an order hub there is one of these per family. */
.famsec{margin-top:26px}
.famsec h2{font-size:clamp(19px,2.4vw,24px);color:var(--green-dark)}
.famsec h2 a{color:inherit;text-decoration:none}
.famsec h2 a:hover{text-decoration:underline;text-underline-offset:3px}
.famsec .fmeta{color:var(--muted);font-size:13.5px;margin-top:2px}
.famsec .cardgrid{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);margin-top:10px;min-height:120px}
main>section.famsec+section.famsec{border-top:none;padding-top:0}
/* Static family/order/species index — the crawlable path into the guide. Lives in
   the shared sheet because the Bird Guide index, the family hubs and the order
   hubs all carry one. Multi-column so 250-odd names read as a compact block
   rather than a very long page; .wide is the species variant, which carries a
   scientific name alongside each link and needs the room. */
.taxa-index{margin-top:30px;border-top:1px solid var(--border);padding-top:6px}
.taxa-list{list-style:none;margin:0;padding:0;columns:3;column-gap:26px}
.taxa-list li{break-inside:avoid;padding:3px 0;font-size:14px}
.taxa-list a{color:var(--ink);text-decoration:none;border-bottom:1px solid transparent}
.taxa-list a:hover{border-bottom-color:currentColor}
.taxa-n{color:var(--muted);font-size:12.5px}
.taxa-list.wide{columns:2}
@media(max-width:820px){.taxa-list{columns:2}.taxa-list.wide{columns:1}}
@media(max-width:520px){.taxa-list{columns:1}}
/* The card tucked in the species-page hero, with its magnifier. */
.pherorow{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.pherotext{min-width:0}
.herocard{position:relative;flex:0 0 clamp(132px,22vw,216px);margin-bottom:-2px;cursor:zoom-in;border:none;background:none;padding:0}
.herocard svg{width:100%;height:auto;border-radius:10px;filter:drop-shadow(0 2px 4px rgba(0,0,0,.28)) drop-shadow(0 12px 26px rgba(0,0,0,.3))}
.cardmag{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;border:none;background:rgba(31,40,31,.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:zoom-in;pointer-events:none}
.cardmag svg{width:16px;height:16px}
.statusline{font-family:var(--display);font-weight:600;font-size:13.5px;color:rgba(255,255,255,.92);margin-top:8px;text-shadow:0 1px 6px rgba(0,0,0,.35)}
/* Status-coloured heroes keep the colour honest: a whisper of depth, not the
   video hero's heavy gradient. DD is the one light band and takes dark ink. */
.phero.flat::after{background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.16) 100%)}
.phero.dark-ink h1,.phero.dark-ink .statusline{color:#2E2A25;text-shadow:none}
.phero.dark-ink .sci{color:#4A463F;text-shadow:none}
.phero.dark-ink .backlink{color:rgba(46,42,37,.78)}
.phero.dark-ink .backlink:hover{color:#2E2A25}
/* Card lightbox: the same dialog pattern as the photo viewer. */
.cardlb{position:fixed;inset:0;z-index:70;background:rgba(20,26,20,.92);display:none;flex-direction:column;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.cardlb.open{display:flex}
.cardlb .cwrap{width:min(92vw,54vh);cursor:default}
.cardlb .cwrap svg{width:100%;height:auto;border-radius:14px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.4)) drop-shadow(0 24px 60px rgba(0,0,0,.45))}
.cardlb .cap{color:#EAF1E4;font-size:13px;margin-top:14px;text-align:center;max-width:70ch}
.cardlb .cap a{color:#fff;text-decoration:underline;text-underline-offset:2px}
/* The colophon: smaller than the line above it, because a card is assembled from
   other people's work and the sign-off belongs in the corner, not the headline. */
.cardlb .lbcredits{display:block;margin-top:8px;font-size:11.5px;color:rgba(234,241,228,.62)}
.cardlb .lbcredits a{color:rgba(234,241,228,.82)}
.hero-inner .hero-link{color:#fff;text-decoration:underline;text-underline-offset:3px}
.hero-inner .hero-link:hover{color:var(--gold)}
.cardlb .cap a:hover{color:var(--gold)}
.cardlb .x{top:16px;right:16px}
@media(max-width:640px){
.pherorow{align-items:flex-end}
.herocard{flex-basis:clamp(112px,30vw,150px)}
.cardlb .cwrap{width:min(92vw,60vh)}
}