/* Responsible America — site stylesheet.
   Zero-dependency, no build step, matching the repo's offline-first ethos.
   Reuses GusPro's already-vendored, self-hosted fonts (SIL OFL) rather than
   fetching new ones. This file does not modify fonts/ — it only imports it. */

@import url('../fonts/fonts.css');

:root {
  --ra-bg: #f7f6f2;
  --ra-surface: #ffffff;
  --ra-text: #1c2227;
  --ra-text-muted: #4b5560;
  --ra-border: #d8d3c8;
  --ra-accent: #0f4c4a;
  --ra-accent-strong: #0a3634;
  --ra-accent-contrast: #ffffff;
  --ra-warn-bg: #fff6e0;
  --ra-warn-border: #caa227;
  --ra-warn-text: #5a4300;
  --ra-link: #0b4f8a;
  --ra-focus: #b3521e;
  --ra-badge-draft: #6b6f76;
  --ra-badge-published: #1b6e3c;
  --ra-badge-archived: #8a3b3b;
  --ra-radius: 6px;
  --ra-max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ra-bg: #14181b;
    --ra-surface: #1c2226;
    --ra-text: #eef1f3;
    --ra-text-muted: #a9b2ba;
    --ra-border: #333c42;
    --ra-accent: #4fb3ab;
    --ra-accent-strong: #6ecfc6;
    --ra-accent-contrast: #08211f;
    --ra-warn-bg: #332a05;
    --ra-warn-border: #caa227;
    --ra-warn-text: #f0d98a;
    --ra-link: #7db8ea;
    --ra-badge-draft: #9aa1a8;
    --ra-badge-published: #52c17f;
    --ra-badge-archived: #d98787;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--ra-bg);
  color: var(--ra-text);
  font-family: 'Archivo', system-ui, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

a { color: var(--ra-link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--ra-focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ra-accent);
  color: var(--ra-accent-contrast);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.ra-header {
  border-bottom: 1px solid var(--ra-border);
  background: var(--ra-surface);
}
.ra-header__inner {
  max-width: var(--ra-max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ra-brand {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ra-text);
  letter-spacing: -0.01em;
}
.ra-brand small {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ra-text-muted);
}
.ra-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.92rem; }
.ra-nav a { color: var(--ra-text); text-decoration: none; padding: 0.25rem 0; }
.ra-nav a:hover, .ra-nav a[aria-current="page"] { color: var(--ra-accent); text-decoration: underline; }

/* Unified 10-item nav (D-037): hidden hamburger toggle above the drawer
   breakpoint — desktop keeps the plain flex-wrap row above. Below it, the
   toggle appears and .ra-nav becomes a full-width collapsible drawer. */
.ra-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  background: var(--ra-surface);
  cursor: pointer;
  position: relative;
}
.ra-nav-toggle__bar,
.ra-nav-toggle__bar::before,
.ra-nav-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  background: var(--ra-text);
}
.ra-nav-toggle__bar { top: 50%; transform: translateY(-50%); }
.ra-nav-toggle__bar::before { top: -7px; }
.ra-nav-toggle__bar::after { top: 7px; }
.ra-nav-toggle[aria-expanded="true"] .ra-nav-toggle__bar { background: transparent; }
.ra-nav-toggle[aria-expanded="true"] .ra-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.ra-nav-toggle[aria-expanded="true"] .ra-nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .ra-nav-toggle { display: block; }
  .ra-nav {
    /* Collapsed by default: zero-height and clipped rather than
       display:none, so the drawer can transition. flex-wrap MUST be
       nowrap here — the base .ra-nav rule sets flex-wrap:wrap for the
       desktop horizontal row, and left uncleared it combines with
       flex-direction:column + a near-zero max-height to wrap items
       sideways into extra columns positioned far off-canvas (found via
       real Playwright measurement: closed-drawer links measured up to
       ~1730px right-edge on a 390px viewport). overflow:hidden clips
       that visually so nothing LOOKS broken, but the links remain in
       the DOM at those positions — nowrap forces one true vertical
       column instead. visibility:hidden (paired with is-open below)
       additionally keeps every drawer link out of the Tab order and
       accessibility tree while genuinely closed, not just visually
       clipped — a clipped-but-focusable link is a real keyboard trap
       otherwise. Both disabled from transitioning under
       prefers-reduced-motion via the global rule at the bottom of this
       file. */
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    width: 100%;
    order: 3;
    transition: max-height 0.2s ease, visibility 0.2s ease;
  }
  .ra-nav.is-open { max-height: 32rem; visibility: visible; }
  .ra-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--ra-border);
    /* 44px minimum touch target (WCAG 2.5.5) */
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .ra-header__inner { position: relative; }
}

main { max-width: var(--ra-max-width); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

.ra-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--ra-border);
  margin-bottom: 2rem;
}
.ra-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.ra-hero p.lede { font-size: 1.1rem; color: var(--ra-text-muted); max-width: 62ch; margin: 0 0 1.5rem; }
.ra-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: var(--ra-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ra-accent);
}
.btn--primary { background: var(--ra-accent); color: var(--ra-accent-contrast); }
.btn--primary:hover { background: var(--ra-accent-strong); }
.btn--ghost { background: transparent; color: var(--ra-accent); }
.btn--ghost:hover { background: var(--ra-accent); color: var(--ra-accent-contrast); }

.ra-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ra-card {
  display: block;
  padding: 1.1rem 1.2rem;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  text-decoration: none;
  color: var(--ra-text);
}
.ra-card:hover { border-color: var(--ra-accent); }
.ra-card h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.ra-card p { margin: 0; color: var(--ra-text-muted); font-size: 0.9rem; }
.ra-card .mono { font-size: 0.72rem; color: var(--ra-text-muted); display: block; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }

.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.badge--draft { color: var(--ra-badge-draft); }
.badge--published { color: var(--ra-badge-published); }
.badge--archived { color: var(--ra-badge-archived); }

/* Editorial firewall labels (D-037 / AMERICAN_RENEWAL_PLAN_RELATIONSHIP.md).
   Deliberately higher-contrast and more prominent than the draft/published
   status badges above — this is not workflow metadata, it's the single
   most load-bearing accessibility/trust signal on the unified site: a
   visitor must be able to tell, at a glance, whether they're reading a
   neutral factual explainer, a policy position, or an action prompt.
   Shape differs per category (not color alone — see the "never color
   alone" rule this mirrors from Civic Clarity's own design system) via
   each category's distinct icon glyph. */
.editorial-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: var(--ra-radius);
  border: 1.5px solid currentColor;
  margin-bottom: 0.75rem;
}
.editorial-label::before { font-family: initial; font-weight: 400; }
.editorial-label--inline { display: inline-flex; vertical-align: middle; margin: 0 0.3em; }
.editorial-label--factual { color: var(--ra-link); }
.editorial-label--factual::before { content: '◆'; }
.editorial-label--policy { color: var(--ra-accent); }
.editorial-label--policy::before { content: '▲'; }
/* Accessibility fix (Hostinger managed-hosting QA, this increment):
   was `color: var(--ra-warn-border)` (#caa227 on #ffffff = 2.41:1,
   fails WCAG AA's 4.5:1 for normal text) — that variable is tuned for a
   1.5px border stroke, not body-weight text; --ra-warn-border remains
   correct for exactly that purpose elsewhere (e.g. .reform-card__flag's
   border, unchanged). --ra-warn-text is this same warn palette's
   existing text-tuned counterpart (already used by .reform-card__flag
   for its own warn-colored text) — reusing it here keeps the identical
   amber "action" hue family (editorial identity preserved, same glyph/
   shape/layout) while clearing contrast in both color schemes: 9.4:1
   light (#5a4300 on #ffffff), 12.8:1 dark (#f0d98a on #14181b) —
   verified via manual WCAG relative-luminance calculation and
   confirmed with a real axe-core browser audit. The border, set via
   `border: 1.5px solid currentColor` two rules up, follows the same
   change automatically — still solid amber, not a redesign. */
.editorial-label--action { color: var(--ra-warn-text); }
.editorial-label--action::before { content: '●'; }

.ra-hero--compact { padding: 2rem 0 1.5rem; }
.coming-soon { margin-top: 1.5rem; text-align: left; }
.coming-soon__links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.coming-soon__links a { display: inline-block; padding: 0.5rem 0.9rem; border: 1px solid var(--ra-border); border-radius: var(--ra-radius); text-decoration: none; color: var(--ra-text); }
.coming-soon__links a:hover { border-color: var(--ra-accent); color: var(--ra-accent); }

/* Homepage entry-point grid (unified shell, D-037). */
.entry-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.25rem 0 0; }
.entry-card {
  display: block;
  padding: 1.3rem 1.4rem;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  text-decoration: none;
  color: var(--ra-text);
}
.entry-card:hover { border-color: var(--ra-accent); }
.entry-card h3 { margin: 0.5rem 0 0.4rem; font-size: 1.05rem; }
.entry-card p { margin: 0; color: var(--ra-text-muted); font-size: 0.9rem; }

/* Reform discovery cards (plan.html), replacing the old dense table with
   something scannable at a glance and naturally responsive. */
.reform-card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.reform-card h2 { margin: 0.4rem 0 0.5rem; font-size: 1rem; }
.reform-card > p { margin: 0 0 0.75rem; color: var(--ra-text-muted); font-size: 0.88rem; }
.reform-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; }
.reform-card__flag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ra-warn-text);
  background: var(--ra-warn-bg);
  border: 1px solid var(--ra-warn-border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.notice {
  background: var(--ra-warn-bg);
  border: 1px solid var(--ra-warn-border);
  color: var(--ra-warn-text);
  border-radius: var(--ra-radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}
.notice strong { display: block; margin-bottom: 0.2rem; }

/* Phase 4: review-status panel and policy-decision notices. */
.review-status-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.review-status-list li { border-bottom: 1px solid var(--ra-border); padding-bottom: 0.4rem; }
.notice-list .notice { margin-bottom: 0.75rem; }
.notice-list .notice:last-child { margin-bottom: 1.5rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  max-width: 100%;
}
.filters > div {
  /* min-width: 0 lets a flex item shrink below its content's intrinsic
     width (e.g. a <select>'s longest <option> text) instead of forcing
     the whole row to overflow on narrow viewports. */
  flex: 1 1 160px;
  min-width: 0;
}
.filters label { display: block; font-size: 0.78rem; color: var(--ra-text-muted); margin-bottom: 0.25rem; }
.filters select, .filters input[type="search"] {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--ra-border);
  border-radius: 4px;
  background: var(--ra-bg);
  color: var(--ra-text);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 420px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filters > div { flex-basis: auto; }
}

.table-scroll { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
table.ra-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 560px; }
table.ra-table th, table.ra-table td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--ra-border); vertical-align: top; }
table.ra-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ra-text-muted); }
table.ra-table td.num { font-family: 'IBM Plex Mono', monospace; }

.reform-header { border-bottom: 1px solid var(--ra-border); padding-bottom: 1.25rem; margin-bottom: 1.5rem; }
.reform-header .kicker { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--ra-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.reform-header h1 { margin: 0.3rem 0 0.6rem; }
.reform-section { margin: 1.6rem 0; }
/* Phase 4: narrow-viewport overflow fix. Research/change-log prose,
   argument text, and legal citations are free-form content the site
   cannot constrain the length or word-shape of (e.g. a slash-joined list
   like "supports/opposes/supports_with_changes" has no natural break
   point and, unfixed, forces horizontal scroll on a 320-390px viewport —
   found via real Playwright viewport testing against reforms 6-10's
   research output, not assumed). overflow-wrap makes any element break
   at any point rather than overflow once no earlier break point exists. */
#content, #main { overflow-wrap: break-word; }
.reform-section h2 { font-size: 1.15rem; border-left: 4px solid var(--ra-accent); padding-left: 0.6rem; }
.arg-columns { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 640px) { .arg-columns { grid-template-columns: minmax(0, 1fr); } }
.arg-columns ul { margin: 0; padding-left: 1.1rem; }
.appeal-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.appeal-grid > div { background: var(--ra-surface); border: 1px solid var(--ra-border); border-radius: var(--ra-radius); padding: 0.7rem 0.85rem; font-size: 0.9rem; }
.appeal-grid > div strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ra-text-muted); margin-bottom: 0.25rem; }

details.tech { border: 1px solid var(--ra-border); border-radius: var(--ra-radius); padding: 0.6rem 0.9rem; margin: 0.6rem 0; background: var(--ra-surface); }
details.tech summary { cursor: pointer; font-weight: 600; }

.changelog-entry { border-left: 3px solid var(--ra-border); padding-left: 0.8rem; margin-bottom: 0.8rem; }
.changelog-entry time { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--ra-text-muted); }

.ra-footer { border-top: 1px solid var(--ra-border); margin-top: 3rem; padding: 1.5rem 1.25rem; font-size: 0.85rem; color: var(--ra-text-muted); }
.ra-footer__inner { max-width: var(--ra-max-width); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.empty-state { padding: 2rem 1rem; text-align: center; color: var(--ra-text-muted); border: 1px dashed var(--ra-border); border-radius: var(--ra-radius); }

/* --- Phase 2 additions: design tokens, breadcrumbs, prev/next, source and
   claim components, lab status badges, planned-module cards. Kept in the
   same file (no CSS build step) but grouped here for reviewability. --- */

:root {
  --ra-space-1: 0.25rem;
  --ra-space-2: 0.5rem;
  --ra-space-3: 0.75rem;
  --ra-space-4: 1rem;
  --ra-space-6: 1.5rem;
  --ra-space-8: 2rem;
  --ra-bp-sm: 640px;
  --ra-bp-md: 900px;
  --ra-status-exploratory: #6b6f76;
  --ra-status-researching: #0b4f8a;
  --ra-status-legal: #8a3b3b;
  --ra-status-fiscal: #8a6d1d;
  --ra-status-owner: #6a2f8a;
  --ra-status-not-adopted: #4b5560;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ra-status-exploratory: #9aa1a8;
    --ra-status-researching: #7db8ea;
    --ra-status-legal: #d98787;
    --ra-status-fiscal: #e0c26b;
    --ra-status-owner: #c79ee6;
    --ra-status-not-adopted: #a9b2ba;
  }
}

.breadcrumbs { font-size: 0.8rem; color: var(--ra-text-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ra-text-muted); }
.breadcrumbs [aria-current="page"] { color: var(--ra-text); }

.reform-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ra-border);
}
.reform-pager a {
  flex: 1;
  min-width: 0; /* allow the flex item to shrink below its content's
    intrinsic width so a long neighboring reform title actually wraps
    instead of forcing horizontal overflow at narrow viewports — found
    via real narrow-viewport testing once Phase 6 added longer-titled
    reforms into the prev/next chain (see docs/accessibility.md). */
  padding: 0.75rem 1rem;
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  text-decoration: none;
  color: var(--ra-text);
}
.reform-pager a:hover { border-color: var(--ra-accent); }
.reform-pager .dir { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ra-text-muted); font-family: 'IBM Plex Mono', monospace; }
.reform-pager .next { text-align: right; }

.source-card, .claim-card {
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  background: var(--ra-surface);
  padding: var(--ra-space-3) var(--ra-space-4);
  margin-bottom: var(--ra-space-3);
}
.source-list, .claim-list { display: flex; flex-direction: column; gap: 0; }

/* Source status (current/superseded/historical_reference) — distinct icon
   glyph per status, never color alone, matching the editorial-label
   convention above. */
.source-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.source-status::before { font-family: initial; font-weight: 400; }
.source-status--current { color: var(--ra-badge-published); }
.source-status--current::before { content: '✓'; }
.source-status--superseded { color: var(--ra-badge-archived); }
.source-status--superseded::before { content: '↦'; }
.source-status--historical { color: var(--ra-text-muted); }
.source-status--historical::before { content: '◷'; }
.source-status--unknown { color: var(--ra-badge-draft); }

/* A contradicting-source line gets a distinct left accent so a visitor
   scanning a claim card can't miss that this is the opposing evidence, not
   more support — the "SUPPORTING SOURCE" / "CONTRADICTING SOURCE" text
   label is the primary signal (never color alone); this is reinforcement. */
.claim-contradicting {
  border-left: 3px solid var(--ra-warn-border);
  padding-left: 0.6rem;
}

/* Evidence pipeline (research-evidence.html). A plain ordered list, not a
   canvas/SVG diagram — reads correctly with a screen reader and reflows to
   narrow viewports without any special-casing. */
.evidence-pipeline__list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.evidence-pipeline__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ra-border);
}
.evidence-pipeline__step:first-child { border-top: none; }
.evidence-pipeline__num {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ra-accent);
  color: var(--ra-accent);
  border-radius: 999px;
  font-size: 0.85rem;
}
.evidence-pipeline__step p { margin: 0.2rem 0 0; }

.lab-status {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.lab-status--exploratory { color: var(--ra-status-exploratory); }
.lab-status--researching { color: var(--ra-status-researching); }
.lab-status--needs_legal_review { color: var(--ra-status-legal); }
.lab-status--needs_fiscal_analysis { color: var(--ra-status-fiscal); }
.lab-status--owner_decision_required { color: var(--ra-status-owner); }
.lab-status--not_adopted { color: var(--ra-status-not-adopted); }

.module-card {
  border: 1px dashed var(--ra-border);
  border-radius: var(--ra-radius);
  padding: var(--ra-space-4);
  background: var(--ra-surface);
}
.module-card h3 { margin: 0.2rem 0 0.4rem; font-size: 1rem; }
.module-card .planned-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ra-text-muted);
  border: 1px solid var(--ra-border);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.section-counts { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.82rem; margin: 0.5rem 0 1.25rem; }
.section-counts span { padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--ra-border); color: var(--ra-text-muted); }

.dev-notice { font-size: 0.82rem; color: var(--ra-text-muted); }

.reform-section h2 .anchor-link,
.reform-section h3 .anchor-link { color: inherit; text-decoration: none; }
.reform-section h2 .anchor-link:hover,
.reform-section h3 .anchor-link:hover { text-decoration: underline; }
.reform-section h2 .anchor-link:focus-visible,
.reform-section h3 .anchor-link:focus-visible { outline: 3px solid var(--ra-focus); outline-offset: 2px; }
.reform-section h3 { font-size: 1rem; margin-top: 1.4rem; color: var(--ra-text); }

/* Reform-page "On this page" nav (deliberately NOT sticky/fixed — a
   long reform's own headings must never be covered, and a static block
   avoids that risk entirely rather than requiring careful scroll-margin
   tuning against every possible viewport height). Sits once, right after
   the header, before the first section. */
.reform-toc {
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  background: var(--ra-surface);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.75rem;
}
.reform-toc ul { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.reform-toc a { font-size: 0.9rem; text-decoration: none; color: var(--ra-link); }
.reform-toc a:hover { text-decoration: underline; }
/* Anchored headings still need breathing room above them so a browser's
   jump-to-anchor doesn't tuck the heading right against the viewport top. */
.reform-section h2[id], .reform-section h3[id] { scroll-margin-top: 1rem; }

/* --- Phase 3: utility classes replacing inline style="" attributes, so a
   strict CSP can drop style-src 'unsafe-inline'. See docs/security-and-privacy.md
   Phase 3 CSP section. Small and generic by design — combine, don't grow a
   one-off class per component. --- */
.text-muted { color: var(--ra-text-muted); }
.intro-copy { max-width: 70ch; color: var(--ra-text-muted); }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.8rem; }
.kicker-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ra-text-muted);
}
.kicker-label--tight { font-size: 0.72rem; }
.inline-note { font-size: 0.85em; }
.inline-note--xs { font-size: 0.7em; }
.mt-tight { margin-top: 0.5rem; }
.notice--tight { margin: 0.5rem 0 0; }
/* Phase 3: replaced an opacity-based "not started" treatment with a
   border-style change — opacity uniformly lightens both a card's text AND
   its background toward the page backdrop, which measurably reduced text
   contrast below WCAG AA (caught by an automated axe-core audit, not by
   the earlier manual token-pair contrast check — see docs/accessibility.md's
   Phase 3 section). A dashed border communicates "not started" without
   touching any text color. */
.ra-card--not-started { border-style: dashed; }
.ml-tight { margin-left: 0.5rem; }
.result-count { font-size: 0.85rem; margin-bottom: 0.5rem; }
.summary-preview { color: var(--ra-text-muted); font-size: 0.85rem; }

/* Phase 3: the site has no animation, transitions, or smooth-scrolling
   today (confirmed — grep for transition/animation/scroll-behavior across
   this file returns nothing), so there is nothing to disable yet. This
   rule is a defensive default for whatever gets added later: any future
   transition/animation must respect prefers-reduced-motion, and this
   catch-all guarantees that even if a future contributor forgets to scope
   a new animation themselves. See docs/accessibility.md's Phase 3 section. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .ra-header, .ra-footer, .filters, .ra-nav, .ra-nav-toggle, .no-print, .reform-pager, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
