/* ═══════════════════════════════════════════════════════
   RFO Change Intelligence Project — style.css
   Design tokens match gloriagunn.com. Plain CSS only.
   Base: 18px. No horizontal scroll. No external deps.
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────── */
:root {
  --navy:         #0a1d33;
  --navy-light:   #1f3247;
  --navy-dark:    #06111e;
  --gold:         #c99a2e;
  --gold-light:   #ddb84a;
  --gold-muted:   #a37d24;
  --cream:        #f5ebd3;
  --cream-dark:   #ede0c5;
  --ink:          #23313d;
  --ink-light:    #3a4f60;
  --ink-muted:    #5b6873;
  --paper:        #ffffff;
  --bg-page:      #f5f7fa;
  --bg-card:      #ffffff;
  --border:       #d1d9e0;
  --border-strong:#a9b8c6;

  --font: 'Public Sans', system-ui, -apple-system, sans-serif;

  --max-w:     1180px;
  --prose-w:   760px;
  --section-x: 1.5rem;

  --gap-xs:  0.25rem;
  --gap-sm:  0.5rem;
  --gap-md:  1rem;
  --gap-lg:  1.5rem;
  --gap-xl:  2.5rem;
  --gap-2xl: 4rem;
  --gap-3xl: 6rem;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-page);
}

img { display: block; max-width: 100%; }

/* ── Accessibility ─────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Site wrap ──────────────────────────────────────────── */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Site chrome (static mirror of the React header/footer) ─
   Scoped to .gg-header / .gg-footer so Tracker UI is untouched. */
.gg-shell {
  width: 100%;
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
}

.gg-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: hsl(210 33% 97%);
  border-bottom: 1px solid hsl(210 20% 85%);
}

.gg-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.gg-header__brand {
  font-family: 'Public Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: hsl(212 68% 12%);
  text-decoration: none;
}

.gg-header__brand:hover,
.gg-header__brand:focus-visible {
  color: hsl(37 50% 34%);
}

.gg-header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.gg-header__nav a {
  position: relative;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(211 17% 29%);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.gg-header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gg-header__nav a:hover,
.gg-header__nav a:focus-visible {
  color: hsl(37 50% 34%);
}

.gg-header__nav a:hover::after,
.gg-header__nav a:focus-visible::after {
  transform: scaleX(1);
}

.gg-header__nav a:focus-visible,
.gg-header__brand:focus-visible,
.gg-header__toggle:focus-visible,
.gg-header__mobile-nav a:focus-visible {
  outline: 2px solid hsl(37 41% 52%);
  outline-offset: 4px;
}

.gg-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: transparent;
  color: hsl(212 68% 12%);
  cursor: pointer;
}

.gg-header__toggle:hover {
  background: hsl(210 20% 85% / 0.45);
}

.gg-header__icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.gg-header__mobile {
  background: hsl(210 33% 97%);
  border-top: 1px solid hsl(210 20% 85%);
}

.gg-header__mobile[hidden] {
  display: none !important;
}

.gg-header__mobile-nav {
  padding-block: 0.75rem;
}

.gg-header__mobile-nav a {
  display: block;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(211 17% 29%);
  text-decoration: none;
  padding-block: 0.625rem;
}

.gg-header__mobile-nav a:hover,
.gg-header__mobile-nav a:focus-visible {
  color: hsl(37 50% 34%);
}

@media (min-width: 1024px) {
  .gg-header__nav {
    display: flex;
    gap: 2rem;
  }

  .gg-header__toggle,
  .gg-header__mobile {
    display: none;
  }
}

.gg-footer {
  margin-top: auto;
  background: hsl(212 68% 12%);
  color: #fff;
  border-top: 1px solid hsl(0 0% 100% / 0.15);
}

.gg-footer__main {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.gg-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.gg-footer__label {
  margin: 0 0 1.25rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(37 41% 52%);
}

.gg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gg-footer a {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.85);
  text-decoration: none;
}

.gg-footer a:hover,
.gg-footer a:focus-visible {
  color: hsl(37 41% 52%);
}

.gg-footer a:focus-visible {
  outline: 2px solid hsl(37 41% 52%);
  outline-offset: 3px;
}

.gg-footer__icon-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gg-footer__icon-link svg {
  flex-shrink: 0;
}

.gg-footer__identity {
  min-width: 0;
}

.gg-footer__name {
  margin: 0 0 0.5rem;
  font-family: 'Public Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #fff;
}

.gg-footer__tagline {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(0 0% 100% / 0.8);
}

.gg-footer__bottom {
  border-top: 1px solid hsl(0 0% 100% / 0.15);
}

.gg-footer__bottom .gg-shell {
  padding-block: 1rem;
}

.gg-footer__copy {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.75rem;
  color: hsl(0 0% 100% / 0.7);
}

@media (min-width: 768px) {
  .gg-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
  }

  .gg-footer__identity {
    border-left: 1px solid hsl(0 0% 100% / 0.2);
    padding-left: 2rem;
  }
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem var(--section-x) 2rem;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 0.6rem;
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.06;
  color: #fff; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400; line-height: 1.4;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}

.hero-body {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 68ch; margin-bottom: 2rem;
}
.hero-body p {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.78);
}

.hero-actions {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}

.btn-primary {
  display: inline-block;
  background: var(--gold); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-decoration: none; border: none; cursor: pointer;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background 0.15s;
  min-height: 48px; display: inline-flex; align-items: center;
}
.btn-primary:hover { background: var(--gold-muted); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 4px; padding: 0.7rem 1.4rem;
  min-height: 48px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* btn-outline in light context */
.btn-outline-dark {
  color: var(--navy);
  border-color: var(--border-strong);
  background: transparent;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border-radius: 4px;
  padding: 0.7rem 1.4rem;
  display: inline-flex; align-items: center;
  min-height: 48px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline-dark:hover { border-color: var(--gold-muted); background: var(--cream); }

.btn-secondary {
  display: inline-flex; align-items: center;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px; padding: 0.7rem 1.4rem;
  min-height: 48px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--gold-muted); background: var(--cream); }

.hero-text-link {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px; transition: color 0.15s, border-color 0.15s;
}
.hero-text-link:hover { color: var(--gold-light); border-color: var(--gold-light); }

.text-link {
  font-size: 1rem; font-weight: 600; color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold-muted);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.text-link:hover { color: var(--gold-muted); }

.hero-scope-note {
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  max-width: 60ch; line-height: 1.55; margin-bottom: 1.25rem;
}
.scope-anchor {
  color: rgba(255,255,255,0.7); font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
}
.scope-anchor:hover { color: var(--gold-light); }

.hero-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: var(--gap-md);
  margin-top: 0.5rem;
}
.snapshot-badge, .dfars-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
.snapshot-badge .dot, .dfars-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4caf50; flex-shrink: 0;
}
.snapshot-badge.stale .dot { background: #f59e0b; }
.snapshot-badge.error .dot { background: #ef4444; }
.dfars-badge .dot { background: #f59e0b; }

/* ── Section shell ──────────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-x);
}
.section-inner.prose-width { max-width: var(--prose-w); }

.section-h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--navy); letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.section-intro {
  font-size: 1.05rem; color: var(--ink);
  max-width: 64ch; margin-bottom: 1.5rem;
}

/* ── Perspective section ────────────────────────────────── */
.perspective-section {
  background: var(--cream);
  padding: 2rem var(--section-x);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}
.perspective-section p {
  font-size: 1rem; line-height: 1.75;
  color: var(--ink-light); margin-bottom: 0.85rem;
  max-width: 66ch;
}
.perspective-section em { color: var(--navy); font-style: italic; font-weight: 500; }

/* ── Process section ────────────────────────────────────── */
.process-section {
  background: var(--paper);
  padding: 2rem var(--section-x);
  border-bottom: 1px solid var(--border);
}

.process-flow {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0;
  max-width: 680px;
  counter-reset: none;
}

.process-step {
  display: flex; gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }

.process-step-num {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.1rem;
}

.process-step-content h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.3rem; line-height: 1.3;
}
.process-step-content p {
  font-size: 1rem; color: var(--ink-light); line-height: 1.65;
}

/* ── Value section ──────────────────────────────────────── */
.value-section {
  background: var(--bg-page);
  padding: 2rem var(--section-x);
  border-bottom: 1px solid var(--border);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}

.value-item {
  padding: var(--gap-lg) 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  border-top: 3px solid var(--navy);
}
.value-item h3 {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.5rem;
}
.value-item p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-light); }

/* ── Builder section ────────────────────────────────────── */
.builder-section {
  background: var(--paper);
  padding: 2rem var(--section-x) 1.5rem;
  border-bottom: 1px solid var(--border);
}
.builder-section .section-inner { max-width: var(--max-w); }

.builder-intro {
  font-size: 1rem; color: var(--ink-light);
  max-width: 60ch; margin-bottom: 0.75rem; line-height: 1.65;
}
.builder-open-access {
  font-size: 0.875rem; font-weight: 700;
  color: var(--gold-muted);
  margin-bottom: 2rem; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.builder-controls {
  display: flex; flex-wrap: wrap;
  gap: 2rem; align-items: flex-start;
  margin-bottom: 1.25rem;
}

/* ── Control group ──────────────────────────────────────── */
.control-group { display: flex; flex-direction: column; gap: 0.5rem; }
.control-label {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-muted);
}

/* ── Combobox ───────────────────────────────────────────── */
.combobox-outer {
  position: relative;
  min-width: 300px;
  max-width: 400px;
}
.combobox-input-wrap {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  padding: 0 0.75rem;
  min-height: 52px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.combobox-outer[data-expanded="true"] .combobox-input-wrap,
.combobox-input-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(23,50,77,0.12);
}

.combobox-input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: 0;
  min-width: 0;
}
.combobox-input::placeholder { color: var(--ink-muted); }

.combobox-clear-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ink-muted); font-size: 1.1rem; line-height: 1;
  padding: 0.25rem; border-radius: 2px;
  transition: color 0.15s;
}
.combobox-clear-btn:hover { color: var(--ink); }

.combobox-arrow {
  color: var(--ink-muted); font-size: 0.7rem;
  margin-left: 0.25rem; pointer-events: none;
  transition: transform 0.15s;
}
.combobox-outer[data-expanded="true"] .combobox-arrow {
  transform: rotate(180deg);
}

.combobox-listbox {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  max-height: 280px; overflow-y: auto;
  z-index: 100;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.combobox-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.975rem; color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  min-height: 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.combobox-option:last-child { border-bottom: none; }
.combobox-option:hover,
.combobox-option[aria-selected="true"],
.combobox-option.highlighted {
  background: var(--cream);
}
.combobox-option[aria-selected="true"] {
  font-weight: 600; color: var(--navy);
}
.combobox-option-sub {
  font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.15rem;
}
.combobox-no-results {
  padding: 0.875rem 1rem;
  font-size: 0.925rem; color: var(--ink-muted); font-style: italic;
}

/* ── Stage selector ─────────────────────────────────────── */
.stage-fieldset { border: none; }

.stage-options {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.25rem;
}

.stage-btn {
  display: inline-flex; align-items: center;
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--border-strong);
  border-radius: 4px; padding: 0.5rem 0.875rem;
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  min-height: 44px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.stage-btn:hover {
  border-color: var(--navy); background: rgba(23,50,77,0.05);
}
.stage-btn.selected,
.stage-btn[aria-pressed="true"] {
  background: var(--navy); color: #fff;
  border-color: var(--navy); font-weight: 600;
}

/* ── Brief results ──────────────────────────────────────── */
.brief-empty-state {
  padding: 0.75rem 0 0.5rem;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* ── Copy link button ───────────────────────────────────── */
.copy-link-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 1px solid var(--border);
  border-radius: 4px; padding: 0.35rem 0.75rem;
  font-family: var(--font); font-size: 0.825rem; color: var(--ink-muted);
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.copy-link-btn:hover { border-color: var(--navy); color: var(--navy); }
.copy-link-btn.copied { color: #2e7d32; border-color: #4caf50; }

/* ── Executive brief ────────────────────────────────────── */
.exec-brief-section {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}
.exec-brief-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 0.75rem;
  margin-bottom: 1rem;
}
.exec-brief-heading {
  font-size: 1.15rem; font-weight: 700; color: #fff;
  margin: 0;
}
.exec-agency-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--gold); margin-bottom: 0.35rem;
}
.exec-stage-label {
  font-size: 0.75rem; font-weight: 500; color: rgba(255,255,255,0.6);
}
.exec-prose {
  font-size: 1rem; line-height: 1.75;
  color: rgba(255,255,255,0.9);
  max-width: 70ch; margin-bottom: 1.25rem;
}
.exec-meta {
  font-size: 0.825rem; color: rgba(255,255,255,0.72);
  line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
}
.exec-meta-sep { opacity: 0.4; }

/* ── Watchpoints section ────────────────────────────────── */
.watchpoints-section { margin-bottom: 2rem; }

.section-label {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--gold-muted); margin-bottom: 1rem;
}

.watchpoints-grid {
  display: flex; flex-direction: column; gap: 1rem;
}

.watchpoint-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
}

.watchpoint-part-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted);
  margin-bottom: 0.2rem;
}
.watchpoint-title {
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin-bottom: 0.75rem; line-height: 1.25;
}

.watchpoint-body { display: flex; flex-direction: column; gap: 1rem; }

.watchpoint-why { font-size: 0.95rem; color: var(--ink-light); line-height: 1.65; }

.watchpoint-functions {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.watchpoint-functions-label {
  font-size: 0.75rem; font-weight: 700; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 0.35rem;
  display: block;
}
.fn-chip {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--bg-page); color: var(--ink-light);
  border: 1px solid var(--border); border-radius: 99px;
}

.watchpoint-revalidate {
  background: rgba(201,154,46,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 0.75rem 1rem;
  font-size: 0.9rem; color: var(--ink); line-height: 1.6;
}
.watchpoint-revalidate-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-muted);
  display: block; margin-bottom: 0.3rem;
}

.watchpoint-questions {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.watchpoint-questions li {
  font-size: 0.9rem; color: var(--ink-light); line-height: 1.6;
  padding-left: 1.25em; text-indent: -1.25em;
}
.watchpoint-questions li::before { content: "• "; color: var(--gold-muted); }

.watchpoint-sources {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.source-link {
  font-size: 0.8rem; color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color 0.15s;
}
.source-link:hover { color: var(--gold-muted); border-bottom-color: var(--gold-muted); }

/* DFARS block inside watchpoint */
.dfars-block {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.dfars-block-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ink-muted);
  display: block; margin-bottom: 0.4rem;
}
.dfars-block p { color: var(--ink-light); line-height: 1.6; margin-bottom: 0.5rem; }
.dfars-block p:last-child { margin-bottom: 0; }

/* ── Pursuit functions section ──────────────────────────── */
/* ── Pursuit-area revalidation guide ─────────────────────────── */
.pursuit-areas-section {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .pursuit-areas-section { padding: 1.125rem 1.125rem; }
}

.pursuit-areas-subtitle {
  font-size: 0.9rem; color: var(--ink-muted);
  margin: 0.35rem 0 0.9rem;
  max-width: 52ch;
}

/* Legend */
.pursuit-legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.1rem;
}
.legend-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: var(--ink-muted); font-weight: 500;
}
.legend-highlighted::before {
  content: '';
  display: inline-block; width: 14px; height: 14px;
  background: var(--navy); border-radius: 3px;
  flex-shrink: 0;
}
.legend-outlined::before {
  content: '';
  display: inline-block; width: 14px; height: 14px;
  background: transparent; border: 2px solid var(--border);
  border-radius: 3px; flex-shrink: 0;
}

/* Button grid */
.pursuit-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.pursuit-btn {
  min-height: 44px;
  font-size: 0.875rem; font-weight: 500; font-family: inherit;
  padding: 0.375rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .pursuit-btn { transition: none; }
}

.pursuit-btn.highlighted {
  background: var(--navy); color: #fff;
  border: 2px solid var(--navy);
}
.pursuit-btn.highlighted:hover {
  background: #162a46;
  border-color: #162a46;
}

.pursuit-btn.outlined {
  background: var(--paper); color: var(--navy);
  border: 2px solid var(--border);
}
.pursuit-btn.outlined:hover {
  border-color: var(--navy);
  background: #f5f4ef;
}

/* Selected state — gold accent border, must work for both highlighted and outlined */
.pursuit-btn[aria-pressed="true"].highlighted {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
  outline: none;
}
.pursuit-btn[aria-pressed="true"].outlined {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
  outline: none;
}

/* Keyboard focus */
.pursuit-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Panel container */
.pursuit-panel-container {
  margin-bottom: 1.25rem;
}

.pursuit-no-highlight {
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem; color: var(--ink-muted);
}

/* Pursuit panel */
.pursuit-panel {
  border-radius: 6px;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
}
@media (max-width: 600px) {
  .pursuit-panel { padding: 1.125rem 1.125rem; }
}

.pursuit-panel.panel-highlighted {
  background: #fff;
  border-color: var(--gold);
  border-left: 4px solid var(--gold);
}

.pursuit-panel.panel-outlined {
  background: #fafaf8;
  border-color: var(--border);
}

/* Panel header */
.panel-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.panel-heading {
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin: 0;
}
.panel-surfaced-badge {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #7a5c00; background: #fff3cd;
  border: 1px solid #e8c93f;
  border-radius: 3px; padding: 0.15rem 0.45rem;
  flex-shrink: 0;
}

/* Non-exclusion caution */
.panel-not-surfaced {
  font-size: 0.875rem; color: var(--ink-muted);
  line-height: 1.55;
  padding: 0.75rem 1rem;
  background: #f5f4ef;
  border-left: 3px solid var(--border);
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.25rem;
}

/* Two-column layout */
.panel-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
}
@media (max-width: 700px) {
  .panel-cols { grid-template-columns: 1fr; gap: 1.25rem; }
}

.panel-subheading {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 0.45rem;
}
.panel-col + .panel-col .panel-subheading:first-child,
.panel-col-left .panel-subheading:first-child {
  margin-top: 0;
}
.panel-col .panel-subheading ~ .panel-subheading {
  margin-top: 1.1rem;
}

.panel-body {
  font-size: 0.9rem; line-height: 1.6;
  color: var(--ink); margin: 0 0 1.1rem;
}

.panel-list {
  font-size: 0.875rem; line-height: 1.55;
  margin: 0; padding-left: 1.25rem;
  color: var(--ink);
}
.panel-list li { margin-bottom: 0.35rem; }
.panel-list li:last-child { margin-bottom: 0; }

.panel-participants-label {
  font-size: 0.78rem; font-style: italic;
  color: var(--ink-muted); margin: 0 0 0.25rem;
}
.panel-participants {
  font-size: 0.875rem; font-weight: 600;
  color: var(--navy); margin: 0;
  line-height: 1.55;
}

.panel-sources { list-style: none; padding-left: 0; }
.panel-sources li { margin-bottom: 0.3rem; }
.panel-source-link {
  font-size: 0.875rem; color: var(--navy);
  text-underline-offset: 2px;
}
.panel-source-link:hover { color: var(--gold); }

/* Pursuit areas note */
.pursuit-areas-note {
  font-size: 0.875rem; font-style: italic;
  color: var(--ink-muted); margin: 0.5rem 0 0;
  line-height: 1.55;
}

/* Legacy fallback: keep func-chip and functions-flow for old briefings */
.functions-flow {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 0.75rem; margin-bottom: 1rem;
}
.func-chip {
  font-size: 0.85rem; font-weight: 500;
  padding: 0.3rem 0.8rem;
  background: var(--paper); color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 4px;
}
.func-chip.active {
  background: var(--navy); color: #fff;
  border-color: var(--navy); font-weight: 600;
}
.functions-note {
  font-size: 0.875rem; color: var(--ink-light);
  font-style: italic; line-height: 1.55; margin-top: 0.5rem;
  border-top: 1px solid var(--cream-dark); padding-top: 0.75rem;
}

/* ── Five controls section ──────────────────────────────── */
.controls-section {
  margin-bottom: 2rem;
}
.controls-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0;
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden;
}
.controls-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem; color: var(--ink); line-height: 1.6;
}
.controls-list li:last-child { border-bottom: none; }
.controls-num {
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  background: var(--navy); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.15rem;
}

/* ── Activity section ───────────────────────────────────── */
.activity-section { margin-bottom: 2rem; }

.activity-empty {
  font-size: 0.9rem; color: var(--ink-muted); font-style: italic;
  line-height: 1.6;
}
.activity-began {
  font-size: 0.85rem; color: var(--ink-muted);
  margin-top: 0.5rem; font-style: italic;
}
.activity-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.activity-item {
  display: flex; gap: 1rem;
  padding: 0.875rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.9rem;
}
.activity-date {
  flex-shrink: 0;
  font-size: 0.8rem; color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; padding-top: 0.15rem; min-width: 5rem;
}
.activity-body { flex: 1; min-width: 0; }
.activity-summary { color: var(--ink); line-height: 1.55; }
.activity-source {
  margin-top: 0.25rem; font-size: 0.78rem;
}

/* ── Collapsible sections ───────────────────────────────── */
.collapsible-section { margin-bottom: 1rem; }
.collapsible-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; text-align: left;
  background: none; border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--ink-muted); font-family: var(--font);
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: color 0.15s;
  min-height: 44px;
}
.collapsible-toggle:hover { color: var(--gold-muted); }
.collapsible-toggle-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.collapsible-toggle[aria-expanded="true"] .collapsible-toggle-arrow {
  transform: rotate(90deg);
}

.collapsible-body { padding-top: 1.25rem; }

/* Source map table */
.source-map-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.source-map-table th {
  text-align: left;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
  background: var(--bg-page);
}
.source-map-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink); vertical-align: top;
  line-height: 1.5;
}
.source-map-table tr:last-child td { border-bottom: none; }
.source-map-table tr:nth-child(even) td { background: var(--bg-page); }
.badge-listed { color: #2e7d32; font-weight: 600; font-size: 0.78rem; }
.badge-not-listed { color: var(--ink-muted); font-size: 0.78rem; }

/* Methodology block */
.methodology-block {
  font-size: 0.9rem; color: var(--ink-light);
}
.methodology-block h4 {
  font-size: 0.9rem; font-weight: 700; color: var(--navy);
  margin: 1rem 0 0.4rem;
}
.methodology-block h4:first-child { margin-top: 0; }
.methodology-block p, .methodology-block li {
  font-size: 0.875rem; line-height: 1.65; color: var(--ink-light);
}
.methodology-block ul, .methodology-block ol {
  padding-left: 1.25rem; margin-top: 0.25rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}

/* ── Project status section ─────────────────────────────── */
.status-section {
  background: var(--navy);
  color: #fff;
  padding: 2rem var(--section-x);
}
.status-section .section-h2 { color: #fff; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin-top: var(--gap-lg);
}
.status-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 1rem 1.25rem;
}
.status-item dt {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}
.status-item dd {
  font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.55;
}

/* ── Stewardship section ────────────────────────────────── */
.stewardship-section {
  background: var(--bg-page);
  padding: var(--gap-2xl) var(--section-x);
  border-bottom: 1px solid var(--border);
}
.stewardship-section p {
  font-size: 1rem; color: var(--ink-light);
  max-width: 58ch; line-height: 1.7; margin-bottom: 1.25rem;
}
.stewardship-links {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
}

/* ── Conversion section ─────────────────────────────────── */
.conversion-section {
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  padding: var(--gap-2xl) var(--section-x);
}
.conversion-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; color: var(--navy); line-height: 1.2;
  max-width: 44ch; margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}
.conversion-section p {
  font-size: 1rem; color: var(--ink-light);
  max-width: 58ch; line-height: 1.7; margin-bottom: 1.5rem;
}
.conversion-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

/* ── Tracker closing band ────────────────────────────────── */
.tracker-closing {
  background: var(--navy-dark);
  padding: 2rem var(--section-x);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tracker-closing-inner {
  max-width: var(--max-w); margin: 0 auto;
}
.tracker-closing-statement {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600; font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.5; margin-bottom: 1.25rem;
  max-width: 60ch;
}
.tracker-closing-meta {
  display: flex; flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
}
.tracker-closing-dates {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.4rem 0.75rem;
  font-size: 0.82rem;
}
.tracker-meta-item {
  display: flex; align-items: center; gap: 0.35rem;
}
.tracker-meta-label {
  color: rgba(255,255,255,0.45); font-weight: 500;
}
.tracker-meta-value {
  color: rgba(255,255,255,0.8); font-weight: 600;
}
.tracker-meta-sep { color: rgba(255,255,255,0.2); }
.tracker-closing-links {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 0.4rem 0.6rem;
  font-size: 0.82rem;
}
.tracker-source-link {
  color: rgba(255,255,255,0.55); text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
  padding-bottom: 1px; transition: color 0.15s, border-color 0.15s;
}
.tracker-source-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
.tracker-link-sep { color: rgba(255,255,255,0.2); }

/* ── Pre-footer bar ──────────────────────────────────────── */
.pre-footer-bar {
  background: rgba(201, 154, 46, 0.10);
  border-top: 1px solid rgba(201, 154, 46, 0.20);
  padding: 2rem 0;
}
.pre-footer-inner {
  max-width: 56rem; margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.pre-footer-text {
  font-size: 1rem; font-weight: 500;
  color: #0a1d33;
  line-height: 1.5;
}

/* legacy aliases kept for any app.js references */
.footer-sep { color: rgba(255,255,255,0.3); }

/* ── Error / loading ────────────────────────────────────── */
.state-loading, .state-error {
  padding: 2rem 0;
  color: var(--ink-muted); font-size: 1rem;
}
.state-error { color: #c62828; }

/* ── Evidence layers section ──────────────────────────────── */
.layers-section {
  background: var(--bg-page);
  padding: 2rem var(--section-x);
  border-top: 1px solid var(--border);
}
.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 1.5rem;
}
.layer-item {
  background: var(--bg-card);
  border: 2px solid rgba(201,154,46,0.3);
  border-radius: 6px;
  padding: 1.5rem;
}
.layer-label {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--gold-muted); margin-bottom: 0.6rem;
}
.layer-item p { font-size: 0.95rem; color: var(--ink-light); line-height: 1.65; }
.layers-note {
  font-size: 0.9rem; color: var(--ink-muted);
  font-style: italic; max-width: 64ch;
  border-left: 3px solid var(--gold-muted);
  padding-left: 1rem; margin-top: 0.5rem;
}

/* ── Defense layer section ────────────────────────────────── */
.defense-section {
  background: var(--paper);
  padding: 2rem var(--section-x);
  border-top: 1px solid var(--border);
}
.section-intro-sm {
  font-size: 1rem; font-weight: 600;
  color: var(--ink-light); margin-bottom: 1.25rem;
  font-style: italic;
}

/* ── Prose list ───────────────────────────────────────────── */
.prose-list {
  list-style: none; margin: 0.75rem 0 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.prose-list li {
  font-size: 1rem; color: var(--ink);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}
.prose-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-muted);
}

/* ── What the tracker saves section ──────────────────────── */
.saves-section {
  background: var(--bg-page);
  padding: 2rem var(--section-x);
  border-top: 1px solid var(--border);
}
.saves-section p { font-size: 1rem; color: var(--ink-light); line-height: 1.75; margin-bottom: 0.85rem; max-width: 66ch; }
.saves-emphasis {
  font-weight: 600; color: var(--navy);
  border-left: 3px solid var(--gold-muted);
  padding-left: 1rem;
  font-style: italic;
}

/* ── Method and reliance section ─────────────────────────── */
.method-section {
  background: var(--paper);
  padding: 2rem var(--section-x);
  border-top: 1px solid var(--border);
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 1.5rem 0;
}
.method-col-label {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--gold-muted); margin-bottom: 0.85rem;
}
.method-note {
  font-size: 0.9rem; color: var(--ink-muted);
  font-style: italic; max-width: 64ch;
  margin-top: 0.5rem;
}

/* ── Perspective section (repurposed) ────────────────────── */
.perspective-section h2 { margin-bottom: 1rem; }
.perspective-quote {
  font-size: 1.05rem; font-weight: 500;
  font-style: italic; color: var(--navy);
  border-left: 3px solid var(--gold-muted);
  padding-left: 1rem; margin: 1rem 0 1.25rem;
  line-height: 1.7;
}

/* ── Footer transition line ──────────────────────────────── */
.footer-transition {
  background: var(--navy);
  padding: 1.5rem var(--section-x);
}
.footer-transition-line {
  font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  max-width: var(--prose-w);
}

@media (max-width: 720px) {
  html { font-size: 17px; }

  .hero { padding: 2.5rem 1rem 2rem; }
  .hero-inner { max-width: 100%; }

  .section-inner { padding: 0 1rem; }

  .perspective-section,
  .process-section,
  .value-section,
  .builder-section,
  .status-section,
  .layers-section,
  .defense-section,
  .saves-section,
  .method-section,
  .tracker-closing { padding-left: 1rem; padding-right: 1rem; }

  .tracker-closing-meta { flex-direction: column; gap: 0.75rem; }
  .tracker-closing-dates { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .tracker-meta-sep { display: none; }

  .method-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .layers-grid { grid-template-columns: 1fr; }

  .builder-controls { flex-direction: column; gap: 1.5rem; }
  .combobox-outer { min-width: 100%; max-width: 100%; }

  .stage-options { gap: 0.4rem; }
  .stage-btn { font-size: 0.825rem; padding: 0.45rem 0.7rem; }

  .exec-brief-section { padding: 1.25rem 1.25rem; }
  .watchpoint-card { padding: 1.125rem 1.125rem; }
  .functions-section { padding: 1.125rem 1.125rem; }

  .value-grid { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }

  .source-map-table { font-size: 0.8rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-links { flex-wrap: wrap; }

  .conversion-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  html { font-size: 16px; }
  .hero-h1 { font-size: 2rem; }
  .stage-btn { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
