/* ==========================================================================
   KnowOutdoor — "Field Survey Almanac" design system.
   Kraft-paper ground, bark ink, pine green + burnt sienna, ochre highlight.
   Type: Zilla Slab (display slab) / Hanken Grotesk (body) / Space Mono (labels).
   A distinct visual grammar: mono survey labels, framed field-cards with a
   growing accent bar, squared buttons, contour hero, paper grain. No source-domain
   colors or shapes; difficulty tokens (--diff-*) stay semantic (green -> red).
   ========================================================================== */
:root {
  --pine: #264a34;          /* primary green */
  --pine-deep: #17301f;
  --moss: #5f7148;          /* secondary green */
  --rust: #a9542b;          /* earth accent / links */
  --rust-deep: #8a3f1e;
  --ochre: #bd8329;         /* highlight / kicker */
  --soil: #201e1b;          /* near-black ink */
  --ink: #201e1b;
  --ink-soft: #575651;      /* neutral-warm gray text */
  --paper: #ffffff;         /* clean white ground (no cream) */
  --paper-2: #f3f3f1;       /* faint neutral panel */
  --card: #ffffff;          /* white cards, separated by hairline borders */
  --line: #e6e6e3;
  --line-strong: #d2d2ce;

  --diff-easy: #3f6b34;
  --diff-moderate: #6f7d2b;
  --diff-challenging: #bd8329;
  --diff-difficult: #b85a24;
  --diff-expert: #9a2f1f;

  --measure: 66ch;      /* pure-prose readable line length (hubs, profiles, standalone text) */
  --content: 46rem;     /* article-column width: THE single owner for article text + every block */
  --block-w: var(--content);  /* display blocks live inside .prose and never exceed the text column */
  /* One spacing scale for the whole site (8px base). All section padding,
     heading margins, and grid gaps map to these, so the vertical rhythm is even. */
  --sp-1: .5rem;   /*  8px */
  --sp-2: .75rem;  /* 12px */
  --sp-3: 1rem;    /* 16px */
  --sp-4: 1.5rem;  /* 24px */
  --sp-5: 2rem;    /* 32px */
  --sp-6: 3rem;    /* 48px */
  --sp-7: 4rem;    /* 64px */
  --sp-8: 5rem;    /* 80px */
  --band-pad: var(--sp-7);   /* section band top/bottom padding */
  /* Type scale rebuilt on a 20px body (major-third-ish steps). */
  --fs-xs: .8rem;      /* ~12.8px  mono micro-labels, badges */
  --fs-sm: 1.05rem;    /* ~16.8px  secondary text, captions, card copy */
  --fs-base: 1.25rem;  /* 20px     body */
  --fs-lg: 1.45rem;    /* ~23px    lead / intro */
  --fs-xl: 1.9rem;     /* ~30px    h2 */
  --fs-2xl: 2.5rem;    /* 40px */
  --fs-3xl: 3.35rem;   /* ~54px    h1 max */
  --slab: "Zilla Slab", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-base); line-height: 1.6;
  position: relative;
  /* Sticky footer: keep the footer at the bottom on short pages so the page
     background never shows as a blank band below it. */
  display: flex; flex-direction: column; min-height: 100vh;
}
#main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
/* Paper grain overlay (subtle, fixed, non-interactive). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--slab); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, var(--fs-3xl)); margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: var(--fs-xl); }
p { margin: 0 0 1.15em; }   /* paragraph rhythm scales with font size */

/* The single width authority for the whole site: header, breadcrumb, every page
   wrapper, and footer all use .container, so they share an identical width and
   left edge. Readable text is capped by --measure and left-aligned inside it
   (never a narrower, centered box), so nothing drifts inward. */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }

/* Mono survey kicker (replaces the centered leading-rule eyebrow). */
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: .7rem;
}
.eyebrow::before { content: "\25C6\00a0\00a0"; color: var(--ochre); }  /* ◆ */
.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: var(--measure); }
.section-title { margin: var(--sp-6) 0 var(--sp-4); }
.section-title .eyebrow { display: block; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 100; }

/* ---------- Buttons: squared, mono, uppercase ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5ch; font-family: var(--mono); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; padding: .8rem 1.4rem;
  border: 1.5px solid var(--pine); border-radius: 0; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { text-decoration: none; }
/* Use .btn.btn-* (specificity 0,2,0) so button text color always wins over
   contextual link colors like .site-nav a (0,1,1). */
.btn.btn-primary { background: var(--pine); color: #fdfaf2; }
.btn.btn-primary:hover { background: var(--pine-deep); border-color: var(--pine-deep); color: #fff; }
.btn.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.btn-outline:hover { border-color: var(--pine); color: var(--pine); background: rgba(38,74,52,.05); }
.section-link { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Header: utility strip + masthead ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 40; }
.utility-strip { background: var(--pine-deep); color: var(--paper); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; }
.utility-strip .container { display: flex; justify-content: space-between; padding-top: .35rem; padding-bottom: .35rem; }
.utility-strip .u-right { color: var(--ochre); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--slab); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--pine); font-size: 1.5rem; display: inline-flex; }
.brand-logo { width: 40px; height: 40px; display: block; }
.brand-accent { color: var(--rust); }
.site-nav { display: flex; align-items: center; gap: var(--sp-4); }
.site-nav ul { display: flex; gap: 1.15rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { position: relative; font-family: var(--mono); color: var(--ink); font-weight: 400; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; padding: .45rem 0; }
/* sliding underline: current section is persistent, hover reveals it too */
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15rem; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav ul a:hover { color: var(--pine); text-decoration: none; }
.site-nav ul a:hover::after, .site-nav ul a.active::after { transform: scaleX(1); }
.site-nav ul a.active { color: var(--pine); font-weight: 700; }
.nav-cta { padding: .55rem 1rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ---------- Hero: contour background ---------- */
.hero {
  border-bottom: 2px solid var(--ink); padding: var(--sp-8) 0 var(--sp-7);
  background-color: var(--paper-2);
  background-image:
    repeating-radial-gradient(circle at 82% 30%, transparent 0 26px, rgba(38,74,52,.06) 26px 27px);
}
.hero-title { font-size: clamp(2.3rem, 6.4vw, 3.6rem); max-width: 15ch; }
.hero-lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--line-strong); display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 9; }
}

/* ---------- Hub hero banner ---------- */
.hub-hero { margin-top: var(--sp-4); }
.hub-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; border: 1.5px solid var(--line-strong); }
.hub-hero + .container .page-head { padding-top: var(--sp-5); }

/* ---------- Page head / breadcrumb ---------- */
.page-head { padding: var(--sp-6) 0 var(--sp-3); max-width: var(--measure); }
.breadcrumb { border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: .7rem 0; color: var(--ink-soft); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; color: var(--line-strong); }
.breadcrumb [aria-current="page"] { color: var(--rust); }

/* ---------- Field cards ---------- */
/* Deterministic flex grid. cols-N pins the desktop column count so card
   distribution never floats with viewport width, and centered wrapping means an
   incomplete last row (or a lone trailing card) sits centered under the block
   instead of stranded at the left edge. The column count is chosen per card
   count by Template::gridCols(), so rows stay balanced. */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: var(--sp-4); margin: var(--sp-4) 0 var(--sp-5); }
.card-grid > * { flex: 0 1 250px; min-width: 0; }
.card-grid.cols-2 > * { flex-basis: calc((100% - 1 * var(--sp-4)) / 2); }
.card-grid.cols-3 > * { flex-basis: calc((100% - 2 * var(--sp-4)) / 3); }
.card-grid.cols-4 > * { flex-basis: calc((100% - 3 * var(--sp-4)) / 4); }
/* Solo entry: a section with a single card reads as a featured horizontal tile
   (image left, copy right) rather than one lonely square in an empty row. */
.card-grid.is-solo { justify-content: flex-start; }
.card-grid.is-solo .card { flex: 0 1 100%; max-width: 640px; }
.card-grid.is-solo .card-link { display: grid; grid-template-columns: 13rem minmax(0, 1fr); }
.card-grid.is-solo .card-media { aspect-ratio: auto; height: 100%; min-height: 11rem; border-bottom: 0; border-right: 1.5px solid var(--line-strong); }
.card { background: var(--card); border: 1.5px solid var(--line-strong); position: relative; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.card:hover::before { transform: scaleX(1); }
.card-link { display: block; color: inherit; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card-title { color: var(--pine); }
.card-media { aspect-ratio: 16 / 10; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--pine); font-size: 2.6rem; border-bottom: 1.5px solid var(--line-strong); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--sp-4); }
.card-badge { margin-bottom: .55rem; }
.card-title { font-family: var(--slab); font-weight: 600; font-size: var(--fs-lg); margin: 0 0 .4rem; }
.card-desc { font-size: var(--fs-sm); color: var(--ink-soft); margin: 0 0 .8rem; }
.card-more { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--rust); }

/* ---------- Difficulty tag (semantic, mono, leading dot) ---------- */
.difficulty-badge { display: inline-flex; align-items: center; gap: .45ch; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .22rem .55rem; color: #fff; }
.difficulty-badge::before { content: "\25CF"; font-size: .7em; }
.difficulty-badge i { display: none; }
.difficulty-easy { background: var(--diff-easy); }
.difficulty-moderate { background: var(--diff-moderate); }
.difficulty-challenging { background: var(--diff-challenging); }
.difficulty-difficult { background: var(--diff-difficult); }
.difficulty-expert { background: var(--diff-expert); }
.tag-reviewer { font-family: var(--mono); background: var(--pine); color: var(--paper); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .22rem .55rem; }

/* ---------- Article / prose ---------- */
.article-wrap { padding: var(--sp-6) 0 var(--sp-7); }
/* THE canonical readable-content-width owner. Every article-family page wraps its
   content in .article-col, so text, hero images, and every block share ONE width
   and one left edge. The column owns the width; children fill it (their own
   --measure caps are neutralized inside the column) so nothing is narrower or
   wider than the column. --content is a bit wider than the pure-prose --measure so
   the content area fills the page rather than sitting in a narrow left strip. */
.article-col { max-width: var(--content); margin-inline: auto; }
/* Any direct child of the column fills it (no brittle per-class allowlist), plus
   the nested page-body used by institutional templates. New block components need
   no entry here: they render inside .prose, which is itself neutralized below. */
.article-col > *,
.article-col .page-body { max-width: none; }
.article-head { max-width: var(--measure); }
.article-meta { margin: .5rem 0 1rem; }
.article-intro { font-size: var(--fs-lg); color: var(--ink-soft); font-family: var(--slab); font-weight: 400; }
.prose { max-width: var(--measure); }
/* Reading rhythm: clear space above section headings, tight below; generous,
   consistent space around block components so text and components never crowd. */
.prose h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose > :first-child, .page-body section > :first-child { margin-top: 0; }
.prose .step-list, .prose .bullet-list, .page-body ul, .page-body ol { margin-top: var(--sp-3); margin-bottom: var(--sp-4); }
/* Bold = scannable key terms (weight only). Highlight = a short key phrase only,
   never a full sentence. Keep the marker low-contrast enough for readable text. */
.prose strong, .page-body strong { font-weight: 700; color: var(--ink); }
.highlight { background: rgba(189,131,41,.18); color: var(--ink); padding: 0 .12em; border-radius: 2px; font-weight: 650; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.highlight { color: inherit; }
.step-list, .bullet-list, .source-list { padding-left: 1.2rem; }
.bullet-list li { margin-bottom: .5rem; }
.step-list { counter-reset: step; list-style: none; padding-left: 0; }
.step-list li { position: relative; padding-left: 2.6rem; margin-bottom: .85rem; }
.step-list li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .05rem; font-family: var(--mono); font-weight: 700; font-size: var(--fs-sm); color: var(--paper); background: var(--pine); width: 1.9rem; height: 1.6rem; display: flex; align-items: center; justify-content: center; }
.source-list { list-style: none; padding-left: 0; }
.source-list li { margin-bottom: .35rem; font-size: var(--fs-sm); }
.source-list li::before { content: "\2192\00a0"; color: var(--moss); }
.ext-link::after { content: " \2197"; font-size: .8em; color: var(--ink-soft); }
.article-foot { max-width: var(--measure); margin-top: var(--sp-6); border-top: 2px solid var(--ink); padding-top: var(--sp-3); }
.related-links { margin-top: var(--sp-7); }
.related-links ul { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.related-link-card { display: grid; grid-template-columns: 9rem minmax(0, 1fr); min-height: 7rem; border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--card); }
.related-link-card .card-media { height: 100%; min-height: 7rem; aspect-ratio: auto; border-right: 1.5px solid var(--line-strong); border-bottom: 0; font-size: 2rem; }
.related-link-card:hover { color: var(--pine); text-decoration: none; border-color: var(--pine); }
.related-link-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: var(--sp-3) var(--sp-4); }
.related-link-title { display: block; font-family: var(--slab); font-weight: 600; font-size: var(--fs-lg); line-height: 1.25; }
.rl-kind { display: block; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--rust); margin-bottom: .15rem; }

/* ---------- Byline ---------- */
.byline { display: flex; flex-wrap: wrap; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: var(--sp-4) 0; }
.byline-person { display: flex; align-items: center; gap: .7rem; }
.byline-avatar { width: 2.5rem; height: 2.5rem; background: var(--pine); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: var(--fs-sm); }
.byline-reviewer .byline-avatar { background: var(--rust); }
.byline-text { display: flex; flex-direction: column; font-size: var(--fs-sm); }
.byline-role { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.byline-cred { font-size: var(--fs-xs); color: var(--ink-soft); }

/* ---------- Safety callout ---------- */
.safety-callout { background: var(--paper-2); border: 1.5px solid var(--rust); border-top: 5px solid var(--rust); padding: var(--sp-4); margin: var(--sp-5) 0; max-width: var(--measure); }
.safety-callout-head { display: flex; align-items: center; gap: .5rem; font-family: var(--slab); color: var(--rust-deep); font-size: var(--fs-lg); margin-bottom: .6rem; }
.safety-sub { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: .7rem 0 .25rem; }
.safety-list { margin: 0 0 .5rem; padding-left: 1.2rem; }
.safety-threshold { font-weight: 600; color: var(--diff-expert); }
.safety-emergency { font-size: var(--fs-sm); color: var(--ink-soft); border-top: 1px solid var(--line-strong); padding-top: .6rem; margin-top: .6rem; }

/* ---------- Profile ---------- */
.profile-wrap { padding: var(--sp-6) 0 var(--sp-7); }
.profile-grid { display: grid; grid-template-columns: 1fr 330px; gap: var(--sp-6); align-items: start; }
.profile-side > * { margin-bottom: 1.3rem; }
.fact-card, .fresh-card, .related-card { background: var(--card); border: 1.5px solid var(--line-strong); padding: var(--sp-4); }
.fact-card h2, .fresh-card h2, .related-card h2 { font-family: var(--slab); font-size: var(--fs-lg); margin: 0 0 .8rem; }
.fact-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0; }
.fact-row dd { margin: 0; text-align: right; font-weight: 500; }
.fresh-card.is-unverified { border-color: var(--rust); background: var(--paper-2); }
.fresh-card h2 i { color: var(--rust); }
.fresh-card.is-verified h2 i { color: var(--diff-easy); }
.related-card ul { list-style: none; margin: 0; padding: 0; }
.related-card li { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.related-card li:last-child { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); margin-top: var(--sp-6); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { font-family: var(--slab); font-weight: 600; cursor: pointer; padding: .8rem 0; }
.faq-item summary h2 { display: inline; margin: 0; font: inherit; }
.faq-answer { color: var(--ink-soft); padding-bottom: .8rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Glossary ---------- */
.glossary-head { padding-bottom: var(--sp-5); }
.glossary-tools { border: 1.5px solid var(--line-strong); background: var(--card); padding: var(--sp-4); margin-bottom: var(--sp-6); }
.glossary-search label { display: block; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--sp-2); }
.glossary-search-row { display: flex; gap: var(--sp-2); }
.glossary-search-row input[type="search"] { flex: 1; min-width: 0; border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font: inherit; padding: var(--sp-2) var(--sp-3); border-radius: 0; }
.glossary-alphabet { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-3); }
.glossary-alphabet a { min-width: var(--sp-5); border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: var(--fs-xs); text-align: center; text-decoration: none; padding: var(--sp-1) var(--sp-2); }
.glossary-alphabet a:hover, .glossary-alphabet a[aria-current="page"] { border-color: var(--rust); color: var(--rust-deep); }
.glossary-filter-summary { color: var(--ink-soft); font-size: var(--fs-sm); margin: var(--sp-3) 0 0; }
.glossary-band-head { align-items: end; }
.glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.glossary-card { display: grid; grid-template-columns: minmax(9rem, 38%) 1fr; min-height: 15rem; border: 1.5px solid var(--line-strong); background: var(--card); position: relative; }
.glossary-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 0; height: 3px; background: var(--rust); transition: width .2s ease; z-index: 1; }
.glossary-card:hover::before, .glossary-card:focus-within::before { width: 100%; }
.glossary-card-media { display: block; color: inherit; text-decoration: none; }
.glossary-card-media .card-media { height: 100%; min-height: 100%; aspect-ratio: auto; border: 0; border-right: 1.5px solid var(--line-strong); }
.glossary-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: var(--sp-4); }
.glossary-card-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.glossary-card-meta span { color: var(--ink-soft); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; }
.glossary-card-meta span + span::before { content: "/"; color: var(--line-strong); margin-right: var(--sp-1); }
.glossary-card h3 { font-size: var(--fs-xl); margin: 0 0 var(--sp-2); }
.glossary-card h3 a { color: var(--ink); text-decoration: none; }
.glossary-card h3 a:hover { color: var(--rust); }
.glossary-card p { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0 0 var(--sp-3); }
.glossary-card-link { margin-top: auto; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.glossary-empty { border: 1.5px solid var(--line-strong); background: var(--card); padding: var(--sp-5); }
.glossary-empty h2 { margin-top: 0; }
.glossary-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.glossary-pagination a { border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font-family: var(--mono); font-size: var(--fs-xs); text-decoration: none; padding: var(--sp-2) var(--sp-3); }
.glossary-pagination a:hover, .glossary-pagination a[aria-current="page"] { border-color: var(--rust); color: var(--rust-deep); }
.pagination-pages { display: flex; gap: var(--sp-1); }
.pagination-direction:last-child { justify-self: end; }

@media (max-width: 860px) {
  .glossary-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .glossary-search-row { align-items: stretch; flex-direction: column; }
  .glossary-card { grid-template-columns: 1fr; }
  .glossary-card-media .card-media { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1.5px solid var(--line-strong); }
  .glossary-pagination { grid-template-columns: 1fr 1fr; }
  .pagination-pages { grid-column: 1 / -1; grid-row: 1; justify-content: center; }
}

/* ---------- Home extras ---------- */
.home-section { padding: 1.2rem 0 1.6rem; }
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.link-list, .link-row { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.link-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.link-row li a { display: inline-flex; align-items: center; gap: .4ch; background: var(--card); border: 1.5px solid var(--line-strong); padding: .5rem .85rem; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.link-row li a:hover { border-color: var(--pine); color: var(--pine); text-decoration: none; }

/* ---------- Search / sitemap / errors ---------- */
.search-form { display: flex; gap: .6rem; margin: 1.3rem 0; max-width: var(--measure); }
.search-form input { flex: 1; padding: .8rem .9rem; border: 1.5px solid var(--line-strong); background: var(--card); font-family: var(--sans); font-size: var(--fs-base); border-radius: 0; }
.search-results { list-style: none; padding: 0; max-width: var(--measure); }
.search-results li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.result-silo { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.empty-note { color: var(--ink-soft); }
.sitemap-cols { columns: 3 220px; column-gap: 2.2rem; }
.sitemap-group { break-inside: avoid; margin-bottom: 1.5rem; }
.sitemap-group h2 { font-family: var(--slab); font-size: var(--fs-lg); }
.sitemap-group ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.sitemap-group li { padding: .22rem 0; font-size: var(--fs-sm); }
.error-page { padding: 4.5rem 0; text-align: center; max-width: 640px; margin: 0 auto; }
.error-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.tool-placeholder { background: var(--card); border: 1.5px dashed var(--line-strong); padding: 1.3rem; margin-top: 1.6rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: #d8ceb4; margin-top: var(--sp-7); border-top: 4px solid var(--rust); padding: var(--sp-6) 0 var(--sp-4); }
/* brand + 5 nav columns = 6 tracks (brand wider). */
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: var(--sp-5) var(--sp-4); }
.footer-brand .brand-name { font-family: var(--slab); font-size: 1.4rem; color: #fff; }
.footer-brand p { font-size: var(--fs-sm); color: #b3ab90; }
.footer-note { font-size: var(--fs-xs) !important; border-top: 1px solid rgba(255,255,255,.14); padding-top: .6rem; margin-top: .6rem; }
.footer-col h2 { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--ochre); margin: 0 0 .7rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: .24rem 0; }
.footer-col a { color: #cdc4a9; font-size: var(--fs-sm); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.7rem; padding-top: 1rem; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .04em; color: #97906f; }

/* ---------- Expert head ---------- */
.expert-head { display: flex; gap: var(--sp-4); align-items: flex-start; }
.expert-avatar-lg { width: 4rem; height: 4rem; background: var(--pine); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 1.3rem; flex: none; }
.expert-cred { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.expert-media { flex: 0 0 13rem; margin: 0; border: 1.5px solid var(--line-strong); background: var(--card); }
.expert-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.expert-media figcaption { padding: .55rem .75rem; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* ---------- Homepage section bands (contrast) ---------- */
.band { padding: var(--band-pad) 0; }
.band-kraft { background: var(--paper); }
.band-muted { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--pine-deep); color: #d5cbb1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--ochre); }
.band-dark .band-lead { color: #b6ae90; }

.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.band-lead { max-width: 44ch; color: var(--ink-soft); margin: 0; }

/* Credential ribbon */
.cred-band { padding: var(--sp-5) 0; }
.cred-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.cred { display: flex; gap: .7rem; align-items: flex-start; }
.cred > i { color: var(--ochre); font-size: 1.5rem; margin-top: .05rem; }
.cred strong { display: block; color: #fff; font-family: var(--slab); font-weight: 600; }
.cred span { font-size: var(--fs-sm); color: #b3ab8d; line-height: 1.4; }

/* Split layouts */
/* stretch so the feature/tool tile fills the column height instead of floating
   centered with empty space above and below it. */
.band-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-6); align-items: stretch; }
.band-split > .feature-card { display: flex; flex-direction: column; }
.band-split > .feature-card .card-more { margin-top: auto; padding-top: var(--sp-3); }
.band-split-wide { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }

/* Safety hazard list (dark band) */
.hazard-list { list-style: none; margin: 0; padding: 0; }
.hazard-list li a { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.045); margin-bottom: .55rem; color: #ece3cd; }
.hazard-list li a:hover { border-color: var(--ochre); text-decoration: none; }
.hazard-list li a > i:first-child { color: var(--ochre); font-size: 1.25rem; }
.hazard-list span { display: flex; flex-direction: column; flex: 1; font-family: var(--slab); font-weight: 600; }
.hazard-list em { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: var(--fs-sm); color: #a7a082; }
.hazard-list .go { color: #7f7a60; }
.hazard-emergency { display: flex; gap: .5rem; align-items: center; font-size: var(--fs-sm); color: var(--ochre); padding-top: .5rem; }

/* Kickers inside tiles */
.card-kicker, .feature-kicker { display: inline-block; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--rust); margin-bottom: .45rem; }

/* "Browse all" card tile */
.card-cta-tile { background: var(--pine); border-color: var(--pine); }
.card-cta-tile::before { display: none; }
.card-cta-tile .card-title { color: #fff; }
.card-cta-tile .card-desc { color: #c9d3bf; }
.card-cta-tile .card-more { color: var(--ochre); }

/* Feature card (bordered) */
.feature-card { display: block; background: var(--card); border: 1.5px solid var(--line-strong); border-left: 5px solid var(--rust); padding: var(--sp-5); color: inherit; }
.feature-card:hover { border-left-color: var(--pine); text-decoration: none; }
.feature-card:hover h3 { color: var(--pine); }
.feature-card h3 { font-family: var(--slab); font-size: var(--fs-xl); margin: .2rem 0 .5rem; }
.feature-card p { color: var(--ink-soft); }
.tool-tile { border-left-color: var(--moss); }

/* Destination / trail / compare feature grid */
.place-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: min-content; gap: var(--sp-4); }
.place-grid > .place-feature:first-child { grid-row: 1 / span 2; }
.place-feature, .compare-tile { background: var(--card); border: 1.5px solid var(--line-strong); color: inherit; display: block; }
.place-feature:hover h3, .compare-tile:hover h3 { color: var(--pine); }
.place-feature:hover, .compare-tile:hover { text-decoration: none; border-color: var(--pine); }
.place-media { aspect-ratio: 16/9; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--pine); font-size: 2.6rem; border-bottom: 1.5px solid var(--line-strong); overflow: hidden; }
.place-media img { width: 100%; height: 100%; object-fit: cover; }
.place-body { padding: var(--sp-4); }
.place-body h3 { font-family: var(--slab); margin: .2rem 0 .3rem; }
.place-meta { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 .5rem; }
.mini-facts { list-style: none; padding: 0; margin: .5rem 0 .8rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mini-facts li { font-family: var(--slab); font-weight: 600; }
.mini-facts span { display: block; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.compare-tile { padding: var(--sp-4); border-left: 5px solid var(--ochre); }
.compare-tile h3 { font-family: var(--slab); margin: .3rem 0 .5rem; }
.compare-tile h3 em { font-style: normal; color: var(--rust); font-size: .82em; }

/* Experts + editorial + CTA (dark band) */
/* Flex-fill so 2 or 3 experts always fill the row evenly (no empty grid column). */
.expert-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.expert-row > * { flex: 1 1 240px; }
.expert-tile { display: flex; gap: .8rem; align-items: center; padding: 1rem; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.045); color: #ece3cd; }
.expert-tile:hover { border-color: var(--ochre); text-decoration: none; }
.expert-tile .expert-avatar { width: 2.9rem; height: 2.9rem; background: var(--moss); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; flex: none; }
.expert-tile strong { display: block; color: #fff; font-family: var(--slab); }
.expert-tile .expert-role { display: block; font-size: var(--fs-sm); color: #b3ab8d; }
.editorial-row { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-4) 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.editorial-row p { margin: 0; color: #c9c0a3; }
.editorial-links { display: flex; gap: .7rem; flex-wrap: wrap; }
.home-cta { text-align: center; padding-top: var(--sp-6); }
.home-cta .hero-actions { justify-content: center; }
.link-light { color: var(--ochre); }
.btn.btn-ghost { background: transparent; color: #ece3cd; border-color: rgba(255,255,255,.35); }
.btn.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.07); }
.btn.btn-accent { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn.btn-accent:hover { background: var(--rust-deep); border-color: var(--rust-deep); }

/* Methodology / process band: three numbered steps, flex-fill so they stay even. */
.method-grid { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.method-grid > * { flex: 1 1 250px; }
.method-step { border-top: 3px solid var(--rust); padding-top: var(--sp-3); }
.method-num { font-family: var(--mono); font-size: var(--fs-lg); font-weight: 700; color: var(--rust); letter-spacing: .05em; }
.method-step h3 { font-family: var(--slab); font-size: var(--fs-lg); margin: .3rem 0 .5rem; }
.method-step p { color: var(--ink-soft); margin: 0; font-size: var(--fs-sm); }

/* Start-here beginner path: linked, numbered first-steps. */
.path-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.path-grid > li { flex: 1 1 220px; }
.path-step { display: block; height: 100%; background: var(--card); border: 1.5px solid var(--line-strong); border-top: 3px solid var(--pine); padding: var(--sp-4); color: inherit; }
.path-step:hover { border-color: var(--pine); text-decoration: none; }
.path-step:hover h3 { color: var(--pine); }
.path-num { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--rust); text-transform: uppercase; }
.path-step h3 { font-family: var(--slab); font-size: var(--fs-lg); margin: .35rem 0 .3rem; }
.path-step p { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0 0 .6rem; }
.path-step .card-more { color: var(--rust); }

/* Featured guide: large image + copy on the dark band. */
.feature-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-6); align-items: center; }
.feature-hero-media { aspect-ratio: 16 / 10; overflow: hidden; border: 1.5px solid rgba(255,255,255,.14); }
.feature-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-hero-body h2 { margin: .2rem 0 .5rem; }
.feature-hero-body p { color: #c9c0a3; margin: 0 0 var(--sp-4); }

/* Sources we build from */
.source-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.source-grid > li { flex: 1 1 240px; }
.source-grid a { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-family: var(--slab); font-weight: 600; height: 100%; }
.source-grid a:hover { border-color: var(--pine); text-decoration: none; color: var(--pine); }
.source-grid i { color: var(--rust); font-size: 1.2rem; flex: none; }

/* Newsletter / field-notes strip (pine band) */
.newsletter-band { background: var(--pine); color: #e9e0c8; }
.newsletter-band .eyebrow { color: var(--ochre); }
.newsletter-band h2 { color: #fff; margin: .2rem 0 0; }
.newsletter { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }
.newsletter > div { flex: 1 1 22rem; max-width: 48ch; }
.newsletter p { color: #cbd3c0; margin: .5rem 0 0; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-start; }
.newsletter-form input { padding: .8rem 1rem; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font-family: var(--sans); min-width: 15rem; }
.newsletter-form input::placeholder { color: #b3ab8d; }
.newsletter-msg { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--ochre); }
.newsletter-note { margin: var(--sp-2) 0 0; font-size: var(--fs-xs); color: #a7a082; }

@media (max-width: 800px) {
  .feature-hero { grid-template-columns: 1fr; }
}

/* Hub toolbar: difficulty filter chips + load-more */
.hub-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: .5rem .9rem; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink-soft); cursor: pointer; }
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip-n { opacity: .65; font-weight: 400; }
.chip.is-active .chip-n { opacity: .8; }
.hub-more { text-align: center; margin-top: var(--sp-5); }
.hub-empty-filter { color: var(--ink-soft); font-style: italic; margin: 0; }

/* Related cross-silo band (activity hubs) */
.related-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.related-nav > * { flex: 1 1 220px; }
.related-nav-tile { display: block; height: 100%; padding: var(--sp-4); border: 1.5px solid var(--line-strong); border-top: 3px solid var(--rust); background: var(--card); color: var(--ink); }
.related-nav-tile:hover { border-color: var(--pine); border-top-color: var(--pine); text-decoration: none; }
.related-nav-tile:hover strong { color: var(--pine); }
.related-nav-tile > i { font-size: 1.7rem; color: var(--rust); display: block; margin-bottom: .5rem; }
.related-nav-tile strong { display: block; color: var(--ink); font-family: var(--slab); font-size: var(--fs-lg); margin-bottom: .25rem; }
.related-nav-tile > span { display: block; font-size: var(--fs-sm); color: var(--ink-soft); }
.related-nav-tile .card-more { margin-top: .7rem; }

@media (max-width: 1000px) {
  .band-split, .band-split-wide { grid-template-columns: 1fr; }
  .cred-strip { grid-template-columns: repeat(2, 1fr); }
  .place-grid { grid-template-columns: 1fr; }
  .place-grid > .place-feature:first-child { grid-row: auto; }
  .card-grid.cols-4 > *, .card-grid.cols-3 > * { flex-basis: calc((100% - 1 * var(--sp-4)) / 2); }
}
@media (max-width: 560px) {
  .cred-strip { grid-template-columns: 1fr; }
  .editorial-row { flex-direction: column; align-items: flex-start; }
  .card-grid.cols-2 > *, .card-grid.cols-3 > *, .card-grid.cols-4 > * { flex-basis: 100%; }
  .card-grid.is-solo .card-link { grid-template-columns: 1fr; }
  .card-grid.is-solo .card-media { border-right: 0; border-bottom: 1.5px solid var(--line-strong); aspect-ratio: 16 / 10; min-height: 0; }
}

/* ---------- Institutional page blocks (trust / legal) ---------- */
.page-hero-img { margin: var(--sp-5) 0 var(--sp-6); border: 1.5px solid var(--line-strong); aspect-ratio: 16/8; overflow: hidden; }
.safety-callout { margin: var(--sp-6) 0; }
.steps { margin-top: var(--sp-6); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article-image { margin: var(--sp-6) 0; border: 1.5px solid var(--line-strong); background: var(--card); }
.article-image img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.article-image figcaption { border-top: 1.5px solid var(--line); padding: .75rem 1rem; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-soft); }
.page-body { max-width: var(--measure); }
.page-body > section { margin-bottom: var(--sp-6); }
.page-body h2 { margin: 0 0 var(--sp-3); }
.page-body h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-lg); }
.page-body ul, .page-body ol { padding-left: 1.3rem; }
.page-body li { margin-bottom: var(--sp-2); }
.page-body .lede { font-family: var(--slab); font-weight: 400; font-size: var(--fs-lg); color: var(--ink-soft); }

/* Callouts */
.callout { border: 1.5px solid var(--line-strong); border-left: 5px solid var(--moss); background: var(--card); padding: var(--sp-4); margin: var(--sp-6) 0; }
.callout > strong:first-child { display: block; font-family: var(--slab); font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.callout p:last-child { margin-bottom: 0; }
.callout-note { border-left-color: var(--pine); }
.callout-note > strong:first-child { color: var(--pine); }
.callout-warning { border-left-color: var(--rust); background: var(--paper-2); }
.callout-warning > strong:first-child { color: var(--rust-deep); }
.callout-tip { border-left-color: var(--ochre); }
.callout-tip > strong:first-child { color: #916118; }

/* Principle / values grid */
.principle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); margin: var(--sp-6) 0; }
.principle { border: 1.5px solid var(--line-strong); border-top: 4px solid var(--rust); background: var(--card); padding: var(--sp-4); }
.principle .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--rust); letter-spacing: .1em; }
.principle h3 { margin: var(--sp-1) 0 var(--sp-2); font-family: var(--slab); }
.principle p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.prose .principle-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
.prose .principle { display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--sp-3); border-top-width: 1.5px; border-left: 4px solid var(--rust); padding: var(--sp-3) var(--sp-4); }
.prose .principle .n { grid-row: 1 / span 2; padding-top: .15rem; }
.prose .principle h3 { margin: 0 0 .2rem; line-height: 1.25; }
.prose .principle p { grid-column: 2; }

/* Numbered process (reuses step-list look) */
.process-steps { counter-reset: step; list-style: none; padding-left: 0; margin: var(--sp-6) 0; }
.process-steps > li { position: relative; padding-left: 2.8rem; margin-bottom: var(--sp-4); }
.process-steps > li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; font-size: var(--fs-sm); color: var(--paper); background: var(--pine); width: 2rem; height: 1.7rem; display: flex; align-items: center; justify-content: center; }
.process-steps > li strong { display: block; font-family: var(--slab); }

/* Key-value definition rows */
.keyvalue { border: 1.5px solid var(--line-strong); background: var(--card); padding: var(--sp-2) var(--sp-4); margin: var(--sp-6) 0; }
.keyvalue > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.keyvalue > div:last-child { border-bottom: 0; }
.keyvalue dt { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0; flex: none; width: 34%; }
.keyvalue dd { margin: 0; text-align: right; }

.page-updated { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 2px solid var(--ink); }

.page-toc { border: 1.5px solid var(--line-strong); background: var(--card); padding: var(--sp-4); margin: 0 0 var(--sp-6); }
.page-toc strong { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--rust); }
.page-toc ol { margin: var(--sp-2) 0 0; padding-left: 1.3rem; }
.page-toc li { margin-bottom: var(--sp-1); }
.page-toc a { color: var(--rust); text-decoration: none; }
.page-toc a:hover { color: var(--pine); text-decoration: underline; }
/* Smooth in-page jumps; offset headings so the sticky header never covers them. */
html { scroll-behavior: smooth; }
main h2[id], main h3[id], main section[id] { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 560px) {
  .related-link-card { grid-template-columns: 6.5rem minmax(0, 1fr); min-height: 6rem; }
  .related-link-card .card-media { min-height: 6rem; }
  .related-link-body { padding: var(--sp-2) var(--sp-3); }
  .related-link-title { font-size: 1.2rem; }
  .prose .principle { grid-template-columns: 1fr; }
  .prose .principle .n, .prose .principle p { grid-column: auto; grid-row: auto; }
  .keyvalue > div { flex-direction: column; gap: var(--sp-1); }
  .keyvalue dt { width: auto; }
  .keyvalue dd { text-align: left; }
}

/* ---------- Article body blocks (rendered by Template::richBody) ----------
   Every block below lives inside .prose, so it fills the text column (--block-w =
   --content) and shares the body width by construction. None declares a wider
   max-width, so "table width" and "body width" can never diverge. */

/* Inline mono chip (a small label/tag inside running text) */
.chip { display: inline-block; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rust); background: var(--paper-2); border: 1px solid var(--line-strong); padding: .08em .5em; }

/* Checklist (ticked bullets, distinct from plain bullet-list) */
.checklist { list-style: none; padding-left: 0; margin: var(--sp-4) 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: var(--sp-2); }
.checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--pine); }

/* Real data table (the ONE <table> in the system; scrolls inside its wrap on narrow screens) */
.table-wrap { margin: var(--sp-6) 0; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.data-table th, .data-table td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); border-bottom: 1.5px solid var(--line-strong); }
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* Pull quote */
.pull-quote { margin: var(--sp-6) 0; padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); border-left: 4px solid var(--ochre); font-family: var(--slab); font-size: var(--fs-lg); color: var(--ink); }
.pull-quote p { margin: 0 0 .4em; }
.pull-quote cite { display: block; font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-style: normal; }
.pull-quote cite::before { content: "\2014\00a0"; }

/* Stat strip (big figures) */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-4); margin: var(--sp-6) 0; border-top: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); padding: var(--sp-4) 0; }
.stat-value { display: block; font-family: var(--slab); font-size: var(--fs-2xl); line-height: 1; color: var(--pine); }
.stat-label { display: block; margin-top: var(--sp-1); font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }

/* Optional editorial visuals. Each block has one narrow job and is selected by
   the article plan; none is injected by the renderer or required by page type. */
.metric-grid,
.cycle-block,
.timeline-block {
  margin: var(--sp-6) 0;
  border-block: 1.5px solid var(--line-strong);
  padding-block: var(--sp-4);
}
.metric-grid > h3,
.cycle-block > h3,
.timeline-block > h3 {
  margin: 0 0 var(--sp-4);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rust);
}

/* Quantities plus the decision context that makes each quantity useful. */
.metric-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.metric-item {
  display: grid;
  align-content: start;
  gap: var(--sp-1);
  min-width: 0;
  padding: var(--sp-4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-value {
  display: block;
  font-family: var(--slab);
  font-size: clamp(1.85rem, 4vw, var(--fs-2xl));
  line-height: 1;
  color: var(--pine);
}
.metric-label {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--ink);
}
.metric-context {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* A real loop, rendered as ordered phases rather than generic equal cards. */
.cycle-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-3);
  list-style: none;
  counter-reset: cycle;
  margin: 0;
  padding: 0;
}
.cycle-item {
  position: relative;
  grid-column: span 2;
  counter-increment: cycle;
  min-width: 0;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  border-top: 3px solid var(--ochre);
  background: var(--paper-2);
}
.cycle-item:nth-child(4) { grid-column: 2 / span 2; }
.cycle-item:nth-child(5) { grid-column: 4 / span 2; }
.cycle-item::before {
  content: counter(cycle, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--rust);
}
.cycle-item strong,
.cycle-item span { display: block; }
.cycle-item strong { margin-bottom: var(--sp-1); }
.cycle-item span {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-soft);
}
.cycle-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -3px;
  right: calc(var(--sp-3) * -1);
  width: var(--sp-3);
  border-top: 3px solid var(--ochre);
}
.cycle-item:last-child { border-top-color: var(--pine); }

/* Named moments on one track. Content order stays chronological in the DOM. */
.timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  list-style: none;
  margin: 0;
  padding: var(--sp-4) 0 0;
  border-top: 2px solid var(--line-strong);
}
.timeline-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--sp-1);
  min-width: 0;
  padding: var(--sp-4) var(--sp-3) 0 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: calc(var(--sp-4) * -1 - .42rem);
  left: 0;
  width: .72rem;
  height: .72rem;
  border: 2px solid var(--paper);
  background: var(--rust);
  outline: 1px solid var(--rust);
}
.timeline-marker {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rust);
}
.timeline-action {
  display: block;
  font-size: var(--fs-sm);
}
.timeline-detail {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .metric-items { grid-template-columns: 1fr; }
  .cycle-list,
  .timeline-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
    border-left: 2px solid var(--line-strong);
    padding: 0 0 0 var(--sp-4);
  }
  .cycle-item,
  .cycle-item:nth-child(4),
  .cycle-item:nth-child(5) {
    grid-column: auto;
    padding: var(--sp-3) 0 var(--sp-4) var(--sp-3);
    border-top: 0;
    background: transparent;
  }
  .cycle-item::before,
  .timeline-item::before {
    position: absolute;
    top: var(--sp-3);
    left: calc(var(--sp-4) * -1 + .45rem);
    width: auto;
    height: auto;
    border: 0;
    outline: 0;
    background: var(--paper);
  }
  .cycle-item:not(:last-child)::after { display: none; }
  .timeline-item { padding: var(--sp-3) 0 var(--sp-4) var(--sp-3); }
  .timeline-item::before {
    content: "";
    width: .72rem;
    height: .72rem;
    border: 2px solid var(--paper);
    background: var(--rust);
    outline: 1px solid var(--rust);
  }
}

/* Score bars (comparison intensity / rating) */
.score-group { display: grid; gap: var(--sp-3); margin: var(--sp-6) 0; }
.score-row { display: grid; grid-template-columns: 10rem 1fr auto; align-items: center; gap: var(--sp-3); }
.score-label { font-size: var(--fs-sm); }
.score-track { height: .7rem; background: var(--paper-2); border: 1px solid var(--line-strong); }
.score-fill { display: block; height: 100%; background: var(--moss); }
.score-num { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-soft); }

/* Editorial ranking (ordered choices with an explicit reason and tradeoff) */
.ranked-picks { display: grid; gap: var(--sp-4); list-style: none; margin: var(--sp-6) 0; padding: 0; }
.ranked-picks > li { display: grid; grid-template-columns: var(--sp-6) minmax(0, 1fr); gap: var(--sp-4); border: 1.5px solid var(--line-strong); border-top: 4px solid var(--rust); padding: var(--sp-4); }
.rank-number { font-family: var(--mono); font-size: var(--fs-lg); line-height: 1; color: var(--rust); }
.rank-content h3 { margin: 0 0 var(--sp-3); }
.rank-content dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; }
.rank-content dl > div { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.rank-content dt { font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.rank-content dd { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); }

/* Pros / cons (two-column, semantic green/red edges) */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-6) 0; }
.proscons > div { border: 1.5px solid var(--line-strong); padding: var(--sp-4); }
.proscons .pros { border-top: 4px solid var(--diff-easy); }
.proscons .cons { border-top: 4px solid var(--diff-expert); }
.proscons h4 { margin: 0 0 var(--sp-2); font-family: var(--mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; }
.proscons .pros h4 { color: var(--diff-easy); }
.proscons .cons h4 { color: var(--diff-expert); }
.proscons ul { list-style: none; padding-left: 0; margin: 0; }
.proscons li { position: relative; padding-left: 1.5rem; margin-bottom: var(--sp-2); font-size: var(--fs-sm); }
.proscons .pros li::before { content: "\002B"; position: absolute; left: 0; color: var(--diff-easy); font-weight: 700; }
.proscons .cons li::before { content: "\2212"; position: absolute; left: 0; color: var(--diff-expert); font-weight: 700; }

/* Inline CTA button (internal paths only) */
.cta-inline-wrap { margin: var(--sp-6) 0; }
.cta-inline { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: var(--fs-sm); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--paper); background: var(--pine); padding: .7rem 1.2rem; border: 1.5px solid var(--pine); }
.cta-inline:hover { background: var(--pine-deep); border-color: var(--pine-deep); text-decoration: none; }

@media (max-width: 560px) {
  .proscons { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 1fr auto; }
  .ranked-picks > li, .rank-content dl { grid-template-columns: 1fr; }
}

/* ---------- Page-load reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; animation: rise .6s ease forwards; }
  .hero-title { animation-delay: .05s; }
  .hero-lead { animation-delay: .15s; }
  .hero-actions { animation-delay: .25s; }
  .hero .eyebrow { animation-delay: 0s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .profile-grid { grid-template-columns: 1fr; }
  .expert-head { flex-direction: column; }
  .expert-media { width: 100%; max-width: 22rem; flex-basis: auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
/* Collapse the dense mono nav to a menu button before it can overflow.
   With the wider item spacing the full 8-item nav needs ~1140px; below that,
   use the menu button. The active-item underline still applies in the drawer. */
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 2px solid var(--ink); flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.1rem 1.5rem; display: none; z-index: 41; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .6rem; width: 100%; }
  .nav-cta { align-self: flex-start; }
}
@media (max-width: 760px) {
  .utility-strip .u-right { display: none; }
  .home-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-cols { columns: 1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
