/* ════════════════════════════════════════════════════════════════
   Transparent St. Francis
   Visual system ("street sign", 2026-10-13): the maroon / paper palette,
   tall narrow headlines (Barlow Condensed), road-sign text (Overpass, from
   the U.S. highway-sign lettering) and Overpass Mono for figures. Solid
   panels with a crisp white inner keyline, sign-plate buttons, 2px rules;
   no soft drop shadows, no capsule-shaped buttons, no tiny spaced-out
   capital labels. records.css mirrors the header, title band and footer.
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Barlow+Condensed:wght@600;700;800&family=Overpass+Mono:wght@400;500;600;700&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; -webkit-text-size-adjust: 100%; }

/* Horizontal-overflow guard. Off-page boxes that are hidden but still in layout
   (notably the .term-tip::after tooltips: position:absolute, width:270px, hidden
   only via opacity:0) extend the page's scroll width and let narrow viewports
   slide sideways. Clip horizontal overflow at the root so it can never widen the
   page; vertical scrolling and each .table-wrap's own overflow-x:auto are
   unaffected. Must be on BOTH html and body — root overflow propagation means
   neither alone takes effect. overflow-x:clip (where supported) avoids creating a
   scroll container, so it never interferes with position:sticky. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Tokens ── */
:root {
  --maroon:      #6E1A2C;
  --maroon-deep: #4E101F;
  --maroon-tint: #F4EAEC;   /* quiet maroon wash for fills */
  --maroon-on:   #FBEFF1;   /* text on maroon */
  --ink:         #1C1619;
  --white:       #FFFFFF;
  --paper:       #FAF6F3;
  --paper-2:     #F3EDE8;   /* slightly deeper paper for quiet bands */
  --gray:        #978C91;
  --border:      #EAE4E6;

  /* seal accents — used sparingly, never as primary fields */
  --gold:        #F4B400;
  --lake:        #2EA7DC;
  --brick:       #9E4A35;
  --slate:       #41607F;   /* steelman / concede coding */

  --focus:       rgba(200, 72, 95, .45);
  /* no soft drop shadows anywhere: panels separate by rules and keylines */
  --shadow:      none;
  --shadow-lg:   none;

  --sans:    'Overpass', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --mono:    'Overpass Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease:        cubic-bezier(.2, 0, 0, 1);
  --dur:         190ms;

  /* the signature arched-sign top */
  --arch: 50% 50% 8px 8px / 30% 30% 8px 8px;

  --content: 820px;   /* prose measure */
  --wide:    1140px;  /* feature / hero / footer band */
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--display); color: var(--ink); letter-spacing: .005em; }
h1 { font-weight: 800; line-height: 1.02; font-size: clamp(2.7rem, 7vw, 4.8rem); }
h2 { font-weight: 700; line-height: 1.08; font-size: clamp(2rem, 3.9vw, 2.9rem); margin-bottom: 1rem; }
h3 { font-weight: 700; line-height: 1.12; font-size: 1.6rem; margin: 2rem 0 0.6rem; }
h4 { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.2rem; }
ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: 0.55rem; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

a { color: var(--maroon); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--maroon-deep); }

/* Overline / label: maroon, bold, sentence case (no tiny spaced capitals) */
.overline, .panel-eyebrow, .page-eyebrow, .response-label {
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.01em; color: var(--maroon);
}

/* Monospace for data / dates / codes */
.mono, .data-table td.number, .timeline-date, .source-type {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ── Hover definitions (glossary) ── */
.term-tip {
  border-bottom: 2px dotted var(--maroon);
  cursor: help; position: relative; font-weight: 600; color: var(--ink);
}
.term-tip::after {
  content: attr(data-tip);
  position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--white);
  padding: 0.7rem 0.9rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 400; line-height: 1.45;
  width: 270px; max-width: 80vw; white-space: normal;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 2000; box-shadow: var(--shadow-lg);
}
.term-tip:hover::after, .term-tip:focus::after, .term-tip.active::after { opacity: 1; transform: translateX(-50%) translateY(-6px); }
/* On small screens an edge-anchored tooltip runs off the side; pin it to the
   bottom of the viewport, full width, so it's always fully visible. */
@media (max-width: 640px) {
  .term-tip::after {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; top: auto;
    width: auto; max-width: none; transform: translateY(10px); font-size: 0.85rem;
  }
  .term-tip:hover::after, .term-tip:focus::after, .term-tip.active::after { transform: translateY(0); }
}

/* ════════════════ Header / floating nav ════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.05rem clamp(1rem, 4vw, 2rem);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
/* solid state, applied by JS once scrolled past the hero */
header.scrolled {
  background: rgba(250, 246, 243, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

/* Brand: arch emblem + wordmark */
.nav-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-brand .emblem {
  width: 28px; height: 30px; flex: none;
  background: url("Site Images/sf-sign-v2-outlined.svg") center / contain no-repeat;
}
.nav-brand .wordmark { line-height: 1.05; }
.nav-brand .wm-eyebrow {
  display: block; font-weight: 700; font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray);
}
.nav-brand .wm-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; color: var(--ink); }
header:not(.scrolled) .nav-brand .wm-eyebrow { color: rgba(255,255,255,.7); }
header:not(.scrolled) .nav-brand .wm-name { color: var(--white); }

/* Hamburger (mobile) */
.hamburger {
  background: none; border: none; cursor: pointer; z-index: 1600;
  display: flex; flex-direction: column; gap: 5px; padding: 0.5rem;
}
.hamburger div { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--dur) var(--ease); }
header:not(.scrolled) .hamburger div { background: var(--white); }
.hamburger.open div { background: var(--ink); }
.hamburger.open .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.open .line2 { opacity: 0; }
.hamburger.open .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* Nav drawer (mobile).
   Scoped to `header nav` on purpose. These rules used to target the bare `nav`
   element, which also caught <nav class="footer-nav"> and <nav class="page-toc">
   and parked both off-screen at right:-110% below the 860px breakpoint — the
   footer links and the "On this page" card were invisible on every phone. */
header nav {
  position: fixed; top: 0; right: -110%; width: 300px; max-width: 82vw; height: 100vh;
  background: var(--maroon); padding: 5.5rem 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: right var(--dur) var(--ease); z-index: 1400;
  box-shadow: -10px 0 40px rgba(28,22,25,.3); overflow-y: auto;
}
header nav.open { right: 0; }
/* Every nav link is the same sign plate: Articles and City Records outlined,
   Contact filled in the inverse colors (the ask). The nav itself is
   written by tools/sync_nav.py; records.css mirrors these rules for the
   database pages. */
header nav a {
  color: var(--white); text-decoration: none; font-size: 1.05rem; font-weight: 700;
  padding: 0.6rem 0.9rem; text-align: center;
  border: 2px solid rgba(255,255,255,.55); border-radius: 5px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
header nav a:hover { background: rgba(255,255,255,.12); }
header nav a.active { background: rgba(255,255,255,.2); border-color: var(--white); }
header nav a.nav-contribute { background: var(--white); color: var(--maroon); border-color: var(--white); }
header nav a.nav-contribute:hover, header nav a.nav-contribute.active { background: var(--paper-2); color: var(--maroon-deep); }

/* ── Desktop nav ──
   900px: three short items (Articles, City Records, Contact) beside the wordmark. */
@media (min-width: 900px) {
  .hamburger { display: none; }
  header nav {
    position: static; width: auto; height: auto; max-width: none; background: none;
    padding: 0; flex-direction: row; gap: 0.45rem; box-shadow: none; overflow: visible;
  }
  header nav a { padding: 0.32rem 0.9rem; font-size: 0.88rem; border-radius: 5px; border-color: var(--maroon); color: var(--maroon); }
  header nav a:hover, header nav a.active { background: var(--maroon-tint); border-color: var(--maroon); }
  header nav a.nav-contribute { background: var(--maroon); color: var(--maroon-on); border-color: var(--maroon); }
  header nav a.nav-contribute:hover, header nav a.nav-contribute.active { background: var(--maroon-deep); color: var(--white); border-color: var(--maroon-deep); }
  header:not(.scrolled) nav a { border-color: rgba(255,255,255,.7); color: var(--white); }
  header:not(.scrolled) nav a:hover { background: rgba(255,255,255,.16); }
  header:not(.scrolled) nav a.active { background: rgba(255,255,255,.22); border-color: var(--white); }
  header:not(.scrolled) nav a.nav-contribute { background: var(--white); color: var(--maroon); border-color: var(--white); }
  header:not(.scrolled) nav a.nav-contribute:hover { background: var(--paper-2); color: var(--maroon-deep); }
}

/* ════════════════ Hero (home) ════════════════ */
.hero {
  position: relative;
  background: var(--maroon); color: var(--maroon-on);
  min-height: 86vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem clamp(1.4rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
/* white keyline, like the border on the city's street signs */
.hero::after {
  content: ''; position: absolute; inset: 14px; pointer-events: none; z-index: 3;
  border: 2.5px solid rgba(255,255,255,.75); border-radius: 12px;
}
.hero-eyebrow {
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em;
  color: var(--gold); margin-bottom: 1rem;
}
.hero h1 { color: var(--white); font-size: clamp(2.7rem, 7vw, 4.8rem); max-width: 18ch; margin-bottom: 1.3rem; }
.hero h1 span { color: var(--gold); }
.lead-statement {
  font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 500; line-height: 1.34;
  color: var(--ink); letter-spacing: -0.005em; margin-bottom: 1.4rem;
}
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 60ch; margin-bottom: 1.1rem; line-height: 1.5; font-weight: 500; }
.hero .sub { font-size: 0.95rem; color: rgba(255,255,255,.72); max-width: 64ch; line-height: 1.6; }
.hero .scroll-cue {
  margin-top: 2.4rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(255,255,255,.6); font-weight: 600;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ════════════════ Page title (deep-dive pages) ════════════════ */
.page-title {
  position: relative; background: var(--maroon); color: var(--maroon-on);
  padding: 8rem clamp(1.4rem, 6vw, 5rem) clamp(2.4rem, 5vw, 3.8rem);
  text-align: center; overflow: hidden;
}
.page-title::after {
  content: ''; position: absolute; inset: 14px; pointer-events: none;
  border: 2.5px solid rgba(255,255,255,.75); border-radius: 12px;
}
.page-title .page-eyebrow { color: var(--gold); margin-bottom: 0.8rem; }
.page-title h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 3.9rem); margin-bottom: 0.7rem; }
.page-title .page-lede { font-size: 1.08rem; color: rgba(255,255,255,.86); max-width: 640px; margin: 0 auto; line-height: 1.55; font-weight: 500; }

/* ════════════════ Sections ════════════════ */
section {
  max-width: var(--content); margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.4rem, 5vw, 1.5rem) 0;
  scroll-margin-top: 96px;   /* anchor jumps clear the fixed header */
}
section:last-of-type { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section-divider { width: 48px; height: 3px; background: var(--maroon); border: none; margin-bottom: 1.6rem; border-radius: 2px; }
section > p, section > ul, section > ol { max-width: 68ch; }

/* americanhousing-style split: heading left, hairline + body right */
.split { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; }
  .split .split-body { border-left: 1px solid var(--border); padding-left: 2.5rem; }
}
.split h2 { margin-bottom: 0; }

/* ════════════════ On-this-page contents ════════════════ */
/* Primary: a contents card under the title (all screen sizes). */
.page-toc {
  max-width: var(--content); margin: clamp(2.2rem, 5vw, 3.2rem) auto 0;
  padding: 0 clamp(1.4rem, 5vw, 1.5rem);
}
.page-toc-inner {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.page-toc-head {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
  color: var(--maroon); background: var(--maroon-tint);
  padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--border);
}
.page-toc-list { list-style: none; margin: 0; padding: 0.35rem 0; }
.page-toc-list li { margin: 0; }
.page-toc-list a {
  display: flex; gap: 0.85rem; align-items: baseline;
  padding: 0.55rem 1.25rem; text-decoration: none; color: var(--ink);
  border-left: 3px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.page-toc-list a:hover { background: var(--maroon-tint); border-left-color: var(--maroon); }
.page-toc-list .toc-n {
  flex: 0 0 auto; min-width: 1.4ch; text-align: right;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--maroon);
}
.page-toc-list .toc-t { display: flex; flex-direction: column; gap: 0.08rem; }
.page-toc-list .toc-t strong { font-weight: 600; font-size: 0.97rem; line-height: 1.3; }
.page-toc-list .toc-t em { font-style: normal; font-size: 0.82rem; color: var(--gray); line-height: 1.4; }

/* Enhancement: a compact sticky rail in the left margin on wide screens,
   built from .page-toc by app.js. Hidden (display:none) below the breakpoint. */
.toc-rail { display: none; }
@media (min-width: 1300px) {
  .toc-rail {
    display: block; position: fixed; top: 120px;
    left: calc((100vw - var(--content)) / 2 - 224px);
    width: 196px; max-height: calc(100vh - 170px); overflow-y: auto;
    z-index: 900; font-size: 0.8rem; line-height: 1.3;
    opacity: 0; pointer-events: none;       /* hidden over the title band */
    transition: opacity var(--dur) var(--ease);
  }
  .toc-rail.visible { opacity: 1; pointer-events: auto; }
  .toc-rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .toc-rail li { margin: 0; }
  .toc-rail a {
    display: block; padding: 0.32rem 0 0.32rem 0.9rem; margin-left: -1px;
    color: var(--gray); text-decoration: none; border-left: 2px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .toc-rail a:hover { color: var(--maroon); }
  .toc-rail a.active { color: var(--maroon); font-weight: 600; border-left-color: var(--maroon); }
}
@media (prefers-reduced-motion: no-preference) {
  .toc-rail a { scroll-behavior: smooth; }
}

/* ════════════════ Cards (signature: maroon cap + overline) ════════════════ */
.card, .chart-card, .summary-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.6rem 1.6rem 1.4rem; margin: 1.75rem 0; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
/* signature variant: 8px maroon cap bar on top */
.summary-panel { padding-top: 1.9rem; }
.summary-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--maroon);
}
.summary-panel:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.summary-panel h3 { margin-top: 0; margin-bottom: 0.6rem; color: var(--ink); }
.summary-panel .panel-eyebrow { margin-bottom: 0.4rem; }
.summary-panel .panel-finding {
  background: var(--maroon-tint); padding: 0.9rem 1.05rem; border-radius: 8px;
  margin: 0.9rem 0 1.1rem; font-size: 0.95rem;
}
.summary-panel .panel-finding strong { color: var(--maroon); }

/* ── Home: the four-card cycle (numbered pillar deck) ──────────────
   One card per issue, stacked 1→4. The number chip borrows the arched
   SF-sign silhouette (--arch). Cards reuse the site card language. */
.pillar-deck { display: grid; gap: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 0.4rem; }
.pillar-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow);
  scroll-margin-top: 96px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pillar-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.pillar-num {
  width: 42px; height: 46px; flex: none; display: grid; place-items: center;
  background: var(--maroon); color: var(--white);
  font-weight: 800; font-size: 1.3rem; line-height: 1;
  border-radius: var(--arch);
}
.pillar-head .page-eyebrow { margin: 0; }
/* Eyebrow doubles as the link to its section — underline only on hover;
   a permanent rule under uppercase micro-caps reads as noise. */
a.page-eyebrow { text-decoration: none; }
a.page-eyebrow:hover, a.page-eyebrow:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.pillar-card h2 { margin-top: 0; }
.pillar-card > p:last-of-type { margin-bottom: 0.9rem; }

/* CTA link with arrow */
.panel-cta {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem;
  font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--maroon);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.panel-cta::after { content: '\2192'; transition: transform var(--dur) var(--ease); }
.panel-cta:hover { color: var(--maroon-deep); }
.panel-cta:hover::after { transform: translateX(4px); }

/* ════════════════ Buttons ════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.95rem; line-height: 1;
  padding: 0.85rem 1.4rem; border-radius: 5px; text-decoration: none;
  border: 2px solid transparent; transition: background var(--dur) var(--ease),
  color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn-primary { background: var(--maroon); color: var(--maroon-on); }
.btn-primary:hover { background: var(--maroon-deep); color: var(--maroon-on); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--white); color: var(--maroon); border-color: var(--maroon); }
.btn-secondary:hover { background: var(--maroon-tint); color: var(--maroon); }
.btn-secondary:active { transform: translateY(1px); }

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

/* ════════════════ Tables ════════════════ */
/* Click-to-zoom lightbox (images with .zoomable) */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(28, 22, 25, 0.92); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 12px 48px rgba(0,0,0,.55); }

.table-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--border); border-radius: 10px; }
.table-wrap.has-tips { overflow: visible; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  background: var(--maroon); color: var(--maroon-on); padding: 0.65rem 0.85rem; text-align: left;
  font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.data-table td { padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) { background: var(--paper); }
.data-table .highlight-row { background: var(--maroon-tint); font-weight: 700; color: var(--maroon); }
/* in-table accent: maroon bold text, no fill — stands out without reading as a separate block */
.data-table tr.accent-row td { color: var(--maroon); font-weight: 700; }
.data-table tr.accent-row strong { color: inherit; }
.data-table td.number { text-align: right; }
.data-table .term-yr { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--gray); }

/* compact two-column table: shrink to its content so the columns stay together
   instead of stretching to the page width (used for simple year → value lists) */
.narrow-exhibit { text-align: center; margin: 1.8rem 0; }
.narrow-exhibit-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .25rem; }
.table-wrap.narrow { width: fit-content; max-width: 100%; margin: 0 auto; }
.table-wrap.narrow .data-table { width: auto; }
.table-wrap.narrow .data-table th,
.table-wrap.narrow .data-table td { text-align: center; padding-left: 1.3rem; padding-right: 1.3rem; }

/* ════════════════ Blockquote ════════════════ */
blockquote {
  border-left: 4px solid var(--maroon); margin: 1.9rem 0; padding: 1rem 1.5rem;
  background: var(--paper-2); font-size: 1.12rem; font-weight: 500; font-style: italic; color: var(--ink);
  border-radius: 0 8px 8px 0;
}
blockquote cite { display: block; margin-top: 0.7rem; font-style: normal; font-size: 0.82rem; font-weight: 400; color: var(--gray); }

/* ════════════════ Callout boxes (steelman pattern) ════════════════ */
.alert-box, .concede-box {
  padding: 1.3rem 1.5rem; margin: 1.6rem 0; border-radius: 12px;
  border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow);
  position: relative; padding-left: 1.5rem;
}
.alert-box { border-left: 6px solid var(--maroon); background: var(--maroon-tint); border-color: #ECD9DD; }
.alert-box h4 { color: var(--maroon); margin-bottom: 0.4rem; }
.concede-box { border-left: 6px solid var(--slate); background: var(--paper-2); }
.concede-box h4 { color: var(--slate); margin-bottom: 0.4rem; }
.alert-box .response-label { color: var(--maroon); }
.concede-box .response-label { color: var(--slate); }
.response-label { display: block; margin-bottom: 0.25rem; font-size: 0.68rem; letter-spacing: 0.1em; }

/* ════════════════ Accordion ════════════════ */
.accordion-trigger {
  background: var(--white); border: 1px solid var(--border); padding: 0.95rem 1.1rem; width: 100%;
  text-align: left; font-family: inherit; font-weight: 700; font-size: 0.98rem; color: var(--ink);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  border-radius: 8px; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.accordion-trigger:hover { background: var(--maroon-tint); border-color: #ECD9DD; }
.accordion-icon { color: var(--maroon); font-weight: 700; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease); padding: 0 1.1rem; }
.accordion-content.open { padding: 1.1rem; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; margin-bottom: 1rem; }

/* ── Collapsible page sections (Vision page): same JS pattern as the
   accordion above, but the trigger IS the section heading (no boxed
   look) and the body is plain prose flow, not a bordered card. ── */
.section-toggle {
  background: none; border: none; padding: 0; margin: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.2rem;
  cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.section-toggle:hover h2 { color: var(--maroon); }
.section-toggle .accordion-icon {
  flex: none; margin-top: 0.4em; font-size: 1.7rem; font-weight: 400; line-height: 1;
}
.section-body { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }

/* ── Click-to-define glossary ── */
.define { display: grid; gap: 1rem; margin: 1.4rem 0; }
@media (min-width: 720px) {
  .define { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 1.4rem; align-items: start; }
}
.define-terms { display: flex; flex-direction: column; gap: 0.5rem; }
.define-term {
  font-family: inherit; text-align: left; cursor: pointer; width: 100%;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.75rem 0.95rem; font-weight: 700; font-size: 0.95rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.define-term::after { content: '\2192'; opacity: 0; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.define-term:hover { background: var(--maroon-tint); border-color: #ECD9DD; }
.define-term.active { background: var(--maroon); color: var(--maroon-on); border-color: var(--maroon); }
.define-term.active::after { opacity: 1; }
.define-panel { background: var(--paper-2); border: 1px solid var(--border); border-radius: 12px; padding: 1.3rem 1.4rem; }
@media (min-width: 720px) { .define-panel { position: sticky; top: 90px; min-height: 170px; } }
.define-hint { display: none; color: var(--gray); font-style: italic; margin: 0; }
.define-def h4 { color: var(--maroon); margin-bottom: 0.45rem; }
.define-def p { margin: 0; font-size: 0.95rem; }
.define-def + .define-def { margin-top: 1rem; }
/* progressive enhancement: with JS, the panel shows only the selected term */
.define.is-interactive .define-hint { display: block; }
.define.is-interactive .define-def { display: none; }
.define.is-interactive.has-active .define-hint { display: none; }
.define.is-interactive .define-def.active { display: block; }

/* ════════════════ Timeline ════════════════ */
.timeline { position: relative; padding-left: 1.7rem; margin: 1.9rem 0; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 1.6rem; padding-left: 0.6rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.15rem; top: 0.35rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--maroon); border: 3px solid var(--paper);
}
.timeline-date { font-size: 0.76rem; font-weight: 500; color: var(--maroon); text-transform: uppercase; letter-spacing: 0.04em; }
.timeline-text { font-size: 0.95rem; margin-top: 0.2rem; margin-bottom: 0; }
.timeline-src, .src { display: block; margin-top: 0.4rem; font-size: 0.76rem; line-height: 1.45; color: var(--gray); font-style: italic; }

/* ════════════════ Response / asks box (signature card, arch top) ════════════════ */
.response-box {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 2.4rem; margin: 1.9rem 0; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.response-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--maroon); }
.response-box h3 { margin-top: 0.4rem; }
.response-box p { color: #4a4247; }

/* ════════════════ Sources ════════════════ */
.source-list { list-style: none; margin: 1.25rem 0; }
.source-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.source-type {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--maroon); color: var(--maroon-on); padding: 0.18rem 0.5rem; border-radius: 5px;
  margin-right: 0.55rem; display: inline-block; vertical-align: middle; font-weight: 500;
}

/* ════════════════ Charts ════════════════ */
.chart-card { padding: 1.5rem 1.5rem 1.3rem; }
.chart-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.15rem; text-align: center; }
.chart-subtitle { font-size: 0.78rem; color: var(--gray); text-align: center; margin-bottom: 1rem; }
.chart-caption { font-size: 0.82rem; color: var(--gray); text-align: center; margin-top: 0.7rem; font-style: italic; line-height: 1.5; }
.chart-canvas-wrap { position: relative; width: 100%; height: 320px; }
.map-wrap { width: 100%; background: var(--paper-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0.25rem 0; }
.map-wrap img { display: block; width: 100%; height: auto; }
.chart-takeaway {
  background: var(--maroon-tint); border-left: 4px solid var(--maroon);
  padding: 0.9rem 1.15rem; margin: 1rem 0 0.5rem; font-size: 0.92rem; color: var(--ink);
  border-radius: 0 8px 8px 0;
}
.chart-takeaway strong { color: var(--maroon); }
@media (max-width: 600px) { .chart-canvas-wrap { height: 280px; } }

/* ════════════════ Cross-link block ════════════════ */
.cross-link {
  background: var(--paper-2); border-left: 3px solid var(--slate);
  padding: 0.8rem 1.1rem; margin: 1.4rem 0; font-size: 0.88rem; border-radius: 0 8px 8px 0;
}
.cross-link a { color: var(--slate); font-weight: 700; }
.cross-link a:hover { color: #2f4a63; }

/* ════════════════ Footer (maroon, motto) ════════════════ */
footer {
  background: var(--maroon); color: rgba(255,255,255,.74);
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem 2.75rem; text-align: center;
  font-size: 0.88rem; line-height: 1.8; margin-top: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}
footer .footer-emblem {
  width: 42px; height: 44px; margin: 0 auto 1rem;
  background: url("Site Images/sf-sign-v2-outlined.svg") center / contain no-repeat;
}
footer .footer-name { color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; }
footer strong { color: rgba(255,255,255,.92); }
footer .footer-nav { margin: 1.2rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; }
footer .footer-nav a {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 0.95rem; font-weight: 700;
  transition: color var(--dur) var(--ease);
}
footer .footer-nav a:hover { color: var(--white); }
footer .footer-fine { max-width: 60ch; margin: 0.6rem auto 0; font-size: 0.82rem; color: rgba(255,255,255,.6); }
footer .footer-fine a.footer-fix { display: block; width: fit-content; margin: .5rem auto 0; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
footer .footer-fine a.footer-fix:hover { text-decoration-thickness: 2px; }

/* ════════════════ Scroll reveal ════════════════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ════════════════ Responsive ════════════════ */
@media (max-width: 600px) {
  html { font-size: 16px; }
  section { padding-top: 3.2rem; }
  .hero { padding-top: 6.5rem; min-height: 88vh; }
  .response-box { padding: 1.75rem 1.4rem; }
}

/* ════════════════ Imagery: placeholders, galleries, features ════════════════ */
figure { margin: 0; }
.media { margin: 1.75rem 0; }
/* Real images and inline-SVG "blueprint" placeholders share one frame (see images.md) */
.media > img, .media > picture > img, .media > svg.ph-svg {
  display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--paper-2);
}
.ph-svg { font-family: var(--sans); }
.media figcaption { font-size: 0.82rem; color: var(--gray); text-align: center; margin-top: 0.6rem; font-style: italic; line-height: 1.5; }
.media-half > img { max-width: 50%; margin: 0 auto; }

/* Full-width image / gallery band between sections */
.band { max-width: var(--wide); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.4rem, 5vw, 1.5rem) 0; }
.band-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.band-head .section-divider { margin-left: auto; margin-right: auto; }
.band-head h2 { margin-bottom: 0.6rem; }
.band-head p { color: #4a4247; }

/* Gallery (carousel analog) */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin: 1.75rem 0; }
.gallery .media { margin: 0; }
@media (min-width: 720px) {
  .gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Developer-incentive figure under a gallery item */
.dev-cost { text-align: center; margin-top: 0.7rem; }
.dev-cost .amount { display: block; font-size: clamp(1.2rem, 3.4vw, 1.55rem); font-weight: 800; color: var(--maroon); letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.dev-cost .amount sup { font-size: 0.55em; font-weight: 700; }
.dev-cost .amount-pending { color: var(--gray); }
.dev-cost .label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); font-weight: 600; margin-top: 0.15rem; }
.figure-note { max-width: 760px; margin: 1.8rem auto 0; text-align: center; font-size: 0.8rem; color: var(--gray); line-height: 1.65; }
.figure-note a { color: var(--maroon); font-weight: 600; }
.figure-note .mk { color: var(--maroon); font-weight: 700; }
.figure-note sup { color: var(--maroon); font-weight: 700; }
.figure-total { max-width: 720px; margin: 2rem auto 0; text-align: center; }
.figure-total .figure-total-amount { display: block; font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 800; color: var(--maroon); letter-spacing: -0.02em; line-height: 1; }
.figure-total p { margin: 0.7rem 0 0; color: #4a4247; font-size: 1.02rem; }

/* Feature: image beside text */
.feature { display: grid; gap: 1.5rem; align-items: center; margin: 2.5rem 0; }
.feature .feature-media { margin: 0; }
.feature .feature-body > :first-child { margin-top: 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .feature.reverse .feature-media { order: 2; }
}

/* 2x2 step grid (causal chain) */
.step-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 2rem 0 0.5rem; }
@media (min-width: 680px) { .step-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.step-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.5rem 1.4rem; box-shadow: var(--shadow); }
.step-card .step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 5px; background: var(--maroon); color: var(--maroon-on); font-weight: 800; font-size: 1rem; }
.step-card h3 { margin: 0.8rem 0 0.45rem; font-size: 1.14rem; line-height: 1.25; }
.step-card p { margin: 0; font-size: 0.95rem; color: #3a3338; }

/* Deep-dive cards: 1 column (mobile) → 2×2 grid (desktop) */
.dive-track {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin: 1.5rem 0 0;
}
@media (min-width: 720px) { .dive-track { grid-template-columns: 1fr 1fr; } }
.dive-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.dive-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--maroon); }
.dive-card .panel-eyebrow { margin: 0.3rem 0 0.4rem; }
.dive-card h3 { margin: 0 0 0.55rem; font-size: 1.2rem; line-height: 1.2; }
.dive-card p { font-size: 0.92rem; color: #3a3338; margin: 0 0 1.1rem; flex: 1 0 auto; }
.dive-card .panel-cta { margin-top: auto; }

/* Idea grid: cards for parallel proposals (reuses .dive-card).
   1 column on mobile → fixed 2×2 grid on wider viewports. */
.idea-grid {
  display: grid; gap: 1.25rem; margin: 1.9rem 0 0.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .idea-grid { grid-template-columns: 1fr 1fr; } }

/* Summary-panel thumbnail */
.panel-media { margin: 0 0 1.1rem; }
.panel-media .ph-svg, .panel-media img { border-radius: 8px; }

/* Optional hero / page-title background photo (drop <img class="hero-bg"> as first child) */
.hero-bg, .page-title-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; border: none; border-radius: 0; }
.hero > *:not(.hero-bg), .page-title > *:not(.page-title-bg) { position: relative; z-index: 2; }
/* hero scrim is bottom-weighted: photo reads up top, title stays legible lower-left */
.hero:has(.hero-bg)::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(58,12,22,.94) 0%, rgba(74,16,30,.55) 40%, rgba(110,26,44,.10) 100%);
}
.page-title:has(.page-title-bg)::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(78,16,31,.74) 0%, rgba(110,26,44,.90) 100%);
}

/* ════════════════ Print (every page) ════════════════
   The fixed header would repeat on every printed page and reveal-on-scroll
   content would print blank. Entry pages add their one-page sheet in cards.css. */
@media print {
  #site-header, footer, .toc-rail, .lightbox { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero, .page-title { min-height: 0; padding-top: 1rem; }
}

/* ════════════════ Reduced motion ════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── what-you-can-do card (standing CTA, all pages) ─────────────── */
.cta-card {
  background: var(--maroon); color: var(--maroon-on);
  border-radius: 12px; padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: inset 0 0 0 6px var(--msg, var(--maroon)), inset 0 0 0 8px var(--white);
}
.cta-card h2 { color: var(--white); margin: 0 0 .5rem; }
.cta-card > p { color: rgba(255,255,255,.85); max-width: 62ch; }
.cta-card ol { margin: 1.2rem 0 0; padding-left: 1.25rem; display: grid; gap: 1rem; }
.cta-card li { line-height: 1.6; color: rgba(255,255,255,.85); }
.cta-card strong { color: var(--white); }
.cta-card a { color: var(--gold); font-weight: 600; }
.cta-card a:hover { color: var(--white); }
.cta-card .cta-fine { margin-top: 1.4rem; font-size: .92rem; color: rgba(255,255,255,.72); }

/* ── measured vs modeled exhibits (R-018 follow-on) ─────────────────
   Actual-record tables use the default filled-maroon header. Future-model tables
   invert it: white background, maroon OUTLINED header, maroon border. The legend
   swatches mirror those two header styles. Slate now codes only "steelman/concede". */
.exhibit-badge {
  display: inline-block; font-family: inherit;
  font-size: .78rem; font-weight: 700; letter-spacing: 0;
  padding: .28rem .65rem; border-radius: 3px; margin: 0;
}
.badge-measured { background: var(--maroon); color: var(--maroon-on); border: 1px solid var(--maroon); } /* filled = actual */
.badge-model { background: var(--white); color: var(--maroon); border: 1px solid var(--maroon); }       /* outlined = model */

/* Future-model / projection tables: inverted maroon-on-white. Maroon table border +
   an OUTLINED header (white bg, maroon text, maroon underline) — the visual opposite
   of the filled-maroon header used for actual-record tables. Body stays light & readable. */
.table-wrap.model { background: var(--white); border-color: var(--maroon); }
.table-wrap.model .data-table th { background: var(--white); color: var(--maroon); border-bottom: 2px solid var(--maroon); }
.table-wrap.model a { color: var(--maroon); }

/* projection row inside an otherwise from-the-records table */
.data-table tr.model-row td { background: var(--maroon-tint); font-style: italic; color: var(--maroon); }

.exhibit-legend {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem .85rem;
  align-items: center; margin: 0; font-size: .85rem; color: var(--gray);
}
.exhibit-legend .exhibit-badge { margin: 0; justify-self: start; }

/* ── source-status: documented vs. not-yet-documented ──────────────
   A fourth color in the rhetorical family: maroon = documented fact,
   slate = steelman/concede, GOLD = not yet documented. A gold badge or
   banner must never let an unsourced claim read as settled fact. Every
   claim about a named individual without a repo source carries
   .src-badge--draft and/or sits inside a .draft-note. */
.src-badge {
  display: inline-block; font-family: inherit;
  font-size: .78rem; font-weight: 700; letter-spacing: 0;
  padding: .28rem .65rem; border-radius: 3px; margin: 0; vertical-align: middle;
}
.src-badge--draft { background: #FFF7E6; color: #7A5C00; border: 1px solid var(--gold); } /* gold = to be documented */

/* section-level "working draft" banner — same geometry as .alert-box/.concede-box, keyed gold */
.draft-note {
  border-radius: 10px; padding: 1rem 1.5rem; margin: 1.9rem 0;
  border-left: 6px solid var(--gold); background: #FFF7E6;
}
.draft-note .response-label { color: #7A5C00; }
.draft-note p { margin: 0; color: var(--ink); }
.draft-note p + p { margin-top: .6rem; }

/* ── stat callouts: one big number per section ─────────────────── */
.stat-pair { display: grid; gap: 0 1.6rem; }
@media (min-width: 700px) { .stat-pair { grid-template-columns: 1fr 1fr; align-items: start; } }
.stat-callout { margin: 1.8rem 0 .4rem; }
.stat-callout .stat-num {
  display: block; font-family: var(--mono);
  font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1;
  color: var(--maroon); letter-spacing: -0.02em;
}
.stat-callout .stat-label { display: block; margin-top: .35rem; font-size: 1rem; color: var(--ink); max-width: 56ch; }
/* Offset variant: the figure anchors left, its explanation sits beside it
   behind a hairline rule. Stacks back to the default below 560px, where two
   columns would squeeze the label to two or three words a line. */
@media (min-width: 560px) {
  .stat-callout.stat-side { display: flex; align-items: center; gap: 1.15rem; }
  .stat-callout.stat-side .stat-num { flex: none; }
  .stat-callout.stat-side .stat-label {
    margin-top: 0; padding-left: 1.15rem; border-left: 1px solid var(--border);
  }
  /* Mirrored: figure anchors right instead. Alternating the two down a page
     gives the cards rhythm without inventing a second treatment. */
  .stat-callout.stat-side.stat-flip { flex-direction: row-reverse; }
  .stat-callout.stat-side.stat-flip .stat-label {
    padding-left: 0; padding-right: 1.15rem;
    border-left: 0; border-right: 1px solid var(--border);
    text-align: right;
  }
}

/* ── centered rhetorical prompt that bridges into the next section ── */
.question-prompt {
  max-width: 48ch; margin: 2.2rem auto .4rem; text-align: center;
  font-size: 1.18rem; line-height: 1.65; color: var(--ink);
}
.question-prompt .q-label {
  display: block; margin-bottom: .5rem; font-size: .7rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--maroon);
}

/* ── provenance expanders: "Where this number comes from" ───────────
   Compact accordion variant. Binding is the generic .accordion-trigger
   handler in app.js; .prov only restyles it smaller. */
.accordion-trigger.prov {
  width: auto; padding: .3rem .7rem; margin: .5rem 0 0;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gray); background: transparent; border: 1px dashed var(--border);
  border-radius: 6px; display: inline-flex; gap: .5rem; align-items: center;
}
.accordion-trigger.prov:hover { color: var(--maroon); border-color: var(--maroon); }
.accordion-trigger.prov .accordion-icon { font-size: .8rem; }
.accordion-content.provenance { font-size: .85rem; color: #4a4247; }
.accordion-content.provenance ol { margin: .8rem 0 .8rem 1.1rem; padding: 0; display: grid; gap: .35rem; }
.accordion-content.provenance code, .accordion-content.provenance .n {
  font-family: var(--mono); font-size: .82rem; color: var(--ink);
}
