:root {
  --ink: #1c1915;
  --copy: #5c5348;
  --meta: #8a7f72;
  --neg: #8d5a3c;
  --paper: #e6e0d2;
  --card: #f1ece2;
  --gold: #c4892a;
  --word: "Cormorant Garamond", Georgia, serif;
  --headline: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --frame: 1120px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--copy);
  font-family: var(--sans);
  font-size: 14px;
}

a { color: inherit; }

.mast {
  display: flex;
  gap: 28px;
  align-items: center;
  box-sizing: border-box;
  width: min(100%, var(--frame));
  margin-right: auto;
  margin-left: auto;
  padding: 18px 28px 14px;
  border-bottom: 1px solid #1c1915;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink);
}

.brand-name {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark {
  display: block;
  width: 22px;
  height: 38px;
  flex: 0 0 auto;
}

.sections {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}

.sections a {
  color: #4a433a;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.sections a:hover { border-bottom-color: rgba(28, 25, 21, 0.45); }

.sections a[aria-current="page"] { border-bottom-color: #1c1915; }

.mast h1 {
  margin: 0;
  font-family: var(--word);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--ink);
}

.mast p {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--copy);
  text-align: center;
}

.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-family: var(--sans);
  font-size: 13px;
}

.who form { display: flex; margin: 0; }

.who .pill,
.gate .pill {
  display: inline-block;
  margin: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: #1c1915;
  color: #e6e0d2;
  font: 600 12px var(--sans);
  text-decoration: none;
}

.gate .pill { margin: 0 0 6px 8px; }

.gate form .pill { margin: 4px 0 0; }

.gate .pill:hover { background: #322c24; color: #e6e0d2; }

.who .pill.ghost,
.gate .pill.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 25, 21, 0.35);
}

.gate {
  max-width: 640px;
  margin: 48px auto 72px;
  padding: 0 24px;
}

.gate h2 {
  margin: 0 0 12px;
  font-family: var(--headline);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

.gate p { margin: 0 0 14px; line-height: 1.5; color: var(--copy); }

.gate .kicker {
  margin: 0 0 8px;
  color: var(--meta);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.gate .actions .pill { margin: 0; }

.gate form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 16px;
}

.gate label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink); }

.gate .name-row,
.gate .phone-row { display: flex; flex-wrap: wrap; gap: 12px; }

.gate input[type="email"],
.gate input[type="text"],
.gate input[type="tel"] {
  width: 280px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(28, 25, 21, 0.25);
  border-radius: 8px;
  background: #f6f1e7;
  color: var(--ink);
  font: 14px var(--sans);
}

.gate .name-row input { width: 180px; }

.gate .phone-row input[type="tel"] { width: 180px; }

.gate .phone-row .ext input { width: 88px; }

.gate .fine { color: var(--meta); font-size: 13px; }

.gate .fine a,
.gate .notice a { color: var(--ink); }

.who button {
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 12px var(--sans);
}

button, .asof button {
  font: 13px var(--sans);
  background: #1c1915;
  color: #e6e0d2;
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

button:not([class]):hover:not(:disabled),
button.edit-screen:hover,
button.apply:hover,
.who button:hover {
  background: #322c24;
  color: #e6e0d2;
}

.drawer-toggle:hover {
  background: rgba(196, 137, 42, 0.12);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(138, 90, 18, 0.45);
  outline-offset: 2px;
}

.controls {
  box-sizing: border-box;
  width: min(100%, var(--frame));
  margin-right: auto;
  margin-left: auto;
  background: #e6e0d2;
  font-family: var(--sans);
  font-size: 12px;
}

.global {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
}

.global {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: end;
  padding: 10px 28px 8px;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: max-content;
}

.control > span:not(.asof-shell) {
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--meta);
}

.lookback {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: #efe8dc;
}

.lookback label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  color: #1c1915;
  cursor: pointer;
}

.lookback label.on {
  background: #fff;
  color: #1c1915;
}

.lookback input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.config-select,
.asof-shell {
  appearance: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 34px;
  margin: 0;
  padding: 7px 32px 7px 12px;
  border: 1px solid rgba(28, 25, 21, 0.22);
  border-radius: 8px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #1c1915 50%), linear-gradient(135deg, #1c1915 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 10px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font: 13px/1 var(--sans);
  color: #1c1915;
  cursor: pointer;
}

.asof-shell {
  position: relative;
  padding-right: 12px;
  background-image: none;
}

.asof-face {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #1c1915;
  line-height: 1;
  white-space: nowrap;
}

.asof-shell input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.screen-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  box-sizing: border-box;
  margin: 12px 28px 4px;
  width: auto;
  max-width: none;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: #f6f1e7;
  font-size: 13px;
}

.desk-drawer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desk-drawer-tab {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 16px;
  margin: -1px 0 0;
  padding: 0;
  border: 1px solid #1c1915;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--paper);
  box-shadow: none;
  cursor: pointer;
}

.desk-drawer-tab:hover { background: #efe8dc; }

.desk-drawer-tab .chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8a7f72;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.desk-drawer-open .desk-drawer-tab .chevron,
.desk-drawer-tab[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.desk-drawer-panel {
  align-self: stretch;
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.desk-drawer-open .desk-drawer-panel,
.desk-drawer.is-open .desk-drawer-panel { grid-template-rows: 1fr; }

.desk-drawer-inner {
  min-height: 0;
  overflow: hidden;
}

.desk-drawer .global {
  position: static;
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
}

.desk-drawer .screen-bar { margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .desk-drawer-panel,
  .desk-drawer-tab .chevron { transition: none; }
}

.screen-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.screen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.06);
  color: var(--ink);
  font-size: 13px;
}

.screen-summary,
.screen-meta { margin: 0; }

.screen-summary { font-weight: 500; color: var(--ink); }

.screen-meta { color: var(--meta); font-size: 12px; }

.screen-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.saved-quick {
  max-width: 200px;
  padding: 6px 28px 6px 10px;
  border: 1px solid rgba(28, 25, 21, 0.18);
  border-radius: 8px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #1c1915 50%), linear-gradient(135deg, #1c1915 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 10px) 55%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  appearance: none;
  font: 13px var(--sans);
  color: #1c1915;
}

.edit-screen {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: #1c1915;
  color: #f3eee4;
  font: 600 12px var(--sans);
  cursor: pointer;
}

.drawer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border: 1px solid #1c1915;
  background: transparent;
  color: #1c1915;
  font: 13px var(--sans);
  cursor: pointer;
}

.drawer-toggle .chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #1c1915;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-toggle[aria-expanded="false"] .chevron { transform: rotate(-90deg); }

.global .help-wrap { margin-left: auto; align-self: end; }

.help-wrap { position: relative; display: inline-flex; }

.help {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #1c1915;
  border-radius: 50%;
  background: transparent;
  color: #1c1915;
  font: 12px var(--sans);
  line-height: 16px;
  cursor: help;
}

.tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 4;
  width: 280px;
  margin: 0;
  padding: 8px 10px;
  background: #1c1915;
  color: #e6e0d2;
  line-height: 1.4;
  visibility: hidden;
}

.help-wrap:hover .tip,
.help-wrap:focus-within .tip { visibility: visible; }

.screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

#screen-root { width: 100%; min-width: 0; }

.screen [hidden] { display: none !important; }

.screen input:not([hidden]), .screen select {
  font: 13px var(--sans);
  border: 0;
  border-radius: 8px;
  background: rgba(28, 25, 21, 0.05);
  padding: 5px 8px;
  width: 100%;
}

.screen select:disabled, .screen input:disabled { opacity: 0.45; }

.fade {
  display: block;
  opacity: 0.35;
  padding-top: 4px;
  padding-bottom: 4px;
  font-family: var(--sans);
  font-size: 13px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.cards div {
  border: 0;
  border-radius: 12px;
  min-width: 108px;
  padding: 8px 12px 10px;
  background: #f6f1e7;
}

.cards dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cards dt { color: var(--meta); }

.cards dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 400;
  color: var(--ink);
}

.stage { display: block; }

.rail > .panel:first-child { margin-top: 0; }

.rail .panel {
  max-width: none;
  margin: 12px 0 0;
}

.rail .panel + .panel { margin-top: 22px; }

.rail ul { list-style: none; margin: 0; padding: 0; }

.rail li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #c9c1b0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}

.rail a { text-decoration: none; }

.changes li { display: block; }

.changes time { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--meta); }

.rail .neighbors li,
.rail .loadings li {
  border-bottom: 0;
}

.rail .neighbors li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  align-items: center;
}

.neighbor-key {
  margin: 0 0 4px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.neighbors .num { font-family: var(--mono); font-size: 13px; color: var(--ink); }

.neighbors li.etf { align-items: start; }

.etf-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.etf-ticker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

.etf-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--meta);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

.neighbors .meter,
.makeup-bars .meter {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(28, 25, 21, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.neighbors .meter span,
.makeup-bars .meter span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.loadings li {
  display: grid;
  grid-template-columns: 120px minmax(72px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.factor-name { font-size: 14px; line-height: 1.2; color: var(--ink); }

.diverge {
  position: relative;
  height: 10px;
  background: rgba(28, 25, 21, 0.06);
  border-radius: 999px;
}

.diverge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: #1c1915;
}

.diverge-bar {
  position: absolute;
  top: 2px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
}

.diverge-bar.pos { left: 50%; }
.diverge-bar.neg { right: 50%; background: var(--neg); }

.loadings .num {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  color: var(--ink);
}

.quick {
  width: 100%;
  margin-top: 0;
  border-collapse: collapse;
}

.quick th,
.quick td {
  border-bottom: none;
  padding: 3px 0;
  font-size: 14px;
}

.quick tbody th {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: var(--ink);
}

.quick thead th {
  text-align: right;
  padding-bottom: 6px;
}

.quick thead th:first-child { text-align: left; }

.quick td.num {
  text-align: right;
  font-family: var(--mono);
  color: var(--ink);
  padding-left: 10px;
}

.quick tr.split th,
.quick tr.split td {
  border-top: 1px solid #c9c1b0;
  padding-top: 8px;
}

.metrics th.on,
.metrics td.on,
.prints th.on,
.prints td.on {
  background: rgba(196, 137, 42, 0.16);
  color: #1c1915;
}

.bar-tip {
  position: fixed;
  z-index: 6;
  transform: translate(-50%, -100%);
  margin-top: -6px;
  padding: 4px 7px;
  background: #1c1915;
  color: #e6e0d2;
  font: 12px var(--sans);
  white-space: nowrap;
  pointer-events: none;
}

.crumb { margin: 0 0 8px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; }

.crumb a { text-decoration: none; border-bottom: 1px solid #1c1915; }

.panel {
  max-width: 760px;
  margin: 22px 0 0;
  border: 0;
  border-radius: 14px;
  padding: 16px 16px 14px;
  min-inline-size: 0;
  background: #f6f1e7;
}

.panel > h3,
.panel-head h3 {
  margin: 0 0 12px;
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  color: #1c1915;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h3 { margin: 0; }

.head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-left: auto;
}

.head-tools .gear { flex: none; }

.peer-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: 12px var(--sans);
  color: var(--meta);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ticker-symbol {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--meta);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}

.tags span {
  font: 500 11px var(--sans);
  letter-spacing: 0.02em;
  color: var(--copy);
  background: rgba(28, 25, 21, 0.06);
  border-radius: 999px;
  padding: 4px 10px;
}

.membership {
  list-style: none;
  margin: 0;
  padding: 0;
}

.membership li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
  font-family: var(--sans);
  font-size: 14px;
}

.membership a { color: inherit; text-decoration: none; }

.membership .num { font-family: var(--mono); font-size: 13px; }

.panel-head .config-select { max-width: 220px; }

.rank-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--meta);
}

.rank-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-sort {
  justify-content: flex-start;
  margin: 0 0 16px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 4px 0 10px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--copy);
}

.facts b {
  font-weight: 600;
  color: var(--ink);
}

.prints {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
}

.prints th,
.prints td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
  text-align: left;
}

.prints .num,
.prints th.num { text-align: right; font-family: var(--mono); }
.prints th:last-child,
.prints td:last-child { padding-right: 0; }

.prints.tops td,
.prints.tops th { vertical-align: top; width: 33%; }
.prints .print-when,
.prints .print-meta { display: block; }
.prints .print-meta { margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--copy); }
.prints td[data-print],
.prints tr[data-print] { cursor: default; }
.prints td[data-print]:hover,
.prints tr[data-print]:hover td { background: rgba(196, 137, 42, 0.28); }

.block-boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.block-board h4 { margin: 0 0 8px; }
.block-board.on h4 { color: #8a5a12; }

.print-card {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 25, 21, 0.1);
  border-radius: 10px;
  background: #fffdf8;
}

.block-board.on .print-card { background: rgba(196, 137, 42, 0.1); }
.print-card:hover,
.print-card.lit { background: rgba(196, 137, 42, 0.28); }

.print-mark { cursor: crosshair; }
.print-mark .print-dot { pointer-events: none; }
.print-mark.lit .print-dot { stroke-opacity: 1; fill: rgba(196, 137, 42, 0.22); }

.print-tip {
  position: fixed;
  z-index: 70;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #1c1915;
  color: #f6f1e7;
  font: 12px var(--sans);
  line-height: 1.4;
  pointer-events: none;
}

.print-tip[hidden] { display: none; }

table.unusual th { cursor: pointer; }
table.unusual th[aria-sort="ascending"]::after { content: " \2191"; }
table.unusual th[aria-sort="descending"]::after { content: " \2193"; }
table.unusual td.sigma,
table.unusual tbody tr:hover td.sigma { background: rgba(196, 137, 42, var(--shade, 0)); }

.print-card .print-when {
  margin: 0 0 6px;
  font: 500 13px var(--sans);
  color: var(--ink);
}

.print-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 0;
  font-size: 13px;
}

.print-card dt { color: var(--meta); }
.print-card dd {
  margin: 0;
  font-family: var(--mono);
  text-align: right;
  color: var(--ink);
}

.print-empty {
  margin: 0;
  font: 13px var(--sans);
  color: var(--copy);
}

.panel h4 {
  margin: 16px 0 8px;
  font-family: var(--headline);
  font-size: 16px;
  font-weight: 500;
}

[data-page][hidden] { display: none !important; }

.largest { margin-top: 16px; }

[data-dossier] > .panel-head { margin-bottom: 16px; align-items: flex-start; }
[data-dossier] .chart-note { margin-bottom: 16px; }
.dossier-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.dossier-tabs button {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--meta);
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.dossier-tabs button.on { background: rgba(196, 137, 42, 0.16); color: var(--ink); }
.ratio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; }
.ratio-grid h4, .dossier-group {
  margin: 14px 0 8px;
  font-family: var(--headline);
  font-size: 16px;
  font-weight: 500;
}
.ratio-grid h4 { margin-top: 0; }
.ratio-grid dl, .ipo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  margin: 0;
}
.ratio-grid dt, .ipo dt { color: var(--meta); }
.ratio-grid dd, .ipo dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; }
.risks { list-style: none; margin: 0; padding: 0; }
.risks li { padding: 8px 0; border-bottom: 1px solid rgba(28, 25, 21, 0.08); }
.risks b { font-weight: 500; }
.risks p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.risks a { margin-left: 8px; }
.more.entry { display: inline; margin-left: 8px; padding: 0; letter-spacing: 0.06em; }
.entry-note { margin: 0 0 12px; color: var(--meta); font-size: 14px; line-height: 1.45; }
[data-entry-body] p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }

.news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news li {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
}

.news a { display: block; color: inherit; text-decoration: none; }

.news .when {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--meta);
}

a.etf-copy { color: inherit; }

button.gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--meta);
  cursor: pointer;
}

button.gear svg {
  width: 14px;
  height: 14px;
}

button.gear:hover,
button.modal-close:hover,
button.watch-drop:hover,
button.more:hover,
button.peer-link:hover,
.dossier-tabs button:hover,
.pager button:hover:not(:disabled):not(.on),
.screen-actions button:not(.apply):hover,
.group-actions button:hover,
.clause .drop:hover {
  color: var(--ink);
  background: rgba(196, 137, 42, 0.12);
}

.screen-actions button:hover,
.group-actions button:hover,
.clause .drop:hover {
  background: rgba(28, 25, 21, 0.1);
}

.tree,
.tree-list,
.modal-body,
.rail {
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  button,
  .results-panel a,
  .watch-list li,
  .membership li,
  .news li,
  .neighbors li,
  .changes li,
  .tray li,
  table tbody td,
  table tbody th,
  .print-card {
    transition: none;
  }
}

.card-strip { position: relative; }

.card-strip .gear {
  position: absolute;
  top: 0;
  right: 0;
}

.card-strip .cards { margin-right: 36px; }

.panel .plot { margin: 0; }

.chart-page[hidden] { display: none; }

.chart-title {
  margin: 0 0 2px;
  text-align: center;
  font-family: var(--headline);
  font-size: 16px;
  font-weight: 500;
  color: #1c1915;
}

.chart-note {
  margin: 0 0 10px;
  text-align: center;
  font: 13px var(--sans);
  color: var(--copy);
}

.snapshot-note {
  margin: 0 0 12px;
  text-align: left;
  font: 13px var(--sans);
  color: var(--copy);
}

.metric-name {
  position: relative;
  cursor: help;
}

.metric-name .tip {
  right: auto;
  left: 0;
  width: 260px;
  z-index: 6;
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 400;
}

.metric-name:hover .tip,
.metric-name:focus-within .tip { visibility: visible; }

.chart-empty {
  margin: 4px 0 8px;
  font: 13px var(--sans);
}

.pager {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.pager button,
.pager a,
.pager .off {
  font: 12px var(--sans);
  color: #1c1915;
  border: 1px solid #1c1915;
  background: transparent;
  padding: 3px 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.pager-count {
  flex: 0 0 auto;
  font: 12px var(--sans);
  color: #1c1915;
  white-space: nowrap;
}

.pager button:disabled,
.pager .off { opacity: 0.35; cursor: default; }

.pager-nums {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.pager .pager-nums a,
.pager-nums button {
  min-width: 22px;
  padding: 3px 0;
  text-align: center;
  flex: 0 0 auto;
}

.pager-nums button.on,
.pager-nums a.on {
  background: #1c1915;
  color: #e6e0d2;
}

.metrics td.num { font-family: var(--mono); color: var(--ink); white-space: nowrap; }

.metrics .move {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  vertical-align: middle;
}

.metrics .move.up { border-bottom: 5px solid #1c1915; }

.metrics .move.down { border-top: 5px solid #1c1915; }

.metrics { width: 100%; }

.metrics th {
  width: 1%;
  white-space: nowrap;
  text-align: left;
  padding: 2px 12px 2px 0;
  font-weight: 500;
}

.metrics tbody th {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.metrics th.num, .metrics td.num {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding: 2px 12px 2px 0;
  font-variant-numeric: tabular-nums;
}

.metrics thead th { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

.metrics td.span { text-align: right; }

.metrics td.bars { padding: 1px 0; }

.makeup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.makeup .panel { margin: 0; max-width: none; }

.pie-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.pie-row svg.pie { width: 120px; height: 120px; flex: 0 0 auto; }

svg.pie .bar { cursor: pointer; }

.pie-legend, .makeup-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.pie-legend li, .makeup-bars li {
  display: grid;
  gap: 4px 8px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 0;
  font-size: 13px;
  color: var(--ink);
}

.pie-legend li { grid-template-columns: auto minmax(0, 1fr) auto; }

.makeup-bars li { grid-template-columns: minmax(0, 1fr) auto; }

.pie-legend .swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.pie-legend .num, .makeup-bars .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

.constituents { overflow-x: auto; }

.factors h3 { margin: 18px 0 8px; font-weight: 500; font-size: 16px; }

.constituents table {
  margin-top: 8px;
  border-collapse: separate;
  border-spacing: 8px 0;
}

.constituents th.num, .constituents td.num { text-align: right; }

.veil {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

.tape {
  margin-top: 18px;
  padding: 16px 16px 8px;
  background: #14181f;
  color: #f2efe6;
  max-width: 760px;
}

.tape h3 {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.tape-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 14px 0 8px;
}

.tape-head strong, .hist-row strong {
  font-family: var(--mono);
  color: #e0a030;
}

.tape-note {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  color: #b7b1a6;
}

.tape .rollups dt { color: #b7b1a6; }
.tape .rollups dd { color: #f2efe6; }

.lookbacks {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
}

.lookbacks th, .lookbacks td {
  border-bottom: 1px solid #2a303a;
  color: #f2efe6;
  padding: 6px 8px;
}

.lookbacks td { font-family: var(--mono); text-align: right; }

.hist-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
}

.hist-label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

svg.performance, svg.radar { display: block; width: 100%; max-width: 100%; height: auto; }

svg.hist { display: block; width: 100%; }

.factors { margin: 0 0 12px; padding-left: 18px; font-family: var(--mono); }

.rollups {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 8px 0 0;
}

.rollups div { min-width: 120px; }

.rollups dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rollups dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 500;
  color: var(--ink);
}

.screen-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.screen-modal[hidden] { display: none; }

.screen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 21, 0.28);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: #f6f1e7;
  box-shadow: 0 24px 64px rgba(28, 25, 21, 0.22);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--headline);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
}

.modal-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1c1915;
  font: 22px/1 var(--sans);
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  column-gap: 28px;
  box-sizing: border-box;
  width: min(100%, var(--frame));
  margin-right: auto;
  margin-left: auto;
  padding: 0 28px;
  min-height: calc(100vh - 92px);
}

.tree {
  position: sticky;
  top: 52px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 68px);
  overflow: auto;
  padding: 22px 0 16px;
  font-family: var(--sans);
  font-size: 13px;
}

.watch-card {
  max-width: none;
  width: 100%;
  margin: 0 0 12px;
}

.watch-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--meta);
  font-size: 12px;
}

.watch-sort .config-select {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}

.watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.watch-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.watch-list a {
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.watch-name {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}

.watch-sub {
  display: block;
  color: var(--meta);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-drop {
  border: 0;
  background: transparent;
  color: var(--meta);
  cursor: pointer;
  font: 16px/1 var(--sans);
  padding: 0 2px;
}

.watch-empty {
  margin: 4px 0 0;
  color: var(--meta);
  font-size: 13px;
}

.watch-add {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(28, 25, 21, 0.28);
  border-radius: 6px;
  background: transparent;
  color: var(--meta);
  cursor: pointer;
  font: 600 18px/1 var(--sans);
  padding: 0;
}

button.watch-add:hover {
  border-color: rgba(138, 90, 18, 0.55);
  background: rgba(196, 137, 42, 0.1);
  color: #8a5a12;
}

.watch-add.on {
  color: #8a5a12;
  border-color: rgba(138, 90, 18, 0.7);
}

[data-recent-clear][hidden] { display: none !important; }

.results-panel {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: none;
  max-height: 100%;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
}

.query-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(28, 25, 21, 0.04);
}

.query-group.or { border-style: dashed; background: transparent; }

.query-group .query-group { width: auto; margin: 0 0 0 28px; }

.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logic {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  background: #1c1915;
  color: #e6e0d2;
}

.query-group.or .logic {
  background: transparent;
  color: #1c1915;
  border: 1px solid #1c1915;
}

.group-head .join {
  width: auto;
  min-width: 240px;
  border: 0;
  padding-left: 0;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.field > span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
}

.metric-field { width: 180px; flex: 0 0 auto; }
.bound { width: 110px; flex: 0 0 auto; }
.text-field { flex: 1 1 240px; }
.save-field { width: auto; }
.save-name { display: flex; gap: 6px; }
.save-name select { width: 160px; }
.save-name input { width: 160px; }

.clause {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 0 0 28px;
}

.group-actions, .screen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.group-actions { margin-left: 28px; }

.screen-actions { justify-content: flex-end; }

.group-actions button, .screen-actions button, .clause .drop {
  font: 13px var(--sans);
  color: #1c1915;
  border: 0;
  border-radius: 8px;
  background: rgba(28, 25, 21, 0.06);
  padding: 6px 10px;
}

.screen-actions .apply {
  background: #1c1915;
  color: #e6e0d2;
}
.result-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  padding: 0;
  font-family: var(--sans);
  font-size: 12px;
}

.result-tools label {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
}

.screen .result-tools select {
  width: auto;
  padding: 3px 6px;
  background: #f1ece2;
}

.screen .result-tools label:nth-child(1) select { width: 220px; }
.screen .result-tools label:nth-child(2) select { width: 124px; }
.screen .result-tools label:nth-child(3) select { width: 64px; }

.result-count {
  margin: 0 2px 6px;
  font-family: var(--sans);
  font-size: 12px;
}

.empty-results { padding: 12px 16px; }

.screen .notice { margin: 0 0 8px; }

#theme-suggest {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid #1c1915;
  background: #e6e0d2;
  max-height: 240px;
  overflow: auto;
}

#theme-suggest a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
}

#theme-suggest a.on, #theme-suggest a:hover { background: #1c1915; color: #e6e0d2; }

.tree-list {
  overflow: auto;
  min-height: 0;
  padding: 0;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.result-metric {
  margin: 0 2px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.results-panel a[hidden] {
  display: none;
}

.results-panel a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  padding: 6px 8px;
  text-decoration: none;
  border-radius: 8px;
}

.results-panel a.here { background: rgba(196, 137, 42, 0.16); color: inherit; }

.results-panel a,
.watch-list li,
.membership li,
.news li,
.neighbors li,
.changes li,
.tray li,
table tbody td,
table tbody th,
.print-card {
  transition: background-color 140ms ease;
}

.results-panel a:hover,
.watch-list li:hover,
.membership li:hover,
.news li:hover,
.neighbors li:hover,
.changes li:hover,
.tray li:hover {
  background: rgba(196, 137, 42, 0.1);
}

table tbody tr:hover td,
table tbody tr:hover th {
  background: rgba(196, 137, 42, 0.08);
}

.metrics tbody tr:hover td.on,
.prints tbody tr:hover td.on,
.prints tbody tr:hover th.on {
  background: rgba(196, 137, 42, 0.22);
}

.peer-table tbody tr:not(.split):nth-child(even) > th,
.peer-table tbody tr:not(.split):nth-child(even) > td {
  background: #ebe3d4;
}

.peer-table tbody tr:not(.split):nth-child(odd) > th:first-child,
.peer-table tbody tr:not(.split):nth-child(odd) > td:first-child {
  background: #f6f1e7;
}

.peer-table tbody tr:not(.split):nth-child(even) > th:first-child,
.peer-table tbody tr:not(.split):nth-child(even) > td:first-child {
  background: #ebe3d4;
}

.peer-table td.subject,
.peer-table th.subject { background: #f3e6cf; }

.peer-table tbody tr:nth-child(even) > td.subject,
.peer-table tbody tr:nth-child(even) > th.subject { background: #eadcc4; }

.peer-table tbody tr:not(.split) > td.hot,
.peer-table tbody tr:not(.split) > th.hot,
.peer-table thead th.hot { background: #e7d7b4; }

.peer-table tbody tr:not(.split):hover > th,
.peer-table tbody tr:not(.split):hover > td {
  background: #f3ead8;
}

.peer-table tbody tr:not(.split):hover > td.hot,
.peer-table tbody tr:not(.split):hover > th.hot,
.peer-table thead th.hot { background: #dcc48f; }

svg.performance .crosshair {
  stroke: rgba(28, 25, 21, 0.45);
  stroke-width: 1;
  pointer-events: none;
}

.result-copy { display: flex; flex-direction: column; min-width: 0; }

.result-name { line-height: 1.25; font-size: 14px; font-weight: 400; color: var(--ink); }

.results-panel .members {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members {
  color: var(--meta);
  font-size: 11px;
  line-height: 1.3;
}

.result-value {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.tree .count { font-variant-numeric: tabular-nums; opacity: 0.7; }

.section-note { padding: 28px; }

.section-note h2 {
  margin: 0 0 8px;
  font-family: var(--headline);
  font-weight: 500;
  font-size: 46px;
  color: var(--ink);
}

.desk {
  display: grid;
  grid-template-columns: minmax(0, 760px) 360px;
  column-gap: 22px;
  align-items: start;
  justify-content: start;
  padding: 22px 0 48px;
}

.desk h2 {
  margin: 0 0 8px;
  font-family: var(--headline);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.desk h2.company,
.desk h2.with-watch {
  display: flex;
  align-items: center;
  gap: 14px;
}

[data-watch-modal] { z-index: 40; }

.company-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.logo-plate {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #1c1915;
}

.definition { max-width: 68ch; margin: 0 0 18px; font-size: 16px; line-height: 1.45; color: var(--copy); }

.blurb .definition {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: 4px;
}

.blurb.open .definition {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.more {
  border: 0;
  background: transparent;
  padding: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
  cursor: pointer;
}

.more:hover { color: var(--copy); }

.asof, .notice {
  font-family: var(--sans);
  font-size: 13px;
}

.asof input {
  font: 13px var(--sans);
}

table { width: 100%; border-collapse: collapse; margin-top: 16px; }

th, td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid #c9c1b0;
  font-family: var(--sans);
  font-size: 14px;
  vertical-align: baseline;
}

th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--meta); }

td.ticker, td.num { font-family: var(--mono); }

tr.here td { background: #ddd6c6; }

.lock p { font-family: var(--sans); font-size: 14px; line-height: 1.45; }

.lock {
  margin-top: 28px;
  max-width: 520px;
  padding-top: 16px;
  border-top: 1px solid #1c1915;
}

.plans { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.plans input[type="email"] {
  font: 14px var(--sans);
  border: 1px solid #1c1915;
  background: transparent;
  padding: 6px 8px;
  min-width: 220px;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  box-sizing: border-box;
  width: min(100%, var(--frame));
  margin-top: 12px;
  margin-right: auto;
  margin-left: auto;
  padding: 16px 28px 22px;
  border-top: 1px solid rgba(28, 25, 21, 0.16);
  font: 12px var(--sans);
  color: var(--meta);
}

.site-foot nav { display: flex; gap: 16px; }

.site-foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-foot a:hover { border-bottom-color: var(--ink); }

.site-foot p { margin: 0; }

.prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 28px 72px;
}

.prose h2 {
  margin: 0 0 8px;
  font-family: var(--headline);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.05;
  color: var(--ink);
}

.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--headline);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}

.prose p,
.prose li {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--copy);
}

.prose .kicker {
  margin: 0 0 16px;
  font: 12px var(--sans);
  letter-spacing: 0.04em;
  color: var(--meta);
}

.prose .motto-line {
  margin-top: 22px;
  font-family: var(--headline);
  font-size: 20px;
  color: var(--ink);
}

.prose a { color: var(--ink); }

.modal-card.wide {
  width: min(840px, 100%);
  max-height: min(86vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 0 0;
}

.modal-card.wide .modal-head {
  flex: none;
  padding: 0 22px;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 22px 8px;
}

.modal-card.peers { width: min(1120px, 100%); }

.modal-card.peers .modal-body {
  padding-left: 0;
  padding-right: 0;
}

.peer-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font: 13px var(--sans);
}

.peer-table th,
.peer-table td {
  padding: 6px 14px 6px 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
  text-align: right;
  white-space: nowrap;
  font-weight: 400;
}

.peer-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--meta);
}

.peer-table.names thead th {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  max-width: 9.5em;
  vertical-align: bottom;
  line-height: 1.25;
}

.quick td.cover {
  color: var(--meta);
  font-size: 12px;
}

.peer-table th:first-child,
.peer-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  padding-left: 22px;
  padding-right: 16px;
  background: #f6f1e7;
  color: var(--ink);
  box-shadow: 1px 0 0 #f6f1e7;
}

.peer-table thead th:first-child { z-index: 3; }

.peer-table th:last-child,
.peer-table td:last-child { padding-right: 22px; }

.peer-table th[colspan] {
  position: static;
  z-index: auto;
  box-shadow: none;
}

.peer-table th:first-child.subject,
.peer-table td:first-child.subject { background: #f6f1e7; }

.peer-table tbody th {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
}

.peer-table tr.split th,
.peer-table tr.split td {
  padding-top: 10px;
  border-top: 1px solid #c9c1b0;
}

.peer-table tr.split th[colspan] {
  padding-top: 14px;
  font-family: var(--headline);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

[data-peer-source][hidden] { display: none !important; }

.working {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(230, 224, 210, 0.28);
}

.working[hidden] { display: none; }

body.working-on .mast,
body.working-on .controls,
body.working-on .layout,
body.working-on .site-foot {
  filter: blur(5px);
}

.working-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  border-radius: 14px;
  background: #f6f1e7;
  box-shadow: 0 12px 40px rgba(28, 25, 21, 0.16);
}

.working-card p {
  margin: 0;
  font: 13px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.working-spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(28, 25, 21, 0.15);
  border-top-color: #c4892a;
  border-radius: 50%;
  animation: working-spin 0.8s linear infinite;
}

@keyframes working-spin { to { transform: rotate(360deg); } }

.modal-card.wide .screen-actions {
  flex: none;
  margin: 0;
  padding: 12px 22px 16px;
  border-top: 1px solid rgba(28, 25, 21, 0.1);
  background: #f6f1e7;
}

.board-note {
  margin: 0 0 10px;
  font: 13px var(--sans);
  line-height: 1.4;
  color: var(--copy);
}

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}

.board-kicker {
  margin: 0 0 6px;
  font: 600 11px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.tray {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-height: 160px;
  border-radius: 12px;
  background: #efe8dc;
}

.tray li {
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  font: 13px var(--sans);
  color: var(--ink);
  cursor: grab;
  user-select: none;
}

.tray li:last-child { margin-bottom: 0; }

.tray li.dragging { opacity: 0.4; }

@media (max-width: 720px) {
  .board { grid-template-columns: 1fr; }
  .block-boards { grid-template-columns: 1fr; }
}

.dash {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 8px 28px 48px;
}

.dash .panel { max-width: none; }

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}

.dash-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.dash-grid .panel { margin: 0; min-width: 0; }

.dash [data-lead][hidden] { display: none !important; }

.dash .hint {
  margin: 0;
  color: var(--meta);
  font-size: 12px;
}

.dash .fine {
  margin: 12px 0 0;
  color: var(--meta);
  font-size: 12px;
  line-height: 1.45;
}

.dash .up { color: #2f6b45; }
.dash .down { color: var(--neg); }

.market-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  max-width: none;
  background: transparent;
  color: var(--ink);
}

.market-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 10px 2px;
  border-left: 1px solid rgba(28, 25, 21, 0.08);
}

.market-cell:first-child { border-left: 0; padding-left: 0; }

.market-name,
.market-symbol,
.market-level,
.market-change { margin: 0; }

.market-name { font-size: 13px; color: var(--copy); }

.market-symbol {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--meta);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-level {
  margin-top: 6px;
  font-family: var(--headline);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.market-change,
.market-moves {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

.market-moves {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.market-move {
  display: grid;
  grid-template-columns: 4.6em auto;
  column-gap: 4px;
  align-items: baseline;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 3px;
  border-radius: 8px;
  background: #efe8dc;
}

.seg button {
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  background: transparent;
  color: var(--ink);
  font: 13px var(--sans);
  cursor: pointer;
}

.seg button.on { background: #fff; }

.seg button:hover:not(.on) { background: rgba(255, 255, 255, 0.55); }

.leaders {
  width: 100%;
  border-collapse: collapse;
}

.leaders th {
  padding: 0 10px 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
  color: var(--meta);
}

.leaders th:first-child,
.leaders td:first-child { text-align: left; }

.leaders td {
  padding: 9px 10px 9px 0;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
  text-align: right;
  vertical-align: middle;
}

.leaders .num {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink);
}

.leaders .trend { width: 140px; }

.leaders .spark { display: block; width: 140px; height: 28px; }

.leaders tbody tr:hover td { background: rgba(196, 137, 42, 0.12); }

.dash a.name {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.dash a.name:hover { color: #8a5a12; }

.dash .quiet {
  display: block;
  margin-top: 2px;
  color: var(--meta);
  font-size: 12px;
  font-weight: 400;
}

.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(72px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
}

.flow-row:hover { background: rgba(196, 137, 42, 0.12); }

.flow-row .num {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-tile {
  padding: 12px 14px;
  border-radius: 12px;
  background: #efe8dc;
}

.stat-tile strong {
  display: block;
  font-family: var(--headline);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.stat-tile span {
  display: block;
  margin-top: 6px;
  color: var(--meta);
  font-size: 13px;
}

.change-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
}

.change-row:hover { background: rgba(196, 137, 42, 0.12); }

.badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.badge.new { background: #6b4a1e; color: #f6f1e7; }
.badge.growing { background: #e4efe6; color: #2f6b45; }
.badge.shrinking { background: #f3e4dc; color: var(--neg); }

.scroll { overflow-x: auto; }

.leaders.sectors { min-width: 880px; }

.diverge.slim {
  display: inline-block;
  width: 72px;
  margin-right: 8px;
  vertical-align: middle;
}

.meter {
  display: inline-block;
  width: 72px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.08);
  vertical-align: middle;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.map-intro h3 { margin: 0; }

.map-intro .hint { margin-top: 4px; }

.map-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.map-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.map-sector-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.map-sector-value {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
}

.map-plot { position: relative; height: 100%; }

.tile {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 6px;
  overflow: hidden;
  border: 2px solid #f6f1e7;
  border-radius: 6px;
  line-height: 1.15;
  text-decoration: none;
  container-type: size;
}

@container (max-height: 36px) {
  .tile-name,
  .tile-value { display: none; }
}

@container (max-width: 68px) {
  .tile-value { display: none; }
  .tile-name { font-size: 11px; }
}

.tile-name { font-size: 13px; font-weight: 500; }

.tile-value {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
}

.regime,
.regime.with-markets {
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  gap: 8px 22px;
  align-items: stretch;
}

.regime-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.regime-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.regime.with-markets .regime-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.regime-facts .regime-read,
.regime-facts .markets-pair { display: contents; }

.regime-plot {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: minmax(340px, 1fr) 16px auto;
  column-gap: 4px;
  height: 100%;
}

.regime-plot .regime-field { height: 100%; min-height: 340px; overflow: visible; }

.regime-field {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  border-radius: 10px;
  background: #fbf7f0;
  overflow: hidden;
}

.regime-field::before,
.regime-field::after {
  content: "";
  position: absolute;
  background: rgba(28, 25, 21, 0.16);
  z-index: 1;
}

.regime-field::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.regime-field::after { top: 50%; left: 0; right: 0; height: 1px; }

.regime-shade {
  position: absolute;
  width: 50%;
  height: 50%;
  background: rgba(154, 104, 32, 0.14);
}

.regime-shade.stagflation { top: 0; left: 0; }
.regime-shade.reflation { top: 0; right: 0; }
.regime-shade.slowdown { bottom: 0; left: 0; }
.regime-shade.expansion { bottom: 0; right: 0; }

.quad {
  position: absolute;
  z-index: 1;
  padding: 8px 10px;
  color: var(--meta);
  font-size: 12px;
}

.quad.tl { top: 0; left: 0; }
.quad.tr { top: 0; right: 0; }
.quad.bl { bottom: 0; left: 0; }
.quad.br { bottom: 0; right: 0; }

.axis-name {
  color: var(--meta);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.axis-name.growth {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: end;
}
.axis-name.inflation {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.regime-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.regime-link polyline { fill: none; stroke: #1c1915; stroke-width: 1.25; stroke-dasharray: 2 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.regime-mark {
  position: absolute;
  z-index: 2;
  transform: translate(-5px, -5px);
}

.regime-mark i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1c1915;
}

.regime-mark em {
  position: absolute;
  left: 14px;
  top: -4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(251, 247, 240, 0.94);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
}

.regime-mark.on { z-index: 3; }
.regime-mark.on em { opacity: 1; }
.regime-mark.flip em { left: auto; right: 14px; }

.regime-mark.hollow i {
  background: #fbf7f0;
  box-shadow: inset 0 0 0 2px #1c1915;
}

.regime-mark.diamond i {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: #c4892a;
  transform: rotate(45deg);
}

.regime-mark.below em { top: 12px; }

.regime-key {
  display: flex;
  grid-column: 2;
  grid-row: 3;
  gap: 14px;
  margin: 8px 0 0;
  color: var(--meta);
  font-size: 12px;
}

.regime-key i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #1c1915;
  vertical-align: 0;
}

.regime-key i.diamond {
  border-radius: 1px;
  background: #c4892a;
  transform: rotate(45deg);
}

.regime-stat.box {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf7f0;
}
.regime-k { display: block; font-size: 11px; color: var(--meta); }
.regime-figures { display: block; margin-top: 8px; }
.regime-level { font-family: var(--headline); font-size: 26px; line-height: 1; color: var(--ink); }
.regime-change { margin-left: 6px; font-family: var(--mono); font-size: 13px; }
.regime-when { display: block; margin-top: 6px; color: var(--meta); font-family: var(--mono); font-size: 11px; }

.kicker {
  margin: 4px 0 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta);
}

.hurdles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
}
.hurdles .kicker { grid-column: 1 / -1; margin: 0; }
.hurdle { margin: 0; }
.hurdle-title { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.hurdle-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.08);
}
.hurdle-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #1c1915;
}
.hurdle-bar i {
  position: absolute;
  top: -4px;
  right: 0;
  width: 1px;
  height: 12px;
  background: #c4892a;
}
.hurdle-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 0;
  color: var(--meta);
  font-family: var(--mono);
  font-size: 11px;
}
.hurdle-verdict { margin: 4px 0 0; font-size: 13px; }

.markets-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.markets-pair .box {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbf7f0;
}
.markets-pair .price { background: #f4ead8; }
.markets-pair .k { display: block; color: var(--meta); font-size: 11px; }
.markets-pair strong {
  display: block;
  margin-top: 8px;
  font-family: var(--headline);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.markets-pair .fine { display: block; margin-top: 6px; }
.signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}
.markets-row {
  margin: 0;
  font-size: 13px;
}
.markets-row .num {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.markets-note {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.45;
}

.history { margin-top: 18px; }
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.history-head .fine { margin: 0; }
.history-strip {
  display: flex;
  height: 14px;
  gap: 1px;
  overflow: hidden;
  border-radius: 4px;
}
.history-strip i { flex: 1 1 0; }
.history-strip i.expansion, .history-legend i.expansion { background: #c4a36a; }
.history-strip i.reflation, .history-legend i.reflation { background: #9a6820; }
.history-strip i.stagflation, .history-legend i.stagflation { background: #8d735b; }
.history-strip i.slowdown, .history-legend i.slowdown { background: #d9d3c7; }
.history-years {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 0;
  color: var(--meta);
  font-family: var(--mono);
  font-size: 11px;
}
.history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 8px 0 0;
  color: var(--meta);
  font-size: 12px;
}
.history-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-radius: 2px;
  vertical-align: -1px;
}

.exposure-focus {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(28, 25, 21, 0.12);
  border-radius: 999px;
  color: var(--meta);
  font-size: 12px;
  white-space: nowrap;
}
.exposure-plot {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: 440px 16px;
  column-gap: 4px;
  width: 100%;
}
.exposure-field { height: 440px; width: 100%; overflow: visible; }
.exposure-dot {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: #c4892a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1c1915;
  transform: translate(-50%, -50%);
}
.exposure-dot.labeled,
.exposure-dot.on,
.exposure-dot:hover { z-index: 3; }
.exposure-dot em {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%);
}
.exposure-dot.labeled em,
.exposure-dot.on em,
.exposure-dot:hover em { opacity: 1; }
.exposure-dot.flip em { left: auto; right: calc(100% + 6px); }
.exposure-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 10px 0 0 22px;
  color: var(--meta);
  font-size: 12px;
}
.sector-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.sector-toggles button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(28, 25, 21, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  background: transparent;
  color: var(--meta);
  font: inherit;
  font-size: 12px;
}

.sector-toggles button i {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}

.sector-toggles button.on { background: #fff; color: var(--ink); }
.sector-toggles button:not(.on) { opacity: 0.45; }
.sector-toggles button:hover { background: rgba(255, 255, 255, 0.7); }

.ladder { display: block; width: 100%; height: auto; }
.ladder a,
.ladder-hitbox { cursor: pointer; }
.ladder a { text-decoration: none; }
.ladder-head { fill: #8a8175; font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; }
.ladder-rule { stroke: rgba(28, 25, 21, 0.12); }
.ladder-rank { fill: #8a8175; font-family: var(--mono); font-size: 11px; }
.ladder-name { fill: #1c1915; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.ladder-move { font-family: var(--mono); font-size: 11px; }
.ladder-hit { fill: none; stroke: transparent; stroke-width: 14; }
.ladder-line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ladder-theme.rise .ladder-line { stroke: #2f6b45; stroke-width: 1.6; }
.ladder-theme.fall .ladder-line { stroke: #8d5a3c; stroke-width: 1.6; }
.ladder-theme.flat .ladder-line { stroke: #c8bfb2; stroke-width: 1.15; }
.ladder-theme.jump .ladder-line { stroke-width: 2.2; }
.ladder-theme.rise .ladder-dot,
.ladder-theme.rise .ladder-move { fill: #2f6b45; }
.ladder-theme.fall .ladder-dot,
.ladder-theme.fall .ladder-move { fill: #8d5a3c; }
.ladder-theme.flat .ladder-dot { fill: #c8bfb2; }
.ladder-theme:hover .ladder-line { stroke: #c4892a; stroke-width: 2.4; }
.ladder-theme:hover .ladder-dot { fill: #c4892a; }
.ladder-theme:hover .ladder-name { fill: #9a6820; }

.heat-wrap { overflow-x: auto; }

.heat {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.heat th {
  padding: 8px 8px 6px;
  color: var(--meta);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: right;
  text-transform: uppercase;
}

.heat th:first-child,
.heat td:first-child,
.heat th:nth-child(2),
.heat td.heat-type { text-align: left; }

.heat td.heat-type {
  color: var(--meta);
  white-space: nowrap;
}

.heat td {
  padding: 7px 8px;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
  vertical-align: middle;
}

.heat .num {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.heat td.heat-cell {
  padding: 7px 6px;
  border-top-color: transparent;
}

.heat td.heat-cell span {
  display: block;
  padding: 5px 8px;
  border-radius: 4px;
}

.heat-read {
  color: var(--copy);
  font-size: 13px;
  white-space: nowrap;
}

.heat tbody tr:hover td:not(.heat-cell) { background: rgba(196, 137, 42, 0.08); }

.disp-legend {
  display: flex;
  gap: 14px;
  color: var(--copy);
  font-size: 13px;
}

.disp-legend span { display: inline-flex; align-items: center; gap: 6px; }

.disp-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.disp-swatch.inflow { background: #c4892a; }
.disp-swatch.outflow { box-sizing: border-box; border: 2px solid #a15c38; }
.disp-swatch.flat { background: #c8bfb2; }

.disp-scale,
.disp-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
}

.disp-scale {
  margin-top: 4px;
  color: var(--meta);
  font-family: var(--mono);
  font-size: 11px;
}

.disp-scale div,
.disp-track { position: relative; }

.disp-scale div {
  display: flex;
  justify-content: space-between;
}

.disp-row { min-height: 46px; }

.disp-label { min-width: 0; }

.disp-name-row {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.disp-avg {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
}

.disp-track { height: 64px; }

.disp-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(28, 25, 21, 0.16);
}

.disp-dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  z-index: 1;
}

.disp-dot.inflow { background: #c4892a; }
.disp-dot.outflow { box-sizing: border-box; background: #f6f1e7; border: 2px solid #a15c38; }
.disp-dot.flat { background: #c8bfb2; }

.disp-dot.left::before,
.disp-dot.right::after {
  content: "";
  position: absolute;
  top: 1px;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--ink);
}

.disp-dot.left::before {
  right: 12px;
  transform: scaleX(-1);
}

.disp-dot.right::after { left: 12px; }

.disp-tag {
  position: absolute;
  top: 1px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
}

.disp-tag.high { top: auto; bottom: 1px; }

.disp-tag.before { transform: translateX(calc(-100% - 8px)); }
.disp-tag.after { transform: translateX(8px); }

.disp-spread {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
}

.cluster {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 25, 21, 0.08);
}

.cluster:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cluster-head h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
}

.cluster-names { margin: 8px 0 0; }

.cluster-names a {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.05);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.cluster-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 0;
  color: var(--copy);
  font-size: 13px;
}

.cluster-stats b { font-weight: 500; }

.cluster-note {
  margin: 6px 0 0;
  color: var(--copy);
  font-size: 13px;
  line-height: 1.45;
}

.route {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.route.crowded { background: #6b3a32; color: #f6f1e7; }
.route.building { background: #e7f0e4; color: #2f6b45; }
.route.diversifying { background: #e7eef2; color: #3e5c73; }
.route.direct { background: #1c1915; color: #f6f1e7; }
.route.plus { background: transparent; color: #7d4830; box-shadow: inset 0 0 0 1px #7d4830; }
.route.works { background: #e7f0e4; color: #2f6b45; }

.heat.impl { table-layout: fixed; }

.heat.impl th:nth-child(1) { width: 22%; }
.heat.impl th:nth-child(2) { width: 32%; }
.heat.impl th:nth-child(3) { width: 18%; }
.heat.impl th:nth-child(4) { width: 28%; }

.heat.impl td:last-child { text-align: right; }

.impl-verdict { margin: 0; }

.impl-verdict div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.impl-verdict dt {
  margin: 0;
  color: var(--meta);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.impl-verdict dd { margin: 0; min-width: 0; }

.impl-fund {
  font-family: var(--mono);
  font-size: 12px;
  white-space: normal;
}

.impl-bar {
  position: relative;
  min-width: 0;
  height: 8px;
}

.impl-bar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #c4a574;
}

.impl-bar span {
  display: block;
  margin-top: 3px;
  color: var(--meta);
  font-family: var(--mono);
  font-size: 11px;
  text-align: right;
}

.tile:hover { z-index: 1; outline: 1px solid rgba(28, 25, 21, 0.4); }

.tile-other { cursor: default; }

.map-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--meta);
  font-family: var(--mono);
  font-size: 11px;
}

.map-scale i {
  display: block;
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7d4830, #f3eadc 50%, #9a6820);
}

@media (max-width: 900px) {
  .dash { padding: 8px 16px 40px; }
  .dash-grid,
  .dash-grid.even,
  .book-page.layout,
  .book-page .desk,
  .stat-row { grid-template-columns: 1fr; }
  .book-col,
  .book-page .rail { position: static; max-height: none; }
  .map-row,
  .disp-scale,
  .disp-row { grid-template-columns: 96px minmax(0, 1fr); }
  .disp-spread { display: none; }
  .market-strip { flex-wrap: wrap; }
  .market-cell { flex: 1 1 120px; }
  .regime,
  .regime.with-markets { grid-template-columns: 1fr; }
  .regime-plot { grid-template-rows: 260px 16px auto; }
  .regime-plot .regime-field { min-height: 260px; height: 260px; }
  .regime.with-markets .regime-facts,
  .signals,
  .hurdles { grid-template-columns: 1fr 1fr; }
  .exposure-plot { grid-template-rows: 320px 16px; }
  .exposure-field { height: 320px; }
  .history-head { flex-direction: column; }
}

.sankey { display: block; width: 100%; height: auto; }
.sankey-label { fill: #1c1915; font-family: var(--sans); font-size: 11px; pointer-events: none; }
.sankey-flow { fill: rgba(196, 137, 42, 0.35); }
.sankey-flow:hover { fill: rgba(154, 104, 32, 0.78); }
.book-counts { display: block; width: 100%; height: auto; }
.book-counts .hit { fill: transparent; }
.book-counts .hit:hover { fill: rgba(196, 137, 42, 0.16); }
.book-intro { margin: 4px 0 0; max-width: 78ch; color: var(--copy); font-size: 14px; line-height: 1.45; }
.book-chart { margin-top: 4px; }
.book-sectors { margin: 0; }
.book-col {
  position: sticky;
  top: 52px;
  align-self: start;
  max-height: calc(100vh - 68px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 0 16px;
  min-width: 0;
}
.book-col .panel { max-width: none; margin: 0 0 12px; }
.book-page .desk-main .panel,
.book-page .rail .panel { max-width: none; }
.book-page .desk-main > .panel { margin-top: 0; }
.book-page .rail {
  position: sticky;
  top: 52px;
  align-self: start;
  max-height: calc(100vh - 68px);
  overflow-x: hidden;
  overflow-y: auto;
}
.book-page .rail > [data-model] > .panel { max-width: none; margin: 0 0 12px; }

.book-export {
  flex: none;
  align-self: flex-start;
  margin: 2px 0 0;
  padding: 6px 12px;
  border: 1px solid rgba(28, 25, 21, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #1c1915;
  font: 600 12px var(--sans);
  cursor: pointer;
}

.book-export:hover { background: rgba(196, 137, 42, 0.12); }
.book-switch { display: flex; flex-wrap: wrap; max-width: 100%; margin: 0 0 12px; }
.book-rule { margin: 0 0 14px; max-width: 78ch; color: var(--copy); font-size: 14px; line-height: 1.45; }
.book-sankey { padding: 16px 4px 8px; }
.book-sankey .panel-head { padding: 0 12px; }
.book-sankey .sankey { width: 100%; height: auto; display: block; }
.book-page.layout { grid-template-columns: 360px minmax(0, 1fr); }
.book-page [data-tip] { cursor: crosshair; }
.book-col .book-metrics { width: 100%; table-layout: fixed; font-size: 12px; }
.book-col .book-metrics th,
.book-col .book-metrics td { padding: 6px 4px; text-align: right; }
.book-col .book-metrics th:first-child,
.book-col .book-metrics td:first-child { text-align: left; overflow-wrap: anywhere; }
.book-col .book-metrics th:nth-child(n + 2),
.book-col .book-metrics td:nth-child(n + 2) { width: 7.4em; white-space: nowrap; }
.book-page .rail .book-sectors { width: 100%; table-layout: fixed; }
.book-page .rail .book-sectors th:nth-child(n + 2),
.book-page .rail .book-sectors td:nth-child(n + 2) { width: 5.2em; white-space: nowrap; }
.book-page .rail .loadings li { grid-template-columns: 76px minmax(0, 1fr) 2.8em; gap: 6px; }
.book-page .rail .loadings .num,
.book-page .rail .factor-name { white-space: nowrap; }
.book-pies { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin: 0 0 12px; }
.book-pies.compose { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.book-pies.compose .book-pie li { display: flex; align-items: baseline; gap: 6px; }
.book-pies.compose .book-pie li span:nth-child(2) { flex: 0 1 auto; }
.book-pie { margin: 0; min-width: 0; }
.book-pie svg { width: 100%; height: auto; display: block; }
.book-pie figcaption { margin-top: 2px; }
.book-pie strong { display: block; font-size: 12px; font-weight: 600; }
.book-pie ul { list-style: none; margin: 4px 0 0; padding: 0; }
.book-pie li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; font-size: 11px; line-height: 1.35; }
.book-pie li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-pie path:hover,
.book-pie circle:hover { opacity: 0.72; }
.book-swatch { width: 8px; height: 8px; border-radius: 2px; }
.book-turn { width: 100%; table-layout: fixed; }
.book-turn th:first-child,
.book-turn td:first-child { width: 5.2em; white-space: nowrap; }
.book-turn th:nth-child(2),
.book-turn td:nth-child(2) { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.book-page .loadings li[data-tip]:hover { background: rgba(196, 137, 42, 0.1); }
.book-metrics { font-size: 13px; }
.book-metrics th:first-child, .book-metrics td:first-child { text-align: left; }
.book-metrics tr.gap td { padding-top: 14px; }

@media (max-width: 1100px) {
  .book-pies.compose { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .book-pies.compose { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .book-page.layout { grid-template-columns: 1fr; }
  .screen-bar { width: auto; max-width: none; margin-left: 16px; margin-right: 16px; }
}

body.home-page { background: #e6ded1; }

body.dash-page { --frame: 1180px; }

body.desk-page { --frame: 1586px; }

body.home-page .mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #e6ded1;
}

.home-band-hero { background: #f3eadc; }

.home-band-lift { background: #ede5d8; }

.home-band-trust { background: #e4d5bf; }

.home-trust { padding: 48px 0 40px; }

.home-trust h2 {
  max-width: 22em;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
  font-family: var(--headline);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  color: var(--ink);
}

.logo-marquee {
  overflow: hidden;
  margin-top: 28px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-drift 210s linear infinite;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }

.logo-set {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.logo-slot {
  flex: none;
  height: 56px;
  display: grid;
  place-items: center;
}

.logo-slot img {
  display: block;
  height: 42px;
  width: auto;
  filter: grayscale(1) sepia(0.28) brightness(0.5) contrast(1.12);
}

@keyframes logo-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.home-band-evidence { background: #ddd4c3; }

.home-band-close { background: #efe7d8; }

.home {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 28px 64px;
  color: var(--copy);
}

.home h2 {
  margin: 0;
  font-family: var(--headline);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.home h3 {
  margin: 0 0 8px;
  font-family: var(--headline);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.home .pill {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 18px;
  background: #1c1915;
  color: #f4efe4;
  font: 600 14px var(--sans);
  text-decoration: none;
}

.home .pill.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(28, 25, 21, 0.55);
}

.home-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.home-hero h2 { font-size: 68px; max-width: 11ch; }

.home-hero .lede {
  max-width: 42ch;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.home-reel { margin-top: 36px; }

.home-reel-frame {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-reel-frame::-webkit-scrollbar { display: none; }

.home-reel-track { display: flex; }

.home-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px 28px;
  align-items: start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 25, 21, 0.16);
}

.home-slide h3 { font-size: 26px; margin: 0; }

.home-slide p { margin: 0; font-size: 15px; line-height: 1.45; }

.home-reel-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.home-reel-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(28, 25, 21, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.home-reel-btn svg { width: 16px; height: 16px; }

.home-reel-btn:hover { background: rgba(28, 25, 21, 0.06); }

.home-reel-dots { display: flex; gap: 8px; }

.home-reel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 25, 21, 0.28);
  cursor: pointer;
}

.home-reel-dots button.is-on { background: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .home-reel-frame { scroll-behavior: auto; }
}

.home-decomp {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #f6f1e7;
}

.home-decomp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.home-decomp h3 { margin: 0; font-size: 22px; }

.home-decomp-head p,
.home-note,
.home-aside,
.home-footnote {
  margin: 0;
  color: var(--meta);
  font-size: 13px;
  line-height: 1.45;
}

.home-factors { list-style: none; margin: 0; padding: 0; }

.home-factors li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 3.2em;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink);
}

.home-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(28, 25, 21, 0.06);
}

.home-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 1px;
  height: 14px;
  background: rgba(28, 25, 21, 0.25);
}

.home-track i {
  position: absolute;
  top: 0;
  height: 8px;
  border-radius: 999px;
  background: #c4892a;
}

.home-track i.pos { left: 50%; }
.home-track i.neg { right: 50%; background: #8d5a3c; }

.home-factors .num {
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
}

.home-alpha {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 10px;
  margin-top: 14px;
}

.home-alpha div { border-radius: 14px; padding: 16px 16px 14px; }

.home-alpha p { margin: 0 0 8px; font-size: 13px; line-height: 1.35; }

.home-alpha strong {
  display: block;
  font-family: var(--headline);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.home-alpha .dark { background: #1c1915; color: #f4efe4; }
.home-alpha .dark strong { color: #fff; }
.home-alpha .light { background: #fbf7f0; color: var(--ink); }
.home-note { margin-top: 14px; }

.home-platform { margin-top: 0; }

.home-signals h2 { font-size: 48px; max-width: 18ch; margin-bottom: 28px; }

.home-signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.home-signal-grid article {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border-radius: 16px;
  background: #f4efe4;
}

.home-signal-grid h3 { font-size: 26px; }

.home-signal-grid p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }

.home-signal-grid .signal-mark {
  margin: auto 0 0;
  padding: 8px 10px 4px;
  border-radius: 12px;
  background: #fbf8f1;
}

.home-signal-grid .signal-mark svg { display: block; width: 100%; height: 96px; }

.home-platform-head { max-width: 36ch; margin-bottom: 36px; }

.home-platform-head h2 { font-size: 52px; }

.home-platform-head p { margin: 12px 0 0; font-size: 16px; line-height: 1.45; }

.home-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px 48px;
  align-items: center;
  margin: 0 0 56px;
}

.home-row.flip .home-shot { order: 2; }

.home-kicker {
  margin: 0 0 6px;
  color: var(--meta);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.home-copy h3 { font-size: 32px; }

.home-copy p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }

.home-copy ul { margin: 8px 0 0; padding-left: 18px; }

.home-copy li { margin: 0 0 8px; line-height: 1.4; }

.home-aside { margin-top: 14px !important; }

.home-shot {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f1e7;
  box-shadow: 0 1px 2px rgba(28, 25, 21, 0.08), 0 14px 32px rgba(28, 25, 21, 0.16);
  cursor: zoom-in;
  text-align: left;
}

.home-shot img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top center;
}

.home-full {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #1c1915;
  color: #f4efe4;
  font: 600 12px var(--sans);
}

.home-evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
  margin-top: 0;
  padding-top: 8px;
}

.home-evidence h2 { font-size: 48px; max-width: 12ch; }

.home-evidence-intro p { margin: 14px 0 0; font-size: 16px; line-height: 1.5; }

.home-evidence-intro .pill { margin-top: 22px; }

.home-table-wrap {
  padding: 8px 8px 14px;
  border-radius: 16px;
  background: #f6f1e7;
}

.home-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.home-table th,
.home-table td { padding: 12px 10px; text-align: left; }

.home-table th {
  color: var(--meta);
  font-size: 12px;
  font-weight: 500;
}

.home-table td { color: var(--ink); border-top: 1px solid rgba(28, 25, 21, 0.08); }

.home-table td:nth-child(n + 2) {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}

.home-footnote { margin: 12px 10px 0; font-size: 12px; letter-spacing: 0; line-height: 1.45; }

.home-asks { margin-top: 0; }

.home-asks h2 { font-size: 40px; margin-bottom: 18px; }

.home-ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.home-ask-grid article {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: #f6f1e7;
}

.home-ask-grid h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; }

.home-ask-grid p { margin: 0; font-size: 14px; line-height: 1.45; }

.home-ask-grid .wide { grid-column: 1 / -1; }

.home-close { margin: 0; text-align: center; }

.home-close p {
  margin: 0 0 8px;
  font-family: var(--headline);
  font-style: italic;
  color: var(--meta);
}

.home-close h2 { font-size: 64px; }

.home-close .home-cta { justify-content: center; }

.shot-modal[hidden] { display: none; }

.shot-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #f6f1e7 rgba(28, 25, 21, 0.45);
}

.shot-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 21, 0.78);
  cursor: pointer;
}

.shot-modal figure {
  position: relative;
  z-index: 1;
  display: flex;
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: visible;
  cursor: grab;
}

.shot-modal figure.is-panning { cursor: grabbing; }

.shot-modal img {
  display: block;
  flex: none;
  width: auto;
  max-width: none !important;
  height: auto;
  max-height: none !important;
  margin: 28px auto 96px;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(28, 25, 21, 0.45);
  pointer-events: none;
  image-rendering: auto;
  object-fit: contain;
}

.shot-zoom {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: #f6f1e7;
  box-shadow: 0 10px 28px rgba(28, 25, 21, 0.35);
}

.shot-zoom button {
  min-width: 40px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: #1c1915;
  font: 600 13px var(--sans);
}

.shot-zoom button:hover { background: rgba(28, 25, 21, 0.08); color: #1c1915; }

.shot-modal .modal-close {
  position: fixed;
  z-index: 2;
  top: 16px;
  right: 16px;
  background: #f6f1e7;
}

@media (max-width: 900px) {
  .home-hero,
  .home-row,
  .home-evidence,
  .home-ask-grid,
  .home-signal-grid,
  .home-slide,
  .home-alpha { grid-template-columns: 1fr; }
  .home-row.flip .home-shot { order: 0; }
  .home-hero h2,
  .home-platform-head h2,
  .home-evidence h2,
  .home-close h2 { font-size: 42px; }
  .home-shot img { height: 220px; }
}
