/* ==========================================================================
   Panama Bird Guide (panamabirdguide.com) — stylesheet for the whole site
   Same family as guidedbirdtours.com (same fonts, spacing, cards), its own greens.

   COLOR GUIDE (edit the Leaf palette below to change the whole site)
   --deep-*   dark greens for header, footer, dark bands
   --accent   main green for buttons and links
   --tint     pale green for soft section backgrounds
   --red-*    Beautiful Red, used ONLY for the "tour with a guide" (GBT) buttons
   ========================================================================== */

:root {
  --cream: #f8f6ef;
  --paper: #ffffff;
  --ink: #1d261f;
  --muted: #4d5a51;
  --line: #dfdacb;

  --red: #c8102e;
  --red-dark: #a90e24;

  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 25, 0.06), 0 10px 28px rgba(20, 40, 25, 0.09);
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --max: 1200px;
}

/* Palette: A · Leaf (chosen by Gonzalo 2026-11-05) — fresh, yellow-green rainforest leaves */
:root {
  --deep-950: #14261a; --deep-900: #1b3322; --deep-800: #24432c;
  --accent: #3d7a34; --accent-dark: #2f6128; --accent-soft: #a9cf8e;
  --tint: #edf3e3; --tint-2: #dce9cc; --on-deep: #d9e6d2; --label: #cfe3a0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; margin-bottom: .6rem; }
.lead { color: var(--muted); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--paper);
  padding: .7rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: currentColor; color: var(--accent); }
.btn--ghost:hover { background: var(--tint); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.12); }
.btn--tour { background: var(--red); color: #fff; }
.btn--tour:hover { background: var(--red-dark); }
.btn--sm { padding: .55rem 1rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep-950); color: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.brand__name span { color: var(--label); }
.brand__by { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep); opacity: .85; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__list { display: flex; gap: 1.2rem; }
.nav__list a { text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--on-deep); }
.nav__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--deep-950);
    flex-direction: column; align-items: flex-start; padding: 1rem var(--gutter) 1.5rem; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: .8rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--deep-900); color: #fff; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.hero .eyebrow { color: var(--label); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.1; margin-bottom: 1rem; }
.hero p { color: var(--on-deep); font-size: 1.12rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__search { margin-top: 1.6rem; display: flex; max-width: 30rem; background: #fff; border-radius: 999px; padding: .3rem; }
.hero__search input { flex: 1; border: 0; padding: .6rem 1rem; font: inherit; border-radius: 999px; min-width: 0; }
.hero__search input:focus { outline: none; }
.hero__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-credit { position: absolute; right: .6rem; bottom: .6rem; background: rgba(0,0,0,.55); color: #fff;
  font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } }

/* ---------- Facts strip ---------- */
.facts { background: var(--deep-800); color: #fff; }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; text-align: center; }
.facts__list strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--label); }
.facts__list span { font-size: .92rem; color: var(--on-deep); }
@media (max-width: 700px) { .facts__list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--tint); }
.section__head { max-width: 46rem; margin-bottom: 2rem; }
.section__head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; margin-bottom: .6rem; }
.section__head p { color: var(--muted); }
.more-link { display: inline-block; margin-top: 1.6rem; font-weight: 700; color: var(--accent); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; transition: transform .15s; }
a.card:hover { transform: translateY(-3px); }
.card__media { position: relative; }
.card__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__body h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .2rem; }
.card__sub { color: var(--accent); font-weight: 700; font-size: .88rem; margin-bottom: .5rem; }
.card__body p { color: var(--muted); font-size: .97rem; }

.icon-card { background: var(--paper); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
  text-decoration: none; display: block; border-top: 4px solid var(--accent); }
.icon-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .35rem; }
.icon-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Bird list teaser ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip { background: var(--paper); border: 1px solid var(--tint-2); border-radius: 999px; padding: .35rem .85rem;
  font-size: .9rem; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.tag-box { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.tag-box li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.tag-box li:last-child { border-bottom: 0; }
.tag-box em { color: var(--muted); font-size: .9rem; }
.badge { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem;
  border-radius: 6px; background: var(--tint); color: var(--accent-dark); white-space: nowrap; align-self: center; }

/* ---------- Guide band (link to GBT) ---------- */
.guide-band { background: var(--deep-900); color: #fff; }
.guide-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.guide-band h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .4rem; }
.guide-band p { color: var(--on-deep); max-width: 40rem; }

/* ---------- Shop teaser ---------- */
.shop-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }
.shop-card .kind { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.shop-card h3 { font-size: 1.08rem; margin: .25rem 0 .35rem; }
.shop-card p { color: var(--muted); font-size: .94rem; }
.note { font-size: .86rem; color: var(--muted); margin-top: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-950); color: var(--on-deep); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer__grid h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.footer__grid li { margin-bottom: .4rem; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { color: #fff; text-decoration: underline; }
.footer__logo { width: 170px; margin-top: 1rem; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.2rem; font-size: .85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }


/* ---------- Inner page hero + breadcrumbs ---------- */
.page-hero { background: var(--deep-900); color: #fff; padding-block: clamp(2rem, 5vw, 3.2rem); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: .4rem 0 .8rem; }
.page-hero p { color: var(--on-deep); max-width: 48rem; font-size: 1.08rem; }
.page-hero strong { color: var(--label); }
.crumbs { font-size: .88rem; color: var(--on-deep); }
.crumbs a { color: var(--label); }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- Bird list ---------- */
.list-tools { position: sticky; top: 72px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(20,40,25,.06); }
.list-tools__inner { display: grid; grid-template-columns: minmax(14rem, 1fr) auto minmax(12rem, 16rem); gap: .7rem 1rem; align-items: center; padding-block: .9rem; }
.list-tools input[type=search], .list-tools select { font: inherit; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; min-width: 0; }
.list-tools input[type=search]:focus, .list-tools select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { font: inherit; font-size: .88rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--tint-2); background: var(--tint); color: var(--accent-dark); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters--where { grid-column: 1 / -1; order: 2; align-items: center; }
.list-tools__status { order: 3; }
.filters__label { font-size: .85rem; font-weight: 700; color: var(--accent-dark); margin-right: .1rem; }
.filters--where button { font-weight: 600; background: #fff; }
.list-tools__status { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
@media (max-width: 980px) { .list-tools__inner { grid-template-columns: 1fr 1fr; } .filters { grid-column: 1 / -1; order: 3; } .filters--where { order: 4; } .list-tools__status { order: 5; } }
@media (max-width: 600px) { .list-tools { position: static; } .list-tools__inner { grid-template-columns: 1fr; } }

.bird-list { padding-block: 2rem 3rem; columns: 2 26rem; column-gap: 2.5rem; }
.fam { break-inside: avoid-column; margin-bottom: 1.8rem; scroll-margin-top: 190px; }
.fam__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--deep-800); }
.fam__meta { font-size: .8rem; color: var(--muted); margin-bottom: .4rem; letter-spacing: .02em; }
.sp { display: flex; align-items: baseline; gap: .55rem; padding: .32rem 0; border-bottom: 1px solid var(--line); }
.sp__check input { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); transform: translateY(2px); cursor: pointer; }
.sp__names { flex: 1; }
.sp__name { font-weight: 600; }
.sp__sci { color: var(--muted); font-size: .9rem; }
.sp.is-seen .sp__name { color: var(--accent-dark); }
.sp__badges { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; }
.sp__badges .badge { font-size: .64rem; padding: .1rem .4rem; }
.badge--end { background: var(--accent); color: #fff; }
.badge--acc { background: #eeeae0; color: #6b6352; }
.badge--int { background: #e8e8e8; color: #555; }
.badge--iucn { background: #fbe8eb; color: #a90e24; }
.badge--reg { background: #e3eed8; color: #2f5f28; }
.badge--pa { background: #fff1e0; color: #8a4b08; }
.sp__es { color: var(--ink); font-size: .92rem; }
.sp__sci { display: block; }
.bcard__es { font-size: .9rem; margin-top: .1rem; }
@media (max-width: 600px) { .sp__es { display: block; } }
/* badges on their own line under the names (2026-11-10: more badges since the Audubon list) */
.sp { flex-wrap: wrap; }
.sp__badges { order: 3; flex-basis: 100%; justify-content: flex-start; padding-left: 1.6rem; }
.sp__badges:empty { display: none; }
.bl-empty { column-span: all; padding: 2rem 0; color: var(--muted); }


/* ---------- Bird list: "use it on your phone" button + pop-up ---------- */
.print-logo { display: none; }
.app-pill { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; font: inherit; font-size: .95rem; font-weight: 700;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.app-pill:hover { background: rgba(255,255,255,.2); }
.linkish--app { display: inline-flex; align-items: center; gap: .25rem; vertical-align: -2px; }
.app-dialog { width: min(92vw, 30rem); border: 0; border-radius: var(--radius); padding: 1.6rem 1.5rem 1.4rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); color: var(--ink); }
.app-dialog::backdrop { background: rgba(10, 25, 15, .55); }
.app-dialog h2 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; margin: 0 1.5rem .5rem 0; }
.app-dialog__lead { color: var(--muted); margin-bottom: 1rem; }
.app-dialog__close { position: absolute; top: .6rem; right: .8rem; font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--muted); }
.app-steps { background: var(--tint); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .7rem; }
.app-steps h3 { font-size: .95rem; margin-bottom: .3rem; }
.app-steps ol { margin: 0; padding-left: 1.2rem; list-style: decimal; font-size: .95rem; }
.app-dialog__desk { font-size: .88rem; color: var(--muted); margin: .4rem 0 .8rem; }
.app-dialog[data-os="ios"] [data-os="android"], .app-dialog[data-os="android"] [data-os="ios"],
.app-dialog[data-os="ios"] .app-dialog__desk, .app-dialog[data-os="android"] .app-dialog__desk { display: none; }
.list-tools__status[data-msg]::after { content: " · " attr(data-msg); color: var(--red); font-weight: 700; }

/* slim search bar while scrolling the list (js/bird-list.js): the full bar opens from the "Filters" button */
.list-tools__toggle { display: none; }
.list-tools.is-fixed { position: fixed; left: 0; right: 0; }
.list-tools.is-fixed .list-tools__toggle { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-size: .88rem; font-weight: 700; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; }
.list-tools.is-fixed .list-tools__toggle.is-active { background: var(--accent-dark); border-color: var(--accent-dark); }
.list-tools__toggle-n { font-weight: 600; opacity: .85; font-size: .8rem; }
.list-tools.is-compact .filters, .list-tools.is-compact select, .list-tools.is-compact .list-tools__status { display: none; }
.list-tools.is-compact .list-tools__inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: .55rem; }
.list-tools.is-open .list-tools__toggle { grid-column: 1 / -1; order: 9; justify-self: center; background: #fff; color: var(--accent-dark); border-color: var(--tint-2); }
@media (max-width: 420px) { .list-tools__toggle-n { display: none; } }
@media print { .list-tools-wrap { height: auto !important; } }

/* phones: keep search + filters on screen while scrolling, filters in one swipeable row */
@media (max-width: 600px) {
  .list-tools { position: sticky; top: 0; }
  .list-tools__inner { gap: .5rem; padding-block: .6rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
  .list-tools select { display: none; }
  .list-tools__status { font-size: .8rem; }
  .site-header { position: static; }
  .sp { padding: .5rem 0; }
  .sp__check input { width: 1.35rem; height: 1.35rem; }
}
/* opened from the home screen: just the checklist */
@media (display-mode: standalone) {
  .page-hero p, .crumbs, .app-pill, .linkish--app, .guide-band, .section--tint, .site-footer { display: none !important; }
  .page-hero { padding-block: .8rem; }
  .page-hero h1 { font-size: 1.4rem; margin: 0; }
}

/* ---------- Print: the bird list becomes a field checklist ---------- */
.print-key { display: none; }
@media print {
  @page { margin: 12mm; }
  .site-header, .site-footer, .list-tools, .guide-band, .section--tint, .skip-link, .page-hero p:not(.print-key), .crumbs { display: none !important; }
  body { background: #fff; font-size: 7.5pt; line-height: 1.25; }
  .page-hero { background: none; color: #000; padding: 0 0 4pt; }
  .page-hero h1 { font-size: 14pt; margin: 0; }
  .print-key { display: block; font-size: 7pt; margin-top: 2pt; color: #333 !important; }
  .print-logo { display: block; float: right; width: 120pt; height: auto; margin: -2pt 0 0 10pt; }
  .app-pill, .linkish--app, .app-dialog { display: none !important; }
  .container { width: 100%; }
  .bird-list { columns: 4; column-gap: 10pt; padding: 0; }
  .fam { margin-bottom: 4pt; break-inside: auto; }
  .fam__title { font-size: 8.5pt; color: #000; break-after: avoid; }
  .fam__meta { display: none; }
  .sp { padding: .6pt 0; border-bottom: .4pt solid #ccc; gap: 3pt; break-inside: avoid; }
  .sp__check input { width: 7pt; height: 7pt; transform: none; }
  .sp__name { font-weight: 500; }
  .sp__sci, .sp__es { display: none; }
  .sp { flex-wrap: nowrap; }
  .sp__badges { font-size: 0; flex-basis: auto; padding-left: 0; order: 0; }
  .sp__badges .badge { display: none; }
  .sp__badges .badge--end, .sp__badges .badge--acc { display: inline; background: none; padding: 0; font-size: 0; letter-spacing: 0; }
  .sp__badges .badge--end::after { content: "E"; font-size: 7pt; font-weight: 800; color: #000; }
  .sp__badges .badge--acc::after { content: "R"; font-size: 7pt; color: #555; }
}

/* ---------- Hotspot pages ---------- */
.hs-hero { background: var(--deep-900); color: #fff; }
.hs-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding-block: clamp(2rem, 5vw, 3.5rem); }
.hs-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; margin: .2rem 0 .9rem; }
.hs-hero p { color: var(--on-deep); font-size: 1.08rem; }
.hs-hero .eyebrow { color: var(--label); margin: .9rem 0 0; }
.draft-note { display: inline-block; margin-top: 1rem; font-size: .82rem !important; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.4); border-radius: 8px; padding: .25rem .6rem; }
@media (max-width: 860px) { .hs-hero__inner { grid-template-columns: 1fr; } }
.hs-facts { background: var(--deep-800); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem 1.5rem; padding-block: 1.3rem; margin: 0; }
.facts-grid dt { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.facts-grid dd { margin: .2rem 0 0; font-size: .95rem; color: var(--on-deep); }
@media (max-width: 980px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
.hs-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .hs-body { grid-template-columns: 1fr; } }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2rem 0 .6rem; color: var(--deep-800); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: .9rem; }
.prose .where { border-left: 3px solid var(--accent-soft); padding: .1rem 0 .1rem 1rem; margin-bottom: 1rem; }
.prose .where h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.prose .where p { margin: 0; color: var(--muted); }
.bullets { list-style: disc; padding-left: 1.3rem; }
.bullets li { margin-bottom: .4rem; }
.hs-birds { position: sticky; top: 92px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; border-top: 4px solid var(--accent); }
@media (max-width: 900px) { .hs-birds { position: static; } }
.hs-birds h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .6rem; }
.hs-birds h3 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 .5rem; }
.bird-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bird-chips a { display: inline-block; font-size: .86rem; font-weight: 600; text-decoration: none; padding: .25rem .65rem; border-radius: 999px; background: var(--tint); color: var(--accent-dark); border: 1px solid var(--tint-2); }
.bird-chips--key a { background: var(--accent); color: #fff; border-color: var(--accent); }
.bird-chips a:hover { text-decoration: underline; }
.hs-birds__note { font-size: .84rem; color: var(--muted); margin-top: 1rem; }
.hs-birds__region { margin-top: .8rem; font-weight: 700; line-height: 1.6; }

/* ---------- bird groups (groups/*.html) ---------- */
.eyebrow--light { color: var(--label); margin: .8rem 0 0; }
.group-count { margin-top: .6rem; font-size: .95rem !important; }
.section--tight { padding-block: clamp(1.6rem, 4vw, 2.6rem) clamp(2.4rem, 6vw, 4rem); }
.group-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; align-items: center; margin-bottom: 1.2rem; font-size: .95rem; }
.group-tools a { font-weight: 700; color: var(--accent); }
.group-tools__acc { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; color: var(--muted); }
.group-tools__acc input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.bgrid.hide-acc .bcard--acc { display: none; }
.bgrid .bcard.is-out { display: none; }
.group-where { margin: 0 0 .6rem; }
.group-where__note { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }
.bcard { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.bcard:target { outline: 3px solid var(--accent); outline-offset: 2px; }
.bcard__media { margin: 0; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.bcard__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; display: block; }
.bcard__media--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, var(--tint) 0 12px, var(--tint-2) 12px 24px); }
.bcard__media--none p { font-weight: 800; color: var(--deep-800); }
.bcard__media--none a { font-size: .88rem; font-weight: 700; color: var(--accent-dark); }
.bcard__body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; flex: 1; }
.bcard__body h3 { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.2; }
.bcard__sci { color: var(--muted); font-size: .88rem; }
.bcard__badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .35rem; }
.bcard__badges:empty { display: none; }
.bcard__badges .badge { font-size: .62rem; padding: .1rem .4rem; }
.bcard__credit { font-size: .74rem; color: var(--muted); margin-top: .5rem; line-height: 1.35; }
.bcard__credit a { color: inherit; }
.bcard__list { margin-top: auto; padding-top: .55rem; font-size: .84rem; font-weight: 700; color: var(--accent); }
.photo-ask { margin-top: 1.8rem; padding: 1rem 1.2rem; background: var(--tint); border-radius: var(--radius); color: var(--muted); font-size: .95rem; }
.photo-ask a { color: var(--accent-dark); font-weight: 700; }
.group-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; font-weight: 700; }
.group-pager a { color: var(--accent); }
.group-pager a:last-child { text-align: right; }
.gcard .card__body h3 { font-size: 1.12rem; line-height: 1.25; }
.gcard .card__sub { margin-bottom: .25rem; }
.credits h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.credits-list { font-size: .9rem; color: var(--muted); }
.credits-list li { padding: .2rem 0; border-bottom: 1px solid var(--line); }
.credits-list a { color: var(--accent-dark); }

/* ---------- bird photo pop-up on the bird list ---------- */
.sp__name { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: var(--tint-2); text-underline-offset: 3px; }
.sp__name:hover, .sp__name:focus-visible { color: var(--accent-dark); text-decoration-color: currentColor; }
.bird-dialog { width: min(94vw, 34rem); border: 0; border-radius: var(--radius); padding: 0; box-shadow: 0 24px 60px rgba(0,0,0,.4); color: var(--ink); overflow: hidden; }
.bird-dialog::backdrop { background: rgba(10, 25, 15, .6); }
.bird-dialog__media { background: var(--deep-950); min-height: 4rem; }
.bird-dialog__media img { width: 100%; max-height: 60vh; object-fit: contain; display: block; }
.bird-dialog__none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; aspect-ratio: 16 / 9; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(135deg, var(--tint) 0 12px, var(--tint-2) 12px 24px); }
.bird-dialog__none p { font-weight: 800; color: var(--deep-800); }
.bird-dialog__none a { font-weight: 700; color: var(--accent-dark); }
.bird-dialog__body { padding: 1rem 1.3rem 1.2rem; }
.bird-dialog__body h2 { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; margin-right: 1.5rem; }
.bird-dialog__sci { color: var(--muted); }
.bird-dialog__credit { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.bird-dialog__credit a { color: inherit; }
.bird-dialog__group { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--accent); }
.bird-dialog__close { position: absolute; top: .5rem; right: .6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@media print { .sp__name { text-decoration: none; } .bird-dialog { display: none !important; } }
.app-dialog__photos { font-size: .92rem; color: var(--muted); margin-top: .8rem; }

/* ---------- when to go & endemics (2026-11-08) ---------- */
.page-hero .draft-note { color: var(--on-deep); }
.quick-list { margin: 0; }
.quick-list div { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.quick-list div:last-child { border-bottom: 0; }
.quick-list dt { font-weight: 700; }
.quick-list dd { margin: .1rem 0 0; color: var(--accent-dark); font-weight: 600; font-size: .95rem; }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.month-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 36rem; }
.month-table th, .month-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.month-table thead th { background: var(--deep-800); color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.month-table tbody th { font-family: var(--font-display); font-weight: 700; color: var(--deep-800); white-space: nowrap; }
.month-table tbody tr:last-child > * { border-bottom: 0; }
.month-table td:nth-child(2) { color: var(--muted); }
.spec-region { margin-top: 2.2rem; }
.spec-region:first-of-type { margin-top: 0; }
.spec-region > h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.6rem); color: var(--deep-800); }
.spec-region > p { color: var(--muted); margin: .3rem 0 1rem; max-width: 50rem; }
.spec-region > p a, .bcard__where a { color: var(--accent); font-weight: 700; }
.bcard__where { font-size: .9rem; margin-top: .5rem; line-height: 1.45; }

/* ---------- plan your trip, about, contact, terms (2026-11-08) ---------- */
.narrow { width: min(100% - 2 * var(--gutter), 46rem); margin-inline: auto; padding-block: clamp(2.5rem, 5vw, 4rem); }
.prose.terms h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose h2[id] { scroll-margin-top: 90px; }
.toc-list, .pack-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { border-bottom: 1px solid var(--line); }
.toc-list li:last-child { border-bottom: 0; }
.toc-list a { display: block; padding: .45rem 0; color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.toc-list a:hover { color: var(--accent); }
.pack-list li { position: relative; padding: .2rem 0 .2rem 1.5rem; font-size: .93rem; }
.pack-list li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .85rem; height: .85rem; border: 2px solid var(--accent-soft); border-radius: 3px; }
.contact-form { display: grid; gap: 1rem; max-width: 36rem; margin: 1rem 0 1.5rem; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.copy-btn { font: inherit; font-size: .8rem; font-weight: 700; padding: .15rem .6rem; border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 999px; cursor: pointer; margin-left: .3rem; }
.copy-btn:hover { background: var(--tint); }
.quick-list dd a { color: var(--accent-dark); }

/* ---------- Hotspot photo gallery + lightbox (js/gallery.js) ---------- */
.hs-gallery { padding-top: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery__item { margin: 0; }
.gallery__item a { display: block; border-radius: 10px; overflow: hidden; background: var(--tint); }
.gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery__item a:hover img, .gallery__item a:focus-visible img { transform: scale(1.04); }
.gallery__item figcaption { padding: .45rem .1rem 0; line-height: 1.3; }
.gallery__item figcaption strong { display: block; font-size: .95rem; color: var(--deep-800); }
.gallery__item figcaption span { display: block; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.gallery__note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .gallery__item:first-child { grid-column: 1 / -1; } .gallery__item figcaption span { display: none; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 12, .88); }
.lightbox__fig { margin: 0; text-align: center; }
.lightbox__fig img { display: block; max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.lightbox__fig figcaption { color: #fff; font-size: .9rem; margin-top: .6rem; }
.lightbox__btn, .lightbox__close { position: fixed; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; border-radius: 999px; line-height: 1; }
.lightbox__btn { top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; font-size: 2rem; }
.lightbox__prev { left: 1rem; } .lightbox__next { right: 1rem; }
.lightbox__close { top: 1rem; right: 1rem; width: 2.6rem; height: 2.6rem; font-size: 1.8rem; }
.lightbox__btn:hover, .lightbox__close:hover { background: rgba(255,255,255,.28); }
@media print { .hs-gallery { display: none; } }

/* ---------- Gear & Books: shop cards ---------- */
/* Gear & Books shop cards (2026-11-18, shop.html) */
.gear-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0 0; }
.gear-note { font-size:.9rem; color:var(--muted); margin-top:.8rem; }
.gear-sec { padding-block: clamp(1.8rem, 4vw, 2.6rem); border-bottom:1px solid var(--line); }
.gear-sec h2 { font-family:var(--font-display); font-size:clamp(1.5rem,2.6vw,1.9rem); color:var(--deep-800); margin:0 0 .3rem; scroll-margin-top:90px; }
.gear-sec__intro { color:var(--muted); margin:0 0 1.2rem; }
.gear-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(15.5rem,1fr)); gap:1.2rem; }
.gear-card { background:var(--paper); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s; }
.gear-card:hover { transform:translateY(-2px); box-shadow:0 2px 4px rgba(20,40,25,.08),0 16px 36px rgba(20,40,25,.13); }
.gear-card img, .gear-card__icon { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.gear-card__icon { background:var(--tint); display:grid; place-items:center; }
.gear-card__icon svg { width:42%; fill:none; stroke:var(--accent); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.gear-card__body { padding:1rem 1.1rem 1.2rem; display:flex; flex-direction:column; gap:.45rem; flex:1; }
.gear-card__body h3 { font-size:1.05rem; margin:0; }
.gear-card__body p { margin:0; color:var(--muted); font-size:.94rem; flex:1; }
.gear-card__body .btn { align-self:flex-start; margin-top:.4rem; }
.gear-card__paid { color:var(--muted); font-size:.75rem; }
.gear-tips { margin-top:1.2rem; background:var(--tint); border-radius:var(--radius); padding:.8rem 1.1rem; }
.gear-tips summary { cursor:pointer; font-weight:700; color:var(--accent-dark); }
.gear-tips[open] summary { margin-bottom:.8rem; }
.gear-tips .where { border-left:3px solid var(--accent-soft); padding:.1rem 0 .1rem 1rem; margin-bottom:.9rem; }
.gear-tips .where h4 { font-size:1rem; margin:0 0 .2rem; }
.gear-tips .where p { margin:0; color:var(--muted); }
