/* North Settlements | Design system v2.0
   Dark-committed "instrument in the dark" theme: precision fintech
   tooling rendered in a night-city palette. Single visual world by
   intent, so no light-theme token block; every colour is painted
   explicitly and nothing is inherited from the host. */

:root {
  /* ---- ground ---- */
  --void:      #06090F;   /* page ground, blue-black not pure black */
  --panel:     #0C121C;   /* cards and raised surfaces */
  --panel-hi:  #121A26;   /* hover / elevated */
  --sunken:    #04070C;   /* deep wells, footer */

  /* ---- structure ---- */
  --line:      #1A2534;   /* hairlines, the grid */
  --line-hi:   #27394F;   /* emphasised borders */

  /* ---- ink ---- */
  --ink:       #DCE6F2;
  --ink-dim:   #7D93AC;
  --ink-faint: #6B7F98;

  /* ---- signal ----
     azure is the brand blue (#1C5A96) pushed electric and carries all
     the weight; amber is the brand brass (#8C6A1F) brightened and is
     reserved for categorical labels only. Two accents, no more. */
  --azure:     #38A8FF;
  --azure-hi:  #7CC9FF;
  --azure-dim: #1D5C8F;
  --azure-wash: rgba(56, 168, 255, 0.10);
  --amber:     #FFB224;

  /* ---- type ---- */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- space, 4px base ---- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --space-24: 96px; --space-32: 128px;

  --radius-sm: 2px; --radius-md: 3px;

  --container-max: 1160px; --container-narrow: 720px;

  --duration-fast: 120ms; --duration-base: 200ms; --duration-slow: 340ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--azure);
  padding: var(--space-3) var(--space-4); z-index: 100;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

::selection { background: var(--azure); color: var(--void); }

/* ---------- type roles ---------- */
h1, h2, .display {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.02em; text-wrap: balance;
}
.display { font-size: 52px; line-height: 1.05; }
h1 { font-size: 40px; line-height: 1.1; }
h2 { font-size: 30px; line-height: 1.15; }
h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.body-lg { font-size: 19px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.55; }

/* the mono label is the recurring structural device: it marks a
   category, never decorates */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.muted { color: var(--ink-dim); }

a { color: var(--azure); text-decoration: none; }
a:hover { color: var(--azure-hi); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- layout ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: var(--container-narrow); }
section { padding: var(--space-16) 0; }

/* hairline rules carry the structure between sections */
.ruled { border-top: 1px solid var(--line); }

/* signature: the compass needle crossing the settlement line */
.settle-line { display: flex; align-items: center; margin: 0 auto var(--space-8); max-width: 240px; }
.settle-line::before, .settle-line::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure-dim), transparent);
}
.settle-line .needle {
  width: 0; height: 0; margin: 0 var(--space-3);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 12px solid var(--azure);
  filter: drop-shadow(0 0 6px rgba(56, 168, 255, 0.55));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-mono);
  font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius-md);
  min-height: 46px; border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
}
.btn-primary {
  background: var(--azure); color: var(--void); font-weight: 600;
  box-shadow: 0 0 0 1px var(--azure), 0 0 22px rgba(56, 168, 255, 0.22);
}
.btn-primary:hover {
  background: var(--azure-hi); color: var(--void); text-decoration: none;
  box-shadow: 0 0 0 1px var(--azure-hi), 0 0 30px rgba(56, 168, 255, 0.38);
}
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-hi); }
.btn-secondary:hover { border-color: var(--azure); color: var(--azure); text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 9, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) 0; gap: var(--space-6);
}
.logo { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--ink); }
/* the compass mark, drawn as SVG so it stays crisp at any size and
   re-themes from tokens. The header uses a reduced form of the full
   lockup: the circuit traces in images/logo.svg are illegible below
   about 40px, so only the bezel, needle and node survive here. */
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; overflow: visible; }
.logo-mark .bezel { fill: none; stroke: var(--ink-dim); stroke-width: 3.2; stroke-linecap: round; }
.logo-mark .needle-a { fill: var(--ink); }
.logo-mark .needle-b { fill: var(--ink-dim); }
.logo-mark .trace { fill: none; stroke: var(--ink-faint); stroke-width: 2.4; stroke-linecap: round; }
.logo-mark .node { fill: var(--azure); }
.logo:hover .logo-mark .node { fill: var(--azure-hi); }

/* stacked wordmark, matching the lockup: name over descriptor, both
   letterspaced, the descriptor set to roughly the width of the name */
.logo-type { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo-name {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.logo-sub {
  font-family: var(--font-mono); font-weight: 500; font-size: 8.5px;
  letter-spacing: 0.235em; text-transform: uppercase; color: var(--ink-dim);
}
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav a:not(.btn) {
  color: var(--ink-dim); font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.06em;
}
.nav a:not(.btn):hover { color: var(--azure); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { padding: 10px 18px; min-height: 0; font-size: 12px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--space-24) 0 var(--space-16);
  border-bottom: 1px solid var(--line);
}
/* faint coordinate grid: the only decorative texture on the site */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.hero > .container { position: relative; }
.hero .eyebrow { display: block; margin-bottom: var(--space-6); }
.hero h1 { font-size: 52px; line-height: 1.05; max-width: 20ch; margin: 0 0 var(--space-6); }
.hero .sub { max-width: 58ch; margin: 0 0 var(--space-8); color: var(--ink-dim); }
.hero-actions { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.hero-actions a:not(.btn) { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }

@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(10px); animation: fadeUp var(--duration-slow) var(--ease-out) forwards; }
  .fade-up.d1 { animation-delay: 70ms; }
  .fade-up.d2 { animation-delay: 140ms; }
  .fade-up.d3 { animation-delay: 210ms; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

/* ---------- section heads ---------- */
.section-head { margin-bottom: var(--space-12); }
.section-head .eyebrow { display: block; margin-bottom: var(--space-4); }
.section-head h2 { max-width: 24ch; }
.section-head p { color: var(--ink-dim); max-width: 60ch; margin-top: var(--space-4); }

/* ---------- the conflict ---------- */
.problem { border-top: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.problem-item { border-top: 1px solid var(--azure-dim); padding-top: var(--space-5, 20px); }
.problem-item h3 { margin-bottom: var(--space-3); }
.problem-item p { color: var(--ink-dim); font-size: 15px; }

/* ---------- process ---------- */
.process { background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--void); padding: var(--space-8) var(--space-6); }
/* a real sequence, so the numbering encodes something true */
.step-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--azure); margin-bottom: var(--space-4);
}
.step h3 { margin-bottom: var(--space-3); }
.step p { color: var(--ink-dim); font-size: 15px; }

/* ---------- audiences ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-6);
  transition: border-color var(--duration-base) var(--ease-out);
}
.card:hover { border-color: var(--line-hi); }
.card h3 { margin-bottom: var(--space-3); }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--azure); text-decoration: none; }
.card p { color: var(--ink-dim); font-size: 15px; }
.aud-note { margin-top: var(--space-8); color: var(--ink-dim); font-size: 14px; }

/* ---------- comparison ---------- */
.compare { border-top: 1px solid var(--line); }
.compare table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  border: 1px solid var(--line); background: var(--panel);
}
.compare th, .compare td {
  padding: var(--space-4) var(--space-4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); background: var(--sunken);
}
.compare td { color: var(--ink-dim); }
.compare td:first-child, .compare th:first-child { color: var(--ink); width: 24%; }
.compare tr:last-child td { border-bottom: none; }
.compare th.us { color: var(--azure); }
.compare td.us { color: var(--ink); background: var(--azure-wash); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  cursor: pointer; padding: var(--space-5, 20px) var(--space-8) var(--space-5, 20px) 0;
  list-style: none; position: relative; color: var(--ink);
  transition: color var(--duration-base) var(--ease-out);
}
.faq summary:hover { color: var(--azure); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--azure); border-bottom: 1.5px solid var(--azure);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--duration-base) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 var(--space-6); color: var(--ink-dim); max-width: 68ch; }

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center; position: relative; overflow: hidden;
  background: var(--sunken); border-top: 1px solid var(--line);
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(56,168,255,0.10), transparent 70%);
}
.final-cta > .container { position: relative; }
.final-cta h2 { color: var(--ink); max-width: 26ch; margin: 0 auto var(--space-8); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sunken); border-top: 1px solid var(--line);
  padding: var(--space-16) 0 var(--space-8); font-size: 14px;
}
.footer-grid { display: flex; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; margin-bottom: var(--space-12); }
.footer-grid nav { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { color: var(--ink-dim); font-family: var(--font-mono); font-size: 13px; }
.footer-grid a:hover { color: var(--azure); }
.footer-legal {
  border-top: 1px solid var(--line); padding-top: var(--space-6);
  color: var(--ink-faint); font-size: 12px; line-height: 1.6;
}
.footer-legal p + p { margin-top: var(--space-2); }
.footer-legal a { color: var(--ink-dim); }

/* ---------- legal pages ---------- */
.legal-page { padding: var(--space-16) 0 var(--space-24); }
.legal-page h1 { margin-bottom: var(--space-3); }
.legal-page .updated { font-family: var(--font-mono); color: var(--ink-faint); font-size: 13px; margin-bottom: var(--space-8); }
.legal-page h2 { font-size: 22px; margin: var(--space-12) 0 var(--space-4); }
.legal-page p { max-width: 68ch; margin-bottom: var(--space-4); color: var(--ink-dim); }
.legal-page ul { max-width: 68ch; margin: 0 0 var(--space-4) var(--space-6); color: var(--ink-dim); }
.legal-page li { margin-bottom: var(--space-2); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: var(--space-32) 0; }
.error-page h1 { margin-bottom: var(--space-4); }
.error-page p { color: var(--ink-dim); margin-bottom: var(--space-8); }

/* ---------- insights index ---------- */
/* Category accents. The core palette is two signals only, so these seven
   are scoped to the insights index, where the reader needs to tell topics
   apart at a glance. Each is set as --accent on the card and the chip. */
[data-cat="start-here"]       { --accent: #6FD3FF; }
[data-cat="market-structure"] { --accent: #FFB224; }
[data-cat="cross-border"]     { --accent: #35D6B0; }
[data-cat="treasury"]         { --accent: #B79BFF; }
[data-cat="merchants"]        { --accent: #FF8F6B; }
[data-cat="economics"]        { --accent: #7ED957; }
[data-cat="regulation"]       { --accent: #FF6FA5; }
[data-cat="all"]              { --accent: var(--azure); }

.insights-head { padding: var(--space-24) 0 0; }
.insights-head .eyebrow { display: block; margin-bottom: var(--space-6); }
.insights-head h1 { max-width: 20ch; margin: 0 0 var(--space-6); }
.insights-head .sub { max-width: 60ch; color: var(--ink-dim); }

/* toolbar: search plus category filters, hidden until script confirms it
   can drive them so the controls are never dead */
.insights-toolbar {
  display: none; margin-top: var(--space-12);
  padding-top: var(--space-8); border-top: 1px solid var(--line);
}
.js .insights-toolbar { display: block; }

.search-field { position: relative; max-width: 440px; }
.search-field label {
  display: block; font-family: var(--font-mono); font-size: 11px;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: var(--space-2);
}
.search-field input {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-3) 40px var(--space-3) var(--space-4);
  transition: border-color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.search-field input::placeholder { color: var(--ink-faint); }
.search-field input::-webkit-search-cancel-button,
.search-field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-field input:focus { outline: none; border-color: var(--azure-dim); background: var(--panel-hi); }
.search-field input:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.search-clear {
  position: absolute; right: var(--space-2); bottom: 5px;
  width: 30px; height: 30px; display: none; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink-faint);
  font-family: var(--font-mono); font-size: 18px; line-height: 1;
}
.search-clear:hover { color: var(--azure); }
.search-field.has-value .search-clear { display: grid; }

.filter-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.filter-chips button {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-dim); background: var(--panel); cursor: pointer;
  border: 1px solid var(--line); border-radius: 100px;
  padding: var(--space-2) var(--space-4);
  transition: border-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out);
}
.filter-chips button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.filter-chips button:hover { color: var(--ink); border-color: var(--line-hi); background: var(--panel-hi); }
.filter-chips button[aria-pressed="true"] {
  color: var(--void); background: var(--accent); border-color: var(--accent); font-weight: 500;
}
.filter-chips button[aria-pressed="true"]::before { background: rgba(6, 9, 15, 0.45); }
.filter-chips button .count { opacity: 0.65; }

.result-count {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-faint); margin-top: var(--space-6); min-height: 20px;
}

/* ---------- the archive: newest first, grouped by month ---------- */
.archive { padding: var(--space-12) 0 var(--space-24); }
.month-group { padding: 0; }
.month-group + .month-group { margin-top: var(--space-16); }
.month-rule {
  display: flex; align-items: center; gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.month-rule h2 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
  scroll-margin-top: 88px; flex: none;
}
.month-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8) var(--space-6); }

.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.post-card:hover { border-color: var(--line-hi); background: var(--panel-hi); transform: translateY(-2px); }
.post-card[hidden] { display: none; }

.card-cover { display: block; position: relative; border-bottom: 1px solid var(--line); }
.card-cover img {
  /* height:auto is required: the img carries width/height attributes, and
     that presentational height would otherwise win over aspect-ratio */
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  background: var(--sunken);
}
/* the accent rule under the cover is the category signal at a glance */
.card-cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--accent); opacity: 0.85;
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-6); }
.card-cat {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-3);
}
.card-cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.post-card h3 { font-size: 19px; line-height: 1.3; margin-bottom: var(--space-3); }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card .excerpt { color: var(--ink-dim); font-size: 14.5px; line-height: 1.6; margin-bottom: var(--space-6); }
.post-card .card-meta {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
}
.post-card .card-meta .dot { color: var(--line-hi); }

.no-results {
  display: none; padding: var(--space-16) 0; color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.no-results.show { display: block; }
.no-results strong { color: var(--ink); font-weight: 600; }

/* ---------- article ---------- */
.article-page { padding: var(--space-16) 0 var(--space-24); }
.article-head { margin-bottom: var(--space-12); }
.article-head .crumb { font-family: var(--font-mono); font-size: 13px; margin-bottom: var(--space-8); }
.article-head .crumb a { color: var(--ink-dim); }
.article-head .crumb a:hover { color: var(--azure); }
.article-head .eyebrow { display: block; margin-bottom: var(--space-4); }
.article-head h1 { margin-bottom: var(--space-6); max-width: 24ch; }
.article-head .standfirst { font-size: 19px; line-height: 1.6; color: var(--ink-dim); max-width: 60ch; margin-bottom: var(--space-8); }
.article-meta {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.article h2 { font-size: 26px; margin: var(--space-16) 0 var(--space-4); max-width: 30ch; }
.article h3 { margin: var(--space-8) 0 var(--space-3); }
.article p { max-width: 68ch; margin-bottom: var(--space-4); color: var(--ink-dim); }
.article ul, .article ol { max-width: 68ch; margin: 0 0 var(--space-4) var(--space-6); color: var(--ink-dim); }
.article li { margin-bottom: var(--space-3); }
.article strong { color: var(--ink); font-weight: 600; }
.article table {
  width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); font-size: 15px; margin-bottom: var(--space-6);
}
.article th, .article td {
  padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); color: var(--ink-dim);
}
.article thead th {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: var(--sunken);
}
.article tbody td:first-child { color: var(--ink); }
.article tr:last-child td { border-bottom: none; }
.article .table-note { font-size: 13px; color: var(--ink-faint); margin-top: calc(-1 * var(--space-4)); margin-bottom: var(--space-6); }

/* answer-first box: the extractable summary, marked by the amber rule */
.short-answer {
  border: 1px solid var(--line); border-left: 2px solid var(--amber);
  background: var(--panel); border-radius: var(--radius-sm);
  padding: var(--space-6); margin: 0 0 var(--space-12); max-width: 68ch;
}
.short-answer p { margin-bottom: 0; color: var(--ink); }

.callout {
  border: 1px solid var(--azure-dim); background: var(--azure-wash);
  border-radius: var(--radius-sm);
  padding: var(--space-6); margin: var(--space-8) 0; max-width: 68ch;
}
.callout p { margin-bottom: 0; color: var(--ink-dim); }
.callout p + p { margin-top: var(--space-3); }

.article .faq-block { margin-top: var(--space-16); }
.article .faq-block h2 { margin-bottom: var(--space-6); }

.article-cta {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-12) var(--space-8);
  margin-top: var(--space-16); text-align: center;
}
.article-cta h2 { margin: 0 auto var(--space-4); font-size: 24px; max-width: 24ch; }
.article-cta p { max-width: 52ch; margin: 0 auto var(--space-8); color: var(--ink-dim); }

.article-footer-nav {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid var(--line); font-size: 15px;
}
.article-footer-nav p { margin-bottom: var(--space-3); color: var(--ink-dim); }
.article-footer-nav strong {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
}
.article .disclaimer { font-size: 13px; color: var(--ink-faint); margin-top: var(--space-12); max-width: 68ch; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  section { padding: var(--space-16) 0; }
  .container { padding: 0 var(--space-4); }
  .hero { padding: var(--space-24) 0 var(--space-16); }
  .hero h1, .display { font-size: 34px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .problem-grid, .aud-grid, .steps, .post-grid { grid-template-columns: 1fr; }
  .search-field { max-width: none; }
  .nav { gap: var(--space-4); }
  .nav a.nav-link { display: none; }
  .compare, .article-page { overflow-x: hidden; }
  .compare table, .article table { display: block; overflow-x: auto; white-space: nowrap; }
  .article table { white-space: normal; min-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* audience qualification band, folded into the hero so it no longer
   needs a section of its own */
.hero-for {
  display: flex; align-items: baseline; gap: var(--space-4) var(--space-6);
  flex-wrap: wrap; margin-top: var(--space-16);
  padding-top: var(--space-6); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px;
}
.hero-for dt { color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.hero-for dd { color: var(--ink-dim); margin: 0; }
.hero-for dd + dd::before { content: "/"; color: var(--line-hi); margin-right: var(--space-6); }

/* the FAQ list keeps a readable measure without centring its container,
   so its label stays on the same left edge as every other section */
.faq details { max-width: 820px; }

/* article header image. Width/height attributes on the <img> reserve the
   3:2 box before the file loads, so adding these costs no layout shift. */
.article-hero {
  margin: 0 0 var(--space-12);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
}
.article-hero img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.article-hero figcaption {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line);
}
