:root {
  --ink: #0d0e10;
  --coal-1: #1c1d20;
  --coal-2: #0d0e10; /* same as --ink, so sections meet the page and topo bands with no seam */
  --warm1: #ff8a5b;
  --warm2: #ff5470;
  --maxw: 1140px;
  /* Motion: one speed + curve for hover / click / state changes (under 300ms; eases out). */
  --dur: 160ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: rgb(var(--wht));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
section[id] { scroll-margin-top: 84px; }

.container { width: min(var(--maxw), 92vw); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 700; color: var(--warm1); margin-bottom: 14px; }
.section-title { font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.75; color: rgba(var(--wht), .8); text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.text-link { color: rgb(var(--wht)); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--warm1); padding-bottom: 1px; transition: color var(--dur) var(--ease); }
.text-link:hover { color: var(--warm1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 11px 22px; border-radius: 11px; border: none; line-height: 1;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-lg { padding: 15px 32px; border-radius: 13px; font-size: 16px; }
.btn-primary { color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 8px 22px rgba(255,84,112,.28); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { color: rgb(var(--wht)); background: rgba(var(--wht), .08); border: 1px solid rgba(var(--wht), .2); }
.btn-ghost:hover { background: rgba(var(--wht), .16); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(13,14,16,.55); border-bottom: 1px solid rgba(var(--wht), .06);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(13,14,16,.94); border-color: rgba(var(--wht), .1); }
.site-header .container { width: 100%; padding: 0 18px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav .logo { display: flex; align-items: center; }
.nav .logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; color: rgba(var(--wht), .82); font-weight: 600; font-size: 15px; cursor: pointer; transition: color var(--dur) var(--ease); }
.nav-links a:hover { color: rgb(var(--wht)); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
/* Right of the nav: Donate, then Log in, which opens a row of log-in roles under the bar. A Donate
   tab also sticks to the left edge of the screen once the first screen is scrolled past. */
.nav-right .nav-donate { padding: 0 18px; box-shadow: none; }
.nav-right .nav-donate, .nav-login { box-sizing: border-box; height: 40px; }
/* The heart from the donate popup, in front of every Donate button that opens it (nav, hero, gift bands). */
.btn-primary[data-modal="donate"] { gap: 7px; }
.btn-primary[data-modal="donate"]::before { content: ''; flex: none; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-10-9.3C.6 8.9 2 5.5 5.2 5.1c1.9-.2 3.6.8 4.4 2.3.4.7 1.5.7 1.9 0 .8-1.5 2.5-2.5 4.4-2.3C22 5.5 23.4 8.9 22 11.7 19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.7-10-9.3C.6 8.9 2 5.5 5.2 5.1c1.9-.2 3.6.8 4.4 2.3.4.7 1.5.7 1.9 0 .8-1.5 2.5-2.5 4.4-2.3C22 5.5 23.4 8.9 22 11.7 19.5 16.3 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-lg.btn-primary[data-modal="donate"] { gap: 9px; }
.btn-lg.btn-primary[data-modal="donate"]::before { width: 17px; height: 17px; }
.nav-login { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 11px; border: 1px solid rgba(var(--wht), .18); background: transparent; color: rgb(var(--wht)); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-login:hover, .nav-login[aria-expanded="true"] { border-color: rgba(var(--wht), .4); background: rgba(var(--wht), .06); }
.nav-login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-login[hidden] { display: none; }
/* Signed in: an icon button to your own page, left of Sign out (app.js). */
.nav-home { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(var(--wht), .18); color: rgb(var(--wht)); text-decoration: none; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-home:hover { border-color: rgba(var(--wht), .4); background: rgba(var(--wht), .06); }
.nav-home[aria-current="page"] { border-color: var(--warm1); }
.nav-login { white-space: nowrap; }
/* Signed in, the nav holds more buttons: below 1240px Sign out is just its icon, so the links stay on one line. */
@media (max-width: 1240px) { .nav-right .nav-login[aria-label="Sign out"] { padding: 0 11px; } .nav-right .nav-login[aria-label="Sign out"] span { display: none; } .nav-right:has(.nav-home) { gap: 10px; } .nav:has(.nav-home) .nav-links { gap: 22px; } }
.nav-links a { white-space: nowrap; }
.nav-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Cart: appears in the nav once something is in it; opens the drawer (app.js). */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 40px; height: 40px; padding: 0; border-radius: 11px; border: 1px solid rgba(var(--wht), .18); background: transparent; color: rgb(var(--wht)); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav-cart:hover, .nav-cart[aria-expanded="true"] { border-color: rgba(var(--wht), .4); background: rgba(var(--wht), .06); }
.nav-cart svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-cart .cart-count { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: #fff; font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.nav-cart[hidden] { display: none; }
.nav-cart.bump .cart-count { animation: cart-bump .35s ease; }
@keyframes cart-bump { 40% { transform: scale(1.35); } }
/* The row slides open (grid rows 0fr → 1fr) and its roles drop in one after another. */
.login-row { display: grid; grid-template-rows: 0fr; background: rgba(13,14,16,.97); border-top: 1px solid transparent; transition: grid-template-rows .32s cubic-bezier(.2,.7,.2,1), border-color .32s ease; }
.login-row.open { grid-template-rows: 1fr; border-top-color: rgba(var(--wht), .08); }
.lr-inner { overflow: hidden; min-height: 0; }
.login-row .lr-label, .login-row .lr-door { opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.login-row.open .lr-label, .login-row.open .lr-door { opacity: 1; transform: none; }
.login-row.open .lr-label { transition-delay: .08s; }
.login-row.open .lr-door:nth-of-type(1) { transition-delay: .12s, .12s, 0s, 0s; }
.login-row.open .lr-door:nth-of-type(2) { transition-delay: .17s, .17s, 0s, 0s; }
.login-row.open .lr-door:nth-of-type(3) { transition-delay: .22s, .22s, 0s, 0s; }
.login-row.open .lr-door:nth-of-type(4) { transition-delay: .27s, .27s, 0s, 0s; }
/* Picking Donor / Partner / Board swaps the roles for that role's next step, in the same row:
   an email field for a sign-in link, or Continue with Google for directors. */
.lr-doors { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 10px; }
.login-row.stepping .lr-doors, .login-row.stepping .lr-label { display: none; }
.lr-step { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 10px; }
.lr-step[hidden] { display: none; }
.lr-back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 0; background: transparent; color: rgb(var(--wht)); cursor: pointer; }
.lr-back:hover { background: rgba(var(--wht), .08); }
.lr-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The role you picked stays as its button (same outline and icon), marked as chosen. */
.lr-step .lr-chosen { opacity: 1; transform: none; border-color: rgba(var(--wht), .35); background: rgba(var(--wht), .07); cursor: default; }
.lr-input { box-sizing: border-box; height: 40px; width: min(280px, 100%); padding: 0 14px; border-radius: 11px; border: 1px solid rgba(var(--wht), .18); background: rgba(var(--wht), .05); color: rgb(var(--wht)); font: inherit; font-size: 15px; }
.lr-input:focus { outline: none; border-color: var(--warm1); background: rgba(var(--wht), .08); }
.lr-input::placeholder { color: rgba(var(--wht), .45); }
.lr-step .lr-go { box-sizing: border-box; height: 40px; padding: 0 18px; box-shadow: none; }
.lr-step .lr-go:disabled { opacity: .6; cursor: wait; }
.lr-google { box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 11px; border: 0; background: #fff; color: #1f1f1f; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.lr-google:hover { background: #f1f1f1; }
.lr-google:disabled { opacity: .7; cursor: wait; }
.lr-msg { font-size: 13px; color: rgba(var(--wht), .6); white-space: nowrap; }
.lr-msg:empty { display: none; }
.lr-msg.err { color: #ff8a8a; }
.lr-msg.ok { color: #7fdc9f; font-weight: 700; }
.lr-step.sent .lr-input, .lr-step.sent .lr-go { display: none; }
@media (prefers-reduced-motion: reduce) { .login-row, .login-row .lr-label, .login-row .lr-door, .lr-step, .lr-doors { transition: none; animation: none !important; } }
.login-row .container { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 10px; padding-block: 12px; }
.lr-label { margin-right: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warm1); }
.lr-door { box-sizing: border-box; height: 40px; display: inline-flex; gap: 9px; align-items: center; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(var(--wht), .1); background: rgba(var(--wht), .03); color: rgb(var(--wht)); text-decoration: none; }
.lr-door:hover { border-color: rgba(var(--wht), .35); background: rgba(var(--wht), .07); }
.lr-door svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.lr-door b { font-size: 14px; line-height: 1.2; }
.side-donate { position: fixed; left: 0; top: 50%; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 11px; border-radius: 0 12px 12px 0; background: linear-gradient(180deg, var(--warm1), var(--warm2)); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; box-shadow: 6px 10px 28px rgba(0,0,0,.35); transform: translate(-110%, -50%); transition: transform .3s ease, padding var(--dur) var(--ease); }
.side-donate span { writing-mode: vertical-rl; transform: rotate(180deg); }
.side-donate svg { width: 18px; height: 18px; fill: currentColor; }
.side-donate:hover { padding-left: 16px; }
body.donate-docked .side-donate { transform: translate(0, -50%); }
@media (max-width: 860px) {
  .nav-right { gap: 10px; }
  .login-row .container { justify-content: flex-start; }
  .lr-label { flex-basis: 100%; }
  .lr-doors { flex-basis: 100%; justify-content: flex-start; }
  .lr-door { flex: 1 1 calc(50% - 5px); }
  .lr-step { justify-content: flex-start; flex-wrap: wrap; width: 100%; }
  .lr-msg { white-space: normal; }
  .lr-input, .lr-step .lr-go, .lr-google { flex: 1 1 100%; width: 100%; justify-content: center; }
  .side-donate { padding: 14px 8px; font-size: 12px; gap: 8px; } .side-donate svg { width: 15px; height: 15px; }
}
@media (max-width: 480px) { .nav-login span { display: none; } .nav-login { padding: 0 11px; } .nav-right .nav-donate { padding: 0 14px; font-size: 14px; } }
@media print { .side-donate, .login-row { display: none !important; } }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(13,14,16,.98); border-bottom: 1px solid rgba(var(--wht), .1);
    padding: 12px 6vw 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: var(--dur) var(--ease);
  }
  .nav.open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; width: 100%; font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero .scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(13,14,16,.9) 0%, rgba(13,14,16,.62) 45%, rgba(13,14,16,.35) 100%),
    linear-gradient(0deg, rgba(13,14,16,.9) 0%, rgba(13,14,16,0) 40%);
}
.hero .container { position: relative; z-index: 2; width: 100%; padding: 40px clamp(24px, 4.5vw, 60px); }
@media (min-width: 700px) { .hero .container { padding-top: 96px; } } /* sits the logo + copy a little lower on desktop (2026-12-04) */
.hero-logo { width: min(88vw, 520px); margin-bottom: 36px; filter: drop-shadow(0 6px 22px rgba(0,0,0,.6)); }
.hero .eyebrow { font-size: 16px; }
.hero h1 { font-size: clamp(46px, 7.6vw, 88px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; max-width: none; }
@media (min-width: 700px) { .hero h1 { white-space: nowrap; } }
.hero p { margin-top: 24px; max-width: 48ch; font-size: clamp(19px, 2.6vw, 26px); color: rgba(var(--wht), .85); line-height: 1.6; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Page hero (sub-pages) */
.page-hero { position: relative; min-height: 46vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero.page-hero-tall { min-height: 66vh; }
.page-hero.page-hero-match { min-height: 76vh; } /* /shop: same height as the /fiscal-sponsorship and guide heroes (.vhero-guide) */
.page-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(13,14,16,.96) 0%, rgba(13,14,16,.35) 60%, rgba(13,14,16,.55) 100%); }
.page-hero .container { position: relative; z-index: 2; width: 100%; padding: 40px clamp(24px, 4.5vw, 60px) 46px; }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 54px); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { margin-top: 14px; max-width: 52ch; }
/* Partner pages on phones: the portrait crop puts the film's subject in the upper middle, right
   where the copy sat, with empty film between the copy and the ridge. Slide the copy down into
   that gap (space moves from below the copy to above it, so the hero keeps its height). */
@media (max-width: 600px) { .page-hero.ridge-over[data-page="hero"] > .container { padding-top: 200px; padding-bottom: calc(48px + var(--ridge, 140px) - 160px); } }
/* The partner dashboard hero matches it on phones: the film (and its still behind) is cut to the
   partner page hero's height (~600px) so the subject sits in the same place, and the header copy
   starts at the same point. The dashboard's longer header runs on below the film's fade. */
@media (max-width: 600px) {
  body #pd-dash.has-hero .mg-head { padding-top: 104px; }
  #pd-dash .pd-dash-hero video { height: 600px; bottom: auto; }
  #pd-dash .pd-dash-hero { background-size: auto 600px; background-position: center top; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section .container { width: 100%; max-width: none; padding-inline: clamp(24px, 4.5vw, 60px); }
.section.full { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy p { margin-top: 18px; }
.about-copy p strong { color: rgb(var(--wht)); }
.about-media img, .about-media video { width: 100%; display: block; border-radius: 20px; border: 1px solid rgba(var(--wht), .1); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.about-media video { aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-media { order: -1; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(40px, 6vw, 64px); }
.stat { text-align: center; padding: 28px 16px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 18px; }
.stat .num { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; line-height: 1; background: linear-gradient(155deg, var(--warm1), var(--warm2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { margin-top: 12px; font-size: 14px; color: rgba(var(--wht), .72); line-height: 1.5; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
.page-hero .partner-logo { position: absolute; z-index: 2; top: clamp(18px, 3vw, 34px); right: clamp(16px, 4vw, 56px); display: block; max-height: clamp(48px, 7vw, 84px); max-width: min(240px, 38vw); width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
.page-hero .partner-logo[hidden] { display: none; }
.stats-3 { grid-template-columns: repeat(3, 1fr); } .stats-2 { grid-template-columns: repeat(2, 1fr); } .stats-1 { grid-template-columns: minmax(0, 420px); }
.stat .label a { color: rgb(var(--wht)); text-decoration: underline; text-decoration-color: rgba(var(--wht), .35); text-underline-offset: 3px; }
.stat .label a:hover { text-decoration-color: var(--warm1); }
@media (max-width: 1000px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-4 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .stats-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stats-2 { grid-template-columns: 1fr; } }
.stats-sources { margin-top: 20px; font-size: 12px; line-height: 1.6; color: rgba(var(--wht), .42); max-width: 1040px; }

/* Programs / feature cards (2 wide) */
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 32px); }
.feature { display: flex; flex-direction: column; overflow: hidden; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 22px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: rgba(var(--wht), .2); }
.feature .media { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d center/cover no-repeat; overflow: hidden; }
.feature .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature .media .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; background: rgba(13,14,16,.66); backdrop-filter: blur(4px); color: rgb(var(--wht)); }
.feature .fbody { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); flex: 1; }
.feature h3 { font-size: clamp(22px, 2.6vw, 27px); font-weight: 800; }
.feature p { color: rgba(var(--wht), .74); font-size: clamp(15px, 1.5vw, 16px); line-height: 1.65; flex: 1; }
.feature .fcta { margin-top: 6px; align-self: flex-start; }
/* The whole card opens its page: the card's own link is stretched over it (one link for keyboards
   and screen readers; the card lifts on hover as before). */
.feature:has(.fcta) { position: relative; cursor: pointer; }
.feature .fcta::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.feature:has(.fcta:focus-visible) { border-color: rgba(var(--wht), .45); }
@media (max-width: 680px) { .features { max-width: 460px; margin-inline: auto; } }

/* ---------- Supporters / logo wall ---------- */
.partners { background: var(--ink); }
.partners .section-head { text-align: center; margin-inline: auto; }
.partner-wall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(36px, 6vw, 80px); }
.partner-wall .partner { display: block; opacity: .85; transition: opacity var(--dur) var(--ease); }
.partner-wall .partner:hover { opacity: 1; }
.partner-wall img { display: block; width: auto; max-width: 100%; }
.partner-kacf img { height: clamp(56px, 6.4vw, 78px); }
.partner-idea-wild img { height: clamp(84px, 9.6vw, 118px); }

/* Supporters — above the footer */
.supporters { background: var(--ink); padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); }
.supporters-label { text-align: center; text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 700; color: rgba(var(--wht), .45); margin-bottom: clamp(26px, 3.5vw, 36px); }
.logo-wall { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: clamp(18px, 3.6vw, 52px); }
.logo-wall .brand { display: inline-flex; align-items: center; gap: clamp(8px, 1vw, 12px); color: rgb(var(--wht)); opacity: .82; flex-shrink: 0; transition: opacity var(--dur) var(--ease); }
.logo-wall .brand:hover { opacity: 1; }
.logo-wall .brand-mark { height: clamp(20px, 3vw, 40px); width: auto; display: block; }
.logo-wall .brand-name { font-size: clamp(17px, 2.7vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 640px) { .logo-wall { flex-wrap: wrap; } }
.brand-candid .brand-name::after { content: "."; color: var(--warm1); }

/* ---------- Donate band ---------- */
.donate-band { position: relative; overflow: hidden; text-align: center; }
.donate-band .bg { position: absolute; inset: 0; background: center/cover no-repeat; z-index: 0; }
.donate-band video.bg { width: 100%; height: 100%; object-fit: cover; }
.donate-band .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,14,16,.86), rgba(13,14,16,.78)); }
.donate-band .container { position: relative; z-index: 2; }
.donate-band .lead { margin: 18px auto 0; max-width: 52ch; }
.donate-band .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--coal-2); border-top: 1px solid rgba(var(--wht), .08); padding: clamp(48px, 6vw, 72px) 0 0; }
/* Copyright on its own black strip across the bottom, centred. */
.site-footer .footer-bottom { position: relative; z-index: 1; margin-top: clamp(36px, 5vw, 56px); padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: #000; text-align: center; }
.site-footer .footer-bottom p { margin: 0 auto; max-width: none; text-align: center; font-size: 13px; color: rgba(var(--wht), .5); }
/* Light / dark toggle beside the copyright (app.js). */
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; }
.site-footer .footer-bottom p { margin: 0; }
.theme-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid rgba(var(--wht), .18); border-radius: 999px; }
.theme-toggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; font: inherit; font-size: 13px; color: rgba(var(--wht), .6); background: transparent; border: 0; border-radius: 999px; cursor: pointer; transition: color .15s, background-color .15s; }
.theme-toggle button:hover { color: rgb(var(--wht)); }
.theme-toggle button[aria-pressed="true"] { color: rgb(var(--wht)); background: rgba(var(--wht), .14); }
.theme-toggle button:focus-visible { outline: 2px solid var(--warm2); outline-offset: 1px; }
.theme-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .container { width: 100%; padding: 0 clamp(24px, 4.5vw, 60px); }
/* Footer: brand (widest) · two link columns · seal pinned to the right edge. */
.footer-grid { display: grid; grid-template-columns: max-content minmax(0, .8fr) minmax(0, 2.8fr) auto; column-gap: clamp(32px, 5vw, 72px); row-gap: 36px; align-items: start; }
.footer-seal { display: flex; justify-content: flex-end; align-items: flex-start; position: relative; z-index: 2; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(var(--wht), .6); font-size: 14px; line-height: 1.6; max-width: 40ch; }
.footer-brand .footer-legal { margin-top: 18px; font-size: 13px; line-height: 1.7; color: rgba(var(--wht), .6); max-width: none; }
.footer-brand .footer-legal strong { color: rgba(var(--wht), .85); font-weight: 600; }
/* Logo with the tagline beside it, to save a row. */
.footer-brand .footer-id { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.footer-brand .footer-id img { margin: 0; }
.footer-brand .footer-id .footer-tag { margin: 0; padding-left: 16px; border-left: 1px solid rgba(var(--wht), .18); line-height: 1.35; }
.footer-brand .footer-address { margin-top: 2px; font-size: 13px; line-height: 1.7; font-style: normal; color: rgba(var(--wht), .6); }
.footer-brand .footer-transparency { margin-top: 8px; font-size: 13px; max-width: none; }
.footer-brand .footer-transparency a { color: rgba(var(--wht), .85); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--wht), .3); text-underline-offset: 3px; }
.footer-brand .footer-transparency a:hover { color: rgb(var(--wht)); text-decoration-color: currentColor; }
.footer-brand .footer-copy { margin-top: 10px; font-size: 13px; color: rgba(var(--wht), .45); max-width: none; }
.ein-line { white-space: nowrap; }
.ein-copy { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; margin-left: 7px; padding: 0; border: none; background: none; color: rgba(var(--wht), .55); cursor: pointer; transition: color var(--dur) var(--ease); }
.ein-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ein-copy:hover { color: rgb(var(--wht)); }
.ein-copy.copied { color: var(--warm1); }
.candid-seal { display: block; width: 170px; height: auto; border-radius: 6px; }
.candid-link { display: block; border-radius: 5px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.candid-link:hover, .candid-link:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.45); outline: none; }
/* Safari checklists run in three columns of three. */
.footer-links-2 { display: grid; grid-template-columns: repeat(3, max-content); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: clamp(22px, 2.6vw, 40px); }
/* Column headings link to their section: Programs → home page programs, Safari checklists → /safari. */
.footer-links-2 a { white-space: nowrap; }
/* Footer globe (guides/footer-globe.js): behind the right of the checklists, overlapping them a
   little. Its pins link to the kits; the list's text stays on top and readable. */
.footer-col-wide { position: relative; }
.footer-col-wide > h4, .footer-links-2 { position: relative; z-index: 1; }
.footer-globe { position: absolute; z-index: 0; top: calc(-1 * clamp(48px, 6vw, 72px) - 22px); right: calc(-34px - clamp(32px, 5vw, 72px)); width: 420px; height: 330px; overflow: hidden; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.footer-globe.is-ready { opacity: 1; }
.footer-globe svg { width: 420px; height: 420px; display: block; } /* the box cuts it off at the bottom, behind the copyright strip */
.footer-globe .fg-sphere { fill: rgba(var(--wht), .025); stroke: rgba(var(--wht), .14); stroke-width: 1; }
.footer-globe .fg-grat { fill: none; stroke: rgba(var(--wht), .05); stroke-width: .6; }
.footer-globe .fg-land { fill: rgba(var(--wht), .1); stroke: rgba(var(--wht), .16); stroke-width: .4; }
.footer-globe .fg-pin { pointer-events: auto; cursor: pointer; }
.footer-globe .fg-pin circle { fill: var(--warm1); stroke: var(--coal-2); stroke-width: 1.5; transition: r var(--dur) var(--ease); }
.footer-globe .fg-pin:hover circle, .footer-globe .fg-pin.is-lit circle { r: 7; fill: var(--warm2); }
.footer-links-2 a.is-lit { color: rgb(var(--wht)); }
@media (max-width: 960px) { .footer-globe { display: none; } }
/* When the column is too narrow for three (laptops, tablets, phones), two columns of three. */
.footer-col-wide { container-type: inline-size; }
@container (max-width: 400px) { .footer-links-2 { grid-template-columns: repeat(2, max-content); grid-template-rows: repeat(5, auto); } }
.footer-col h4 a { display: inline; padding: 0; color: inherit; font-size: inherit; }
.footer-col h4 a:hover { color: rgb(var(--wht)); }
.footer-brand .footer-ein { margin-top: 2px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .5); margin-bottom: 14px; }
.footer-col a { display: block; text-decoration: none; color: rgba(var(--wht), .78); font-size: 15px; padding: 6px 0; cursor: pointer; }
.footer-col a:hover { color: rgb(var(--wht)); }
.footer-bottom { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(var(--wht), .08); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(var(--wht), .6); }
.footer-bottom strong { color: rgba(var(--wht), .85); font-weight: 600; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-col-wide { grid-column: 1 / -1; grid-row: 3; } .footer-seal { grid-column: 2; grid-row: 2; justify-content: flex-end; } }

/* ================= Donate modal ================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(8,9,11,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal .card { position: relative; width: min(520px, 92vw); max-height: 88dvh; overflow: auto; background: linear-gradient(180deg, var(--coal-1), var(--coal-2)); border: 1px solid rgba(var(--wht), .1); border-radius: 22px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 80px rgba(0,0,0,.6); text-align: center; animation: pop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .icon { width: 90px; height: 90px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(var(--wht), .1); }
.modal .icon.donate { background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.modal .icon.donate svg { width: 46%; height: 46%; fill:#fff; }
.modal h2 { font-size: clamp(22px, 3vw, 30px); }
.modal p { color: rgba(var(--wht), .82); line-height: 1.6; font-size: clamp(14px,1.5vw,16px); }
.modal .close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; background: rgba(8,9,11,.55); color: rgb(var(--wht)); font-size: 20px; line-height: 1; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background var(--dur) var(--ease); }
.modal .close:hover { background: rgba(8,9,11,.85); }

.toggle { display: inline-flex; margin: 4px auto 20px; background: rgba(var(--wht), .08); border:1px solid rgba(var(--wht), .12); border-radius: 999px; padding: 4px; }
.toggle button { border: none; cursor: pointer; background: none; color: rgba(var(--wht), .7); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 20px; border-radius: 999px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.toggle button.active { background: #fff; color: var(--ink); }
.modal .card p.lead { margin-bottom: 12px; color: rgba(var(--wht), .82); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.amounts button { border: 1px solid rgba(var(--wht), .16); background: rgba(var(--wht), .06); color: rgb(var(--wht)); font: inherit; font-weight: 700; font-size: clamp(15px,2vw,18px); padding: 14px 0; border-radius: 14px; cursor: pointer; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.amounts button:hover { border-color: rgba(var(--wht), .4); }
.amounts button.active { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; transform: translateY(-2px); }
.custom { position: relative; margin-bottom: 20px; }
.custom span { position:absolute; left:16px; top:50%; transform:translateY(-50%); color:rgba(var(--wht), .6); font-weight:700; }
.custom input { width: 100%; padding: 14px 16px 14px 32px; border-radius: 14px; border: 1px solid rgba(var(--wht), .16); background: rgba(var(--wht), .06); color: rgb(var(--wht)); font: inherit; font-size: 16px; }
.custom input:focus { outline: none; border-color: var(--warm1); }
.custom input::placeholder { color: rgba(var(--wht), .4); }
.donate-btn { width: 100%; border: none; cursor: pointer; border-radius: 14px; padding: 16px; font: inherit; font-weight: 700; font-size: 17px; color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 10px 26px rgba(255,84,112,.35); transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.donate-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.donate-btn:disabled { opacity: .6; cursor: default; transform: none; }
.donate-note { margin-top: 16px; font-size: 12px; color: rgba(var(--wht), .55); text-wrap: balance; }
/* Sign / acknowledge popup: title, statement, consent box and button spaced evenly. */
#modal-sign h2 { margin-bottom: 12px; line-height: 1.2; }
#modal-sign .lead { margin: 0; }
#modal-sign .donate-err:not(:empty) { margin-top: 12px; }
.cover-fee { display: flex; align-items: flex-start; gap: 10px; margin: -6px 0 16px; text-align: left; font-size: 14px; line-height: 1.4; color: rgba(var(--wht), .82); cursor: pointer; }
.cover-fee input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--warm2); cursor: pointer; }
.cover-fee input:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.donate-err { margin-top: 12px; font-size: 13px; color: #ff9a9a; min-height: 0; }
.large-gift-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--warm1); text-decoration: none; cursor: pointer; }
.large-gift-link:hover { text-decoration: underline; }
.large-gift-view { display: none; }
.modal .card.show-large { display: flex; flex-direction: column; }
.modal .card.show-large > :not(.close):not(.large-gift-view) { display: none; }
.modal .card.show-large .large-gift-view { display: flex; flex-direction: column; flex: 1; animation: fade .2s ease; }
#modal-donate .card > h2 + .toggle { margin-top: 18px; }
/* Under Donate, past a divider: the Candid seal (links to our Candid profile) beside the seal's
   name and the tax + payment note. */
.donate-trust { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(var(--wht), .08); font-size: 13px; line-height: 1.5; color: rgba(var(--wht), .6); text-align: left; }
.donate-trust a { flex: none; display: block; line-height: 0; border-radius: 6px; transition: transform var(--dur) var(--ease); }
.donate-trust a:hover { transform: translateY(-1px); }
.donate-trust img { width: 64px; height: 64px; border-radius: 5px; }
.donate-trust b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 700; color: rgba(var(--wht), .9); }
@media (max-width: 480px) { .donate-trust { gap: 12px; font-size: 11.5px; } .donate-trust img { width: 52px; height: 52px; } .donate-trust b { font-size: 13px; } }
.large-gift-view .donate-note { margin-top: auto; padding-top: 16px; }
.gift-options { display: grid; gap: 12px; margin-top: 10px; text-align: left; }
.gift-option { padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(var(--wht), .16); background: rgba(var(--wht), .06); }
.gift-option .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .5); margin-bottom: 8px; }
.gift-option a { color: rgb(var(--wht)); font-weight: 700; font-size: 17px; text-decoration: none; word-break: break-all; }
.gift-option a:hover { color: var(--warm1); }
.gift-option address { font-style: normal; color: rgb(var(--wht)); font-weight: 600; line-height: 1.6; }

/* Back-from-checkout dialog (app.js): thank-you / no-charge states */
.modal .icon.donate.muted { background: rgba(var(--wht), .08); }
.modal .icon.donate.muted svg { fill: rgba(var(--wht), .85); }
.return-modal h2 { margin-bottom: 10px; }
.return-modal .card p.lead { margin-bottom: 24px; }
.return-actions { display: flex; flex-direction: column; gap: 10px; }
.return-actions .btn { width: 100%; padding: 14px; border-radius: 14px; }
.return-actions button:focus-visible, .return-modal .close:focus-visible { outline: 2px solid var(--warm1); outline-offset: 3px; }

/* ================= Shop page ================= */
.shop-intro { margin-bottom: clamp(28px, 4vw, 44px); max-width: 620px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.shop-item { display: flex; flex-direction: column; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 18px; overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.shop-item:hover { transform: translateY(-3px); border-color: rgba(var(--wht), .2); }
.shop-item .thumb { aspect-ratio: 1 / 1; width: 100%; background: #0b0b0d center/cover no-repeat; }
.shop-item .info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.shop-item .name { font-size: 15px; font-weight: 600; line-height: 1.35; color: rgb(var(--wht)); }
.shop-item .price { font-size: 14px; color: rgba(var(--wht), .62); margin-bottom: 12px; }
.shop-item .buy { margin-top: auto; width: 100%; border: none; cursor: pointer; padding: 12px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 14px; color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.shop-item .buy:hover { transform: translateY(-1px); filter: brightness(1.05); }
.shop-item .buy:disabled { opacity: .6; cursor: default; transform: none; }
.shop-item .variant-select { width: 100%; margin-bottom: 10px; padding: 10px 40px 10px 12px; border-radius: 10px; background-color: rgba(var(--wht), .06); color: rgb(var(--wht)); font: inherit; font-size: 13px; border: 1px solid rgba(var(--wht), .16); cursor: pointer; }
.shop-item .variant-select:focus { outline: none; border-color: var(--warm1); }
/* Selects draw their own caret, set in from the right edge (the browser's sits on the border). */
.variant-select, .co-form select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 42px !important; }
.variant-select option, .co-form select option { background: var(--coal-1); color: rgb(var(--wht)); }
.shop-item a.thumb { display: block; }
.shop-item a.name { text-decoration: none; }
.shop-item a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-item[hidden] { display: none; }
/* Filters over the grid */
.shop-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 32px); }
.shop-filters[hidden], .shop-filters button[hidden] { display: none; }
.shop-filters button { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(var(--wht), .18); background: transparent; color: rgba(var(--wht), .82); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease); }
.shop-filters button:hover { border-color: rgba(var(--wht), .4); color: rgb(var(--wht)); }
.shop-filters button[aria-pressed="true"] { border-color: transparent; color: #fff; background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
/* Product view (/shop?item=<id>) */
.shop-product[hidden] { display: none; }
body.shop-viewing .page-hero { display: none; }
/* The shop sits closer to the top of its topo band: under the hero on the grid, under the nav on a product. */
.page-hero + .section.topo-section:has(#shop-grid) { padding-top: clamp(56px, 6vw, 84px); }
body.shop-viewing .page-hero + .section.topo-section:has(#shop-grid) { padding-top: clamp(20px, 2.2vw, 28px); }
/* …and the land slides up (same size, not stretched) so its wavy top edge tucks behind the nav. */
body.shop-viewing .page-hero + .section.topo-section > .topo-band { top: -90px; bottom: 90px; }
/* Sizes on one row: equal buttons that share the width. */
.sp-pills[data-kind="size"] { flex-wrap: nowrap; }
.sp-pills[data-kind="size"] button { flex: 1 1 0; min-width: 0; padding: 10px 2px; }
/* Colours as swatches on one row; the chosen one gets a coral ring. */
.sp-pills.sp-swatches { flex-wrap: nowrap; gap: 10px; }
.sp-pills.sp-swatches button { flex: 0 1 40px; min-width: 0; aspect-ratio: 1 / 1; padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; }
.sp-pills.sp-swatches button span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(var(--wht), .22); }
.sp-pills.sp-swatches button:hover { border-color: rgba(var(--wht), .45); background: none; }
.sp-pills.sp-swatches button[aria-pressed="true"] { border-color: var(--warm1); background: none; }
@media (max-width: 480px) { .sp-pills[data-kind="size"] { gap: 5px; } .sp-pills[data-kind="size"] button { font-size: 13px; } .sp-pills.sp-swatches { gap: 6px; } }
.sp-back { display: inline-block; margin-bottom: 22px; color: rgba(var(--wht), .7); font-size: 14px; font-weight: 600; text-decoration: none; }
.sp-back:hover { color: rgb(var(--wht)); }
.sp-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sp-media { position: sticky; top: 96px; }
.sp-main { aspect-ratio: 1 / 1; width: 100%; border-radius: 18px; background: #0b0b0d center/contain no-repeat; border: 1px solid rgba(var(--wht), .08); }
.sp-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sp-thumb { width: 64px; height: 64px; border-radius: 10px; border: 2px solid transparent; background: #0b0b0d center/cover no-repeat; cursor: pointer; padding: 0; }
.sp-thumb[aria-pressed="true"] { border-color: var(--warm1); }
.sp-thumb:hover { border-color: rgba(var(--wht), .4); }
.sp-info .eyebrow { margin-bottom: 10px; }
.sp-name { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 12px; color: rgb(var(--wht)); outline: none; }
.sp-price { font-size: 22px; font-weight: 700; color: rgb(var(--wht)); margin-bottom: 26px; }
.sp-opt { margin-bottom: 22px; }
.sp-opt-one { margin-bottom: 12px; }
.sp-opt-one .sp-opt-label { margin-bottom: 0; }
.sp-opt-one .sp-opt-label span { color: rgb(var(--wht)); font-weight: 600; }
.sp-opt-one:last-of-type { margin-bottom: 24px; }
.sp-opt-label { font-size: 13px; font-weight: 700; color: rgba(var(--wht), .75); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.sp-opt-label span { margin-left: 6px; font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(var(--wht), .55); }
.sp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-pills button { min-width: 52px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(var(--wht), .18); background: transparent; color: rgb(var(--wht)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.sp-pills button:hover { border-color: rgba(var(--wht), .45); }
.sp-pills button[aria-pressed="true"] { border-color: var(--warm1); background: rgba(255,138,91,.12); }
.sp-select { width: 100%; margin-bottom: 22px; padding: 12px; border-radius: 11px; background-color: rgba(var(--wht), .06); color: rgb(var(--wht)); font: inherit; font-size: 15px; border: 1px solid rgba(var(--wht), .16); }
.sp-add { width: 100%; }
.sp-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.55; color: rgba(var(--wht), .55); }
.sp-fact { margin-top: 30px; padding: 18px 20px; border-radius: 14px; background: rgba(var(--wht), .04); border: 1px solid rgba(var(--wht), .08); border-left: 3px solid var(--warm1); }
.sp-fact-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--warm1); margin-bottom: 8px; }
.sp-fact p { margin: 0 0 10px; font-size: 16px; line-height: 1.55; color: rgb(var(--wht)); }
.sp-fact a { font-size: 12.5px; color: rgba(var(--wht), .55); text-decoration: underline; text-underline-offset: 2px; }
.sp-fact a:hover { color: rgb(var(--wht)); }
.sp-details { margin-top: 36px; padding-top: 4px; border-top: 1px solid rgba(var(--wht), .08); }
.sp-details h2 { font-size: 16px; margin: 22px 0 10px; color: rgb(var(--wht)); }
.sp-details p, .sp-details li { font-size: 14.5px; line-height: 1.65; color: rgba(var(--wht), .72); }
.sp-details p { margin: 0 0 10px; }
.sp-details ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 820px) { .sp-wrap { grid-template-columns: 1fr; } .sp-media { position: static; } .sp-thumbs { display: none; } }
.shop-state { grid-column: 1 / -1; text-align: center; padding: 60px 12px; color: rgba(var(--wht), .6); font-size: 15px; }

/* Shop checkout panel */
.co-form label { display: block; font-size: 13px; font-weight: 600; color: rgba(var(--wht), .75); margin-bottom: 6px; }
.co-form .opt { font-weight: 400; color: rgba(var(--wht), .45); }
.co-form input, .co-form select { width: 100%; margin-top: 5px; padding: 12px; border-radius: 11px; background-color: rgba(var(--wht), .06); color: rgb(var(--wht)); font: inherit; font-size: 15px; border: 1px solid rgba(var(--wht), .16); }
.co-form input:focus, .co-form select:focus { outline: none; border-color: var(--warm1); }
.co-row { margin-bottom: 12px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.co-err { color: #ff9a9a; font-size: 13px; min-height: 0; margin-bottom: 8px; }
.co-submit { width: 100%; border: none; cursor: pointer; border-radius: 12px; padding: 15px; font: inherit; font-weight: 700; font-size: 16px; color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 10px 26px rgba(255,84,112,.3); margin-top: 4px; transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.co-submit:hover { transform: translateY(-2px); filter: brightness(1.05); }
.co-submit:disabled { opacity: .6; cursor: default; transform: none; }
.co-form .co-missing { border-color: #ff9a9a; }
.co-note { margin-top: 12px; font-size: 12px; color: rgba(var(--wht), .5); text-align: center; }

/* ================= Wild Eyes page ================= */
/* Animations ported from the Wild Eyes app (globals.css). */
@keyframes we-reveal { 0% { opacity: 0; transform: scale(0.94); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes we-pulse { 0% { box-shadow: 0 0 0 0 currentColor; opacity: 1; } 70% { box-shadow: 0 0 0 6px transparent; opacity: 0.85; } 100% { box-shadow: 0 0 0 0 transparent; opacity: 1; } }
@keyframes we-heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.4); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes we-eye-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(var(--wht), .08), 0 0 50px rgba(217,164,65,.22); transform: scale(1); }
  50% { box-shadow: 0 0 0 1px rgba(var(--wht), .12), 0 0 82px rgba(217,164,65,.44); transform: scale(1.025); }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; }
.reveal.in-view { animation: we-reveal .35s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; } .reveal.in-view { animation: none; } .we-eye, .live-dot { animation: none !important; } }

/* Eye logo */
.we-eye { width: clamp(92px, 13vw, 148px); height: auto; border-radius: 50%; margin-bottom: 22px; animation: we-eye-breathe 5s ease-in-out infinite; }

/* Live pill */
.live-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 999px; background: rgba(var(--wht), .08); border: 1px solid rgba(var(--wht), .16); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--wht)); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5470; color: #ff5470; animation: we-pulse 1.8s ease-out infinite; }

/* Feature grid */
.we-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.we-feat { background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 18px; padding: clamp(22px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 10px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.we-feat:hover { transform: translateY(-4px); border-color: rgba(var(--wht), .2); }
.we-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 6px; background: linear-gradient(155deg, rgba(255,138,91,.22), rgba(255,84,112,.22)); border: 1px solid rgba(var(--wht), .1); }
.we-ico svg { width: 23px; height: 23px; fill: none; stroke: #ffb59a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.we-feat h3 { font-size: 19px; font-weight: 800; }
.we-feat p { color: rgba(var(--wht), .72); font-size: 15px; line-height: 1.6; }
.we-feat:hover .heart-pop { animation: we-heart-pop .5s ease; }

/* Two-problem cards */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.problem-card { display: flex; flex-direction: column; overflow: hidden; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 22px; }
.problem-card .media { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d center/cover no-repeat; overflow: hidden; }
.problem-card .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.problem-card .media .tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; background: rgba(13,14,16,.66); backdrop-filter: blur(4px); color: rgb(var(--wht)); }
.problem-card .pbody { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 34px); flex: 1; }
.problem-card h3 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; }
.problem-card p { color: rgba(var(--wht), .76); font-size: 15px; line-height: 1.65; }
.problem-card .stat-line { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(var(--wht), .1); font-size: 14px; line-height: 1.55; color: rgb(var(--wht)); }
.problem-card .stat-line strong { color: var(--warm1); }
.problem-card .sources { font-size: 11px; color: rgba(var(--wht), .4); letter-spacing: .01em; }

/* Role switcher */
.switcher-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .12); border-radius: 999px; padding: 5px; margin-bottom: clamp(28px, 4vw, 40px); }
.switcher-tabs button { border: none; background: none; cursor: pointer; color: rgba(var(--wht), .72); font: inherit; font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 999px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.switcher-tabs button:hover { color: rgb(var(--wht)); }
.switcher-tabs button.active { background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.role-panel { display: none; }
.role-panel.active { display: block; animation: we-reveal .45s ease both; }
.role-desc { max-width: 640px; margin-bottom: clamp(24px, 3vw, 34px); }
.role-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px clamp(24px, 4vw, 44px); }
.role-item { display: flex; gap: 14px; align-items: flex-start; }
.role-item .rk { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(155deg, rgba(255,138,91,.22), rgba(255,84,112,.22)); border: 1px solid rgba(var(--wht), .1); }
.role-item .rk svg { width: 18px; height: 18px; fill: none; stroke: #ffb59a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.role-item .emoji { flex: 0 0 auto; font-size: 26px; line-height: 1.1; }
.role-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.role-item p { font-size: 14px; color: rgba(var(--wht), .7); line-height: 1.55; }

/* ===== Board-preview: full-bleed problem sections (STA theme) ===== */
.probfull { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 90px 0; }
.probfull > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.probfull .scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(125% 95% at 50% 42%, rgba(13,14,16,.35) 0%, rgba(13,14,16,.62) 66%, rgba(13,14,16,.85) 100%); }
.probfull .inner { position: relative; z-index: 2; max-width: 900px; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.probfull .pb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--warm1); text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.probfull h2 { font-size: clamp(30px, 5.4vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; max-width: 24ch; text-shadow: 0 2px 34px rgba(0,0,0,.5); }

/* ===== Board-preview: role switcher + hand-drawn markers (STA theme) ===== */
#how .section-head { max-width: 960px; margin-inline: auto; text-align: center; }
.roleswitch { position: sticky; top: 62px; z-index: 15; scroll-margin-top: 62px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; background: var(--coal-2); box-shadow: 0 14px 22px -10px rgba(0,0,0,.55); }
.rolewrap { padding-top: 34px; min-height: 46vh; }
.roleprompt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--wht), .55); margin: 0; }
.roleswitch .tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .12); border-radius: 999px; max-width: calc(100vw - 32px); }
.rtab { min-height: 46px; padding: 0 22px; border: none; border-radius: 999px; background: transparent; color: rgba(var(--wht), .72); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap; }
.rtab:hover { color: rgb(var(--wht)); }
.rtab[aria-selected="true"] { background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.rolepanel { max-width: var(--maxw); margin: 0 auto; }
.rolepanel .inner { opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.rolepanel .inner.in { opacity: 1; transform: none; }
.roleeyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--warm1); margin: 0 0 16px; text-align: center; }
.rolebig { font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.12; max-width: 26ch; margin: 0 auto 40px; text-align: center; }
.rfeatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.rfeat { background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; padding: 22px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.rfeat h4 { font-weight: 800; font-size: 16.5px; margin: 0 0 8px; letter-spacing: -.02em; }
.rfeat p { margin: 0; color: rgba(var(--wht), .7); font-size: 14px; line-height: 1.5; }
@keyframes rfeatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rolepanel .inner.in .rfeat { animation: rfeatIn .5s cubic-bezier(.2,.8,.2,1) backwards; }
.rolepanel .inner.in .rfeat:nth-child(1){animation-delay:.05s}
.rolepanel .inner.in .rfeat:nth-child(2){animation-delay:.10s}
.rolepanel .inner.in .rfeat:nth-child(3){animation-delay:.15s}
.rolepanel .inner.in .rfeat:nth-child(4){animation-delay:.20s}
.rolepanel .inner.in .rfeat:nth-child(5){animation-delay:.25s}
.rolepanel .inner.in .rfeat:nth-child(6){animation-delay:.30s}
.rfeat:hover { transform: translateY(-3px); border-color: rgba(var(--wht), .25); }
.bmk { width: 52px; height: 39px; display: block; margin: 0 0 13px; }
.bmk svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bmk [data-draw] { stroke-dashoffset: var(--L,0); }
.bmk [data-fill] { opacity: 0; }
.rolepanel .inner.in .rfeat .bmk [data-draw] { animation: bmDraw 1.2s ease-in-out both; animation-delay: calc(var(--d,0s) + .15s); }
.rolepanel .inner.in .rfeat .bmk [data-fill] { animation: bmFill .75s ease-out both; animation-delay: calc(var(--d,0s) + .1s); }
.rolepanel .inner.in .rfeat:hover .bmk [data-draw] { animation: bmHover .9s ease-in-out both; animation-delay: calc(var(--d,0s) * .45); }
@keyframes bmDraw { to { stroke-dashoffset: 0; } }
@keyframes bmHover { from { stroke-dashoffset: var(--L,0); } to { stroke-dashoffset: 0; } }
@keyframes bmFill { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 820px) { .rfeatures { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .rolepanel .inner { opacity: 1; transform: none; transition: none; }
  .rolepanel .inner.in .rfeat { animation: none; }
  .bmk [data-draw] { animation: none !important; stroke-dashoffset: 0 !important; }
  .bmk [data-fill] { animation: none !important; opacity: 1 !important; }
}

/* ================= Transparency page ================= */
.trust-lead { max-width: 760px; }
.trust-lead p { margin-top: 18px; }
.trust-lead p strong { color: rgb(var(--wht)); }

/* Key-facts row (EIN, status, seal) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(16px, 2.5vw, 24px); margin-top: clamp(36px, 5vw, 56px); }
.fact { padding: 24px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; }
.fact .k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .5); margin-bottom: 10px; }
.fact .v { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; line-height: 1.2; }
.fact .v.small { font-size: 15px; font-weight: 600; color: rgba(var(--wht), .82); line-height: 1.5; }
.fact .v .ein-copy { vertical-align: -2px; }
.fact-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--warm1); text-decoration: none; }
.fact-link:hover { text-decoration: underline; }

/* Financial-document links */
.doc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; text-decoration: none; color: rgb(var(--wht)); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.doc-link[href]:hover { transform: translateY(-3px); border-color: rgba(var(--wht), .25); }
.doc-link.pending { opacity: .72; cursor: default; }
.doc-link .di { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(155deg, rgba(255,138,91,.22), rgba(255,84,112,.22)); border: 1px solid rgba(var(--wht), .1); }
.doc-link .di svg { width: 21px; height: 21px; fill: none; stroke: #ffb59a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.doc-link .dt { display: flex; flex-direction: column; gap: 2px; }
.doc-link .dt b { font-size: 15px; font-weight: 700; }
.doc-link .dt span { font-size: 13px; color: rgba(var(--wht), .6); }

/* Founder-funding callout */
.fund-note { margin-top: clamp(28px, 4vw, 40px); max-width: 760px; padding: clamp(24px, 3vw, 30px); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-left: 3px solid var(--warm1); border-radius: 16px; }
.fund-note h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; letter-spacing: -0.01em; }
.fund-note p { margin-top: 12px; color: rgba(var(--wht), .78); font-size: 15px; line-height: 1.7; }

/* ---- Meter primitives (used by the financial snapshot) ---- */
.meter { display: flex; width: 100%; height: 46px; border-radius: 12px; overflow: hidden; background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .1); }
.meter-seg { width: var(--pct, 0%); display: flex; align-items: center; padding: 0; min-width: 0; white-space: nowrap; overflow: hidden; transition: width .6s cubic-bezier(.2,.8,.2,1), min-width .3s ease; }
.meter-seg span { font-size: 13px; font-weight: 800; color: rgb(var(--wht)); text-shadow: 0 1px 2px rgba(0,0,0,.35); padding: 0 14px; transition: opacity var(--dur) var(--ease); }

/* Hover-to-expand meter (used by the in-kind bar so tiny supporters are inspectable) */
.meter-expand .meter-seg span { opacity: 0; }
.meter-expand .meter-seg:first-child span { opacity: 1; }
@media (hover: hover) {
  .meter-expand:hover .meter-seg:not(:first-child) { min-width: 236px; }
  .meter-expand:hover .meter-seg:not(:first-child) span { opacity: 1; padding: 0 24px; }
}
.seg-prog { background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.seg-admin { background: rgba(var(--wht), .22); }
.seg-fund { background: rgba(var(--wht), .12); }
.meter-legend { display: flex; flex-wrap: nowrap; gap: 8px 22px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.meter-legend::-webkit-scrollbar { display: none; }
.meter-legend .lg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(var(--wht), .72); white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 820px) { .meter-legend { flex-wrap: wrap; overflow-x: visible; } .meter-legend .lg { white-space: normal; flex: 0 1 auto; min-width: 0; } }
.meter-legend .lg b { color: rgb(var(--wht)); font-weight: 800; }
.meter-legend .dot { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.meter-legend .dot.seg-admin { background: rgba(var(--wht), .35); }
.meter-legend .dot.seg-fund { background: rgba(var(--wht), .18); }

/* Revenue-segment colors (expenses reuse seg-prog / seg-admin / seg-fund above) */
.seg-donations { background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.seg-shop { background: #ffb27a; }
.seg-grants { background: #c98a6a; }
.seg-founder { background: rgba(var(--wht), .30); }
.meter-seg.seg-shop span { color: #3a2213; text-shadow: none; }
.meter-legend .dot.seg-donations { background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.meter-legend .dot.seg-shop { background: #ffb27a; }
/* Board Money "Whose it is" bar: STA's own as budgeted (warm brand colour), unbudgeted (green)
   and outside the budget (deeper green); reserves in a separate cool colour. */
.seg-own-bud, .meter-legend .dot.seg-own-bud { background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.seg-own-unb, .meter-legend .dot.seg-own-unb { background: #4cbe78; }
.seg-own-out, .meter-legend .dot.seg-own-out { background: #4e9a5a; }
.seg-res, .meter-legend .dot.seg-res { background: #7f9bb0; }
.meter-seg.seg-res span { color: #14202a; text-shadow: none; }
.meter-legend .dot.seg-grants { background: #c98a6a; }
.meter-legend .dot.seg-founder { background: rgba(var(--wht), .34); }
.seg-ws { background: #7f9bb0; }
.meter-legend .dot.seg-ws { background: #7f9bb0; }

/* ---- Financial snapshot: income + expenses ---- */
.finance { margin-top: clamp(28px, 4vw, 40px); }
.sample-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2a1503; background: linear-gradient(155deg, var(--warm1), var(--warm2)); padding: 7px 13px; border-radius: 9px; margin-bottom: 22px; box-shadow: 0 6px 18px rgba(255,84,112,.25); }
.finance .facts { margin-top: 0; }
.fin-meter { margin-top: clamp(24px, 3.2vw, 34px); }
.fin-meter-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.fin-meter-head .t { font-size: clamp(16px, 1.9vw, 19px); font-weight: 800; letter-spacing: -0.01em; }
.fin-meter-head .tot { font-size: clamp(15px, 1.8vw, 18px); font-weight: 800; color: var(--warm1); }
/* Board Financials · Actual: the year from the books, laid out like the published snapshot */
/* Future-year goals: same thermometers, greyed out until numbers are set. */
.year-panel.is-goal .meter { filter: grayscale(1); opacity: .45; }
.year-panel.is-goal .meter-legend .dot { filter: grayscale(1); opacity: .6; }
.year-panel.is-goal .fin-meter-head .tot { color: rgba(var(--wht), .45); }
.fin-note { margin-top: clamp(20px, 2.6vw, 26px); max-width: 720px; font-size: 14.5px; line-height: 1.65; color: rgba(var(--wht), .72); }
.fin-note b { color: rgb(var(--wht)); }
.fin-group-title { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; letter-spacing: -0.01em; margin: clamp(30px, 4vw, 42px) 0 2px; }
.fin-group-title .sub { display: block; font-size: 13.5px; font-weight: 600; color: rgba(var(--wht), .6); margin-top: 5px; }

/* Year tabs */
.year-tabs { display: inline-flex; gap: 4px; background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .12); border-radius: 999px; padding: 4px; margin-bottom: clamp(20px, 3vw, 26px); }
.year-tabs button { border: none; background: none; cursor: pointer; color: rgba(var(--wht), .7); font: inherit; font-weight: 700; font-size: 14px; padding: 8px 22px; border-radius: 999px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.year-tabs button:hover { color: rgb(var(--wht)); }
.year-tabs button.active { background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.year-panel { display: none; }
.year-panel.active { display: block; }
/* Year panels stacked in one cell so the section height (and everything below) never shifts on switch. */
.finance.fin-stack { display: grid; }
.finance.fin-stack > .year-panel { display: block; grid-area: 1 / 1; visibility: hidden; min-width: 0; }
.finance.fin-stack > .year-panel > * { min-width: 0; }
.finance.fin-stack > .year-panel.active { visibility: visible; }
/* Share row tracks across years (subgrid) so the top block — CTA or fact cards — is the same height in every
   panel and the meters below sit in exactly the same place when switching years. */
@supports (grid-template-rows: subgrid) {
  .finance.fin-stack { grid-template-rows: repeat(4, auto); }
  .finance.fin-stack > .year-panel { display: grid; grid-row: 1 / 5; grid-template-rows: subgrid; }
  .finance.fin-stack > .year-panel > .future-cta { margin-bottom: 0; }
}
/* Section header with the year switcher on the right. */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row .year-tabs { margin-bottom: 0; flex: none; }
/* Pills in a section heading (Meetings, Financials) sit centred on the title, not 24px above its base. */
.section-head-row > .money-periods { margin-bottom: 0; }
.section-head-row + .finance { margin-top: 0; }
.future-cta { box-sizing: border-box; margin-bottom: clamp(20px, 3vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: 24px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; }
.future-cta > div { flex: 1 1 420px; }
.future-cta h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.future-cta .lead { margin: 0; font-size: 15px; line-height: 1.6; }
.year-flag { display: inline-block; margin-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(var(--wht), .55); vertical-align: 2px; }

/* Policy accordions */
.policies { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.policy { background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; overflow: hidden; }
.policy > summary { list-style: none; cursor: pointer; padding: 22px clamp(20px, 3vw, 28px); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 800; font-size: clamp(17px, 2vw, 20px); }
.policy > summary::-webkit-details-marker { display: none; }
.policy > summary:hover { color: var(--warm1); }
.policy > summary .chev { flex: 0 0 auto; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.policy[open] > summary .chev { transform: rotate(180deg); }
.policy .pbody { padding: 0 clamp(20px, 3vw, 28px) clamp(22px, 3vw, 28px); }
.policy .pbody > *:first-child { margin-top: 0; }
.policy .pbody p { color: rgba(var(--wht), .78); font-size: 15px; line-height: 1.7; margin-top: 14px; }
.policy .pbody h4 { font-size: 15px; font-weight: 800; letter-spacing: .01em; margin-top: 24px; color: rgb(var(--wht)); }
.policy .pbody ul { margin: 12px 0 0; padding-left: 20px; }
.policy .pbody li { color: rgba(var(--wht), .78); font-size: 15px; line-height: 1.65; margin-top: 8px; }
.policy .pbody li strong, .policy .pbody p strong { color: rgb(var(--wht)); font-weight: 700; }
.policy .pbody a { color: rgb(var(--wht)); border-bottom: 1px solid var(--warm1); text-decoration: none; }
.policy .pbody a:hover { color: var(--warm1); }
.policy .meta { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(var(--wht), .08); font-size: 12.5px; color: rgba(var(--wht), .5); }

/* Draft / review flag — remove or resolve before publishing */
.review-flag { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #ffcf9a; background: rgba(255,138,91,.12); border: 1px dashed rgba(255,138,91,.5); border-radius: 8px; padding: 4px 10px; }
.review-banner { margin: 0 0 clamp(24px,4vw,36px); padding: 16px 20px; border-radius: 14px; background: rgba(255,138,91,.1); border: 1px dashed rgba(255,138,91,.55); color: #ffdcc2; font-size: 14px; line-height: 1.6; }
.review-banner strong { color: rgb(var(--wht)); }

/* Sub-heading inside a policy accordion (for the AI policy's ### subsections) */
.policy .pbody h5 { font-size: 14px; font-weight: 800; letter-spacing: .01em; margin-top: 20px; color: var(--warm1); }

/* ================= Board onboarding page ================= */
/* Duty cards */
.gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: clamp(28px, 4vw, 40px); }
.gcard { padding: 28px 26px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; }
.gcard { position: relative; }
.gcards-intro { margin-top: clamp(28px, 4vw, 40px); font-size: 15px; line-height: 1.6; color: rgba(var(--wht), .7); }
.gcards-intro + .gcards { margin-top: 16px; }
.gcard .tile-info { top: 22px; right: 20px; }
.gcard .tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--warm1); margin-bottom: 12px; }
.gcard h3 { font-size: 18px; font-weight: 800; }
.gcard .lead-sm { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: rgba(var(--wht), .72); }

/* Onboarding steps */
.steps { counter-reset: step; margin-top: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.step { position: relative; padding: 20px 24px 22px 68px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.step h4 { font-size: 16px; font-weight: 800; }
.step p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: rgba(var(--wht), .74); }

/* Ordered lists inside a policy/bylaws accordion */
.policy .pbody ol { margin: 12px 0 0; padding-left: 22px; }
.policy .pbody ol li { color: rgba(var(--wht), .78); font-size: 15px; line-height: 1.65; margin-top: 10px; }
.policy .pbody ol.alpha { list-style: lower-alpha; }
.policy .pbody .ib-note { color: var(--warm1); font-weight: 600; }

/* Signature blocks + fill-in lines */
.sig-block { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px 32px; }
.sig-field .rule { height: 34px; border-bottom: 1px solid rgba(var(--wht), .4); }
.sig-field .cap { margin-top: 8px; font-size: 12.5px; letter-spacing: .04em; color: rgba(var(--wht), .55); }
.fill-line { display: inline-block; min-width: 160px; border-bottom: 1px solid rgba(var(--wht), .3); }

/* Document-kind label in an accordion summary */
.doc-kind { font-size: 13px; font-weight: 600; color: rgba(var(--wht), .45); margin-left: 8px; letter-spacing: 0; }

/* ================= Board portal (auth + app) ================= */
/* Auth screens (login / callback / loading / denied) */
[hidden] { display: none !important; }
.board-auth { min-height: calc(100dvh - 62px); display: grid; place-items: center; padding: clamp(24px, 6vw, 64px) 20px; position: relative; isolation: isolate; }
/* Board sign-in sits on the faint Rift Valley contours (assets/topo), like the Safari Kit page. */
.board-auth::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #fff; opacity: 0.08;
  -webkit-mask: url(/assets/topo/rift.svg) center / cover no-repeat;
  mask: url(/assets/topo/rift.svg) center / cover no-repeat;
}
.auth-card { width: min(460px, 100%); text-align: center; background: var(--coal-1); border: 1px solid rgba(var(--wht), .09); border-radius: 22px; padding: clamp(30px, 5vw, 48px); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.auth-logo { display: block; height: 40px; margin: 0 auto 22px; }
.auth-card h1, .gate-card h1, .auth-lead, .auth-note { text-wrap: pretty; }
.auth-card h1 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.auth-card .eyebrow { margin-bottom: 10px; }
.auth-lead { margin-top: 12px; color: rgba(var(--wht), .7); font-size: 15px; line-height: 1.6; }
.auth-note { margin-top: 18px; font-size: 12.5px; color: rgba(var(--wht), .45); line-height: 1.5; }
.auth-err { min-height: 18px; margin-top: 14px; color: #ff8a8a; font-size: 14px; }
.auth-actions { margin-top: 22px; display: flex; justify-content: center; gap: 12px; }
.google-btn { margin-top: 26px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; border: 1px solid rgba(var(--wht), .85); background: #fff; color: #1f1f1f; font: inherit; font-weight: 600; font-size: 15px; padding: 13px 18px; border-radius: 12px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.google-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.google-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.spinner { width: 34px; height: 34px; margin: 8px auto 20px; border-radius: 50%; border: 3px solid rgba(var(--wht), .18); border-top-color: var(--warm1); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Portal shell */
.portal-head { padding-bottom: 0; }
.portal-title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.portal-head .lead { margin-top: 12px; }
.fnote { margin-top: 8px; font-size: 13px; color: rgba(var(--wht), .55); line-height: 1.5; }

/* Document cards */
.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: clamp(24px, 3vw, 36px); }
.doc-card { display: flex; flex-direction: column; gap: 14px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; padding: 24px; }
.doc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.doc-card-title { font-size: 17px; font-weight: 800; line-height: 1.3; }
.doc-ver { font-size: 12px; font-weight: 700; color: rgba(var(--wht), .4); margin-left: 8px; }
.doc-kind-badge { flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(var(--wht), .08); color: rgba(var(--wht), .7); border: 1px solid rgba(var(--wht), .12); }
.doc-kind-badge.kind-annual { color: #ffcf9a; background: rgba(255,138,91,.14); border-color: rgba(255,138,91,.4); }
.doc-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.doc-count { font-size: 12.5px; font-weight: 600; color: rgba(var(--wht), .55); }
.doc-card-action { margin-top: auto; }
.doc-card-action .btn { width: 100%; }
.doc-signed { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #a6e3a1; background: rgba(143,169,110,.14); border: 1px solid rgba(143,169,110,.4); }
.doc-signed span { font-weight: 500; color: rgba(var(--wht), .6); font-size: 13px; }

/* Sign modal consent block */
.sign-consent { margin: 22px 0 20px; font-size: 13.5px; line-height: 1.6; color: rgba(var(--wht), .7); background: var(--coal-2); border: 1px solid rgba(var(--wht), .09); border-radius: 12px; padding: 14px 16px; text-align: left; }

/* Access gate (primer soft passphrase) */
.gate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 50% 25%, #17181b, #0a0b0d); }
html.board-unlocked .gate { display: none; }
html.pg-checking .gate { visibility: hidden; }
.gate-card { width: min(440px, 100%); text-align: center; background: var(--coal-1); border: 1px solid rgba(var(--wht), .1); border-radius: 22px; padding: clamp(30px,5vw,44px); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.gate-card h1 { font-size: clamp(24px,4vw,30px); font-weight: 800; }
.gate-card .eyebrow { margin-bottom: 10px; }
.gate-alt { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(var(--wht), .1); color: rgba(var(--wht), .65); font-size: 14px; line-height: 1.5; }
.gate-alt a { color: rgb(var(--wht)); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gate-input { width: 100%; margin-top: 22px; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(var(--wht), .2); background: var(--coal-2); color: rgb(var(--wht)); font: inherit; font-size: 16px; text-align: center; }
.gate-input:focus { outline: none; border-color: var(--warm1); }
.gate-card .google-btn { margin-top: 12px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); border: none; }

/* Full-screen video hero + band (board pages) */
.vhero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.vhero-short { min-height: 58vh; }
.vhero-guide { min-height: 76vh; } /* safari + guide pages (scripts/build-guides.py) */
.vhero-guide .scrim { background: linear-gradient(0deg, rgba(13,14,16,.97) 4%, rgba(13,14,16,.72) 45%, rgba(13,14,16,.3) 75%, rgba(13,14,16,.6) 100%); }
.vhero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.vhero .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(13,14,16,.97) 2%, rgba(13,14,16,.22) 55%, rgba(13,14,16,.62) 100%); }
.vhero .container { position: relative; z-index: 2; width: 100%; padding: 40px clamp(24px,4.5vw,60px) 56px; }
.vhero h1 { font-size: clamp(34px,6vw,60px); font-weight: 800; letter-spacing: -0.02em; }
.vhero p { margin-top: 14px; max-width: 60ch; }
.video-band { position: relative; min-height: 58vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.video-band > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.video-band .scrim { position: absolute; inset: 0; z-index: 1; background: rgba(10,11,13,.5); }
.video-band .container { position: relative; z-index: 2; }
.band-quote { font-size: clamp(22px,3.4vw,38px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; max-width: 18ch; margin: 0 auto; color: rgb(var(--wht)); text-shadow: 0 2px 30px rgba(0,0,0,.6); }

/* Sticky anchor subnav */
.subnav { position: sticky; top: 68px; z-index: 25; background: rgba(15,16,18,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--wht), .08); }
.subnav-links { display: flex; gap: clamp(14px,3vw,34px); overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { flex: 0 0 auto; padding: 14px 2px; font-size: 14px; font-weight: 600; color: rgba(var(--wht), .5); text-decoration: none; border-bottom: 2px solid transparent; transition: color var(--dur) var(--ease); }
.subnav-links a:hover { color: rgb(var(--wht)); }
.subnav-links a.active { color: rgb(var(--wht)); }
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 128px; }

/* Section head with an inline checkmark control */
.section-head.with-check { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: none; }

/* Read/sign slots */
.sign-slot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 150px; }
.sign-slot .btn { white-space: nowrap; }
.sign-slot .doc-signed { width: auto; }
.doc-print { font-size: 13px; font-weight: 600; color: #ffcf9a; text-decoration: underline; text-underline-offset: 3px; }
.doc-print:hover { color: rgb(var(--wht)); }
.doc-print:focus-visible { outline: 2px solid #ffcf9a; outline-offset: 3px; border-radius: 4px; }

/* Governance document panels (portal) */
.gov-docs { margin-top: clamp(24px,3vw,36px); display: flex; flex-direction: column; gap: 14px; }
.gov-doc { background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; overflow: hidden; }
.gov-doc > summary { list-style: none; cursor: pointer; padding: 22px clamp(20px,3vw,28px); display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: clamp(16px,2vw,19px); }
.gov-doc > summary::-webkit-details-marker { display: none; }
.gov-doc > summary:hover { color: var(--warm1); }
.gov-doc .gov-status { margin-left: auto; font-size: 13px; font-weight: 700; color: #a6e3a1; letter-spacing: .02em; }
.gov-doc .chev { flex: 0 0 auto; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur) var(--ease); }
.gov-doc[open] > summary .chev { transform: rotate(180deg); }
.gov-body { padding: 0 clamp(20px,3vw,28px) clamp(22px,3vw,28px); }
.gov-body > *:first-child { margin-top: 0; }
.gov-body p { color: rgba(var(--wht), .78); font-size: 15px; line-height: 1.7; margin-top: 14px; }
.gov-body h4 { font-size: 15px; font-weight: 800; margin-top: 22px; color: rgb(var(--wht)); }
.gov-body ul { margin: 12px 0 0; padding-left: 20px; }
.gov-body li { color: rgba(var(--wht), .78); font-size: 15px; line-height: 1.65; margin-top: 8px; }
.gov-body li strong, .gov-body p strong { color: rgb(var(--wht)); }
.gov-body .meta { margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(var(--wht), .08); font-size: 12.5px; color: rgba(var(--wht), .5); }
.gov-body .sign-slot { margin-top: 20px; flex-direction: row; align-items: center; gap: 16px; }

/* Inline hover tooltip (e.g. "Robert's Rules of Order") */
.tip { position: relative; color: rgb(var(--wht)); border-bottom: 1px dotted rgba(var(--wht), .55); cursor: help; }
.tip-pop { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(320px, 78vw); background: var(--coal-1); border: 1px solid rgba(var(--wht), .16); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 400; line-height: 1.55; color: rgba(var(--wht), .85); box-shadow: 0 16px 44px rgba(0,0,0,.55); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); z-index: 60; pointer-events: none; }
.tip:hover .tip-pop, .tip:focus .tip-pop, .tip:focus-visible .tip-pop { opacity: 1; visibility: visible; transform: translateY(0); }

/* Board roster — team-style photo cards with an initials fallback */
.m-avatar { width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; border: 1px solid rgba(var(--wht), .1); box-shadow: 0 18px 44px rgba(0,0,0,.45); display: grid; place-items: center; font-size: clamp(48px, 8vw, 72px); font-weight: 800; letter-spacing: .02em; color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.roster-status { margin-top: 8px; font-size: 12.5px; color: rgba(var(--wht), .5); }
.roster-status.done { color: #a6e3a1; font-weight: 600; }

/* ================= Team page ================= */
.board-note { display: inline-block; margin-top: 24px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .6); padding: 10px 20px; border: 1px solid rgba(var(--wht), .18); border-radius: 999px; }
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 5vw, 52px); }
.team-member { display: flex; flex-direction: column; min-width: 0; }
.team-member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; border: 1px solid rgba(var(--wht), .1); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.team-member .m-name { margin-top: 16px; font-weight: 800; font-size: 19px; }
.team-member .m-title { margin-top: 4px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--warm1); }

/* Clickable team members → bio modal */
.team-member[data-modal] { cursor: pointer; }
.team-member[data-modal]:focus-visible { outline: none; }
.team-member .m-photo { position: relative; border-radius: 18px; transition: transform var(--dur) var(--ease); }
.team-member[data-modal] .m-photo img { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.team-member[data-modal]:hover .m-photo,
.team-member[data-modal]:focus-visible .m-photo { transform: translateY(-4px); }
.team-member[data-modal]:hover .m-photo img,
.team-member[data-modal]:focus-visible .m-photo img { border-color: var(--warm1); box-shadow: 0 22px 52px rgba(0,0,0,.5); }
/* "Read bio" overlaid on the bottom of the photo */
.team-member .m-readbio { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 32px 16px 14px; border-radius: 0 0 18px 18px; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0)); color: rgb(var(--wht)); font-size: 13px; font-weight: 700; letter-spacing: .02em; transition: color var(--dur) var(--ease); pointer-events: none; }
.team-member[data-modal]:hover .m-readbio,
.team-member[data-modal]:focus-visible .m-readbio { color: var(--warm1); }

/* Bio modal card — large photo on the left, text on the right */
.modal .card.bio-card { text-align: left; width: min(860px, 95vw); display: flex; align-items: stretch; gap: clamp(20px, 3vw, 32px); }
.card.bio-card .bio-photo { flex: 0 0 auto; align-self: stretch; width: clamp(260px, 44vw, 400px); height: auto; border-radius: 16px; object-fit: cover; border: 1px solid rgba(var(--wht), .14); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.card.bio-card .bio-body { flex: 1 1 auto; min-width: 0; }
.card.bio-card .bio-name { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.card.bio-card .bio-title { margin-top: 4px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--warm1); }
.card.bio-card .bio-text { margin-top: 18px; }
.card.bio-card .bio-text p { text-align: left; color: rgba(var(--wht), .82); font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.card.bio-card .bio-text p:last-child { margin-bottom: 0; }
.card.bio-card .bio-text a { color: rgb(var(--wht)); text-decoration: underline; text-decoration-color: rgba(var(--wht), .4); text-underline-offset: 3px; }
.card.bio-card .bio-text a:hover { text-decoration-color: var(--warm1); }
@media (max-width: 560px) {
  .modal .card.bio-card { flex-direction: column; align-items: stretch; }
  .card.bio-card .bio-photo { align-self: center; width: clamp(150px, 46vw, 200px); aspect-ratio: 3 / 4; }
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { gap: 16px; } }

/* ================= Annual report ================= */
.ar-screen { position: relative; min-height: 100svh; display: flex; align-items: center; padding: clamp(96px, 12vh, 140px) 0 clamp(64px, 9vh, 110px); overflow: hidden; }
.ar-screen > .container { position: relative; z-index: 2; width: 100%; max-width: none; padding-inline: clamp(24px, 4.5vw, 60px); }
.ar-screen:nth-of-type(even) { background: var(--coal-2); }
/* Two screens sit on the brand topo (assets/topo) instead of grey, like the homepage and board pages. */
.ar-screen.ar-topo { background: transparent; }
.ar-screen .section-title { margin-top: 0; }
.ar-screen .lead { max-width: 62ch; margin-top: 16px; }

.ar-cover { align-items: flex-end; }
.ar-cover > video, .ar-screen > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: center/cover no-repeat; z-index: 0; }
.ar-cover .scrim, .ar-ahead .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(13,14,16,.96) 0%, rgba(13,14,16,.4) 60%, rgba(13,14,16,.6) 100%); }
.ar-cover h1 { font-size: clamp(44px, 8vw, 104px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 10px; }
.ar-cover .lead { font-size: clamp(17px, 2vw, 22px); }
.ar-years { margin-bottom: clamp(28px, 5vh, 48px); }
.ar-years a, .ar-years span { color: rgba(var(--wht), .7); font-weight: 700; font-size: 14px; padding: 8px 22px; border-radius: 999px; text-decoration: none; }
.ar-years a.active { background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.ar-years .disabled { color: rgba(var(--wht), .35); cursor: default; }
.ar-scroll { display: inline-block; margin-top: 32px; color: rgba(var(--wht), .7); font-weight: 600; font-size: 14px; text-decoration: none; }
.ar-scroll:hover { color: rgb(var(--wht)); }

.ar-letter-grid { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 68ch); gap: clamp(32px, 6vw, 90px); align-items: start; justify-content: center; }
.ar-letter-photo { position: sticky; top: 110px; }
.ar-letter-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; border: 1px solid rgba(var(--wht), .12); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.ar-letter-who { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.ar-letter-who b { font-size: 16px; }
.ar-letter-who span { font-size: 13px; color: var(--warm1); font-weight: 700; }
.ar-letter-body p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; color: rgba(var(--wht), .84); margin: 0 0 18px; }
.ar-letter-body .ar-salute { margin-top: 18px; color: rgb(var(--wht)); font-weight: 700; }
.ar-letter-body .ar-signoff { margin: 28px 0 0; }
.ar-signature { font-family: 'Caveat', cursive; font-size: clamp(40px, 5vw, 56px); color: var(--warm1); line-height: 1.1; margin: 4px 0 6px; }
.ar-letter-body .ar-sig-name { color: rgb(var(--wht)); font-weight: 700; line-height: 1.5; }
.ar-sig-name span { font-weight: 500; color: rgba(var(--wht), .6); font-size: 15px; }
@media (max-width: 820px) {
  .ar-letter-grid { grid-template-columns: 1fr; }
  .ar-letter-photo { position: static; max-width: 260px; }
}

.ar-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 2.5vw, 24px); margin-top: clamp(36px, 6vh, 64px); }
.ar-stat { container-type: inline-size; padding: clamp(24px, 3vw, 36px); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 20px; }
.ar-stat .n { font-size: min(72px, 19cqi); white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: linear-gradient(155deg, var(--warm1), var(--warm2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-stat .l { margin-top: 14px; font-size: 15px; line-height: 1.5; color: rgba(var(--wht), .75); }

.ar-timeline { list-style: none; margin: clamp(32px, 5vh, 56px) 0 0; padding: 0; max-width: 820px; border-left: 2px solid rgba(var(--wht), .12); }
.ar-timeline li { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 8px 24px; padding: 0 0 clamp(24px, 4vh, 36px) 28px; }
.ar-timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 0 0 4px var(--ink); }
.ar-timeline .when { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--warm1); padding-top: 2px; }
.ar-timeline .what { display: flex; flex-direction: column; gap: 6px; }
.ar-timeline .what b { font-size: clamp(17px, 1.9vw, 20px); }
.ar-timeline .what span { color: rgba(var(--wht), .72); line-height: 1.6; }
@media (max-width: 600px) { .ar-timeline li { grid-template-columns: 1fr; } }

.ar-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(14px, 2vw, 22px); margin: clamp(32px, 5vh, 52px) 0 clamp(28px, 4vh, 40px); }
.ar-product { display: flex; flex-direction: column; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 18px; overflow: hidden; text-decoration: none; color: rgb(var(--wht)); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ar-product:hover { transform: translateY(-4px); border-color: rgba(var(--wht), .25); }
.ar-product-img { aspect-ratio: 1; background: #f2f0ed; display: grid; place-items: center; }
.ar-product-img img { width: 100%; height: 100%; object-fit: contain; }
.ar-product-t { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.ar-product-t b { font-size: 15px; }
.ar-product-t span { font-size: 13px; color: rgba(var(--wht), .6); }

.ar-financials .facts { margin-top: clamp(28px, 4vh, 40px); }
.ar-financials .finance { max-width: none; }
.ar-fine { margin-top: 28px; font-size: 13px; color: rgba(var(--wht), .55); }

.ar-ahead .container, .ar-thanks .container { text-align: left; }
.ar-thanks { text-align: center; justify-content: center; }
.ar-thanks .container { text-align: center; }
.ar-thanks .lead { margin-inline: auto; }
.ar-ahead .scrim { background: linear-gradient(90deg, rgba(13,14,16,.92) 0%, rgba(13,14,16,.75) 55%, rgba(13,14,16,.45) 100%); }

/* Annual report: sticky table of contents */
html:has(.ar-toc) { scroll-behavior: smooth; }
.ar-toc ~ .ar-screen[id] { scroll-margin-top: 120px; }
.ar-toc { position: sticky; top: 68px; z-index: 20; background: rgba(13,14,16,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--wht), .1); }
.ar-toc-inner { display: flex; gap: 4px; justify-content: center; overflow-x: auto; scrollbar-width: none; padding: 9px clamp(16px, 4.5vw, 60px); }
.ar-toc-inner::-webkit-scrollbar { display: none; }
.ar-toc a { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: rgba(var(--wht), .5); text-decoration: none; white-space: nowrap; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.ar-toc a:hover { color: rgb(var(--wht)); background: rgba(var(--wht), .06); }
.ar-toc a.active { color: rgb(var(--wht)); background: none; }
@media (max-width: 900px) { .ar-toc-inner { justify-content: flex-start; } }
.ar-toc ~ .ar-screen { min-height: calc(100svh - 122px); padding-top: clamp(56px, 8vh, 96px); }

/* Annual report: scroll animations */
.ar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--warm1), var(--warm2)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.ar-arrow { display: inline-block; margin-left: 4px; animation: ar-bob 1.8s ease-in-out infinite; }
@keyframes ar-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.ar-reveal { opacity: 0; transform: translateY(16px); transition: opacity .35s ease var(--d, 0ms), transform .35s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.ar-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ar-arrow { animation: none; }
  .ar-reveal { opacity: 1; transform: none; transition: none; }
}
.fin-meter.ar-reveal .meter-seg { width: 0; transition-duration: 1.1s; transition-delay: calc(var(--d, 0ms) + 250ms); }
.fin-meter.ar-reveal.in .meter-seg { width: var(--pct, 0%); }

/* ================= Wild Eyes page — app sections (ported from wildeyes.app) ================= */
.we-land { background: var(--coal-2); }
.we-choose { position: relative; z-index: 15; background: rgba(15,16,18,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--wht), .1); box-shadow: 0 14px 22px -12px rgba(0,0,0,.55); }
.we-choose { isolation: isolate; overflow: hidden; }
.we-choose::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #fff; opacity: 0.07; -webkit-mask: url(/assets/topo/drakensberg.svg) center 42% / 100% auto no-repeat; mask: url(/assets/topo/drakensberg.svg) center 42% / 100% auto no-repeat; }
.we-choose-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 10px clamp(16px, 4.5vw, 60px); }
.we-choose-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.we-choose-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.we-tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .12); border-radius: 999px; }
.we-tabs .rtab { min-height: 42px; padding: 0 30px; font-size: 14.5px; }
.we-choose-cta { white-space: nowrap; }
@media (max-width: 640px) { .we-choose-label { display: none; } .we-tabs .rtab { padding: 0 12px; font-size: 13px; white-space: normal; line-height: 1.15; } .we-choose-cta { display: none; } .we-choose-left, .we-tabs { width: 100%; } .we-tabs .rtab { flex: 1; } }

.we-rv { opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.we-rv.in { opacity: 1; transform: none; }

/* Sections run on one dark colour; the topo sections (What you get, Partners) split them up.
   How it works sits on the money-loop strip's own ground colour (ink), and the strip's earth is
   coal, so it runs straight on into the screenshots below — no seam. */
.we-land .section.we-problem { background: var(--ink); }
.we-land .section.topo-section { background: transparent; }
/* How it works fills the screen below the header + role bar; the copy keeps its normal top
   padding (same place in both role views), the strip follows, spare height goes below in the
   strip's earth colour. */
.we-problem.has-strip { min-height: calc(100svh - 68px - var(--we-choose-h, 0px)); display: flex; flex-direction: column; padding-bottom: 0; }
.we-problem.has-strip::after { content: ""; flex: 1 1 0; background: var(--coal-2); }
.we-problem.has-strip > .container { width: 100%; }
/* Room above "See it in action": Marine tints the showcase, so its top edge shows. 56px (as on
   phones), in both views so switching never moves the heading. */
.we-problem.has-strip + .we-showcase { padding-top: 56px; }
.we-showcase { padding-bottom: 24px; }
@media (max-width: 820px) { .we-problem.has-strip { min-height: 0; display: block; padding-bottom: clamp(64px, 9vw, 120px); } .we-problem.has-strip::after { display: none; } }
.we-problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.we-problem-copy .lead { margin-top: 16px; }
.we-problem-copy .lead strong { color: rgb(var(--wht)); }
.we-problem-media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; border: 1px solid rgba(var(--wht), .1); box-shadow: 0 24px 60px rgba(0,0,0,.45); display: block; }
@media (max-width: 820px) { .we-problem-grid { grid-template-columns: 1fr; } }

.we-showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 36px); }
.we-habitat { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid rgba(var(--wht), .14); background: rgba(var(--wht), .05); }
.we-habitat button { min-height: 34px; padding: 0 18px; border: none; border-radius: 7px; background: transparent; color: rgba(var(--wht), .65); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.we-habitat button[aria-selected="true"] { background: #4e9a5a; color: rgb(var(--wht)); }
.we-habitat button:nth-child(2)[aria-selected="true"] { background: #2c7da6; }
.we-showcase.marine { background: linear-gradient(180deg, #0c1a22, #0a1418) !important; }
.we-gallery { display: flex; gap: clamp(16px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px clamp(16px, 4.5vw, 60px) 18px; scroll-padding-inline: clamp(16px, 4.5vw, 60px); scrollbar-width: thin; scrollbar-color: var(--warm1) transparent; }
.we-gallery::-webkit-scrollbar { height: 8px; }
.we-gallery::-webkit-scrollbar-thumb { background: var(--warm1); border-radius: 999px; }
.we-gshot { scroll-snap-align: start; flex: 0 0 auto; width: min(86vw, 820px); margin: 0; }
.we-gframe { background: #16171a; border: 1px solid rgba(var(--wht), .12); border-radius: 14px; overflow: hidden; }
.we-gbar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgba(var(--wht), .08); min-height: 36px; box-sizing: border-box; }
.we-gdot { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--wht), .18); flex: none; }
.we-gurl { margin-left: 8px; font-size: 12px; color: rgba(var(--wht), .5); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.we-gframe img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; background: #0d0e10; }
.we-gshot.phone { width: calc((min(86vw, 820px) * .625 + 36px) * 9 / 19.5); }
.we-gframe.phone { height: calc(min(86vw, 820px) * .625 + 36px); display: flex; flex-direction: column; border-radius: 26px; }
.we-gframe.phone .we-gbar { justify-content: center; position: relative; flex: none; }
.we-gframe.phone .we-gbar::after { content: ""; width: 70px; height: 16px; background: #0a0b0c; border-radius: 0 0 10px 10px; position: absolute; top: 0; }
.we-gframe.phone img { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; object-fit: cover; object-position: top; }
.we-gcap { margin: 14px 4px 0; display: flex; flex-direction: column; gap: 3px; }
.we-gcap b { font-size: 15.5px; }
.we-gcap span { font-size: 13.5px; color: rgba(var(--wht), .62); line-height: 1.5; }
.we-gcap-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 13.5px; color: rgb(var(--wht)); text-decoration: underline; text-underline-offset: 3px; }
/* "Try a free lesson" egg: rests, then rocks on its base like it's about to hatch; rocks continuously on hover. */
@keyframes weEggWobble { 0%, 68%, 100% { transform: rotate(0deg); } 72% { transform: rotate(-14deg); } 76% { transform: rotate(11deg); } 80% { transform: rotate(-8deg); } 84% { transform: rotate(5deg); } 88% { transform: rotate(-2deg); } }
@keyframes weEggWobbleFast { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.we-gcap-link svg { display: block; transform-origin: 50% 88%; animation: weEggWobble 3.4s ease-in-out infinite; }
.we-gcap-link:hover svg, .we-gcap-link:focus-visible svg { animation: weEggWobbleFast .45s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .we-gcap-link svg { animation: none; } }
.we-gscroll-hint { margin-top: 10px; font-size: 13px; font-weight: 600; color: rgba(var(--wht), .5); }

.we-timeline { list-style: none; margin: 0; padding: 0; max-width: 680px; }
.we-tl-step { position: relative; display: flex; gap: 20px; padding-bottom: 34px; opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
.we-tl-step.in { opacity: 1; transform: none; }
.we-tl-step:last-child { padding-bottom: 0; }
.we-tl-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: rgba(var(--wht), .12); }
.we-tl-node { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.we-tl-node.bonus { background: #ffb27a; color: #3a2213; }
.we-tl-body { padding-top: 7px; }
.we-tl-body h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.we-tl-bonus { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,178,122,.16); color: #ffb27a; }
.we-tl-body p { margin: 0; color: rgba(var(--wht), .7); font-size: 15px; line-height: 1.6; }

.we-split { max-width: 980px; }
.we-split-emph { display: flex; margin-bottom: 9px; }
.we-split-emph .to { flex: 75; font-size: 13px; font-weight: 800; color: var(--warm1); padding-bottom: 7px; border-bottom: 2px solid var(--warm1); }
.we-split-emph .rest { flex: 25; }
.we-splitbar { display: flex; height: 68px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(var(--wht), .1); margin-bottom: 16px; }
.we-splitbar .seg { display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; line-height: 1; color: rgb(var(--wht)); }
.we-splitbar .seg small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 5px; opacity: .9; }
.we-splitbar .a { flex: 50; background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.we-splitbar .b { flex: 25; background: #ffb27a; color: #3a2213; }
.we-splitbar .c { flex: 25; background: rgba(var(--wht), .18); }
.we-kicker { color: rgba(var(--wht), .62); max-width: 62ch; line-height: 1.6; }
.we-split-emph .rest { text-align: center; font-size: 13px; font-weight: 800; color: rgba(var(--wht), .55); padding-bottom: 7px; border-bottom: 2px solid rgba(var(--wht), .18); margin-left: 6px; }

/* Wild Eyes strip: the animated explainer, full-bleed under the opportunity copy. Phones get the stacked
   portrait version (assets/money-loop-portrait-dark.html, picked in wild-eyes.html); its last panel's
   coal earth runs straight into the screenshots section, so no bottom padding there. */
.we-problem.has-strip .we-problem-media { display: none; }
.we-strip { width: 100%; aspect-ratio: 4 / 1; margin-top: clamp(28px, 4vw, 44px); }
.we-strip iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
@media (max-width: 820px) {
  .we-strip { aspect-ratio: 100 / 193; margin-top: 24px; }
  .we-problem.has-strip { padding-bottom: 0; }
  .we-problem.has-strip + .we-showcase { padding-top: 56px; }
}

/* Earnings calculator */
.we-calc { max-width: 980px; margin: 28px auto 0; padding: 28px; border-radius: 18px; background: rgba(var(--wht), .05); border: 1px solid rgba(var(--wht), .1); }
.we-calc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.we-calc h3 { font-size: 22px; font-weight: 800; margin: 0; }
.we-calc-controls { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.we-calc-chips { gap: 6px !important; }
.we-calc-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .55); margin-bottom: 8px; }
.we-calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.we-calc-chips button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(var(--wht), .18); background: transparent; color: rgb(var(--wht)); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.we-calc-chips button[aria-pressed="true"] { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; }
.we-calc-result { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(var(--wht), .1); }
.we-calc-totals { display: flex; align-items: baseline; gap: 28px; white-space: nowrap; }
.we-calc-num { font-weight: 900; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--warm1); font-variant-numeric: tabular-nums; }
.we-calc-num.yr { color: rgb(var(--wht)); }
.we-calc-num span { font-size: .26em; font-weight: 700; letter-spacing: 0; margin-left: 6px; color: rgb(var(--wht)); }
.we-calc-sub { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(var(--wht), .6); margin-top: 12px; }
.we-calc-info { position: relative; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; color: rgba(var(--wht), .6); border-radius: 50%; border: 1px solid currentColor; font-weight: 800; font-size: 11px; font-style: italic; cursor: help; }
.we-calc-tip b { display: block; font-weight: 800; margin-bottom: 6px; }
.we-calc-tip { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 12px 14px; border-radius: 10px; background: #fff; color: #1c1610; font-style: normal; font-weight: 500; font-size: 13px; line-height: 1.5; text-align: left; opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease); z-index: 5; pointer-events: none; }
.we-calc-info:hover .we-calc-tip, .we-calc-info:focus .we-calc-tip { opacity: 1; visibility: visible; }
@media (max-width: 820px) {
  .we-calc { padding: 22px; }
  /* phones: month and year stacked, each number large with its label underneath */
  .we-calc-totals { flex-direction: column; align-items: flex-start; gap: 16px; }
  .we-calc-num { font-size: clamp(36px, 13vw, 64px); }
  .we-calc-num span { display: block; margin: 6px 0 0; font-size: 13px; letter-spacing: .02em; }
}

/* Partners in conservation */
.we-partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.we-partner { padding: 26px 28px; border-radius: 18px; background: rgba(var(--wht), .05); border: 1px solid rgba(var(--wht), .1); }
.we-partner-logo { height: 110px; display: flex; align-items: center; margin-bottom: 16px; }
.we-partner-logo img { height: 80px; width: auto; max-width: 100%; object-fit: contain; opacity: .9; }
.we-partner-fact { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 8px; }
.we-partner p:last-child { margin: 0; color: rgba(var(--wht), .7); line-height: 1.6; }
@media (max-width: 820px) { .we-partner-grid { grid-template-columns: 1fr; } }

.we-faq-list { max-width: 820px; margin: 0 auto; }
.we-faq-item { border-top: 1px solid rgba(var(--wht), .1); }
.we-faq-item:last-child { border-bottom: 1px solid rgba(var(--wht), .1); }
.we-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-weight: 700; font-size: 17px; }
.we-faq-item summary::-webkit-details-marker { display: none; }
.we-faq-item summary::after { content: "+"; font-weight: 800; font-size: 26px; line-height: 1; color: var(--warm1); flex: none; }
.we-faq-item[open] summary::after { content: "\2013"; }
.we-faq-item p { margin: 0 4px 22px; color: rgba(var(--wht), .7); font-size: 15px; line-height: 1.65; max-width: 74ch; }
.we-faq-item p a { color: var(--warm1); font-weight: 600; }

.we-close { position: relative; overflow: hidden; text-align: center; min-height: 70vh; display: flex; align-items: center; }
.we-close video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.we-close .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,14,16,.78), rgba(13,14,16,.7)); }
.we-close .container { position: relative; z-index: 2; }
.we-close .section-title { max-width: 40ch; margin: 0 auto; text-wrap: balance; }
.we-close .lead { max-width: 56ch; margin: 18px auto 28px; text-wrap: balance; }

@media (prefers-reduced-motion: reduce) { .we-rv, .we-tl-step { opacity: 1; transform: none; transition: none; } }
.we-timeline, .we-split { margin-inline: auto; }
.we-kicker { margin-inline: auto; text-align: center; }
.facts.facts-more { margin-top: clamp(16px, 2.5vw, 24px); }
.fact-addr { margin-top: 10px; font-style: normal; font-size: 14px; line-height: 1.55; color: rgba(var(--wht), .72); }


/* Board dashboard: role section — confirmation button sits bottom-right, beside the closing copy. */
.role-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); }
.role-foot .lead { flex: 1 1 520px; max-width: 1040px; margin: 0; text-wrap: pretty; }
.role-foot .sign-slot { align-items: flex-end; text-align: right; }
/* Board Meetings: next meeting card (when + agenda), past meetings as accordions */
.meet-card { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(var(--wht), .1); border-radius: 8px; background: rgba(var(--wht), .03); }
/* The meeting details stay in view while the agenda or minutes scroll past (below the nav + section bar). */
.meet-when { position: sticky; top: 140px; align-self: start; }
.meet-when h3 { margin: 6px 0 14px; font-size: clamp(22px, 2.4vw, 28px); }
.meet-facts { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: rgb(var(--wht)); }
.meet-facts span + span { color: rgba(var(--wht), .72); font-weight: 600; }
.meet-note { margin-top: 18px; font-size: 14px; line-height: 1.6; color: rgba(var(--wht), .66); }
.meet-agenda-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.meet-agenda .meet-agenda-head h4 { margin: 0; }
.meet-agenda-head .ag-copy { width: 32px; height: 32px; margin: -6px -8px -6px 0; vertical-align: 0; }
.meet-agenda-head .ag-copy svg { width: 16px; height: 16px; }
.meet-agenda h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--warm1); }
.agenda { list-style: none; counter-reset: ag; margin: 0; padding: 0; }
.agenda > li { counter-increment: ag; position: relative; padding: 12px 0 12px 40px; border-top: 1px solid rgba(var(--wht), .08); }
.agenda > li:first-child { border-top: 0; padding-top: 0; }
.agenda > li::before { content: counter(ag); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(var(--wht), .08); color: rgb(var(--wht)); }
.agenda > li:first-child::before { top: 0; }
.ag-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ag-title { font-weight: 800; }
.ag-mins { font-size: 12.5px; color: rgba(var(--wht), .55); white-space: nowrap; }
.ag-lead { font-size: 12.5px; color: var(--warm1); font-weight: 700; margin-top: 2px; }
.agenda ul { margin: 8px 0 0; padding-left: 18px; color: rgba(var(--wht), .72); font-size: 14px; line-height: 1.6; }
.ag-motion { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--warm1); background: rgba(var(--wht), .04); font-size: 14px; line-height: 1.55; }
.ag-motion b { color: var(--warm1); margin-right: 6px; }
.ag-total { margin-top: 12px; font-size: 13px; color: rgba(var(--wht), .55); }
.meet-periods { align-self: flex-end; }
/* Key facts + Filings & records: two accordions straight under the role, so a slim section. */
.records-section { padding-top: 0; }
.records-section .gov-body .facts + .facts { margin-top: 12px; }
.records-section .gov-status { font-weight: 600; color: rgba(var(--wht), .55); background: none; }
.gov-group-body { padding: 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px); }
.records-section .gov-doc { scroll-margin-top: 130px; }
.key-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); margin: 0; }
.key-facts > div { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 4px 16px; padding: 13px 0; border-top: 1px solid rgba(var(--wht), .08); }
.key-facts > div:nth-child(-n+2) { border-top: 0; }
.key-facts dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--wht), .5); padding-top: 2px; }
.key-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(var(--wht), .88); }
.key-facts dd b { font-size: 17px; letter-spacing: .01em; }
.key-facts .ein-copy { vertical-align: -2px; }
@media (max-width: 760px) { .key-facts { grid-template-columns: 1fr; } .key-facts > div:nth-child(2) { border-top: 1px solid rgba(var(--wht), .08); } .key-facts > div { grid-template-columns: 1fr; } }
.doc-links-compact .doc-link { padding: 14px 16px; align-items: center; }
.doc-links-compact .dt b { font-size: 15px; }
.docs-intro { padding: clamp(8px, 1.5vw, 14px) 0 0; }
.docs-intro-title { margin: 8px 0 0; font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -0.01em; }
.docs-intro .lead { max-width: 78ch; margin-top: 12px; }
.docs-intro .lead b { color: rgb(var(--wht)); }
.docs-cards { margin: clamp(18px, 2.4vw, 26px) 0 clamp(22px, 3vw, 32px); }
.year-tabs button.empty { color: rgba(var(--wht), .25); cursor: default; }
.year-tabs button.empty:hover { color: rgba(var(--wht), .25); background: none; }
@media (max-width: 760px) { .meet-periods { flex-wrap: wrap; } }
.meet-empty { color: rgba(var(--wht), .6); font-size: 15px; }
.meet-min-status { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(var(--wht), .08); color: rgba(var(--wht), .75); }
.meet-min-status.ok { background: rgba(76, 190, 120, .16); color: #7fdc9f; }
.meet-minutes { font-size: 15px; line-height: 1.7; color: rgba(var(--wht), .84); }
/* Minutes template (built from the agenda until real minutes are posted) */
.mt-item { padding: 14px 0; border-top: 1px solid rgba(var(--wht), .08); }
.mt-title { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.mt-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(var(--wht), .08); }
.mt-sub { margin: 12px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--wht), .5); }
.mt-lines span { display: block; height: 26px; border-bottom: 1px dashed rgba(var(--wht), .16); }
.mt-blank { display: inline-block; min-width: 120px; height: 1em; border-bottom: 1px dashed rgba(var(--wht), .3); vertical-align: -2px; margin-left: 4px; }
.mt-table .mt-blank { min-width: 100%; }
.mt-box { display: inline-block; width: 14px; height: 14px; border: 1.5px solid rgba(var(--wht), .45); border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.mt-fields { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; font-size: 14px; color: rgba(var(--wht), .78); }
.mt-head { margin: 0 0 6px; }
.mt-approve { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(var(--wht), .08); }
.mt-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.mt-table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .5); padding: 6px 8px; border-bottom: 1px solid rgba(var(--wht), .12); }
.mt-table td { padding: 9px 8px; border-bottom: 1px solid rgba(var(--wht), .06); color: rgba(var(--wht), .84); }
.mt-table td:not(:first-child), .mt-table th:not(:first-child) { width: 1%; white-space: nowrap; }
.mt-table td:nth-child(2):last-child, .mt-table th:nth-child(2):last-child, .mt-wide2 td:nth-child(2), .mt-wide2 th:nth-child(2) { width: auto; white-space: normal; }
.mt-motion { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--warm1); background: rgba(var(--wht), .04); font-size: 14px; line-height: 1.55; }
.mt-motion b { color: var(--warm1); margin-right: 6px; }
@media (max-width: 820px) { .meet-card { grid-template-columns: 1fr; } .meet-when { position: static; } }
@media (max-width: 640px) { .role-foot .sign-slot { align-items: flex-start; text-align: left; } }

/* Mission statement callout (board primer + dashboard) — large line-art globe beside the statement */
.mission-card { display: flex; align-items: center; gap: clamp(20px, 3.5vw, 40px); margin: clamp(20px, 3vw, 28px) 0 clamp(28px, 4vw, 40px); padding: clamp(24px, 3.5vw, 40px);
  background: radial-gradient(120% 140% at 0% 50%, rgba(255,138,91,.14), rgba(255,84,112,.04) 45%, transparent 70%), var(--coal-1);
  border: 1px solid rgba(var(--wht), .1); border-radius: 20px; }
.mission-globe { flex: 0 0 auto; width: clamp(96px, 13vw, 136px); aspect-ratio: 1; display: grid; place-items: center; }
.mission-globe svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: url(#mgGrad); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mission-globe svg circle { stroke-width: 2.2; }
.mission-globe svg .land { fill: rgba(255,138,91,.22); stroke-width: 1.4; }
.mission-body { min-width: 0; }
.mission-card .eyebrow { margin-bottom: 10px; }
.mission-card p { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; color: rgb(var(--wht)); }
@media (max-width: 560px) { .mission-card { flex-direction: column; align-items: flex-start; } .mission-globe { width: 72px; } }

/* Annual report: rainforest valley behind "2025 in numbers" — light at the top, fading to the page colour below */
.ar-numbers .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,14,16,.78) 0%, rgba(13,14,16,.5) 38%, rgba(13,14,16,.55) 72%, var(--ink) 100%); }
.ar-numbers .ar-stat { background: rgba(28,29,32,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* One sentence per line; long lines may still wrap on narrow screens. */
.band-quote { max-width: none; text-wrap: balance; }
.band-quote span { display: block; }

/* Team: two-word area of expertise under each title */
.team-member .m-focus, .card.bio-card .bio-focus { margin-top: 3px; font-size: 13px; font-weight: 500; color: rgba(var(--wht), .6); }

/* Board-only figures (board portal, loaded after sign-in) */
.board-fin { margin-top: clamp(32px, 4vw, 48px); }
.board-fin h3 { margin: 0 0 4px; }
.board-fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.board-fin-card { background: rgba(var(--wht), .04); border: 1px solid rgba(var(--wht), .1); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.board-fin-card .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .55); margin-bottom: 8px; }
.board-fin-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(var(--wht), .06); font-variant-numeric: tabular-nums; }
.board-fin-row span { color: rgba(var(--wht), .75); }
.board-fin-note { font-size: 12.5px; color: rgba(var(--wht), .5); padding-bottom: 6px; }

/* ---------- Sponsored program page (imvelo.html) ---------- */
.imv-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.imv-copy .lead { margin-top: 18px; }
.imv-h3 { margin-top: clamp(28px, 3.5vw, 40px); font-size: clamp(20px, 2.2vw, 24px); font-weight: 800; }
.imv-give { position: sticky; top: 92px; scroll-margin-top: 92px; }
.imv-give-card { background: linear-gradient(180deg, var(--coal-1), var(--coal-2)); border: 1px solid rgba(var(--wht), .1); border-radius: 22px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 80px rgba(0,0,0,.45); text-align: center; }
.imv-give-card h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 18px; }
.imv-label { display: block; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .6); margin-bottom: 8px; }
.imv-select { position: relative; margin-bottom: 18px; }
.imv-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid rgba(var(--wht), .7); border-bottom: 2px solid rgba(var(--wht), .7); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.imv-select select { width: 100%; appearance: none; -webkit-appearance: none; padding: 14px 40px 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--wht), .16); background: rgba(var(--wht), .06); color: rgb(var(--wht)); font: inherit; font-size: 15px; cursor: pointer; }
.imv-select select:focus { outline: none; border-color: var(--warm1); }
.imv-select option { color: var(--ink); }
.imv-give-card .toggle { display: flex; width: max-content; }
.imv-sponsor-note { margin-top: 10px; }
.imv-sponsor-note a { color: rgba(var(--wht), .75); }
.imv-programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.imv-prog { display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; font: inherit; color: rgb(var(--wht)); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; padding: 20px 22px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.imv-prog:hover, .imv-prog:focus-visible { transform: translateY(-3px); border-color: var(--warm1); outline: none; }
.imv-prog b { font-size: 16px; font-weight: 800; line-height: 1.3; }
.imv-prog span { font-size: 14px; line-height: 1.55; color: rgba(var(--wht), .7); }
.imv-prog span::after { content: "Give →"; display: block; margin-top: 10px; color: var(--warm1); font-weight: 700; font-style: normal; }
.imv-prog .imv-tbd { font-style: italic; color: rgba(var(--wht), .45); }
.imv-programs-photo { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.imv-prog-photo { padding: 0 0 22px; overflow: hidden; }
.imv-prog-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; }
.imv-prog-photo b, .imv-prog-photo span { padding-inline: 22px; }
.imv-more { margin-bottom: 18px; }
.imv-check { margin-top: 18px; padding: 16px 18px; text-align: left; border-radius: 14px; background: rgba(var(--wht), .04); border: 1px solid rgba(var(--wht), .1); font-size: 14px; line-height: 1.55; color: rgba(var(--wht), .8); }
.imv-check-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .6); margin-bottom: 6px; }
.imv-check p + p, .imv-check address + p { margin-top: 8px; }
.imv-check address { font-style: normal; margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--warm1); color: rgb(var(--wht)); }
.imv-check strong { color: rgb(var(--wht)); }
@media (max-width: 900px) { .imv-grid { grid-template-columns: 1fr; } .imv-give { position: static; } }
@media (max-width: 900px) { .imv-programs-photo { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .imv-programs-photo { grid-template-columns: 1fr; } }
.imv-x { color: var(--warm1); font-weight: 400; padding: 0 .1em; }
.imv-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.imv-pillar { background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 18px; padding: 24px 26px; }
.imv-pillar .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--warm1); margin-bottom: 10px; }
.imv-pillar p { font-size: 16px; line-height: 1.6; color: rgba(var(--wht), .82); }
.imv-fine { margin-top: 24px; max-width: 900px; font-size: 13px; line-height: 1.6; color: rgba(var(--wht), .5); }
.imv-fine a { color: rgba(var(--wht), .75); }
@media (max-width: 820px) { .imv-pillars { grid-template-columns: 1fr; } }
.imv-letter { display: flex; gap: clamp(20px, 3vw, 32px); align-items: flex-start; max-width: 860px; margin: 0 0 clamp(32px, 4vw, 44px); }
.imv-letter img { flex: none; width: clamp(88px, 11vw, 120px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 1px solid rgba(var(--wht), .12); }
.imv-letter blockquote p { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; color: rgba(var(--wht), .88); }
.imv-letter blockquote p + p { margin-top: 12px; }
.imv-letter figcaption { margin-top: 16px; font-size: 14px; color: rgba(var(--wht), .6); }
.imv-letter figcaption strong { display: block; color: rgb(var(--wht)); font-size: 16px; }
@media (max-width: 560px) { .imv-letter { flex-direction: column; } }
/* Partner pages: no one-word last lines. Paragraphs, labels and notes rebalance their
   last line (pretty); headings split evenly (balance). Browsers without support ignore it. */
.partner-page p, .partner-page .lead, .partner-page .label, .partner-page li,
.partner-page .cover-fee span, .partner-page .imv-prog span, .partner-page .donate-note,
.partner-page figcaption, .partner-page .imv-check { text-wrap: pretty; }
.partner-page h1, .partner-page h2, .partner-page h3, .partner-page .section-title,
.partner-page .imv-prog b { text-wrap: balance; }
/* Partnership heading ("Partner + Save the Animals") on one line from tablet width up:
   lift the 640px section-head cap and scale the type to the container. Phones wrap. */
.imv-partner .section-head { max-width: none; }
@media (min-width: 900px) {
  .imv-partner .section-title { white-space: nowrap; font-size: clamp(30px, 3.3vw, 46px); }
}
.imv-sponsor-note a { white-space: nowrap; } /* "About our partnership" never splits */

/* ---------- Board dashboard: Money (every active director) ----------
   Live accounts from board_accounts(); the explainer from board_private_page(). */
.hb-wrap { width: min(var(--maxw), 92vw); margin: 0 auto; }
/* Inside a dashboard section, the same full width + side padding as every other section (Financials). */
.section .hb-wrap { width: 100%; max-width: none; padding-inline: clamp(24px, 4.5vw, 60px); }
.hb-head { max-width: 760px; margin-bottom: clamp(18px, 2.4vw, 26px); }
.hb-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: rgba(var(--wht), .6); }
.hb-meta b { color: rgb(var(--wht)); font-weight: 700; }
.hb { color: rgba(var(--wht), .8); font-size: 16px; line-height: 1.7; }
.hb section { padding-block: clamp(26px, 3.4vw, 40px); border-top: 1px solid rgba(var(--wht), .08); scroll-margin-top: 130px; }
.hb section:first-child { border-top: 0; padding-top: 0; }
.hb h2 { color: rgb(var(--wht)); font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.hb h3 { color: rgb(var(--wht)); font-size: clamp(17px, 2vw, 20px); font-weight: 800; letter-spacing: -0.005em; margin: 26px 0 8px; scroll-margin-top: 130px; text-wrap: balance; }
.hb h4 { color: rgb(var(--wht)); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.hb p, .hb li { max-width: 78ch; }
.hb p + p { margin-top: 10px; }
.hb ul, .hb ol { padding-left: 22px; margin: 8px 0; }
.hb li { margin-top: 5px; }
.hb strong { color: rgb(var(--wht)); font-weight: 700; }
.hb a { color: #ffcf9a; text-underline-offset: 3px; }
.hb a:hover { color: rgb(var(--wht)); }
.hb code, .hb .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; color: #ffc3a6; background: rgba(var(--wht), .06); box-shadow: inset 0 0 0 1px rgba(var(--wht), .06); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }

/* Tables: full width of the page column */
.hb .tablebox { width: 100%; overflow-x: auto; margin: 16px 0 20px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; }
.hb table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.hb th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .55); background: rgba(var(--wht), .04); padding: 11px 14px; }
.hb td { padding: 11px 14px; border-top: 1px solid rgba(var(--wht), .07); vertical-align: top; overflow-wrap: break-word; }
.hb td:first-child { color: rgb(var(--wht)); }
.hb th.num, .hb td.num { text-align: right; }
.hb tr.grp td { background: rgba(255,138,91,.08); color: #ffcf9a; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-block: 9px; }
.hb .sub { display: block; margin-top: 3px; font-size: 12px; color: rgba(var(--wht), .5); }
.hb .route { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.hb .pill { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(var(--wht), .16); color: rgba(var(--wht), .6); }
.hb .pill.on { color: #a6e3a1; background: rgba(143,169,110,.16); border-color: rgba(143,169,110,.4); }
.hb .pill.alert { color: #ff9aa8; background: rgba(255,84,112,.14); border-color: rgba(255,84,112,.4); }

/* Callouts, cards, examples */
.hb .callout { max-width: 86ch; margin: 18px 0; padding: 16px 20px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-left: 3px solid var(--warm1); border-radius: 12px; }
.hb .callout.warn { border-left-color: var(--warm2); background: rgba(255,84,112,.07); }
.hb .layers { display: grid; gap: 10px; margin: 16px 0; max-width: 760px; }
.hb .layer { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 14px; align-items: baseline; padding: 14px 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 12px; }
.hb .layer b { color: var(--warm1); font-size: 12px; letter-spacing: .16em; }
.hb .groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 16px 0; }
.hb .group { min-width: 0; padding: 14px 16px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 12px; }
.hb .group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 14.5px; }
.hb .group .code { margin-right: 6px; }
.hb .example { max-width: 86ch; margin: 12px 0; padding: 16px 20px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 12px; }
.hb .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hb .chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(var(--wht), .14); color: rgba(var(--wht), .65); }
.hb ol.steps { padding-left: 22px; }
.hb details { max-width: 86ch; margin: 10px 0; padding: 12px 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 12px; }
.hb summary { cursor: pointer; color: rgb(var(--wht)); font-weight: 700; }
.hb summary:focus-visible { outline: 2px solid var(--warm1); outline-offset: 3px; border-radius: 4px; }
.hb details p { margin-top: 8px; }
.hb details.ref { max-width: none; margin: 10px 0; padding: 0; scroll-margin-top: 130px; }
.hb details.ref > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 17px; font-weight: 800; }
.hb details.ref > summary::-webkit-details-marker { display: none; }
.hb details.ref > summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--warm1); }
.hb details.ref[open] > summary::after { content: '−'; }
.hb details.ref .ref-body { padding: 0 20px 20px; border-top: 1px solid rgba(var(--wht), .07); }
.hb details.ref .ref-body > :first-child { margin-top: 16px; }
.hb details.ref details { background: rgba(var(--wht), .03); }

/* Phones: each table row becomes a card */
@media (max-width: 700px) {
  .hb table[data-stack], .hb table[data-stack] tbody, .hb table[data-stack] tr, .hb table[data-stack] td { display: block; width: 100%; }
  .hb table[data-stack] tr:has(> th) { display: none; }
  .hb table[data-stack] tr { padding: 12px 14px; border-top: 1px solid rgba(var(--wht), .07); }
  .hb table[data-stack] tr:nth-child(2) { border-top: 0; }
  .hb table[data-stack] td { padding: 2px 0; border-top: 0; text-align: left; }
  .hb table[data-stack] td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-top: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .45); }
  .hb table[data-stack] td:first-child::before { margin-top: 0; }
}


/* ---------- Look-alike guides + citizen science (scripts/build-guides.py) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.guide-hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(36px, 5vw, 56px); background: radial-gradient(120% 90% at 85% 0%, rgba(255,138,91,.14), transparent 60%), var(--coal-2); }
.guide-hero .container { padding-inline: clamp(20px, 4.5vw, 60px); width: 100%; max-width: 980px; }
.guide-hero h1 { font-size: clamp(32px, 5.6vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.guide-hero h1 .vs { color: var(--warm1); font-weight: 700; }
.guide-hero .lead { margin-top: 18px; max-width: 60ch; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-section { padding: clamp(44px, 7vw, 84px) 0; }
.guide-section .container.narrow { max-width: 980px; margin: 0 auto; }
.guide-h2 { font-size: clamp(24px, 3.6vw, 36px); margin: clamp(36px, 5vw, 52px) 0 20px; }
.guide-section .container > .guide-h2:first-child, .quiz-section .guide-h2 { margin-top: 0; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 20px); }
.vs-card { margin: 0; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 18px; overflow: hidden; }
.vs-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.vs-card figcaption { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.vs-card figcaption strong { font-size: 18px; }
.vs-card figcaption span { font-size: 13px; color: rgba(var(--wht), .62); }
.guide-tip { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255,138,91,.1); border: 1px solid rgba(255,138,91,.28); line-height: 1.6; }
.marks-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(var(--wht), .1); }
.marks { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; min-width: 520px; }
.marks th, .marks td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(var(--wht), .08); }
.marks thead th { background: var(--coal-1); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--warm1); }
.marks tbody th { width: 18%; font-weight: 700; color: rgba(var(--wht), .9); }
.marks td { color: rgba(var(--wht), .78); }
.marks tr:last-child th, .marks tr:last-child td { border-bottom: 0; }
.quiz-section { background: var(--coal-2); }
.quiz-card { background: var(--coal-1); border: 1px solid rgba(var(--wht), .1); border-radius: 20px; padding: clamp(14px, 2.4vw, 22px); max-width: 760px; }
.quiz-top { display: flex; justify-content: space-between; font-size: 13px; color: rgba(var(--wht), .62); margin-bottom: 12px; }
.quiz-img { width: 100%; height: auto; max-height: min(52vh, 480px); object-fit: contain; border-radius: 12px; background: #000; }
.quiz-q { margin: 16px 0 12px; font-weight: 700; font-size: 18px; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { font: inherit; font-weight: 700; font-size: 16px; color: rgb(var(--wht)); padding: 15px 12px; border-radius: 12px; cursor: pointer; background: rgba(var(--wht), .07); border: 1px solid rgba(var(--wht), .22); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.quiz-opt:hover:not(:disabled) { background: rgba(var(--wht), .14); }
.quiz-opt:disabled { cursor: default; opacity: .55; }
.quiz-opt.is-right { opacity: 1; background: rgba(76,190,120,.2); border-color: rgba(76,190,120,.8); }
.quiz-opt.is-wrong { opacity: 1; background: rgba(255,84,112,.18); border-color: rgba(255,84,112,.8); }
.quiz-feedback { margin-top: 14px; padding: 12px 14px; border-radius: 12px; line-height: 1.55; font-size: 15px; }
.quiz-feedback.ok { background: rgba(76,190,120,.12); }
.quiz-feedback.no { background: rgba(255,84,112,.12); }
.quiz-next { margin-top: 14px; }
.quiz-result { text-align: center; padding: clamp(28px, 5vw, 44px) 20px; }
.quiz-big { font-size: clamp(48px, 9vw, 72px); font-weight: 800; background: linear-gradient(155deg, var(--warm1), var(--warm2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.quiz-msg { margin: 14px auto 22px; max-width: 44ch; font-size: 17px; color: rgba(var(--wht), .82); line-height: 1.6; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.quiz-note { margin-top: 16px; font-size: 13px; color: rgba(var(--wht), .6); }
.lesson-band { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(20px, 3vw, 30px); border-radius: 20px; background: linear-gradient(155deg, rgba(255,138,91,.16), rgba(255,84,112,.1)); border: 1px solid rgba(255,138,91,.3); }
.lesson-band h3 { font-size: 21px; font-weight: 800; }
.lesson-band p { margin-top: 6px; color: rgba(var(--wht), .78); line-height: 1.6; max-width: 54ch; }
.guide-more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: rgba(var(--wht), .7); }
.guide-chip { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--wht), .2); }
.guide-chip:hover { border-color: var(--warm1); color: var(--warm1); }
.guide-credit { margin-top: 22px; font-size: 13px; line-height: 1.6; color: rgba(var(--wht), .55); }
.guide-credit a { color: rgba(var(--wht), .75); }
.guide-card { text-decoration: none; }
.guide-card .media img { width: 100%; height: 100%; object-fit: cover; }
.cs-steps { display: grid; gap: 14px; padding-left: 0; list-style: none; counter-reset: s; }
.cs-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); line-height: 1.6; color: rgba(var(--wht), .8); }
.cs-steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.cs-steps strong { color: rgb(var(--wht)); }
.cs-datasets { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cs-datasets li { padding: 12px 14px; border-radius: 12px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.cs-datasets span { color: rgba(var(--wht), .6); }
@media (max-width: 560px) {
  .vs-grid { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .guide-actions .btn, .lesson-band .btn { width: 100%; }
}

/* ---------- Safari spotter's checklist (/safari/<destination>) ---------- */
.get-card { display: grid; gap: 22px; padding: clamp(22px, 4vw, 44px); border-radius: 22px; background: var(--coal-1); border: 1px solid rgba(255,138,91,.28); }
.get-copy .lead { max-width: 70ch; }
.get-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.get-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.get-submit .get-small { flex: 1 1 260px; }
.get-copy .guide-h2 { margin-top: 0; }
.get-form { display: grid; gap: 14px; }
.get-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(var(--wht), .85); }
.get-form input[type="text"], .get-form input[type="email"], .get-form select { font: inherit; font-size: 16px; color: rgb(var(--wht)); padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(var(--wht), .22); background: rgba(var(--wht), .06); }
.get-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.get-form select option { color: #111; }
.get-form input:focus, .get-form select:focus { outline: 2px solid var(--warm1); outline-offset: 1px; }
.get-form .get-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .75); }
.get-form .get-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--warm2); flex: none; }
.get-form button { flex: 0 0 auto; }
.get-err { color: #ff8a9a; font-size: 14px; }
.get-small { font-size: 12.5px; color: rgba(var(--wht), .55); line-height: 1.5; }
.get-small a { color: rgba(var(--wht), .75); }
.get-done { padding: 22px; border-radius: 16px; background: rgba(76,190,120,.12); border: 1px solid rgba(76,190,120,.5); }
.get-done h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.get-done p { line-height: 1.6; color: rgba(var(--wht), .85); }
.spot-group { font-size: 20px; font-weight: 800; margin: 34px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.spot-group span { font-size: 13px; font-weight: 600; color: rgba(var(--wht), .5); }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.spot { display: flex; flex-direction: column; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; overflow: hidden; cursor: pointer; transition: border-color var(--dur) var(--ease); }
.spot:hover { border-color: rgba(var(--wht), .22); }
.spot.is-seen { border-color: rgba(76,190,120,.75); }
.spot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.spot-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.spot-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
.spot-check { width: 22px; height: 22px; accent-color: #4cbe78; flex: none; cursor: pointer; }
.spot em { font-size: 13px; color: rgba(var(--wht), .55); }
.spot-notes { font-size: 14px; line-height: 1.55; color: rgba(var(--wht), .75); margin-top: 4px; }
.rl { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; }
.rl-lc { background: rgba(76,190,120,.16); color: #8fdcab; }
.rl-nt { background: rgba(214,190,70,.16); color: #e7d27a; }
.rl-vu { background: rgba(255,170,70,.16); color: #ffc078; }
.rl-en { background: rgba(255,120,80,.18); color: #ff9d7d; }
.rl-cr { background: rgba(255,84,112,.2); color: #ff8a9a; }
.rl-dd, .rl-ne { background: rgba(var(--wht), .1); color: rgba(var(--wht), .7); }
.spot-count { color: #8fdcab; font-weight: 600; }
.tips { list-style: none; padding: 0; display: grid; gap: 10px; }
.tips li { padding: 14px 16px; border-radius: 14px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); line-height: 1.6; color: rgba(var(--wht), .78); }
.tips strong { color: rgb(var(--wht)); }
.spot-grid-big { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.spot-big .spot-top { font-size: 18px; }
.spot-big .spot-notes { font-size: 14px; }
@media (max-width: 760px) { .get-row { grid-template-columns: 1fr; } .get-form button { width: 100%; } }
.features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .features-4 { grid-template-columns: 1fr; } }

/* Kruger checklist: play steps, levels, fun facts, score pill */
.play-section { padding: clamp(28px, 4vw, 44px) 0 0; }
.play-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: p; }
.play-steps li { counter-increment: p; position: relative; padding: 18px 18px 18px 64px; border-radius: 16px; background: var(--coal-1); border: 1px solid rgba(255,138,91,.25); line-height: 1.55; color: rgba(var(--wht), .8); }
.play-steps li::before { content: counter(p); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
.play-steps b { color: rgb(var(--wht)); display: block; margin-bottom: 2px; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lvl { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.lvl-easy { background: rgba(120,170,255,.16); color: #a9c8ff; }
.lvl-tricky { background: rgba(190,140,255,.16); color: #d2b3ff; }
.lvl-rare { background: linear-gradient(155deg, rgba(255,138,91,.28), rgba(255,84,112,.28)); color: #ffd0bd; }
.spot-fact { margin-top: 6px; padding: 9px 11px; border-radius: 10px; background: rgba(255,138,91,.1); font-size: 13.5px; line-height: 1.5; color: rgba(var(--wht), .85); }
.spot-fact b { color: var(--warm1); }
.score-pill { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; padding: 11px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: rgb(var(--wht)); background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 10px 26px rgba(255,84,112,.35); }
@media (max-width: 760px) { .play-steps { grid-template-columns: 1fr; } }
.features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features-2 .guide-card .media img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; }
@media (max-width: 680px) { .features-2 { grid-template-columns: 1fr; } }
/* Safari checklist: sticky score bar (sits under the sticky site header) */
.scorebar { position: sticky; top: 68px; z-index: 40; background: rgba(13,14,16,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(var(--wht), .1); }
.scorebar-in { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 22px); padding: 10px clamp(16px, 4.5vw, 60px); max-width: none; width: 100%; }
.sb-stat { display: flex; flex-direction: column; line-height: 1.1; padding-right: clamp(10px, 2.4vw, 22px); border-right: 1px solid rgba(var(--wht), .14); }
.sb-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.sb-val { font-size: 15px; color: rgba(var(--wht), .6); white-space: nowrap; }
.sb-val b { font-size: 22px; font-weight: 800; color: rgb(var(--wht)); }
.sb-stat:nth-child(2) .sb-val b { color: var(--warm1); }
.sb-stat:nth-child(3) .sb-val b { color: #8fdcab; }
.sb-track { flex: 1 1 120px; height: 8px; border-radius: 999px; background: rgba(var(--wht), .1); overflow: hidden; min-width: 60px; }
.sb-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--warm1), var(--warm2)); transition: width .35s ease; }
.sb-msg { font-size: 14px; font-weight: 700; color: rgba(var(--wht), .75); white-space: nowrap; transition: color var(--dur) var(--ease); }
.scorebar.is-hot .sb-msg { color: #ffd0bd; }
.scorebar.is-hot { box-shadow: 0 6px 24px rgba(255,84,112,.25); }
.get-why { padding-top: 18px; border-top: 1px solid rgba(var(--wht), .1); font-size: 14px; color: rgba(var(--wht), .6); line-height: 1.6; max-width: 80ch; }
.get-why a { color: rgba(var(--wht), .85); text-decoration: underline; text-underline-offset: 3px; }
.trip-saved { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9999; width: min(560px, calc(100% - 32px)); padding: 14px 44px 14px 18px; border-radius: 14px; background: var(--coal-1); border: 1px solid rgba(255,138,91,.45); box-shadow: 0 12px 40px rgba(0,0,0,.45); font-size: 15px; line-height: 1.5; color: rgb(var(--wht)); }
.trip-saved button { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: rgba(var(--wht), .7); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; }
@media (max-width: 760px) {
  .scorebar-in { gap: 10px; padding: 8px 14px; flex-wrap: wrap; }
  .sb-stat { padding-right: 10px; }
  .sb-stat:nth-child(3) { border-right: 0; }
  .sb-val b { font-size: 18px; }
  .sb-track { order: 5; flex-basis: 100%; height: 6px; }
  .sb-msg { display: none; }
  .scorebar.is-hot .sb-msg { display: block; order: 4; margin-left: auto; font-size: 12.5px; }
}
/* "Save your score" prompt */
.save-prompt { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 28px)); display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; border-radius: 18px; background: #1c1d20; border: 1px solid rgba(255,138,91,.45); box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: sp-in .35s ease both; }
.save-prompt[hidden] { display: none; }
.save-prompt p { flex: 1; font-size: 14.5px; line-height: 1.5; color: rgba(var(--wht), .85); }
.save-prompt b { color: rgb(var(--wht)); }
.save-prompt .btn { flex: none; }
.sp-x { flex: none; background: none; border: 0; color: rgba(var(--wht), .55); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 4px; }
@keyframes sp-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 560px) { .save-prompt { flex-wrap: wrap; } .save-prompt p { flex-basis: calc(100% - 40px); } .save-prompt .btn { flex: 1; } }
/* Safari spotter's certificate (/safari/certificate) */
.cert-form { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 12px; margin-top: 22px; max-width: 760px; }
.cert-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(var(--wht), .85); }
.cert-form input, .cert-form select { font: inherit; font-size: 16px; color: rgb(var(--wht)); padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(var(--wht), .22); background: rgba(var(--wht), .06); }
.cert-form select option { color: #111; }
.cert-form select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.cert-wrap { padding: 0 clamp(16px, 4.5vw, 60px) clamp(48px, 7vw, 80px); max-width: 1040px; margin: 0 auto; }
.cert { position: relative; overflow: hidden; aspect-ratio: 11 / 8.5; display: flex; flex-direction: column; text-align: center; border-radius: 18px; color: #1b1c1f; border: clamp(6px, 1.2vw, 12px) solid #ff8a5b; background: linear-gradient(180deg, #fffaf3 0%, #fff3e6 42%, #ffd9bb 72%, #ffb48e 100%); }
.cert::after { content: ""; position: absolute; inset: clamp(4px, .7vw, 8px); border: 2px solid rgba(255,84,112,.55); border-radius: 10px; pointer-events: none; z-index: 2; }
.cert-scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; z-index: 0; }
.cert-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(4px, 1vw, 10px); padding: clamp(12px, 2.6vw, 30px) clamp(16px, 4vw, 48px) 26%; min-height: 0; }
.cert-eyebrow { font-size: clamp(11px, 1.4vw, 15px); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #c2334f; }
.cert-title { font-size: clamp(24px, 4.8vw, 52px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.cert-who { font-size: clamp(20px, 3.6vw, 38px); font-weight: 800; color: #c2334f; border-bottom: 2px solid #f1a3b1; padding: 0 12px 4px; }
.cert-line { font-size: clamp(13px, 1.8vw, 19px); max-width: 46ch; line-height: 1.4; }
.cert-where { font-size: clamp(22px, 4.4vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; color: #1b1c1f; max-width: 22ch; }
.cert-country { font-size: clamp(10px, 1.3vw, 14px); font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: #c2334f; }
.cert-country:empty { display: none; }
.cert-foot { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 0 clamp(14px, 3vw, 34px) clamp(8px, 1.4vw, 16px); font-size: clamp(9px, 1.2vw, 12px); color: rgba(255,236,224,.9); }
.cert-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.home-hello { text-align: center; padding-bottom: clamp(28px, 4vw, 44px); }
.home-hello .lead { margin: 10px auto 0; max-width: 52ch; }
.stay { max-width: 640px; margin: 26px auto 0; text-align: left; }
.stay-form { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 12px; align-items: end; }
.stay-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: rgba(var(--wht), .85); }
.stay-form input { font: inherit; font-size: 16px; color: rgb(var(--wht)); padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(var(--wht), .22); background: rgba(var(--wht), .06); }
.stay-form input:focus { outline: 2px solid var(--warm1); outline-offset: 1px; }
.stay-form.no-email { grid-template-columns: 1fr auto; }
.stay .get-err { margin-top: 10px; }
.stay-done { text-align: center; font-size: 17px; line-height: 1.6; color: #8fdcab; }
.after-trip { padding-top: 0; }
.trip-stat { text-align: center; padding: clamp(22px, 4vw, 40px) clamp(18px, 4vw, 44px); border-radius: 20px; background: linear-gradient(160deg, rgba(255,138,91,.16), rgba(255,84,112,.1)); border: 1px solid rgba(255,138,91,.35); }
.trip-stat-big { font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.trip-stat p { margin: 12px auto 0; max-width: 56ch; font-size: 17px; line-height: 1.6; color: rgba(var(--wht), .85); }
.trip-stat-src { display: inline-block; margin-top: 10px; font-size: 13px; color: rgba(var(--wht), .6); text-decoration: underline; text-underline-offset: 3px; }
.we-cta { margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.we-cta .lead { margin: 10px auto 0; max-width: 58ch; }
.we-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.cert-h2 { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 16px; color: rgba(var(--wht), .9); }
.cert-actions { align-items: flex-start; }
.cert-edit { flex: 1 1 100%; }
.cert-edit summary { cursor: pointer; color: rgba(var(--wht), .7); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; width: max-content; }
.cert-edit .cert-form { margin-top: 14px; }
@media (max-width: 760px) { .stay-form, .stay-form.no-email { grid-template-columns: 1fr; } .stay-form button { width: 100%; } }
@media (max-width: 760px) { .cert-form { grid-template-columns: 1fr; } }
@media print {
  @page { size: letter landscape; margin: 0; }
  body.guide-page { background: #fff; }
  body.guide-page > *:not(main), .cert-page > section:first-child, .cert-actions, .cert-h2, .after-trip, .probfull { display: none !important; }
  .cert-wrap { padding: 0; max-width: none; }
  .cert { width: 11in; height: 8.5in; aspect-ratio: auto; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.money-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: clamp(18px, 2.4vw, 24px); }
.money-field { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.money-field select { font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: rgb(var(--wht)); background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .16); border-radius: 10px; padding: 8px 12px; color-scheme: dark; }
.money-field select:focus-visible, .money-check input:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.money-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(var(--wht), .75); cursor: pointer; }
.money-check input { accent-color: var(--warm1); width: 16px; height: 16px; }
.money-synced { margin-left: auto; font-size: 13px; color: rgba(var(--wht), .5); }
.money-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: clamp(18px, 2.4vw, 24px); }
/* Each tile's label / amount / note rows line up across a row of tiles, even when a long label wraps. */
.money-tile { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; position: relative; }
.money-tile { min-width: 0; padding: 16px 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; }
.money-tile .k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.money-tile .v { margin-top: 6px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: rgb(var(--wht)); font-variant-numeric: tabular-nums; }
.money-tile .n { margin-top: 2px; font-size: 12.5px; color: rgba(var(--wht), .5); }
.money-tile .k { padding-right: 26px; }
/* Info icon, top right of a Money tile: its note shows on hover, keyboard focus or tap. */
.tile-info { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(var(--wht), .45); cursor: help; }
.tile-info:hover, .tile-info:focus-visible { color: rgb(var(--wht)); background: rgba(var(--wht), .08); outline: none; }
.tile-tip { position: absolute; top: calc(100% + 6px); right: -6px; z-index: 5; width: max-content; max-width: 260px; padding: 8px 11px; font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: left; color: rgba(var(--wht), .9); background: #0d0e10; border: 1px solid rgba(var(--wht), .16); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); pointer-events: none; }
.tile-info:hover .tile-tip, .tile-info:focus-visible .tile-tip, .tile-info:focus .tile-tip { opacity: 1; visibility: visible; transform: none; }
/* Balance sheet: its tiles sit below the title the way Budget's pills do. */
.money-part-title + .money-tiles { margin-top: 16px; }
.money-empty { padding: 18px 0; color: rgba(var(--wht), .6); }
/* Board Dashboard: Wild Eyes section (2026-11-10). One row of cards + a slim graph; each opens #modal-we. */
.we-section { padding-block: clamp(32px, 4vw, 48px); }
.we-section .section-head-row { margin-bottom: 44px; }
.we-section .section-title { margin-bottom: 4px; }
.we-section .lead { margin-bottom: 0; font-size: 15px; }
/* One row of equal cards (--n = how many) where there is room; otherwise equal cards that wrap. */
.we-cards { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; }
@media (max-width: 1000px) { .we-cards { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); } }
@media (max-width: 600px) {
  .we-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .we-card { padding: 8px 9px; }
  .we-card b { font-size: 17px; }
  .we-k { font-size: 11px; }
  .we-modal-chart { padding: 10px 10px 4px; }
}
.we-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 12px 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 12px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.we-card:hover, .we-card:focus-visible { border-color: rgba(var(--wht), .22); background: #222327; }
.we-card .we-h { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.we-card b { margin-top: 2px; font-size: 22px; font-weight: 800; line-height: 1.15; color: rgb(var(--wht)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.we-card.active { border-color: var(--warm1); background: rgba(255,138,91,.08); }
.we-card.active .we-k { color: rgba(var(--wht), .85); }
.we-card b.ok { color: #6fcf8f; }
.we-card b.warn { color: #f0b45a; }
.we-k { font-size: 12.5px; font-weight: 600; color: rgba(var(--wht), .6); line-height: 1.25; }
.we-cards .we-card { justify-content: space-between; }
.we-graph { width: 100%; margin-top: 10px; align-items: stretch; }
.we-graph-head { display: flex; justify-content: space-between; gap: 8px; }
.we-more { font-size: 12px; font-weight: 700; color: var(--warm1); }
.we-chart { display: block; }
.we-chart { min-height: 40px; }
.we-chart svg { display: block; overflow: visible; }
.we-chart .axis { stroke: rgba(var(--wht), .18); stroke-width: 1; }
.we-chart .mark { fill: var(--warm1); }
.we-chart .hit { fill: transparent; }
.we-bar:hover .mark, .we-bar.on .mark { fill: var(--warm2); }
.we-chart .trend { stroke: rgba(var(--wht), .7); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; pointer-events: none; }
.we-chart .trend-k { fill: rgba(var(--wht), .6); font-size: 11px; pointer-events: none; }
.we-tip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; padding: 6px 10px; background: #0d0e10; border: 1px solid rgba(var(--wht), .18); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.5); white-space: nowrap; }
.we-tip b { font-size: 14px; font-weight: 800; color: rgb(var(--wht)); font-variant-numeric: tabular-nums; }
.we-tip span { font-size: 11.5px; color: rgba(var(--wht), .6); }
.we-tip[hidden] { display: none; }
.we-bar:hover .hit { fill: rgba(var(--wht), .04); }
.we-chart .mo { fill: rgba(var(--wht), .45); font-size: 11px; text-anchor: middle; }
.we-chart .val { fill: rgba(var(--wht), .8); font-size: 11px; font-weight: 700; text-anchor: middle; }
/* Programs accordions: closed = name + headline chips; open = cards + slim graph. */
.prog { margin-top: 10px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; }
.prog[open] { border-color: rgba(var(--wht), .16); }
.prog-sum { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.prog-sum::-webkit-details-marker { display: none; }
.prog-sum:hover { background: rgba(var(--wht), .025); border-radius: 14px; }
.prog-name { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.prog-name b { font-size: 18px; font-weight: 800; color: rgb(var(--wht)); }
.prog-name small { font-size: 13px; color: rgba(var(--wht), .55); }
.prog-chips { display: flex; gap: 8px; flex: none; }
.prog-chip { display: flex; flex-direction: column; align-items: flex-start; box-sizing: border-box; width: 112px; height: 50px; justify-content: center; overflow: hidden; padding: 6px 12px; background: rgba(var(--wht), .04); border: 1px solid rgba(var(--wht), .07); border-radius: 10px; }
.prog-chip b { font-size: 17px; font-weight: 800; color: rgb(var(--wht)); font-variant-numeric: tabular-nums; line-height: 1.2; }
.prog-chip b.ok { color: #6fcf8f; } .prog-chip b.warn { color: #f0b45a; }
.prog-chip small { font-size: 11.5px; color: rgba(var(--wht), .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.prog-chev { flex: none; color: rgba(var(--wht), .55); transition: transform var(--dur) var(--ease); }
.prog[open] .prog-chev { transform: rotate(180deg); }
.prog-in { padding: 4px 14px 14px; }
.prog-in .we-card { background: rgba(var(--wht), .03); }
.prog-in .we-card:hover, .prog-in .we-card:focus-visible { background: rgba(var(--wht), .06); }
.prog-in > .we-note { margin-top: 10px; }
/* Wild Eyes header: the board-only demo button, shown whether the accordion is open or closed. */
.prog-demo-btn { flex: none; height: 50px; min-height: 50px; margin-left: auto; } /* = the .prog-chip cards beside it */
.prog-demo-btn:disabled { opacity: .8; cursor: progress; transform: none; }
.prog-in .we-modal-chart { margin-top: 10px; }
.prog-in .we-card { cursor: pointer; }
/* Talking points: a 44px icon button laid over each accordion's header row, outside <details>
   so a click never toggles it. .prog-talk-slot keeps the summary's chips clear of it. */
.prog-wrap { position: relative; margin-top: 10px; }
.prog-wrap > .prog { margin-top: 0; }
.prog-talk-slot { flex: none; width: 44px; height: 44px; }
.prog-talk { position: absolute; z-index: 2; top: 17px; right: 52px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: rgba(var(--wht), .55); cursor: pointer; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.prog-talk:hover, .prog-talk:focus-visible { color: rgb(var(--wht)); background: rgba(var(--wht), .08); }
.prog-talk:focus-visible { outline: 2px solid rgba(var(--wht), .6); outline-offset: 2px; }
.modal .card.talk-card { text-align: left; width: min(600px, 92vw); }
.talk-card h2 { margin: 0 44px 10px 0; text-wrap: balance; }
/* Overview card: one sentence on the program, above the points. */
.talk-ov { margin: 6px 0 0; padding: 16px 18px; border-radius: 14px; background: rgba(255,138,91,.08); border: 1px solid rgba(255,138,91,.24); }
.talk-ov p { margin: 0; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.55; font-weight: 500; color: rgb(var(--wht)); text-wrap: pretty; }
.talk-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.talk-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(var(--wht), .04); border: 1px solid rgba(var(--wht), .09); font-size: clamp(14px, 1.45vw, 15.5px); line-height: 1.55; color: rgba(var(--wht), .8); text-wrap: pretty; }
.talk-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--warm1); background: rgba(255,138,91,.12); border: 1px solid rgba(255,138,91,.22); margin-top: 1px; }
.talk-tx { min-width: 0; padding-top: 2px; }
.talk-h { display: block; margin-bottom: 2px; font-size: 1.04em; font-weight: 700; color: rgb(var(--wht)); }
@media (max-width: 760px) {
  .prog-sum { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .prog-name { flex-basis: calc(100% - 40px); }
  .prog-wrap.has-talk .prog-name { flex-basis: calc(100% - 94px); }
  .prog-talk { top: 12px; right: 42px; }
  .prog-chips { order: 3; width: 100%; }
  .prog-chip { flex: 1 1 0; width: auto; min-width: 0; }
  .prog-demo-btn { order: 4; width: 100%; margin-left: 0; }
}
/* Wild Eyes accordion: "The models", one expandable row per model (board-portal MODELS). */
.mdl { margin-top: 10px; padding: 14px 16px; background: rgba(var(--wht), .03); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; }
.mdl-intro { margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: rgba(var(--wht), .7); text-wrap: pretty; }
.mdl-group { margin-top: 14px; }
.mdl-gt { margin-bottom: 6px; font-size: 13px; font-weight: 700; color: rgb(var(--wht)); }
.mdl-row { border-top: 1px solid rgba(var(--wht), .08); }
.mdl-row summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 4px; cursor: pointer; list-style: none; }
.mdl-row summary::-webkit-details-marker { display: none; }
.mdl-row summary:hover { background: rgba(var(--wht), .025); }
.mdl-nm { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.mdl-nm b { font-size: 15px; font-weight: 700; color: rgb(var(--wht)); }
.mdl-nm small { font-size: 13px; color: rgba(var(--wht), .55); text-wrap: balance; }
.mdl-rate { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid currentColor; }
.mdl-rate.good { color: #6fcf8f; } .mdl-rate.fair, .mdl-rate.early { color: #f0b45a; } .mdl-rate.weak { color: #ef7a6a; } .mdl-rate.none { color: rgba(var(--wht), .55); }
.mdl-chev { flex: none; color: rgba(var(--wht), .55); transition: transform var(--dur) var(--ease); }
.mdl-row[open] .mdl-chev { transform: rotate(180deg); }
.mdl-qa { margin: 0; padding: 2px 4px 14px; display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 14px; line-height: 1.55; }
.mdl-qa dt { color: rgba(var(--wht), .55); font-weight: 600; }
.mdl-qa dd { margin: 0; color: rgba(var(--wht), .85); text-wrap: pretty; }
@media (max-width: 760px) { .mdl-qa { grid-template-columns: 1fr; gap: 2px; } .mdl-qa dd { margin-bottom: 8px; } .mdl-rate { font-size: 11px; padding: 2px 8px; } }
/* The modal */
.modal .card.we-modal-card { width: min(1120px, 96vw); text-align: left; padding: clamp(22px, 3vw, 36px); }
.we-modal-card .we-cards { margin-top: 4px; }
.we-modal-chart { margin-top: 18px; padding: 14px 16px 6px; background: rgba(var(--wht), .03); border: 1px solid rgba(var(--wht), .08); border-radius: 14px; }
.we-chart-title { margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.we-chart { position: relative; }
.we-none { position: absolute; inset: 0 0 22px; display: grid; place-items: center; font-size: 13px; color: rgba(var(--wht), .45); pointer-events: none; }
.we-modal-card h2 { margin: 4px 0 14px; }
.we-row { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(var(--wht), .08); }
.we-row b { font-size: 22px; font-weight: 800; color: rgb(var(--wht)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.we-row span { font-size: 15px; color: rgba(var(--wht), .85); line-height: 1.35; }
.we-row small { display: block; font-size: 13px; color: rgba(var(--wht), .5); }
.modal .we-note, .we-note { margin: 10px 0 0; font-size: 13px; color: rgba(var(--wht), .5); }
.we-status.ok { color: #6fcf8f; font-weight: 700; }
.we-status.warn { color: #f0b45a; font-weight: 700; }
.we-tabs { flex-wrap: wrap; margin-bottom: 14px; border-radius: 18px; }
.we-tabs button { padding: 6px 14px; font-size: 13px; }
.we-tabs .rtab { border-radius: 14px; } /* concentric with the 18px box: 18 − 4px padding */
.we-choose-left .we-tabs { margin-bottom: 0; } /* centred in the role bar */
.hb tr.muted td { color: rgba(var(--wht), .4); }
.hb tr.muted .code { opacity: .6; }
.money-explainer { margin-top: clamp(40px, 6vw, 72px); }
.money-sub { font-size: clamp(22px, 3vw, 32px); margin-bottom: 6px; }
.money-explainer section { padding-block: clamp(16px, 2.4vw, 24px); }
@media (max-width: 700px) { .money-synced { margin-left: 0; width: 100%; } }

/* Board dashboard: Documents in two parts */
.docs-part { max-width: 760px; margin: clamp(10px, 1.6vw, 16px) 0 4px; }
#sign.docs-part { margin-top: clamp(44px, 6vw, 64px); }
#records.docs-part { margin-top: clamp(18px, 2.4vw, 26px); }
.docs-part-title { font-size: clamp(19px, 2.3vw, 24px); font-weight: 800; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.docs-part-note { font-size: 13px; font-weight: 700; color: rgba(var(--wht), .5); letter-spacing: 0; }
.docs-part-lead { margin-top: 6px; font-size: 15px; line-height: 1.65; color: rgba(var(--wht), .72); }
#records + .facts, .docs-part + .facts { margin-top: clamp(16px, 2vw, 22px); }

/* Board roster: fill the row (all directors and prospects across) */
#roster .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(16px, 2.2vw, 28px); justify-content: stretch; }
#roster .team-member { width: auto; min-width: 0; }

/* Money: fixed column widths, so showing all accounts never shifts the columns */
.hb table.money-table { table-layout: fixed; }
.money-table .c-code { width: 9%; }
.money-table .c-acct { width: 31%; }
.money-table .c-loc { width: 24%; }
.money-table .c-shows { width: 20%; }
.money-table .c-amt { width: 16%; }
.money-table .c-acct2 { width: 51%; }
.money-table .c-loc2 { width: 22%; }
.money-table .c-amt2 { width: 18%; }
.money-table .c-acct3 { width: 39%; }
.money-table .c-loc3 { width: 18%; }
.money-table .c-plan { width: 16%; }
.money-table .c-amt3 { width: 18%; }
.money-table td.plan { color: rgba(var(--wht), .55); }
/* Budget arrow sits at the left edge of the Actual cell, so the numbers stay lined up on the right. */
.money-table .vs-plan { float: left; font-size: 0.75em; line-height: inherit; color: rgba(var(--wht), .55); }
.money-table .vs-plan.bad { color: #ffb27a; }

/* Money: two parts, expandable rows, sticky headers */
.money-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
/* Heading text gives way so the date and Download CSV stay beside it on the right. */
#money .section-head-row > .hb-head { flex: 1 1 420px; min-width: 0; }
#money .money-head-side { flex: 0 1 auto; align-self: center; }
.money-head-side .money-synced { margin-left: 0; }
/* The two parts of the Money section sit in their own panels, numbered, so "where it is"
   (a snapshot) and "what happened" (a period) never read as one table. */
.money-part { margin-top: clamp(28px, 4vw, 44px); padding: clamp(18px, 2.6vw, 32px); border: 1px solid rgba(var(--wht), .1); border-radius: 22px; background: rgba(var(--wht), .025); }
.money-part + .money-part { margin-top: clamp(40px, 6vw, 72px); }
.money-part-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warm1); }
.money-part-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: #fff; font-size: 12px; letter-spacing: 0; }
/* Download CSV: quiet pills at the end of the period row. */
.money-export { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.money-export-btn { font: inherit; font-size: 13px; font-weight: 700; color: rgb(var(--wht)); background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .14); border-radius: 999px; padding: 7px 14px 7px 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.money-export-btn svg { flex: none; color: var(--warm1); }
.money-export-btn:hover, .money-export-btn:focus-visible { border-color: var(--warm1); color: var(--warm1); }
.money-part-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.money-part-row .year-tabs { margin-bottom: 0; }
.money-part-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.money-part-note { font-size: 13px; font-weight: 700; color: rgba(var(--wht), .5); letter-spacing: 0; }
.money-part-lead { margin: 6px 0 16px; font-size: 15px; color: rgba(var(--wht), .7); max-width: 78ch; }
#money-what .money-bar { margin-top: 14px; }
/* Year and month switchers side by side; the month strip scrolls sideways when it doesn't fit. */
.money-periods { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: clamp(18px, 2.4vw, 24px); }
.money-part-title + .money-periods { margin-top: 16px; }
.money-periods .year-tabs { margin-bottom: 0; flex: none; }
.money-periods .month-tabs { position: relative; flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.money-periods .month-tabs::-webkit-scrollbar { display: none; }
.money-periods .month-tabs button { flex: none; padding: 8px 14px; white-space: nowrap; }
/* The month strip fills the rest of the row; its tabs share the width (still scrolls on phones). */
.money-periods .month-tabs { flex: 1 1 auto; }
.money-periods .month-tabs button { flex: 1 0 auto; }
.hb tr.acct { cursor: pointer; }
.hb tr.acct:hover td, .hb tr.acct:focus-visible td { background: rgba(var(--wht), .035); }
.hb tr.acct:focus-visible { outline: 2px solid var(--warm1); outline-offset: -2px; }
.hb tr.acct td:nth-child(2)::after { content: '+'; margin-left: 8px; color: var(--warm1); font-weight: 700; opacity: .6; }
.hb tr.acct.open td:nth-child(2)::after { content: '−'; opacity: 1; }
.hb tr.acct-detail td { background: rgba(255,138,91,.05); padding: 4px 14px 16px 20px; border-top: 0; }
/* An open account and its details read as one block: same tint, one accent bar down the left,
   and a firmer line before the next account. */
.hb tr.acct.open td, .hb tr.acct.open:hover td { background: rgba(255,138,91,.05); }
.hb tr.acct.open td:first-child, .hb tr.acct-detail td { box-shadow: inset 3px 0 0 var(--warm1); }
.hb tr.acct-detail + tr td { border-top: 1px solid rgba(var(--wht), .16); }
.hb tr.acct-detail td { border-bottom: 10px solid var(--coal-1); }
/* 3010 STA's own, split by budget status: indented, quieter rows under the 3010 row. */
.hb tr.part td { font-size: 13.5px; color: rgba(var(--wht), .75); }
.hb tr.part td:nth-child(2) { padding-left: 28px; }
.hb tr.part.p2 td { font-size: 12.5px; color: rgba(var(--wht), .55); }
.hb tr.part.p2 td:nth-child(2) { padding-left: 46px; }
.hb tr.part.p2 .code { font-size: 11px; margin-right: 4px; }
.acct-desc { color: rgb(var(--wht)); font-size: 14.5px; max-width: 80ch; }
.acct-meta { margin-top: 6px; font-size: 13px; color: rgba(var(--wht), .55); }
.acct-entries { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.acct-entries li { display: grid; grid-template-columns: 110px minmax(0,1fr) 150px 110px; gap: 12px; max-width: none; margin-top: 0; font-size: 13.5px; padding: 5px 0; border-top: 1px solid rgba(var(--wht), .06); }
.acct-entries .d, .acct-entries .s { color: rgba(var(--wht), .55); }
.acct-entries .a { text-align: right; color: rgb(var(--wht)); font-variant-numeric: tabular-nums; }
.acct-entries .l b { font-weight: 700; color: rgb(var(--wht)); }
.acct-entries .x { grid-column: 2 / -1; margin-top: -2px; font-size: 12.5px; color: rgba(var(--wht), .55); }
.acct-entries .thanks { color: rgba(var(--wht), .7); }
.acct-entries .thanks.late { color: #ffb27a; font-weight: 700; }
.hb tr.tot td { color: rgba(var(--wht), .75); font-weight: 700; background: rgba(var(--wht), .02); }
.hb tr.tot.strong td { color: rgb(var(--wht)); font-weight: 800; background: rgba(var(--wht), .06); }
.hb tr.tot.strong td:first-child { background: linear-gradient(180deg, var(--warm1), var(--warm2)) left top / 3px 100% no-repeat, rgba(var(--wht), .06); }
.hb tr.tot .sub { font-weight: 500; }
@media (min-width: 701px) {
  /* Sticky column headers under the site header (68px) and the dashboard menu (51px). */
  #money .tablebox { overflow: visible; }
  #money .money-table thead th { position: sticky; top: calc(68px + 51px); z-index: 5; background: #222326; }
  #money .money-table thead th:first-child { border-top-left-radius: 13px; }
  #money .money-table thead th:last-child { border-top-right-radius: 13px; }
}
@media (max-width: 700px) {
  .money-head-side { align-items: flex-start; }
  .money-export { justify-content: flex-start; }
  .hb table[data-stack] tr.acct-detail { padding-top: 0; }
  .acct-entries li { grid-template-columns: 1fr auto; }
  .acct-entries .s { display: none; }
  .acct-entries .x { grid-column: 1 / -1; }
  .hb table[data-stack] tr.tot td.num::before { content: none; }
}
/* Money: "whose it is" split under the balances */
.hb tr.grp.whose td { background: rgba(143,169,110,.10); color: #cfe6b8; }
.hb tr.grp.whose .sub { display: inline; margin-left: 10px; text-transform: none; letter-spacing: 0; font-weight: 600; color: rgba(var(--wht), .6); }
.hb tr.split td { padding: 12px 14px 12px; border-top: 0; }
.hb tr.split .meter-legend { margin-top: 12px; flex-wrap: wrap; overflow-x: visible; }
@media (max-width: 700px) { .hb tr.grp.whose .sub { display: block; margin: 4px 0 0; } }
/* Money: thousands levels as dropdown rows with their totals */
.hb tr.lvl td { cursor: pointer; background: rgba(var(--wht), .035); color: rgb(var(--wht)); font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding-block: 11px; }
.hb tr.lvl td.num { color: rgb(var(--wht)); font-size: 14.5px; letter-spacing: 0; text-transform: none; }
.hb tr.lvl.line td { background: none; color: rgb(var(--wht)); font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.hb tr.lvl.line.muted td { color: rgba(var(--wht), .4); }
.hb tr.lvl.line td.num { font-size: 14.5px; font-weight: 600; }
.hb tr.lvl.line.muted td.num { color: rgba(var(--wht), .4); }
.hb tr.form-part td { color: rgba(var(--wht), .55); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-top: 20px; background: none; }
.hb tr.form-part .sub { text-transform: none; letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.hb tr.form-note td { color: rgba(var(--wht), .55); font-size: 13px; line-height: 1.5; background: none; }
.money-periods .month-tabs button[data-month="13"] { margin-left: 6px; position: relative; }
.money-periods .month-tabs button[data-month="13"]::before { content: ""; position: absolute; left: -5px; top: 8px; bottom: 8px; width: 1px; background: rgba(var(--wht), .18); }
.hb tr.lvl .sub { display: inline; margin-left: 10px; text-transform: none; letter-spacing: 0; font-weight: 600; color: rgba(var(--wht), .55); }
.hb tr.lvl:hover td, .hb tr.lvl:focus-visible td { background: rgba(var(--wht), .07); }
/* Level rows: neutral charcoal with a thin brand-gradient bar on the left edge (was an orange wash that read brown). */
.hb tr.lvl:not(.line) td:first-child { background: linear-gradient(180deg, var(--warm1), var(--warm2)) left top / 3px 100% no-repeat, rgba(var(--wht), .035); }
.hb tr.lvl:not(.line):hover td:first-child, .hb tr.lvl:not(.line):focus-visible td:first-child { background: linear-gradient(180deg, var(--warm1), var(--warm2)) left top / 3px 100% no-repeat, rgba(var(--wht), .07); }
.hb tr.lvl:focus-visible { outline: 2px solid var(--warm1); outline-offset: -2px; }
.lvl-caret { display: inline-block; width: 0; height: 0; margin-right: 10px; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform var(--dur) var(--ease); vertical-align: 1px; }
.hb tr.lvl.open .lvl-caret { transform: rotate(90deg); }
@media (max-width: 700px) {
  .hb table[data-stack] tr.lvl { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .hb table[data-stack] tr.lvl td { width: auto; padding: 0; background: none; }
  .hb table[data-stack] tr.lvl { background: linear-gradient(180deg, var(--warm1), var(--warm2)) left top / 3px 100% no-repeat, rgba(var(--wht), .035); }
  .hb table[data-stack] tr.lvl:not(.line) td:first-child { background: none; }
  .hb table[data-stack] tr.lvl td.num::before { content: none; }
  .hb tr.lvl .sub { display: block; margin: 4px 0 0; }
}


/* Mission band on the safari checklist pages (scripts/build-guides.py) */
.mission-band { padding-top: 0; padding-bottom: 0; }
.mission-band .mission-card { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(16px, 3vw, 36px); align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: linear-gradient(160deg, rgba(255,138,91,.14), rgba(255,84,112,.08)); border: 1px solid rgba(255,138,91,.3); }
.mission-lead { margin-top: 8px; font-size: clamp(19px, 2.3vw, 25px); line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.mission-fact { padding-left: clamp(14px, 2vw, 24px); border-left: 3px solid var(--warm1); }
.mission-fact p { font-size: 15.5px; line-height: 1.6; color: rgba(var(--wht), .85); }
.mission-fact a { display: inline-block; margin-top: 6px; font-size: 12.5px; color: rgba(var(--wht), .6); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .mission-band .mission-card { grid-template-columns: 1fr; } .mission-fact { padding-left: 14px; } }

.probfull .pb-sub { max-width: 56ch; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: rgba(var(--wht), .88); text-shadow: 0 1px 14px rgba(0,0,0,.6); margin-top: -12px; }

/* Safari packing list (scripts/build-guides.py packing_page) */
.pk-progress { position: sticky; top: 68px; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 18px; border-radius: 14px; background: rgba(13,14,16,.92); border: 1px solid rgba(var(--wht), .1); backdrop-filter: blur(8px); }
.pk-count { font-size: 15px; white-space: nowrap; }
.pk-count b { color: var(--warm1); font-size: 18px; }
.pk-track { flex: 1; height: 6px; border-radius: 6px; background: rgba(var(--wht), .1); overflow: hidden; }
.pk-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warm1), var(--warm2)); transition: width .3s; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.pk-group { padding: 18px; border-radius: 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); }
.pk-group h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.pk-wild { border-color: rgba(143,220,171,.45); background: linear-gradient(160deg, rgba(143,220,171,.1), rgba(var(--wht), .02)); }
.pk-badge { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8fdcab; border: 1px solid rgba(143,220,171,.5); border-radius: 999px; padding: 3px 9px; }
.pk-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 2px; border-top: 1px solid rgba(var(--wht), .06); cursor: pointer; }
.pk-item:first-of-type { border-top: 0; }
.pk-item input { position: absolute; opacity: 0; pointer-events: none; }
.pk-box { width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid rgba(var(--wht), .35); display: grid; place-items: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.pk-item input:checked + .pk-box { background: var(--warm1); border-color: var(--warm1); }
.pk-item input:checked + .pk-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.pk-item input:focus-visible + .pk-box { outline: 2px solid var(--warm1); outline-offset: 2px; }
.pk-text b { display: block; font-size: 15px; font-weight: 700; }
.pk-item input:checked ~ .pk-text b { text-decoration: line-through; text-decoration-color: rgba(var(--wht), .4); color: rgba(var(--wht), .7); }
.pk-text small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: rgba(var(--wht), .62); }
.get-row-trip { grid-template-columns: 1fr 1fr 1.3fr; margin-top: 12px; }
.get-row-trip.get-row-2 { grid-template-columns: 1fr 1.3fr; }
.get-form .opt { font-weight: 400; color: rgba(var(--wht), .5); }
.get-row-trip select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.pk-next { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .pk-grid { grid-template-columns: 1fr; } .get-row-trip, .get-row-trip.get-row-2 { grid-template-columns: 1fr; } }
.pack-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding: clamp(18px, 2.6vw, 26px); border-radius: 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .1); color: inherit; text-decoration: none; transition: border-color var(--dur) var(--ease); }
.pack-band:hover { border-color: rgba(255,138,91,.45); }
.pack-band b { display: block; font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; margin-top: 4px; }
.pack-band small { display: block; margin-top: 4px; font-size: 15px; color: rgba(var(--wht), .7); }

/* Safari Prep Kit hub (scripts/build-guides.py safari_hub) */
.kit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kit-stage { display: grid; gap: 10px; }
.kit-stage .eyebrow { margin-bottom: 2px; }
.kit-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 16px; border-radius: 16px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); color: inherit; text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.kit-item:hover { border-color: rgba(255,138,91,.45); transform: translateY(-1px); }
.kit-ico { font-size: 26px; line-height: 1.1; }
.kit-item b { display: block; font-size: 16px; font-weight: 800; }
.kit-item small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .68); }
@media (max-width: 900px) { .kit-grid { grid-template-columns: 1fr; } }

/* Choosing a responsible safari */
.rs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.rs-col { padding: clamp(18px, 2.6vw, 28px); border-radius: 20px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); }
.rs-good { border-color: rgba(143,220,171,.4); }
.rs-bad { border-color: rgba(255,84,112,.4); }
.rs-good .eyebrow { color: #8fdcab; }
.rs-bad .eyebrow { color: #ff7a8f; }
.rs-item { padding: 14px 0 14px 18px; border-top: 1px solid rgba(var(--wht), .07); position: relative; }
.rs-item::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 8px; border-radius: 50%; }
.rs-item.good::before { background: #8fdcab; }
.rs-item.bad::before { background: #ff5470; }
.rs-item b { font-size: 16px; }
.rs-item p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: rgba(var(--wht), .72); }
.rs-ask { padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: linear-gradient(160deg, rgba(255,138,91,.14), rgba(255,84,112,.08)); border: 1px solid rgba(255,138,91,.3); }
.rs-ask ol { margin: 14px 0 0 20px; display: grid; gap: 8px; font-size: 16.5px; }
.rs-note { margin-top: 14px; color: rgba(var(--wht), .75); }
@media (max-width: 860px) { .rs-cols { grid-template-columns: 1fr; } }

/* Kids' activity pack (/safari/kids): white sheets on screen, one A4 page each in print */
.kp-sheets { display: grid; gap: 28px; justify-items: center; padding: 0 16px 64px; }
.kp-page { width: min(100%, 720px); aspect-ratio: 8.5 / 11; background: #fff; color: #1b1c1f; border-radius: 14px; padding: clamp(20px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.kp-head span { display: block; font-size: clamp(14px, 2vw, 18px); color: #666; }
.kp-head b { display: block; font-size: clamp(30px, 6vw, 56px); font-weight: 900; letter-spacing: -.02em; }
.kp-art { flex: 1; width: 100%; min-height: 0; margin: 12px 0; }
.kp-fact { font-size: clamp(14px, 2vw, 18px); max-width: 36ch; }
.kp-foot { margin-top: 14px; font-size: 11px; color: #888; }
.kp-pledge { text-align: left; align-items: stretch; border: 10px solid #ff8a5b; }
.kp-badge { width: 120px; align-self: center; }
.kp-badge .kp-art { margin: 0; }
.kp-eyebrow { align-self: center; font-size: 13px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #c2334f; }
.kp-pledge h2 { align-self: center; font-size: clamp(30px, 6vw, 52px); font-weight: 900; letter-spacing: -.02em; margin: 4px 0 10px; }
.kp-lead { font-size: clamp(15px, 2.2vw, 19px); }
.kp-list { list-style: none; display: grid; gap: 14px; margin: 18px 0; font-size: clamp(15px, 2.2vw, 20px); }
.kp-list li { display: flex; gap: 12px; align-items: flex-start; }
.kp-box { width: 22px; height: 22px; flex: none; border: 2.5px solid #1b1c1f; border-radius: 5px; margin-top: 2px; }
.kp-draw { flex: 1; min-height: 120px; margin: 4px 0 18px; border: 2.5px dashed #c9c9cf; border-radius: 14px; display: flex; align-items: flex-end; justify-content: center; padding: 10px; font-size: 13px; color: #999; }
.kp-sign { margin-top: auto; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; font-size: 13px; color: #666; }
.kp-sign span { display: block; height: 36px; border-bottom: 2px solid #1b1c1f; margin-bottom: 4px; }
@media print {
  @page { size: letter; margin: 0; }
  body.guide-page > *:not(main), .kp-intro { display: none !important; }
  .kp-sheets { display: block; padding: 0; }
  .kp-page { width: 8.5in; height: 11in; aspect-ratio: auto; border-radius: 0; box-shadow: none; break-after: page; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- Safari region picker (/safari, guides/globe.js) ---- */
.sg-stage { position: relative; width: 100%; aspect-ratio: 1; }
.sg-stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(var(--wht), .08), rgba(var(--wht), .02) 60%); transition: opacity .3s; }
[data-safari-globe].is-ready .sg-stage::before { opacity: 0; }
.sg-svg { position: relative; display: block; width: 100%; height: auto; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.sg-svg.is-dragging { cursor: grabbing; }
.sg-sphere { fill: rgba(13,14,16,.35); stroke: rgba(var(--wht), .4); stroke-width: 1; }
.sg-grid { fill: none; stroke: rgba(var(--wht), .1); stroke-width: .5; }
.sg-land { fill: rgba(var(--wht), .3); stroke: rgba(13,14,16,.35); stroke-width: .4; }
.sg-region { fill: #ff8a5b; stroke: rgba(13,14,16,.35); stroke-width: .4; cursor: pointer; transition: fill var(--dur) var(--ease); }
.sg-region.is-hover { fill: #ffb08f; }
.sg-region.is-picked { fill: #ff5470; }
.sg-cards { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sg-card { display: grid; justify-items: center; gap: 4px; padding: 18px 12px 16px; border-radius: 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); color: rgb(var(--wht)); font: inherit; text-align: center; cursor: pointer; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.sg-card:hover { border-color: rgba(255,138,91,.45); transform: translateY(-2px); }
.sg-card[aria-pressed="true"] { border-color: var(--warm2); box-shadow: 0 0 0 1px var(--warm2) inset; }
.sg-card .bmk { width: 100%; max-width: 150px; height: 96px; margin: 0 0 6px; }
.sg-detail { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: rgba(var(--wht), .66); }
.sg-card b { font-size: 16px; font-weight: 800; }
.sg-card small { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--warm1); }
.sg-cards.in .bmk [data-draw] { animation: bmDraw 1.6s ease-in-out both; animation-delay: calc(var(--cd,0s) + .15s); }
.sg-cards.in .bmk [data-fill] { animation: bmFill .9s ease-out both; animation-delay: calc(var(--cd,0s) + .9s); }
.sg-card:hover .bmk [data-draw] { animation: bmHover 1.1s ease-in-out both; }
.get-region-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,138,91,.1); border: 1px solid rgba(255,138,91,.3); font-size: 15px; line-height: 1.5; color: rgba(var(--wht), .85); }
.get-region-note b { color: rgb(var(--wht)); }
@media (max-width: 960px) { .sg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sg-card .bmk { height: 76px; } }

/* ---- What you'll get (/safari, guides/marks.js) ---- */
.kit-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kit-card { display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 3vw, 26px); border-radius: 18px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); }
.kit-card .bmk { margin-bottom: 4px; }
.kit-card h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.kit-card p { font-size: 15px; line-height: 1.6; color: rgba(var(--wht), .74); }
.kit-when { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--warm1); }
.kit-perks.in .bmk [data-draw] { animation: bmDraw 1.2s ease-in-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .15s); }
.kit-perks.in .bmk [data-fill] { animation: bmFill .75s ease-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .1s); }
.kit-perks.in .kit-card:hover .bmk [data-draw] { animation: bmHover .9s ease-in-out both; animation-delay: calc(var(--d,0s) * .45); }
@media (max-width: 900px) { .kit-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kit-perks { grid-template-columns: 1fr; } }

/* ---- /safari full-screen hero: video, pitch left, globe right (as Wild Eyes /citizen-science) ---- */
.sgh { position: relative; min-height: 100svh; display: flex; overflow: hidden; background: #14100b; }
.sgh > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sgh-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(13,14,16,.9) 0%, rgba(13,14,16,.62) 45%, rgba(13,14,16,.3) 100%), linear-gradient(0deg, rgba(13,14,16,.85) 0%, rgba(13,14,16,0) 30%); }
.sgh-inner { position: relative; z-index: 2; width: min(1480px, 100%); margin: 0 auto; padding: 96px clamp(20px, 4vw, 48px) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 56px); }
.sgh h1 { font-size: clamp(36px, 4.8vw, 60px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
.sgh .lead { margin-top: 16px; max-width: 40em; color: rgba(var(--wht), .86); }
.sgh .guide-actions { margin-top: 26px; }
.sgh-globe { display: grid; justify-items: center; gap: 14px; }
.sgh-globe .sg-stage { width: min(100%, 660px, calc(100svh - 150px)); min-width: 260px; }
.sgh-sub { margin-top: 12px; max-width: 44em; font-size: 16px; line-height: 1.6; color: rgba(var(--wht), .72); }
.sgh-proof { margin-top: 22px; max-width: 44em; font-size: 13.5px; line-height: 1.5; color: rgba(var(--wht), .6); }
@media (max-width: 900px) {
  .sgh-inner { grid-template-columns: 1fr; align-items: start; padding-top: 92px; gap: 28px; }
  .sgh-globe .sg-stage { width: min(80vw, 340px); }
}

/* /safari as one screen: the pitch and what's in the kit left, the globe right. Picking a
   place swaps the globe for the sign-up (guides/globe.js). */
.sgh-one { min-height: calc(100svh - 68px); }
.sgh-one .sgh-inner { padding: clamp(20px, 3.5vh, 40px) clamp(20px, 4vw, 48px); grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.sgh-one h1 { font-size: clamp(32px, min(4.2vw, 6.4vh), 58px); }
.sgh-one .lead { margin-top: 14px; font-size: 17.5px; max-width: 34em; }
.sgh-right { display: grid; min-width: 0; }
.sgh-one .sgh-globe .sg-stage { width: min(100%, 620px, calc(100svh - 200px)); }
.sgh-globe[hidden], .sgh-card[hidden] { display: none; }
.sg-hint { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--wht), .5); }

/* "Free", said loudly: the badge over the heading, the marker under "free" (heading and form). */
.sgh-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--warm1); }
.sgh-free { display: inline-block; padding: 6px 12px; border-radius: 999px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(255,84,112,.35); }
.sgh-one h1 { margin-top: 14px; }
.sgh-hl { position: relative; z-index: 0; color: rgb(var(--wht)); white-space: nowrap; }
.sgh-hl::after { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .06em; height: .34em; border-radius: .1em; background: linear-gradient(90deg, var(--warm1), var(--warm2)); opacity: .85; transform: skewX(-8deg); }
.sgh-kcs-h { margin-top: clamp(18px, 3vh, 28px); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--wht), .6); }
.sgh-kcs-h + .sgh-kcs { margin-top: 10px; }
.sgh-kcs-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sgh-kcs-nav { display: flex; gap: 6px; }
.sgh-kcs-nav button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--wht), .28); background: rgba(28,29,32,.72); color: rgb(var(--wht)); font: inherit; font-size: 16px; font-weight: 800; letter-spacing: 0; cursor: pointer; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.sgh-kcs-nav button:hover:not(:disabled) { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; }
.sgh-kcs-nav button:disabled { opacity: .3; cursor: default; }

/* What's in the kit: one row of cards that scrolls sideways, icons drawn in (guides/marks.js). */
.sgh-kcs { margin-top: clamp(18px, 3vh, 30px); display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(var(--wht), .25) transparent; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.sgh-kcs.is-end { -webkit-mask-image: none; mask-image: none; }
.sgh-kc { flex: 0 0 max(150px, calc((100% - 30px) / 3.4)); scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 200px; padding: 22px 18px 24px; border-radius: 16px; background: rgba(28,29,32,.72); border: 1px solid rgba(var(--wht), .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sgh-kc .bmk { width: 64px; height: 48px; margin: 0 0 6px -6px; }
.sgh-kc b { display: block; font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.sgh-kc small { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .68); }
/* Each card draws its icon as it scrolls into the row (guides/globe.js adds .in), and again on hover. */
.sgh-kcs.in .sgh-kc .bmk [data-draw], .sgh-kcs.in .sgh-kc .bmk [data-fill] { animation: none; }
.sgh-kcs.in .sgh-kc.in .bmk [data-draw] { animation: bmDraw 1.2s ease-in-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .15s); }
.sgh-kcs.in .sgh-kc.in .bmk [data-fill] { animation: bmFill .75s ease-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .1s); }
.sgh-kcs.in .sgh-kc.in:hover .bmk [data-draw] { animation: bmHover .9s ease-in-out both; animation-delay: calc(var(--d,0s) * .45); }
@media (max-height: 760px) and (min-width: 901px) { .sgh-kc small { display: none; } .sgh-kc { min-height: 0; } }

/* The sign-up, in the globe's place. */
.sgh-card { gap: 14px; padding: clamp(20px, 2.4vw, 30px); background: rgba(28,29,32,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: kbIn .3s ease-out; }
.sgh-card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.sgh-card-h { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.15; }
.sgh-back { padding: 0; border: 0; background: none; color: rgba(var(--wht), .7); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sgh-back:hover { color: rgb(var(--wht)); }
.sgh-card .get-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sgh-card .get-form .get-row { display: contents; }
.sgh-card .get-form .get-row > label { min-width: 0; }
.sgh-card .get-form .get-row-1 > label, .sgh-card .get-row-trip > label:last-child { grid-column: 1 / -1; }
.sgh-card .get-form input, .sgh-card .get-form select { min-width: 0; padding: 11px 12px; }
.sgh-card .get-form select { padding-right: 34px; background-position: right 12px center; }
.sgh-card .get-consent, .sgh-card .get-submit, .sgh-card .get-err { grid-column: 1 / -1; }
.sgh-card .get-submit .get-small { flex: 1 1 200px; }
.sgh-card .get-trust { font-size: 12px; }
@media (max-width: 900px) {
  .sgh-one .sgh-inner { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .sgh-one .sgh-globe .sg-stage { width: min(84vw, 360px); }
  /* Phones: heading, then the globe, then what's in the kit. */
  .sgh-one .sgh-inner { row-gap: 12px; }
  .sgh-one .sgh-copy { display: contents; }
  .sgh-one .sgh-right { order: 1; margin-top: 8px; }
  .sgh-one .sgh-kcs-h { order: 2; margin-top: 16px; }
  .sgh-one .sgh-kcs { order: 2; margin-top: 0; }
  .sgh-card .get-submit .btn { width: 100%; }
}
@media (max-width: 560px) {
  .sgh-kc { flex-basis: 62%; padding: 12px 12px 14px; }
  .sgh-kc .bmk { width: 46px; height: 35px; }
  .sgh-kc small { font-size: 12.5px; }
  .sgh-card .get-form { grid-template-columns: 1fr; }
  .sgh-card .get-form .get-row > label { grid-column: 1 / -1; }
}

/* ---- Big Five flip cards (/safari) ---- */
.b5-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.b5 { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 18px; background: none; color: rgb(var(--wht)); font: inherit; text-align: left; cursor: pointer; perspective: 900px; }
.b5-front, .b5-back { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2,.7,.2,1); border: 1px solid rgba(var(--wht), .1); }
.b5-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b5-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,14,16,.92) 0%, rgba(13,14,16,0) 55%); }
.b5-front b, .b5-front small { position: absolute; left: 14px; right: 14px; z-index: 1; }
.b5-front b { bottom: 32px; font-size: 18px; font-weight: 800; }
.b5-front small { bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warm1); }
.b5-back { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: linear-gradient(160deg, #2a1d17, var(--coal-1)); transform: rotateY(180deg); }
.b5-back b { font-size: 18px; font-weight: 800; }
.b5-back span { font-size: 15px; line-height: 1.55; color: rgba(var(--wht), .85); }
.b5-back .rl { margin-top: auto; }
.b5[aria-pressed="true"] .b5-front { transform: rotateY(-180deg); }
.b5[aria-pressed="true"] .b5-back { transform: rotateY(0); }
@media (max-width: 960px) { .b5-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .b5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .b5-front, .b5-back { transition: none; } }

/* ---- Guest tips (/safari) ---- */
.gt-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gt-tip { padding: 18px 20px; border-radius: 16px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); }
.gt-tip b { display: block; font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.gt-tip p { font-size: 15px; line-height: 1.6; color: rgba(var(--wht), .74); }
@media (max-width: 900px) { .gt-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gt-tips { grid-template-columns: 1fr; } }

/* Page sources line above the footer (same as the homepage's). */
.page-footnote { margin: 28px 0 0; padding: 18px 0 22px; border-top: 1px solid rgba(var(--wht), .08); font-size: 12px; line-height: 1.6; color: rgba(var(--wht), .38); }
.page-footnote em { font-style: italic; }
.page-footnote a { color: rgba(var(--wht), .5); }

/* ---- Your Safari Kit (/safari/kit/<region>) ---- */
.kit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kit-nav a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(var(--wht), .3); background: rgba(13,14,16,.4); color: rgb(var(--wht)); font-size: 14px; font-weight: 700; text-decoration: none; }
.kit-nav a:hover { border-color: var(--warm1); }
.kit-sec { scroll-margin-top: 80px; }
.kit-sec + .kit-sec { padding-top: 0; }
.kit-p { font-size: 16.5px; line-height: 1.65; color: rgba(var(--wht), .8); margin: 12px 0 0; max-width: 60ch; }
.kit-h3 { margin: 28px 0 12px; font-size: 18px; font-weight: 800; }
.kit-links { display: flex; flex-wrap: wrap; gap: 10px; }
.kit-link { padding: 12px 16px; border-radius: 14px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); color: rgb(var(--wht)); font-weight: 700; text-decoration: none; }
.kit-link:hover { border-color: rgba(255,138,91,.45); }
.kit-tips { margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit-ol { margin: 14px 0 0 20px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.6; }
.kit-sec .guide-actions { margin-top: 18px; }
@media (max-width: 560px) { .kit-tips { grid-template-columns: 1fr; } }

/* ---- /safari: two-part promise, leopard or cheetah ---- */
.sgh-h1b { display: block; color: var(--warm1); }
.kit-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit-ul { margin: 4px 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.55; color: rgba(var(--wht), .8); }
.lc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; }
.lc-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-fig { margin: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(var(--wht), .1); }
.lc-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-fig figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(13,14,16,.7); font-size: 13px; font-weight: 800; }
.lc-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lc-table th, .lc-table td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid rgba(var(--wht), .08); }
.lc-table thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm1); }
.lc-table tbody th { font-weight: 800; white-space: nowrap; }
.lc-table td { color: rgba(var(--wht), .78); }
.lc-tip { margin: 16px 0 18px; font-size: 15.5px; color: rgba(var(--wht), .85); }
@media (max-width: 900px) { .lc { grid-template-columns: 1fr; } .kit-two { grid-template-columns: 1fr; } }

/* ---- /safari sign-up: what's in the kit ---- */
.kit-first { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-then { margin: 22px 0 28px; padding: clamp(16px, 2.5vw, 22px); border-radius: 20px; border: 1px dashed rgba(255,138,91,.35); }
.kit-then-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.kit-then-head p { font-size: 14.5px; color: rgba(var(--wht), .65); }
.kit-then .kit-card { background: transparent; border-color: rgba(var(--wht), .06); }
@media (max-width: 900px) { .kit-first, .kit-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kit-first, .kit-three { grid-template-columns: 1fr; } }
.kit-b5, .kit-lc { margin-top: 14px; }
.kit-b5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kit-lc .lc { grid-template-columns: 1fr; }
.kit-b5 .b5 { aspect-ratio: 4 / 3; }
@media (max-width: 560px) { .kit-b5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- "Are you safari-ready?" quiz (/safari, guides/safari-quiz.js) ---- */
.sq { max-width: 760px; }
.sq-card { padding: clamp(20px, 3vw, 30px); border-radius: 20px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); margin-bottom: 14px; }
.sq.is-live .sq-card { margin-bottom: 0; }
.sq-n { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--warm1); margin-bottom: 8px; }
.sq:not(.is-live) .sq-n { display: none; }
.sq-card h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.sq-opts { display: grid; gap: 10px; }
.sq-opt { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--wht), .16); background: rgba(var(--wht), .03); color: rgb(var(--wht)); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.sq-opt:hover:not(:disabled) { border-color: var(--warm1); }
.sq-opt:disabled { cursor: default; }
.sq-opt.is-right { border-color: #4cbe78; background: rgba(76,190,120,.14); }
.sq-opt.is-wrong { border-color: #ff5470; background: rgba(255,84,112,.12); }
.sq:not(.is-live) .sq-opt[data-correct="1"] { border-color: #4cbe78; }
.sq-why { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: rgba(var(--wht), .82); }
.sq.is-live .sq-card:not(.is-answered) .sq-why { display: none; }
.sq-verdict { color: rgb(var(--wht)); }
.sq-more { margin-top: 8px; color: var(--warm1); font-weight: 700; }
.sq-nav { display: none; align-items: center; gap: 16px; margin-top: 16px; }
.sq.is-live .sq-nav { display: flex; }
.sq-progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(var(--wht), .1); overflow: hidden; }
.sq-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warm1), var(--warm2)); transition: width .3s; }
.sq-result { padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: linear-gradient(160deg, rgba(255,138,91,.16), rgba(255,84,112,.08)); border: 1px solid rgba(255,138,91,.35); }
.sq-result h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 4px 0 10px; }
.sq-result p { font-size: 16.5px; line-height: 1.6; color: rgba(var(--wht), .85); }
.sq-result .guide-actions { margin-top: 18px; }

/* ---- Kit page timeline ---- */
.kt-wrap { padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.kt { position: relative; padding-left: 40px; }
.kt::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, rgba(255,138,91,.5), rgba(255,138,91,.15)); }
.kt-when { position: relative; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--warm1); }
.kt-when::before { content: ""; position: absolute; left: -36px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 0 0 4px #0d0e10; }
.kt-item { padding-bottom: clamp(36px, 5vw, 56px); }
.kit-sec { scroll-margin-top: 80px; }

/* Quiz: a full-screen section, full width; each card has the question left and the answer right. */
#quiz.guide-section { min-height: 100svh; display: flex; align-items: center; background: radial-gradient(ellipse at 80% 20%, rgba(255,138,91,.1), transparent 60%), var(--coal-2); }
#quiz > .container { width: min(1240px, 92vw); }
.sq-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 22px; }
.sq-head .section-title { font-size: clamp(30px, 3.6vw, 44px); }
.sq-head p { font-size: 16.5px; color: rgba(var(--wht), .7); }
#quiz .sq { max-width: none; }
/* One fixed size for every question and the score, answered or not. */
#quiz .sq-card { height: 400px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
#quiz .sq-result { height: 400px; display: flex; flex-direction: column; justify-content: center; }
.sq-q { overflow-y: auto; }
.sq-a { overflow-y: auto; padding: clamp(18px, 2.4vw, 26px); border-radius: 16px; background: rgba(var(--wht), .03); border: 1px solid rgba(var(--wht), .06); display: flex; flex-direction: column; justify-content: center; }
.sq-a .sq-why { margin-top: 0; font-size: 16.5px; }
.sq-a .eyebrow { margin-bottom: 10px; }
.sq-wait { color: rgba(var(--wht), .5); font-size: 16px; text-align: center; }
.sq.is-live .sq-card.is-answered .sq-wait, .sq:not(.is-live) .sq-wait { display: none; }
@media (max-width: 900px) {
  #quiz .sq-card { grid-template-columns: 1fr; height: 800px; grid-template-rows: auto 1fr; }
  #quiz .sq-result { height: 800px; }
  .sq-a { justify-content: flex-start; }
}
.nowrap { white-space: nowrap; }

/* ---- /safari sign-up: kit cards swipe on the left, form on the right ---- */
.get-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
/* The card row matches the form's height: the form sets it, the cards fill it. */
.get-left, .kc { display: flex; flex-direction: column; }
.get-left { height: 100%; }
.kc { flex: 1; }
.kc-track { flex: 1; }
.kc-track .kit-card { height: 100%; }
.get-split > * { min-width: 0; }
.get-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.get-left .section-head { margin-bottom: 22px; }
.kc { min-width: 0; }
.kc-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 48%); grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding-bottom: 6px; scrollbar-width: none; }
.kc-track::-webkit-scrollbar { display: none; }
.kc-track .kit-card { scroll-snap-align: start; min-height: 260px; }
.kc-track .kit-card.is-then { border-style: dashed; border-color: rgba(255,138,91,.35); background: transparent; }
.kc-track .kit-card.is-then .kit-when { color: #c9a27a; }
.kc-nav { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.kc-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(var(--wht), .25); background: transparent; color: rgb(var(--wht)); font-size: 18px; cursor: pointer; }
.kc-btn:hover:not(:disabled) { border-color: var(--warm1); }
.kc-btn:disabled { opacity: .3; cursor: default; }
.kc-count { font-size: 14px; color: rgba(var(--wht), .7); min-width: 44px; text-align: center; }
.kc-note { margin-left: auto; font-size: 13.5px; color: rgba(var(--wht), .55); }
@media (max-width: 900px) {
  .get-split { grid-template-columns: 1fr; }
  .kc-track .kit-card { height: auto; }
  .kc-track { grid-auto-columns: 82%; }
  .kc-note { margin-left: 0; width: 100%; }
}
.get-split .get-card { grid-template-columns: 1fr; }
.get-split .get-card > * { grid-column: auto; min-width: 0; }
.get-split .get-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.get-split .get-row-trip, .get-split .get-row-trip.get-row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.get-split .get-form, .get-split .get-row > label, .get-split input, .get-split select { min-width: 0; }
.get-split .get-row-trip, .get-split .get-row-trip.get-row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.get-split .get-row-trip > label:last-child { grid-column: 1 / -1; } /* where + when share a line; travel company below */
.get-split .get-row-trip select { padding-left: 12px; padding-right: 30px; background-position: right 12px center; }
.get-split .get-row-trip label .opt { display: none; }
.get-copy:has(.get-quiz-note:not([hidden])) .get-region-note { display: none; }
.get-split .get-submit { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: start; }
.get-split .get-submit .btn { width: 100%; }
.get-split .get-small { max-width: none; font-size: 12.5px; }
.get-split .get-card { padding: clamp(22px, 2.6vw, 32px); gap: 16px; align-content: start; }
.get-split .get-copy .lead { font-size: 16px; }
.get-split .get-why { font-size: 13px; }
.get-split .get-copy .lead { display: none; }
.get-split .get-copy .guide-h2 { font-size: clamp(24px, 2.4vw, 30px); }
.kc-track .kit-card .bmk { width: 84px; height: 63px; margin: 10px 0 8px; }
.kc-track .kit-card h3 { font-size: 20px; }
.kc-track .kit-card p { font-size: 15.5px; }
/* The whole sign-up section fits one screen on desktop. */
@media (min-width: 901px) {
  section#get { min-height: 100svh; display: flex; align-items: center; padding-top: 78px; padding-bottom: 24px; }
  section#get > .container { width: min(var(--maxw), 92vw); }
  #get .get-head { margin-bottom: 24px; }
  #get .get-head .section-title { font-size: clamp(30px, 3.4vw, 44px); }
  #get .get-head .lead { font-size: 16.5px; }
}
.get-consent span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-footnote { white-space: normal !important; }

/* Card row arrows sit either side of the cards, not below. */
.kc { position: relative; }
.kc-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; background: rgba(13,14,16,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.kc-prev { left: -22px; }
.kc-next { right: -22px; }
.kc-btn:disabled { opacity: 0; pointer-events: none; }
.kc-track { padding-bottom: 0; }
@media (max-width: 900px) { .kc-prev { left: -8px; } .kc-next { right: -8px; } }

/* Quiz: the answer options fill the height of the question side. */
@media (min-width: 901px) {
  .sq-q { display: flex; flex-direction: column; }
  .sq-q .sq-opts { flex: 1; grid-auto-rows: 1fr; }
  .sq-q .sq-opt { display: flex; align-items: center; font-size: 17px; }
}

/* Balanced kit cards: tag pinned top, icon + text centred in the height; cards take 2/3. */
.get-split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.kc-track { grid-auto-columns: minmax(260px, calc(50% - 7px)); }
.kc-track .kit-card { position: relative; justify-content: center; padding: 56px 30px 34px; gap: 12px; }
.kc-track .kit-card .kit-when { position: absolute; top: 26px; left: 30px; }
.kc-track .kit-card .bmk { width: 132px; height: 99px; margin: 0 0 10px; }
.kc-track .kit-card h3 { font-size: 24px; line-height: 1.2; }
.kc-track .kit-card p { font-size: 16.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .get-split { grid-template-columns: minmax(0, 1fr); } /* phones: cards above the form, one column */
  .kc-track { grid-auto-columns: 82%; }
  .kc-track .kit-card { min-height: 360px; }
  .kc-track .kit-card .bmk { width: 104px; height: 78px; }
}
@media (min-width: 901px) {
  section#get > .container { width: min(1320px, 94vw); }
  .get-split { grid-template-columns: minmax(0, 2fr) minmax(400px, 1fr); gap: clamp(24px, 3vw, 44px); }
}
/* Every card's parts sit in the same place: fixed slots for icon, title (two lines) and text. */
.kc-track .kit-card { display: grid; grid-template-rows: 1fr auto auto auto 1fr; align-content: stretch; justify-content: stretch; gap: 0; }
.kc-track .kit-card .bmk { grid-row: 2; height: 99px; margin: 0 0 18px; }
.kc-track .kit-card h3 { grid-row: 3; height: 2.4em; margin: 0 0 10px; display: flex; align-items: flex-start; }
.kc-track .kit-card p { grid-row: 4; height: calc(1.6em * var(--kc-lines, 6)); overflow: hidden; margin: 0; }

/* ---- /safari extras ---- */
.sg-best { margin-top: 8px; font-size: 13px; color: rgba(var(--wht), .75); }
.sg-best b { color: var(--warm1); font-weight: 800; }
.kit-best { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255,138,91,.1); border: 1px solid rgba(255,138,91,.3); font-size: 15.5px; line-height: 1.6; color: rgba(var(--wht), .85); }
.kit-best b { color: rgb(var(--wht)); }
.get-quiz-note { margin-top: 0; padding: 10px 12px; border-radius: 12px; background: rgba(76,190,120,.1); border: 1px solid rgba(76,190,120,.35); font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .85); }
.get-quiz-note b { color: rgb(var(--wht)); }
/* Peek card: a mini kit page in the icon slot. */
.kc-peek .peek { grid-row: 2; position: relative; display: block; height: 99px; margin: 0 0 18px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(var(--wht), .12); background: #15171a; }
.peek-bar { display: block; padding: 4px 8px; font-size: 9.5px; color: rgba(var(--wht), .55); background: rgba(var(--wht), .06); }
.peek-rows { display: grid; gap: 3px; padding: 6px 8px; filter: blur(1.6px); }
.peek-rows span { font-size: 10.5px; font-weight: 700; color: rgb(var(--wht)); }
.peek-rows i { font-style: normal; color: var(--warm1); margin-right: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.peek-lock { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); font-size: 11px; font-weight: 800; color: rgb(var(--wht)); }
/* Trust row in the form. */
.get-trust { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(var(--wht), .08); font-size: 12.5px; line-height: 1.45; color: rgba(var(--wht), .6); }
.get-trust img { flex: none; width: 34px; height: 34px; }
.get-trust a { color: rgba(var(--wht), .8); }
/* Share after sign-up. */
.share { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(var(--wht), .08); }
.share-h { font-weight: 700; margin-bottom: 10px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btns .btn { padding: 10px 16px; font-size: 14px; }
/* Sticky CTA: phones only. */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta:not([hidden]) { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; padding: 15px 18px; border-radius: 14px; text-align: center; font-weight: 800; color: rgb(var(--wht)); text-decoration: none; background: linear-gradient(155deg, var(--warm1), var(--warm2)); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
}

.get-split .get-small { font-size: 12px; }
.get-trust { padding-top: 10px; font-size: 12px; }
.get-split .get-card { gap: 12px; padding-top: 24px; padding-bottom: 22px; }
.get-quiz-note { padding: 8px 12px; font-size: 13.5px; }
#get .get-head { margin-bottom: 20px; }
.get-card:has(.get-done:not([hidden])) :is(.get-trust, .get-quiz-note) { display: none; }

/* Region cards: a faint rule above "Best time", which sits at the card's foot. */
.sg-card { align-content: start; }
.sg-best { margin-top: auto; padding-top: 12px; width: 100%; border-top: 1px solid rgba(var(--wht), .14); }
.sg-card { display: flex; flex-direction: column; align-items: center; }
.sg-detail { flex: 0 0 auto; margin-bottom: 12px; }
/* The peek card is wider than the rest (first column of the row). */
.kc-track { grid-template-columns: max(300px, calc(62% - 7px)); }
.kc-peek .peek { height: 99px; }
.kc-peek .peek-rows span { font-size: 12px; }
.kc-peek .peek-bar { font-size: 10.5px; }
/* The peek card shows a bigger, readable-but-blurred kit page. */
.kc-peek .peek { height: 250px; }
.kc-peek .peek-rows { gap: 10px; padding: 14px 14px; filter: blur(2px); }
.kc-peek .peek-rows span { font-size: 15px; }
.kc-peek .peek-rows i { font-size: 11px; display: block; margin-bottom: 2px; }
.kc-peek .peek-bar { font-size: 11.5px; padding: 6px 10px; }
.kc-peek .peek-lock { bottom: 14px; font-size: 13px; padding: 6px 14px; }
.kc-peek h3 { height: auto; }
/* ================= My giving (/my-giving) ================= */
.mg-form { margin-top: 24px; display: grid; gap: 10px; text-align: left; }
.mg-label { font-size: 13px; font-weight: 700; color: rgba(var(--wht), .7); }
.mg-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: rgb(var(--wht)); background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .18); border-radius: 12px; padding: 13px 14px; color-scheme: dark; }
.mg-input:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.mg-submit { margin-top: 6px; width: 100%; }
.mg-submit:disabled { opacity: .6; cursor: default; transform: none; }
.auth-note a, .mg-history .fnote a, .mg-empty a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mg-history { padding-top: clamp(96px, 12vw, 128px); min-height: calc(100dvh - 62px); }
.mg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.mg-year { margin-bottom: clamp(22px, 3vw, 32px); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; padding: clamp(18px, 2.4vw, 24px); }
.mg-year-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mg-year-head h2 { font-size: 22px; font-weight: 800; }
.mg-year-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mg-total { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.mg-table-wrap { overflow-x: auto; }
.mg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mg-table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .5); padding: 8px 10px; border-bottom: 1px solid rgba(var(--wht), .12); }
.mg-table td { padding: 11px 10px; border-bottom: 1px solid rgba(var(--wht), .07); vertical-align: top; }
.mg-table .mg-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mg-date { white-space: nowrap; color: rgba(var(--wht), .65); }
.mg-sum td { font-weight: 800; border-bottom: none; }
.mg-void td { color: rgba(var(--wht), .45); }
.mg-void .mg-amt { text-decoration: line-through; }
.mg-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #ffb4b4; background: rgba(255,90,90,.12); border: 1px solid rgba(255,90,90,.35); }
.mg-tag-soft { color: rgba(var(--wht), .7); background: rgba(var(--wht), .06); border-color: rgba(var(--wht), .14); }
.mg-empty { padding: clamp(22px, 3vw, 30px); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: 16px; }
.mg-empty h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.mg-empty p { color: rgba(var(--wht), .75); line-height: 1.6; }
.mg-print-head { display: none; }
.mg-ack { margin: 8px 0 10px; max-width: 760px; font-size: 13px; line-height: 1.6; color: rgba(var(--wht), .55); }
@media (max-width: 560px) { .mg-table { font-size: 14px; } .mg-table td, .mg-table th { padding-left: 6px; padding-right: 6px; } .mg-date { white-space: normal; } }
/* Print = a plain statement for one year (the button sets body[data-print-year]). */
@page mg { size: auto; margin: 16mm; }
@media print {
  body.mg-page { background: #fff; color: #000; }
  body.mg-page main { page: mg; }
  body.mg-page .site-header, body.mg-page .side-donate, body.mg-page .site-footer, body.mg-page .modal, body.mg-page [aria-label="Cookie consent"], body.mg-page .mg-noprint, body.mg-page .eyebrow { display: none !important; }
  body.mg-page .mg-history { padding: 0; min-height: 0; }
  body.mg-page[data-print-year] .mg-year:not([data-print-year-match]) { display: none; }
  body.mg-page .mg-year { background: none; border: none; padding: 0; }
  body.mg-page .mg-head { display: none; }
  body.mg-page .mg-print-head { display: block; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid #000; font-size: 12.5px; color: #000; }
  body.mg-page .mg-print-head h1 { margin-top: 10px; font-size: 26px; font-weight: 800; }
  body.mg-page .mg-print-head p { margin-top: 4px; font-size: 13px; }
  body.mg-page .mg-tag { color: #000; background: none; border-color: #888; }
  body.mg-page .mg-table th, body.mg-page .mg-table td, body.mg-page .fnote, body.mg-page .mg-ack, body.mg-page .mg-date, body.mg-page .mg-void td { color: #000; border-color: #bbb; }
}
/* My giving: monthly gifts */
.mg-monthly { margin-bottom: clamp(26px, 3.4vw, 38px); }
.mg-h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.mg-mgift { margin-bottom: 14px; padding: clamp(18px, 2.4vw, 24px); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-left: 3px solid var(--warm1); border-radius: 16px; }
.mg-mlabel { font-size: 14px; font-weight: 700; color: rgba(var(--wht), .7); }
.mg-mamt { margin-top: 4px; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mg-mamt span { font-size: 16px; font-weight: 700; color: rgba(var(--wht), .6); }
.mg-mamt .mg-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: rgba(var(--wht), .5); }
.mg-mnote { margin-top: 6px; font-size: 14px; color: rgba(var(--wht), .65); }
.mg-warn { color: #ffcf9a; }
.mg-ok { color: #8fe3a8; }
.mg-mactions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.mg-quiet { background: none; border-color: transparent; color: rgba(var(--wht), .6); }
.mg-medit { margin-top: 14px; display: grid; gap: 10px; max-width: 460px; }
.mg-mrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-mrow .mg-input { width: 130px; padding: 10px 12px; }
.mg-dollar { font-size: 18px; font-weight: 800; color: rgba(var(--wht), .7); }
.mg-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: rgba(var(--wht), .75); cursor: pointer; }
.mg-check input { accent-color: var(--warm1); width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; }
.mg-merr { margin-top: 8px; min-height: 0; text-align: left; }
.mg-merr:empty { display: none; }

/* Screenshot lightbox (app.js): click any gallery shot to see it larger; arrows, keys or swipe to move. */
.we-gallery .we-gframe img { cursor: zoom-in; }
.we-gallery .we-gframe img:focus-visible { outline: 2px solid var(--warm1); outline-offset: -2px; }
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px 20px; background: rgba(8,9,10,.94); opacity: 0; transition: opacity .18s ease; touch-action: pan-y pinch-zoom; }
.lb.open { opacity: 1; }
.lb-img { display: block; max-width: min(94vw, 1440px); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); width: auto; height: auto; border-radius: 12px; border: 1px solid rgba(var(--wht), .12); background: #0d0e10; box-shadow: 0 20px 60px rgba(0,0,0,.5); -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.lb-cap { max-width: min(94vw, 720px); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.lb-cap b { font-size: 16px; }
.lb-cap span { font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .66); }
.lb-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: rgba(var(--wht), .6); }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(var(--wht), .2); background: rgba(22,23,26,.85); color: rgb(var(--wht)); display: grid; place-items: center; cursor: pointer; padding: 0; }
.lb-btn:hover, .lb-btn:focus-visible { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 10px; right: 12px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb { padding-bottom: 72px; } .lb-img { max-height: calc(100dvh - 210px); } }
@media (prefers-reduced-motion: reduce) { .lb { transition: none; } }

/* Grants "What partners get": the Wild Eyes card markers (.bmk), drawn in when #gp-perks scrolls into view. */
.gp-perks .gp-card { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.gp-perks .gp-card:hover { transform: translateY(-3px); border-color: rgba(var(--wht), .25); }
.gp-perks .bmk { margin-bottom: 4px; }
.gp-perks.in .bmk [data-draw] { animation: bmDraw 1.2s ease-in-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .15s); }
.gp-perks.in .bmk [data-fill] { animation: bmFill .75s ease-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .1s); }
.gp-perks.in .gp-card:hover .bmk [data-draw] { animation: bmHover .9s ease-in-out both; animation-delay: calc(var(--d,0s) * .45); }
@media (prefers-reduced-motion: reduce) { .gp-perks .gp-card { transition: none; } .gp-perks .gp-card:hover { transform: none; } }

/* Shared modal forms (grants partnership inquiry, program-page wire request). */
.gp-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.gp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 560px) { .gp-row { grid-template-columns: 1fr; } }
.gp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: rgba(var(--wht), .8); min-width: 0; }
.gp-form input, .gp-form select, .gp-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: rgb(var(--wht)); padding: 12px 14px; border-radius: 11px; border: 1px solid rgba(var(--wht), .22); background: rgba(var(--wht), .06); width: 100%; }
.gp-form select option { color: #0d0e10; }
.gp-form input, .gp-form select { box-sizing: border-box; height: 48px; min-height: 48px; line-height: 1.2; padding-top: 0; padding-bottom: 0; }
.gp-form select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
/* Same country list and order as the Wild Eyes sign-up (lib/countries.ts): safari countries first, then A–Z. */
.gp-form textarea { resize: vertical; min-height: 84px; }
.gp-form input:focus, .gp-form select:focus, .gp-form textarea:focus { outline: none; border-color: var(--warm1); }
.gp-form textarea::placeholder { color: rgba(var(--wht), .4); }
.gp-opt { font-weight: 400; color: rgba(var(--wht), .5); }
.gp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gp-form .donate-btn { margin-top: 6px; }
.gp-form .donate-err a { color: var(--warm1); }
#modal-wire .card { width: min(560px, 94vw); text-align: left; }
.imv-check .imv-alt { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(var(--wht), .08); }
.imv-check .imv-alt + .imv-alt { border-top: 0; padding-top: 0; margin-top: 8px; }
.imv-check a.imv-wire { color: var(--warm1); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* "Other ways to give" on program pages folds away under the donate button. */
details.imv-check { padding: 0; }
details.imv-check > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 14px 18px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: rgb(var(--wht)); }
details.imv-check > summary::-webkit-details-marker { display: none; }
details.imv-check > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--warm1); border-bottom: 2px solid var(--warm1); transform: translateY(-3px) rotate(45deg); transition: transform var(--dur) var(--ease); }
details.imv-check[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.imv-check > summary:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; border-radius: 14px; }
details.imv-check > :not(summary) { margin-left: 18px; margin-right: 18px; }
details.imv-check[open] { padding-bottom: 16px; }
details.imv-check > summary + p { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { details.imv-check > summary::after { transition: none; } }
.imv-daf-list { margin: 10px 0 0; display: grid; gap: 2px; }
.imv-daf-list > div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; }
.imv-daf-list dt { font-size: 12px; color: rgba(var(--wht), .55); }
.imv-daf-list dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgb(var(--wht)); min-width: 0; }
.imv-daf-list dd > span { min-width: 0; overflow-wrap: anywhere; }
.imv-daf-list .ein-copy { flex: none; width: 36px; height: 36px; margin: 0 -10px 0 0; }

/* Small source line just above the footer. */
.page-footnote { margin: 28px 0 0; padding: 18px 0 22px; border-top: 1px solid rgba(var(--wht), .08); font-size: 12px; line-height: 1.6; color: rgba(var(--wht), .38); }
@media (min-width: 1240px) { .page-footnote { white-space: nowrap; } }
.page-footnote em { font-style: italic; }

/* ---- Safari Kit pages v2 (/safari/kit/<region>): sticky progress rail + section cards ---- */
.kit-hero-cta { margin-top: 22px; }
.kit-trip { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 14px 18px; border-radius: 16px; background: rgba(13,14,16,.55); border: 1px solid rgba(var(--wht), .14); backdrop-filter: blur(6px); max-width: 760px; }
.kit-trip[hidden], .kit-trip [hidden] { display: none !important; }
.kit-trip-when { font-size: 15.5px; color: rgba(var(--wht), .82); }
.kit-trip-when b { color: rgb(var(--wht)); }
.kit-trip-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kit-trip-next > span:first-child { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--warm1); }
.kit-trip-next > span:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-chip { padding: 7px 13px; border-radius: 999px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); font-size: 14px; font-weight: 800; text-decoration: none; }
.kt-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.kt-rail { position: sticky; top: 88px; display: grid; gap: 18px; }
.kt-prog { display: grid; gap: 8px; font-size: 14px; color: rgba(var(--wht), .7); }
.kt-prog b { color: rgb(var(--wht)); font-size: 18px; }
.kt-bar { height: 6px; border-radius: 99px; background: rgba(var(--wht), .1); overflow: hidden; }
.kt-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--warm1), var(--warm2)); transition: width .4s ease; }
.kt-nav { display: grid; gap: 2px; border-left: 2px solid rgba(var(--wht), .08); }
.kt-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-left: -2px; border-left: 2px solid transparent; color: rgba(var(--wht), .62); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.kt-nav a:hover, .kt-nav a.is-on { color: rgb(var(--wht)); border-left-color: var(--warm1); }
.kt-nav a i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(var(--wht), .3); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.kt-nav a.is-done i { border-color: var(--warm1); background: var(--warm1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.kt-main { display: grid; gap: clamp(18px, 2.5vw, 26px); min-width: 0; }
.kt-main .kit-sec { padding: clamp(22px, 3.2vw, 36px); border-radius: 22px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .07); scroll-margin-top: 96px; transition: border-color .3s; }
.kt-main .kit-sec + .kit-sec { padding-top: clamp(22px, 3.2vw, 36px); }
.kt-main .kit-sec.is-done { border-color: rgba(255,138,91,.35); }
.ks-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-bottom: 10px; }
.ks-ico.bmk { width: 72px; height: 54px; margin: 0; }
.ks-title .kt-when { margin: 0 0 4px; }
.ks-title .kt-when::before { content: none; }
.ks-title .guide-h2 { margin: 0; }
.ks-done { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(var(--wht), .22); background: transparent; color: rgba(var(--wht), .8); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.ks-done::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.ks-done:hover { border-color: var(--warm1); color: rgb(var(--wht)); }
.ks-done[aria-pressed="true"] { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; color: rgb(var(--wht)); }
.ks-done[aria-pressed="true"]::before { border-color: #fff; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ks-body .kit-p { max-width: 68ch; }
.ks-body .gt-tip { background: rgba(var(--wht), .035); }
[data-mk-group].in .bmk [data-draw] { animation: bmDraw 1.2s ease-in-out both; animation-delay: calc(var(--d,0s) + .15s); }
[data-mk-group].in .bmk [data-fill] { animation: bmFill .75s ease-out both; animation-delay: calc(var(--d,0s) + .1s); }
.kb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.kb-card { padding: 16px 18px; border-radius: 16px; background: rgba(var(--wht), .035); border: 1px solid rgba(var(--wht), .06); }
.kb-card .eyebrow { margin-bottom: 8px; }
.kb-card p { font-size: 15.5px; line-height: 1.6; color: rgba(var(--wht), .8); }
.kb-wide { grid-column: 1 / -1; }
.kb-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kb-word { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(255,138,91,.08); border: 1px solid rgba(255,138,91,.18); }
.kb-word b { font-size: 18px; font-weight: 800; color: rgb(var(--wht)); }
.kb-word span { font-size: 14.5px; color: rgba(var(--wht), .8); }
.kb-word small { font-size: 12px; color: rgba(var(--wht), .5); }
.kb-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kb-places li { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(var(--wht), .16); font-size: 14px; font-weight: 700; }
@media (max-width: 900px) {
  .kt-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .kt-rail { top: 69px; z-index: 5; gap: 8px; margin: 0 -16px; padding: 10px 16px; background: rgba(13,14,16,.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(var(--wht), .08); }
  .kt-prog { grid-template-columns: auto 1fr; align-items: center; gap: 12px; font-size: 13px; }
  .kt-prog b { font-size: 15px; }
  .kt-nav { display: flex; gap: 6px; overflow-x: auto; border-left: 0; scrollbar-width: none; }
  .kt-nav::-webkit-scrollbar { display: none; }
  .kt-nav a { flex: none; margin: 0; padding: 6px 11px; border: 1px solid rgba(var(--wht), .14); border-radius: 999px; font-size: 13px; white-space: nowrap; }
  .kt-nav a:hover, .kt-nav a.is-on { border-color: var(--warm1); }
  .kt-nav a i { width: 12px; height: 12px; }
  .kt-main .kit-sec { scroll-margin-top: 175px; }
  .kb-grid { grid-template-columns: minmax(0, 1fr); }
  .kb-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ks-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .ks-ico.bmk { width: 52px; height: 39px; }
  .ks-done { grid-column: 1 / -1; justify-self: start; }
}
/* Safari Kit: full width (Todd, 2026-10-21). Only text line length is capped. */
main[data-kit] .container { width: calc(100% - 2 * clamp(16px, 3vw, 48px)); max-width: none; }
main[data-kit] .kt-grid { grid-template-columns: 240px minmax(0, 1fr); }
main[data-kit] .kt-main .kit-tips { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
main[data-kit] .kt-main .kit-b5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
main[data-kit] .kb-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* In the sheet: Money, Plugs, Places and Health share a row (dense fill), the phrases go full width. */
main[data-kit] .kb-sheet .kb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
@media (max-width: 1100px) { main[data-kit] .kb-sheet .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { main[data-kit] .kb-sheet .kb-grid { grid-template-columns: minmax(0, 1fr); } }
main[data-kit] .kit-lc .lc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { main[data-kit] .kt-grid { grid-template-columns: minmax(0, 1fr); } main[data-kit] .kit-lc .lc { grid-template-columns: 1fr; } }
/* Safari Kit: everything on one page (checklist, look-alike quizzes, packing, trip, kids). */
main[data-kit] .kit-score { position: sticky; top: 68px; z-index: 4; margin: 16px 0 4px; border: 1px solid rgba(var(--wht), .1); border-radius: 14px; }
main[data-kit] .kit-score .scorebar-in { padding: 10px 16px; }
main[data-kit] .spot-grid-big { margin-top: 4px; }
main[data-kit] .kit-h3 .spot-count { font-size: 14px; font-weight: 700; color: var(--warm1); margin-left: 8px; }
.kit-more { margin-top: 18px; border-radius: 16px; border: 1px solid rgba(var(--wht), .1); background: rgba(var(--wht), .02); }
.kit-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; }
.kit-more > summary::-webkit-details-marker { display: none; }
.kit-more > summary::after { content: "Show all \25BE"; margin-left: auto; font-size: 14px; color: var(--warm1); }
.kit-more[open] > summary::after { content: "Hide \25B4"; }
.kit-more > summary small { font-size: 14px; font-weight: 600; color: rgba(var(--wht), .6); }
.kit-more > :not(summary) { margin-left: 18px; margin-right: 18px; }
.kit-more > .spot-grid:last-child { margin-bottom: 18px; }
.kit-more .spot-group { margin-top: 18px; margin-bottom: 10px; font-size: 15px; }
.kla-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.kla-tab { padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(var(--wht), .2); background: transparent; color: rgba(var(--wht), .8); font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.kla-tab:hover { border-color: var(--warm1); color: rgb(var(--wht)); }
.kla-tab[aria-selected="true"] { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; color: rgb(var(--wht)); }
.kla { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.kla .lc-pics { grid-template-columns: 1fr; }
.kla-quiz .eyebrow { margin-bottom: 10px; }
.kla-quiz .quiz-card { max-width: none; background: rgba(var(--wht), .03); }
.kit-fine { font-size: 13px; color: rgba(var(--wht), .5); }
.kit-fine a { color: rgba(var(--wht), .65); }
main[data-kit] .pk-progress { top: 68px; }
main[data-kit] .kit-pk { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
main[data-kit] .kit-pk .pk-group { background: rgba(var(--wht), .03); }
.kit-rs { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 16px; }
.kit-rs .rs-col { background: var(--coal-1); border-radius: var(--kr); }
.kit-rs .rs-ask { border-radius: var(--kr); }
/* The operator checks: tick rows like the packing list. */
.kit-rs .kit-pki .pk-row b { font-size: 15px; line-height: 1.35; }
.kit-rs .rs-asks { margin-top: 10px; }
.kit-rs .rs-ask .eyebrow small, .kit-rs .rs-col .eyebrow small { margin-left: 8px; font-size: 11px; letter-spacing: .06em; text-transform: none; color: rgba(var(--wht), .45); font-weight: 600; }
.kit-rs .rs-ask .kit-h3 { margin-top: 6px; }
.kit-kp.kp-sheets { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 14px; padding: 4px 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.kit-kp .kp-page { flex: none; scroll-snap-align: start; }
.kit-kp .kp-page { width: 720px; zoom: .3; box-shadow: none; }
@media (max-width: 1200px) { .kla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kla .lc-pics { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; } }
@media (max-width: 900px) { main[data-kit] .kit-score, main[data-kit] .pk-progress { top: 160px; } }
@media (max-width: 700px) { .kla { grid-template-columns: minmax(0, 1fr); } .kit-kp .kp-page { zoom: .22; } }
@media print {
  body.print-kids .site-header, body.print-kids footer, body.print-kids .bento, body.print-kids .page-footnote,
  body.print-kids .kit-sec:not(#kids), body.print-kids #kids .ks-head, body.print-kids #kids .ks-body > :not(.kp-sheets, .ov-kids-wrap), body.print-kids .ov-kids-wrap > .kit-sub, body.print-kids .kp-thumbs { display: none !important; }
  body.print-kids .ov-kids-wrap, body.print-kids .kp-view { display: block !important; }
  body.print-kids .kb-wrap, body.print-kids .kb-sheet, body.print-kids .kb-sheet-in, body.print-kids #kids { display: block; position: static; overflow: visible; padding: 0; margin: 0; width: auto; max-width: none; border: 0; background: none; }
  body.print-kids .kit-kp.kp-sheets { display: block; }
  body.print-kids .kit-kp .kp-page { zoom: 1 !important; width: 8.5in; }
}
main[data-kit] .kt-main { grid-template-columns: minmax(0, 1fr); } main[data-kit] .kt-main .kit-sec, main[data-kit] .ks-body { min-width: 0; }
/* Look for / Avoid as accordions (kit) */
details.rs-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
details.rs-item > summary::-webkit-details-marker { display: none; }
details.rs-item > summary::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--wht), .2); font-size: 16px; font-weight: 700; color: rgba(var(--wht), .7); transition: transform var(--dur) var(--ease); }
details.rs-item[open] > summary::after { content: "\2212"; }
details.rs-item > summary:hover::after { border-color: var(--warm1); color: rgb(var(--wht)); }
details.rs-item > p { margin-top: 6px; padding-right: 36px; }
.rs-col .eyebrow small { margin-left: 8px; font-size: 11px; letter-spacing: .06em; text-transform: none; color: rgba(var(--wht), .45); font-weight: 600; }
/* Kit tip cards as accordions (drive, manners, photos, tipping) */
main[data-kit] .kit-tips { align-items: start; }
details.kit-acc { padding: 0; }
details.kit-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
details.kit-acc > summary::-webkit-details-marker { display: none; }
details.kit-acc > summary b { margin: 0; }
details.kit-acc > summary::after { content: "+"; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--wht), .2); font-size: 16px; font-weight: 700; color: rgba(var(--wht), .7); }
details.kit-acc[open] > summary::after { content: "\2212"; }
details.kit-acc[open] { border-color: rgba(255,138,91,.3); }
details.kit-acc > summary:hover::after { border-color: var(--warm1); color: rgb(var(--wht)); }
details.kit-acc > p { padding: 0 18px 16px; }
/* "Also pack for <area>" (kit) */
.kit-extra { margin: 16px 0 6px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255,138,91,.3); background: linear-gradient(160deg, rgba(255,138,91,.1), rgba(255,84,112,.05)); }
.kit-extra .eyebrow { margin-bottom: 8px; }
.kit-extra ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15.5px; line-height: 1.55; color: rgba(var(--wht), .82); }
.kit-extra b { color: rgb(var(--wht)); }
/* Trip areas on /safari: region cards with area chips; the hero's area picker */
.sg-card { cursor: default; align-content: start; }
.sg-card.is-picked { border-color: var(--warm2); box-shadow: 0 0 0 1px var(--warm2) inset; }
.sg-card-pick { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.sg-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.sg-areas[hidden] { display: none; }
.sg-areas-h { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--wht), .55); }
.sg-area { padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(var(--wht), .22); background: rgba(13,14,16,.5); color: rgb(var(--wht)); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.sg-area:hover { border-color: var(--warm1); }
.sg-area[aria-pressed="true"] { background: linear-gradient(155deg, var(--warm1), var(--warm2)); border-color: transparent; }
.sg-areapick { margin-top: 18px; display: grid; gap: 10px; }
.sg-areapick[hidden] { display: none; }
.sg-areapick-h { font-size: 15px; color: rgba(var(--wht), .85); }
.sg-areapick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-areapick .sg-area { font-size: 14.5px; padding: 9px 14px; }
/* /safari: one card and one globe shape per trip area (full width) */
.sg-areas-sec .container { width: calc(100% - 2 * clamp(16px, 3vw, 48px)); max-width: none; }
.sg-cards { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sg-card { cursor: pointer; align-content: start; }
.sg-card[aria-pressed="true"] { border-color: var(--warm2); box-shadow: 0 0 0 1px var(--warm2) inset; }
.sg-card small { letter-spacing: .1em; }
.sg-pin { fill: var(--warm1); stroke: #0d0e10; stroke-width: 2; cursor: pointer; transition: r var(--dur) var(--ease); }
.sg-pin.is-hover, .sg-pin.is-picked { fill: #fff; stroke: var(--warm2); stroke-width: 3; }
@media (max-width: 1400px) { .sg-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .sg-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .sg-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Area names on the /safari globe */
.sg-label { font-family: inherit; font-weight: 700; font-size: 14px; fill: #fff; stroke: rgba(13,14,16,.85); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; cursor: pointer; transition: fill var(--dur) var(--ease); }
.sg-label.is-hover, .sg-label.is-picked { fill: #ffd0bd; }
@media (max-width: 700px) { .sg-label { font-size: 21px; stroke-width: 5px; } }
.sg-svg { overflow: visible; } /* area names near the edge of the globe stay whole */
/* Kit fine print (further reading, photo credits): one line where it fits, a hairline above */
main[data-kit] .kit-fine { max-width: none; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(var(--wht), .08); }
/* Kit packing list: tick + name, the note behind a + */
.kit-pki { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 9px 2px; border-top: 1px solid rgba(var(--wht), .06); }
.kit-pki:first-of-type { border-top: 0; }
.kit-pki .pk-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; cursor: pointer; }
.kit-pki .pk-row input { position: absolute; opacity: 0; pointer-events: none; }
.kit-pki .pk-row b { font-size: 15px; font-weight: 700; line-height: 1.35; }
.kit-pki input:checked + .pk-box { background: var(--warm1); border-color: var(--warm1); }
.kit-pki input:checked + .pk-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.kit-pki input:focus-visible + .pk-box { outline: 2px solid var(--warm1); outline-offset: 2px; }
.kit-pki input:checked ~ b { text-decoration: line-through; text-decoration-color: rgba(var(--wht), .4); color: rgba(var(--wht), .65); }
.pk-more { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(var(--wht), .2); background: transparent; color: rgba(var(--wht), .7); font: inherit; font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pk-more::before { content: "+"; }
.pk-more[aria-expanded="true"]::before { content: "\2212"; }
.pk-more:hover { border-color: var(--warm1); color: rgb(var(--wht)); }
.pk-note { grid-column: 1 / -1; margin: 6px 36px 2px 34px; font-size: 13.5px; line-height: 1.5; color: rgba(var(--wht), .65); }
.pk-note[hidden] { display: none; }
/* +/− in the kit's circle buttons, drawn with two bars so they sit dead centre (a text "+"
   rides high or low depending on the font). */
.pk-more::before, details.rs-item > summary::after, details.kit-acc > summary::after {
  content: "" !important;
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center / 2px 10px no-repeat;
}
.pk-more::before { width: 100%; height: 100%; border-radius: 50%; }
.pk-more[aria-expanded="true"]::before, details.rs-item[open] > summary::after, details.kit-acc[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / 10px 2px no-repeat;
}
.pk-more { padding: 0; }
/* Kit: the checklist card in Know your animals */
.kit-cl-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; margin: 18px 0 8px; padding: clamp(18px, 2.6vw, 26px); border-radius: 18px; border: 1px solid rgba(255,138,91,.35); background: linear-gradient(160deg, rgba(255,138,91,.14), rgba(255,84,112,.06)); }
.kit-cl-card h3 { margin: 4px 0 6px; font-size: 20px; font-weight: 800; }
.kit-cl-card p { font-size: 15.5px; line-height: 1.6; color: rgba(var(--wht), .8); max-width: 62ch; }
.kit-cl-card .guide-actions { margin: 0; }
@media (max-width: 900px) { .kit-cl-card { grid-template-columns: minmax(0, 1fr); } }

/* /safari/kit/<area>/checklist: made for the vehicle */
.sr-page { min-height: 100vh; background: #0d0e10; padding-bottom: 40px; }
.sr-top { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 48px); padding-top: max(14px, env(safe-area-inset-top)); }
.sr-top h1 { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; }
.sr-back { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(var(--wht), .2); color: rgb(var(--wht)); font-size: 14px; font-weight: 700; text-decoration: none; }
.sr-score.scorebar { top: 0; }
.sr-wrap { width: calc(100% - 2 * clamp(16px, 3vw, 48px)); margin: 0 auto; }
.sr-tip { margin: 16px 0 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255,138,91,.1); border: 1px solid rgba(255,138,91,.25); font-size: 14.5px; line-height: 1.55; color: rgba(var(--wht), .85); }
.sr-tip-off { color: #8fdcab; font-weight: 700; }
.sr-group { margin: 26px 0 10px; font-size: 18px; font-weight: 800; }
.sr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.sr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--coal-1); border: 1px solid rgba(var(--wht), .07); }
.sr .spot-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.sr .spot-row img { width: 64px; height: 48px; aspect-ratio: auto; border-radius: 8px; object-fit: cover; }
.sr-main { display: grid; gap: 4px; min-width: 0; }
.sr-main strong { font-size: 16px; }
.sr .spot-check { width: 28px; height: 28px; }
.sr:has(.spot-row.is-seen) { border-color: rgba(76,190,120,.75); }
.sr-note { grid-column: 1 / -1; margin: 8px 4px 4px; font-size: 14px; line-height: 1.55; color: rgba(var(--wht), .75); }
.sr-note[hidden] { display: none; }
.sr-fact { display: block; margin-top: 6px; color: rgba(var(--wht), .85); }
.sr-fact b { color: var(--warm1); }
.sr-foot { margin-top: 26px; }
@media (max-width: 560px) { .sr-list { grid-template-columns: minmax(0, 1fr); } .sr .spot-row { grid-template-columns: 56px minmax(0, 1fr) auto; } .sr .spot-row img { width: 56px; height: 42px; } }
/* Kit checklist card: the two buttons stacked, against the right edge */
.kit-cl-card .guide-actions { flex-direction: column; align-items: stretch; gap: 10px; justify-self: end; min-width: 260px; }
.kit-cl-card .guide-actions .btn { justify-content: center; text-align: center; }
@media (max-width: 900px) { .kit-cl-card .guide-actions { justify-self: stretch; min-width: 0; } }
/* Kit look-alikes: one comparison grid, the quiz opening underneath */
.cmp { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
.cmp-pic { margin: 0 0 6px; position: relative; }
.cmp-pic img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 14px; display: block; }
.cmp-pic figcaption { margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warm1); }
.cmp-k, .cmp-v { padding: 12px 0; border-top: 1px solid rgba(var(--wht), .08); font-size: 15px; line-height: 1.55; }
.cmp-k { font-weight: 800; color: rgb(var(--wht)); }
.cmp-v { color: rgba(var(--wht), .8); }
.cmp-corner { border-top: 0; }
.cmp-tip { margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(255,138,91,.1); font-size: 15px; line-height: 1.55; color: rgba(var(--wht), .88); }
.cmp-tip b { color: var(--warm1); }
.cmp-test { margin-top: 16px; }
.cmp-test > summary { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(var(--wht), .22); font-weight: 800; font-size: 15px; cursor: pointer; list-style: none; }
.cmp-test > summary::-webkit-details-marker { display: none; }
.cmp-test > summary::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 8px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 8px no-repeat; }
.cmp-test[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 8px 2px no-repeat; }
.cmp-test > summary:hover { border-color: var(--warm1); }
.cmp-test .quiz { margin-top: 14px; max-width: 640px; }
@media (max-width: 700px) {
  .cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; }
  .cmp-corner { display: none; }
  .cmp-k { grid-column: 1 / -1; padding-bottom: 0; }
  .cmp-v { border-top: 0; padding-top: 4px; font-size: 14px; }
}
.cmp-pic img { aspect-ratio: 16 / 10; }
/* Kit look-alikes v3: the pairs as a list on the left, the comparison on the right */
.kla-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(18px, 2.6vw, 32px); align-items: start; margin-top: 6px; }
.kla-wrap .kla-tabs { display: grid; gap: 6px; margin: 0; position: sticky; top: 140px; }
.kla-tabs-h { margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--wht), .5); }
.kla-wrap .kla-tab { width: 100%; text-align: left; border-radius: 12px; padding: 11px 14px; }
.cmp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
.cmp-k { grid-column: 1 / -1; padding: 14px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--wht), .5); }
.cmp-v { border-top: 0; padding: 2px 0 10px; }
.cmp-pic figcaption { margin-bottom: 4px; }
@media (max-width: 900px) {
  .kla-wrap { grid-template-columns: minmax(0, 1fr); }
  .kla-wrap .kla-tabs { position: static; display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .kla-wrap .kla-tabs::-webkit-scrollbar { display: none; }
  .kla-tabs-h { display: none; }
  .kla-wrap .kla-tab { width: auto; flex: none; white-space: nowrap; border-radius: 999px; }
}
@media (max-width: 700px) { .cmp-k { grid-column: 1 / -1; } }
/* Section header actions: Mark as done, plus Print the kids' pack in Kids */
.ks-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ks-print { padding: 9px 15px; border-radius: 999px; border: 0; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ks-print:hover { filter: brightness(1.06); }
@media (max-width: 560px) { .ks-acts { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 900px) { .kla-wrap .kla-tabs { flex-wrap: nowrap; margin: 0 -2px; padding-bottom: 2px; } }
/* Kit: sub-parts of a section as their own panels (Know your animals) */
.kit-sub { margin-top: 18px; padding: clamp(18px, 2.6vw, 26px); border-radius: 18px; background: rgba(var(--wht), .025); border: 1px solid rgba(var(--wht), .08); scroll-margin-top: 96px; }
.kit-sub > .eyebrow { margin-bottom: 4px; }
.kit-sub-title { margin: 0; font-size: 20px; font-weight: 800; }
.kit-sub > .kit-p { margin: 6px 0 14px; }
.kit-sub-h { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.kit-sub .kla-wrap { margin-top: 4px; }
/* Kit: safety tips (never share where you saw a rhino / nest) in a subtle red */
details.kit-acc.is-warn { background: rgba(255,84,112,.07); border-color: rgba(255,84,112,.35); }
details.kit-acc.is-warn > summary b { color: #ffb3bf; }
details.kit-acc.is-warn[open] { border-color: rgba(255,84,112,.55); }

/* Game-drive checklist: photo tiles, big enough to tell animals apart */
.sr-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sr { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 0; overflow: hidden; }
.sr .spot-row { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "img img" "main check"; gap: 10px 12px; padding: 0 12px 0 0; }
.sr .spot-row img { grid-area: img; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.sr .spot-row .sr-main { grid-area: main; padding-left: 12px; }
.sr .spot-row .spot-check { grid-area: check; align-self: center; }
.sr .pk-more { grid-column: 2; grid-row: 2; margin: 0 12px 12px 0; justify-self: end; }
.sr-note { grid-column: 1 / -1; margin: 0 12px 12px; }
.sr > .spot-row ~ .pk-more { margin-top: 0; }
.sr .sr-main { padding-bottom: 10px; }
@media (max-width: 560px) {
  .sr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sr .spot-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .sr .spot-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sr .sr-main strong { font-size: 14.5px; }
  .sr .spot-tags .rl { display: none; }
}
/* checklist tiles v2: + on the photo's corner, notes under the tile */
.sr { display: block; position: relative; }
.sr .pk-more { position: absolute; top: 8px; right: 8px; margin: 0; background: rgba(13,14,16,.7); border-color: rgba(var(--wht), .35); color: rgb(var(--wht)); backdrop-filter: blur(4px); }
.sr-note { display: block; margin: 0 12px 12px; }
.sr .spot-row { padding: 0 12px 0 0; }
.sr .sr-main { padding: 0 0 12px 12px; }
.sr .spot-row .spot-check { align-self: start; margin-top: 2px; }

/* Game-drive checklist: Checklist | Safari Bingo tabs, and the bingo card (guides/bingo.js) */
.sr-tabs { display: flex; gap: 4px; margin: 18px 0 4px; padding: 4px; border-radius: 999px; background: rgba(var(--wht), .06); border: 1px solid rgba(var(--wht), .1); width: max-content; max-width: 100%; }
.sr-tabs button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: rgba(var(--wht), .75); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.sr-tabs button[aria-selected="true"] { background: linear-gradient(90deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); }
[data-view][hidden], .bg-panel[hidden] { display: none; }
.bg-panel { display: grid; grid-template-columns: minmax(0, min(680px, calc((100vh - 200px) * .86))) minmax(260px, 1fr); gap: 20px clamp(20px, 3vw, 48px); align-items: start; margin-top: 18px; }
.bg-card { padding: clamp(10px, 1.6vw, 18px); border-radius: 18px; background: #16171a; border: 1px solid rgba(var(--wht), .1); }
.bg-players { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.bg-player { flex: 0 1 auto; min-width: 0; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--wht), .2); background: transparent; color: rgba(var(--wht), .8); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.bg-player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12ch; }
.bg-player i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 999px; background: #f6c26b; color: #1c1d20; }
.bg-player[aria-selected="true"] { background: #fff; border-color: #fff; color: #0d0e10; }
.bg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, .8vw, 8px); }
.bg-sq { position: relative; aspect-ratio: 1 / 1.12; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #26272b; color: rgb(var(--wht)); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bg-sq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-sq b { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 4px 5px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.85)); font-size: clamp(10px, 2.7vw, 14px); font-weight: 800; line-height: 1.1; text-align: center; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.bg-rare::before { content: ""; position: absolute; top: 0; left: 0; z-index: 1; width: 0; height: 0; border-style: solid; border-width: 16px 16px 0 0; border-color: var(--warm1) transparent transparent transparent; }
.bg-sq.is-on::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(46,140,84,.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") center 38% / 46% no-repeat; }
.bg-sq.is-on b { z-index: 3; background: none; }
.bg-sq.is-win { outline: 3px solid #f6c26b; outline-offset: -3px; }
.bg-sq.is-win::after { background-color: rgba(201,150,46,.6); }
.bg-free { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: linear-gradient(160deg, var(--warm1), var(--warm2)); cursor: default; }
.bg-free img { position: static; width: 46%; height: auto; object-fit: contain; }
.bg-free span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.bg-status { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: rgba(var(--wht), .8); }
.bg-side { display: grid; gap: 10px; }
.bg-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--wht), .6); }
.bg-name { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(var(--wht), .2); background: #16171a; color: rgb(var(--wht)); font: inherit; font-size: 16px; }
.bg-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bg-acts .btn[hidden], .bg-remove[hidden] { display: none; }
.bg-remove { padding: 8px 4px; border: 0; background: none; color: rgba(var(--wht), .6); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bg-h { margin-top: 14px; font-size: 18px; font-weight: 800; }
.bg-how { padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; color: rgba(var(--wht), .8); }
.bg-win { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); }
.bg-win[hidden] { display: none; }
.bg-win-card { width: min(460px, 100%); padding: 28px 24px 22px; border-radius: 20px; background: #1c1d20; border: 1px solid rgba(255,138,91,.45); box-shadow: 0 20px 60px rgba(0,0,0,.6); text-align: center; animation: bg-pop .35s ease both; }
@keyframes bg-pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.bg-win-big { font-size: clamp(48px, 13vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: linear-gradient(90deg, #f6c26b, var(--warm1), var(--warm2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-win-card h2 { margin: 12px 0 6px; font-size: 22px; font-weight: 800; }
.bg-win-card p { font-size: 15.5px; line-height: 1.5; color: rgba(var(--wht), .8); }
.bg-win-card .bg-win-fine { margin: 12px 0 18px; font-size: 13px; color: rgba(var(--wht), .55); }
@media (max-width: 860px) {
  .bg-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sr-tabs { width: 100%; }
  .sr-tabs button { flex: 1; padding: 0 10px; }
  .bg-card { margin: 0 -8px; padding: 8px; border-radius: 14px; }
  .bg-sq { border-radius: 7px; }
  .bg-sq b { padding: 14px 2px 4px; font-size: 10px; }
  .bg-rare::before { border-width: 12px 12px 0 0; }
}

/* Safari Bingo: full screen (guides/bingo.js toggles body.bg-full). The card takes over the
   screen, sized so all 5 rows fit the height; the BINGO! dialog (.bg-win, z 9990) stays above. */
.bg-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bg-top .bg-players { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.bg-fs { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(var(--wht), .2); background: transparent; color: rgba(var(--wht), .85); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.bg-fs:hover { border-color: rgba(var(--wht), .45); }
.bg-fs .bg-fs-out, .bg-fs[aria-pressed="true"] .bg-fs-in { display: none; }
.bg-fs[aria-pressed="true"] .bg-fs-out { display: inline; }
body.bg-full { overflow: hidden; }
body.bg-full .bg-card { position: fixed; inset: 0; z-index: 9000; margin: 0; border: 0; border-radius: 0; background: #0d0e10; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
body.bg-full .bg-top, body.bg-full .bg-grid, body.bg-full .bg-status { width: min(100%, calc((100vh - 120px) / 1.16)); width: min(100%, calc((100dvh - 120px) / 1.16)); }
body.bg-full .bg-sq b { font-size: clamp(10px, 2.4vmin, 16px); }
body.bg-full .bg-fs { background: #fff; border-color: #fff; color: #0d0e10; }
@media (max-width: 560px) {
  .bg-fs span { display: none; }
  .bg-fs { padding: 0 11px; }
  body.bg-full .bg-fs span { display: inline; }
}

/* Sign-up form: First + Last name (matching the CRM), then Email on its own row. On /safari
   "Where are you going?" gets the full row, so the prompt and long area names ("Kruger &
   South Africa") never get cut off; When + Travel company share the row below. */
.get-row.get-row-1, .get-split .get-row.get-row-1 { grid-template-columns: minmax(0, 1fr); }
.get-split .get-row-trip:not(.get-row-2) > label:first-child { grid-column: 1 / -1; }
.get-split .get-row-trip:not(.get-row-2) > label:last-child { grid-column: auto; }
.get-row-trip select { text-overflow: ellipsis; }
.get-split .get-row-trip select { width: 100%; }
/* The form's one column follows the card's width (not its widest field), so nothing pokes
   past the card's edge on phones. */
.get-split .get-form { grid-template-columns: minmax(0, 1fr); }

/* ---- Safari Kit as one screen: bento tiles, each opening its section in a sheet (guides/kit.js) ---- */
.kb-wrap { padding: clamp(12px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px) 0; }
/* Full screen: the site header steps aside and the logo gets its own tile (top right), linking home.
   An even grid: a short bar, then three rows of four, each row with one wide tile. */
body:has(main[data-kit]) > .site-header, body:has(main[data-kit]) > .site-footer, body:has(main[data-kit]) > .side-donate { display: none; }
.bento { display: grid; gap: clamp(10px, 1vw, 14px); height: calc(100svh - clamp(12px, 1.6vw, 20px) * 2); min-height: 580px;
  grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: auto repeat(3, minmax(0, 1fr));
  grid-template-areas: "top top top top top top top top" "trip trip trip trip know know packing packing" "kids kids animals animals animals animals drive drive" "photos photos tipping tipping home home sta sta"; }
/* The top strip: the bar stretches, the toggle is square, then the logo and Donate. */
.kb-top { grid-area: top; display: flex; gap: inherit; min-width: 0; }
.kb-top > .kb-intro { flex: 1 1 auto; }
.kb-top .kb-theme { flex: none; aspect-ratio: 1 / 1; height: auto; align-self: stretch; }
.kb-top .kb-quizbtn { flex: none; }
/* Countdown tile (2026-11-05): months to the trip, its own tile in the header row. */
/* Header row sits on the bento's 8 columns so its edges line up with the tiles below:
   title over the operator tile, countdown over packing, quiz + theme over know (2026-11-05). */
@media (min-width: 641px) {
  .kb-top { display: grid; grid-template-columns: subgrid; }
  .kb-top > .kb-titlebar { grid-column: 1 / 7; }
  .kb-top.has-trip > .kb-titlebar { grid-column: 1 / 4; }
  .kb-top .kb-intro h1 { white-space: normal; font-size: clamp(17px, 1.45vw, 22px); }
  .kb-top > .kb-month { grid-column: 4 / 5; }
  .kb-top > .kb-count { grid-column: 5 / 7; justify-content: center; }
  .kb-topacts { grid-column: 7 / 9; display: flex; gap: clamp(10px, 1vw, 14px); min-width: 0; }
  .kb-topacts > .kb-quizbtn { flex: 1 1 auto; min-width: 0; }
  .kb-topacts > .kb-theme { flex: none; aspect-ratio: 1 / 1; height: auto; align-self: stretch; }
}
@media (max-width: 640px) { .kb-topacts { display: contents; } }
@media (min-width: 641px) and (max-width: 1100px) {
  .kb-topacts > .kb-quizbtn { gap: 6px; padding: 6px 10px; line-height: 1.15; }
  .kb-topacts > .kb-quizbtn .kb-ico { display: none; }
  .kb-topacts > .kb-quizbtn, .kb-topacts > .kb-quizbtn > span { white-space: normal; font-size: 12.5px; min-width: 0; }
  .kb-topacts > .kb-quizbtn { flex-wrap: wrap; justify-content: center; align-content: center; row-gap: 4px; text-align: center; }
  .kb-topacts > .kb-quizbtn .kb-flag { flex: none; position: static; }
}
.kb-count { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; padding: 8px 16px; border-radius: var(--kr); border: 1px solid rgba(var(--wht), .08); container-type: inline-size; }
.kb-count[hidden], .kb-count [hidden] { display: none !important; }
.kb-count .kc-u small, .kb-month small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--wht), .55); }
/* Title bar: the kit title, then the progress ring in a square tile at its end. */
.kb-titlebar { display: flex; gap: clamp(10px, 1vw, 14px); min-width: 0; }
.kb-titlebar > .kb-intro { flex: 1 1 auto; min-width: 0; }
.kb-titlebar > .kb-progress { flex: none; aspect-ratio: 1 / 1; align-self: stretch; height: auto; }
/* Progress ring as its own tile. */
.kb-progress { display: grid; place-items: center; min-width: 0; padding: 8px; border-radius: var(--kr); border: 1px solid rgba(var(--wht), .08); }
.kb-progress .kb-ring { width: 48px; height: 48px; }
/* Trip-month tile beside the timer. */
.kb-month { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 8px 16px; border-radius: var(--kr); border: 1px solid rgba(var(--wht), .08); }
.kb-month[hidden] { display: none; }
.kb-month .kb-ico.bmk { width: 40px; height: 30px; aspect-ratio: auto; transform: none; }
.kb-month .km-l { display: grid; line-height: 1.15; }
.kb-month b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.kb-count .kc-clock { display: flex; align-items: flex-start; gap: 3px; font-variant-numeric: tabular-nums; }
.kb-count .kc-u { display: grid; justify-items: center; line-height: 1; gap: 3px; }
.kb-count .kc-u b { font-size: clamp(20px, 1.9vw, 28px); font-weight: 800; letter-spacing: -0.02em; color: var(--warm1); }
.kb-count .kc-clock > i { font-style: normal; font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; line-height: 1; color: rgba(var(--wht), .3); }
.kb-count .kc-msg { display: grid; line-height: 1.2; }
.kb-count .kc-msg b { font-size: 15px; font-weight: 800; }
.kb-count .kc-msg small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(var(--wht), .6); }
.kb-intro .kit-trip-when { display: none; }
/* The quiz, as a button in the top row (opens its sheet like a tile; kit.js shows the score). */
.kb-quizbtn { display: flex; align-items: center; gap: 10px; padding: 0 20px 0 12px; border-radius: var(--kr); border: 1px solid rgba(255,138,91,.35); background: linear-gradient(150deg, rgba(255,138,91,.2), rgba(255,84,112,.08) 60%), var(--coal-1); color: rgb(var(--wht)); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.kb-quizbtn .kb-ico.bmk { width: 48px; transform: none; }
.kb-quizbtn .kb-flag { position: static; padding: 3px 8px; border-radius: 999px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); font-size: 10.5px; }
.kb-quizbtn:hover { border-color: var(--warm1); transform: translateY(-2px); }
.kb-quizbtn:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
/* Save the Animals and Donate share the bottom-right tile. */
.kb-sta { grid-area: sta; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; padding: clamp(14px, 1.4vw, 20px); border-radius: var(--kr); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); }
.kb-sta .kb-logo { flex: none; justify-items: start; padding: 0; border: 0; background: none; }
.kb-sta .kb-logo img { height: clamp(28px, 2.6vw, 38px); }
.kb-sta-p { font-size: 13px; line-height: 1.45; color: rgba(var(--wht), .66); }
.kb-sta .kb-donate { flex: none; padding: 11px 14px; border-radius: calc(var(--kr) - 4px); font-size: 15px; }
.kb-logo { display: grid; place-items: center; min-width: 0; padding: 10px 14px; border-radius: var(--kr); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.kb-logo img { width: auto; height: 34px; max-width: 100%; }
.kb-donate { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 10px 14px; border-radius: var(--kr); border: 0; background: linear-gradient(155deg, var(--warm1), var(--warm2)); color: rgb(var(--wht)); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.kb-donate .kb-ico.bmk { width: 40px; }
.kb-donate .bmk [data-draw] { stroke: #fff; }
.kb-donate:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,84,112,.35); }
.kb-donate:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.kb-theme { display: grid; place-items: center; min-width: 0; padding: 10px; border-radius: var(--kr); border: 1px solid rgba(var(--wht), .08); background: var(--coal-1); color: rgb(var(--wht)); cursor: pointer; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.kb-theme svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kb-theme .kb-moon { display: none; }
.kb-theme:hover { border-color: rgba(255,138,91,.55); transform: translateY(-2px); }
.kb-theme:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.kb-logo:hover { opacity: .85; }
.kb-logo:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
/* The bar: title, progress and trip date on one line. */
.kb-intro { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px 20px; min-width: 0; overflow: hidden; padding: 12px clamp(16px, 1.8vw, 24px); border-radius: var(--kr); background: radial-gradient(ellipse at 0% 0%, rgba(255,138,91,.16), transparent 65%), var(--coal-1); border: 1px solid rgba(var(--wht), .08); }
.kb-intro h1 { flex: 0 1 auto; min-width: 0; font-size: clamp(17px, 1.4vw, 22px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-ring { --p: 0; flex: none; position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--warm1), var(--warm2) calc(var(--p) * 1%), rgba(var(--wht), .12) 0); transition: --p .4s; }
.kb-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--coal-1); }
.kb-ring > span { position: relative; font-size: 12px; font-weight: 700; color: rgba(var(--wht), .7); }
.kb-ring b { color: rgb(var(--wht)); font-size: 14px; }
.kb-intro .kit-trip { flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; margin: 0; padding: 0; border: 0; background: none; backdrop-filter: none; gap: 14px; max-width: none; }
.kb-intro .kit-trip-when { white-space: nowrap; }
.kb-intro .kit-trip-next { display: none; }
.kb-intro .kit-trip-when { font-size: 13.5px; }
.kb-intro .kit-trip-next .btn, .kb-intro .kit-trip-next a { padding-block: 5px; }
.kb-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; min-height: 0; overflow: hidden; padding: clamp(14px, 1.4vw, 20px); border-radius: var(--kr); background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); color: rgb(var(--wht)); text-decoration: none; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease); }
.kb-tile:hover { border-color: rgba(255,138,91,.55); transform: translateY(-2px); }
.kb-tile:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.kb-tile.kb-animals { grid-area: animals; } .kb-quiz { grid-area: quiz; } .kb-trip { grid-area: trip; } .kb-know { grid-area: know; } .kb-packing { grid-area: packing; }
.kb-kids { grid-area: kids; } .kb-drive { grid-area: drive; } .kb-photos { grid-area: photos; } .kb-tipping { grid-area: tipping; } .kb-home { grid-area: home; }
.kb-ico.bmk { flex: none; width: clamp(62px, 5.4vw, 88px); height: auto; aspect-ratio: 4 / 3; margin: 0; }
/* The drawings sit inside a 200×150 box with about a quarter blank on the left; nudge them so the ink lines up with the text. */
.kb-tile .kb-ico.bmk { transform: translateX(-26%); }
/* Icons draw in one tile after another, and again on hover. */
.bento.in .kb-tile .bmk [data-draw] { animation: bmDraw 1.2s ease-in-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .15s); }
.bento.in .kb-tile .bmk [data-fill] { animation: bmFill .75s ease-out both; animation-delay: calc(var(--cd,0s) + var(--d,0s) + .1s); }
.bento.in .kb-tile:hover .bmk [data-draw] { animation: bmHover .9s ease-in-out both; animation-delay: calc(var(--d,0s) * .45); }
.kb-txt { display: grid; gap: 4px; min-height: 0; }
.kb-when { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--warm1); }
.kb-title { font-size: clamp(16px, 1.3vw, 20px); font-weight: 800; line-height: 1.2; }
.kb-tease { font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .66); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-animals .kb-title, .kb-trip .kb-title { font-size: clamp(22px, 2vw, 32px); }
.kb-animals .kb-tease, .kb-trip .kb-tease { font-size: 15px; max-width: 36ch; }
.kb-trip .kb-tease { max-width: 62ch; -webkit-line-clamp: 3; }
.kb-quiz { background: linear-gradient(150deg, rgba(255,138,91,.22), rgba(255,84,112,.1) 60%), var(--coal-1); border-color: rgba(255,138,91,.35); }
.kb-tick { position: absolute; top: 14px; right: 14px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(var(--wht), .22); }
.kb-tile.is-done .kb-tick { border-color: transparent; background: linear-gradient(155deg, var(--warm1), var(--warm2)) ; }
.kb-tile.is-done .kb-tick::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.kb-flag { position: absolute; top: 14px; right: 46px; z-index: 2; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--wht)); }
.kb-flag:empty { display: none; }
.kb-tile.is-flagged { border-color: rgba(255,138,91,.6); }
.kb-tile.is-flagged .kb-flag { padding: 4px 9px; border-radius: 999px; background: linear-gradient(155deg, var(--warm1), var(--warm2)); }
.kb-quiz .kb-flag { padding: 4px 9px; border-radius: 999px; background: rgba(13,14,16,.5); }
@media (max-height: 760px) and (min-width: 1101px) { .kb-tease { -webkit-line-clamp: 2; } }
/* A faint picture in each tile's empty bottom-right corner (scripts/build-guides.py): the
   area's animal, or a drawing of the topic. Painted as a mask so it takes the theme's ink colour. */
.kb-tile { isolation: isolate; }
/* Every drawing is the same height and ends at the same distance from the tile's right edge, a
   third of it sunk below the bottom edge. Its width follows its shape (--ar, width over height,
   set by the builder), so tall ones start about two-thirds across and wide ones reach further left. */
.kb-art { --h: 52%; position: absolute; right: 6%; bottom: calc(var(--h) * -.34); z-index: -1; height: var(--h); aspect-ratio: var(--ar, 1);
  max-width: 88%; background: #fff; opacity: .075; pointer-events: none;
  -webkit-mask: var(--art) right bottom / contain no-repeat; mask: var(--art) right bottom / contain no-repeat; transition: opacity .3s, transform .6s ease; }
/* The area's animal keeps its own larger spot on the wide Animals tile. */
/* The camp stands on its own: larger, on the wide operator tile's bottom edge. */
.kb-art-trip { right: 2%; bottom: 0; width: 58%; height: 58%; max-width: 460px; aspect-ratio: auto; }
.kb-tile:hover .kb-art { opacity: .13; transform: scale(1.04); }
/* The page sits on a faint topographic map — the real Drakensberg contours shared with
   wildeyes.app (assets/topo) — fixed behind the tiles. Light mode inverts it with the page. */
.kb-wrap { position: relative; isolation: isolate; }
.kb-wrap::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #fff; opacity: 0.12;
  -webkit-mask: url(/assets/topo/drakensberg.svg) center / cover no-repeat;
  mask: url(/assets/topo/drakensberg.svg) center / cover no-repeat;
}
/* Tiles sit a touch lighter than the page and let a little of the map through. Light mode is
   drawn inverted (see below), so its tiles mix toward black to come out lighter. */
.bento :is(.kb-tile, .kb-sta, .kb-intro, .kb-theme, .kb-count, .kb-month, .kb-progress) { background-color: color-mix(in srgb, color-mix(in srgb, var(--coal-1), #fff 4%) 88%, transparent); }
html[data-theme="light"] .bento :is(.kb-tile, .kb-sta, .kb-theme, .kb-count, .kb-month, .kb-progress) { background-color: rgba(4,2,0,.95); /* near-white #fffdf9 */ }
/* Tile heading like the packing groups: icon and title in a band across the top, a divider,
   then the timing label and the note. (Grid on the tile; .kb-txt's children join it.) */
.kb-tile { --kbp: clamp(14px, 1.4vw, 20px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto minmax(0, 1fr); align-content: start; column-gap: 10px; row-gap: 0; justify-content: stretch; }
.kb-tile > .kb-txt { display: contents; }
.kb-tile::before { content: ""; grid-row: 1; grid-column: 1 / -1; margin: calc(-1 * var(--kbp)) calc(-1 * var(--kbp)) 0; border-bottom: 1px solid rgba(var(--wht), .12); background: var(--kbh, transparent); pointer-events: none; }
/* Tile header (2026-11-05): light mode has a dusk stripe on top (below); dark keeps a faint warm tint. */
.bento .kb-tile { --kbh: rgba(255,138,91,.10); }
html[data-theme="light"] .bento .kb-tile { --kbh: transparent; box-shadow: inset 0 4px 0 #ccb49a; } /* no fill; dusk #5d452b stripe along the top (Todd's pick, option 4) */
.kb-tile .kb-ico.bmk { grid-row: 1; grid-column: 1; align-self: center; width: 46px; height: 34px; aspect-ratio: auto; margin: -4px -4px 10px -10px; transform: none; }
.kb-tile .kb-title { grid-row: 1; grid-column: 2; align-self: center; margin-bottom: 10px; font-size: 17px; line-height: 1.2; }
/* The "From your quiz" pill sits in the tile's bottom-left corner, so the timing label and note
   start in the same place on every tile. */
.kb-tile .kb-flag { grid-row: 5; grid-column: 1 / -1; justify-self: start; align-self: end; position: static; margin: 12px 0 0; }
.kb-tile .kb-flag:empty { display: none; }
.kb-tile .kb-tick { grid-row: 1; grid-column: 3; position: relative; top: auto; right: auto; align-self: center; margin-bottom: 10px; }
.kb-tile .kb-when { grid-row: 3; grid-column: 1 / -1; margin-top: 12px; }
.kb-tile .kb-tease { grid-row: 4; grid-column: 1 / -1; margin-top: 6px; }
.kb-animals .kb-title, .kb-trip .kb-title { font-size: clamp(19px, 1.6vw, 24px); }
@media (max-width: 1100px) {
  /* Narrow tiles: the title may wrap, and the quiz label drops under the divider. */
  .kb-tile .kb-ico.bmk { width: 36px; height: 27px; margin-right: -6px; }
}

@media (max-width: 1100px) {
  .bento { height: auto; min-height: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(150px, auto);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-areas: "top top top top top top top top" "trip trip trip trip know know packing packing" "kids kids animals animals animals animals drive drive" "photos photos tipping tipping home home sta sta"; }
  .kb-donate .kb-ico.bmk { display: none; }
  .kb-animals { min-height: 220px; }
  .kb-tease { -webkit-line-clamp: unset; }
  .kb-intro, .kb-intro .kit-trip { flex-wrap: wrap; }
  .kb-intro h1 { white-space: normal; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(132px, auto);
    grid-template-areas: "top top" "trip trip" "know packing" "kids kids" "animals animals" "drive photos" "tipping home" "sta sta"; }
  /* Phones: the logo sits in the bar's top-right corner. */
  .kb-top { flex-wrap: wrap; }
  .kb-top > .kb-intro { flex-basis: 100%; }
  .kb-top .kb-theme { width: 56px; }
  .kb-top .kb-quizbtn { flex: 1 1 0; min-height: 56px; }
  .kb-top > .kb-titlebar { flex: 1 1 100%; }
  .kb-titlebar > .kb-progress { width: 72px; }
  .kb-top > .kb-month { flex: none; padding-inline: 14px; }
  .kb-top > .kb-count { flex: 1 1 0; }
  .kb-sta .kb-logo img { height: 26px; }
  .kb-animals { min-height: 200px; }
  .kb-tile { padding: 14px; }
  .kb-art { display: none; }  /* no spare corner in a phone tile; the map stays */
  .kb-tease { font-size: 13px; }
  .kb-flag { top: 12px; right: 42px; font-size: 9.5px; letter-spacing: .05em; }
}

/* The sheet: one section at a time. Every section is the same large panel; its header stays
   put and the body scrolls inside the panel. */
.kb-sheet { position: fixed; inset: 0; z-index: 60; overflow: hidden; --kbp: clamp(0px, 2vw, 28px); background: rgba(8,9,10,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: var(--kbp); }
.kb-sheet[hidden] { display: none; }
html.kb-open { overflow: hidden; }
.kb-sheet-in { width: min(1400px, 100%); height: 100%; margin: 0 auto; }
.kb-sheet .kit-sec { height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: var(--kr); background: var(--coal-2); border: 1px solid rgba(var(--wht), .1); animation: kbIn .25s ease-out; }
.kb-sheet .kit-sec[hidden] { display: none; }
.kb-sheet .ks-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(18px, 3vw, 40px) clamp(28px, 4vw, 48px); }
.kb-sheet .ks-head { position: relative; flex: none; z-index: 6; margin: 0; padding: 16px clamp(18px, 3vw, 40px); background: rgba(15,16,18,.96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(var(--wht), .08); border-radius: var(--kr) var(--kr) 0 0; }
.kb-sheet .ks-head .guide-h2 { font-size: clamp(22px, 2.4vw, 32px); }
/* One-line header: icon, number + when, title, actions. The icon's ink is nudged onto the left edge. */
.kb-sheet .ks-head { gap: 14px; padding-block: 12px; }
.kb-sheet .ks-ico.bmk { width: 60px; height: 45px; margin-right: -14px; transform: translateX(-26%); }
.kb-sheet .ks-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.kb-sheet .ks-title .kt-when { flex: none; margin: 0; white-space: nowrap; }
.kb-sheet .ks-title .guide-h2 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-sheet .ks-body [id] { scroll-margin-top: 14px; }
.kb-close { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(var(--wht), .25); background: transparent; color: rgb(var(--wht)); font-size: 24px; line-height: 1; cursor: pointer; }
.kb-close:hover { border-color: var(--warm1); }
main[data-kit] .kb-sheet .kit-score, main[data-kit] .kb-sheet .pk-progress { top: 0; }
/* In the sheets, no half-empty rows: tip cards grow to fill their row, and the packing
   lists flow into columns so short and long lists pack together. */
.kb-sheet .kit-tips { display: flex; flex-wrap: wrap; align-items: stretch; }
.kb-sheet .kit-tips > * { flex: 1 1 260px; min-width: 0; }
main[data-kit] .kb-sheet .kit-pk { display: block; columns: 3 300px; column-gap: 16px; }
main[data-kit] .kb-sheet .kit-pk > * { break-inside: avoid; margin-bottom: 16px; }
.ks-head.in .ks-ico:hover [data-draw] { animation: bmHover .9s ease-in-out both; animation-delay: calc(var(--d,0s) * .45); }
.kb-sheet .kit-b5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kb-sheet #quiz .sq { max-width: none; }
/* The quiz fills its panel: the question card stretches to the panel's height. */
.kb-sheet #quiz .ks-body { display: flex; flex-direction: column; }
.kb-sheet #quiz .sq { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.kb-sheet #quiz .sq-card, .kb-sheet #quiz .sq-result { flex: 1 1 auto; height: auto; min-height: 0; }
.kb-sheet #quiz .sq-q { display: flex; flex-direction: column; justify-content: center; }
.kb-sheet #quiz .sq-card h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 22px; }
.kb-sheet #quiz .sq-opts { flex: none; align-content: start; gap: 12px; }
.kb-sheet #quiz .sq-opt { padding: 18px 20px; font-size: 17px; }
.kb-sheet #quiz .sq-a .sq-why { font-size: 17.5px; }
/* Packing in the sheet: bento groups (icon + name), one line per item, three columns that
   fill the panel. No intro or progress bar. */
main[data-kit] .kb-sheet .kit-pk .pk-group { background: var(--coal-1); border: 1px solid rgba(var(--wht), .08); border-radius: var(--kr); padding: 0; overflow: hidden; }
/* The group's name and icon stay in the card, as its own band above a divider. */
main[data-kit] .kb-sheet .kit-pk .pk-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 0; padding: 12px 18px; border-bottom: 1px solid rgba(var(--wht), .12); }
main[data-kit] .kb-sheet .kit-pk .pk-items { padding: 2px 18px 4px; }
main[data-kit] .kb-sheet .kit-pk .pk-wild { border-color: rgba(143,220,171,.45); background: linear-gradient(160deg, rgba(143,220,171,.1), rgba(var(--wht), .02)), var(--coal-1); }
main[data-kit] .kb-sheet .kit-pk .pk-wild h3 { border-bottom-color: rgba(143,220,171,.3); }
main[data-kit] .kb-sheet .kit-pk .pk-ico.bmk { flex: none; width: 46px; height: 34px; margin: -4px -6px -4px -12px; }
main[data-kit] .kb-sheet .kit-pk .pk-badge { margin-left: auto; }
main[data-kit] .kb-sheet .kit-pk .kit-pki { padding: 9px 0; }
main[data-kit] .kb-sheet .kit-pk .kit-pki .pk-row b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
main[data-kit] .kb-sheet .kit-pki .pk-row { min-width: 0; }
@media (min-width: 1101px) {
  main[data-kit] .kb-sheet .kit-pk { columns: 3; column-gap: 14px; }
  main[data-kit] .kb-sheet .kit-pk > * { margin-bottom: 14px; }
  main[data-kit] .kb-sheet #packing .ks-body { padding-top: 18px; padding-bottom: 4px; }
}
@media (min-width: 1101px) and (max-height: 860px) {
  main[data-kit] .kb-sheet .kit-pk .kit-pki { padding: 5px 0; }
  main[data-kit] .kb-sheet .kit-pk .kit-pki .pk-row b { font-size: 14px; }
  .kb-sheet .ks-head { padding-block: 10px; }
}
.kb-sheet .sq-more { display: inline-block; text-decoration: none; }
.kb-sheet .sq-more:hover { text-decoration: underline; text-underline-offset: 3px; }
@keyframes kbIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .kb-sheet { padding: 0; }
  .kb-sheet .kit-sec { border-radius: 0; border: 0; }
  .kb-sheet .ks-head { border-radius: 0; grid-template-columns: auto minmax(0, 1fr) auto; }
  .kb-sheet .ks-acts { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
  .kb-sheet .ks-head .kb-close { position: absolute; top: 12px; right: 14px; }
  .kb-sheet .ks-title { padding-right: 44px; flex-wrap: wrap; row-gap: 2px; }
  .kb-sheet .ks-title .guide-h2 { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .kb-sheet .kit-sec { animation: none; } .kb-tile { transition: none; } }

/* ---- Field-notebook touches, both themes: ruled lines only where there is writing (each tile's
   note and the sheets' paragraphs sit on them), and numbered
   log-style labels (01–10 in the bento's order) in a monospace face. ---- */
:root { --wht: 255,255,255; --kr: 14px; --rule: rgba(var(--wht), .09); --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.kb-tease { line-height: 20px; background-image: repeating-linear-gradient(180deg, transparent 0 19px, var(--rule) 19px 20px); }
.kb-when, .kb-sheet .kt-when { font-family: var(--mono); letter-spacing: .08em; }
/* Modal timing label sits just below the header line, like the tiles (2026-11-05). */
.kb-sheet .ks-when { margin: 0 0 14px; font-size: 11px; white-space: nowrap; }
.kb-sheet .ks-when::before { content: none; }
.kb-n { margin-right: 8px; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; font-size: 10px; letter-spacing: 0; }
.kb-sheet .ks-body .kit-p { line-height: 28px; background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); }
@media (min-width: 1101px) { main[data-kit] .kb-sheet #packing .ks-body .kit-p { line-height: 24px; background-image: repeating-linear-gradient(180deg, transparent 0 23px, var(--rule) 23px 24px); } }
@media (min-width: 1101px) and (max-height: 860px) { main[data-kit] .kb-sheet #packing .ks-body .kit-p { line-height: 21px; background-image: repeating-linear-gradient(180deg, transparent 0 20px, var(--rule) 20px 21px); } }

/* The packing notes open from a small, quiet info mark instead of a +. */
.pk-more { width: 22px; height: 22px; border-color: rgba(var(--wht), .16); color: rgba(var(--wht), .45); transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.pk-more::before, .pk-more[aria-expanded="true"]::before { content: "i" !important; background: none !important; display: grid; place-items: center; font: italic 700 12px/1 Georgia, "Times New Roman", serif; }
.pk-more:hover, .pk-more[aria-expanded="true"] { border-color: var(--warm1); color: var(--warm1); }

/* ---- Kit light mode (toggle in the bento, guides/kit.js). The whole page is flipped with a
   filter, then photos, drawings, the logo and the orange brand pieces are flipped back so they
   keep their real colours. ---- */
/* Wild Eyes light palette (wild-eyes web/app/globals.css): sand page, linen cards, ink text,
   dusk and amber accents. Colours are written as their pre-filter values; the comment gives what
   shows on screen. Pieces flipped back (below) get the true colours instead. */
html[data-theme="light"] { --ink: #171106; /* sand #f3ede2 */ --coal-1: #0c0800; /* linen #faf6ee */ --coal-2: #070500; /* #fcfaf5 */
  --warm1: #ccb49a; /* dusk #5d452b */ --warm2: #81684e; /* amber #a99076 */
  --rule: rgba(237,231,225,.13); /* line rgba(28,22,16,.13) */
  background: var(--ink); filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] body { background: var(--ink); }
html[data-theme="light"] .kb-sheet .ks-head { background: var(--coal-1); }
html[data-theme="light"] .kb-intro { background: var(--coal-1); }
html[data-theme="light"] .kb-quizbtn { background: #25190a; /* haze #efe3d4 */ border-color: rgba(var(--wht), .13); }
/* No grey on the kit page in light mode (Todd, 2026-11-05). White-at-alpha comes out neutral grey
   after the flip, so lines, text and drawings use warm values instead: rgb(237,231,225) shows as
   ink #1c1610 and #ccb49a shows as dusk #5d452b. */
html[data-theme="light"] .bento :is(.kb-tile, .kb-sta, .kb-logo, .kb-theme, .kb-count, .kb-month, .kb-progress) { border-color: rgba(237,231,225,.10); }
html[data-theme="light"] .bento .kb-tile::before { border-bottom-color: rgba(237,231,225,.12); }
html[data-theme="light"] .bento .kb-tile:not(.is-done) .kb-tick { border-color: rgba(237,231,225,.24); }
html[data-theme="light"] .bento :is(.kb-tease, .kb-sta-p) { color: rgba(237,231,225,.70); }
html[data-theme="light"] .bento .kb-ring > span { color: rgba(237,231,225,.72); }
html[data-theme="light"] .bento .kb-ring { background: conic-gradient(var(--warm1), var(--warm2) calc(var(--p) * 1%), rgba(237,231,225,.12) 0); }
html[data-theme="light"] .bento { --rule: rgba(237,231,225,.13); }
html[data-theme="light"] .bento .kb-art { background: #ccb49a; opacity: .06; }
html[data-theme="light"] .kb-wrap::before { background: #ccb49a; opacity: .14; }
/* ── Tile 01 "Travel well" (2026-11-05): globe on the tile, overview in its sheet ── */
.kg .kg-svg { display: block; width: 100%; height: auto; overflow: visible; }
.kg .kg-sphere { fill: rgba(var(--wht), .03); stroke: rgba(var(--wht), .22); stroke-width: 1.2; }
.kg .kg-grid { fill: none; stroke: rgba(var(--wht), .07); stroke-width: .6; }
.kg .kg-land { fill: rgba(var(--wht), .13); stroke: rgba(var(--wht), .05); stroke-width: .4; }
.kg .kg-area { fill: var(--warm1); stroke: var(--warm2); stroke-width: 1; }
.kg .kg-pin { fill: var(--warm2); stroke: var(--coal-1); stroke-width: 2.5; }
.kg { opacity: 0; transition: opacity .35s; }
.kg.is-ready { opacity: 1; }
.kb-tile .kb-globe { position: absolute; z-index: -1; right: 3%; bottom: -38%; width: min(46%, 300px); aspect-ratio: 1; pointer-events: none; }
.kb-tile .kb-globe.is-ready { opacity: .9; }
.kb-trip .kb-tease { max-width: 36ch; }
.ov-where { display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; margin-bottom: 8px; }
.ov-places { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 0; list-style: none; }
.ov-places li { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(var(--wht), .16); font-size: 13px; }
.ov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.rl-scale { display: grid; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.rl-step { display: grid; grid-template-columns: 6px minmax(110px, auto) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.rl-step .rl-bar { grid-row: 1 / 3; align-self: stretch; border-radius: 3px; }
.rl-step b { font-size: 13.5px; }
.rl-step > small { grid-column: 2; font-size: 11.5px; color: rgba(var(--wht), .6); }
.rl-step .rl-chips { grid-column: 3; grid-row: 1 / 3; display: flex; flex-wrap: wrap; gap: 4px; }
.rl-chip { padding: 2px 8px; border-radius: 999px; background: rgba(var(--wht), .06); font-size: 12px; }
.rl-who { font-size: 12px; color: rgba(var(--wht), .6); }
.rlx-lc .rl-bar { background: #4cbe78; } .rlx-nt .rl-bar { background: #d6be46; } .rlx-vu .rl-bar { background: #ffaa46; }
.rlx-en .rl-bar { background: #ff7850; } .rlx-cr .rl-bar { background: #ff5470; } .rlx-ew .rl-bar { background: #b07ad0; } .rlx-ex .rl-bar { background: rgba(var(--wht), .45); }
.ov-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ov-card { padding: 16px; border-radius: 14px; border: 1px solid rgba(var(--wht), .1); background: rgba(var(--wht), .02); }
.ov-card h4 { margin: 8px 0 6px; font-size: 15px; }
.ov-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(var(--wht), .78); }
.ov-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; font-family: var(--mono); font-size: 11px; color: var(--warm1); }
.ov-op-h { margin-top: 28px; }
@media (max-width: 899px) { .ov-cards { grid-template-columns: minmax(0, 1fr); } .ov-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ov-where { grid-template-columns: minmax(0, 1fr); } .ov-globe { max-width: 240px; margin: 0 auto; } .ov-cards { grid-template-columns: minmax(0, 1fr); } .kb-tile .kb-globe { display: none; } }
/* ── Tabs inside a sheet (kit_tabs, 2026-11-05). On a desktop-sized screen each panel is one
   screen: no scrolling, and its cards stretch to fill the space like the bento. ── */
.ks-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ks-tab { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(var(--wht), .16); background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.ks-tab:hover { border-color: var(--warm1); }
.ks-tab[aria-selected="true"] { background: var(--warm1); border-color: transparent; color: var(--coal-1); }
.ks-tab:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.ks-body.has-tabs { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 18px; row-gap: 14px; align-items: center; }
.ks-body.has-tabs > .ks-when { margin: 0; }
.ks-body.has-tabs > .ks-panels { grid-column: 1 / -1; align-self: stretch; min-height: 0; }
.ks-panel[hidden] { display: none !important; }
.ks-panel .kit-sub { margin-top: 0; }
.ks-panel-place .ov-where { margin: 0; }
.ks-panel-conservation .ov-col { display: flex; flex-direction: column; gap: 16px; }
.ov-stat { display: flex; align-items: center; gap: 18px; }
.ov-big { flex: none; font-size: clamp(40px, 4.4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--warm1); }
.ov-big small { font-size: .38em; font-weight: 700; letter-spacing: 0; color: rgba(var(--wht), .6); }
.ov-stat .kit-p { margin: 0; }
.ks-panel-part .ov-cards { margin: 0; }
.ov-ico { display: block; width: 56px; aspect-ratio: 4 / 3; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel { height: 100%; min-height: 0; }
  .ks-panel-place .ov-where { height: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .ks-panel-place .ov-globe { width: min(100%, 64vh); justify-self: center; }
  .ks-panel-place .kit-sub-title { font-size: clamp(26px, 2.6vw, 38px); }
  .ks-panel-conservation .ov-row { height: 100%; align-items: stretch; }
  .ks-panel-conservation .ov-col > .ov-what { flex: 1 1 auto; }
  .ks-panel-conservation .ov-iucn { display: flex; flex-direction: column; }
  .ks-panel-conservation .rl-scale { flex: 1 1 auto; align-content: space-evenly; }
  .ks-panel-conservation .rl-chip { padding: 1px 7px; font-size: 11.5px; }
  .ks-panel-conservation .rl-chips { gap: 3px; }
  .ks-panel-conservation .rl-scale:has(.rl-chips > :nth-child(8)) .rl-step > small { display: none; }
  .ks-panel-conservation .rl-scale:has(.rl-chips > :nth-child(8)) .rl-step .rl-bar { min-height: 20px; }
  .ks-panel-spot > .kit-sub > .kit-lc { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ks-panel-spot .kit-lc table { flex: 1 1 auto; height: 100%; font-size: clamp(15px, 1.25vw, 18px); }
  .ks-panel-spot .kit-lc :is(td, th) { padding-block: 10px; vertical-align: middle; }
  .ks-panel-part .ov-cards { height: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 16px; }
  .ks-panel-part .ov-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 2.4vw, 36px); }
  .ks-panel-part .ov-card h4 { font-size: clamp(18px, 1.6vw, 24px); margin: 12px 0 10px; }
  .ks-panel-part .ov-card p { font-size: clamp(14.5px, 1.15vw, 17px); max-width: 52ch; }
  .ks-panel-part .ov-n { width: 34px; height: 34px; font-size: 14px; }
  .ks-panel-part .ov-card { position: relative; }
  .ks-panel-part .ov-ico { position: absolute; top: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); width: clamp(72px, 7vw, 110px); height: auto; aspect-ratio: 4 / 3; }
  .ks-panel-operator { display: flex; flex-direction: column; }
  .ks-panel-operator > .kit-p:first-child { margin-top: 0; }
  .ks-panel-operator .kit-rs { flex: 1 1 auto; min-height: 0; align-items: stretch; }
}
@media (max-width: 899px) {
  .ks-body.has-tabs { grid-template-columns: minmax(0, 1fr); }
  .ks-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .ks-tabs::-webkit-scrollbar { display: none; }
  .ks-tab { flex: none; }
}
/* ── Every sheet is one screen on desktop (2026-11-05): cards stretch to fill like the bento. ── */
.km-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 14px; }
.km-tile { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(var(--wht), .05); }
.km-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.km-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 11.5px; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
html[data-theme="light"] .km-tile figcaption { filter: invert(1) hue-rotate(180deg); background: linear-gradient(transparent, rgba(255,255,255,.7)); color: #000; }
.kh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.kh-grid .kit-sub { margin-top: 0; position: relative; overflow: hidden; isolation: isolate; }
.kh-cert .kh-art { position: absolute; z-index: -1; right: 6%; bottom: -10%; width: 62%; aspect-ratio: 1.45; background: var(--warm1); opacity: .16;
  -webkit-mask: url(/guides/safari/kit-art/certificate.svg) center / contain no-repeat; mask: url(/guides/safari/kit-art/certificate.svg) center / contain no-repeat; }
@media (max-width: 760px) { .kh-grid { grid-template-columns: minmax(0, 1fr); } .kh-cert { min-height: 260px; } }
@media (min-width: 900px) and (min-height: 620px) {
  /* Fill: the sheet body is a column; its grids and tip cards take the spare height. */
  .kb-sheet .ks-body.is-fill { display: flex; flex-direction: column; }
  .kb-sheet .ks-body.is-fill > :is(.kb-grid, .kit-tips, .kh-grid, .kp-sheets) { flex: 1 1 0; min-height: 0; }
  .kb-sheet .ks-body.is-fill > .kb-grid { grid-auto-rows: minmax(0, 1fr); align-content: stretch; }
  .kb-sheet .ks-body.is-fill .kb-card { display: flex; flex-direction: column; }
  .kb-sheet .ks-body.is-fill .kb-card p { font-size: clamp(15px, 1.15vw, 17.5px); }
  .kb-sheet .ks-body.is-fill > .kit-tips { align-content: stretch; align-items: stretch; }
  .kb-sheet .ks-body.is-fill > .kit-tips > details { justify-content: center; }
  .kb-sheet .ks-body.is-fill .kb-card .eyebrow { margin-bottom: 12px; }
  .kb-sheet .ks-body.is-fill .kb-card { padding: clamp(18px, 1.8vw, 26px); }
  .kb-sheet .ks-body.is-fill > .kit-tips > * { display: flex; flex-direction: column; }
  :is(#photos, #tipping) .ks-body.is-fill > .kit-tips > * { padding: clamp(18px, 1.8vw, 26px); }
  .kb-sheet .ks-body.is-fill > .kit-tips > :has(~ :nth-child(4):last-child), .kb-sheet .ks-body.is-fill > .kit-tips > :nth-child(4):last-child { flex-basis: calc(50% - 8px); }
  :is(#photos, #tipping) .ks-body.is-fill .gt-tip summary b { font-size: clamp(16px, 1.3vw, 20px); }
  :is(#photos, #tipping) .ks-body.is-fill .gt-tip p { font-size: clamp(14.5px, 1.1vw, 16.5px); line-height: 1.55; }
  .kb-sheet .ks-body.is-fill > .kh-grid .kit-sub { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 44px); }
  .kb-sheet .ks-body.is-fill > .kh-grid .kit-sub-title { font-size: clamp(26px, 2.4vw, 36px); }
  .kb-sheet .ks-body.is-fill > .kh-grid .kit-p { font-size: clamp(15px, 1.2vw, 18px); max-width: 44ch; }
  /* Kids: the printable pages sized to the spare height (guides/kit.js sets their zoom). */
  .kb-sheet #kids .ks-body.is-fill > .kp-sheets { align-items: flex-start; overflow-x: auto; overflow-y: hidden; }
  .kb-sheet #kids .kp-sheets > .kp-page { height: auto; aspect-ratio: 8.5 / 11; } /* keep the Letter shape: the sheet sizes them by zoom */
  .kb-sheet #kids .ks-body.is-fill > .kp-sheets { padding: 0; } /* the pages end 16px from the sheet's bottom, like every sheet */
  /* Animals tabs */
  .ks-panel-checklist { display: flex; flex-direction: column; overflow: hidden; }
  .ks-panel-checklist .km-wall { flex: 1 1 0; min-height: 0; overflow: hidden; grid-auto-rows: minmax(0, 1fr); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ks-panel-checklist .km-tile { aspect-ratio: auto; }
  .ks-panel-meet > .kit-sub, .ks-panel-practise > .kit-sub, .ks-panel-spot > .kit-sub { height: 100%; display: flex; flex-direction: column; overflow: auto; }
  .ks-panel-meet .kit-b5 { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); margin-top: 14px; }
  .ks-panel-meet .kit-b5 .b5 { aspect-ratio: auto; height: 100%; }
  .ks-panel-practise img, .ks-panel-spot img { max-height: 12.5vh; width: 100%; object-fit: cover; }
  .ks-panel-practise .kit-sub > .eyebrow, .ks-panel-practise .kit-sub > .kit-p:not(.kit-fine) { display: none; }
  .ks-panel-practise .kla-wrap { display: flex; flex-direction: column; gap: 12px; }
  .ks-panel-practise .kla-tabs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; position: static; }
  .ks-panel-practise .kla-tabs-h { display: none; }
  .ks-panel-practise .kla-tab { width: auto; padding: 6px 12px; }
  .ks-panel-practise .kla-panel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 260px); column-gap: 16px; align-items: start; }
  .ks-panel-practise .kla-panel > .cmp { grid-row: 1 / span 3; }
  .ks-panel-practise .kla-panel > :not(.cmp) { grid-column: 2; margin-top: 0; }
  .ks-panel-practise .kla-panel > .cmp-test { margin-top: 10px; }
  .ks-panel-practise :is(.cmp-k, .cmp-v), .ks-panel-spot :is(.cmp-k, .cmp-v) { padding-block: 5px; font-size: 13.5px; }
  .ks-panel-practise .kit-sub > .kit-p:not(.kit-fine) { margin-bottom: 4px; }
}
/* ── Folder tabs (2026-11-05): the tabs are file-card tabs; the selected one joins the panel
   below, which is a card like the bento tiles (same surface, stripe on the selected tab). ── */
.kb-sheet { --card-bg: color-mix(in srgb, var(--coal-1) 94%, transparent); --tab-stripe: var(--warm1); }
html[data-theme="light"] .kb-sheet { --card-bg: rgba(4,2,0,.95); --tab-stripe: #ccb49a; }
.ks-body.has-tabs { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; align-items: end; }
.ks-body.has-tabs > .ks-tabs { grid-column: 1; grid-row: 1; position: relative; z-index: 1; gap: 4px; margin-bottom: -1px; flex-wrap: nowrap; }
.ks-body.has-tabs > .ks-when { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; margin-bottom: 6px; }
.ks-body.has-tabs .ks-tab { position: relative; padding: 10px 20px 11px; border: 1px solid rgba(var(--wht), .1); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: rgba(var(--wht), .03); color: rgba(var(--wht), .62); font-size: 14px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.ks-body.has-tabs .ks-tab:hover { color: rgb(var(--wht)); background: rgba(var(--wht), .06); border-color: rgba(var(--wht), .14); }
.ks-body.has-tabs .ks-tab[aria-selected="true"] { background: var(--card-bg); color: rgb(var(--wht)); border-color: rgba(var(--wht), .12); box-shadow: inset 0 3px 0 var(--tab-stripe); }
/* The selected tab covers the panel's top border, so tab and panel read as one card. */
.ks-body.has-tabs .ks-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--card-bg); }
.ks-body.has-tabs > .ks-panels { grid-row: 2; padding: clamp(14px, 1.6vw, 22px); border: 1px solid rgba(var(--wht), .12); border-radius: 0 var(--kr) var(--kr) var(--kr); background: var(--card-bg); }
.ks-body.has-tabs > .ks-panels .kit-sub { background: rgba(var(--wht), .02); }
.ks-body.has-tabs > .ks-panels .ks-panel > .kit-sub:only-child { padding: 0; border: 0; border-radius: 0; background: none; }
@media (max-width: 899px) {
  .ks-body.has-tabs { grid-template-columns: minmax(0, 1fr); }
  .ks-body.has-tabs > .ks-when { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 10px; }
  .ks-body.has-tabs > .ks-tabs { grid-row: 2; overflow-x: auto; }
  .ks-body.has-tabs > .ks-panels { grid-row: 3; grid-column: 1 / -1; }
  .ks-body.has-tabs .ks-tab { padding: 9px 14px 10px; }
}
/* Shorter desktop screens (laptops): tighter spacing so each tab still fits on one screen. */
@media (min-width: 900px) and (max-height: 860px) {
  .kb-sheet .ks-body.has-tabs { padding-top: 12px; padding-bottom: 14px; row-gap: 10px; }
  .ks-panel .kit-sub { padding: 16px 18px; }
  .ks-panel .kit-sub-title { margin-bottom: 4px; }
  .ks-panel .kit-p { font-size: 14px; line-height: 1.45; margin-bottom: 6px; }
  .ks-panel-conservation .rl-step > small { display: none; }
  .ks-panel-conservation .rl-scale { gap: 4px; margin: 4px 0; }
  .ks-panel-conservation .rl-step .rl-bar { min-height: 20px; }
  .ks-panel-conservation .ov-col { gap: 12px; }
  .ks-panel-operator .kit-pki { padding: 6px 2px; }
  .ks-panel-operator .rs-col, .ks-panel-operator .rs-ask { padding: 16px 18px; }
  .ks-panel-operator .kit-h3 { font-size: 17px; margin-bottom: 4px; }
  .ks-panel-operator .rs-note { margin-top: 8px; font-size: 13px; }
  .ks-panel-practise img, .ks-panel-spot img { max-height: 9vh; }
  .ks-panel-practise :is(.cmp-k, .cmp-v), .ks-panel-spot :is(.cmp-k, .cmp-v) { padding-block: 3px; font-size: 13px; line-height: 1.4; }
  .ks-panel-practise .cmp-pic figcaption { margin-top: 4px; font-size: 11.5px; }
  .ks-panel-practise .kla-tab { padding: 4px 10px; font-size: 13px; }
  .ks-panel-practise .kit-fine { font-size: 11.5px; margin-top: 6px; }
  .ks-body.has-tabs > .ks-panels { padding: 8px 12px; }
  .ks-body.has-tabs .ks-tab { padding: 7px 16px 8px; }
}
/* "White" is a setting: --wht. Light mode (kit pages only) flips colours, so white-at-alpha would
   come out neutral grey; here it is warm instead, showing as ink #1c1610. Pieces flipped back to
   their real colours keep true white. */
html[data-theme="light"] { --wht: 237,231,225; }
html[data-theme="light"] :is(img, video, .kp-page, .kb-donate, .kit-chip, .kb-flag:not(:empty), .btn-primary, .ks-print) { --wht: 255,255,255; }
/* Modals: dusk stripe on top like the tiles; the topo map sits behind the modal on a linen veil. */
html[data-theme="light"] .kb-sheet { background: rgba(12,8,0,.9); /* linen veil */ isolation: isolate; }
html[data-theme="light"] .kb-sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #ccb49a; opacity: .2;
  -webkit-mask: url(/assets/topo/drakensberg.svg) center / cover no-repeat; mask: url(/assets/topo/drakensberg.svg) center / cover no-repeat; }
html[data-theme="light"] .kb-sheet .ks-head { box-shadow: inset 0 4px 0 #ccb49a; }
html[data-theme="light"] :is(.kb-tile:hover, .kb-quizbtn:hover, .kb-theme:hover, .kb-tile.is-flagged) { border-color: var(--warm2); }
html[data-theme="light"] :is(.kb-donate, .kit-chip, .kb-flag:not(:empty), .btn-primary, .ks-print) { --warm1: #43321f; --warm2: #615043; box-shadow: none; }
html[data-theme="light"] :is(img, video, .kp-page, .kb-donate, .kit-chip, .kb-flag:not(:empty), .btn-primary, .ks-print) { filter: invert(1) hue-rotate(180deg); }
/* Flipped once already by a flipped parent, or meant to flip (the white logo turns dark). */
html[data-theme="light"] :is(.bento .kb-logo img, img[src*="logo-white"]) { filter: none; }
html[data-theme="light"] .kb-theme .kb-sun { display: none; }
html[data-theme="light"] .kb-theme .kb-moon { display: block; }
@media (max-width: 820px) { .we-splitbar .seg small { font-size: 9px; letter-spacing: .04em; white-space: nowrap; } }

/* ── Topo sections ─────────────────────────────────────────────────────────────
   Shared with Wild Eyes (assets/topo, built by wild-eyes scripts/topo/make-topos.py). A topo
   section is ONE piece of real land: its shape is the ground above one contour, so its top
   and bottom edges are contour lines and the lines inside run continuously up to them. The
   land is a touch lighter than the page ink, with faint light contours; only every other
   section carries one (About, Partners) so two topos never sit side by side. Desktop and tall
   phone cuts of the same land. Extra top/bottom padding keeps content clear of the outline. */
.topo-section { --topo-pad: max(150px, 9vw); position: relative; isolation: isolate; background: transparent; padding-block: var(--topo-pad); }
/* A photo band after a topo section runs up behind its lower outline, so the land's edge sits
   straight on the photo — no strip of page ink between them. */
.topo-section + .donate-band { margin-top: calc(-1 * var(--topo-pad-prev, max(150px, 9vw))); padding-top: calc(clamp(64px, 9vw, 120px) + var(--topo-pad-prev, max(150px, 9vw))); }
.topo-section:has(+ .donate-band) { z-index: 3; }
.topo-section > :not(.topo-band) { position: relative; z-index: 1; }
.topo-band { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.topo-band span { position: absolute; inset: 0; -webkit-mask: var(--tb-wide) 0 0 / 100% 100% no-repeat; mask: var(--tb-wide) 0 0 / 100% 100% no-repeat; }
.topo-band .tb-fill { background: #17181b; }
.topo-band .tb-lines { background: rgba(var(--wht), 0.075); }
.topo-drakensberg .tb-fill { --tb-wide: url(/assets/topo/drakensberg-band-fill.svg); --tb-tall: url(/assets/topo/drakensberg-band-tall-fill.svg); }
.topo-drakensberg .tb-lines { --tb-wide: url(/assets/topo/drakensberg-band-lines.svg); --tb-tall: url(/assets/topo/drakensberg-band-tall-lines.svg); }
.topo-ngorongoro .tb-fill { --tb-wide: url(/assets/topo/ngorongoro-band-fill.svg); --tb-tall: url(/assets/topo/ngorongoro-band-tall-fill.svg); }
.topo-ngorongoro .tb-lines { --tb-wide: url(/assets/topo/ngorongoro-band-lines.svg); --tb-tall: url(/assets/topo/ngorongoro-band-tall-lines.svg); }
.topo-rift .tb-fill { --tb-wide: url(/assets/topo/rift-band-fill.svg); --tb-tall: url(/assets/topo/rift-band-tall-fill.svg); }
.topo-rift .tb-lines { --tb-wide: url(/assets/topo/rift-band-lines.svg); --tb-tall: url(/assets/topo/rift-band-tall-lines.svg); }
.topo-kilimanjaro .tb-fill { --tb-wide: url(/assets/topo/kilimanjaro-band-fill.svg); --tb-tall: url(/assets/topo/kilimanjaro-band-tall-fill.svg); }
.topo-kilimanjaro .tb-lines { --tb-wide: url(/assets/topo/kilimanjaro-band-lines.svg); --tb-tall: url(/assets/topo/kilimanjaro-band-tall-lines.svg); }
.topo-hillside .tb-fill { --tb-wide: url(/assets/topo/hillside-band-fill.svg); --tb-tall: url(/assets/topo/hillside-band-tall-fill.svg); }
.topo-hillside .tb-lines { --tb-wide: url(/assets/topo/hillside-band-lines.svg); --tb-tall: url(/assets/topo/hillside-band-tall-lines.svg); }
@media (max-width: 820px) {
  .topo-section { --topo-pad: 230px; }
  .topo-section + .donate-band { --topo-pad-prev: 230px; }
  .topo-band span { -webkit-mask-image: var(--tb-tall); mask-image: var(--tb-tall); }
}

/* Footer — the same faint contour lines (Rift Valley escarpment), on every page. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; } /* the footer globe is cut off at the footer's edges */
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #fff; opacity: 0.06;
  -webkit-mask: url(/assets/topo/rift.svg) center 40% / cover no-repeat;
  mask: url(/assets/topo/rift.svg) center 40% / cover no-repeat;
}
/* Red List bars keep their real colours in light mode. */
html[data-theme="light"] .rl-step .rl-bar { filter: invert(1) hue-rotate(180deg); }

/* ── Dark mode on the kit pages (2026-11-05): the same card style as light mode, in the STA brand
   colours: ink page, charcoal tiles, white text and lines, orange and coral accents, an orange
   stripe on top of each tile and modal, and the topo map behind. No tan. ── */
/* The top stripe is the brand gradient (orange → coral), drawn as a 4px background band. */
html:not([data-theme="light"]) .bento .kb-tile { --kbh: transparent; background-image: linear-gradient(90deg, var(--warm1), var(--warm2)); background-size: 100% 4px; background-position: top; background-repeat: no-repeat; }
html:not([data-theme="light"]) .bento .kb-art { background: #fff; opacity: .06; }
html:not([data-theme="light"]) .bento .kb-tile:hover .kb-art { opacity: .11; }
html:not([data-theme="light"]) .kb-wrap::before { background: #fff; opacity: .1; }
html:not([data-theme="light"]) .kb-sheet { background: rgba(13,14,16,.92); isolation: isolate; }
html:not([data-theme="light"]) .kb-sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: #fff; opacity: .1;
  -webkit-mask: url(/assets/topo/drakensberg.svg) center / cover no-repeat; mask: url(/assets/topo/drakensberg.svg) center / cover no-repeat; }
html:not([data-theme="light"]) .kb-sheet .ks-head { background: linear-gradient(90deg, var(--warm1), var(--warm2)) top / 100% 4px no-repeat, var(--coal-1); }

/* ── Square icon cells (2026-11-05): each tile's icon sits in a square at the left of its header
   band; each sheet header has a square icon cell on the left and a square close button on the
   right, both the full header height, divided by thin rules. ── */
.bento .kb-tile { --hh: 58px; padding-top: 0; grid-template-rows: var(--hh) auto auto auto minmax(0, 1fr); }
.bento .kb-tile::before { margin-top: 0; }
.bento .kb-tile .kb-ico.bmk { grid-row: 1; grid-column: 1; align-self: stretch; width: var(--hh); height: var(--hh); margin: 0 4px 0 calc(-1 * var(--kbp)); padding: 13px 10px; transform: none; }
.bento .kb-tile :is(.kb-title, .kb-tick) { margin-bottom: 0; }
/* Centred in the band below the 4px stripe; the tick mirrors the icon's square on the right. */
.bento .kb-tile :is(.kb-ico, .kb-title, .kb-tick) { translate: 0 2px; }
.bento .kb-tile .kb-tick { justify-self: end; margin-right: calc(-1 * var(--kbp) + (var(--hh) - 24px) / 2); }
.kb-sheet .ks-head > :is(.ks-ico, .ks-title) { translate: 0 2px; }
.kb-sheet .ks-head .ks-acts > :not(.kb-close) { translate: 0 2px; }
/* Tabbed sheets: the folder card runs almost edge to edge. */
.kb-sheet .ks-body.has-tabs { padding-inline: 10px; padding-bottom: 10px; }
.kb-sheet .ks-head { --hh: 68px; padding: 0; gap: 0; grid-template-columns: var(--hh) minmax(0, 1fr) auto; min-height: var(--hh); align-items: center; }
.kb-sheet .ks-head .ks-ico.bmk { align-self: stretch; width: var(--hh); height: var(--hh); margin: 0; padding: 15px 12px; transform: none; }
.kb-sheet .ks-head .ks-title { padding: 0 20px; }
.kb-sheet .ks-head .ks-acts { align-self: stretch; flex-wrap: nowrap; gap: 0; }
.kb-sheet .ks-head .ks-acts > :not(.kb-close) { align-self: center; margin-right: 14px; }
.kb-sheet .ks-head .kb-close { align-self: stretch; width: var(--hh); height: auto; border: 0; border-radius: 0 var(--kr) 0 0; padding-top: 4px; font-size: 26px; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.kb-sheet .ks-head .kb-close:hover { background: rgba(var(--wht), .05); color: var(--warm1); }
/* Tabs stretch across the row beside the timing label (desktop). */
@media (min-width: 900px) { .ks-body.has-tabs > .ks-tabs .ks-tab { flex: 1 1 0; text-align: center; } }
@media (max-width: 640px) {
  .bento .kb-tile { --hh: 52px; padding-top: 0; }
  .bento .kb-tile .kb-title { font-size: 15px; }
  .bento .kb-tile .kb-ico.bmk { padding: 12px 9px; }
  .kb-sheet .ks-head { --hh: 58px; grid-template-columns: var(--hh) minmax(0, 1fr); }
  .kb-sheet .ks-head .ks-title { padding: 10px calc(var(--hh) + 10px) 10px 14px; }
  .kb-sheet .ks-head .ks-acts { grid-column: 1 / -1; align-self: auto; padding: 0 14px 12px; border-top: 0; }
  .kb-sheet .ks-head .ks-acts > :not(.kb-close) { margin-right: 8px; }
  .kb-sheet .ks-head .kb-close { position: absolute; top: 0; right: 0; width: var(--hh); height: var(--hh); border-radius: 0; }
}
@media (max-width: 899px) {
  .ks-body.has-tabs { grid-template-rows: auto auto auto; }
  .ks-body.has-tabs > .ks-when { align-self: start; }
}

/* Red List as a table (2026-11-05): status, what it means, your animals; aligned columns, row lines. */
.rl-scale { grid-template-columns: 5px max-content minmax(150px, 1fr) minmax(0, 2.4fr); column-gap: 0; gap: 0; }
/* When the descriptions are hidden (lots of animals), their column closes up too. */
.ks-panel-conservation .rl-scale:has(.rl-chips > :nth-child(8)) { grid-template-columns: 5px max-content 0 minmax(0, 1fr); }
.ks-panel-conservation .rl-scale:has(.rl-chips > :nth-child(8)) .rl-head > small { display: none; }
.rl-scale .rl-step > small { line-height: 1.3; }
@media (min-width: 900px) { .ks-panel-conservation .ov-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.rl-scale .rl-step { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: auto; align-items: center; column-gap: 0; padding: 7px 0; border-top: 1px solid rgba(var(--wht), .08); }
.rl-scale .rl-step .rl-bar { grid-column: 1; grid-row: 1; align-self: stretch; min-height: 22px; }
.rl-scale .rl-step > b { grid-column: 2; grid-row: 1; padding: 0 16px 0 12px; white-space: nowrap; }
.rl-scale .rl-step > small { grid-column: 3; grid-row: 1; padding-right: 16px; }
.rl-scale .rl-step .rl-chips { grid-column: 4; grid-row: 1; }
.rl-scale .rl-head { border-top: 0; padding: 0 0 6px; }
.rl-scale .rl-head > :is(b, small, .rl-chips) { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--wht), .5); }
.rl-scale .rl-step:last-child { border-bottom: 1px solid rgba(var(--wht), .08); }
@media (max-width: 640px) {
  .rl-scale { grid-template-columns: 5px minmax(0, 1fr); }
  .rl-scale .rl-step { grid-template-rows: auto auto; row-gap: 6px; }
  .rl-scale .rl-step .rl-bar { grid-row: 1 / -1; }
  .rl-scale .rl-step > small, .rl-scale .rl-head > small, .rl-scale .rl-head > .rl-chips { display: none; }
  .rl-scale .rl-step .rl-chips { grid-column: 2; grid-row: 2; padding-left: 12px; }
  .rl-scale .rl-step .rl-chips:empty { display: none; }
}
@media (min-width: 900px) and (max-height: 860px) {
  .rl-scale { grid-template-columns: 5px max-content 0 minmax(0, 1fr); }
  .rl-scale .rl-step > small, .rl-scale .rl-head > small { display: none; }
  .rl-scale .rl-step { padding: 3px 0; }
  .rl-scale .rl-step .rl-bar { min-height: 18px; }
  .ks-panel-conservation .rl-chip { font-size: 11px; padding: 0 6px; }
  .ks-panel-conservation .ov-iucn > .kit-p:not(.kit-fine) { font-size: 13px; }
  .ks-panel-conservation .ov-iucn > .eyebrow { display: none; }
  .ks-panel-conservation .ov-iucn > .kit-fine { font-size: 11px; margin-top: 4px; }
}

/* Conservation history timeline (2026-11-05). */
.ov-hist-h { margin: 14px 0 6px; font-size: 13px; font-family: var(--mono); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm1); }
.ov-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ov-hist li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-top: 1px solid rgba(var(--wht), .08); font-size: 13.5px; line-height: 1.4; }
.ov-hist li b { font-family: var(--mono); font-size: 12.5px; color: var(--warm1); }
.ov-hist li span { color: rgba(var(--wht), .8); }
.ov-hist-note { margin-top: 8px; }
@media (min-width: 900px) and (max-height: 860px) {
  .ov-hist li { padding: 3px 0; font-size: 12.5px; }
  .ov-hist li:nth-child(3), .ov-hist li:nth-child(6) { display: none; }
}
/* Timing label beside the tabs: room to breathe. */
@media (min-width: 900px) { .ks-body.has-tabs > .ks-when { align-self: center; margin: 0 6px 0 22px; white-space: nowrap; } }
.ov-iucn .ov-stat { margin-top: 10px; padding: 10px 0 0; border-top: 1px solid rgba(var(--wht), .08); }
.ov-iucn .ov-big { font-size: clamp(32px, 3vw, 46px); }
.ks-panel-conservation .ov-col > .ov-what { display: flex; flex-direction: column; }
.ks-panel-conservation .ov-hist-note { margin-top: auto; padding-top: 8px; }
@media (min-width: 900px) {
  .ks-panel-conservation .kit-p { margin-bottom: 6px; line-height: 1.5; }
  .ks-panel-conservation .ov-hist-h { margin: 8px 0 4px; }
  .ks-panel-conservation .rl-scale { margin: 6px 0; }
  .ks-panel-conservation .rl-scale .rl-step { padding: 5px 0; }
  .ks-panel-conservation .ov-iucn .ov-stat { margin-top: 4px; padding-top: 6px; }
  .ks-panel-conservation .kit-sub-title { margin-bottom: 6px; }
}
@media (min-width: 900px) { .ks-panel-conservation .kit-sub { padding: 16px 20px; } .ks-panel-conservation .eyebrow { margin-bottom: 4px; } }
@media (min-width: 900px) { .ks-panel-conservation .ov-hist-note { padding-top: 4px; margin-bottom: 0; } .ks-panel-conservation .rl-scale .rl-step { padding: 4px 0; } .ks-panel-conservation .ov-hist li { padding: 3px 0; } }
@media (min-width: 900px) and (max-height: 860px) { .ks-panel-conservation .ov-what > p.kit-p:nth-of-type(2) { display: none; } }
/* Phones: the tabbed sheet stacks (label, tabs, card) and the card grows with its content. */
@media (max-width: 899px) {
  .kb-sheet .ks-body.has-tabs { display: block; }
  .kb-sheet .ks-body.has-tabs > .ks-when { display: block; margin: 0 0 10px; }
  .kb-sheet .ks-body.has-tabs > .ks-tabs { display: flex; }
  .kb-sheet .ks-body.has-tabs > .ks-panels { height: auto; }
}
@media (min-width: 900px) and (max-height: 860px) { .ks-panel-conservation .rl-scale .rl-step { padding: 2px 0; } .ks-panel-conservation .ov-hist li { padding: 2px 0; } }
/* Timing label = a tab without the tab: same height, padding and gap as the tabs beside it. */
@media (min-width: 900px) {
  .ks-body.has-tabs > .ks-when { align-self: end; display: flex; align-items: center; margin: 0 0 0 4px; padding: 0 20px; height: var(--tab-h, 43px); border: 1px solid transparent; border-bottom: 0; white-space: nowrap; }
}
@media (min-width: 900px) and (max-height: 860px) { .ks-body.has-tabs > .ks-when { --tab-h: 37px; padding: 0 16px; } }
/* The timing label takes one tab's width, text centred, as if it were one more tab (no tab drawn). */
@media (min-width: 900px) {
  .ks-body.has-tabs { column-gap: 4px; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
  .ks-body.has-tabs:has(.ks-tab:nth-child(4)) { grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); }
  .ks-body.has-tabs:has(.ks-tab:nth-child(5)) { grid-template-columns: minmax(0, 5fr) minmax(0, 1fr); }
  .ks-body.has-tabs > .ks-when { justify-self: stretch; justify-content: center; margin: 0; padding: 0 8px; }
}

/* The place: area history, biodiversity and culture under the best-time box (2026-11-05). */
.ov-ctx { display: grid; gap: 12px; margin-top: 14px; }
.ov-ctx-i h4 { margin: 0 0 4px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm1); }
.ov-ctx-i p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .8); }
@media (min-width: 900px) {
  .ks-panel-place .ov-where { align-items: start; }
  .ks-panel-place .ov-where-txt { align-self: center; }
}
@media (min-width: 900px) and (max-height: 860px) {
  .ov-ctx { gap: 8px; margin-top: 10px; }
  .ov-ctx-i p { font-size: 12.5px; line-height: 1.45; }
  .ks-panel-place .kit-sub-title { font-size: 24px; }
  .ks-panel-place .ov-places { margin-bottom: 8px; }
}

/* Area sections as accordions; the globe stays centred in the tab (2026-11-05). */
.ov-ctx { gap: 0; border-bottom: 1px solid rgba(var(--wht), .1); }
.ov-ctx-i { border-top: 1px solid rgba(var(--wht), .1); }
.ov-ctx-i > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm1); }
.ov-ctx-i > summary::-webkit-details-marker { display: none; }
.ov-ctx-i > summary::after { content: "+"; flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(var(--wht), .2);
  font-family: inherit; font-size: 15px; letter-spacing: 0; color: rgba(var(--wht), .7); transition: transform var(--dur) var(--ease); }
.ov-ctx-i[open] > summary::after { transform: rotate(45deg); }
.ov-ctx-i > summary:hover::after { border-color: var(--warm1); color: var(--warm1); }
.ov-ctx-i > p { margin: 0 2px 12px; }
@media (min-width: 900px) {
  .ks-panel-place .ov-where { align-items: center; }
  .ks-panel-place .ov-globe { align-self: center; }
}

/* Accordion text animates its height (guides/kit.js), so it carries its own bottom space. */
.ov-ctx-i > p { margin: 0 2px; padding-bottom: 12px; overflow: hidden; }
.ov-ctx { align-content: start; }

/* Habitats section (after Habitats of the World) and the accordion body wrapper. */
.ov-ctx-b { overflow: hidden; padding: 0 2px 12px; }
.ov-ctx-b > p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .8); }
.ov-hab-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov-hab-l li { font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .78); padding-left: 12px; position: relative; }
.ov-hab-l li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--warm1); }
.ov-hab-l b { color: rgb(var(--wht)); }
.ov-hab-src { margin: 8px 0 0 !important; font-size: 11.5px !important; color: rgba(var(--wht), .55) !important; }
@media (min-width: 900px) and (max-height: 860px) { .ov-hab-l li { font-size: 12.5px; } .ov-hab-l { gap: 3px; } .ov-ctx-b > p { font-size: 12.5px; } }
.ov-hab-l { gap: 5px; }
@media (min-width: 900px) and (max-height: 860px) { .ov-ctx-i > summary { padding: 8px 2px; } }

/* Habitats tab: a card per habitat, filling the panel (2026-11-05). */
.ov-habs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ov-hab-c { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 1.6vw, 22px); border-radius: 14px; border: 1px solid rgba(var(--wht), .1); background: rgba(var(--wht), .02); }
.ov-hab-c h4 { margin: 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.25; }
.ov-hab-c p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(var(--wht), .78); }
.ov-hab-c small { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--warm1); }
.ov-habs-src { margin-top: 10px; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-habitats { display: flex; flex-direction: column; }
  .ks-panel-habitats .ov-habs { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  .ks-panel-habitats .ov-hab-c { justify-content: center; }
  .ks-panel-conservation .ov-col > .ov-what { flex: 1 1 auto; }
}
@media (max-width: 899px) { .ov-habs { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) and (max-height: 860px) { .ov-hab-c p { font-size: 13px; } }
.ov-how { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-how li { padding: 6px 0; border-top: 1px solid rgba(var(--wht), .08); font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .78); }
.ov-how li b { display: block; color: rgb(var(--wht)); font-size: 14px; }
.ov-hab-c small { margin-top: 6px; }
@media (min-width: 900px) and (max-height: 860px) { .ov-how li { padding: 3px 0; font-size: 12.5px; } .ov-how li b { display: inline; font-size: 12.5px; margin-right: 4px; } }
.ov-how li { padding: 4px 0; } .ov-how li b { display: inline; margin-right: 4px; }
@media (min-width: 900px) {
  .ks-panel-conservation .ov-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); }
  .ks-panel-conservation .ov-stat { padding: 12px 18px; }
  .ks-panel-conservation .ov-big { font-size: clamp(32px, 3vw, 44px); }
}

/* Ecosystem names lead; countries sit underneath as the smaller line (2026-11-05). */
.kb-intro h1 .kb-lands, .ov-eco small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--warm1); }
.ov-eco small { font-size: 12px; margin-top: 6px; }

/* Header on one line: ecosystem name, then the countries in small capitals (2026-11-05). */
.kb-intro h1 { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 10px; min-width: 0; white-space: nowrap; }
.kb-intro h1 .kb-eco { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kb-intro h1 .kb-lands { display: inline; flex: none; margin: 0; }
@media (max-width: 640px) { .kb-intro h1 { flex-wrap: wrap; row-gap: 2px; white-space: normal; } }
.kb-top .kb-intro h1, .kb-top.has-trip .kb-intro h1 { white-space: nowrap; }
@media (max-width: 640px) { .kb-top .kb-intro h1 { white-space: normal; } }
/* One line when there is room; if not, the countries drop below rather than cutting the name. */
.kb-intro h1 { flex-wrap: wrap; row-gap: 2px; }
.kb-intro h1 .kb-eco { overflow: visible; white-space: nowrap; }
.kb-intro h1 .kb-lands { white-space: nowrap; }

/* Month sits in the title bar beside the progress square, only as wide as its text (2026-11-05). */
@media (min-width: 641px) {
  .kb-top.has-trip > .kb-titlebar { grid-column: 1 / 5; }
  .kb-titlebar > .kb-month { flex: none; padding: 8px 20px; }
}
@media (max-width: 640px) {
  .kb-top > .kb-titlebar { display: contents; }
  .kb-top .kb-intro { flex: 1 1 calc(100% - 82px); }
  .kb-top .kb-progress { flex: none; width: 72px; aspect-ratio: 1 / 1; }
  .kb-top .kb-month { flex: none; padding-inline: 14px; }
}

/* Habitat card icons (guides/marks.js). */
.ov-hab-c .ov-hab-ico { width: clamp(64px, 6vw, 88px); height: auto; aspect-ratio: 4 / 3; margin: 0 0 6px; }
@media (min-width: 900px) and (max-height: 860px) { .ov-hab-c .ov-hab-ico { width: 56px; margin-bottom: 2px; } }
.ov-hab-c .ov-hab-ico { width: clamp(84px, 8vw, 124px); margin-bottom: 10px; } @media (min-width: 900px) and (max-height: 860px) { .ov-hab-c .ov-hab-ico { width: 72px; margin-bottom: 4px; } }
.ov-habs > .ov-hab-c:last-child:nth-child(3n+2) { grid-column: span 2; }

/* Habitats tab: ecosystem explainer on the left, habitat cards on the right (2026-11-05). */
.ov-habs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 14px; }
.ov-eco-why .kit-p { margin-bottom: 4px; }
.ov-eco-line { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid rgba(var(--wht), .1); font-weight: 600; color: rgb(var(--wht)) !important; }
.ov-habs-r .ov-habs { grid-template-columns: minmax(0, 1fr); } /* one column of cards, top to bottom (2026-11-08) */
.ov-habs-r .ov-habs > .ov-hab-c:last-child:nth-child(3n+2) { grid-column: auto; }
.ov-habs-r .ov-habs > .ov-hab-c:last-child:nth-child(odd) { grid-column: auto; }
.ov-habs-r .ov-hab-c { flex-direction: row; flex-wrap: wrap; align-content: center; column-gap: 12px; }
.ov-habs-r .ov-hab-c .ov-hab-ico { width: 58px; margin: 0; flex: none; }
.ov-habs-r .ov-hab-c h4 { flex: 1 1 0; min-width: 0; align-self: center; }
.ov-habs-r .ov-hab-c :is(p, small) { flex: 1 1 100%; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-habitats > .ov-habs-wrap { flex: 1 1 0; min-height: 0; }
  .ov-habs-r { display: flex; flex-direction: column; min-height: 0; }
  .ov-habs-r .ov-habs { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
}
@media (min-width: 900px) and (max-height: 860px) {
  .ov-eco-why .kit-p { font-size: 13px; }
  .ov-habs-r .ov-hab-c { padding: 10px 14px; }
  .ov-habs-r .ov-hab-c .ov-hab-ico { width: 46px; }
}
@media (max-width: 899px) { .ov-habs-wrap { grid-template-columns: minmax(0, 1fr); } .ov-habs-r .ov-habs { grid-template-columns: minmax(0, 1fr); } }

/* Ecosystem explainer as three scannable points + a big habitat count (2026-11-05). */
.ov-eco-why { display: flex; flex-direction: column; }
.ov-why { display: grid; gap: 10px; margin-top: 10px; }
.ov-why-i { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(var(--wht), .03); border: 1px solid rgba(var(--wht), .07); }
.ov-why-ico.bmk { width: 56px; height: 42px; margin: 0; }
.ov-why-i b { display: block; font-size: 15px; margin-bottom: 2px; }
.ov-why-i span { font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .75); }
.ov-why-n { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid rgba(var(--wht), .1); }
.ov-why-n b { font-size: clamp(36px, 3.4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--warm1); }
.ov-why-n span { font-size: 15px; font-weight: 600; }
/* Operator tab: questions as the left card, Look for + Avoid on the right. */
.ov-op-left { display: flex; flex-direction: column; }
.ov-op-intro { margin: 2px 0 8px; font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .75); }
.ov-op-left .rs-note { margin-top: auto; }
.ov-op-r { display: flex; flex-direction: column; min-height: 0; }
.ov-op-r .rs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 auto; align-items: stretch; margin: 0; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-operator > .ov-op-wrap { flex: 1 1 0; min-height: 0; }
  .ov-op-wrap > * { min-height: 0; }
}
@media (min-width: 900px) and (max-height: 860px) {
  .ov-why-i { padding: 8px 12px; } .ov-why-ico.bmk { width: 44px; height: 33px; } .ov-why-i span { font-size: 12.5px; }
}
@media (max-width: 899px) { .ov-op-r .rs-cols { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 900px) and (min-height: 620px) { .ov-eco-why .ov-why { flex: 1 1 auto; grid-auto-rows: minmax(0, 1fr); margin-bottom: 14px; } }

/* Explainer header with the count; operator accordions on the right (2026-11-05). */
.ov-why-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.ov-why-head b { font-size: clamp(40px, 3.6vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--warm1); }
.ov-why-head .kit-sub-title { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.2; }
.ov-op-acc { flex: 1 1 auto; }
.ov-op-acc .ov-ctx-i > summary { font-size: 12.5px; padding: 13px 2px; }
.ov-op-acc .ov-ctx-i > summary small { margin-left: 10px; margin-right: auto; font-size: 10.5px; letter-spacing: .06em; color: rgba(var(--wht), .5); text-transform: none; font-weight: 600; }
.ov-op-acc .ov-ctx-b .rs-note { margin-top: 10px; font-size: 13.5px; }
@media (min-width: 900px) and (max-height: 860px) { .ov-op-acc .ov-ctx-i > summary { padding: 9px 2px; } }

/* Look for / Avoid accordions: a quiet green and red, as the old columns had (2026-11-05). */
.ov-op-acc .ov-look > summary { color: #8fdcab; }
.ov-op-acc .ov-avoid > summary { color: #ff7a8f; }
.ov-op-acc .ov-look[open] { background: linear-gradient(180deg, rgba(143,220,171,.07), transparent 70%); }
.ov-op-acc .ov-avoid[open] { background: linear-gradient(180deg, rgba(255,84,112,.07), transparent 70%); }
.ov-op-acc .ov-look { border-top-color: rgba(143,220,171,.3); }
.ov-op-acc .ov-avoid { border-top-color: rgba(255,84,112,.3); }
.ov-op-acc .ov-look > summary::after { border-color: rgba(143,220,171,.45); color: #8fdcab; }
.ov-op-acc .ov-avoid > summary::after { border-color: rgba(255,84,112,.45); color: #ff7a8f; }
.ov-op-acc :is(.ov-look, .ov-avoid) { border-radius: 10px 10px 0 0; padding-inline: 8px; }
/* The Wildlife tile is twice as wide: its spotting scope (tripod showing) is larger (2026-11-06). */
.bento .kb-animals .kb-art { --h: 86%; right: 4%; bottom: -10%; }
@media (max-width: 1100px) { .bento .kb-animals .kb-art { --h: 72%; } }

/* Tile ticks are clickable (guides/kit.js): a larger hit area and a hover cue (2026-11-06). */
.bento .kb-tile .kb-tick { cursor: pointer; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.bento .kb-tile .kb-tick::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.bento .kb-tile .kb-tick:hover { border-color: var(--warm1); transform: scale(1.08); }

/* Operators: Look for and Avoid side by side, always open, on a flat tint */
.ov-op-cols { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.ov-op-col { border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ov-op-col.ov-look { background: rgba(143,220,171,.07); border: 1px solid rgba(143,220,171,.22); }
.ov-op-col.ov-avoid { background: rgba(255,84,112,.06); border: 1px solid rgba(255,84,112,.2); }
.ov-op-h { font: 700 12.5px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; padding: 2px 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ov-op-h small { font-size: 10.5px; letter-spacing: .06em; text-transform: none; font-weight: 600; color: rgba(var(--wht), .5); }
.ov-look .ov-op-h { color: #8fdcab; }
.ov-avoid .ov-op-h { color: #ff7a8f; }
@media (max-width: 899px) { .ov-op-cols { grid-template-columns: 1fr; } }
/* rows share the column height so the lists fill the space */
.ov-op-col > .kit-pki { flex: 1 1 0; max-height: 66px; min-height: 40px; align-content: center; }
/* rows never move: the note floats over the rows below (above, for the last two) */
.ov-op-col > .kit-pki { position: relative; }
.ov-op-col .pk-note:not([hidden]) { position: absolute; z-index: 6; top: calc(100% - 6px); left: 34px; right: -6px; margin: 0;
  padding: 12px 14px; border-radius: 10px; background: var(--card-bg); border: 1px solid rgba(var(--wht), .14);
  box-shadow: 0 10px 28px rgba(0,0,0,.35); font-size: 13.5px; line-height: 1.45; color: rgba(var(--wht), .85); }
.ov-op-col > .kit-pki:nth-last-child(-n+2) .pk-note:not([hidden]) { top: auto; bottom: calc(100% - 6px); }
.ov-op-col .pk-more[aria-expanded="true"] { border-color: var(--warm1); }

/* Conservation tab on the Operators / Habitats layout: explainer left, Red List right (2026-11-06) */
.ov-why-head b small { font-size: .42em; font-weight: 700; letter-spacing: 0; margin-left: 4px; color: rgba(var(--wht), .55); }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-conservation { display: flex; flex-direction: column; }
  .ks-panel-conservation > .ov-cons-wrap { flex: 1 1 0; min-height: 0; }
  .ks-panel-conservation .ov-iucn { display: flex; flex-direction: column; min-height: 0; }
  .ks-panel-conservation .ov-iucn .rl-scale { flex: 1 1 auto; align-content: space-evenly; }
}
.ov-why-head b { flex: none; white-space: nowrap; }
@media (min-width: 900px) { .ks-panel-conservation .ov-cons-wrap > .kit-sub { padding: clamp(18px, 2.6vw, 26px); } }
@media (min-width: 900px) and (max-height: 800px) {
  .ks-panel-conservation .ov-cons-wrap > .kit-sub { padding: 16px 18px; }
  .ov-cons-wrap .ov-why { gap: 6px; margin-bottom: 0 !important; }
  .ov-cons-wrap .ov-why-i { padding: 4px 12px; grid-template-columns: 44px minmax(0, 1fr); }
  .ov-cons-wrap .ov-why-ico.bmk { width: 40px; height: 30px; }
  .ov-cons-wrap .ov-why-i span { font-size: 12px; line-height: 1.35; }
  .ks-panel-conservation .ov-iucn > .kit-p:not(.kit-fine) { font-size: 13px; }
}

/* Explainer cards (Operators, Habitats, Conservation): eyebrow, big count, one-line description, points */
.ov-eco-why > .eyebrow { margin-bottom: 8px; }
.ov-eco-why .ov-why-head { margin: 0 0 12px; }
.ov-eco-why > .ov-why-lede { margin: 6px 0 26px; font-size: 15px; line-height: 1.5; color: rgba(var(--wht), .72); background: none; border: 0; }
.ov-eco-why .ov-why { margin-top: 0; }
@media (min-width: 900px) and (max-height: 860px) {
  .ov-eco-why .ov-why-head { margin-bottom: 8px; }
  .ov-eco-why > .ov-why-lede { margin: 4px 0 18px; font-size: 13.5px; }
}

/* Your part and the Local guide on the Operators / Habitats layout (2026-11-08): explainer left,
   cards right, filling the sheet like Habitats. */
.ov-habs-r .ov-hab-c :is(.kb-places, .kb-words) { flex: 1 1 100%; }
.ov-know-wrap .ov-why-i span { font-size: 13.5px; line-height: 1.45; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-part { display: flex; flex-direction: column; }
  .ks-panel-part > .ov-habs-wrap, .kb-sheet .ks-body.is-fill > .ov-know-wrap { flex: 1 1 0; min-height: 0; }
}

/* Species tab: the Red List levels as cards, like the Habitats cards (2026-11-08). The coloured
   bar stands where the habitat icon goes. */
.ov-habs-r .ov-rl-c { column-gap: 12px; }
.ov-rl-c > .rl-bar { flex: none; width: 6px; height: 26px; border-radius: 3px; align-self: center; }
.ov-habs-r .ov-rl-c .rl-chips { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px; }
html[data-theme="light"] .ov-rl-c .rl-bar { filter: invert(1) hue-rotate(180deg); }

/* One column of cards: each card is wide and short, the icon (or Red List colour bar) on the
   left and the title, text and "Look for" beside it. Cards may grow past an equal share so
   nothing is clipped; the sheet's fit-to-screen scaling (kit.js fitTab) then shrinks to fit. */
.ov-habs-r .ov-hab-c { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 3px; align-content: center; }
.ov-habs-r .ov-hab-c > :first-child { grid-row: 1 / span 3; align-self: center; }
.ov-habs-r .ov-hab-c > :not(:first-child) { grid-column: 2; }
.ov-habs-r .ov-hab-c small { margin-top: 2px; padding-top: 0; }
@media (min-width: 900px) and (min-height: 620px) { .ov-habs-r .ov-habs { grid-auto-rows: minmax(min-content, 1fr); } }

/* Species cards: the IUCN code in a coloured disc, where the habitat icon goes (2026-11-08).
   Colours follow the Red List's own scale. */
.ov-rl-c > .rl-code { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 800 14px/1 var(--mono, ui-monospace, monospace); letter-spacing: .02em; color: #fff; }
.rlx-lc > .rl-code { background: #4cbe78; } .rlx-nt > .rl-code { background: #d6be46; color: #1c1a10; } .rlx-vu > .rl-code { background: #ffaa46; color: #1f1508; }
.rlx-en > .rl-code { background: #ff7850; } .rlx-cr > .rl-code { background: #ff5470; } .rlx-ew > .rl-code { background: #b07ad0; }
.rlx-ex > .rl-code { background: #0b0b0c; border: 2px solid rgba(var(--wht), .5); }
html[data-theme="light"] .ov-rl-c > .rl-code { filter: invert(1) hue-rotate(180deg); }
.ov-rl-c .rl-chips .rl-who { align-self: center; margin-left: 2px; }
@media (min-width: 900px) and (max-height: 860px) { .ov-rl-c > .rl-code { width: 38px; height: 38px; font-size: 12.5px; } }

/* Operators: "Look for" above "Avoid", one column (2026-11-08). */
.ov-op-cols { grid-template-columns: minmax(0, 1fr); }
/* Seven Species cards in one column: keep them compact so the shared tab scale stays high. */
.ov-habs-r .ov-rl-c { padding: 8px 16px; row-gap: 2px; }
.ov-habs-r .ov-rl { gap: 8px; }
.ov-rl-c > .rl-code { width: 38px; height: 38px; font-size: 12.5px; }
/* Species cards: level name and its meaning on one line, your animals below. */
.ov-habs-r .ov-rl-c { grid-template-columns: auto max-content minmax(0, 1fr); column-gap: 12px; }
.ov-habs-r .ov-rl-c > .rl-code { grid-row: 1 / span 2; margin-right: 4px; }
.ov-habs-r .ov-hab-c.ov-rl-c > h4 { grid-column: 2; grid-row: 1; align-self: baseline; }
.ov-habs-r .ov-hab-c.ov-rl-c > p { grid-column: 3; grid-row: 1; align-self: baseline; }
.ov-habs-r .ov-hab-c.ov-rl-c > .rl-chips { grid-column: 2 / -1; grid-row: 2; margin-top: 8px; }
/* Species cards line up with the Habitats cards: same side padding, the badge centred in the
   same 58px icon area (46px on short screens), the same 16px gap before the text. */
.ov-habs-r .ov-hab-c.ov-rl-c { grid-template-columns: 58px max-content minmax(0, 1fr); column-gap: 16px; padding-left: clamp(14px, 1.6vw, 22px); padding-right: clamp(14px, 1.6vw, 22px); }
.ov-habs-r .ov-hab-c.ov-rl-c > .rl-code { justify-self: center; margin-right: 0; }
.ov-habs-r .ov-hab-c.ov-rl-c > p { margin-left: -4px; }
@media (min-width: 900px) and (max-height: 860px) {
  .ov-habs-r .ov-hab-c.ov-rl-c { grid-template-columns: 46px max-content minmax(0, 1fr); padding-left: 14px; padding-right: 14px; }
}

/* IUCN badges animate in when the Species cards come into view (marks.js adds .in to
   [data-mk-group]): each disc pops in, one after another down the list. */
.ov-rl:not(.in) .rl-code { transform: scale(0); }
.ov-rl.in .rl-code { animation: rlPop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.ov-rl.in .ov-rl-c:nth-child(2) .rl-code { animation-delay: .09s; } .ov-rl.in .ov-rl-c:nth-child(3) .rl-code { animation-delay: .18s; }
.ov-rl.in .ov-rl-c:nth-child(4) .rl-code { animation-delay: .27s; } .ov-rl.in .ov-rl-c:nth-child(5) .rl-code { animation-delay: .36s; }
.ov-rl.in .ov-rl-c:nth-child(6) .rl-code { animation-delay: .45s; } .ov-rl.in .ov-rl-c:nth-child(7) .rl-code { animation-delay: .54s; }
@keyframes rlPop { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) {
  .ov-rl:not(.in) .rl-code, .ov-rl.in .rl-code { transform: none; animation: none; }
}

/* Local guide: the left card starts level with the cards on the right (no card top margin),
   and the row grows to fit the cards rather than letting them spill past the left card; the
   sheet's fit-to-screen scaling then shrinks the whole sheet instead. */
.ov-know-wrap > .kit-sub { margin-top: 0; }
@media (min-width: 900px) and (min-height: 620px) {
  .kb-sheet .ks-body.is-fill > .ov-know-wrap { flex: 1 0 auto; min-height: auto; }
}

/* The when label now sits in the sheet header, so the tabs span the full width, in equal widths. */
.ks-body.has-tabs > .ks-tabs { grid-column: 1 / -1; }

/* Local guide words: room under the card title, and a pronunciation line on each word. */
.ov-habs-r .ov-hab-c :is(.kb-places, .kb-words) { margin-top: 10px; }
.kb-word .kb-say { font-style: normal; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; color: rgba(var(--wht), .62); }
.ov-habs-r .ov-hab-c .kb-say-note { grid-column: 2; margin: 8px 0 0; font-size: 13px; color: rgba(var(--wht), .62); }

/* Local guide: Plugs and Time zone side by side in the last row. */
.ov-habs-r .ov-hab-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; min-height: 0; }
@media (max-width: 899px) { .ov-habs-r .ov-hab-pair { grid-template-columns: minmax(0, 1fr); } }

/* Packing guide (2026-11-08): explainer card on the left like the other sheets, the lists in two
   columns on the right, ending with "Leave at home" (red, ✕ marks, nothing to tick). */
main[data-kit] .kb-sheet .ov-pack-wrap { align-items: stretch; }
main[data-kit] .kb-sheet .ov-pack-wrap > .kit-sub { margin-top: 0; display: flex; flex-direction: column; }
.ov-pack-wrap > .kit-sub > .ov-why { flex: 1 1 auto; display: grid; grid-auto-rows: 1fr; }
main[data-kit] .kb-sheet .ov-pack-wrap .kit-pk .kit-pki { padding: 6px 0; }
main[data-kit] .kb-sheet .ov-pack-wrap .kit-pk .pk-group h3 { padding: 9px 16px; }
main[data-kit] .kb-sheet .ov-pack-wrap .kit-pk > * { margin-bottom: 12px; }
main[data-kit] .kb-sheet .ov-pack-wrap > .kit-pk { columns: 2 280px; column-gap: 14px; }
.ov-pack-wrap .pk-bar { display: block; height: 6px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: rgba(var(--wht), .1); }
main[data-kit] .kb-sheet .kit-pk .pk-leave { border-color: rgba(255,84,112,.3); background: linear-gradient(160deg, rgba(255,84,112,.08), rgba(var(--wht), .02)), var(--coal-1); }
main[data-kit] .kb-sheet .kit-pk .pk-leave h3 { color: #ff7a8f; border-bottom-color: rgba(255,84,112,.25); }
.pk-leave-i .pk-row { cursor: default; }
.pk-x { position: relative; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255,122,143,.6); }
.pk-x::before, .pk-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; border-radius: 1px; background: #ff7a8f; transform: rotate(45deg); }
.pk-x::after { transform: rotate(-45deg); }
/* Packing lists in two built columns (build-guides.py splits them in priority order). Each
   column stretches to the full height: its groups grow, and their rows spread out evenly. */
main[data-kit] .kb-sheet .ov-pack-wrap > .pk-cols { columns: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
main[data-kit] .kb-sheet .pk-cols > .pk-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; }
main[data-kit] .kb-sheet .pk-cols .pk-group { margin: 0; }
@media (min-width: 900px) and (min-height: 620px) {
  .kb-sheet .ks-body.is-fill > .ov-pack-wrap { flex: 1 0 auto; min-height: auto; }
  main[data-kit] .kb-sheet .pk-cols .pk-group { flex: 1 1 auto; display: flex; flex-direction: column; }
  main[data-kit] .kb-sheet .pk-cols .pk-items { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-around; }
}
@media (max-width: 899px) { main[data-kit] .kb-sheet .ov-pack-wrap > .pk-cols { grid-template-columns: minmax(0, 1fr); } }

/* One gap around every sheet's content (2026-11-08): 16px on all sides, so content fills the
   sheet's width and every sheet ends the same distance from its bottom edge. A sheet that is
   shrunk to fit (kit.js sets --z with the zoom) divides by it, so the gap stays 16px on screen. */
@media (min-width: 900px) {
  .kb-sheet .ks-body,
  main[data-kit] .kb-sheet #packing .ks-body,
  .kb-sheet .ks-body.has-tabs { padding: calc(16px / var(--z, 1)); }
  .kb-sheet .ks-body > :first-child { margin-top: 0; }
}

/* Kids' pages: no single word left alone on the last line. */
.kp-page :is(p, h1, h2, h3, figcaption, small) { text-wrap: pretty; }
.kp-page li { text-wrap: balance; }

/* Kids' guide intro: the same breathing room below it as the explainer descriptions. */
.kb-sheet #kids .ks-body > .kp-intro-p { margin: 0 0 22px; }
.kp-intro-p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Wildlife guide tabs on the two-column layout (kit_split, 2026-11-08): explainer card left,
   the photo wall / flip cards / look-alikes right, filling the panel like the other sheets. */
.ov-why-a { color: inherit; text-decoration: none; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.ov-why-a:hover { border-color: var(--warm1); background: rgba(255,138,91,.06); }
.ov-split .ov-eco-why > .eyebrow { display: block !important; }
.ov-split .ov-eco-why > .ov-why-lede { display: block !important; }
.ov-split > .kit-sub { margin-top: 0; }
.ov-split-r { min-width: 0; }
.ov-split-r > :first-child { margin-top: 0; }
@media (min-width: 900px) and (min-height: 620px) {
  :is(.ks-panel-checklist, .ks-panel-meet, .ks-panel-practise, .ks-panel-spot) { display: flex; flex-direction: column; overflow: visible; }
  :is(.ks-panel-checklist, .ks-panel-meet, .ks-panel-practise, .ks-panel-spot) > .ov-split { flex: 1 1 0; min-height: 0; }
  .ov-split-r { display: flex; flex-direction: column; min-height: 0; }
  .ov-cl-wrap .km-wall { flex: 1 1 0; min-height: 0; overflow: hidden; grid-auto-rows: minmax(0, 1fr); margin-top: 0; }
  .ov-b5-wrap .kit-b5 { flex: 1 1 0; min-height: 0; margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
  .ov-b5-wrap .kit-b5 .b5 { aspect-ratio: auto; height: 100%; }
}
/* Practise: the photo credit is already in the kit page's footnote, so it isn't repeated here. */
.ov-lc-wrap .ov-split-r .kit-fine { display: none; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-spot .ov-split-r > .kit-lc { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ks-panel-spot .ov-split-r .kit-lc table { flex: 1 1 auto; height: 100%; font-size: clamp(15px, 1.25vw, 18px); }
  .ks-panel-spot .ov-split-r .kit-lc :is(td, th) { padding-block: 10px; vertical-align: middle; }
}

/* Printing the kids' pack: exactly one US Letter sheet per page. No sheet padding or gaps
   pushing pages down, no dark page background, no page break after the last sheet, and no
   orange edge border (most home printers can't print to the edge of the paper). */
@media print {
  @page { size: letter; margin: 0; }
  html:has(body.print-kids), body.print-kids, body.print-kids main { background: #fff !important; }
  body.print-kids .kb-wrap::before, body.print-kids main::before, body.print-kids main::after { display: none !important; }
  body.print-kids #kids .ks-body, body.print-kids .kit-kp.kp-sheets { padding: 0 !important; margin: 0 !important; gap: 0 !important; overflow: visible !important; zoom: 1 !important; }
  body.print-kids .kit-kp .kp-page { box-sizing: border-box; width: 8.5in !important; height: 11in !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; break-after: page; break-inside: avoid; }
  body.print-kids .kit-kp .kp-page:last-child { break-after: auto; }
}

/* Ticking a section off (2026-11-08): the tile's circle pops and its checkmark draws in, the
   sheet's "Mark as read" circle pops, and the progress ring sweeps to its new value while its
   number pulses. kit.js adds .kb-pop for a moment, only when something is newly ticked. */
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
.kb-ring { transition: --p .7s cubic-bezier(.3, .8, .3, 1); }
.kb-tile.kb-pop .kb-tick { animation: kbTickPop .5s cubic-bezier(.34, 1.56, .64, 1); }
.kb-tile.kb-pop .kb-tick::after { animation: kbTickDraw .35s .15s ease-out both; }
.ks-done.kb-pop::before { animation: kbTickPop .5s cubic-bezier(.34, 1.56, .64, 1); }
.kb-progress.kb-pop .kb-ring b { display: inline-block; animation: kbNumPop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes kbTickPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes kbTickDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kbNumPop { 0% { transform: scale(1); } 45% { transform: scale(1.35); color: var(--warm1); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .kb-ring { transition: none; }
  .kb-tile.kb-pop .kb-tick, .kb-tile.kb-pop .kb-tick::after, .ks-done.kb-pop::before, .kb-progress.kb-pop .kb-ring b { animation: none; }
}

/* Level row caret keeps a touch of the brand colour. */
.hb tr.lvl .lvl-caret { color: var(--warm1); }

/* Board thank-you hero: its headline is longer than the homepage one, so it may wrap. */
.board-thanks h1 { white-space: normal; text-wrap: balance; }

/* ----- Cart drawer (app.js): slides in from the right over a dimmed page ----- */
.cart-drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
.cart-drawer.open { visibility: visible; pointer-events: auto; transition: none; }
.cart-scrim { position: absolute; inset: 0; background: rgba(8,9,11,.6); opacity: 0; transition: opacity .3s ease; }
.cart-drawer.open .cart-scrim { opacity: 1; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--coal-1); border-left: 1px solid rgba(var(--wht), .1); box-shadow: -24px 0 60px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.cart-drawer.open .cart-panel { transform: none; }
body.cart-open { overflow: hidden; }
.cart-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px; border-bottom: 1px solid rgba(var(--wht), .08); }
.cart-head h2 { flex: 1 1 auto; margin: 0; font-size: 19px; font-weight: 700; color: rgb(var(--wht)); }
.cart-x, .cart-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: none; background: transparent; color: rgba(var(--wht), .75); font-size: 26px; line-height: 1; cursor: pointer; }
.cart-x:hover, .cart-back:hover { background: rgba(var(--wht), .08); color: rgb(var(--wht)); }
.cart-back { margin-left: -8px; }
.cart-back[hidden] { display: none; }
.cart-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cart-body { flex: 1 1 auto; overflow-y: auto; padding: 8px 20px 16px; overscroll-behavior: contain; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(var(--wht), .07); }
.cart-line:last-child { border-bottom: none; }
.cart-thumb { flex: none; width: 76px; height: 76px; border-radius: 10px; background: #0b0b0d center/cover no-repeat; }
.cart-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cart-name { font-size: 15px; font-weight: 600; line-height: 1.35; color: rgb(var(--wht)); }
.cart-variant { font-size: 13px; color: rgba(var(--wht), .6); }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid rgba(var(--wht), .16); border-radius: 10px; }
.cart-qty button { width: 32px; height: 32px; border: none; background: none; color: rgb(var(--wht)); font: inherit; font-size: 17px; cursor: pointer; border-radius: 9px; }
.cart-qty button:hover:not(:disabled) { background: rgba(var(--wht), .08); }
.cart-qty button:disabled { opacity: .35; cursor: default; }
.cart-qty span { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; color: rgb(var(--wht)); }
.cart-price { font-size: 15px; font-weight: 700; color: rgb(var(--wht)); }
.cart-remove { align-self: flex-start; margin-top: 4px; padding: 2px 0; border: none; background: none; color: rgba(var(--wht), .55); font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cart-remove:hover { color: rgb(var(--wht)); }
.cart-empty { padding: 48px 0; text-align: center; color: rgba(var(--wht), .6); font-size: 15px; }
.cart-step[hidden] { display: none; }
/* Payment: Stripe's embedded form fills the drawer (its colours come from Stripe's Branding settings). */
.cart-drawer.paying .cart-foot { display: none; }
.cart-drawer.paying .cart-body { padding: 16px 12px 20px; }
.cart-stripe { min-height: 420px; border-radius: 12px; overflow: hidden; }
.cart-step-lede { margin: 12px 0 16px; font-size: 14px; color: rgba(var(--wht), .7); }
.cart-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(var(--wht), .08); background: var(--coal-1); }
.cart-sub { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: rgba(var(--wht), .75); }
.cart-sub b { font-size: 18px; color: rgb(var(--wht)); }
.cart-foot .co-note { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .cart-panel, .cart-scrim { transition: none; } }

/* Board documents: "To sign" / "Adopted by board vote" labels, and the COI disclosure box */
.docs-sub { margin: clamp(18px, 2.4vw, 26px) 0 10px; }
.sign-disclose { margin: 14px 0 4px; display: grid; gap: 8px; text-align: left; }
.sign-disclose label { font-size: 14px; font-weight: 600; }
.sign-disclose textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-size: 15px; resize: vertical; }
.sign-disclose textarea:disabled { opacity: .45; }
.sign-disclose .sign-none { display: flex; align-items: center; gap: 8px; font-weight: 500; }
#policy-docs { display: contents; }
/* Icon tile on a card (board documents cards); same look as .doc-link .di */
.gcard .gi { width: 42px; height: 42px; margin-bottom: 16px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(155deg, rgba(255,138,91,.22), rgba(255,84,112,.22)); border: 1px solid rgba(var(--wht), .1); }
.gcard .gi svg { width: 21px; height: 21px; fill: none; stroke: #ffb59a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gcard .gi + .tag { display: block; }

/* ===== Motion audit (2026-11) ===== */

/* Bigger tap areas (Fitts's law): the visible control stays small; the tappable box is ~44px. */
.we-calc-info::after { content: ""; position: absolute; inset: -10px; }
.we-habitat button { position: relative; }
.we-habitat button::after { content: ""; position: absolute; inset: -5px 0; }

/* Reduced motion: finance meter bars appear at full width instead of growing for 1.1s. */
@media (prefers-reduced-motion: reduce) {
  .fin-meter.ar-reveal .meter-seg { transition: none; }
}

/* Accordions (<details>): the content opens and closes smoothly instead of snapping.
   Only where the browser can animate to height:auto; others keep today's snap. */
@supports (interpolate-size: allow-keywords) {
  details { interpolate-size: allow-keywords; }
  details::details-content {
    height: 0;
    overflow: clip;
    transition: height .22s var(--ease), content-visibility .22s allow-discrete;
  }
  details[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) {
    details::details-content { transition: none; }
  }
}

/* Page-to-page crossfade (cross-document view transitions; browsers without it just load). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation-duration: 160ms; }
::view-transition-new(root) { animation-duration: 200ms; }

/* Sliding switch highlight (guides/tabpill.js): the selected option's fill lives on a pill
   behind the buttons and slides between them. */
[data-tabpill] { position: relative; isolation: isolate; }
[data-tabpill] > :not(.tabpill) { position: relative; z-index: 1; }
[data-tabpill] > button:is(.active, [aria-selected="true"], [aria-pressed="true"]) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
[data-tabpill-read] > :not(.tabpill) { transition: none !important; }
.tabpill {
  position: absolute; left: 0; top: 0; z-index: 0; box-sizing: border-box; pointer-events: none; opacity: 0;
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease), height var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) { .tabpill { transition: none; } }

/* "+" notes (Safari Kit, checklists) open and close smoothly instead of popping. */
.pk-note { transition: opacity .2s var(--ease), translate .2s var(--ease), display .2s allow-discrete; }
.pk-note[hidden] { opacity: 0; translate: 0 -4px; }
@starting-style { .pk-note { opacity: 0; translate: 0 -4px; } }
@supports (interpolate-size: allow-keywords) {
  .pk-note { interpolate-size: allow-keywords; overflow: clip; transition: opacity .2s var(--ease), translate .2s var(--ease), height .2s var(--ease), display .2s allow-discrete; }
  .pk-note[hidden] { height: 0; }
  @starting-style { .pk-note { height: 0; } }
}
/* Operator-list notes are pop-overs: fade them in only (closing drops the pop-over position). */
.ov-op-col .pk-note, .ov-op-col .pk-note[hidden] { height: auto; overflow: visible; translate: none; transition: opacity .16s var(--ease); }
@starting-style { .ov-op-col .pk-note { height: auto; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pk-note { transition: none; } }

/* Board money tables: rows a group opens fade + slide in; rows it closes fade out first. */
tr.row-in > td { animation: rowIn .22s var(--ease) both; }
tr.row-out > td { animation: rowOut .16s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rowOut { to { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { tr.row-in > td, tr.row-out > td { animation: none; } }

/* Game drives, Photos, Tipping, Kids and Back home on the Local guide layout (2026-11-14):
   explainer card left, content right. Tips are icon cards; safety tips stay red. */
.ov-side > * { min-width: 0; }
.ov-side .ov-why-a { color: inherit; text-decoration: none; border-radius: 10px; transition: background-color .2s; }
.ov-side .ov-why-a:hover { background: rgba(var(--wht), .05); }
.ov-side .ov-why-a b::after { content: " \2192"; color: var(--warm1); }
/* Kids: one page large, thumbnails across the bottom (2026-11-14). */
.ov-kids-wrap > .kp-view { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.kb-sheet .kp-view > .kit-kp.kp-sheets { flex: 1 1 0; min-height: 0; justify-content: flex-start; align-items: flex-start; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.kb-sheet .kp-view > .kit-kp.kp-sheets::-webkit-scrollbar { display: none; }
.kp-thumbs { flex: none; display: flex; justify-content: safe center; gap: 10px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.kp-thumb { flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; height: 118px; aspect-ratio: 8.5 / 11; opacity: .7; transition: opacity .2s, border-color .2s; }
.kp-thumb:hover { opacity: 1; }
.kp-thumb[aria-selected="true"] { opacity: 1; border-color: var(--warm1); }
.kp-thumb:focus-visible { outline: 2px solid var(--warm1); outline-offset: 2px; }
.kp-thumb > .kp-page { width: 720px; height: 932px; zoom: .12; pointer-events: none; margin: 0; box-shadow: none; }
@media (min-width: 900px) and (max-height: 760px) { .kp-thumb { height: 92px; } .kp-thumb > .kp-page { zoom: .094; } }
@media (min-width: 900px) and (min-height: 620px) {
  .kb-sheet .ks-body.is-fill > .ov-kids-wrap { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .kb-sheet #kids .ov-kids-wrap .kp-sheets > .kp-page { height: auto; aspect-ratio: 8.5 / 11; }
}
@media print { body.print-kids .ov-kids-wrap { display: block; } body.print-kids .ov-kids-wrap > .kit-sub { display: none; } }

/* Short screens: the Kids explainer drops its point descriptions so it fits the sheet. */
@media (min-width: 900px) and (max-height: 760px) { .ov-kids-wrap .ov-why-i span { display: none; } .ov-kids-wrap .ov-why-lede { margin-bottom: 12px; } }

/* Light theme: the pressed "Read" button keeps white text on a brown fill (it was dark text on
   the inverted gradient). Flipped back to true colours like .ks-print; a lighter brown than Print. */
html[data-theme="light"] .ks-done[aria-pressed="true"] { --wht: 255,255,255; --warm1: #5d452b; --warm2: #806650; filter: invert(1) hue-rotate(180deg); }
/* Same for the ticked circle on each kit tile: white tick on the brown fill in light theme. */
html[data-theme="light"] .kb-tile.is-done .kb-tick { --warm1: #5d452b; --warm2: #806650; filter: invert(1) hue-rotate(180deg); }

/* ---- Kit right-side frames, tidied (2026-11-14). Three kinds only: list panels (Operators,
   Packing, tips), fact cards (Habitats, Species, Local guide, Your part) and media (photos,
   pages, the globe). ---- */

/* List panels for tips: a titled panel of short rows (title + one line), sized to what they
   hold. Neutral for advice, the Avoid red for "never share where you saw it". */
.ov-op-col.ov-plain { background: rgba(var(--wht), .02); border: 1px solid rgba(var(--wht), .1); }
.ov-plain .ov-op-h { color: var(--warm1); }
.tp-r { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tp-cols { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-height: 0; }
.tp-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.ov-op-col.tp-panel { flex: var(--n, 1) 1 auto; padding: 16px clamp(16px, 1.8vw, 24px) 8px; }
.tp-panel > .ov-op-h { margin-top: 0; padding-bottom: 6px; }
.tp-row { flex: 1 1 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; align-content: center; padding: 10px 0; border-top: 1px solid rgba(var(--wht), .07); }
.ov-op-h + .tp-row { border-top: 0; }
.tp-row b { display: block; font-size: clamp(15px, 1.2vw, 17.5px); line-height: 1.3; }
.tp-row div > span { display: block; margin-top: 2px; font-size: clamp(13.5px, 1.05vw, 15.5px); line-height: 1.5; color: rgba(var(--wht), .75); }
.tp-mk { justify-self: center; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--warm1); }
.ov-avoid .tp-mk { position: relative; width: 14px; height: 14px; margin-top: .25em; border-radius: 0; background: none; }
.ov-avoid .tp-mk::before, .ov-avoid .tp-mk::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: #ff7a8f; transform: rotate(45deg); }
.ov-avoid .tp-mk::after { transform: rotate(-45deg); }
.ov-avoid .tp-row b { color: #ffb3bf; }
@media (min-width: 900px) { .tp-cols.tp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Back home: the to-do panel on top, the certificate and Wild Eyes side by side under it. */
.kh-r > .tp-cols { flex: 0 0 auto; }
.kh-r > .kh-grid { flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kh-r > .kh-grid .kit-sub { display: flex; flex-direction: column; justify-content: center; margin-top: 0; padding: clamp(18px, 2vw, 28px); }
.kh-r .kh-cert .kh-art { right: -6%; bottom: -14%; width: 70%; }
@media (max-width: 760px) { .kh-r > .kh-grid { grid-template-columns: minmax(0, 1fr); } }

/* The place: the same explainer card on the left; the globe and the area's background on the right. */
.ov-place-wrap > .kit-sub { margin-top: 0; }
.ks-panel-place .ov-place-wrap .ov-why-head .kit-sub-title { font-size: clamp(17px, 1.4vw, 21px); }
.ov-place-wrap .ov-places { margin: 0 0 18px; }
.ov-place-r { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-width: 0; min-height: 0; }
.ov-place-globe { display: grid; place-items: center; min-height: 220px; padding: 14px; border-radius: 14px; border: 1px solid rgba(var(--wht), .1); background: rgba(var(--wht), .02); overflow: hidden; }
.ks-panel-place .ov-place-globe .ov-globe { width: auto; height: 100%; max-width: 100%; aspect-ratio: 1; justify-self: center; align-self: center; }
.ov-place-ctx { padding: 2px clamp(14px, 1.6vw, 22px); border-radius: 14px; border: 1px solid rgba(var(--wht), .1); background: rgba(var(--wht), .02); }
.ov-place-ctx .ov-ctx { margin-top: 0; border-bottom: 0; }
.ov-place-ctx .ov-ctx-i:first-child { border-top: 0; }
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-place { display: flex; flex-direction: column; }
  .ks-panel-place > .ov-place-wrap { flex: 1 1 0; min-height: 0; }
}

/* Meet them: five photo cards with no empty slot (three on top, two wider ones under). */
@media (min-width: 900px) and (min-height: 620px) {
  .ov-b5-wrap .kit-b5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ov-b5-wrap .kit-b5 > * { grid-column: span 2; }
  .ov-b5-wrap .kit-b5 > :nth-child(n+4):nth-last-child(-n+2) { grid-column: span 3; }
}

/* Fact cards with only a few on the sheet (Your part): larger type instead of empty space. */
.ks-panel-part .ov-habs-r .ov-hab-c h4 { font-size: clamp(16px, 1.4vw, 21px); }
.ks-panel-part .ov-habs-r .ov-hab-c p { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.55; }

/* One red: Packing's "Leave at home" uses the same red as Avoid. */
main[data-kit] .kb-sheet .kit-pk .pk-leave { border-color: rgba(255,84,112,.2); background: rgba(255,84,112,.06); }
main[data-kit] .kb-sheet .kit-pk .pk-leave h3 { border-bottom-color: rgba(255,84,112,.2); }
@media (min-width: 900px) and (min-height: 620px) { .ov-place-wrap .ov-eco-why .ov-why { flex: 0 0 auto; grid-auto-rows: auto; } }

/* Local guide: ten fact cards on the right, so they sit tighter than Habitats' five (2026-11-14) */
@media (min-width: 900px) {
  .ov-know-wrap .ov-habs-r .ov-habs { gap: 10px; }
  .ov-know-wrap .ov-habs-r .ov-hab-c { padding: 10px 16px; column-gap: 14px; }
  .ov-know-wrap .ov-habs-r .ov-hab-c .ov-hab-ico { width: 44px; }
  .ov-know-wrap .ov-habs-r .ov-hab-c :is(.kb-places, .kb-words) { margin-top: 6px; }
}

/* The place: the background accordions sit in the left card, the globe has the right to itself (2026-11-14) */
.ov-place-r { grid-template-rows: minmax(0, 1fr); }
.ov-place-wrap .kit-sub .ov-place-ctx { margin-top: 16px; padding: 0; border: 0; border-radius: 0; background: none; }
.ov-place-wrap .kit-sub .ov-place-ctx .ov-ctx { border-bottom: 1px solid rgba(var(--wht), .1); }
.ov-place-wrap .kit-sub .ov-place-ctx .ov-ctx-i:first-child { border-top: 1px solid rgba(var(--wht), .1); }

/* A sheet that shrinks to fit (Packing's long list) keeps its left card's text at full size:
   --z is the sheet's zoom, set by kit.js, and the card undoes it. (2026-11-14) */
@media (min-width: 900px) { .kb-sheet .ks-body > .ov-habs-wrap > .kit-sub { zoom: calc(1 / var(--z, 1)); } }

/* Community conservation guide: every tab fits a 900px-tall screen at full size, so the whole
   guide is no longer shrunk and its text matches the other sheets. (2026-11-14)
   Red List rows take their own height (one long row no longer sets all seven), and the
   Habitats cards and Operators lists sit a little tighter. */
@media (min-width: 900px) and (min-height: 620px) {
  .ov-habs-r .ov-habs.ov-rl { grid-auto-rows: minmax(min-content, auto); align-content: stretch; }
  .ks-panel .ov-habs-r .ov-hab-c:not(.ov-rl-c) { padding-top: 14px; padding-bottom: 14px; }
  .ks-panel .ov-op-r .ov-op-col { padding-top: 10px; padding-bottom: 10px; }
  .ov-cons-wrap .ov-eco-why .ov-why { grid-auto-rows: minmax(min-content, auto); align-content: stretch; }
  .ov-cons-wrap .ov-why-i { padding: 6px 12px; grid-template-columns: 44px minmax(0, 1fr); }
  .ov-cons-wrap .ov-why-ico.bmk { width: 44px; height: 33px; }
}

/* Packing: three columns of groups, so even the longest list fits one screen at full size. */
@media (min-width: 900px) { main[data-kit] .kb-sheet .ov-pack-wrap > .pk-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Tip panels (Game drives and the like): rows a little tighter so twelve fit at full size. */
@media (min-width: 900px) { .tp-row { padding: 7px 0; } .ov-op-col.tp-panel { padding-top: 12px; padding-bottom: 6px; } .tp-row div > span { line-height: 1.45; } }
main[data-kit] .kb-sheet .ov-pack-wrap .kit-pk .kit-pki .pk-row b { white-space: normal; overflow: visible; font-size: 14.5px; line-height: 1.3; }

/* Light theme: ticked boxes and the selected lookalike tab get a white tick / white text on
   true brown, like the pressed "Read" button. (2026-11-14) */
html[data-theme="light"] .kit-pki input:checked + .pk-box,
html[data-theme="light"] .pk-item input:checked + .pk-box { --warm1: #5d452b; filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .kla-tab[aria-selected="true"] { --wht: 255,255,255; --warm1: #5d452b; --warm2: #806650; filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .kla-tabs > .tabpill { filter: invert(1) hue-rotate(180deg); }

/* Lookalikes: the choices sit on one row; the comparison takes the full width with larger
   photos, and the guide's tip and the test sit side by side under it. (2026-11-14) */
@media (min-width: 900px) and (min-height: 620px) {
  .ks-panel-practise .kla-tabs { position: relative; top: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ks-panel-practise .kla-tabs::-webkit-scrollbar { display: none; }
  .ks-panel-practise .kla-tab { flex: none; white-space: nowrap; padding: 6px 11px; font-size: 13.5px; }
  .ks-panel-practise .kla-panel:not([hidden]) { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; align-items: center; }
  .ks-panel-practise .kla-panel > .cmp { grid-row: auto; grid-column: 1 / -1; }
  .ks-panel-practise .kla-panel > .cmp-tip { grid-column: 1; }
  .ks-panel-practise .kla-panel > .cmp-test { grid-column: 2; margin-top: 0; }
  .ks-panel-practise .kla-panel > .cmp-test[open] { grid-column: 1 / -1; }
  .ks-panel-practise .cmp-pic img { max-height: 26vh; aspect-ratio: 16 / 9; }
  .ks-panel-practise .cmp-test .quiz img { max-height: 30vh; }
}

/* Safari Bingo online: the fixed card looks like the printed one. Same photo treatment
   (mirrored where the print is, a touch more contrast) and a black logo square in the middle. */
.bg-sq img { filter: contrast(1.12) saturate(1.1); }
.bg-sq img.flip { transform: scaleX(-1); }
.bg-free { background: #111; }
.bg-free img { width: 74%; filter: none; }

/* Share buttons on partner pages (app.js [data-share]) */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.share-bar:empty { display: none; }
.share-lbl { font-size: 13px; font-weight: 700; color: rgba(var(--wht), .75); margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(var(--wht), .22); background: rgba(13,14,16,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: rgb(var(--wht)); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color var(--dur, .15s) ease, border-color var(--dur, .15s) ease; }
.share-btn:hover, .share-btn:focus-visible { background: rgba(var(--wht), .12); border-color: rgba(var(--wht), .4); }
.share-btn svg { width: 16px; height: 16px; flex: none; }
.share-ic { width: 36px; padding: 0; }
.share-main { border: 0; background: linear-gradient(155deg, var(--warm1), var(--warm2)); padding: 0 20px; font-size: 15px; } /* the one Share button phones get */
.share-bar-card { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(var(--wht), .08); }
.share-bar-card .share-btn { background: rgba(var(--wht), .05); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (pointer: coarse) { .share-btn { height: 44px; } .share-ic { width: 44px; } }

/* Wildlife guide (2026-11-19): the area's Safari Bingo from Wild Eyes, embedded (Learn, Quiz,
   Bingo and Checklist tabs), filling the right side of the sheet. It has its own paper colours,
   so the light theme (which inverts the page) inverts it back, like photos. */
.ag-embed { position: relative; height: 100%; min-height: 620px; border-radius: 12px; overflow: hidden; border: 1.5px solid #cfc6b8; background: #fbf8f2; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ag-embed iframe { display: block; width: 100%; height: 100%; min-height: 620px; border: 0; }
/* On a big screen the game fills the sheet's height; on a phone it takes most of the screen. */
@media (min-width: 900px) and (min-height: 620px) {
  .kb-sheet .ks-body:has(> .ov-ag-wrap) { display: flex; flex-direction: column; }
  .kb-sheet .ks-body > .ov-ag-wrap { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .kb-sheet .ov-ag-wrap .ov-split-r { display: flex; flex-direction: column; min-height: 0; }
  .kb-sheet .ov-ag-wrap .ag-embed, .kb-sheet .ov-ag-wrap .ag-embed iframe { flex: 1 1 auto; height: 100%; min-height: 520px; }
}
@media (max-width: 899px) { .ag-embed, .ag-embed iframe { min-height: 86svh; } }
html[data-theme="light"] .ag-embed { filter: invert(1) hue-rotate(180deg); }

/* ---- Site light mode: white and black with coral (Todd, 2026-11-23). Overrides the kit's
   sand/dusk light palette above. Light mode inverts the page, so colours inside it are written
   as pre-filter values (screen colour in the comment); flipped-back pieces take real colours. ---- */
html[data-theme="light"] { --ink: #000; /* white */ --coal-1: #0a0a0b; /* #f5f5f4 */ --coal-2: #000; /* white, same as the page so sections meet without a seam */
  --warm1: #bf4a1b; /* coral #ff8a5b */ --warm2: #ff5e7a; /* coral #ff5470 */
  --rule: rgba(255,255,255,.12); --wht: 255,255,255; }
/* Flipped back, so real coral. */
html[data-theme="light"] :is(.kb-donate, .kit-chip, .kb-flag:not(:empty), .btn-primary, .ks-print, .ks-done[aria-pressed="true"], .kb-tile.is-done .kb-tick, .kit-pki input:checked + .pk-box, .pk-item input:checked + .pk-box, .kla-tab[aria-selected="true"]) { --warm1: #ff8a5b; --warm2: #ff5470; }
html[data-theme="light"] .btn-primary { box-shadow: 0 8px 24px rgba(255,84,112,.28); }
/* White logos and marks turn black: let them invert with the page. */
html[data-theme="light"] :is(img[src*="logo-white"], img[src*="-white.png"], img[src*="-white.svg"], img.brand-mark, .bento .kb-logo img) { filter: none; }
/* Kit: neutral tiles and sheets, coral stripes like dark mode, no tan. */
html[data-theme="light"] .bento :is(.kb-tile, .kb-sta, .kb-theme, .kb-count, .kb-month, .kb-progress) { background-color: #000; }
html[data-theme="light"] .bento .kb-tile { box-shadow: none; background-image: linear-gradient(90deg, var(--warm1), var(--warm2)); background-size: 100% 4px; background-position: top; background-repeat: no-repeat; }
html[data-theme="light"] .kb-quizbtn { background: #0f0f10; /* #f0f0ef */ }
html[data-theme="light"] .bento :is(.kb-tile, .kb-sta, .kb-logo, .kb-theme, .kb-count, .kb-month, .kb-progress) { border-color: rgba(255,255,255,.10); }
html[data-theme="light"] .bento .kb-tile::before { border-bottom-color: rgba(255,255,255,.12); }
html[data-theme="light"] .bento .kb-tile:not(.is-done) .kb-tick { border-color: rgba(255,255,255,.24); }
html[data-theme="light"] .bento :is(.kb-tease, .kb-sta-p) { color: rgba(255,255,255,.70); }
html[data-theme="light"] .bento .kb-ring > span { color: rgba(255,255,255,.72); }
html[data-theme="light"] .bento .kb-ring { background: conic-gradient(var(--warm1), var(--warm2) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
html[data-theme="light"] .bento { --rule: rgba(255,255,255,.13); }
html[data-theme="light"] .bento .kb-art { background: #fff; opacity: .06; }
html[data-theme="light"] .kb-wrap::before { background: #fff; opacity: .1; }
html[data-theme="light"] .kb-sheet { --card-bg: rgba(0,0,0,.95); --tab-stripe: var(--warm1); background: rgba(0,0,0,.92); }
html[data-theme="light"] .kb-sheet::before { background: #fff; opacity: .1; }
html[data-theme="light"] .kb-sheet .ks-head { box-shadow: none; background: linear-gradient(90deg, var(--warm1), var(--warm2)) top / 100% 4px no-repeat, var(--coal-1); }
/* Video and photo bands stay as in dark mode so the footage shows: flip those sections back. */
html[data-theme="light"] :is(.hero, .page-hero, .vhero, .video-band, .donate-band, .probfull) { filter: invert(1) hue-rotate(180deg); --ink: #0d0e10; --coal-1: #1c1d20; --coal-2: #0d0e10; --warm1: #ff8a5b; --warm2: #ff5470; }
html[data-theme="light"] :is(.hero, .page-hero, .vhero, .video-band, .donate-band, .probfull) :is(img, video, .btn-primary) { filter: none; }
html[data-theme="light"] :is(.hero, .page-hero, .vhero, .video-band, .donate-band, .probfull) img[src*="white"] { filter: none; }
html[data-theme="light"] .hero img.hero-logo { filter: drop-shadow(0 6px 22px rgba(0,0,0,.6)); }
html[data-theme="light"] .page-hero img.partner-logo { filter: drop-shadow(0 2px 10px rgba(0,0,0,.45)); }
/* Topo bands: soft neutral grey silhouette on the white page; cards on them go white. */
html[data-theme="light"] .topo-band .tb-fill { background: #0b0b0c; /* #f4f4f3 */ }
html[data-theme="light"] .topo-band .tb-lines { background: rgba(255,255,255,.07); }
html[data-theme="light"] .topo-section { --coal-1: #000; /* cards on the grey band go white */ }
/* Photos set as backgrounds (shop thumbnails, partner hero photos) keep their real colours. */
html[data-theme="light"] :is(.thumb, [style*="background-image"]) { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] :is(.thumb, [style*="background-image"]) :is(img, video):not(.no-flip-guard) { filter: none; } /* :not() lifts it over the kit's :is(img, video, .kb-flag:not(:empty)) rule */
/* Inside bands already flipped back to dark, a photo background is already right: don't flip it again. */
html[data-theme="light"] :is(.hero, .page-hero, .vhero, .video-band, .donate-band, .probfull) :is(.thumb, [style*="background-image"]) { filter: none; }
/* Video/photo band → topo section, both themes (app.js "Ridge transitions" tags the pair and sets
   --ridge to how far that band's mountain ridge sits below its top). The topo section slides up
   under the band so the ridge forms the band's bottom edge, a horizon instead of a fade. */
.ridge-under { margin-top: calc(-1 * var(--ridge, 140px)); }
/* The section slides up over the hero's bottom edge. Its own box is see-through there, and in
   light mode (the hero's colour flip puts it in its own layer) it sits on top of the hero, so it
   swallowed taps on hero buttons in that strip (the phone Share button). Let taps through the
   section's own box; everything inside it stays clickable. */
.ridge-under { pointer-events: none; }
.ridge-under > :not(.topo-band) { pointer-events: auto; }
.ridge-over > .container { padding-bottom: calc(48px + var(--ridge, 140px)); }
.ridge-over > .scrim { background: linear-gradient(100deg, rgba(13,14,16,.9) 0%, rgba(13,14,16,.62) 45%, rgba(13,14,16,.35) 100%); }
/* Dark mode: a dark grey ridge smudges into dark footage, so it takes the page colour and cuts a
   crisp silhouette (light mode keeps its light grey). */
html:not([data-theme="light"]) .ridge-under .tb-fill { background: var(--ink); }
