/* Door frame design tokens (see docs/DESIGN_DOOR_FRAME.md).
   Timber, crayon colours and pencil marks. Light theme is the default. The
   dark theme applies from the system setting, or when data-theme="dark" is
   set on the root element; the two dark blocks below must stay identical.
   Every pairing used here is measured by tools/contrast.js and listed in the
   README. Run `npm run contrast` after changing any colour. */

:root {
  /* Page and ink */
  --color-bg: #FAF7F2;            /* page: warm white */
  --color-surface: #FFFFFF;       /* cards, inputs */
  --color-wall: #F3E7D6;          /* tinted panels and the ground of every drawing */
  --color-text: #33291F;          /* warm brown-black */
  --color-text-muted: #5E5347;
  --color-heading: #4A2F1B;       /* headlines: a warmer brown than body ink */
  --color-rule: #E6D8C3;          /* decorative lines only */
  --color-rule-strong: #8F6F4A;   /* edges that carry meaning: inputs, chips */
  --color-timber: #D9B48A;        /* bands and dividers */
  --color-timber-shade: #C39A6B;

  /* Crayon colours darkened until they are safe for text and thin lines.
     The bright crayon fills are the --art-* tokens further down. */
  --color-link: #2459AE;          /* from crayon blue #3A7BD5 */
  --color-button: #2459AE;
  --color-button-text: #FFFFFF;
  --color-green-text: #2E7548;    /* from crayon green #4CA66B */
  --color-accent-text: #8A4B14;   /* small labels: topic, tagline */
  --color-chip: #F6ECDD;          /* evidence-grade label fill */
  --color-focus: #2459AE;

  /* "Worth raising": crayon yellow with dark amber text. Never red. */
  --color-caution-text: #7A5200;
  --color-caution-fill: #FCEBB5;
  --color-caution-border: #A87400;

  /* The milestone ruler. It is a drawn object, so it stays timber in both themes. */
  --ruler-timber: #D9B48A;
  --ruler-edge: #8F6F4A;
  --ruler-ink: #33291F;
  --ruler-graphite: #3B3B3B;

  /* Illustration fills */
  --art-wall: #F3E7D6;
  --art-floor: #E3C9A4;
  --art-floor-line: #CDAE84;
  --art-skirt: #FFF9EE;
  --art-room: #E7D3B6;
  --art-room-floor: #D3B68F;
  --art-sky: #CFE4F6;
  --art-table: #D9B48A;
  --art-table-line: #C39A6B;
  --art-timber: #D9B48A;
  --art-timber-shade: #C39A6B;
  --art-timber-light: #EBD3B0;
  --art-blue: #3A7BD5;
  --art-green: #4CA66B;
  --art-green-dark: #3A8A56;
  --art-red: #E8543E;
  --art-yellow: #F2B632;
  --art-paper: #FFFDF7;
  --art-graphite: #3B3B3B;        /* pencil on timber or paper */
  --art-pencil: #3B3B3B;          /* pencil drawn straight onto the wall or card */
  --art-metal: #B9B2A8;
  --art-bear: #B5814F;

  /* Type families */
  --font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale: long-form reading (serif) */
  --read-size: 1.125rem;          /* 18px on phones */
  --read-leading: 1.6;
  --read-measure: 66ch;
  --read-h1: 2.125rem;            /* 34px */
  --read-h2: 1.625rem;            /* 26px */
  --read-h3: 1.3125rem;           /* 21px */
  --read-small: 0.9375rem;        /* 15px: captions, source notes */
  --read-weight-strong: 600;
  --read-weight-heading: 600;

  /* Interface text (sans) */
  --tool-size: 1rem;
  --tool-leading: 1.45;

  /* Spacing: 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Layout */
  --gutter: 1rem;
  --figure-max: 45rem;
  --tap-min: 3rem;                /* 48px touch target */
  --radius: 0.75rem;              /* inputs, small boxes */
  --radius-lg: 1.25rem;           /* cards, panels, drawings */
  --radius-pill: 999px;           /* buttons, chips */
}

@media (min-width: 48rem) {
  :root {
    --read-size: 1.1875rem;       /* 19px on desktop */
    --read-h1: 2.75rem;           /* 44px */
    --read-h2: 1.875rem;          /* 30px */
    --read-h3: 1.375rem;          /* 22px */
    --gutter: 1.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #241C15;
    --color-surface: #30261D;
    --color-wall: #3A2E23;
    --color-text: #F3EBDF;
    --color-text-muted: #C9BCAA;
    --color-heading: #F7DDB8;
    --color-rule: #4A3B2E;
    --color-rule-strong: #A88C6C;
    --color-timber: #C9A57C;
    --color-timber-shade: #A98458;
    --color-link: #9CC2F5;
    --color-button: #9CC2F5;
    --color-button-text: #1B1510;
    --color-green-text: #86D2A0;
    --color-accent-text: #F0BE6A;
    --color-chip: #43352A;
    --color-focus: #9CC2F5;
    --color-caution-text: #F5CB62;
    --color-caution-fill: #3D2F10;
    --color-caution-border: #C99A2E;
    --ruler-timber: #C9A57C;
    --ruler-edge: #A98458;
    --ruler-ink: #2A2118;
    --ruler-graphite: #2F2F2F;
    --art-wall: #3A2E23;
    --art-floor: #5C452E;
    --art-floor-line: #4A3724;
    --art-skirt: #4F3F30;
    --art-room: #2B2118;
    --art-room-floor: #4A3724;
    --art-sky: #2D3F5E;
    --art-table: #7A5A3A;
    --art-table-line: #644830;
    --art-timber: #C9A57C;
    --art-timber-shade: #A98458;
    --art-timber-light: #DCC09A;
    --art-blue: #5B93E0;
    --art-green: #5DB37B;
    --art-green-dark: #47936A;
    --art-red: #EC6A56;
    --art-yellow: #F2BC45;
    --art-paper: #F4EADB;
    --art-graphite: #3B3B3B;
    --art-pencil: #DDD3C5;
    --art-metal: #A8A096;
    --art-bear: #B5814F;
  }
}

:root[data-theme="dark"] {
  --color-bg: #241C15;
  --color-surface: #30261D;
  --color-wall: #3A2E23;
  --color-text: #F3EBDF;
  --color-text-muted: #C9BCAA;
  --color-heading: #F7DDB8;
  --color-rule: #4A3B2E;
  --color-rule-strong: #A88C6C;
  --color-timber: #C9A57C;
  --color-timber-shade: #A98458;
  --color-link: #9CC2F5;
  --color-button: #9CC2F5;
  --color-button-text: #1B1510;
  --color-green-text: #86D2A0;
  --color-accent-text: #F0BE6A;
  --color-chip: #43352A;
  --color-focus: #9CC2F5;
  --color-caution-text: #F5CB62;
  --color-caution-fill: #3D2F10;
  --color-caution-border: #C99A2E;
  --ruler-timber: #C9A57C;
  --ruler-edge: #A98458;
  --ruler-ink: #2A2118;
  --ruler-graphite: #2F2F2F;
  --art-wall: #3A2E23;
  --art-floor: #5C452E;
  --art-floor-line: #4A3724;
  --art-skirt: #4F3F30;
  --art-room: #2B2118;
  --art-room-floor: #4A3724;
  --art-sky: #2D3F5E;
  --art-table: #7A5A3A;
  --art-table-line: #644830;
  --art-timber: #C9A57C;
  --art-timber-shade: #A98458;
  --art-timber-light: #DCC09A;
  --art-blue: #5B93E0;
  --art-green: #5DB37B;
  --art-green-dark: #47936A;
  --art-red: #EC6A56;
  --art-yellow: #F2BC45;
  --art-paper: #F4EADB;
  --art-graphite: #3B3B3B;
  --art-pencil: #DDD3C5;
  --art-metal: #A8A096;
  --art-bear: #B5814F;
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--tool-size);
  line-height: var(--tool-leading);
}
a { color: var(--color-link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: var(--read-weight-heading); color: var(--color-heading); margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--read-h1); line-height: 1.12; }
h2 { font-size: var(--read-h2); line-height: 1.2; }
h3 { font-size: var(--read-h3); line-height: 1.25; }
time { font-variant-numeric: tabular-nums; }
.wrap { max-width: 50rem; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--color-text-muted); }

.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 10; padding: var(--space-3) var(--space-4); background: var(--color-surface); border: 2px solid var(--color-text); border-radius: var(--radius); color: var(--color-text); }
.skip:focus { top: var(--space-2); }

/* A timber band with pencil ticks along its top edge, like a ruler. */
.timber, .site-header::after, .site-footer::before {
  display: block;
  height: 0.875rem;
  border: 0;
  background:
    repeating-linear-gradient(90deg, var(--ruler-graphite) 0 1.5px, transparent 1.5px 60px) 12px 0 / 100% 0.5rem no-repeat,
    repeating-linear-gradient(90deg, var(--ruler-graphite) 0 1px, transparent 1px 12px) 12px 0 / 100% 0.3rem no-repeat,
    linear-gradient(var(--color-timber) 0 76%, var(--color-timber-shade) 76%);
}
.site-header::after, .site-footer::before { content: ""; }
hr, .timber { margin: var(--space-7) 0; border-radius: var(--radius-pill); }
hr { height: 0.875rem; border: 0; background: linear-gradient(var(--color-timber) 0 76%, var(--color-timber-shade) 76%); }

/* ---------- Drawings ---------- */
.art { display: block; }
.a-w { fill: var(--art-wall); } .a-f { fill: var(--art-floor); } .a-sk { fill: var(--art-skirt); }
.a-room { fill: var(--art-room); } .a-rf { fill: var(--art-room-floor); } .a-sky { fill: var(--art-sky); } .a-tb { fill: var(--art-table); }
.a-t { fill: var(--art-timber); } .a-ts { fill: var(--art-timber-shade); } .a-tl { fill: var(--art-timber-light); }
.a-b { fill: var(--art-blue); } .a-g { fill: var(--art-green); } .a-gd { fill: var(--art-green-dark); }
.a-r { fill: var(--art-red); } .a-y { fill: var(--art-yellow); } .a-p { fill: var(--art-paper); }
.a-k { fill: var(--art-graphite); } .a-m { fill: var(--art-metal); } .a-br { fill: var(--art-bear); }
.a-hi { fill: #FFFFFF; opacity: 0.28; } .a-sh { fill: #2A1C10; opacity: 0.18; }
.l-k, .l-p, .l-fl, .l-ts, .l-tb, .l-logo, .s-b, .s-g, .s-r, .s-y, .s-p { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.l-k { stroke: var(--art-graphite); stroke-width: 2; } .l-p { stroke: var(--art-pencil); stroke-width: 2; }
.l-fl { stroke: var(--art-floor-line); stroke-width: 2; } .l-ts { stroke: var(--art-timber-shade); stroke-width: 2; } .l-tb { stroke: var(--art-table-line); stroke-width: 2; }
.l-logo { stroke: var(--art-graphite); stroke-width: 2.4; }
.s-b { stroke: var(--art-blue); } .s-g { stroke: var(--art-green); } .s-r { stroke: var(--art-red); } .s-y { stroke: var(--art-yellow); } .s-p { stroke: var(--art-paper); }

.art--hero, .art--banner { width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--art-wall); }
.art--hero { aspect-ratio: 1200 / 420; }
.art--banner { aspect-ratio: 800 / 260; }
@media (max-width: 40rem) {
  /* On a phone the scene keeps its height and is cropped at the sides. */
  .art--hero { aspect-ratio: auto; height: 13.5rem; }
  .art--banner { aspect-ratio: auto; height: 10rem; }
}
.art--spot { width: 5rem; height: 5rem; flex: none; }
.head-art { margin: 0 0 var(--space-5); }
.head-art img { display: block; width: 100%; aspect-ratio: 800 / 260; object-fit: cover; border-radius: var(--radius-lg); background: var(--color-wall); }
.head-art--hero img { aspect-ratio: 1200 / 420; }
@media (max-width: 40rem) {
  .head-art img { aspect-ratio: auto; height: 10rem; }
  .head-art--hero img { height: 13.5rem; }
}

/* ---------- Header and footer ---------- */
.site-header { background: var(--color-surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-5); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); color: var(--color-heading); text-decoration: none; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { flex: none; width: 2.125rem; height: 2.125rem; }
.site-nav { order: 3; flex: 1 1 100%; }
@media (min-width: 48rem) { .site-nav { order: 0; flex: 1 1 auto; } }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--tap-min); color: var(--color-text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2.5px; text-decoration-color: var(--color-rule-strong); }
.theme-toggle { margin-left: auto; min-height: 2.5rem; padding: 0 var(--space-4); border: 1.5px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-text); font: 500 0.875rem var(--font-sans); cursor: pointer; }

main.wrap { padding-top: var(--space-5); padding-bottom: var(--space-8); min-height: 60vh; }
.crumbs { margin: 0 0 var(--space-4); font-size: 0.875rem; color: var(--color-text-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "\203A"; margin-right: var(--space-2); }
.crumbs a { color: inherit; }

.site-footer { background: var(--color-wall); padding: 0 0 var(--space-7); font-size: 0.9375rem; color: var(--color-text-muted); }
.site-footer .wrap { padding-top: var(--space-6); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: var(--space-4) 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: var(--tap-min); }
.site-footer p { max-width: var(--read-measure); margin: var(--space-2) 0; }
.site-footer .footer-name { color: var(--color-heading); font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; }

/* ---------- Long-form reading ---------- */
.prose { font-family: var(--font-serif); font-size: var(--read-size); line-height: var(--read-leading); max-width: var(--figure-max); }
.prose > * { max-width: var(--read-measure); }
.prose > figure, .prose > .table-wrap, .prose > .cards, .prose > .panels { max-width: var(--figure-max); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.6em; }
.prose li { margin-bottom: 0.4em; }
.prose li > ul, .prose li > ol { margin-bottom: 0; }
.prose h2 { margin: var(--space-7) 0 var(--space-3); }
.prose h3 { margin: var(--space-6) 0 var(--space-3); }
.prose strong { font-weight: var(--read-weight-strong); }
.lead { font-size: 1.25rem; line-height: 1.5; }
@media (min-width: 48rem) { .lead { font-size: 1.375rem; } }
.page-head { margin-bottom: var(--space-5); max-width: var(--read-measure); }
.page-head h1 { margin-bottom: var(--space-3); }
.page-head--spot { display: flex; align-items: flex-start; gap: var(--space-4); }
.page-head--spot .art--spot { width: 5.5rem; height: 5.5rem; }
@media (min-width: 48rem) { .page-head--spot .art--spot { width: 7.5rem; height: 7.5rem; } }
.byline { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
.byline time { color: var(--color-text); }
.scope { margin: var(--space-5) 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--color-wall); font-family: var(--font-sans); font-size: var(--read-small); line-height: 1.5; color: var(--color-text-muted); max-width: var(--read-measure); }
.cite { font-family: var(--font-sans); font-size: 0.68em; font-weight: 600; line-height: 0; }
.cite a { padding: 0 0.15em; text-decoration: none; }
.cite a:hover { text-decoration: underline; }

/* Tables are data: sans, scroll inside their own box on a phone */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; }
table { border-collapse: collapse; width: 100%; font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 48rem) { table { font-size: 1rem; } }
th, td { padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--color-rule); text-align: left; vertical-align: top; }
thead th { border-bottom: 3px solid var(--color-timber); font-weight: 600; color: var(--color-heading); }
.table-wrap table { min-width: 30rem; }

/* ---------- Bottom line box ---------- */
.bottomline { margin: var(--space-5) 0; padding: var(--space-5) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-rule); border-top: 0.625rem solid var(--color-timber); border-radius: var(--radius-lg); max-width: var(--read-measure); }
@media (min-width: 48rem) { .bottomline { padding: var(--space-5) var(--space-6); } }
.bottomline__label { margin: 0 0 var(--space-3); font: 600 1rem var(--font-sans); letter-spacing: 0; color: var(--color-accent-text); }
.bottomline ul { margin: 0; padding-left: 1.1em; font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.45; }
@media (min-width: 48rem) { .bottomline ul { font-size: 1.1875rem; } }
.bottomline li { margin-bottom: var(--space-3); }
.bottomline__grades { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.bottomline__reviewed { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }

/* ---------- Evidence grade: a rounded word label with pencil ticks.
   The word always carries the grade; the ticks repeat it. ---------- */
.grade { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.grade__reason { flex: 1 1 14rem; font-family: var(--font-sans); font-size: 0.9375rem; color: var(--color-text); }
.badge { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.5rem; padding: 0.25rem 1rem 0.25rem 0.75rem; border: 1.5px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-chip); color: var(--color-text); font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.2; text-decoration: none; vertical-align: middle; white-space: nowrap; }
.badge:hover .badge__name { text-decoration: underline; }
.badge__kicker { font-weight: 400; }
.badge__name { font-weight: 600; }
.badge__marks { flex: none; fill: none; stroke: var(--color-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.badge--strong .badge__marks { stroke: var(--color-green-text); }
.badge--moderate .badge__marks { stroke: var(--color-link); }
.badge--weak .badge__marks { stroke: var(--color-accent-text); }
.badge--contested { border-style: dashed; }
.badge--compact { min-height: 2.125rem; font-size: 0.875rem; }

/* ---------- Worth-raising box: yellow fill, flag and words ---------- */
.raise { margin: 0 0 1.6em; padding: var(--space-4) var(--space-5); background: var(--color-caution-fill); border: 1.5px solid var(--color-caution-border); border-radius: var(--radius-lg); font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; color: var(--color-text); }
.raise__label { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2) !important; font-weight: 600; color: var(--color-caution-text); }
.raise p:last-child { margin-bottom: 0; }
.raise p { margin-bottom: var(--space-3); }
.raise a { color: var(--color-text); }

/* ---------- Milestone ruler figure ---------- */
.rangefig { margin: var(--space-5) 0 1.6em; }
.rangefig__svg { display: block; width: 100%; height: auto; }
.rangefig__svg--wide { display: none; }
@media (min-width: 48rem) { .rangefig__svg--wide { display: block; } .rangefig__svg--narrow { display: none; } }
.rf-label { font: 600 15px var(--font-sans); fill: var(--color-text); }
.rf-sub { font: 400 12.5px var(--font-sans); fill: var(--color-text-muted); }
.rf-tick { font: 600 12.5px var(--font-sans); fill: var(--ruler-ink); }
.rf-ruler, .rf-strip { fill: var(--ruler-timber); stroke: var(--ruler-edge); stroke-width: 1; }
.rf-tickmark { fill: none; stroke: var(--ruler-graphite); stroke-width: 1; stroke-linecap: round; }
.rf-tickmark--major { stroke-width: 1.6; }
.rf-tickmark--faint { opacity: 0.55; }
.rf-shade { fill: var(--ruler-graphite); opacity: 0.2; stroke: none; }
.rf-hatch { fill: none; stroke: var(--ruler-graphite); stroke-width: 1.5; stroke-linecap: round; }
.rf-notch { fill: none; stroke: var(--ruler-graphite); stroke-width: 4; stroke-linecap: round; }
.rf-notch--end { stroke-width: 2.6; }
.rf-age { stroke: var(--color-link); stroke-width: 2; stroke-dasharray: 5 4; }
.rf-agepic { color: var(--color-link); }
.rf-agelabel { font: 600 12.5px var(--font-sans); fill: var(--color-link); }
.rangefig figcaption { margin-top: var(--space-3); font-family: var(--font-sans); font-size: var(--read-small); line-height: 1.45; color: var(--color-text-muted); }
.rangefig figcaption p { margin: 0 0 var(--space-2); }
.rf-key { display: inline-block; width: 2.5rem; height: 1.125rem; margin: 0 var(--space-1) 0 0; vertical-align: -0.25rem; overflow: visible; }

/* ---------- Sources ---------- */
.sources, .would-change, .related { margin-top: var(--space-7); max-width: var(--read-measure); }
.related { max-width: var(--figure-max); }
.sources h2, .would-change h2, .related h2 { margin-bottom: var(--space-3); }
.sources ol { margin: 0; padding-left: 1.6em; font-size: var(--read-small); line-height: 1.45; }
.sources ol > li { margin-bottom: var(--space-3); padding-left: var(--space-1); }
.sources ol > li:target { outline: 2px solid var(--color-rule-strong); outline-offset: 4px; border-radius: 4px; }
.sources ul { margin: var(--space-1) 0 0; padding: 0; list-style: none; }
.sources a { overflow-wrap: anywhere; }
.confirmed { display: inline-block; margin-left: var(--space-1); padding: 0.05rem var(--space-3); border: 1.5px solid var(--color-rule-strong); border-radius: var(--radius-pill); background: var(--color-chip); font-family: var(--font-sans); font-size: 0.8125rem; color: var(--color-text); white-space: normal; }
.confirmed--indirect { border-style: dashed; }
.sources__key { margin-top: var(--space-4); font-size: 0.875rem; color: var(--color-text-muted); }
.would-change p { margin: 0; font-family: var(--font-serif); font-size: var(--read-size); line-height: var(--read-leading); }

/* ---------- Cards and panels ---------- */
.cards { display: grid; gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.card { position: relative; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-rule); border-bottom: 0.3125rem solid var(--color-timber); border-radius: var(--radius-lg); font-family: var(--font-sans); }
.card h2, .card h3 { font-size: var(--read-h3); margin: var(--space-1) 0 var(--space-2); }
.card h2, .card h3 { text-wrap: wrap; }
.card h2 a, .card h3 a { color: var(--color-heading); text-decoration-color: var(--color-timber-shade); }
.card p { margin: 0 0 var(--space-2); font-size: 0.9375rem; line-height: 1.5; }
.card__meta { color: var(--color-text-muted); font-size: 0.875rem !important; }
.card__topic { font-size: 0.875rem !important; font-weight: 600; color: var(--color-accent-text); }
.card > .art--spot { float: right; width: 4.5rem; height: 4.5rem; margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) var(--space-2) var(--space-3); }
@media (min-width: 48rem) { .card > .art--spot { width: 5.5rem; height: 5.5rem; } .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--3 .card > .art--spot { float: none; display: block; margin: 0 0 var(--space-2) calc(var(--space-2) * -1); } }
.panels { display: grid; gap: var(--space-4); margin: var(--space-6) 0; }
@media (min-width: 48rem) { .panels { grid-template-columns: repeat(3, 1fr); } }
.panel { padding: var(--space-5); background: var(--color-wall); border-radius: var(--radius-lg); }
.panel .art--spot { width: 5.5rem; height: 5.5rem; margin: 0 0 var(--space-2) calc(var(--space-1) * -1); }
.panel h2 { font-size: var(--read-h3); margin-bottom: var(--space-2); }
.panel p { margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: 1rem; line-height: 1.5; }
.panel p:last-child { margin-bottom: 0; font-weight: 600; }
.hero { margin-bottom: var(--space-5); }
.hero__text { max-width: 44rem; margin-top: var(--space-5); }
.hero h1 { margin-bottom: var(--space-4); }
.tagline { margin: 0 0 var(--space-2); font: 600 1rem var(--font-sans); color: var(--color-accent-text); }
.section-head { margin-top: var(--space-7); }
.notice { margin: var(--space-6) 0 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--color-wall); font-family: var(--font-sans); font-size: 0.9375rem; color: var(--color-text-muted); max-width: var(--read-measure); }

/* ---------- Sign-up form (no provider wired yet) ---------- */
.signup { margin-top: var(--space-7); padding: var(--space-5); background: var(--color-wall); border-radius: var(--radius-lg); font-family: var(--font-sans); max-width: var(--read-measure); }
.signup > .art--spot { float: right; width: 4.5rem; height: 4.5rem; margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) var(--space-2) var(--space-3); }
@media (min-width: 48rem) { .signup > .art--spot { width: 6rem; height: 6rem; } }
.signup h2 { font-size: var(--read-h3); margin-bottom: var(--space-2); }
.signup p { margin: 0 0 var(--space-3); font-size: 0.9375rem; line-height: 1.5; }
.signup fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.signup label, .signup legend { display: block; margin: var(--space-3) 0 var(--space-1); padding: 0; font-size: 0.875rem; font-weight: 500; }
.signup input[type="email"], .signup input[type="text"], .signup select { width: 100%; max-width: 24rem; min-height: var(--tap-min); padding: 0 var(--space-4); border: 1.5px solid var(--color-rule-strong); border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: 400 1rem var(--font-sans); }
.signup .pair { display: flex; gap: var(--space-2); max-width: 24rem; }
.signup .check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap-min); margin: 0; font-size: 1rem; font-weight: 400; }
.signup .check input { width: 1.25rem; height: 1.25rem; flex: none; }
.signup details { margin: var(--space-3) 0; }
.signup summary { display: inline-flex; align-items: center; min-height: var(--tap-min); cursor: pointer; color: var(--color-link); font-weight: 500; }
.signup button, .button { display: inline-flex; align-items: center; min-height: var(--tap-min); margin-top: var(--space-3); padding: 0 var(--space-5); border: 2px solid var(--color-button); border-radius: var(--radius-pill); background: var(--color-button); color: var(--color-button-text); font: 600 1.0625rem var(--font-sans); text-decoration: none; }
/* Not open yet: the note beside the form says so in words, and the controls
   are greyed as well. */
.signup button:disabled, .signup :disabled { opacity: 0.6; cursor: not-allowed; }
.signup__soon { display: inline-block; margin: var(--space-2) 0 !important; padding: var(--space-1) var(--space-4); border-radius: var(--radius-pill); background: var(--color-caution-fill); color: var(--color-text); font-weight: 600; }
.signup__fine { color: var(--color-text-muted); font-size: 0.875rem !important; }
.signup--footer { margin-top: 0; padding: var(--space-5); background: var(--color-surface); }
.signup--footer .row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: flex-end; }
.signup--footer .row > div { flex: 1 1 14rem; }
.signup--footer button { margin-top: 0; }

@media print {
  .site-header, .site-footer, .signup, .skip, .related, .crumbs, .head-art, .art--hero, .art--banner { display: none; }
  body { background: #fff; color: #000; }
  a { color: inherit; }
}
