/* ==========================================================================
   FindRescue.uk — site layer v4

   Loaded after styles.css on every page. Two jobs:
     1. Retune the tokens styles.css already uses (palette, canvas, radii), so
        everything app.js draws — cards, triage panels, modals — picks up the
        new look with no change to app.js.
     2. Define the multi-page chrome and components: header + mega menu,
        footer, guide pages, the guide hub, the homepage showcase.

   Palette comes from the logo: the barn owl's forest green and the fox's
   rust, on a warm paper canvas. Light and calm by decision — no dark hero.
   Rust is an accent only; it never carries body text on its own.
   ========================================================================== */

:root {
  /* forest ramp — replaces the old emerald; styles.css reads these names */
  --em-300: #a7d3b9;
  --em-400: #6bb48d;
  --em-500: #2f8a62;
  --em-600: #237250;
  --em-700: #1b5c41;
  --em-800: #144832;
  --em-900: #0f3826;
  --em-950: #082017;

  --rust-700: #9a3b16;
  --rust-600: #b4471f;
  --rust-500: #d0582a;
  --rust-100: #fbe9df;

  --bg:        #faf8f4;
  --bg-sunk:   #f2efe8;
  --surface:   #ffffff;
  --surface-2: #fbfaf7;
  --surface-3: #f4f1ea;
  --ink:       #0f241b;
  --ink-2:     #33463d;
  --muted:     #5f6f67;
  --line:      #e8e3d8;
  --line-2:    #d9d3c6;

  --brand:       var(--em-700);
  --brand-hover: var(--em-800);
  --brand-tint:  #e9f2ec;
  --brand-ring:  rgba(27, 92, 65, .28);

  --open:     #17603f;
  --open-bg:  #e3f1e8;
  --open-dot: #2f9a6a;

  /* illustration tints — the renders sit on these with multiply blending */
  --tint-sage:  #e6efe7;
  --tint-sand:  #f5ecdd;
  --tint-peach: #f9e5d9;
  --tint-sky:   #e2edf1;
  --tint-lilac: #ebe7f3;
  --tint-stone: #ecebe6;

  --hl-bg: rgba(208, 88, 42, .16);

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(31, 27, 18, .04), 0 1px 3px rgba(31, 27, 18, .04);
  --sh-2: 0 1px 2px rgba(31, 27, 18, .04), 0 8px 24px -8px rgba(31, 27, 18, .12);
  --sh-3: 0 2px 6px rgba(31, 27, 18, .04), 0 24px 48px -16px rgba(31, 27, 18, .18);
  --sh-4: 0 4px 12px rgba(31, 27, 18, .06), 0 40px 80px -20px rgba(31, 27, 18, .28);
  --sh-glow: 0 0 0 1px rgba(27, 92, 65, .2), 0 10px 30px -10px rgba(27, 92, 65, .35);

  --maxw: 1200px;
}

[data-theme="dark"] {
  --em-300: #a7d3b9;
  --em-400: #7cc19c;
  --em-500: #57a77f;

  --bg:        #0b1310;
  --bg-sunk:   #070d0b;
  --surface:   #111b17;
  --surface-2: #15211c;
  --surface-3: #1b2a23;
  --ink:       #ecf3ee;
  --ink-2:     #c2d1c8;
  --muted:     #93a69b;
  --line:      #22322a;
  --line-2:    #2f4338;

  --brand:       #7cc19c;
  --brand-hover: #a7d3b9;
  --brand-tint:  #13291f;
  --brand-ring:  rgba(124, 193, 156, .34);
  --on-brand:    #06140d;

  --open:     #a7d3b9;
  --open-bg:  #12291e;
  --open-dot: #57a77f;

  --tint-sage:  #1a2a22;
  --tint-sand:  #2a2419;
  --tint-peach: #2d1f19;
  --tint-sky:   #172429;
  --tint-lilac: #211e2b;
  --tint-stone: #22231f;

  --hl-bg: rgba(208, 88, 42, .28);
  --rust-100: #2d1a12;
}

/* =============================================================== base ==== */

body { background: var(--bg); }
body.no-scroll { overflow: hidden; }
::selection { background: color-mix(in srgb, var(--rust-500) 24%, transparent); }

h1, h2, h3 { letter-spacing: -.03em; }

.sx-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; width: 100%; }
@media (max-width: 560px) { .sx-wrap { padding: 0 16px; } }

.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 17px; height: 17px; }
.ic-xs { width: 14px; height: 14px; }

.sx-overline {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 14px; font-size: .74rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
}
.sx-overline::before {
  content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--rust-500);
}

.hl {
  color: var(--brand);
  background: linear-gradient(transparent 64%, var(--hl-bg) 64%, var(--hl-bg) 92%, transparent 92%);
  padding: 0 .06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--open-dot); flex: none;
}
.pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--open-dot); opacity: 0;
  animation: sx-ping 2.4s var(--ease-out) infinite;
}
@keyframes sx-ping { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* tints for illustration backgrounds */
.tint-sage  { background: var(--tint-sage); }
.tint-sand  { background: var(--tint-sand); }
.tint-peach { background: var(--tint-peach); }
.tint-sky   { background: var(--tint-sky); }
.tint-lilac { background: var(--tint-lilac); }
.tint-stone { background: var(--tint-stone); }
.tint-bg-sage  { --tint: var(--tint-sage); }
.tint-bg-sand  { --tint: var(--tint-sand); }
.tint-bg-peach { --tint: var(--tint-peach); }
.tint-bg-sky   { --tint: var(--tint-sky); }
.tint-bg-lilac { --tint: var(--tint-lilac); }
.tint-bg-stone { --tint: var(--tint-stone); }

/* The renders are on pure white. Multiply drops the white into whatever tint
   sits behind; in dark mode a white render would glow, so it becomes a soft
   rounded tile instead. */
[class*="tint-"] > img, .g-hero-orb img, .bento-feat img, .feat-art img {
  mix-blend-mode: multiply;
}
[data-theme="dark"] [class*="tint-"] > img,
[data-theme="dark"] .g-hero-orb img,
[data-theme="dark"] .bento-feat img,
[data-theme="dark"] .feat-art img {
  mix-blend-mode: normal; border-radius: 22%; filter: saturate(.92) brightness(.92);
}
[data-theme="dark"] .tile-icon { background: #fff; }
[data-theme="dark"] .g-hero-orb img { border-radius: 50%; width: 84%; }

/* ============================================================ buttons ==== */

.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 650; font-size: .95rem; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none;
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 6px 16px -6px rgba(15, 56, 38, .45);
  transition: background .18s, transform .12s, box-shadow .2s, color .18s, border-color .18s;
}
.sx-btn:hover { background: var(--brand-hover); color: var(--on-brand); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(15, 56, 38, .5); }
.sx-btn:active { transform: translateY(0); }
.sx-btn-lg { padding: 15px 26px; font-size: 1rem; }
.sx-btn-sm { padding: 9px 16px; font-size: .86rem; }
.sx-btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
  box-shadow: var(--sh-1);
}
.sx-btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); box-shadow: var(--sh-2); }
.sx-btn-light { background: #fff; color: #0f241b; }
.sx-btn-light:hover { background: #f1efe8; color: #0f241b; }

.sx-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 650; font-size: .92rem; color: var(--brand); text-decoration: none;
}
.sx-link .ic { transition: transform .2s var(--ease); }
.sx-link:hover .ic, a:hover > .sx-link .ic { transform: translateX(3px); }

/* ============================================================= header ==== */

/* The old header is gone from the markup; this keeps any stale cached copy
   of the page from looking broken during a deploy. */
.site-header { display: none; }

.sx-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.sx-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(31, 27, 18, .35);
}
.sx-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 28px;
}
@media (max-width: 560px) { .sx-header-inner { padding: 0 16px; height: 64px; gap: 12px; } }

.sx-brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none;
  color: var(--ink);
}
.sx-brand:hover { color: var(--ink); }
.sx-brand-mark {
  width: 44px; height: 38px; border-radius: 11px; background: #fff;
  display: grid; place-items: center; padding: 3px 4px;
  border: 1px solid rgba(15, 36, 25, .1); box-shadow: 0 2px 8px -3px rgba(15, 36, 25, .2);
}
.sx-brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sx-brand-word {
  font-family: var(--display); font-weight: 800; font-size: 1.16rem; letter-spacing: -.04em;
}
.sx-brand-word span { color: var(--rust-600); }
[data-theme="dark"] .sx-brand-word span { color: #f08a5d; }

.sx-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.sx-nav > a, .sx-dd-btn {
  font: inherit; font-size: .92rem; font-weight: 560; color: var(--ink-2);
  text-decoration: none; padding: 9px 13px; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .16s, color .16s;
}
.sx-nav > a:hover, .sx-dd-btn:hover, .sx-dd.is-open .sx-dd-btn { background: var(--surface-3); color: var(--ink); }
.sx-nav > a[aria-current="page"], .sx-dd-btn[data-current="true"] { color: var(--ink); background: var(--surface-3); }
.sx-dd-btn .ic { transition: transform .2s var(--ease); }
.sx-dd.is-open .sx-dd-btn .ic { transform: rotate(180deg); }

.sx-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sx-icon-btn {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
}
.sx-icon-btn:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-2); }
.sx-icon-btn svg { width: 19px; height: 19px; }
.sx-cta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 11px 18px; border-radius: 999px; font-weight: 650; font-size: .9rem;
  background: var(--ink); color: var(--bg);
  transition: transform .12s, box-shadow .2s, background .2s;
}
.sx-cta:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(15, 36, 27, .6); }
.sx-cta .ic { color: var(--rust-500); }
.sx-burger { display: none; }

/* ---- mega menu ---- */
.sx-dd { position: relative; }
.sx-mega {
  position: absolute; top: calc(100% + 14px); left: -140px; width: min(860px, 92vw);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.sx-mega::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sx-dd.is-open .sx-mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
@media (hover: hover) and (min-width: 1061px) {
  .sx-dd:hover .sx-mega {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
}
.sx-mega-inner {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-4); overflow: hidden;
}
.mega-col { padding: 22px; }
.mega-side { background: var(--surface-3); display: flex; flex-direction: column; gap: 4px; }
.mega-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.mega-animals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.mega-animal {
  display: flex; align-items: center; gap: 12px; padding: 7px 9px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 580; font-size: .9rem;
  transition: background .15s;
}
.mega-animal:hover { background: var(--surface-3); color: var(--ink); }
.mega-thumb { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; flex: none; }
.mega-thumb img { width: 112%; height: 112%; object-fit: cover; }
.mega-ess {
  display: block; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.mega-ess:hover { background: var(--surface); color: var(--ink); }
.mega-ess strong { display: block; font-size: .92rem; letter-spacing: -.01em; }
.mega-ess span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-all { margin-top: auto; padding: 10px 12px; font-weight: 650; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }

/* ---- mobile drawer ---- */
@media (max-width: 1060px) {
  .sx-burger { display: grid; }
  .sx-cta span { display: none; }
  .sx-cta { padding: 11px 12px; }
  .sx-nav {
    position: fixed; inset: 64px 0 0; z-index: 89;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px 16px 40px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .sx-header-inner { height: 64px; }
  .nav-open .sx-nav {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .sx-nav > a, .sx-dd-btn { font-size: 1.15rem; padding: 14px 14px; border-radius: 14px; width: 100%; justify-content: space-between; }
  .sx-mega { position: static; width: auto; display: none; opacity: 1; visibility: visible; transform: none; }
  .sx-dd.is-open .sx-mega { display: block; }
  .sx-mega-inner { grid-template-columns: 1fr; box-shadow: none; }
  .mega-animals { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .mega-animals { grid-template-columns: 1fr; } }
@media (max-width: 400px) {
  .sx-brand-mark { display: none; }
  .sx-actions { gap: 6px; }
  .sx-icon-btn, .sx-cta { width: 38px; height: 38px; padding: 0; justify-content: center; }
}

/* reading progress */
.sx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.sx-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--em-500), var(--rust-500));
}

/* ============================================================ reveals ==== */

.js-reveal .reveal { opacity: 0; transform: translateY(14px); }
.js-reveal .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms);
}

/* ===================================================== homepage hero ==== */

.pg-home .hero {
  position: relative; overflow: hidden;
  padding: 54px 0 64px;
  background:
    radial-gradient(42% 60% at 8% 0%, color-mix(in srgb, var(--tint-sage) 95%, transparent), transparent 70%),
    radial-gradient(36% 50% at 96% 6%, color-mix(in srgb, var(--tint-peach) 90%, transparent), transparent 72%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.pg-home .hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
}
.pg-home .hero > .wrap { position: relative; }
.pg-home #find.wrap.narrow { max-width: var(--maxw); padding: 0 24px; }
@media (max-width: 560px) { .pg-home #find.wrap.narrow { padding: 0 16px; } .pg-home .hero { padding: 28px 0 40px; } }

.hero-intro { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: center; text-align: left; }
.hero-art { position: relative; height: 300px; }
.hero-art span {
  position: absolute; display: grid; place-items: center; border-radius: 50%; overflow: hidden;
  box-shadow: var(--sh-3); border: 6px solid var(--surface);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .ha-1 { width: 200px; height: 200px; left: 90px; top: 30px; z-index: 2; }
.hero-art .ha-2 { width: 130px; height: 130px; left: 0; top: 0; }
.hero-art .ha-3 { width: 150px; height: 150px; right: 0; top: 140px; }
.hero-art .ha-4 { width: 104px; height: 104px; right: 30px; top: 0; }
.hero-art .ha-1 img { animation: sx-float 7s ease-in-out infinite; }
.hero-art .ha-3 img { animation: sx-float 8s ease-in-out -3s infinite; }
.hero-badge {
  position: absolute; left: 20px; bottom: 6px; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-3); font-size: .82rem; color: var(--ink-2);
}
.hero-badge b { display: block; color: var(--ink); font-size: .92rem; }
.hero-badge i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-style: normal; }
@media (max-width: 1060px) { .hero-intro { grid-template-columns: 1fr; } .hero-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none !important; } }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: .82rem; color: var(--ink-2); font-weight: 520;
}
.hero-pill b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pg-home .hero h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 800;
  max-width: 15ch;
}
.pg-home .hero-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 54ch; margin-top: 18px; color: var(--ink-2); }

/* the two steps as floating cards */
.pg-home .finder { margin-top: 38px; gap: 22px; }
.pg-home #step-species {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--sh-3);
}
.pg-home .search-card {
  border: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-3);
  position: relative; overflow: hidden;
}
.pg-home .search-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--em-600), var(--em-400) 60%, var(--rust-500));
}
@media (max-width: 560px) { .pg-home #step-species, .pg-home .search-card { padding: 20px 16px; border-radius: var(--r-lg); } }
.step-label::before { background: var(--rust-500); box-shadow: 0 0 0 3px var(--rust-100); }
.step h2 { font-size: 1.45rem; }

.animal-tile {
  border-color: var(--line); border-radius: 18px; box-shadow: none;
  background: var(--surface-2);
}
.animal-tile:hover { background: var(--surface); border-color: var(--brand); box-shadow: var(--sh-2); }
.tile-icon { width: 62px; height: 62px; border-radius: 18px; border: 0; box-shadow: none; background: #fff; }
.animal-tile[aria-pressed="true"] .tile-icon { box-shadow: 0 0 0 2px var(--brand); }

.btn { border-radius: 999px; }
.btn-ghost { border-radius: 999px; }
.pg-home .hero input[type="search"], .pg-home .hero select { border-radius: 14px; padding: 15px 16px; }
.pg-home .hero .input-affix input { padding-left: 44px; }
.check { border-radius: 14px; }

.emergency-bar { border-radius: 16px; border-left-width: 1px; padding: 14px 18px; }
.support-strip { border-radius: 16px; }

/* ================================================== homepage sections ==== */

.results-section.wrap { max-width: var(--maxw); padding: 0 24px; }
@media (max-width: 560px) { .results-section.wrap { padding: 0 16px; } }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.sec-head-lg h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.05; max-width: 18ch; letter-spacing: -.04em; }
.sec-lede { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; margin: 14px 0 0; }
.sec-meta { color: var(--muted); margin: 0; font-size: .9rem; }

.home-guides { padding: 96px 0 40px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bento-feat {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 300px; padding: 34px; border-radius: var(--r-xl); text-decoration: none; color: var(--ink);
  background: var(--tint); border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.bento-feat:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--sh-3); }
.bento-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.04em; line-height: 1.05; max-width: 12ch; }
.bento-text { color: var(--ink-2); margin: 12px 0 22px; max-width: 30ch; font-size: .98rem; }
.bento-feat .sx-link { margin-top: auto; }
.bento-feat img {
  position: absolute; right: -18px; bottom: -22px; width: 230px; height: 230px;
  transition: transform .5s var(--ease-out);
}
.bento-feat:hover img { transform: scale(1.05) rotate(-2deg); }
.bento-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; margin-top: 18px; }
.bento-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 16px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.bento-tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.bento-art { aspect-ratio: 4 / 3; border-radius: 15px; display: grid; place-items: center; overflow: hidden; margin-bottom: 10px; }
.bento-art img { width: 78%; height: auto; transition: transform .4s var(--ease-out); }
.bento-tile:hover .bento-art img { transform: scale(1.07); }
.bento-all { justify-content: center; align-items: flex-start; padding: 22px; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.bento-all:hover { color: var(--bg); border-color: var(--ink); }
.bento-all .bento-name { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.035em; padding: 0; line-height: 1.1; }
.bento-all .bento-sub { color: color-mix(in srgb, var(--bg) 70%, transparent); padding: 0; margin-top: 8px; }
.bento-all .ic { margin-top: 18px; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--rust-500); color: #fff; transition: transform .25s var(--ease-out); }
.bento-all:hover .ic { transform: translateX(4px); }
.bento-name { font-weight: 680; letter-spacing: -.015em; padding: 0 4px; line-height: 1.25; }
.bento-sub { font-size: .8rem; color: var(--muted); padding: 0 4px; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .bento-feat { min-height: 250px; padding: 26px; }
  .bento-feat img { width: 170px; height: 170px; }
  .bento-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home-guides { padding: 64px 0 24px; }
}

.home-how { padding: 40px 0 10px; }
.how-card {
  display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start;
  padding: 52px; border-radius: var(--r-xl);
  background: linear-gradient(140deg, #123b2b, #0b2a1e 60%, #0a2419);
  color: #eaf3ed; position: relative; overflow: hidden;
}
.how-card::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 88, 42, .32), transparent 65%);
}
.how-card .sx-overline { color: #a7d3b9; }
.how-card h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.1; letter-spacing: -.035em; max-width: 24ch; }
.how-intro { position: relative; z-index: 1; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; z-index: 1; }
.how-steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 26px; }
.how-steps h3 { font-size: 1.2rem !important; }
.how-steps p { font-size: .96rem !important; line-height: 1.6; }
.how-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: #0b2a1e; font-family: var(--display); font-weight: 800; margin-bottom: 16px;
}
.how-steps h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.how-steps p { color: #b9cfc2; font-size: .9rem; margin: 0; }
@media (max-width: 900px) {
  .how-card { grid-template-columns: 1fr; padding: 32px 22px; gap: 26px; border-radius: var(--r-lg); }
  .how-steps { grid-template-columns: 1fr; }
}

/* existing homepage panels, re-skinned */
#help.wrap.narrow, #for-rescues.wrap.narrow, .no-emergency.wrap.narrow { max-width: var(--maxw); padding: 0 24px; }
@media (max-width: 560px) {
  #help.wrap.narrow, #for-rescues.wrap.narrow, .no-emergency.wrap.narrow { padding: 0 16px; }
}
.pg-home .section-head { margin: 88px 0 0; }
.pg-home .eyebrow {
  background: none; border: 0; padding: 0; color: var(--brand);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
}
.pg-home .eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--rust-500); }
.pg-home .panel {
  border-radius: var(--r-xl); padding: 40px; margin-top: 14px; box-shadow: var(--sh-2);
  border-color: var(--line);
}
.pg-home .panel h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.15rem); letter-spacing: -.035em; line-height: 1.1; }
@media (max-width: 640px) { .pg-home .panel { padding: 24px 18px; border-radius: var(--r-lg); } .pg-home .section-head { margin-top: 60px; } }
details.faq { border-radius: 14px; }
.triage-steps li::before { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.help-more { margin-top: 22px; }

/* ============================================================== footer ==== */

.sx-footer { margin-top: 96px; background: var(--surface); border-top: 1px solid var(--line); padding: 0 0 36px; color: var(--muted); font-size: .9rem; }
.sx-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.sx-footer-brand p { margin: 16px 0 20px; max-width: 36ch; line-height: 1.6; }
.sx-footer h4 { font-family: var(--font); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.sx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sx-footer a:not(.coffee-link):not(.sx-btn):not(.sx-brand) { color: var(--muted); text-decoration: none; transition: color .15s; }
.sx-footer a:not(.coffee-link):not(.sx-btn):not(.sx-brand):hover { color: var(--ink); }
.sx-disclaimer { font-size: .8rem; line-height: 1.65; padding: 20px 22px; border-radius: 16px; background: var(--surface-3); margin: 0; }
.sx-disclaimer strong { color: var(--ink-2); }
.sx-footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; margin-top: 26px; font-size: .8rem; }
@media (max-width: 860px) { .sx-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .sx-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .sx-footer-grid { grid-template-columns: 1fr; } }

/* ========================================================= guide page ==== */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 560; }

.g-hero {
  position: relative; overflow: hidden; padding: 44px 0 0;
  background:
    radial-gradient(50% 70% at 85% 30%, var(--tint), transparent 70%),
    radial-gradient(30% 40% at 0% 0%, color-mix(in srgb, var(--tint) 60%, transparent), transparent 70%),
    var(--bg);
}
.g-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.g-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; max-width: 16ch; }
.g-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin: 20px 0 30px; line-height: 1.6; }
.g-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.g-hero-count { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: .88rem; color: var(--muted); }
.g-hero-count span:not(.pulse) { color: var(--ink); font-weight: 650; }

.g-hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.g-hero-orb {
  position: absolute; inset: 4%; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 -30px 60px -30px rgba(31, 27, 18, .12);
}
.g-hero-orb img { width: 88%; height: auto; animation: sx-float 7s ease-in-out infinite; }
@keyframes sx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .g-hero-orb img, .pulse::after { animation: none; } }
.g-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2);
}
.g-facts div { padding: 20px 24px; border-left: 1px solid var(--line); }
.g-facts div:first-child { border-left: 0; }
.g-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.g-facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink); }

@media (max-width: 900px) {
  .g-hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .g-hero-art { max-width: 340px; margin-top: 18px; }
  .g-facts { grid-template-columns: 1fr 1fr; }
  .g-facts div:nth-child(3) { border-left: 0; }
  .g-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .g-hero { padding-top: 22px; }
  .g-hero-art { max-width: 260px; }
  .g-facts div { padding: 16px; }
}

.g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.g-toc { position: sticky; top: 100px; align-self: start; }
.g-toc ol { list-style: none; margin: 0 0 24px; padding: 0; border-left: 1px solid var(--line); }
.g-toc ol a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .15s, border-color .15s;
}
.g-toc ol a:hover { color: var(--ink); }
.g-toc ol a.is-active { color: var(--ink); border-left-color: var(--rust-500); font-weight: 600; }
@media (max-width: 1000px) { .g-layout { grid-template-columns: 1fr; gap: 0; padding-top: 32px; } .g-toc { display: none; } }

.g-body { max-width: 780px; }
.g-sec { padding: 64px 0 0; scroll-margin-top: 90px; }
.g-sec h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.25rem); letter-spacing: -.035em; line-height: 1.1; }
.g-sec-lede { color: var(--ink-2); font-size: 1.05rem; margin: 12px 0 26px; max-width: 62ch; }

.g-key {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--bg);
}
.g-key-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--rust-500); color: #fff; flex: none; }
.g-key-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin: 0 0 6px; }
.g-key-text { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); letter-spacing: -.025em; line-height: 1.3; margin: 0; }

.helpline {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  margin-top: 16px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.helpline-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.helpline-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.helpline-name { font-weight: 680; margin: 2px 0; letter-spacing: -.01em; }
.helpline-why { font-size: .86rem; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .helpline { grid-template-columns: auto 1fr; } .helpline .sx-btn { grid-column: 1 / -1; } }

.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verdict { padding: 26px; border-radius: var(--r-lg); border: 1px solid; }
.verdict-leave { background: color-mix(in srgb, var(--open-bg) 70%, var(--surface)); border-color: color-mix(in srgb, var(--open-dot) 28%, transparent); }
.verdict-help { background: color-mix(in srgb, var(--rust-100) 75%, var(--surface)); border-color: color-mix(in srgb, var(--rust-500) 28%, transparent); }
.verdict-head { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; margin: 0 0 16px; }
.verdict-leave .verdict-head { color: var(--open); }
.verdict-help .verdict-head { color: var(--rust-700); }
[data-theme="dark"] .verdict-help .verdict-head { color: #f3a27c; }
.verdict ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.verdict li { display: flex; gap: 10px; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.ic-li { width: 17px; height: 17px; margin-top: 3px; flex: none; }
.verdict-leave .ic-li { color: var(--open-dot); }
.verdict-help .ic-li { color: var(--rust-500); }
@media (max-width: 720px) { .verdicts { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-item {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start;
  padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.step-item:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.step-n {
  font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.3px var(--brand); line-height: 1;
}
.step-item h3 { font-size: 1.08rem; margin: 2px 0 5px; }
.step-item p { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
@media (max-width: 560px) { .step-item { grid-template-columns: 1fr; gap: 6px; padding: 18px; } }

.never { padding: 34px; border-radius: var(--r-xl); background: #1a1310; color: #f5ebe5; position: relative; overflow: hidden; }
.never::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(208, 88, 42, .35), transparent 65%); }
.never .sx-overline { color: #f3a27c; }
.never h2 { color: #fff; }
.never ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; position: relative; }
.never li { display: flex; gap: 14px; line-height: 1.55; color: #e4d6ce; }
.never-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(208, 88, 42, .22); color: #f3a27c; flex: none; }
[data-theme="dark"] .never { background: #1f1510; border: 1px solid #3a241a; }
@media (max-width: 560px) { .never { padding: 24px 20px; } }

.feed { display: flex; gap: 18px; align-items: flex-start; margin-top: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.feed p { margin: 0; font-size: 1.02rem; color: var(--ink-2); line-height: 1.65; }
.feed-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-sand); color: var(--rust-600); flex: none; }

.cal-wrap { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.cal-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cal-bar { width: 100%; height: 110px; border-radius: 10px; background: var(--surface-3); display: flex; align-items: flex-end; overflow: hidden; }
.cal-bar span { display: block; width: 100%; border-radius: 10px; }
.lv-0 .cal-bar span, .cal-legend .lv-0 { background: color-mix(in srgb, var(--em-300) 45%, var(--surface-3)); }
.lv-1 .cal-bar span, .cal-legend .lv-1 { background: var(--em-300); }
.lv-2 .cal-bar span, .cal-legend .lv-2 { background: var(--em-500); }
.lv-3 .cal-bar span, .cal-legend .lv-3 { background: var(--rust-500); }
.cal-m { font-size: .76rem; font-weight: 650; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 18px 0 0; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.cal-notes { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cal-notes strong { display: block; font-size: .86rem; letter-spacing: -.01em; color: var(--ink); margin-bottom: 3px; }
.cal-notes span { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 640px) {
  .cal-wrap { padding: 18px 14px; }
  .cal { gap: 3px; }
  .cal-bar { height: 80px; border-radius: 6px; }
  .cal-bar span { border-radius: 6px; }
  .cal-notes { grid-template-columns: 1fr; }
}

.know-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.know-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .know-grid, .know-grid:has(> :nth-child(4)) { grid-template-columns: 1fr; } }
.know { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.know h3 { font-size: 1.1rem; margin-bottom: 8px; }
.know p { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.6; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; }
.ticks li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; }
.ticks .ic-li { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); margin-top: 0; }
.law { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: var(--surface-3); }
.law p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.law-ic { color: var(--muted); padding-top: 1px; }

.faqs { margin-top: 22px; }
.faqs details.faq { background: var(--surface); }
.faqs details.faq > summary { padding: 18px 20px; font-size: 1rem; }
.faqs details.faq > div { padding: 0 20px 20px; font-size: .96rem; line-height: 1.65; }

.g-cta {
  margin-top: 64px; padding: 36px; border-radius: var(--r-xl);
  background: var(--tint-sage); border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  display: grid; gap: 22px;
}
.g-cta h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.g-cta-copy p:last-child { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 560px) { .g-cta { padding: 24px 18px; } }

.sx-search {
  display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2);
  transition: border-color .15s, box-shadow .15s;
}
.sx-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.sx-search-ic { color: var(--brand); display: grid; }
.sx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 10px 4px; }
.sx-search input::placeholder { color: var(--muted); }
@media (max-width: 460px) {
  .sx-search { flex-wrap: wrap; border-radius: 20px; padding: 10px; }
  .sx-search input { flex-basis: calc(100% - 40px); }
  .sx-search .sx-btn { width: 100%; }
}

.g-disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.g-disclaimer .ic { margin-top: 2px; }

.g-related { padding: 96px 0 0; }

/* ======================================================== guide cards ==== */

.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.g-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g-grid-3, .g-grid { grid-template-columns: 1fr; } }

.g-card {
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.g-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.g-card[hidden] { display: none !important; }
.g-card-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.g-card-art img { position: absolute; inset: 1% 0; margin: auto; height: 98%; width: auto; max-width: none; transition: transform .5s var(--ease-out); }
.g-card:hover .g-card-art img { transform: scale(1.06); }
.g-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.g-card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.g-card-title { font-family: var(--display); font-weight: 750; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.15; }
.g-card-text { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.g-card-more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .88rem; color: var(--brand); }
.g-card-more .ic { transition: transform .2s var(--ease); }
.g-card:hover .g-card-more .ic { transform: translateX(3px); }

/* ============================================================== hub ==== */

.hub-hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(40% 70% at 90% 10%, var(--tint-peach), transparent 70%),
    radial-gradient(40% 70% at 0% 0%, var(--tint-sage), transparent 70%),
    var(--bg);
}
.hub-hero h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; max-width: 14ch; }
.hub-lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; line-height: 1.6; }
.hub-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.hub-search {
  display: flex; align-items: center; gap: 10px; flex: 1 1 340px; max-width: 460px;
  padding: 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2);
  color: var(--muted);
}
.hub-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.hub-search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--ink); padding: 15px 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); transition: all .15s;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hub-featured { padding-top: 20px; }
.feat-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.feat {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 340px;
  padding: 30px; border-radius: var(--r-xl); background: var(--tint); text-decoration: none; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.feat:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--sh-3); }
.feat-copy { display: flex; flex-direction: column; position: relative; z-index: 1; height: 100%; }
.feat-title { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1.08; }
.feat-lg .feat-title { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); max-width: 12ch; }
.feat-text { color: var(--ink-2); font-size: .92rem; line-height: 1.55; margin: 12px 0 18px; max-width: 34ch; }
.feat:not(.feat-lg) .feat-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat .sx-link { margin-top: auto; }
.feat-art { position: absolute; right: -20px; bottom: -24px; width: 190px; height: 190px; }
.feat-lg .feat-art { width: 220px; height: 220px; }
.feat-lg .feat-copy { max-width: calc(100% - 190px); }
@media (max-width: 600px) { .feat-lg .feat-copy { max-width: none; padding-bottom: 120px; } .feat-lg .feat-art { width: 170px; height: 170px; } }
.feat-art img { width: 100%; height: 100%; transition: transform .5s var(--ease-out); }
.feat:hover .feat-art img { transform: scale(1.05) rotate(-2deg); }
.feat:not(.feat-lg) .feat-copy { padding-bottom: 90px; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: 1fr 1fr; } .feat-lg { grid-column: 1 / -1; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .feat { min-height: 280px; padding: 24px; } }

.hub-all { padding-top: 80px; }
.hub-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* ============================================================ about ==== */

.about-stats { margin-top: 10px; }
.big-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.big-stats div { padding: 30px 28px; border-left: 1px solid var(--line); }
.big-stats div:first-child { border-left: 0; }
.big-stats strong { display: block; font-family: var(--display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.big-stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) {
  .big-stats { grid-template-columns: 1fr 1fr; }
  .big-stats div:nth-child(3) { border-left: 0; }
  .big-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.about-body { padding-top: 64px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-col { padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.about-col h2 { font-size: 1.4rem; margin: 18px 0 10px; }
.about-col p { color: var(--ink-2); margin: 0; line-height: 1.65; }
.about-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.about-note { margin-top: 18px; padding: 40px; border-radius: var(--r-xl); background: var(--tint-sand); }
.about-note h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.about-note p { color: var(--ink-2); max-width: 62ch; margin-bottom: 24px; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-col, .about-note { padding: 24px 20px; } }

/* ============================================================= print ==== */

@media print {
  .sx-header, .sx-footer, .sx-progress, .g-toc, .g-cta, .g-related, .g-hero-art, .g-hero-actions { display: none !important; }
  .g-layout { display: block; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .never { background: #fff; color: #000; border: 2px solid #000; }
  .never li, .never h2 { color: #000; }
}

/* ============================================== audit fixes, Nov 2026 ==== */

/* ---- result cards: Call, Directions, Share on one row ---- */
.card-actions .link-strong { color: var(--ink); border-color: var(--line-2); font-weight: 640; }
.card .chips .chip.is-match {
  background: var(--brand-tint); color: var(--brand); font-weight: 640;
  border-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
@media (max-width: 560px) {
  .card-actions .link-strong { flex: 1 1 0; min-height: 48px; }
}

/* ---- the help block, put first when nothing is close ---- */
.helpline-inline.is-prominent {
  border: 1.5px solid color-mix(in srgb, var(--rust-500) 45%, transparent);
  background: var(--rust-100); margin-bottom: 12px;
}
.helpline-inline.is-prominent h3 { color: var(--rust-700); }
[data-theme="dark"] .helpline-inline.is-prominent h3 { color: #f0b296; }

/* ---- "Search near EX10 again" ---- */
.last-search { display: flex; align-items: stretch; gap: 6px; margin: 14px 0 0; }
.last-search[hidden] { display: none; }
.last-again {
  display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; min-height: 48px;
  font: inherit; font-size: .92rem; font-weight: 620; text-align: left; cursor: pointer;
  padding: 10px 16px; border-radius: var(--r-sm); color: var(--brand);
  background: var(--brand-tint); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.last-again:hover { border-color: var(--brand); }
.last-again svg, .last-forget svg { width: 16px; height: 16px; flex: 0 0 auto; }
.last-forget {
  display: inline-grid; place-items: center; width: 48px; cursor: pointer;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
}
.last-forget:hover { color: var(--ink); }

/* ---- under the results: emergency card ---- */
.results-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 6px; }
.results-tools[hidden] { display: none; }
.results-tools .fridge-hint { font-size: .86rem; color: var(--muted); max-width: 52ch; }
.results-tools .btn { max-width: 100%; white-space: normal; }
@media (max-width: 560px) { .results-tools .btn { flex: 1 1 100%; justify-content: center; } }
.results-section .support-strip { margin-top: 28px; }

/* ---- tap targets: 48px minimum on the controls people use one-handed ---- */
.view-toggle button { min-height: 44px; padding: 7px 18px; }
.hero select, #radius { min-height: 48px; }
@media (pointer: coarse) { .view-toggle button { min-height: 48px; } }

/* ---- homepage "No emergency today?" strip ---- */
.no-emergency {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: 56px !important; padding: 18px 24px !important;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.no-emergency-label { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.no-emergency ul { display: flex; flex-wrap: wrap; gap: 8px 6px; list-style: none; margin: 0; padding: 0; }
.no-emergency a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 580;
}
.no-emergency a:hover { border-color: var(--brand); color: var(--ink); }

/* ---- sticky phone bar on every page ---- */
.sx-sticky { display: none; }
@media (max-width: 760px) {
  .sx-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(9, 27, 20, .3);
  }
  .sx-sticky a {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px;
    border-radius: var(--r-sm); font-weight: 700; font-size: .95rem; text-decoration: none;
  }
  .sx-sticky-find { background: var(--brand); color: var(--on-brand); }
  .sx-sticky-em { background: var(--rust-100); color: var(--rust-700); border: 1px solid color-mix(in srgb, var(--rust-500) 35%, transparent); }
  [data-theme="dark"] .sx-sticky-em { color: #f0b296; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media print { .sx-sticky { display: none !important; } }

/* ---- guide pages: the first 60 seconds ---- */
.g-quick {
  margin: 26px 0 18px; padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  box-shadow: var(--sh-2);
}
.g-quick h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0 0 14px; letter-spacing: -.02em; }
.g-quick h2 svg { color: var(--rust-500); }
.g-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.g-quick-grid div { padding: 11px 13px; border-radius: var(--r-sm); }
.g-quick-grid dt { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.g-quick-grid dd { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.q-leave { background: var(--brand-tint); }
.q-leave dt { color: var(--brand); }
.q-help { background: var(--rust-100); }
.q-help dt { color: var(--rust-700); }
[data-theme="dark"] .q-help dt { color: #f0b296; }
.g-quick-label { font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.g-quick-steps { margin: 0 0 12px; padding-left: 22px; font-weight: 620; color: var(--ink); line-height: 1.6; }
.g-quick-never { margin: 0 0 16px; font-size: .92rem; color: var(--ink-2); }
.g-quick-never strong { color: var(--rust-700); }
[data-theme="dark"] .g-quick-never strong { color: #f0b296; }
.g-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.g-quick-actions .sx-btn { min-height: 48px; }
@media (max-width: 560px) {
  .g-quick { padding: 18px 16px; }
  .g-quick-grid { grid-template-columns: 1fr; }
  .g-quick-actions .sx-btn { flex: 1 1 100%; justify-content: center; }
}

/* "Jump to a section" on phones and tablets, where the sidebar contents hide */
.g-jump { display: none; }
@media (max-width: 1000px) {
  .g-jump { display: block; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
  .g-jump summary { cursor: pointer; padding: 12px 16px; font-weight: 650; min-height: 48px; display: flex; align-items: center; }
  .g-jump ul { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
  .g-jump a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-size: .88rem; }
}
.cal-summary { margin: 0 0 14px; font-weight: 650; color: var(--ink); }

/* ---- /should-i-step-in ---- */
.sc-wrap { padding-top: 12px; }
.sc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sc-pick {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  border-left: 5px solid var(--tone); transition: transform .15s, box-shadow .15s;
}
.sc-pick:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.sc-pick strong { font-size: 1rem; }
.sc-pick span:last-child { font-size: .86rem; color: var(--muted); }
.sc-pick-tag { font-size: .74rem; font-weight: 750; letter-spacing: .04em; color: var(--tone-ink); }
.tone-green { --tone: var(--em-500); --tone-ink: var(--brand); --tone-bg: var(--brand-tint); }
.tone-amber { --tone: #d97706; --tone-ink: #92400e; --tone-bg: #fef3e2; }
.tone-red { --tone: var(--rust-500); --tone-ink: var(--rust-700); --tone-bg: var(--rust-100); }
[data-theme="dark"] .tone-amber { --tone-ink: #f5c27a; --tone-bg: #2b2112; }
[data-theme="dark"] .tone-red { --tone-ink: #f0b296; }
.sc-list { display: grid; gap: 22px; margin-top: 40px; }
.sc-verdict {
  padding: 28px 30px; border-radius: var(--r-xl); background: var(--surface);
  border: 1px solid var(--line); border-top: 6px solid var(--tone); scroll-margin-top: 96px; outline: none;
}
.sc-verdict:target { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 30%, transparent), var(--sh-2); }
.sc-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px;
  border-radius: 999px; background: var(--tone-bg); color: var(--tone-ink); font-size: .8rem; font-weight: 750;
}
.sc-verdict h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0 0 8px; }
.sc-headline { font-weight: 650; color: var(--ink); font-size: 1.05rem; }
.sc-why { color: var(--ink-2); line-height: 1.65; }
.sc-verdict h3 { font-size: .95rem; margin: 18px 0 8px; }
.sc-steps { padding-left: 22px; line-height: 1.6; color: var(--ink-2); }
.sc-steps li { margin: 6px 0; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sc-actions .sx-btn { min-height: 48px; }
@media (max-width: 560px) { .sc-verdict { padding: 22px 18px; } .sc-actions .sx-btn { flex: 1 1 100%; justify-content: center; } }

/* ---- /explore ---- */
.explore-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 760px; }
.explore-form input, .explore-form select {
  font: inherit; font-size: 1rem; min-height: 52px; padding: 0 16px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
}
.explore-form input { flex: 1 1 320px; }
.explore-form .sx-btn { min-height: 52px; }
.region-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.region-link {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.region-link:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand); }
.region-link .region-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.region-link .region-count { font-size: .82rem; color: var(--brand); font-weight: 650; white-space: nowrap; }
.region-link .region-sub { font-size: .86rem; color: var(--muted); }

/* ---- /seasons ---- */
.season-nav { margin-top: 24px; }
.season-nav .chip { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.season-nav .chip small { color: var(--muted); font-weight: 500; }
.season-nav .chip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.season-nav .chip[aria-current="true"] small { color: inherit; opacity: .75; }
.season-sec { padding: 56px 0 0; scroll-margin-top: 90px; }
.season-sec h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 18px; }
.season-sec.is-now h2::after {
  content: 'Now'; display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 10px;
  border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .75rem; letter-spacing: .04em;
}
.season-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.season-warn { border-color: color-mix(in srgb, var(--rust-500) 40%, transparent) !important; background: var(--rust-100) !important; }
.season-species { margin-top: 14px; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .season-cols { grid-template-columns: 1fr; } }

/* ---- /rescues/<area> ---- */
.place-body { padding-top: 8px; }
.place-group { padding-top: 36px; }
.place-group h2 { display: flex; align-items: baseline; gap: 10px; font-size: 1.3rem; }
.place-group h2 a { color: inherit; }
.place-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.place-item {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
  border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line);
}
.place-name { font-weight: 680; color: var(--ink); text-decoration: none; }
.place-name:hover { text-decoration: underline; }
.place-meta { font-size: .86rem; color: var(--muted); }
.place-tel { align-self: flex-start; margin-top: 4px; font-weight: 650; font-variant-numeric: tabular-nums; min-height: 32px; display: inline-flex; align-items: center; }
.place-siblings { line-height: 2; color: var(--muted); }
