/* ============================================================================
   MicroLink components · all v10 primitives
   ============================================================================ */

/* THESIS */
.thesis-wrap { margin-top: var(--s-8); position: relative; }
.thesis {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--s-7) var(--s-8);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-7);
  align-items: start;
  position: relative;
}
.thesis-mark {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}
.thesis-mark .num {
  display: block; font-family: var(--display); font-size: 32px; font-weight: 700;
  letter-spacing: -0.025em; color: var(--ink); line-height: 1; margin-bottom: var(--s-3);
}
.thesis-body {
  font-family: var(--display); font-weight: 500; font-size: 22px;
  line-height: 1.4; color: var(--ink); letter-spacing: -0.015em; max-width: 38ch;
}
.thesis-body strong { font-weight: 700; color: var(--ink); }
.thesis-body em { font-style: italic; font-weight: 400; color: var(--ink-2); }

/* HEADLINES */
.headlines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  margin-top: var(--s-7);
}
.headline {
  background: var(--paper);
  padding: var(--s-5) var(--s-4) var(--s-6);
  position: relative;
  border-right: 1px solid var(--rule-soft);
}
.headline:last-child { border-right: 0; }
.headline-num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.05em;
}
.headline-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tracking-meta);
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-4);
}
.headline-figure {
  font-family: var(--display); font-weight: 800; font-size: 42px;
  line-height: 0.95; letter-spacing: -0.035em; color: var(--ink); margin-bottom: var(--s-3);
}
.headline-figure .unit {
  font-size: 14px; font-weight: 500; color: var(--ink-3); margin-left: 5px; letter-spacing: 0;
}
.headline-sub {
  font-family: var(--body); font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-bottom: var(--s-3);
}

.status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.status-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 3px 7px; background: var(--paper-2); border: 1px solid var(--rule-soft);
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-high   { background: var(--ink); }
.dot-medium { background: linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%); border: 1px solid var(--ink); }
.dot-low    { background: var(--paper); border: 1px solid var(--ink); }

/* SECTION GRID */
.section { scroll-margin-top: var(--s-5); position: relative; }
.section + .section { margin-top: var(--s-8); }
.section-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.section-grid.is-full {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.section-grid.is-full .section-margin { display: none; }
.section-grid.is-twocol .section-body--text {
  column-count: 2; column-gap: var(--s-6); column-rule: 1px solid var(--rule-soft);
}
.section-grid.is-twocol .section-body--text > p,
.section-grid.is-twocol .section-body--text > h3 { break-inside: avoid; }
.section-grid.is-twocol .span-both,
.section-grid.is-twocol .stats-row,
.section-grid.is-twocol .viz-block,
.section-grid.is-twocol .finding,
.section-grid.is-twocol .table-wrap,
.section-grid.is-twocol .table-caption {
  column-span: all;
  margin-top: var(--s-5); margin-bottom: var(--s-5);
}
.section-margin {
  position: sticky; top: var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-5); padding-top: 6px;
}
.section-marker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink); text-transform: uppercase;
  display: flex; align-items: center; gap: var(--s-3); font-weight: 500;
}
.section-marker::before {
  content: ""; width: 20px; height: 1px; background: var(--ink);
}
.section-marker--inline { margin-bottom: var(--s-3); }

.section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(var(--fs-h2-min), 3vw, var(--fs-h2-max));
  line-height: 1.05; letter-spacing: -0.025em; color: var(--ink);
  margin-top: var(--s-3); margin-bottom: var(--s-3); max-width: 22ch;
}
.section-subtitle {
  font-family: var(--body); font-size: 16px; color: var(--ink-2);
  margin-bottom: var(--s-6); max-width: 70ch; line-height: 1.55;
}
.section-body { max-width: 78ch; }
.section-body p {
  font-size: var(--fs-body); line-height: 1.6; margin-bottom: var(--s-4); color: var(--ink);
}
.section-body p strong { font-weight: 700; color: var(--ink); }
.section-body p em { font-style: italic; color: var(--ink-2); }
.lede {
  font-family: var(--display); font-size: 19px; line-height: 1.5; font-weight: 500;
  color: var(--ink); border-left: 1px solid var(--ink); padding-left: var(--s-5);
  margin-bottom: var(--s-6); max-width: 70ch; letter-spacing: -0.005em;
}
.section-body h3 {
  font-family: var(--display); font-weight: 700; font-size: var(--fs-h3);
  line-height: 1.2; color: var(--ink);
  margin-top: var(--s-6); margin-bottom: var(--s-3); letter-spacing: -0.01em;
}

/* MARGIN RAIL COMPONENTS */
.margin-note, .margin-stat, .margin-graphic, .margin-keypoints {
  padding: var(--s-4); background: var(--paper); border: 1px solid var(--rule-soft);
}
.margin-note-label, .margin-stat-label, .margin-graphic-label, .margin-keypoints-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-weight: 500;
}
.margin-note-body { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.margin-note-body strong { color: var(--ink); font-weight: 700; }
.margin-stat-value {
  font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1;
  color: var(--ink); letter-spacing: -0.025em; margin-bottom: 6px;
}
.margin-stat-value .unit {
  font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0;
}
.margin-stat-note { font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.margin-graphic svg { width: 100%; height: auto; display: block; }
.margin-graphic-caption {
  font-family: var(--mono); font-size: 9px; color: var(--ink-3); margin-top: var(--s-3);
}
.margin-keypoints ul { list-style: none; font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.margin-keypoints li { padding-left: 14px; position: relative; margin-bottom: 8px; }
.margin-keypoints li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--ink);
}
.margin-keypoints li strong { color: var(--ink); font-weight: 700; }

/* STAT CARDS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  margin: var(--s-7) 0;
}
.stats-row.is-2col { grid-template-columns: repeat(2, 1fr); }
.stats-row.is-4col { grid-template-columns: repeat(4, 1fr); }
.stats-row.is-5col { grid-template-columns: repeat(5, 1fr); }
.stat-card {
  background: var(--paper);
  border-right: 1px solid var(--rule-soft);
  padding: var(--s-5) var(--s-4) var(--s-6);
  position: relative;
}
.stat-card:last-child { border-right: 0; }
.stat-card-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3);
}
.stat-card-value {
  font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1;
  color: var(--ink); margin-bottom: var(--s-2); letter-spacing: -0.025em;
}
.stat-card-value .unit {
  font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 4px;
}
.stat-card-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

/* FINDING */
.finding {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-7) 0;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-left-width: 3px;
}
.finding-icon {
  font-family: var(--display); font-weight: 800; font-size: 38px;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1;
}
.finding-title {
  font-family: var(--display); font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: var(--s-2); letter-spacing: -0.01em;
}
.finding-body { font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* VIZ BLOCK */
.viz-block {
  margin: var(--s-7) 0;
  padding: var(--s-6) var(--s-6) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--ink);
  position: relative;
}
.viz-header {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: var(--s-5); padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
  gap: var(--s-5); flex-wrap: wrap;
}
.viz-titleblock { flex: 1; min-width: 280px; }
.viz-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tracking-meta);
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; font-weight: 500;
}
.viz-title {
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink);
  letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 4px; max-width: 36ch;
}
.viz-subtitle {
  font-family: var(--body); font-size: 13.5px; color: var(--ink-2); max-width: 70ch; line-height: 1.5;
}
.viz-confidence {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.viz-svg { width: 100%; height: auto; display: block; }
.viz-caption {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3);
}

/* PULLQUOTE */
.pullquote-wrap {
  margin: 0; padding: var(--s-8) 0;
  background: var(--steel); color: var(--paper);
  position: relative;
}
.pullquote {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--s-7);
  align-items: center;
}
.pullquote-body {
  font-family: var(--display); font-weight: 500; font-size: 26px;
  line-height: 1.3; letter-spacing: -0.015em; color: var(--paper);
  max-width: 36ch;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: var(--s-5);
}
.pullquote-attr {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--paper); opacity: 0.6;
}

/* OFFER CARD */
.offer-card {
  background: var(--steel); color: var(--paper);
  padding: var(--s-7) var(--s-8); margin: var(--s-7) 0;
  position: relative; border: 1px solid var(--steel);
}
.offer-tier {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--paper); opacity: 0.7;
  margin-bottom: var(--s-3);
  display: flex; align-items: center; gap: 12px;
}
.offer-tier::before {
  content: ""; width: 22px; height: 1px; background: var(--paper); opacity: 0.5;
}
.offer-name {
  font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1;
  letter-spacing: -0.025em; margin-bottom: var(--s-2); color: var(--paper);
  max-width: 18ch;
}
.offer-name em {
  display: block; font-style: normal; font-weight: 500;
  color: var(--paper); opacity: 0.7;
  font-family: var(--display); margin-top: 4px; font-size: 18px; letter-spacing: -0.01em;
}
.offer-tagline {
  font-family: var(--body); font-size: 16px; color: var(--paper);
  opacity: 0.75; margin-bottom: var(--s-6); max-width: 60ch; line-height: 1.55;
}
.offer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-6); padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.offer-spec-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tracking-meta);
  text-transform: uppercase; color: var(--paper); opacity: 0.7; margin-bottom: var(--s-3);
}
.offer-spec-list { list-style: none; font-size: 14px; line-height: 1.65; }
.offer-spec-list li {
  padding-left: 16px; position: relative;
  color: var(--paper); opacity: 0.95; margin-bottom: 3px;
}
.offer-spec-list li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 1px; background: var(--paper); opacity: 0.6;
}

/* TABLES */
.table-wrap {
  margin: var(--s-5) 0;
  border: 1px solid var(--ink); background: var(--paper);
  overflow-x: auto;
}
table {
  width: 100%; border-collapse: collapse;
  font-family: var(--body); font-size: 13.5px; line-height: 1.5;
}
thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: left;
  padding: var(--s-3) var(--s-4); background: var(--paper-2); color: var(--ink);
  font-weight: 600; border-bottom: 1px solid var(--ink);
  vertical-align: bottom; white-space: nowrap;
}
thead th.num { text-align: right; }
tbody td {
  padding: 10px var(--s-4); border-bottom: 1px solid var(--rule-soft);
  color: var(--ink); vertical-align: top;
}
tbody td.num {
  text-align: right; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
tbody tr:hover { background: var(--paper-2); }
tbody tr.highlight { background: var(--paper-2); font-weight: 600; }
tbody tr.total { background: var(--ink); color: var(--paper); }
tbody tr.total td {
  color: var(--paper); font-weight: 600; font-family: var(--display);
  border-bottom: none; padding: var(--s-3) var(--s-4);
}
.table-caption {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3);
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
}
.table-caption .conf { color: var(--ink); }

/* TIMELINE */
.timeline {
  margin: var(--s-6) 0; padding: var(--s-5);
  background: var(--paper); border: 1px solid var(--rule-soft);
  position: relative;
}
.timeline-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-4);
}
.timeline.is-horizontal .timeline-track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0; position: relative; padding: var(--s-5) 0 var(--s-3);
}
.timeline.is-horizontal .timeline-track::before {
  content: ""; position: absolute; top: calc(var(--s-5) + 6px);
  left: 0; right: 0; height: 1px; background: var(--rule); z-index: 0;
}
.timeline.is-horizontal .tl-node {
  position: relative; padding: 0 12px; text-align: center;
}
.timeline.is-horizontal .tl-node .tl-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
  margin: 0 auto var(--s-3); position: relative; z-index: 1;
}
.timeline.is-horizontal .tl-node.is-done .tl-dot { background: var(--ink); }
.timeline.is-horizontal .tl-node.is-active .tl-dot {
  background: linear-gradient(90deg, var(--ink) 0 50%, var(--paper) 50% 100%);
}
.tl-when {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.tl-title {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  color: var(--ink); line-height: 1.25; margin-bottom: 4px; letter-spacing: -0.005em;
}
.tl-meta { font-family: var(--body); font-size: 11.5px; line-height: 1.4; color: var(--ink-2); }

.timeline.is-vertical .timeline-track {
  display: flex; flex-direction: column; gap: 0; position: relative;
}
.timeline.is-vertical .timeline-track::before {
  content: ""; position: absolute; top: 8px; bottom: 8px;
  left: 6px; width: 1px; background: var(--rule);
}
.timeline.is-vertical .tl-node {
  display: grid; grid-template-columns: 16px 1fr;
  gap: var(--s-4); padding: var(--s-3) 0; align-items: start;
}
.timeline.is-vertical .tl-node + .tl-node { border-top: 1px solid var(--rule-hair); }
.timeline.is-vertical .tl-node .tl-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink); margin-top: 4px;
}
.timeline.is-vertical .tl-node.is-done .tl-dot { background: var(--ink); }
.timeline.is-vertical .tl-node.is-active .tl-dot {
  background: linear-gradient(90deg, var(--ink) 0 50%, var(--paper) 50% 100%);
}
.timeline.is-vertical .tl-node .tl-title { font-size: 14px; margin-bottom: 4px; }

/* COMPARISON MATRIX */
.matrix-wrap {
  margin: var(--s-5) 0; border: 1px solid var(--ink); background: var(--paper);
  overflow-x: auto;
}
.matrix { width: 100%; border-collapse: collapse; font-family: var(--body); font-size: 13.5px; }
.matrix thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center;
  padding: var(--s-3) var(--s-4); background: var(--paper-2); color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--ink); border-right: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.matrix thead th:last-child { border-right: 0; }
.matrix thead th:first-child { text-align: left; }
.matrix thead th.is-preferred { background: var(--ink); color: var(--paper); }
.matrix thead th .sub {
  display: block; font-family: var(--body); font-size: 11px; font-weight: 400;
  text-transform: none; letter-spacing: 0; margin-top: 4px; color: var(--ink-3);
}
.matrix thead th.is-preferred .sub { color: var(--paper); opacity: 0.7; }
.matrix tbody td {
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  text-align: center; vertical-align: middle; color: var(--ink);
}
.matrix tbody td:last-child { border-right: 0; }
.matrix tbody td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.matrix tbody td.is-preferred-col { background: var(--paper-2); }
.matrix tbody tr:last-child td { border-bottom: 0; }
.cm-yes, .cm-no, .cm-partial {
  display: inline-block; font-family: var(--mono); font-size: 14px; line-height: 1; color: var(--ink);
}
.cm-yes::before { content: "\2713"; }
.cm-partial::before { content: "\2013"; }
.cm-no::before { content: "\2715"; color: var(--ink-3); }
.cm-text { font-family: var(--body); font-size: 12.5px; color: var(--ink-2); }
.matrix tbody tr.is-group td {
  background: var(--paper-3);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 8px var(--s-4); text-align: left; font-weight: 600;
}

/* RISK / MITIGATION */
.risk-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4); margin: var(--s-5) 0;
}
.risk-pair {
  background: var(--paper); border: 1px solid var(--rule-soft);
  display: flex; flex-direction: column;
}
.risk-row {
  padding: var(--s-4); display: grid; grid-template-columns: 18px 1fr;
  gap: var(--s-3); align-items: start;
}
.risk-row + .risk-row { border-top: 1px solid var(--rule-soft); }
.risk-row.is-mitigation { background: var(--paper-2); }
.risk-mark {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0;
  color: var(--ink); width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink); text-transform: uppercase; background: var(--paper);
}
.risk-row.is-mitigation .risk-mark { background: var(--ink); color: var(--paper); }
.risk-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.risk-text { font-family: var(--body); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.risk-text strong { font-weight: 700; color: var(--ink); }
.risk-severity {
  display: inline-block; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 6px; margin-left: 6px; border: 1px solid var(--rule); color: var(--ink-3);
}
.risk-severity.is-high { color: var(--ink); border-color: var(--ink); }

/* SPEC SHEET */
.spec-sheet { margin: var(--s-5) 0; border: 1px solid var(--rule); background: var(--paper); }
.spec-group-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
  background: var(--paper-2); padding: var(--s-2) var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
}
.spec-group-label + .spec-row { border-top: 0; }
.spec-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-4); padding: 8px var(--s-4);
  border-top: 1px solid var(--rule-hair); align-items: baseline;
}
.spec-row:first-of-type { border-top: 0; }
.spec-key { font-family: var(--body); font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.spec-value {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  text-align: right; letter-spacing: 0;
  font-variant-numeric: tabular-nums; line-height: 1.4;
}
.spec-value .unit { color: var(--ink-3); margin-left: 4px; }

/* SECTION DIVIDER */
.section-divider {
  padding: var(--s-7) 0 var(--s-5);
  border-top: 1px solid var(--ink);
  margin-top: var(--s-7);
}
.section-divider-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3);
}
.section-divider-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); max-width: 22ch;
}

/* FOOTER */
.footer {
  padding: var(--s-6) 0 var(--s-7);
  border-top: 1px solid var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); background: var(--paper-2);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: var(--s-6); align-items: end;
}
.footer-meta { line-height: 1.8; }
.footer-meta strong { color: var(--ink); font-weight: 600; }
.footer-brand {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.025em; color: var(--ink); text-transform: none; text-align: center;
}
.footer-right { text-align: right; line-height: 1.8; }
.footer-audit {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  font-size: 9px; letter-spacing: 0.06em; color: var(--ink-3);
  text-transform: none; text-align: center;
}

/* SITE & SCENARIO SELECTOR · investor-site addition, v10 idiom */
.selector-bar {
  display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: end;
  margin-top: var(--s-5); margin-bottom: var(--s-6);
  padding: var(--s-4); background: var(--paper); border: 1px solid var(--rule-soft);
}
.selector { display: flex; flex-direction: column; gap: 6px; }
.selector-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.selector select, .selector input[type=number] {
  font-family: var(--mono); font-size: 13px;
  padding: 6px 10px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); cursor: pointer; min-width: 200px;
}
.selector select:focus, .selector input[type=number]:focus {
  outline: 1px solid var(--ink); outline-offset: -2px;
}

/* dial controls (inputs page) */
.dial-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,360px);
  gap: var(--s-6);
  align-items: start;
}
.dial-groups { display: flex; flex-direction: column; gap: var(--s-5); }
.dial-group {
  background: var(--paper); border: 1px solid var(--rule-soft); padding: var(--s-5);
}
.dial-group-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-4);
}
.dial-row {
  display: grid; grid-template-columns: 1fr 140px 80px;
  gap: var(--s-3); align-items: center;
  padding: 8px 0; border-top: 1px solid var(--rule-hair);
}
.dial-row:first-of-type { border-top: 0; }
.dial-name {
  font-family: var(--body); font-size: 13px; color: var(--ink);
}
.dial-name .key {
  font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-left: 6px;
}
.dial-input input[type=number] {
  width: 100%; font-family: var(--mono); font-size: 13px;
  padding: 5px 8px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); text-align: right;
  font-variant-numeric: tabular-nums;
}
.dial-input input[type=number]:focus { outline: 1px solid var(--ink); outline-offset: -2px; }
.dial-input.is-dirty input { border-color: var(--ink); background: #FFFCEB; }
.dial-unit { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.preview-panel {
  position: sticky; top: var(--s-7);
  background: var(--paper); border: 1px solid var(--ink); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.preview-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-2);
}
.preview-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-top: 1px solid var(--rule-hair);
}
.preview-row:first-of-type { border-top: 0; }
.preview-row .k { font-family: var(--body); font-size: 12.5px; color: var(--ink-2); }
.preview-row .v {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 16px; background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); cursor: pointer;
}
.btn:disabled { background: var(--paper-3); color: var(--ink-4); border-color: var(--rule); cursor: not-allowed; }
.btn-secondary { background: var(--paper); color: var(--ink); }

.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; }

/* simple page heading (used on most non-cover pages) */
.page-heading {
  padding: var(--s-7) 0 var(--s-3);
}
.page-heading-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3);
}
.page-heading h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02; letter-spacing: -0.03em; color: var(--ink); max-width: 18ch;
}
.page-heading h1 em {
  display: block;
  font-style: italic; font-weight: 400; color: var(--ink-3);
  font-family: var(--serif); font-variation-settings: "opsz" 144;
  letter-spacing: -0.025em; margin-top: 4px;
}

/* card grid (used on Plan Projects) */
.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5); margin-top: var(--s-5);
}
.card {
  background: var(--paper); border: 1px solid var(--rule);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
.card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
  border-bottom: 1px solid var(--rule-soft); padding-bottom: var(--s-2);
}
.card-title {
  font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink);
  letter-spacing: -0.01em;
}
.card-sub {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.card-body { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.card-foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); }

@media (max-width: 900px) {
  .dial-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-row, .stats-row.is-2col, .stats-row.is-4col { grid-template-columns: 1fr; }
  .stat-card { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .headlines { grid-template-columns: repeat(2, 1fr); }
}
