/* ============================================================
   Oath Peptides Reviews — Financial Dashboard
   Institutional blue + gain green + loss red on cool paper
   Set in Sora / Inter / JetBrains Mono
   ============================================================ */

:root {
  /* Palette */
  --primary: #0A2540;
  --primary-50: #E6EBF1;
  --primary-100: #C2CEDD;
  --primary-200: #94A8C0;
  --primary-700: #061A2E;
  --primary-900: #020E1C;
  --gain: #16A34A;
  --gain-50: #E7F5EC;
  --gain-100: #C8E9D3;
  --gain-700: #0F7A36;
  --loss: #DC2626;
  --loss-50: #FBEAEA;
  --loss-100: #F4C8C8;
  --loss-700: #A41B1B;
  --neutral-blue: #3B5A82;
  --warning: #B45309;
  --warning-50: #FEF3E2;

  --neutral-0: #FFFFFF;
  --neutral-50: #F5F7FA;
  --neutral-100: #EBEFF4;
  --neutral-150: #DEE4EC;
  --neutral-200: #CFD7E1;
  --neutral-300: #B0BBC9;
  --neutral-400: #849099;
  --neutral-500: #56657A;
  --neutral-600: #3D4A5C;
  --neutral-700: #2B3645;
  --neutral-800: #1A2330;
  --neutral-900: #0F151E;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-panel: #F5F7FA;
  --surface-subtle: #EBEFF4;
  --surface-inverse: #0A2540;
  --text: #1A2330;
  --text-strong: #0F151E;
  --text-muted: #56657A;
  --text-dim: #849099;
  --text-on-dark: #F5F7FA;
  --text-on-primary: #FFFFFF;
  --rule: #DEE4EC;
  --rule-strong: #CFD7E1;

  /* Typography */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --shell-max: 78rem;
  --content-max: 44rem;
  --comparison-max: 68rem;
  --container-px: clamp(1rem, 3vw, 2.25rem);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Base
   ============================================================ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'ss01' on, 'cv02' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary); color: var(--text-on-primary); }

/* ============================================================
   Layout containers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.container--content { max-width: var(--content-max); }
.container--comparison { max-width: var(--comparison-max); }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
h1 { font-weight: 700; font-size: clamp(2rem, 4.25vw, 3.25rem); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 2.75vw, 2.125rem); letter-spacing: -0.018em; line-height: 1.18; }
h3 { font-weight: 600; font-size: 1.375rem; }
h4 { font-weight: 600; font-size: 1.0625rem; }

p { margin-block: 0 1.15rem; }
p:last-child { margin-block-end: 0; }

strong { font-weight: 600; color: var(--text-strong); }
em { font-style: italic; }

a.inline-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}
a.inline-link:hover { color: var(--primary-700); border-bottom-color: var(--primary-700); }

code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-feature-settings: 'tnum' on, 'lnum' on;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  color: var(--neutral-900);
}

sup { font-size: 0.6875rem; vertical-align: super; line-height: 0; }
sup a {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 0 2px;
  border-bottom: 1px dotted var(--primary);
  transition: color 200ms ease-out;
}
sup a:hover { color: var(--primary-700); }

ul.body-list, ol.body-list {
  margin-block: 0 1.15rem;
  padding-left: 1.25rem;
  list-style: disc;
}
ol.body-list { list-style: decimal; }
ul.body-list li, ol.body-list li { margin-block-end: 0.5rem; }

/* ============================================================
   Header / masthead
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0.875rem var(--container-px);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.brand-square {
  width: 12px;
  height: 12px;
  background: var(--primary);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.018em;
  color: var(--neutral-800);
  text-transform: uppercase;
}
.brand-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--neutral-700);
  padding: 6px 0;
  position: relative;
  transition: color 200ms ease-out;
}
.site-nav a:hover { color: var(--primary); }
.site-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--primary);
}
.rev-chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 8px;
  border: 1px solid var(--primary);
  border-radius: 4px;
}
.nav-toggle {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--neutral-800);
  transition: transform 200ms ease-out;
}

/* Masthead ticker */
.masthead-ticker {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.ticker-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  min-height: 28px;
}
.ticker-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-900);
  border-right: 1px solid var(--rule);
  padding: 4px 8px;
}
.ticker-cell:last-child { border-right: none; }
.ticker-cell .ticker-label { color: var(--text-muted); }
.ticker-cell .ticker-value { color: var(--neutral-900); }
.ticker-cell .ticker-arrow { color: var(--gain); font-weight: 700; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--bg);
}
.hero-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.hero-content { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56ch; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
}
.eyebrow-square {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.25vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--neutral-900);
}
.hero-subhead {
  font-size: 1.1875rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--neutral-700);
  max-width: 60ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: 58% 42%;
    gap: 2rem;
    align-items: start;
  }
  .hero-content { max-width: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border: 0;
  border-radius: 0;
  transition: background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}
.btn-primary:hover { background: var(--primary-700); }
.btn-primary:active { background: var(--primary-900); }
.btn-secondary {
  background: transparent;
  color: var(--neutral-900);
  border: 1.5px solid var(--neutral-400);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 0;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--primary);
  transition: right 200ms ease-out;
}
.btn-ghost:hover::after { right: 0; }

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--surface);
}

/* ============================================================
   KPI tile / KPI quadrant / KPI strip
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--shell-max);
  margin: 2.5rem auto;
  padding-inline: var(--container-px);
}
@media (min-width: 820px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
}

.kpi-tile {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 170px;
}
.kpi-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gain);
}
.kpi-tile[data-polarity="loss"]::after { background: var(--loss); }
.kpi-tile[data-polarity="neutral"]::after { background: var(--neutral-blue); }
.kpi-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 0.75rem;
}
.kpi-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--neutral-900);
  font-feature-settings: 'tnum' on, 'lnum' on;
  margin-block-end: 0.75rem;
}
.kpi-value.kpi-value--md { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.kpi-value.kpi-value--sm { font-size: clamp(1.5rem, 2.5vw, 1.875rem); }
.kpi-value.kpi-value--xs { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.kpi-delta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gain-700);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.kpi-tile[data-polarity="loss"] .kpi-delta { color: var(--loss-700); }
.kpi-tile[data-polarity="neutral"] .kpi-delta { color: var(--neutral-blue); }
.kpi-delta .arrow { font-family: var(--font-mono); font-weight: 700; }
.kpi-temporal {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: auto;
  padding-top: 0.875rem;
  text-align: right;
}

/* ============================================================
   Article body / sections
   ============================================================ */
.article-body { padding: 2rem 0 4rem; }
.article-body section {
  max-width: var(--content-max);
  margin: 0 auto 2.5rem;
  padding-inline: var(--container-px);
}
.article-body section > h2 {
  position: relative;
  margin-block: 0 1.25rem;
  padding-bottom: 0.625rem;
}
.article-body section > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--primary);
}
.article-body section > h3 {
  margin-block: 1.5rem 0.75rem;
}

.section-divider {
  max-width: var(--shell-max);
  margin: 2rem auto;
  padding-inline: var(--container-px);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.section-divider::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  flex-shrink: 0;
}
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}

.hero-divider {
  max-width: var(--shell-max);
  margin: 1.5rem auto 0;
  padding-inline: var(--container-px);
}
.hero-divider hr {
  border: 0;
  border-top: 2px solid var(--primary);
  margin: 0;
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-block-end: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ============================================================
   Chips (ticker chips) — credibility surface
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.2;
}
.chip--verified { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.chip--gain { border-color: var(--gain); color: var(--gain-700); background: var(--gain-50); }
.chip--partial { border-color: var(--warning); color: var(--warning); background: var(--warning-50); }
.chip--neutral { border-color: var(--neutral-500); color: var(--neutral-700); background: var(--neutral-50); }
.chip--algo { border-color: var(--neutral-500); color: var(--neutral-700); background: var(--neutral-50); }
.chip--friction { border-color: var(--warning); color: var(--warning); background: var(--warning-50); }
.chip--pay-to-rate { border-color: var(--loss); color: var(--loss-700); background: var(--loss-50); }
.chip--examined { border-color: var(--loss); color: var(--loss-700); background: var(--loss-50); }

/* ============================================================
   Stat chip — inline data tag
   ============================================================ */
.stat-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  margin: 0.25rem 0.25rem 0.25rem 0;
}
.stat-chip-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
}
.stat-chip-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--neutral-900);
  font-feature-settings: 'tnum' on, 'lnum' on;
}

/* ============================================================
   Callout (note / claim_examined / honest_gap / ux_friction / regulatory)
   ============================================================ */
.callout {
  border: 1px solid var(--rule);
  border-left: 4px solid var(--primary);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  max-width: var(--content-max);
  margin-inline: auto;
}
.callout-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-block-end: 0.625rem;
}
.callout--claim-examined { border-left-color: var(--loss); }
.callout--claim-examined .callout-eyebrow { color: var(--loss-700); }
.callout--honest-gap { background: var(--surface-panel); border-left-color: var(--neutral-500); border-color: var(--rule-strong); }
.callout--honest-gap .callout-eyebrow { color: var(--text-muted); }
.callout--ux-friction { border-left-color: var(--warning); }
.callout--ux-friction .callout-eyebrow { color: var(--warning); }
.callout--regulatory { border-left-color: var(--primary); }
.callout--regulatory .callout-eyebrow { color: var(--primary); }

/* ============================================================
   Comparison panel
   ============================================================ */
.comparison-panel {
  max-width: var(--comparison-max);
  margin: 2rem auto;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.comparison-col-head {
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comparison-col-head:first-child { border-right: 1px solid var(--rule); }
.comparison-col-head .col-mark-blue {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--primary);
}
.comparison-col-head .col-mark-neutral {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neutral-blue);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.comparison-row:last-child { border-bottom: 0; }
.comparison-row:hover { background: rgba(245, 247, 250, 0.5); }
.comparison-metric {
  grid-column: 1 / -1;
  padding: 0.625rem 1.5rem 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.comparison-cell {
  padding: 0.625rem 1.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--neutral-800);
}
.comparison-cell:first-of-type {
  border-right: 1px solid var(--rule);
  color: var(--neutral-900);
  font-weight: 500;
}
.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6875rem;
  padding: 2px 6px;
  border: 1px solid var(--gain);
  background: var(--gain-50);
  color: var(--gain-700);
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}
.delta-chip--neutral {
  border-color: var(--neutral-400);
  color: var(--neutral-600);
  background: var(--neutral-50);
}

/* ============================================================
   Data table
   ============================================================ */
.data-table-wrap {
  max-width: var(--shell-max);
  margin: 1.5rem auto 2rem;
  padding-inline: var(--container-px);
  overflow-x: auto;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-bottom: 1px solid var(--rule-strong);
  font-feature-settings: 'tnum' on, 'lnum' on;
}
table.data-table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-900);
  border-top: 2px solid var(--primary);
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.875rem 0.75rem;
  text-align: left;
}
table.data-table thead th.numeric { text-align: right; }
table.data-table tbody tr { border-bottom: 1px solid var(--rule); }
table.data-table tbody tr:hover { background: rgba(245, 247, 250, 0.5); }
table.data-table tbody td {
  padding: 0.875rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--neutral-800);
  vertical-align: middle;
}
table.data-table tbody td.numeric, table.data-table tbody td.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
  font-feature-settings: 'tnum' on, 'lnum' on;
}
table.data-table tbody td.mono { text-align: left; }
table.data-table tbody td.compound {
  font-weight: 500;
  color: var(--neutral-900);
}
.endo-pass {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--gain-700);
  background: var(--gain-50);
  padding: 2px 8px;
  border: 1px solid var(--gain);
  border-radius: 4px;
  white-space: nowrap;
}

/* ============================================================
   Score bar
   ============================================================ */
.score-bar {
  display: inline-flex;
  gap: 2px;
  width: 80px;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.score-bar.score-bar--mini { width: 40px; }
.score-bar-seg {
  flex: 1;
  height: 10px;
  background: var(--rule);
}
.score-bar-seg[data-fill="1"] { background: var(--gain-100); }
.score-bar-seg[data-fill="2"] { background: var(--gain-100); }
.score-bar-seg[data-fill="3"] { background: var(--gain); }
.score-bar-seg[data-fill="4"] { background: var(--gain); }
.score-bar-seg[data-fill="5"] { background: var(--gain); }

/* ============================================================
   Rubric block
   ============================================================ */
.rubric-block {
  max-width: var(--shell-max);
  margin: 2rem auto;
  padding-inline: var(--container-px);
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .rubric-block { grid-template-columns: repeat(2, 1fr); }
}
.rubric-quadrant {
  padding: 1.75rem;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.rubric-quadrant:nth-child(odd) { border-right: 1px solid var(--rule); }
@media (min-width: 720px) {
  .rubric-quadrant:nth-child(2n) { border-right: 0; }
  .rubric-quadrant:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 719px) {
  .rubric-quadrant { border-right: 0; }
  .rubric-quadrant:last-child { border-bottom: 0; }
}
.rubric-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.rubric-bar { display: flex; gap: 2px; }
.rubric-bar-seg {
  flex: 1;
  height: 12px;
  background: var(--rule);
}
.rubric-bar-seg.filled { background: var(--gain); }
.rubric-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--primary);
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.rubric-rationale {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--neutral-700);
  line-height: 1.5;
}
.rubric-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--primary);
  align-self: flex-end;
  margin-top: auto;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--primary);
  transition: color 200ms ease-out;
}
.rubric-link:hover { color: var(--primary-700); }

/* ============================================================
   Figure
   ============================================================ */
figure.dashboard-figure {
  max-width: var(--shell-max);
  margin: 2rem auto;
  padding-inline: var(--container-px);
}
figure.dashboard-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
}
figure.dashboard-figure figcaption {
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--neutral-700);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
figure.dashboard-figure figcaption .fig-marker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ============================================================
   Five-layer dismantle
   ============================================================ */
.dismantle-layers {
  max-width: var(--comparison-max);
  margin: 2rem auto;
  padding-inline: var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.dismantle-layer {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--loss);
  padding: 1.5rem 1.75rem;
}
.dismantle-layer-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--loss-700);
  margin-block-end: 0.75rem;
  display: block;
}
.dismantle-layer p { margin-block-end: 0.875rem; }

/* ============================================================
   FAQ list (no accordion required — semantic details/summary or static)
   ============================================================ */
.faq-list {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--container-px);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-question {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--neutral-900);
  margin-block-end: 0.625rem;
  line-height: 1.4;
}
.faq-answer { color: var(--neutral-800); }
.faq-answer p:last-child { margin-block-end: 0; }

/* ============================================================
   References
   ============================================================ */
.references-list {
  max-width: var(--content-max);
  margin: 1.5rem auto 0;
  padding-inline: var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: ref;
  list-style: none;
}
.references-list li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--neutral-800);
}
.references-list li:last-child { border-bottom: 0; }
.references-list li::before {
  counter-increment: ref;
  content: "[" counter(ref) "]";
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  font-feature-settings: 'tnum' on;
}
.ref-source-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}
.ref-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  margin-left: 0.5rem;
  text-decoration: none;
  transition: color 200ms ease-out;
}
.ref-link:hover { color: var(--primary-700); }

/* ============================================================
   Contact form
   ============================================================ */
.contact-form {
  max-width: var(--content-max);
  margin: 1.5rem auto 0;
  padding-inline: var(--container-px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form .form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.contact-form label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--neutral-900);
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2.5px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .form-actions { margin-top: 0.5rem; }

/* ============================================================
   Inline keyword section markers
   ============================================================ */
.inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1rem;
}

/* ============================================================
   404 page
   ============================================================ */
.error-hero {
  text-align: center;
  padding: 4rem 0 5rem;
}
.error-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--primary);
  letter-spacing: -0.04em;
  margin-block-end: 0.5rem;
}
.error-hero h1 { margin-block-end: 1rem; }
.error-hero .hero-subhead { margin-block-end: 2rem; }
.error-hero .cta-row { justify-content: center; }

.dashboard-figure.dashboard-figure--square img { max-width: 640px; margin-inline: auto; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
  border-top: 2px solid var(--primary-100);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-block-end: 0.875rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-on-dark);
  opacity: 0.85;
  transition: opacity 200ms ease-out, color 200ms ease-out;
}
.footer-col a:hover { opacity: 1; color: var(--neutral-0); }
.footer-sub {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-700);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-dim);
}
.footer-copyright {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.site-footer :focus-visible {
  outline: 2.5px solid var(--text-on-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--surface-inverse);
}

/* ============================================================
   Tippy tooltip theme (citation)
   ============================================================ */
.tippy-box[data-theme~="oath-editorial"] {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--primary);
  border-top: 2px solid var(--primary);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: none;
}
.tippy-box[data-theme~="oath-editorial"] .tippy-content { padding: 0.875rem 1rem; }
.tippy-box[data-theme~="oath-editorial"] .tippy-arrow { color: var(--surface); }
.tippy-citation-text { color: var(--neutral-800); }
.tippy-citation-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.tippy-citation-link {
  display: inline-block;
  margin-top: 0.625rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}

/* ============================================================
   Responsive — mobile nav
   ============================================================ */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto auto; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 6px 12px rgba(10, 37, 64, 0.08);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--container-px);
  }
  .site-nav a {
    display: block;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav a[aria-current="page"]::after { display: none; }
}

@media (max-width: 640px) {
  .rev-chip { display: none; }
  .ticker-cell { font-size: 0.6875rem; padding: 4px 6px; letter-spacing: 0.08em; }
  .ticker-cell .ticker-label { display: none; }
  .header-inner { gap: 0.75rem; padding-block: 0.75rem; min-height: 64px; }
}

/* ============================================================
   Page-scroll target offset (for sticky header)
   ============================================================ */
:target { scroll-margin-top: 120px; }
