/* Capital Compass article system
   Paper and ink palette, one accent, square corners, no shadows, no gradients, no hover motion. */

:root {
  --paper: #f2eee5;
  --paper-2: #e8e2d4;
  --paper-3: #ddd5c3;
  --ink: #1a2330;
  --ink-2: #47505c;
  --ink-3: #6d7480;
  --rule: #c9bfab;
  --accent: #8a3a1c;
  --accent-soft: #d9c2b2;
  --slate: #2f4a5d;
  --slate-soft: #c4ccd0;
  --focus: #8a3a1c;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --measure: 680px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12181f;
    --paper-2: #1a222b;
    --paper-3: #232d38;
    --ink: #e7e1d5;
    --ink-2: #b9b3a7;
    --ink-3: #8f8a80;
    --rule: #34404c;
    --accent: #d2875c;
    --accent-soft: #4a3226;
    --slate: #8fb0c4;
    --slate-soft: #2b3a46;
    --focus: #d2875c;
  }
}
:root[data-theme="dark"] {
  --paper: #12181f;
  --paper-2: #1a222b;
  --paper-3: #232d38;
  --ink: #e7e1d5;
  --ink-2: #b9b3a7;
  --ink-3: #8f8a80;
  --rule: #34404c;
  --accent: #d2875c;
  --accent-soft: #4a3226;
  --slate: #8fb0c4;
  --slate-soft: #2b3a46;
  --focus: #d2875c;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-family: var(--sans); font-size: 14px;
}
.skip:focus { left: 16px; top: 16px; z-index: 20; }

/* Reading progress */
.cc-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 30;
}

/* Masthead */
.cc-masthead {
  position: sticky; top: 0; z-index: 25;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.cc-masthead-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.cc-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
}
.cc-brand-name { display: block; font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.2; }
.cc-brand-sub { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-3); line-height: 1.3; }

.cc-nav { display: flex; gap: 22px; font-family: var(--sans); font-size: 14px; }
.cc-nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.cc-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.cc-nav a:hover { color: var(--ink); }

.cc-menu {
  display: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); padding: 7px 12px; cursor: pointer;
}

@media (max-width: 820px) {
  .cc-menu { display: inline-block; }
  .cc-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 4px var(--gutter) 12px;
  }
  .cc-nav.is-open { display: flex; }
  .cc-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .cc-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--accent); }
  .cc-brand-sub { display: none; }
}

/* Hero */
.cc-hero { border-bottom: 1px solid var(--rule); }
.cc-hero-inner { max-width: 1160px; margin: 0 auto; padding: 64px var(--gutter) 44px; }
.cc-eyebrow {
  margin: 0 0 20px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.cc-eyebrow a { text-decoration: none; }
.cc-title {
  margin: 0; max-width: 16ch;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.015em;
}
.cc-deck {
  margin: 24px 0 0; max-width: 40ch;
  font-size: clamp(20px, 2.4vw, 25px); line-height: 1.4; color: var(--ink-2);
}
.cc-byline {
  margin: 36px 0 0; padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-3);
}
.cc-byline strong { color: var(--ink); font-weight: 600; }

/* Layout shell */
.cc-shell {
  max-width: 1160px; margin: 0 auto;
  padding: 48px var(--gutter) 80px;
  display: grid; grid-template-columns: 220px minmax(0, var(--measure)); gap: 72px;
}
@media (max-width: 1000px) {
  .cc-shell { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: calc(var(--measure) + 2 * var(--gutter)); padding-top: 28px; }
}

/* Table of contents */
.cc-toc { font-family: var(--sans); font-size: 14px; }
.cc-toc-inner { position: sticky; top: 96px; }
.cc-toc h2 {
  margin: 0 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.cc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-top: 1px solid var(--rule); }
.cc-toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.cc-toc a {
  display: grid; grid-template-columns: 28px 1fr; gap: 4px;
  padding: 9px 0; text-decoration: none; color: var(--ink-2); line-height: 1.35;
}
.cc-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 1px; }
.cc-toc a.is-active { color: var(--ink); font-weight: 600; }
.cc-toc a.is-active::before { color: var(--accent); }
.cc-toc details summary { display: none; }

@media (max-width: 1000px) {
  .cc-toc { margin-bottom: 32px; }
  .cc-toc-inner { position: static; }
  .cc-toc details { border: 1px solid var(--rule); }
  .cc-toc details summary {
    display: block; cursor: pointer; list-style: none;
    padding: 12px 14px; font-weight: 600; font-size: 14px;
  }
  .cc-toc details summary::-webkit-details-marker { display: none; }
  .cc-toc details summary::after { content: "Show"; float: right; font-weight: 400; color: var(--ink-3); }
  .cc-toc details[open] summary::after { content: "Hide"; }
  .cc-toc details h2 { display: none; }
  .cc-toc details ol { margin: 0 14px 10px; }
}

/* Prose */
.cc-prose > * { max-width: var(--measure); }
.cc-prose p { margin: 0 0 1.15em; }
.cc-lede { font-size: 22px; line-height: 1.52; }
.cc-lede::first-letter {
  float: left; font-size: 3.4em; line-height: 0.86; font-weight: 600;
  padding: 6px 10px 0 0; color: var(--accent);
}
.cc-prose h2 {
  margin: 2.4em 0 0.7em;
  font-size: clamp(27px, 3.4vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em;
}
.cc-prose h2 .cc-num {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--accent);
}
.cc-prose h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
.cc-prose strong { font-weight: 600; }

/* Stage list (the machine) */
.cc-stages { list-style: none; margin: 1.6em 0 2em; padding: 0; counter-reset: stage; }
.cc-stages li {
  counter-increment: stage;
  display: grid; grid-template-columns: 56px 1fr; gap: 0 18px;
  padding: 22px 0; border-top: 1px solid var(--rule);
}
.cc-stages li:last-child { border-bottom: 1px solid var(--rule); }
.cc-stages li::before {
  content: counter(stage, decimal-leading-zero);
  font-family: var(--mono); font-size: 26px; line-height: 1; color: var(--accent); padding-top: 2px;
}
.cc-stages p { margin: 0; font-size: 18px; }
.cc-stage-tag {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}

/* Pull quote */
.cc-pull {
  margin: 2em 0 !important; padding: 26px 0;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  font-size: clamp(23px, 2.8vw, 28px); line-height: 1.34; font-style: italic;
}

/* Control points */
.cc-controls { margin: 1.4em 0 2em; border-top: 2px solid var(--ink); }
.cc-control {
  display: grid; grid-template-columns: 170px 1fr; gap: 6px 24px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.cc-control dt { font-family: var(--sans); font-weight: 600; font-size: 16px; }
.cc-control dt span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); margin-bottom: 4px; }
.cc-control dd { margin: 0; font-size: 18px; }
@media (max-width: 560px) { .cc-control { grid-template-columns: 1fr; } }

/* Signal list */
.cc-signal { margin: 0 0 1.15em; }
.cc-signal b { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; margin-right: 6px; }

/* Note */
.cc-note {
  margin: 2em 0; padding: 22px 24px;
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
}
.cc-note-label {
  margin: 0 0 8px !important;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.cc-note p:last-child { margin-bottom: 0; }

/* Figures */
.cc-figure {
  margin: 2.6em 0; padding: 22px 0 0;
  border-top: 2px solid var(--ink);
}
.cc-fig-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.cc-fig-no { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.cc-fig-title { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 0; }
.cc-figure figcaption {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink-2);
}
.cc-figure figcaption .cc-src { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.cc-figure svg { display: block; width: 100%; height: auto; }

/* SVG vocabulary */
.cc-svg-ink { fill: var(--ink); }
.cc-svg-ink2 { fill: var(--ink-2); }
.cc-svg-ink3 { fill: var(--ink-3); }
.cc-svg-accent { fill: var(--accent); }
.cc-svg-box { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.cc-svg-box-fill { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; }
.cc-svg-box-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.cc-svg-line { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.cc-svg-line-accent { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.cc-svg-rule { stroke: var(--rule); stroke-width: 1; }
.cc-svg-dash { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 4; }
.cc-t-title { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.cc-t-body { font-family: var(--sans); font-size: 12px; fill: var(--ink-2); }
.cc-t-mono { font-family: var(--mono); font-size: 11.5px; fill: var(--ink-3); letter-spacing: 0.04em; }
.cc-t-mono-accent { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--accent); }
.cc-t-year { font-family: var(--mono); font-size: 15px; font-weight: 600; fill: var(--ink); }

/* Figure 1 machine strip (HTML, responsive) */
.cc-machine { position: relative; }
.cc-machine-axis {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3);
  margin-bottom: 10px;
}
.cc-machine-axis span:nth-child(2) { flex: 1; height: 1px; background: var(--ink-3); margin: 0 12px; position: relative; }
.cc-machine-axis span:nth-child(2)::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border-left: 7px solid var(--ink-3); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.cc-machine-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--ink);
}
.cc-mstage { padding: 12px 10px 14px; border-right: 1px solid var(--rule); min-height: 168px; }
.cc-mstage:last-child { border-right: 0; background: var(--accent-soft); }
.cc-mstage:first-child { background: var(--paper-2); }
.cc-mstage-no { font-family: var(--mono); font-size: 11.5px; color: var(--accent); font-weight: 600; }
.cc-mstage-name { display: block; font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 1.25; margin: 4px 0 8px; }
.cc-mstage ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.cc-mstage li + li { margin-top: 2px; }
.cc-machine-return {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2);
}
.cc-machine-return::before { content: ""; flex: 0 0 26px; height: 0; border-top: 1.5px dashed var(--accent); }
@media (max-width: 720px) {
  .cc-machine-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-mstage { border-bottom: 1px solid var(--rule); min-height: 0; }
  .cc-mstage:nth-child(2n) { border-right: 0; }
  .cc-mstage:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Timeline (Figure 2) */
.cc-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.cc-timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 1px; background: var(--ink); }
.cc-timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 0 28px; padding: 0 0 16px; position: relative; }
.cc-timeline li::after {
  content: ""; position: absolute; left: 88px; top: 8px;
  width: 9px; height: 9px; background: var(--paper); border: 1.5px solid var(--ink);
}
.cc-timeline li.is-shock::after { background: var(--accent); border-color: var(--accent); }
.cc-timeline li.is-first::after { background: var(--ink); }
.cc-tl-year { font-family: var(--mono); font-size: 15px; font-weight: 600; padding-top: 1px; }
.cc-tl-body { font-family: var(--sans); font-size: 14.5px; line-height: 1.45; }
.cc-tl-body b { font-weight: 600; }
.cc-tl-body em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }
.cc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cc-legend i { display: inline-block; width: 9px; height: 9px; border: 1.5px solid var(--ink); background: var(--paper); }
.cc-legend i.k-shock { background: var(--accent); border-color: var(--accent); }
.cc-legend i.k-first { background: var(--ink); }

/* Interactive panels */
.cc-tabs { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--ink); width: fit-content; max-width: 100%; margin-bottom: 16px; }
.cc-tab {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink); cursor: pointer;
  border: 0; border-right: 1px solid var(--ink); padding: 9px 16px;
}
.cc-tab:last-child { border-right: 0; }
.cc-tab[aria-pressed="true"], .cc-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.cc-demo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 640px) { .cc-demo-grid { grid-template-columns: 1fr; } }
.cc-readout { font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
.cc-readout h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.cc-readout p { margin: 0 0 10px !important; }
.cc-readout dl { margin: 12px 0 0; border-top: 1px solid var(--rule); }
.cc-readout dl div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.cc-readout dt { color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); padding-top: 2px; }
.cc-readout dd { margin: 0; }

/* Executability check */
.cc-checks { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.cc-check {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.cc-check-label b { display: block; font-size: 15px; font-weight: 600; }
.cc-check-label span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.cc-switch { display: inline-flex; border: 1px solid var(--ink); }
.cc-switch button {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  background: transparent; color: var(--ink); border: 0; padding: 6px 12px; cursor: pointer;
}
.cc-switch button + button { border-left: 1px solid var(--ink); }
.cc-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cc-verdict { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--ink); font-family: var(--sans); }
.cc-verdict[data-state="funded"] { background: var(--paper-2); }
.cc-verdict[data-state="repriced"] { background: var(--accent-soft); border-color: var(--accent); }
.cc-verdict-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent); }
.cc-verdict h4 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; }
.cc-verdict p { margin: 0 0 8px !important; font-size: 14.5px; line-height: 1.5; }
.cc-symptoms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: 10px; }
.cc-symptom { padding: 10px 10px 4px 0; font-size: 13px; line-height: 1.4; }
.cc-symptom + .cc-symptom { padding-left: 10px; border-left: 1px solid var(--rule); }
.cc-symptom b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: 2px; }
@media (max-width: 520px) {
  .cc-symptoms { grid-template-columns: 1fr; }
  .cc-symptom + .cc-symptom { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Skeleton loaders */
.cc-skeleton { display: grid; gap: 12px; padding: 4px 0 8px; }
.cc-skel {
  display: block; background: var(--paper-3);
  animation: cc-pulse 1.4s ease-in-out infinite;
}
.cc-skel-bar { height: 34px; width: 60%; }
.cc-skel-chart { height: 220px; width: 100%; }
.cc-skel-line { height: 12px; width: 90%; }
.cc-skel-line.short { width: 55%; }
@keyframes cc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .cc-skel { animation: none; } }
.is-ready > .cc-skeleton { display: none; }
.cc-live[hidden] { display: none; }

/* Table */
.cc-table-wrap { overflow-x: auto; margin: 1.6em 0 2em; border-top: 2px solid var(--ink); }
.cc-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; line-height: 1.45; min-width: 560px; }
.cc-table th, .cc-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.cc-table thead th { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cc-table tbody th { font-weight: 600; width: 22%; }

/* Series */
.cc-series { margin: 3.2em 0 2em; padding-top: 20px; border-top: 2px solid var(--ink); }
.cc-series h2 { margin: 0 0 14px !important; font-family: var(--sans); font-size: 12.5px !important; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.cc-series ol { list-style: none; margin: 0; padding: 0; font-family: var(--sans); }
.cc-series li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.cc-series .p { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.cc-series .s { font-size: 12.5px; color: var(--ink-3); }
.cc-series li[aria-current="page"] { font-weight: 600; }
.cc-series li[aria-current="page"] .s { color: var(--accent); }

.cc-disclosure { font-family: var(--sans); font-size: 13px !important; line-height: 1.55; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 14px; }

/* Footer */
.cc-foot { border-top: 1px solid var(--ink); background: var(--paper-2); }
.cc-foot-inner {
  max-width: 1160px; margin: 0 auto; padding: 28px var(--gutter) 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink-2);
}
.cc-foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cc-foot-links a { color: var(--ink); }
.cc-foot small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }

/* Back to top */
.cc-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer;
  display: none;
}
.cc-top.is-visible { display: block; }

/* Legal pages */
.cc-legal { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 80px; }
.cc-legal h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; font-weight: 600; }
.cc-legal h2 { font-size: 23px; margin: 2em 0 0.5em; font-weight: 600; }
.cc-legal p, .cc-legal li { font-size: 18px; }
.cc-legal .cc-updated { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); margin-bottom: 2em; }

@media print {
  .cc-masthead, .cc-toc, .cc-top, .cc-progress, .cc-tabs, .cc-switch { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .cc-shell { display: block; padding: 0; }
}

/* Figure 5 responsive swap */
.cc-loop-narrow { display: none !important; max-width: 380px; margin: 0 auto; }
@media (max-width: 560px) {
  .cc-loop-wide { display: none !important; }
  .cc-loop-narrow { display: block !important; }
}

/* Yield curve chart text */
.cc-curve-svg .ax { font-family: var(--mono); font-size: 15px; fill: var(--ink-3); }
.cc-curve-svg .lbl { font-family: var(--sans); font-size: 16px; font-weight: 600; fill: var(--accent); }
.cc-curve-svg .grid { stroke: var(--rule); stroke-width: 1; }
.cc-curve-svg .base { stroke: var(--ink); stroke-width: 1.2; }
.cc-curve-svg .ghost { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 5; }
.cc-curve-svg .live { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.cc-curve-svg .pt { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.cc-curve-svg .zone { font-family: var(--mono); font-size: 13px; fill: var(--ink-3); letter-spacing: 0.04em; }

/* ===== Part 2 components ===== */

/* Spec comparison (Figure: two families) */
.cc-spec { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; line-height: 1.45; }
.cc-spec th, .cc-spec td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.cc-spec thead th { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.cc-spec thead th.is-gii { color: var(--accent); }
.cc-spec tbody th { font-weight: 600; width: 26%; color: var(--ink-2); font-size: 13px; }
.cc-spec-wrap { overflow-x: auto; }
.cc-spec-wrap .cc-spec { min-width: 0; }
@media (max-width: 560px) { .cc-spec { font-size: 13px; } .cc-spec tbody th { width: 30%; } }

/* Tenor ladder */
.cc-ladder { margin-top: 22px; }
.cc-ladder-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 8px; }
.cc-ladder-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--ink); }
.cc-ladder-row span {
  padding: 10px 4px; text-align: center; border-right: 1px solid var(--rule);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.cc-ladder-row span:last-child { border-right: 0; }
.cc-ladder-row span.is-bench { background: var(--ink); color: var(--paper); }
.cc-ladder-row span small { display: block; font-family: var(--sans); font-weight: 400; font-size: 11px; color: inherit; opacity: 0.8; }
.cc-ladder-ends { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* Pipeline (auction flow) */
.cc-pipe { list-style: none; margin: 0; padding: 0; counter-reset: pipe; }
.cc-pipe li {
  counter-increment: pipe; position: relative;
  display: grid; grid-template-columns: 44px 150px 1fr; gap: 0 16px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.45;
}
.cc-pipe li:first-child { border-top: 1px solid var(--ink); }
.cc-pipe li::before {
  content: counter(pipe, decimal-leading-zero);
  font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--accent); line-height: 1.2;
}
.cc-pipe b { font-weight: 600; }
.cc-pipe .who { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.03em; padding-top: 3px; }
@media (max-width: 560px) {
  .cc-pipe li { grid-template-columns: 38px 1fr; }
  .cc-pipe .who { grid-column: 2; padding-top: 0; }
  .cc-pipe li > span:last-child { grid-column: 2; }
}

/* Horizontal bar chart (HTML) */
.cc-hbars { font-family: var(--sans); }
.cc-hbar { display: grid; grid-template-columns: 168px 1fr 58px; gap: 12px; align-items: center; padding: 7px 0; }
.cc-hbar-label { font-size: 13.5px; line-height: 1.3; }
.cc-hbar-label small { display: block; font-size: 12px; color: var(--ink-3); }
.cc-hbar-track { position: relative; height: 22px; background: var(--paper-2); }
.cc-hbar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); }
.cc-hbar-fill.is-accent { background: var(--accent); }
.cc-hbar-fill.is-muted { background: var(--ink-3); }
.cc-hbar-val { font-family: var(--mono); font-size: 13.5px; font-weight: 600; text-align: right; }
.cc-hbar-ref { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed var(--ink); }
.cc-hbar-reflabel { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); margin: 0 0 6px; }
.cc-hbar-axis { display: grid; grid-template-columns: 168px 1fr 58px; gap: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.cc-hbar-axis div { display: flex; justify-content: space-between; }
@media (max-width: 560px) {
  .cc-hbar, .cc-hbar-axis { grid-template-columns: 1fr 52px; }
  .cc-hbar-label { grid-column: 1 / -1; }
  .cc-hbar-axis > span:first-child { display: none; }
}

/* Paired bars for the peer chart */
.cc-peer { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.cc-peer:first-of-type { border-top: 1px solid var(--ink); }
.cc-peer-name { font-size: 14px; font-weight: 600; }
.cc-peer-name small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.cc-peer.is-home .cc-peer-name { color: var(--accent); }
.cc-peer-bars { display: grid; gap: 4px; }
.cc-peer-bar { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; }
.cc-peer-bar .t { position: relative; height: 14px; }
.cc-peer-bar .f { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); }
.cc-peer-bar .f.is-10y { background: var(--accent); }
.cc-peer-bar .f.is-neg { background: var(--ink-3); }
.cc-peer-bar .v { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.cc-peer-bar .na { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.cc-peer-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }
.cc-peer-key span { display: inline-flex; align-items: center; gap: 7px; }
.cc-peer-key i { width: 12px; height: 12px; display: inline-block; background: var(--slate); }
.cc-peer-key i.k-10y { background: var(--accent); }
.cc-peer-note { font-family: var(--sans); font-size: 14px; line-height: 1.5; margin-top: 12px; padding: 12px 14px; background: var(--paper-2); }
@media (max-width: 520px) { .cc-peer { grid-template-columns: 1fr; } }

/* Headroom gauge */
.cc-gauge { font-family: var(--sans); }
.cc-gauge-track { position: relative; height: 38px; background: var(--paper-2); border: 1px solid var(--ink); margin: 34px 0 30px; }
.cc-gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slate); }
.cc-gauge-room { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); }
.cc-gauge-mark { position: absolute; top: -8px; bottom: -8px; border-left: 2px solid var(--ink); }
.cc-gauge-mark.is-old { border-left: 1.5px dashed var(--ink-3); }
.cc-gauge-tag { position: absolute; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; transform: translateX(-50%); }
.cc-gauge-tag.top { top: -30px; }
.cc-gauge-tag.bottom { bottom: -28px; color: var(--ink-3); }
.cc-gauge-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--ink-2); }
.cc-gauge-legend i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 6px; background: var(--slate); }
.cc-gauge-legend i.k-room { background: var(--accent-soft); border: 1px solid var(--accent); }

/* Mode board: Build / Protect / Service */
.cc-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); font-family: var(--sans); }
.cc-mode { padding: 14px 14px 16px; border-right: 1px solid var(--rule); }
.cc-mode:last-child { border-right: 0; }
.cc-mode h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.cc-mode p { margin: 0 0 12px !important; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.cc-mode ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cc-mode li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.cc-mode li b { font-weight: 600; }
.cc-mode li span { display: block; font-size: 12px; color: var(--ink-3); }
.cc-mode.is-build { background: var(--paper-2); }
.cc-mode .cc-mode-yield { font-family: var(--mono); font-size: 11.5px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
@media (max-width: 640px) {
  .cc-modes { grid-template-columns: 1fr; }
  .cc-mode { border-right: 0; border-bottom: 1px solid var(--rule); }
  .cc-mode:last-child { border-bottom: 0; }
}

/* Audience blocks */
.cc-aud { margin: 1.4em 0 2em; border-top: 2px solid var(--ink); }
.cc-aud-row { display: grid; grid-template-columns: 190px 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cc-aud-row h3 { margin: 0; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.cc-aud-row h3 span { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--accent); margin-bottom: 4px; letter-spacing: 0.04em; }
.cc-aud-row p { margin: 0 !important; font-size: 18px; }
@media (max-width: 560px) { .cc-aud-row { grid-template-columns: 1fr; } }

/* Data stamp */
.cc-stamp { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--rule); padding: 4px 8px; margin: 0 0 1.4em; }

/* Wide table variant */
.cc-table.is-wide { min-width: 720px; font-size: 13.5px; }
.cc-table td.num, .cc-table th.num { font-family: var(--mono); text-align: right; white-space: nowrap; padding-right: 16px; }
.cc-table tr.is-home th, .cc-table tr.is-home td { background: var(--paper-2); }
.cc-table-note { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); margin: -1.2em 0 2em !important; }

/* Series links */
.cc-series li a { text-decoration: none; }
.cc-series li a:hover span:nth-child(2) { text-decoration: underline; }
.cc-series li > a { display: contents; color: inherit; }
.cc-gauge-tag.is-left { transform: translateX(-100%); margin-left: -6px; }
.cc-gauge-tag.is-right { transform: none; margin-left: 6px; }
.cc-prose h3.cc-sub { margin: 1.9em 0 0.5em; font-size: 18px; }
.cc-table.is-wide td.num { white-space: normal; }
.cc-table.is-wide th.num { white-space: nowrap; }
.cc-table.is-wide td:last-child, .cc-table.is-wide th:last-child { min-width: 180px; }
.cc-table.is-wide { min-width: 820px; }
@media (min-width: 1001px) {
  .cc-prose > .cc-table-wrap.is-bleed { max-width: none; width: 836px; }
}
.cc-mark-state { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 10px; border: 1px solid var(--ink); white-space: nowrap; }
.cc-mark-state.is-yes { background: var(--ink); color: var(--paper); }
.cc-mark-state.is-no { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.cc-timeline li.is-found::after { background: var(--paper-3); border-color: var(--ink-3); }
.cc-legend i.k-found { background: var(--paper-3); border-color: var(--ink-3); }
.cc-hbar-fill.is-slate2 { background: var(--slate-soft); }

/* Swimlane (ijarah structure) */
.cc-lanes { display: grid; grid-template-columns: 110px repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); font-family: var(--sans); }
.cc-lanes > div { padding: 10px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13.5px; line-height: 1.4; }
.cc-lanes > div:nth-child(4n) { border-right: 0; }
.cc-lanes > div:nth-last-child(-n+4) { border-bottom: 0; }
.cc-lanes .h { font-weight: 600; font-size: 14px; background: var(--paper-2); }
.cc-lanes .h small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.cc-lanes .h.is-spv { background: var(--accent-soft); }
.cc-lanes .r { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--accent); font-weight: 600; }
.cc-lanes .flow { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0.03em; }
@media (max-width: 620px) {
  .cc-lanes { grid-template-columns: 1fr; }
  .cc-lanes > div { border-right: 0; }
  .cc-lanes > .corner { display: none; }
  .cc-lanes > .h { display: none; }
  .cc-lanes > div[data-who]::before { content: attr(data-who); display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; margin-bottom: 2px; }
  .cc-lanes > .r { background: var(--paper-2); }
}

/* Two-column ledger */
.cc-ledger { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.cc-ledger th, .cc-ledger td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.cc-ledger thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.cc-ledger tbody th { width: 26%; font-weight: 600; color: var(--ink-2); font-size: 13px; }

/* Rating ladder */
.cc-ladder2 { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 640px) { .cc-ladder2 { grid-template-columns: 1fr; } }
.cc-rungs { display: grid; gap: 0; border: 1px solid var(--ink); }
.cc-rung {
  display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; text-align: left;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  background: var(--paper); border: 0; border-bottom: 1px solid var(--rule); padding: 10px 12px; cursor: pointer;
}
.cc-rung b { font-family: var(--mono); font-size: 14px; }
.cc-rung span { color: var(--ink-2); }
.cc-rung.is-hy { background: var(--paper-2); }
.cc-rung[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cc-rung[aria-pressed="true"] span { color: var(--paper); }
.cc-rung:last-child { border-bottom: 0; }
.cc-rung-line { border-top: 2px dashed var(--accent); border-bottom: 1px solid var(--rule); padding: 5px 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--accent); background: var(--paper); }
.cc-rung-panel { padding-top: 2px; }

/* Stacked price bar */
.cc-stack { font-family: var(--sans); }
.cc-stack-row { display: flex; height: 44px; border: 1px solid var(--ink); }
.cc-stack-row span { display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.cc-stack-row .base { background: var(--slate); color: var(--paper); }
.cc-stack-row .spread { background: var(--accent); color: var(--paper); }
.cc-stack-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid var(--rule); }
.cc-stack-keys div { padding: 10px 10px 0 0; font-size: 13.5px; line-height: 1.4; }
.cc-stack-keys div + div { padding-left: 10px; border-left: 1px solid var(--rule); }
.cc-stack-keys b { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 2px; }
@media (max-width: 520px) { .cc-stack-keys { grid-template-columns: 1fr; } .cc-stack-keys div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Waiting calculator */
.cc-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 24px; font-family: var(--sans); margin-bottom: 16px; }
@media (max-width: 560px) { .cc-calc { grid-template-columns: 1fr; } }
.cc-field { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.cc-field b { color: var(--ink); font-family: var(--mono); }
.cc-field input[type="number"] {
  font-family: var(--mono); font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; padding: 8px 10px; width: 100%;
}
.cc-field input[type="range"] { width: 100%; accent-color: var(--accent); margin-top: 8px; }
.cc-calc-out { border-top: 1px solid var(--ink); font-family: var(--sans); }
.cc-calc-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.cc-calc-row .n b { display: block; font-size: 14.5px; font-weight: 600; }
.cc-calc-row .n span, .cc-calc-row .v span { display: block; font-size: 12.5px; color: var(--ink-3); }
.cc-calc-row .v { text-align: right; }
.cc-calc-row .v b { font-family: var(--mono); font-size: 15px; }
.cc-calc-row.is-cash .n b { color: var(--accent); }
.cc-calc-sum { margin: 12px 0 0 !important; padding: 12px 14px; background: var(--paper-2); font-size: 14px; line-height: 1.5; }

/* Liquidity ladder steps */
.cc-steps { list-style: none; margin: 0; padding: 0; font-family: var(--sans); }
.cc-steps li { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--ink); border-top: 0; background: var(--paper); }
.cc-steps li:first-child { border-top: 1px solid var(--ink); }
.cc-steps li b { font-size: 14.5px; font-weight: 600; }
.cc-steps li b small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--accent); letter-spacing: 0.04em; }
.cc-steps li span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.cc-steps li em { font-style: normal; font-family: var(--mono); font-size: 12.5px; text-align: right; }
@media (min-width: 700px) {
  .cc-steps li:nth-child(1) { margin-right: 20%; }
  .cc-steps li:nth-child(2) { margin-left: 4%; margin-right: 16%; }
  .cc-steps li:nth-child(3) { margin-left: 8%; margin-right: 12%; }
  .cc-steps li:nth-child(4) { margin-left: 12%; margin-right: 8%; }
  .cc-steps li:nth-child(5) { margin-left: 16%; margin-right: 4%; }
  .cc-steps li:nth-child(6) { margin-left: 20%; }
  .cc-steps li { border-top: 1px solid var(--ink); margin-top: -1px; }
}
@media (max-width: 560px) { .cc-steps li { grid-template-columns: 1fr auto; } .cc-steps li span { grid-column: 1 / -1; grid-row: 2; } }
.cc-steps-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; margin-top: 8px; }

/* Line chart (market brief) */
.cc-lines-svg { display: block; width: 100%; height: auto; }
.cc-lines-svg .grid { stroke: var(--rule); stroke-width: 1; }
.cc-lines-svg .ax { font-family: var(--mono); font-size: 12px; fill: var(--ink-3); }
.cc-lines-svg .ref { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; }
.cc-lines-svg .reflbl { font-family: var(--mono); font-size: 11.5px; fill: var(--ink-2); }
.cc-lines-svg .ln path { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.cc-lines-svg .ln .endlbl { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.cc-lines-svg .s-ink path { stroke: var(--ink); } .cc-lines-svg .s-ink circle, .cc-lines-svg .s-ink text { fill: var(--ink); }
.cc-lines-svg .s-accent path { stroke: var(--accent); } .cc-lines-svg .s-accent circle, .cc-lines-svg .s-accent text { fill: var(--accent); }
.cc-lines-svg .s-slate path { stroke: var(--slate); } .cc-lines-svg .s-slate circle, .cc-lines-svg .s-slate text { fill: var(--slate); }
.cc-lines-svg .s-muted path { stroke: var(--ink-3); stroke-dasharray: 5 4; } .cc-lines-svg .s-muted circle, .cc-lines-svg .s-muted text { fill: var(--ink-3); }
.cc-swatch { display: inline-block; width: 14px; height: 3px; margin-right: 8px; vertical-align: middle; }
.cc-swatch.s-ink { background: var(--ink); } .cc-swatch.s-accent { background: var(--accent); } .cc-swatch.s-slate { background: var(--slate); } .cc-swatch.s-muted { background: var(--ink-3); }
.cc-tab[aria-pressed="true"] .cc-swatch { outline: 1px solid var(--paper); }
.cc-tab[aria-pressed="false"] { color: var(--ink-3); text-decoration: line-through; }

/* Regime gauges */
.cc-regime { font-family: var(--sans); border-top: 1px solid var(--ink); }
.cc-reg-row { display: grid; grid-template-columns: 150px 1fr 44px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.cc-reg-name { font-size: 14.5px; font-weight: 600; }
.cc-reg-name small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.cc-reg-scale { position: relative; }
.cc-reg-track { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--ink); height: 18px; }
.cc-reg-track span { border-right: 1px solid var(--rule); }
.cc-reg-track span:nth-child(3) { background: var(--paper-2); }
.cc-reg-track span:last-child { border-right: 0; }
.cc-reg-track span.is-on { background: var(--accent); }
.cc-reg-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0.03em; }
.cc-reg-val { font-family: var(--mono); font-weight: 600; font-size: 15px; text-align: right; }
@media (max-width: 560px) { .cc-reg-row { grid-template-columns: 1fr 40px; } .cc-reg-scale { grid-column: 1 / -1; grid-row: 2; } }

/* Status tags inside tables */
.cc-tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 7px; border: 1px solid var(--ink); white-space: nowrap; }
.cc-tag.is-split { background: var(--accent-soft); border-color: var(--accent); }
.cc-tag.is-agree { background: var(--paper-2); }
@media (min-width: 1001px) {
  .cc-prose > .cc-figure.is-bleed { max-width: none; width: 836px; }
}
