/* ==========================================================================
   TackleChoice — design tokens and components.
   Light first. One stylesheet, no framework, no build step.
   ========================================================================== */

:root {
  /* --- color: light theme is the default ------------------------------ */
  --bg:            #f7f9f8;
  --bg-warm:       #fbfaf7;
  --surface:       #ffffff;
  --surface-2:     #eef3f2;
  --surface-3:     #e4ecea;

  --ink:           #102a2e;
  --ink-2:         #2f484c;
  --muted:         #52666a;
  --faint:         #7d9094;

  --line:          #dce5e5;
  --line-strong:   #c6d4d4;

  --brand:         #0b7d75;   /* fills, marks, rules — dark enough for white text (5:1) */
  --brand-strong:  #096b64;   /* hover fill */
  --brand-ink:     #0a5f59;   /* brand-coloured text and links */
  --brand-tint:    #e6f5f3;
  --brand-tint-2:  #cfebe7;
  --on-brand:      #ffffff;

  --success:       #2e9b62;
  --success-ink:   #1f7449;
  --success-tint:  #e7f4ec;
  --caution-ink:   #8a5a00;
  --caution-tint:  #fdf3e4;
  --note-ink:      #3c5a70;
  --note-tint:     #edf2f6;
  --sand:          #f4efe6;

  /* --- spacing --------------------------------------------------------- */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;

  /* --- radius ---------------------------------------------------------- */
  --r-sm: 8px;  --r: 12px;  --r-lg: 16px;  --r-pill: 999px;

  /* --- elevation: restrained. Borders do most of the work. ------------- */
  --shadow-sm: 0 1px 2px rgba(16, 42, 46, .05);
  --shadow:    0 1px 2px rgba(16, 42, 46, .05), 0 6px 16px -12px rgba(16, 42, 46, .28);
  --shadow-lg: 0 1px 3px rgba(16, 42, 46, .06), 0 18px 36px -24px rgba(16, 42, 46, .32);

  /* --- type ------------------------------------------------------------ */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --t-xs: .8rem;  --t-sm: .9rem;  --t-base: 1rem;  --t-md: 1.06rem;
  --t-lg: 1.2rem; --t-xl: 1.45rem;

  /* --- layout ---------------------------------------------------------- */
  --wrap: 1160px;
  --wrap-narrow: 900px;
  --prose: 68ch;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* --- motion: subtle, and switched off for reduced-motion users ------- */
  --fast: .12s ease;
  --base: .2s ease;

  color-scheme: light;
}

/* Dark theme: a deep blue-green, not an inversion of the light theme.
   Applied only when the reader asks for it. The site is light by default even
   on a device set to dark, because that is the design it was drawn for. */
:root[data-theme="dark"] {
  --bg:           #0a1517;
  --bg-warm:      #0c191b;
  --surface:      #10201f;
  --surface-2:    #17292b;
  --surface-3:    #1f3538;

  --ink:          #e9f1f0;
  --ink-2:        #c3d3d2;
  --muted:        #92a8a8;
  --faint:        #74898a;

  --line:         #20383a;
  --line-strong:  #2d4a4c;

  --brand:        #3fc7b8;
  --brand-strong: #62d8ca;
  --brand-ink:    #6fdccd;
  --brand-tint:   #0f2e2c;
  --brand-tint-2: #16403c;
  --on-brand:     #05201e;

  --success:      #4fbf82;
  --success-ink:  #6fd39b;
  --success-tint: #0f2c1e;
  --caution-ink:  #e2b45f;
  --caution-tint: #2b2312;
  --note-ink:     #a6c2d6;
  --note-tint:    #16242c;
  --sand:         #1d2422;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow:    0 1px 2px rgba(0, 0, 0, .35), 0 6px 16px -12px rgba(0, 0, 0, .8);
  --shadow-lg: 0 1px 3px rgba(0, 0, 0, .4), 0 18px 36px -24px rgba(0, 0, 0, .9);

  color-scheme: dark;
}

/* ==========================================================================
   base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 650; letter-spacing: -.015em; }

/* Vertical rhythm.

   A heading that follows content needs room above it — a list, a card grid, a
   table or a <details> block all end flush, so without this a heading sits
   directly on top of the block before it. Headings that OPEN something (a card,
   a section head, a page head) keep a zero top margin: their container already
   provides the space. :where() keeps all of this at zero specificity so any
   component rule can still override it. */
h2 { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { margin-top: var(--s-5); }
h4 { margin-top: var(--s-4); }
h1 { margin-top: 0; }

:where(h2, h3, h4):first-child { margin-top: 0; }
:where(.section-head, .card, .featured, .step-block, .tool-head, .hero, .callout, .answer-box, .preview, .search-hit, .why-item)
  :where(h2, h3, h4) { margin-top: 0; }

/* Layout blocks carry no vertical margin of their own — they rely on the
   heading or paragraph that introduces them. When one is followed by anything
   other than a heading (which brings its own, larger margin), add the gap. */
:is(.card-grid, .grid-2, .steps-3, .why, .rec-list, .featured, .search-results) + :not(h1, h2, h3, h4) {
  margin-top: var(--s-6);
}
h1 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.45rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: .98rem; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 640; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }

a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-strong); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.icon { flex: none; vertical-align: middle; }
.icon-sprite { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: .75rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--on-brand); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.prose { max-width: var(--prose); }
.prose p, .prose li { color: var(--ink-2); }

.section { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.section-tight { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-warm { background: var(--bg-warm); border-block: 1px solid var(--line); }

.stack > * + * { margin-top: var(--s-5); }
.grid-2 {
  display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-2 > * > :last-child { margin-bottom: 0; }

/* ==========================================================================
   header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--s-4); min-height: 58px; }

.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: var(--on-brand); flex: none;
}
.brand-name { font-size: 1.08rem; font-weight: 680; letter-spacing: -.025em; }
.brand-name b { font-weight: 680; color: var(--brand-ink); }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .5rem .6rem; border-radius: var(--r-sm); font-size: .93rem; font-weight: 540;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color var(--fast), color var(--fast);
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--brand-ink); background: var(--brand-tint); }
.nav-link .icon { opacity: .6; }

/* Tools panel: opens on hover and on keyboard focus. No JavaScript. */
.nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 330px; padding: var(--s-2); margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel li { margin: 0; }
.nav-panel a {
  display: flex; gap: .65rem; padding: .6rem .65rem; border-radius: var(--r-sm);
  text-decoration: none; color: var(--ink);
}
.nav-panel a:hover { background: var(--brand-tint); color: var(--ink); }
.nav-panel .icon { color: var(--brand-ink); margin-top: .15rem; }
.nav-panel strong { display: block; font-size: .95rem; font-weight: 620; }
.nav-panel span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.nav-panel-all { border-top: 1px solid var(--line); margin-top: .35rem !important; padding-top: .35rem; }
.nav-panel-all a { font-size: .9rem; font-weight: 600; color: var(--brand-ink); }

.header-tools { display: flex; align-items: center; gap: .2rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid transparent; border-radius: var(--r-sm); background: none;
  color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background-color var(--fast), color var(--fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .header-inner { min-height: 56px; }
  .js .nav-toggle { display: inline-grid; }
  .icon-btn { width: 44px; height: 44px; }
  .js .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--s-3) var(--gutter) var(--s-5); max-height: calc(100dvh - 56px); overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .js .primary-nav.is-open { display: block; }
  .primary-nav { margin-left: 0; width: 100%; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: .75rem .5rem; font-size: 1.02rem; min-height: 44px; }
  .nav-link .icon { display: none; }
  .nav-panel { display: none; }
  .js .nav-panel {
    display: block; position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin-left: .55rem; padding: 0 0 .25rem .35rem;
    background: none;
  }
  .nav-panel a { min-height: 44px; align-items: center; }
  .nav-panel span { display: none; }
  .header-tools { margin-left: auto; }
}

/* ==========================================================================
   breadcrumbs
   ========================================================================== */

.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--bg); }
.breadcrumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: .55rem 0;
  font-size: var(--t-xs); color: var(--muted);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-ink); text-decoration: underline; }

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .7rem 1.15rem; border-radius: 10px;
  font: inherit; font-size: .97rem; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--fast), border-color var(--fast), color var(--fast), transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--brand); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-lg { min-height: 52px; padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
}
.textlink:hover { text-decoration: underline; }
.textlink .icon { transition: transform var(--fast); }
.textlink:hover .icon { transform: translateX(2px); }

/* ==========================================================================
   shared bits
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 680; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand-ink);
}
.section-head { margin-bottom: var(--s-5); }
.section-head + * { margin-top: 0; }
.section-head .eyebrow { margin-bottom: .4rem; }
.section-head p { color: var(--muted); max-width: 60ch; margin-bottom: 0; }

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: var(--t-xs); font-weight: 560; color: var(--muted);
  background: var(--surface-2); border-radius: var(--r-pill); padding: .25rem .6rem;
}
.chip .icon { opacity: .7; }

.trust-row { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: var(--s-5); padding: 0; list-style: none; }
.trust-row li {
  display: flex; align-items: center; gap: .4rem; margin: 0;
  font-size: var(--t-sm); color: var(--muted);
}
.trust-row .icon { color: var(--success-ink); }

.pill-row { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; margin: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 42px;
  padding: .4rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  text-decoration: none; color: var(--ink-2); font-size: .92rem; background: var(--surface);
  transition: border-color var(--fast), color var(--fast);
}
.pill:hover { border-color: var(--brand); color: var(--brand-ink); }

.meta-line { color: var(--muted); font-size: var(--t-sm); }

.link-list { list-style: none; padding: 0; display: grid; gap: .6rem; margin: 0; }
.link-list li { margin: 0; }
.link-list a { font-weight: 580; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list .link-desc { display: block; color: var(--muted); font-size: var(--t-sm); font-weight: 400; }

.callout {
  display: flex; gap: .75rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: .9rem 1.05rem; margin: var(--s-5) 0;
}
.callout .icon { color: var(--brand-ink); margin-top: .15rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 640; margin-bottom: .2rem; }
.callout-caution { background: var(--caution-tint); border-color: color-mix(in srgb, var(--caution-ink) 28%, transparent); }
.callout-caution .icon, .callout-caution .callout-title { color: var(--caution-ink); }

.answer-box {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brand); border-radius: var(--r);
  padding: clamp(1rem, 2.5vw, 1.35rem); margin: var(--s-5) 0;
}
.answer-box p { color: var(--ink); font-size: var(--t-md); margin-bottom: 0; }
.answer-box p + p { margin-top: .7rem; }

.cta-band {
  display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between;
  background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-radius: var(--r-lg);
  padding: 1.15rem 1.35rem; margin: var(--s-6) 0;
}
.cta-band p { margin: 0; color: var(--ink-2); max-width: 54ch; font-size: var(--t-sm); }
.cta-band .cta-title { color: var(--ink); font-weight: 650; font-size: 1.05rem; margin-bottom: .15rem; }

/* ==========================================================================
   hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2rem, 4.5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(120% 80% at 85% -10%, var(--brand-tint) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Cg fill='none' stroke='%230b7d75' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M0 20c20 0 20 10 40 10s20-10 40-10 20 10 40 10 20-10 40-10 20 10 40 10 20-10 40-10'/%3E%3Cpath d='M0 38c20 0 20 10 40 10s20-10 40-10 20 10 40 10 20-10 40-10 20 10 40 10 20-10 40-10'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: bottom left;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
  mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: .55rem 0 .5rem; }
.hero-lede { font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem); color: var(--ink-2); max-width: 50ch; margin-bottom: var(--s-5); }

/* result preview card */
.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.preview-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.preview-title { font-size: .74rem; font-weight: 680; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.preview-sub { font-size: var(--t-sm); color: var(--ink-2); padding: .7rem 1.1rem 0; }
.preview-rows { display: grid; margin: 0; padding: .5rem .6rem .6rem; }
.preview-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .7rem;
  padding: .55rem .5rem; border-radius: var(--r-sm);
}
.preview-row + .preview-row { border-top: 1px solid var(--line); border-radius: 0; }
.preview-row .icon { color: var(--brand-ink); }
.preview-row dt {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font-size: .72rem; font-weight: 680; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.preview-row dd { margin: 0; text-align: right; }
.preview-row .pv-value { display: block; font-weight: 660; font-variant-numeric: tabular-nums; }
.preview-row .pv-detail { display: block; font-size: var(--t-xs); color: var(--muted); }
.preview-foot { padding: .35rem 1.1rem 1rem; }

/* ==========================================================================
   cards: tools, guides, species
   ========================================================================== */

.card-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: var(--t-sm); }
.card > :last-child { margin-bottom: 0; }

a.card { text-decoration: none; color: inherit; transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast); }
a.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }

.tool-card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--brand-tint); color: var(--brand-ink); margin-bottom: .75rem;
}
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .75rem; }
.card-cta { margin-top: auto; padding-top: .8rem; color: var(--brand-ink); font-weight: 620; font-size: var(--t-sm); display: inline-flex; align-items: center; gap: .3rem; }
a.card:hover .card-cta .icon { transform: translateX(2px); }
.card-cta .icon { transition: transform var(--fast); }

/* featured tool */
.featured {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow);
}
@media (max-width: 820px) { .featured { grid-template-columns: 1fr; } }
.featured .tool-card-icon { width: 44px; height: 44px; }
.featured h2 { margin-bottom: .3em; }
.featured p { color: var(--ink-2); }
.featured-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.featured-steps li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.featured-steps .step-num {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-ink); font-size: .74rem; font-weight: 700;
}

/* species card */
.species-card-links { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.species-card-links li { margin: 0; font-size: var(--t-xs); color: var(--muted); }

/* how it works */
.steps-3 { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem 1.15rem; }
.step-block .step-num-lg {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: .9rem; margin-bottom: .65rem;
}
.step-block h3 { font-size: 1rem; margin-bottom: .25em; }
.step-block p { color: var(--muted); font-size: var(--t-sm); margin: 0; }

/* ==========================================================================
   tool pages: wizard
   ========================================================================== */

.tool-head { padding-block: clamp(1.5rem, 3.5vw, 2.5rem) var(--s-4); background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.tool-head-inner { display: flex; gap: var(--s-4); align-items: flex-start; }
.tool-head .tool-card-icon { margin-bottom: 0; }
.tool-lede { font-size: var(--t-md); color: var(--ink-2); max-width: 62ch; margin-bottom: 0; }

.progress { display: flex; align-items: center; gap: .75rem; margin-top: var(--s-5); }
.progress-track { flex: 1; height: 5px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--brand); border-radius: var(--r-pill); transition: width var(--base); }
.progress-label { font-size: .78rem; font-weight: 620; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.wizard { padding-block: var(--s-5) clamp(2rem, 4vw, 3rem); }
.step { border: 0; margin: 0 0 var(--s-5); padding: 0; }
.step + .step { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.step legend { padding: 0; font-size: var(--t-lg); font-weight: 640; letter-spacing: -.015em; }
.step-question-meta { font-size: .74rem; font-weight: 680; letter-spacing: .11em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: .3rem; }
.step-help { color: var(--muted); font-size: var(--t-sm); margin: .3rem 0 0; }
.step-body { margin-top: var(--s-4); }

.options { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.options-pair { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); max-width: 520px; }
.options-list { grid-template-columns: 1fr; }
@media (min-width: 720px) { .options-list { grid-template-columns: 1fr 1fr; } }

.option { position: relative; display: block; }
.option[hidden] { display: none; }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.option-body {
  display: flex; align-items: flex-start; gap: .55rem; min-height: 54px; padding: .75rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  transition: border-color var(--fast), background-color var(--fast), box-shadow var(--fast);
}
.option-text { min-width: 0; }
.option-label { display: block; font-weight: 600; font-size: .97rem; }
.option-hint { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: .1rem; line-height: 1.45; }
.option-check { margin-left: auto; color: var(--brand); opacity: 0; flex: none; }
.option input:hover + .option-body { border-color: var(--brand); }
.option input:focus-visible + .option-body { outline: 3px solid var(--brand); outline-offset: 2px; }
.option input:checked + .option-body {
  border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand);
}
.option input:checked + .option-body .option-check { opacity: 1; }

.wizard-actions { margin-top: var(--s-5); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.wizard-hint { color: var(--muted); font-size: var(--t-sm); }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 30; display: none;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
@media (max-width: 740px) {
  .sticky-cta { display: block; }
  .wizard-actions .btn-desktop { display: none; }
}

/* ==========================================================================
   results
   ========================================================================== */

.result { padding-block: var(--s-5) clamp(1.75rem, 4vw, 2.75rem); background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.result-head { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: flex-start; justify-content: space-between; margin-bottom: var(--s-4); }
.result-title { font-size: .76rem; font-weight: 680; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin: 0 0 .45rem; }
.answers { display: flex; flex-wrap: wrap; gap: .4rem; }
.answer-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-xs); color: var(--muted);
}
.answer-chip b { font-weight: 620; color: var(--ink); }

.confidence {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem;
  border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 640; border: 1px solid transparent;
}
.confidence::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; flex: none; }
.confidence-high { background: var(--success-tint); color: var(--success-ink); border-color: color-mix(in srgb, var(--success) 32%, transparent); }
.confidence-medium { background: var(--caution-tint); color: var(--caution-ink); border-color: color-mix(in srgb, var(--caution-ink) 28%, transparent); }
.confidence-low { background: var(--note-tint); color: var(--note-ink); border-color: color-mix(in srgb, var(--note-ink) 28%, transparent); }

.rec-list {
  display: grid; gap: 0; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.rec-row {
  display: grid; grid-template-columns: 42px minmax(0, 190px) minmax(0, 1fr); gap: var(--s-4);
  align-items: center; padding: 1rem 1.15rem;
}
.rec-row + .rec-row { border-top: 1px solid var(--line); }
.rec-row-primary { background: var(--brand-tint); }
.rec-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); color: var(--brand-ink); }
.rec-row-primary .rec-icon { background: var(--surface); }
.rec-label { display: block; font-size: .72rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rec-value { display: block; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: .1rem; }
.rec-detail { display: block; font-size: var(--t-sm); color: var(--ink-2); margin-top: .1rem; }
.rec-why { font-size: var(--t-sm); color: var(--muted); margin: 0; }
.rec-row-optional .rec-value { font-size: 1.15rem; color: var(--ink-2); }
@media (max-width: 720px) {
  .rec-row { grid-template-columns: 38px minmax(0, 1fr); gap: .75rem; row-gap: .35rem; padding: .9rem 1rem; }
  .rec-why { grid-column: 1 / -1; }
}

.result-note { font-size: var(--t-sm); color: var(--muted); margin: var(--s-4) 0 0; max-width: 70ch; }

.why { display: grid; gap: .55rem; margin-top: var(--s-4); }
.why-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.why-item summary {
  cursor: pointer; padding: .85rem 1.05rem; font-weight: 620; display: flex; gap: .6rem; align-items: center;
  list-style: none; min-height: 48px;
}
.why-item summary::-webkit-details-marker { display: none; }
.why-item summary .icon:first-child { color: var(--brand-ink); }
.why-item summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--fast); }
.why-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.why-item summary .why-value { color: var(--muted); font-weight: 500; font-size: var(--t-sm); }
.why-body { padding: 0 1.05rem 1.05rem; }
.why-body p, .why-body li { color: var(--ink-2); font-size: var(--t-sm); }
.why-body h4 { margin-top: 1rem; }

/* --- not a typical combination --- */
.not-typical {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--caution-ink); border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 1.6rem); box-shadow: var(--shadow-sm);
}
.not-typical-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .75rem; }
.not-typical-head h2 { margin: 0 0 .5rem; font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
.not-typical-icon {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  border-radius: 11px; background: var(--caution-tint); color: var(--caution-ink);
}
.not-typical-reason { color: var(--ink-2); max-width: 68ch; }
.not-typical h3 { font-size: 1rem; margin-top: var(--s-5); }
.not-typical .card h4 { margin-bottom: .3em; font-size: 1.02rem; }

/* ==========================================================================
   tables
   ========================================================================== */

.table-block { margin: var(--s-5) 0; }
.table-scroll {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
caption { text-align: left; padding: .8rem 1rem; color: var(--muted); font-size: var(--t-xs); border-bottom: 1px solid var(--line); }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  position: sticky; top: 0; z-index: 1; background: var(--surface-2);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
tbody th[scope="row"] { font-weight: 640; color: var(--ink); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.size-cell { font-weight: 660; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-hint { font-size: var(--t-xs); color: var(--faint); margin: .5rem 0 0; }
@media (min-width: 720px) { .table-hint-mobile { display: none; } }

/* --- forms --- */
.contact-form .step { border: 0; padding-top: 0; }
.contact-form .step + .field { margin-top: var(--s-5); }
.field { margin-bottom: var(--s-5); }
.field-label { display: block; font-weight: 620; font-size: 1.05rem; margin-bottom: .2rem; }
.field-optional { font-weight: 400; font-size: var(--t-xs); color: var(--muted); }
.field-hint { color: var(--muted); font-size: var(--t-sm); margin: 0 0 .55rem; }
.field-input {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: var(--t-base);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.field-input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.field-input[aria-invalid="true"] { border-color: var(--caution-ink); }
textarea.field-input { resize: vertical; line-height: 1.55; }
.field-error {
  display: flex; align-items: center; gap: .35rem;
  color: var(--caution-ink); font-size: var(--t-sm); margin: .4rem 0 0;
}
/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   search
   ========================================================================== */

.search-form { display: flex; gap: .5rem; max-width: 560px; margin-bottom: var(--s-5); }
.search-input {
  flex: 1; min-height: 48px; padding: .7rem .9rem; font: inherit; font-size: var(--t-base);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.search-input::placeholder { color: var(--faint); }
.search-results { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.search-results li { margin: 0; }
.search-hit {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit;
}
.search-hit:hover { border-color: var(--brand); color: inherit; }
.search-hit .icon { color: var(--brand-ink); margin-top: .15rem; }
.search-hit strong { display: block; font-weight: 620; }
.search-hit span { display: block; font-size: var(--t-sm); color: var(--muted); }
.search-hit .search-kind { font-size: var(--t-xs); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem; }

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: var(--s-7); padding-block: var(--s-6) var(--s-5); }
.footer-top { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-brand-col { grid-column: 1 / -1; }
@media (min-width: 1001px) { .footer-brand-col { grid-column: auto; } }
.footer-note { color: var(--muted); font-size: var(--t-sm); max-width: 40ch; margin-top: .6rem; }
.footer-heading { font-size: .72rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-list li { margin: 0; }
.footer-list a { color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); }
.footer-list a:hover { color: var(--brand-ink); text-decoration: underline; }
.footer-legal { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.footer-legal p { color: var(--muted); font-size: var(--t-xs); margin: 0 0 .4rem; max-width: 88ch; }

/* ==========================================================================
   misc pages
   ========================================================================== */

.centered { text-align: center; padding-block: clamp(2.5rem, 7vw, 5rem); }
.centered .btn-row, .centered .search-form { justify-content: center; margin-inline: auto; }
