/* ==========================================================================
   KnowTheSpices — "Warm Pantry" design system.
   Warm paper ground (#EFEDE8), roasted-brown ink, rust/turmeric accents.
   Type: Fraunces (display serif) / DM Sans (body) / DM Mono (labels).
   Visual grammar: warm paper ground, soft-rounded cards, a Fraunces serif
   voice, and a per-silo color code (each section carries its own spice hue).
   The heat tokens (--heat-*) are the semantic pungency axis (grey -> red) and
   are a separate family from the brand palette; see data/heat.php.
   Palette + type are carried over from the pre-migration KnowTheSpices
   identity so branding and recognition survive the runtime change.
   ========================================================================== */
:root {
  --brand: #B8541A;         /* KnowTheSpices rust (theme-color, brand mark) */
  --brand-deep: #8A3E12;    /* hover / pressed */
  --brand-soft: #C47B3B;    /* softened brand, secondary fills */
  --accent: #9C4A12;        /* links + editorial accent */
  --accent-deep: #7D3A0E;
  --highlight: #F0C052;     /* turmeric gold: marks, kickers, highlights */
  --ink: #2D1F14;           /* roasted brown ink */
  --ink-deep: #1C130C;      /* darkest surface on the site: the footer floor. Still warm
                               brown rather than pure black, so it belongs to the palette
                               instead of reading as a UI chrome bar. */
  --ink-soft: #6A645C;      /* muted body text (darkened for contrast on warm paper) */
  --paper: #EFEDE8;         /* warm paper ground (the signature KTS surface) */
  --paper-2: #E7E3D9;       /* deeper warm panel: alternating bands must read against --paper */
  --card: #FFFFFF;          /* cards lift off the warm ground */
  --line: #D8D5CF;
  --line-strong: #C7C3BB;
  --radius: 10px;           /* soft-rounded, matching the brand mark */

  --heat-none: #6b7280;
  --heat-mild: #2d6a2e;
  --heat-medium: #c08a00;
  --heat-hot: #c0491e;
  --heat-fiery: #a01423;

  /* Per-silo color code — the KnowTheSpices signature. One hue per section,
     used for card accents, eyebrows, and hub headers. Never recolored to brand. */
  --silo-individual-spices: #C06014;
  --silo-herbs: #4A7C59;
  --silo-spice-blends: #8B5A2B;
  --silo-cooking-techniques: #B8541A;
  --silo-health-wellness: #6B7F3B;
  --silo-world-cuisines: #A0522D;
  --silo-storage-buying: #7A6555;
  --silo-spice-science: #8B6914;
  --silo-history-origins: #C47B3B;
  --silo-default: #C06014;

  --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 carried from the pre-migration KnowTheSpices SCALE (19px body). */
  --fs-xs: .75rem;      /* 12px  mono micro-labels, badges */
  --fs-sm: 1rem;        /* 16px  secondary text, captions, card copy */
  --fs-base: 1.1875rem; /* 19px  body */
  --fs-lg: 1.4375rem;   /* 23px  lead / intro (h3) */
  --fs-xl: 1.75rem;     /* 28px  h2 */
  --fs-2xl: 2.375rem;   /* 38px  h1 min */
  --fs-3xl: 3.375rem;   /* 54px  h1 max */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "DM 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.7;
  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(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); 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); }

/* Silo kicker: DM Mono micro-label, tinted by the section's own spice hue. */
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--silo, var(--accent)); margin-bottom: .7rem;
}
.eyebrow::before { content: "\25CF\00a0\00a0"; font-size: .7em; vertical-align: .15em; color: var(--silo, var(--highlight)); }  /* ● */
.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: soft-rounded, DM Sans, sentence case ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5ch; font-family: var(--sans); font-weight: 600;
  font-size: var(--fs-sm); letter-spacing: .01em; padding: .7rem 1.3rem;
  border: 1.5px solid var(--brand); border-radius: var(--radius); 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(--brand); color: #FFF6E9; }
.btn.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: rgba(184,84,26,.06); }
.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: 1px solid var(--line-strong); position: sticky; top: 0; z-index: 40; }
.utility-strip { background: var(--brand-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(--highlight); }
.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(--display); font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); font-size: 1.5rem; display: inline-flex; }
.brand-logo { width: 40px; height: 40px; display: block; }
.brand-accent { color: var(--accent); }
.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(--accent); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.site-nav ul a:hover { color: var(--brand); 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(--brand); 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: warm ground with a scattered-grain motif ----------
   A soft turmeric glow plus a faint offset dot field, reading as scattered
   ground spice. Replaces the source base's topographic contour rings, which
   belonged to an outdoor niche, not a kitchen one. */
.hero {
  border-bottom: 1px solid var(--line-strong); padding: var(--sp-8) 0 var(--sp-7);
  background-color: var(--paper-2);
  background-image:
    radial-gradient(ellipse at 84% 26%, rgba(240,192,82,.16) 0, transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(184,84,26,.10) 1.4px, transparent 1.6px),
    radial-gradient(circle at 50% 50%, rgba(156,74,18,.07) 1.2px, transparent 1.4px);
  background-size: auto, 26px 26px, 26px 26px;
  background-position: 0 0, 0 0, 13px 13px;
}
.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(--accent); }

/* ---------- 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(--accent); 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(--brand); }
.card-media { aspect-ratio: 16 / 10; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--brand); 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(--display); 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(--accent); }

/* ---------- Heat tag (semantic pungency, mono, leading dot) ---------- */
.heat-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; }
.heat-badge::before { content: "\25CF"; font-size: .7em; }
.heat-badge i { display: none; }
.heat-none { background: var(--heat-none); }
.heat-mild { background: var(--heat-mild); }
.heat-medium { background: var(--heat-medium); }
.heat-hot { background: var(--heat-hot); }
.heat-fiery { background: var(--heat-fiery); }
.tag-reviewer { font-family: var(--mono); background: var(--brand); 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); font-family: var(--display); font-weight: 400;
  border-left: 3px solid var(--silo, var(--brand)); padding-left: var(--sp-3); }
.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(240,192,82,.28); 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(--brand); 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(--brand-soft); }
.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(--brand); text-decoration: none; border-color: var(--brand); }
.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(--display); 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(--accent); 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(--brand); 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(--accent); }
.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(--accent); border-top: 5px solid var(--accent); 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(--display); color: var(--accent-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(--heat-fiery); }
.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(--display); 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(--accent); background: var(--paper-2); }
.fresh-card h2 i { color: var(--accent); }
.fresh-card.is-verified h2 i { color: var(--heat-mild); }
.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(--display); font-weight: 600; cursor: pointer; padding: .8rem 0; }
.faq-answer { color: var(--ink-soft); padding-bottom: .8rem; }

/* ---------- 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(--accent); color: var(--accent-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(--accent); 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(--accent); }
.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(--accent); color: var(--accent-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(--brand); color: var(--brand); 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(--display); 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 ---------- */
/* The footer is the floor of the page, so it is the darkest surface on the site and
   sits directly against whatever precedes it.
   No margin-top: that margin lived outside both the last band and the footer, so on any
   page ending in a coloured band it showed as a stripe of bare body background — an
   empty section that appeared to do nothing. Pages that need breathing room own it
   themselves (.article-wrap already carries the same --sp-7 as bottom padding, which
   this margin was doubling). */
.site-footer { background: var(--ink-deep); color: #F2E7D6; border-top: 4px solid var(--accent); 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(--display); font-size: 1.4rem; color: #fff; }
.footer-brand p { font-size: var(--fs-sm); color: #E3D2B9; }
.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(--highlight); margin: 0 0 .7rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: .24rem 0; }
.footer-col a { color: #EEE0CB; 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: #CDB79B; }

/* ---------- Expert head ---------- */
.expert-head { display: flex; gap: var(--sp-4); align-items: flex-start; }
.expert-avatar-lg { width: 4rem; height: 4rem; background: var(--brand); 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-warm { 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(--brand-deep); color: #d5cbb1; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--highlight); }
.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(--highlight); font-size: 1.5rem; margin-top: .05rem; }
.cred strong { display: block; color: #fff; font-family: var(--display); 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(--highlight); text-decoration: none; }
.hazard-list li a > i:first-child { color: var(--highlight); font-size: 1.25rem; }
.hazard-list span { display: flex; flex-direction: column; flex: 1; font-family: var(--display); 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(--highlight); 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(--accent); margin-bottom: .45rem; }

/* "Browse all" card tile */
.card-cta-tile { background: var(--brand); border-color: var(--brand); }
.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(--highlight); }

/* Feature card (bordered) */
.feature-card { display: block; background: var(--card); border: 1.5px solid var(--line-strong); border-left: 5px solid var(--accent); padding: var(--sp-5); color: inherit; }
.feature-card:hover { border-left-color: var(--brand); text-decoration: none; }
.feature-card:hover h3 { color: var(--brand); }
.feature-card h3 { font-family: var(--display); font-size: var(--fs-xl); margin: .2rem 0 .5rem; }
.feature-card p { color: var(--ink-soft); }
.tool-tile { border-left-color: var(--brand-soft); }

/* 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(--brand); }
.place-feature:hover, .compare-tile:hover { text-decoration: none; border-color: var(--brand); }
.place-media { aspect-ratio: 16/9; background: var(--paper-2); display: flex; align-items: center; justify-content: center; color: var(--brand); 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(--display); 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(--display); 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(--highlight); }
.compare-tile h3 { font-family: var(--display); margin: .3rem 0 .5rem; }
.compare-tile h3 em { font-style: normal; color: var(--accent); 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(--highlight); text-decoration: none; }
.expert-tile .expert-avatar { width: 2.9rem; height: 2.9rem; background: var(--brand-soft); 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(--display); }
.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(--highlight); }
.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(--accent); color: #fff; border-color: var(--accent); }
.btn.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-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(--accent); padding-top: var(--sp-3); }
.method-num { font-family: var(--mono); font-size: var(--fs-lg); font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.method-step h3 { font-family: var(--display); 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(--brand); padding: var(--sp-4); color: inherit; }
.path-step:hover { border-color: var(--brand); text-decoration: none; }
.path-step:hover h3 { color: var(--brand); }
.path-num { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.path-step h3 { font-family: var(--display); 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(--accent); }

/* 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(--display); font-weight: 600; height: 100%; }
.source-grid a:hover { border-color: var(--brand); text-decoration: none; color: var(--brand); }
.source-grid i { color: var(--accent); font-size: 1.2rem; flex: none; }

/* Newsletter / field-notes strip (pine band) */
.newsletter-band { background: var(--brand); color: #e9e0c8; }
.newsletter-band .eyebrow { color: var(--highlight); }
.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(--highlight); }
.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: heat 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(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); 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(--accent); background: var(--card); color: var(--ink); }
.related-nav-tile:hover { border-color: var(--brand); border-top-color: var(--brand); text-decoration: none; }
.related-nav-tile:hover strong { color: var(--brand); }
.related-nav-tile > i { font-size: 1.7rem; color: var(--accent); display: block; margin-bottom: .5rem; }
.related-nav-tile strong { display: block; color: var(--ink); font-family: var(--display); 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(--display); 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(--brand-soft); background: var(--card); padding: var(--sp-4); margin: var(--sp-6) 0; }
.callout > strong:first-child { display: block; font-family: var(--display); font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.callout p:last-child { margin-bottom: 0; }
.callout-note { border-left-color: var(--brand); }
.callout-note > strong:first-child { color: var(--brand); }
.callout-warning { border-left-color: var(--accent); background: var(--paper-2); }
.callout-warning > strong:first-child { color: var(--accent-deep); }
.callout-tip { border-left-color: var(--highlight); }
.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(--accent); background: var(--card); padding: var(--sp-4); }
.principle .n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); letter-spacing: .1em; }
.principle h3 { margin: var(--sp-1) 0 var(--sp-2); font-family: var(--display); }
.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(--accent); 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(--brand); width: 2rem; height: 1.7rem; display: flex; align-items: center; justify-content: center; }
.process-steps > li strong { display: block; font-family: var(--display); }

/* 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(--accent); }
.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(--accent); text-decoration: none; }
.page-toc a:hover { color: var(--brand); 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(--accent); 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.35rem; margin-bottom: .35rem; }
/* A tick implies a completed task; these are ordinary fact lists, and an article
   carries many of them, so use a small neutral marker in the section hue. */
.checklist li::before { content: "\25AA"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--silo, var(--brand)); }

/* 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(--highlight); font-family: var(--display); 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(--display); font-size: var(--fs-2xl); line-height: 1; color: var(--brand); }
.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); }

/* 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(--brand-soft); }
.score-num { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-soft); }

/* 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(--heat-mild); }
.proscons .cons { border-top: 4px solid var(--heat-fiery); }
.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(--heat-mild); }
.proscons .cons h4 { color: var(--heat-fiery); }
.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(--heat-mild); font-weight: 700; }
.proscons .cons li::before { content: "\2212"; position: absolute; left: 0; color: var(--heat-fiery); 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(--brand); padding: .7rem 1.2rem; border: 1.5px solid var(--brand); }
.cta-inline:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; }

@media (max-width: 560px) {
  .proscons { grid-template-columns: 1fr; }
  .score-row { grid-template-columns: 1fr auto; }
}

/* ---------- 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; }
}

/* ==========================================================================
   Per-silo color code (KnowTheSpices signature)
   Any element carrying data-silo exposes --silo to its subtree, so eyebrows,
   card accent bars, and hub headers pick up that section's spice hue without
   per-page overrides. Silo slugs are the INTERNAL ones from data/architecture.php.
   ========================================================================== */
[data-silo="individual-spices"]  { --silo: var(--silo-individual-spices); }
[data-silo="herbs"]              { --silo: var(--silo-herbs); }
[data-silo="spice-blends"]       { --silo: var(--silo-spice-blends); }
[data-silo="cooking-techniques"] { --silo: var(--silo-cooking-techniques); }
[data-silo="health-wellness"]    { --silo: var(--silo-health-wellness); }
[data-silo="world-cuisines"]     { --silo: var(--silo-world-cuisines); }
[data-silo="storage-buying"]     { --silo: var(--silo-storage-buying); }
[data-silo="spice-science"]      { --silo: var(--silo-spice-science); }
[data-silo="history-origins"]    { --silo: var(--silo-history-origins); }

/* Soft-rounded surfaces, matching the rounded brand mark. */
.card, .fact-card, .related-card, .callout, .table-wrap, .article-image img,
.card-media, .hub-hero img, .page-hero-img img { border-radius: var(--radius); }

/* Card: a full-width silo-coloured rule reads as deliberate colour-coding.
   (An earlier partial-width bar looked like a rendering fault.) */
.card { position: relative; overflow: hidden; background: var(--card); }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: var(--silo, var(--brand)); transform: none; opacity: .9;
  transition: opacity .18s ease;
}
.card:hover::before { opacity: 1; }

/* Even card bottoms: body fills the card, the call to action pins to the base,
   so a row of cards never ends in a ragged staircase. */
.card-link { display: flex; flex-direction: column; }
.card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card-more { margin-top: auto; padding-top: .2rem; }

/* Titles sized for a 4-up grid: the photo leads, the title supports it. */
.card-title { font-family: var(--display); font-size: 1.12rem; line-height: 1.28; letter-spacing: -.005em; }
.card-desc { font-size: .95rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-grid.is-solo .card-title { font-size: var(--fs-lg); }

/* Hub/article headers tint their kicker + a short rule in the silo hue. */
.page-head .eyebrow, .article-head .eyebrow { color: var(--silo, var(--accent)); }
.page-head h1::after {
  content: ""; display: block; width: 3.5rem; height: 3px; margin-top: .6rem;
  background: var(--silo, var(--brand)); border-radius: 2px;
}

/* Source citations: author (year) Title. Publication. — kept legible and compact. */
.source-list .source-item { display: block; margin-bottom: .45rem; line-height: 1.5; }
.source-item .src-author { font-weight: 600; color: var(--ink); }
.source-item .src-year { color: var(--ink-soft); margin: 0 .15rem; }
.source-item cite { font-style: italic; color: var(--ink); }
.source-item .src-pub { color: var(--ink-soft); }
.source-item .src-pub::before { content: " \00b7 "; color: var(--line-strong); }

/* Substitution finder results: the job leads, because a swap that is right for
   colour is usually wrong for heat. */
.sub-list { list-style: none; padding: 0; margin: var(--sp-3) 0 0; }
.sub-item { display: block; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius);
  padding: var(--sp-3); margin-bottom: var(--sp-2); }
.sub-context { display: block; font-family: var(--mono); font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .3rem; }
.sub-name { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.sub-ratio { display: block; font-weight: 600; color: var(--ink); margin-top: .2rem; }
.sub-notes { display: block; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: .2rem; }
.sub-more { margin-top: var(--sp-3); font-size: var(--fs-sm); }

/* =========================================================================
   ICON SYSTEM
   One shape for every icon on the site: a solid-filled circle with a single
   glyph inside. One size, so a page never mixes 44px here and 72px there.
   Solid fills only — a gradient reads as indecisive at this size.
   ========================================================================= */

.kts-icon {
  --kts-icon-size: 48px;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--kts-icon-size); height: var(--kts-icon-size);
  border-radius: 50%;
  background: var(--brand);
  color: #FFF6E9;
  font-size: calc(var(--kts-icon-size) * .46);
  line-height: 1;
}

/* Brand pages lead with the icon instead of a hero image, so it steps up one
   size. Same proportions, same fill rules. */
.kts-icon--hero { --kts-icon-size: 56px; }

.kts-icon--gold {
  background: var(--highlight);
  /* Deliberately not white: white on turmeric gold falls under 2:1 and the glyph
     disappears. The dark ink keeps the same solid-fill logic and stays legible. */
  color: var(--ink);
}

/* Inside any element carrying data-silo, the icon takes that silo's hue, so a
   card, hub header and nav row all agree on what colour a section is. */
.kts-icon--silo { background: var(--silo, var(--silo-default)); }

/* =========================================================================
   SILO TAGLINE — the editorial promise band on hub pages
   One icon, one sentence, nothing else. Slim padding: a full 4rem band around
   a single row of text reads as broken rather than spacious.
   ========================================================================= */

.silo-promise {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: var(--sp-4) 0;
}
.silo-promise__inner { display: flex; align-items: center; gap: var(--sp-4); }
.silo-promise__text {
  font-family: var(--display);
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}

/* =========================================================================
   SLIM SIGNAL BANDS — trust strip and stats strip
   These carry numbers and one-word labels, never paragraphs. Adding prose here
   is how a page starts looking generated.
   ========================================================================= */

.signal-strip { padding: var(--sp-5) 0; }
.signal-strip--dark { background: var(--ink); color: var(--paper); }
.signal-strip--tint { background: var(--paper-2); border-block: 1px solid var(--line); }

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.signal {
  display: flex; align-items: center; gap: var(--sp-3);
  min-width: 0;
}
.signal__value {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 600;
}
.signal__label {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .09em;
  opacity: .78;
  margin-top: .15rem;
}
.signal-strip--dark .signal__label { opacity: .72; }

@media (max-width: 900px) {
  .signal-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}
@media (max-width: 520px) {
  .signal-grid { grid-template-columns: 1fr; }
  .silo-promise__inner { align-items: flex-start; }
}

/* =========================================================================
   RECENT LIST — compact icon + title rows, no descriptions
   ========================================================================= */

.recent-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.recent-item a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.recent-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(45, 31, 20, .12);
  border-color: var(--silo, var(--brand));
}
.recent-kind {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--silo, var(--brand));
  margin-bottom: .2rem;
}
.recent-name {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 900px) { .recent-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recent-list { grid-template-columns: 1fr; } }

/* =========================================================================
   ARTICLE FIGURE — recovered title and cue list
   ========================================================================= */

.article-image__title {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--silo, var(--brand));
  margin-bottom: .3rem;
}
.article-image__cues {
  list-style: none;
  margin: var(--sp-3) auto 0;
  padding: var(--sp-3) var(--sp-4);
  max-width: var(--block-w);
  background: var(--paper-2);
  border-left: 3px solid var(--silo, var(--brand));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}
.article-image__cues li { margin: .25rem 0; padding-left: 1rem; position: relative; }
.article-image__cues li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--silo, var(--brand));
}

.pull-quote__credential {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-top: .2rem;
}

/* =========================================================================
   BREADCRUMBS — house icon, chevron separators
   ========================================================================= */

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; }
.breadcrumb li { display: inline-flex; align-items: center; }
/* The separator is a real icon element in the markup rather than a pseudo-element with
   a hardcoded codepoint, which would render as a blank box if the icon font shifts. */
.breadcrumb .crumb-sep { font-size: .78em; opacity: .5; margin: 0 .4rem; }
.breadcrumb .crumb-home { display: inline-flex; align-items: center; gap: .3rem; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { font-weight: 600; color: var(--ink); }

/* Nav icons sit with their label, small and inline — the circle treatment is for
   content, not for a dense nav bar. */
.site-nav .nav-icon { margin-right: .35rem; opacity: .75; font-size: .95em; }

/* =========================================================================
   BRAND / TRUST PAGES — institutional, not editorial
   ========================================================================= */

.brand-head {
  display: flex; align-items: center; gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--line);
}
.brand-head h1 { margin: .1rem 0 0; }
.brand-page .lead { margin-top: var(--sp-4); }

.brand-siblings {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.brand-siblings__head {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-4);
}
.brand-siblings ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.brand-siblings a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.3;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-siblings a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(45, 31, 20, .12);
  border-color: var(--brand);
}

@media (max-width: 860px) { .brand-siblings ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .brand-siblings ul { grid-template-columns: 1fr; }
  .brand-head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

/* =========================================================================
   READING PROGRESS — article pages only
   Rendered from the same two brand hues rather than a third accent, so it reads
   as part of the header rather than as a separate widget.
   ========================================================================= */

.reading-progress {
  position: fixed; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.reading-progress__fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--highlight));
  transition: width .1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress__fill { transition: none; }
}

/* =========================================================================
   SOURCES — numbered badges
   The number is generated by a counter, so the markup stays a plain list and the
   numbering cannot drift out of step with the entries.
   ========================================================================= */

.source-list { counter-reset: src; list-style: none; padding-left: 0; }
.source-item {
  counter-increment: src;
  position: relative;
  padding-left: calc(var(--sp-5) + 1rem);
  margin-bottom: var(--sp-4);
}
.source-item::before {
  content: counter(src);
  position: absolute; left: 0; top: .1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #FFF6E9;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
}

/* =========================================================================
   TABLE OF CONTENTS — numbered badges, current-section state
   Numbering comes from a counter so it cannot drift from the list, matching the
   sources list. The current item is set by IntersectionObserver in footer.php.
   ========================================================================= */

.page-toc ol, .page-toc ul { counter-reset: toc; list-style: none; padding-left: 0; margin: 0; }
.page-toc li { counter-increment: toc; margin: .12rem 0; }
.page-toc a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: .4rem .5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.35;
  transition: background .16s ease, color .16s ease;
}
.page-toc a::before {
  content: counter(toc);
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  transition: background .16s ease, color .16s ease;
}
.page-toc a:hover { background: var(--paper-2); color: var(--ink); }
.page-toc a.is-current { color: var(--ink); font-weight: 600; }
.page-toc a.is-current::before { background: var(--brand); color: #FFF6E9; }
