:root,
html[data-theme="paper"] {
  --paper: #f4f0e8;
  --ink: #14110e;
  --lede: #3b362f;
  --muted: #6f675d;
  --line: #ddd4c6;
  --rust: #8f3d22;
  --panel: #fffaf3;
  --panel-wash: #efeae1;
  --panel-page: #fff;
  --display: Fraunces, Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 86rem;
  --rule: 1px;
  --display-weight: 500;
  --tracking: -0.03em;
  --up: #1b7a4a;
  --down: #b42318;
  --hot: #9a4a12;
  --hot-wash: #f3d7a8;
}

html[data-theme="night"] {
  --paper: #12100e;
  --ink: #ece6da;
  --lede: #c9c0b3;
  --muted: #9a9185;
  --line: #2c2823;
  --rust: #e08a5d;
  --panel: #1b1814;
  --panel-wash: #161310;
  --panel-page: #fff;
  --display: Fraunces, Georgia, serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --max: 86rem;
  --up: #7dcea0;
  --down: #e07a6a;
  --hot: #f0b429;
  --hot-wash: #3d2e12;
  color-scheme: dark;
}

html[data-theme="broadsheet"] {
  --paper: #fbfaf6;
  --ink: #111;
  --lede: #222;
  --muted: #5c5c5c;
  --line: #111;
  --rust: #b42318;
  --hot: #9a3412;
  --hot-wash: #fde68a;
  --panel: #fff;
  --panel-wash: #f1efe8;
  --panel-page: #fff;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --max: 86rem;
  --rule: 2px;
  --display-weight: 600;
  --tracking: -0.04em;
}

html[data-theme="ledger"] {
  --paper: #e8edf1;
  --ink: #102033;
  --lede: #2a3c50;
  --muted: #5b6b7c;
  --line: #c5d0da;
  --rust: #0b6e56;
  --hot: #b45309;
  --hot-wash: #fde68a;
  --panel: #f7fafc;
  --panel-wash: #dde5ec;
  --panel-page: #fff;
  --display: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --max: 86rem;
  --rule: 1px;
  --display-weight: 500;
  --tracking: -0.045em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--rust); }

.masthead,
.frame {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.tape {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  white-space: nowrap;
  background: color-mix(in srgb, var(--paper) 82%, var(--ink));
}
html[data-theme="paper"] .tape,
html[data-theme="broadsheet"] .tape {
  background: color-mix(in srgb, var(--paper) 70%, #fff);
}
.tick {
  display: inline-flex;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}
.tick:hover { color: inherit; }
.tick-name { font-weight: 500; }
.tick.up .tick-chg { color: var(--up, #1b7a4a); }
.tick.down .tick-chg { color: var(--down, #b42318); }
.tick.is-off { display: none; }
.tape-empty { color: var(--muted); }
.tape-asof { color: var(--muted); margin-left: auto; }
.univ-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.univ-label select,
.js-universe {
  font: inherit;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.12rem 0.35rem;
  max-width: 9.5rem;
}

.desk {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr) 16.5rem;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  align-items: start;
  padding-bottom: 2rem;
}

.mast-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.55rem 1rem;
  margin: 0 0 0.7rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  margin: 0 auto 0 0;
  font-size: 0.78rem;
}
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.masthead {
  padding: 1rem 0 0.85rem;
}
.mast-copy h1,
.masthead h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: var(--tracking);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  max-width: none;
}
.wordmark {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wordmark a { text-decoration: none; }
.wordmark .plainly {
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}
.skins {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.7rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.skins .linkish { font-size: 0.72rem; }
.lede {
  margin: 0.35rem 0 0;
  max-width: 46rem;
  color: var(--lede);
  font-size: 0.95rem;
}
.asof {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.toolbar {
  padding: 0.4rem 0 0.15rem;
  border-top: var(--rule) solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(10px);
}
html[data-theme="night"] .toolbar {
  background: color-mix(in srgb, var(--paper) 86%, black);
}
.tool-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.28rem;
}
.tool-cluster .search { flex: 1; margin: 0; }
.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.45rem;
  margin: 0;
}
.tool-scope { margin: 0 0 0.28rem; }
.tool-row.quiet { color: var(--muted); }
.tool-row.is-hidden { display: none; }
.chips {
  flex-wrap: nowrap;
  gap: 0.28rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--lede);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-on {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--panel-wash);
}
.info-wrap { position: relative; flex: 0 0 auto; }
.info-btn {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1;
  cursor: pointer;
}
.info-btn:hover,
.info-btn[aria-expanded="true"] {
  color: var(--ink);
  border-color: var(--ink);
}
.info-pop {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 8;
  width: min(22rem, 70vw);
  padding: 0.55rem 0.65rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--lede);
  font-size: 0.75rem;
  line-height: 1.45;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 12%, transparent);
}
.info-pop[hidden] { display: none; }
.linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.86rem;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.linkish.is-on {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}
.dot { margin: 0 0.2rem; color: var(--muted); }

.day-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  overflow-x: visible;
  padding: 1.1rem 0 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.day-rail a { text-decoration: none; white-space: nowrap; }
.day-rail a:hover { color: var(--ink); }

.day { padding: 2.2rem 0 0.4rem; }
.day-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1.4rem;
}
.day-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}
.day-head h2 a { text-decoration: none; }
.day-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.co {
  padding: 1.15rem 0 0.35rem;
  border-top: 1px solid var(--line);
}
.co-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}
.px {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
}
.px.up { color: var(--up, #1b7a4a); }
.px.down { color: var(--down, #b42318); }
.co-head a { text-decoration: none; }
.co-meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.entries {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}
.entry {
  padding: 0.7rem 0 0.85rem;
}
.entry.is-hidden,
.co.is-hidden,
.day.is-hidden { display: none; }
.entry-kicker {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag { color: var(--rust); }
.tag.tag-hot {
  color: var(--hot);
  background: var(--hot-wash);
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.star {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.star.is-on { color: var(--rust); }
.entry-title {
  margin: 0.28rem 0 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.entry-desc {
  margin: 0.2rem 0 0;
  color: var(--lede);
}
.entry-src {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.entry-src a { margin-left: 0.55rem; }

.back {
  margin: 1.2rem 0 0;
  font-size: 0.86rem;
}
.back a { text-decoration: none; }
.empty {
  padding: 3rem 0;
  color: var(--muted);
}
.archive { padding: 2.5rem 0 1rem; }
.archive h2 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}
.archive p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.simple-page {
  padding: 0.4rem 0 1.5rem;
}
.prose { max-width: 42rem; }
.prose p {
  margin: 0 0 1rem;
  color: var(--lede);
}
.prose p.soft { color: var(--muted); }
.prose .disclaimer { margin: 0; }
.prose .disclaimer h2 { display: none; }
.about { max-width: 40rem; }
.about-kicker {
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-section {
  padding: 1.45rem 0;
  border-top: var(--rule, 1px) solid var(--line);
}
.about-section:first-of-type { border-top: 0; padding-top: 0; }
.about-section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.2rem;
  letter-spacing: var(--tracking);
  color: var(--ink);
}
.about-section p:last-child { margin-bottom: 0; }
.quirk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quirk-list li {
  position: relative;
  margin: 0;
  padding: 0.75rem 0 0.75rem 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--lede);
  line-height: 1.6;
}
.quirk-list li:first-child { border-top: 0; }
.quirk-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rust);
  font-family: var(--mono);
}
.contact-box {
  margin-top: 0.2rem;
  padding: 1.05rem 1.1rem;
  background: var(--panel-wash);
  border: 1px solid var(--line);
}
.contact-box p { margin: 0 0 0.65rem; }
.contact-box a {
  font-family: var(--mono);
  font-size: 0.92rem;
}
.site-foot {
  padding: 2.4rem 0 3.2rem;
  border-top: var(--rule, 1px) solid var(--line);
  margin-top: 1.5rem;
}
.disclaimer h2 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.05rem;
  letter-spacing: var(--tracking);
}
.disclaimer p {
  margin: 0 0 0.75rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}
.disclaimer p:last-child { margin-bottom: 0; }
.colophon-links {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.colophon {
  padding: 3rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.colophon p { margin: 0.2rem 0; }

.entries.lone { margin-top: 1.5rem; }
.entries.lone .entry { border-top: 1px solid var(--line); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.search {
  display: block;
  margin: 0;
}
.search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  outline: none;
}
.search input:focus { border-bottom-color: var(--ink); }
.search input::placeholder { color: var(--muted); }

body.panel-open { overflow: hidden; }
body.panel-open .desk {
  width: min(48rem, calc(45vw - 1.5rem));
  margin-left: 1rem;
  grid-template-columns: 1fr;
}
body.panel-open .rail { display: none; }
body.panel-open .masthead {
  width: min(48rem, calc(45vw - 1.5rem));
  margin-left: 1rem;
}

.panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(55vw, 46rem);
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.panel[hidden] { display: none; }
.panel-bar {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  flex: 1;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel iframe {
  flex: 1;
  border: 0;
  width: 100%;
  background: var(--panel-page);
}
.panel iframe[hidden] { display: none; }
.panel-fallback {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--panel-wash);
}
.panel-fallback[hidden] { display: none; }
.panel-fallback p { margin: 0; max-width: 22rem; }
.panel-foot {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--panel-wash);
}
.panel-foot p {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.panel-foot a {
  font-size: 0.86rem;
  font-weight: 500;
}
.panel-bar button {
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

html[data-theme="broadsheet"] .masthead {
  padding-top: 2.4rem;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 0;
}
html[data-theme="broadsheet"] .wordmark {
  letter-spacing: 0.28em;
  font-weight: 500;
}
html[data-theme="broadsheet"] .masthead h1,
html[data-theme="broadsheet"] .mast-copy h1 {
  max-width: none;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}
html[data-theme="broadsheet"] .toolbar {
  border-top: 1px solid var(--ink);
  background: var(--paper);
  backdrop-filter: none;
}
html[data-theme="broadsheet"] .day-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.35rem;
}
html[data-theme="broadsheet"] .co {
  border-top-color: color-mix(in srgb, var(--ink) 22%, var(--paper));
}
html[data-theme="broadsheet"] .entry-title {
  font-family: var(--display);
  font-size: 1.08rem;
}

html[data-theme="ledger"] body { font-size: 15px; }
html[data-theme="ledger"] .masthead { padding-top: 2.4rem; }
html[data-theme="ledger"] .masthead h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-variation-settings: normal;
  font-style: normal;
}
html[data-theme="ledger"] .wordmark .plainly {
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
html[data-theme="ledger"] .co-meta,
html[data-theme="ledger"] .asof,
html[data-theme="ledger"] .entry-kicker,
html[data-theme="ledger"] .entry-src {
  font-family: var(--mono);
  letter-spacing: 0;
  text-transform: none;
}
html[data-theme="ledger"] .entry { padding: 0.48rem 0 0.55rem; }
html[data-theme="ledger"] .co { padding: 0.8rem 0 0.2rem; }
html[data-theme="ledger"] .day { padding-top: 1.6rem; }
html[data-theme="ledger"] .search input {
  font-size: 0.95rem;
  border-bottom-width: 1px;
}
html[data-theme="ledger"] .toolbar {
  background: color-mix(in srgb, var(--paper) 80%, white);
}

html[data-theme="night"] .wordmark .plainly {
  font-variation-settings: "opsz" 72, "SOFT" 80;
}

.rail {
  position: sticky;
  top: 0.4rem;
  padding-top: 0.4rem;
  max-height: calc(100vh - 0.8rem);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}
.rail-scroll {
  flex: 1 1 auto;
  min-height: 8rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-right: 0.2rem;
}
.rail-block { margin: 0 0 1.4rem; }
.rail-block h2 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.rail-note {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.rail-link {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: none;
  padding: 0.18rem 0;
  font: inherit;
  font-size: 0.8rem;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.rail-link.is-on { box-shadow: inset 3px 0 0 var(--ink); padding-left: 0.45rem; }
.rail-link.tag-hot {
  background: var(--hot-wash);
  color: var(--hot);
  padding-left: 0.4rem;
  margin: 0.05rem 0;
  border-radius: 2px;
}
.rail-link.tag-hot.is-on { box-shadow: inset 3px 0 0 var(--hot); }
.rail-link.tag-hot .rail-count { color: var(--hot); }
.rail-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.quote-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.4rem;
}
.quote-head h2 { margin: 0; }
.quote-scroll {
  max-height: min(22rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.quote-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  padding: 0.15rem 0.3rem 0.3rem 0;
  position: sticky;
  top: 0;
  background: var(--paper);
}
.quote-table th:nth-child(n+2) { text-align: right; }
.quote-table td { padding: 0.22rem 0.3rem 0.22rem 0; }
.quote-table td.ltp,
.quote-table td.chg,
.quote-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.quote-table tr.up td.chg { color: var(--up, #1b7a4a); }
.quote-table tr.down td.chg { color: var(--down, #b42318); }
.quote-table a { text-decoration: none; }
.quote-empty {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.sortish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.sortish:hover { color: var(--ink); }
th[aria-sort="ascending"] .sortish::after { content: " ↑"; }
th[aria-sort="descending"] .sortish::after { content: " ↓"; }

.cal {
  margin: 0.55rem 0 0.85rem;
  padding: 0.7rem 0 0.85rem;
  border-top: var(--rule) solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cal h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.cal-note {
  margin: 0.25rem 0 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.cal-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}
.cal-month h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.cal-month table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.cal-month th {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding: 0 0 0.2rem;
  text-align: center;
}
.cal-month td {
  padding: 0.08rem;
  vertical-align: top;
}
.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.15rem;
  border: 0;
  background: none;
  padding: 0.12rem 0;
  font: inherit;
  color: var(--muted);
}
button.cal-day {
  cursor: pointer;
  border-radius: 3px;
}
button.cal-day:hover,
button.cal-day.is-on {
  background: color-mix(in srgb, var(--ink) 8%, var(--paper));
  color: var(--ink);
}
.cal-day.is-live { color: var(--ink); }
.cal-day.is-weekend { opacity: 0.4; }
.cal-num { font-size: 0.78rem; line-height: 1; }
.cal-cos {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.2;
}
.cal-detail {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}
.cal-detail p { margin: 0 0 0.35rem; }
.cal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}
.cal-tag {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
}
.cal-tag.is-hot {
  color: var(--hot);
  background: var(--hot-wash);
  border-color: transparent;
}
body[data-page="calendar"] .cal {
  margin: 0;
  padding: 0;
  border: 0;
}
body[data-page="calendar"] .cal > h2 { display: none; }
body[data-page="calendar"] .cal-note {
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
body[data-page="calendar"] .cal-day { min-height: 2.6rem; }
body[data-page="calendar"] .cal-months { gap: 1.6rem 2rem; }
.quote-card {
  margin: 1rem 0 0.4rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quote-ltp {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 500;
}
.quote-card.up .quote-ltp span { color: var(--up, #1b7a4a); }
.quote-card.down .quote-ltp span { color: var(--down, #b42318); }
.quote-meta, .quote-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.colophon {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .desk { grid-template-columns: 14rem minmax(0, 1fr); }
  .rail-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.25rem;
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
  }
}
@media (max-width: 900px) {
  .desk { grid-template-columns: 1fr; }
  .rail {
    position: static;
    max-height: none;
    overflow: visible;
    display: block;
  }
  .rail-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .rail-right { grid-template-columns: 1fr; }
  .rail-scroll {
    max-height: none;
    overflow: visible;
    min-height: 0;
  }
  .cal-months { grid-template-columns: 1fr; }
  .quote-scroll { max-height: 16rem; }
  body.panel-open .desk,
  body.panel-open .masthead {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
  }
  .panel { width: 100%; }
  .mast-top { flex-direction: column; align-items: flex-start; }
  .site-nav { margin: 0; }
  .skins { justify-content: flex-start; }
  .tape-asof { display: none; }
}

body[data-page="chart"] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body[data-page="chart"] .mast-copy h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}
body[data-page="chart"] .lede {
  max-width: none;
  font-size: 0.88rem;
}
body[data-page="chart"] .simple-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 0 0.6rem;
  width: min(var(--max), calc(100% - 2rem));
}
body[data-page="chart"] .simple-page main {
  flex: 1;
  display: flex;
  min-height: 0;
}
body[data-page="chart"] .site-foot .disclaimer { display: none; }
body[data-page="chart"] .site-foot {
  padding: 0.35rem 0 0.7rem;
  font-size: 0.72rem;
}

.chart-desk {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 22rem);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  width: 100%;
  border-top: var(--rule) solid var(--line);
}
.chart-plot,
.chart-panel {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chart-plot {
  padding: 0.65rem 0.9rem 0.45rem 0;
  border-right: 1px solid var(--line);
}
.chart-panel {
  padding: 0.65rem 0 0.45rem 1rem;
  overflow: hidden;
}
.chart-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chart-ind {
  position: relative;
  flex: 0 0 7.4rem;
  min-height: 6.8rem;
  border-top: 1px solid var(--line);
}
.chart-ind-legend {
  position: absolute;
  top: 0.2rem;
  left: 0;
  z-index: 2;
  margin: 0;
  display: flex;
  gap: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.chart-ind-all::before,
.chart-ind-mat::before {
  content: "";
  display: inline-block;
  margin-right: 0.32rem;
  vertical-align: middle;
}
.chart-ind-all::before {
  width: 0.5rem;
  height: 0.5rem;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
}
.chart-ind-mat::before {
  width: 0.75rem;
  height: 2px;
  background: var(--hot);
}
.chart-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.45rem;
}
.chart-pick select {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.1rem 1.4rem 0.15rem 0;
  max-width: 14rem;
}
.chart-readout {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: var(--muted);
}
.chart-px { color: var(--ink); font-weight: 500; }
.chart-chg.up { color: var(--up); }
.chart-chg.down { color: var(--down); }
.chart-stage {
  position: relative;
  flex: 1;
  min-height: 16rem;
  height: 100%;
}
.chart-indicators {
  height: 100%;
  min-height: 6.8rem;
}
.chart-stage svg,
.chart-indicators svg,
.chart-stage table {
  display: block;
}
.chart-panel-tools {
  margin: 0 0 0.35rem;
  min-height: 1rem;
}
.chart-caption {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: var(--muted);
}
.chart-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.55rem;
}
.chart-panel-head h2 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.chart-panel-head p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.chart-filings {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
}
.chart-filing {
  padding: 0.55rem 0.2rem 0.65rem 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.chart-filing.is-on {
  box-shadow: inset 3px 0 0 var(--ink);
  padding-left: 0.55rem;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.chart-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chart-kicker time { color: var(--muted); letter-spacing: 0; text-transform: none; }
.chart-title {
  margin: 0.22rem 0 0;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.chart-src { margin: 0.25rem 0 0; font-size: 0.72rem; }
.chart-empty {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  body[data-page="chart"] .simple-page { width: calc(100% - 2rem); }
  .chart-desk {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(18rem, 1.2fr) minmax(12rem, 0.8fr);
  }
  .chart-plot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.55rem 0 0.7rem;
  }
  .chart-panel {
    padding: 0.7rem 0 0.4rem;
  }
}


.build-dirty {
  margin: 0.6rem 0 0;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--down, #b3261e);
  border-radius: 3px;
  color: var(--down, #b3261e);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   P6 — structure, taxonomy navigation, front page.
   Everything below uses the theme tokens above, so Paper / Night / Broadsheet /
   Ledger all carry. No literal colours.
   ========================================================================== */

/* --- C1: the toolbar is one row ---------------------------------------- */
.toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel-wash);
  border-top: var(--rule) solid var(--line);
  border-bottom: var(--rule) solid var(--line);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.toolbar .search {
  display: flex;
  align-items: center;
  flex: 1 1 14rem;
  max-width: 22rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.25rem 0.55rem;
}
.toolbar .search input {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.79rem;
  width: 100%;
  outline: none;
}
.pillrow { display: flex; gap: 0.28rem; }
.pill {
  border: 1px solid var(--line);
  background: none;
  color: var(--lede);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font: inherit;
  font-size: 0.73rem;
  cursor: pointer;
}
.pill.is-on {
  border-color: var(--ink);
  background: var(--panel-wash);
  color: var(--ink);
}
.tool-sep { width: 1px; height: 1.1rem; background: var(--line); }
.picker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.16rem 0.45rem;
  max-width: 15rem;
}
.picker-key {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.picker select {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.77rem;
  max-width: 11rem;
  outline: none;
  cursor: pointer;
}
.tool-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* --- C2: one rail, cut short ------------------------------------------- */
.rail-block h2,
.rail-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.rail-link {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.24rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.79rem;
  text-decoration: none;
  cursor: pointer;
}
.rail-link.is-on { color: var(--rust); }
.rail-link.is-muted span:first-child { color: var(--muted); font-style: italic; }
.rail-count { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.rail-more {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.74rem;
  color: var(--rust);
  text-decoration: none;
}
.rail-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.75rem 0.8rem;
}
.rail-line {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.16rem 0;
  cursor: pointer;
}
.rail-line.is-on { color: var(--rust); }
.rail-foot p { margin: 0; font-size: 0.78rem; color: var(--lede); line-height: 1.5; }

/* --- C3: thirty-day grid ------------------------------------------------ */
.daygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.daycell {
  height: 22px;
  display: block;
  background: color-mix(in srgb, var(--rust) calc(var(--shade, 0) * 62%), var(--panel-wash));
  text-decoration: none;
}
.daycell.is-current { background: var(--rust); }
.daycell:hover { outline: 1px solid var(--ink); }

/* --- C4: the filing title is the hero ---------------------------------- */
.entry, .tl-body {
  border-left: 1px solid var(--line);
  padding-left: 0.85rem;
}
.entry.is-material, .tl-body.is-material { border-left: 2px solid var(--rust); }
.entry-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}
.entry-desc {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--lede);
}
.entry-src {
  margin: 0.35rem 0 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}
.entry-src .source { color: var(--rust); text-decoration: none; }
.co-unclassified { font-style: italic; }
.desk-note {
  margin: 1.6rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 40rem;
}

/* --- D3: front page ----------------------------------------------------- */
body[data-page="front"] .simple-page { max-width: 74rem; margin: 0 auto; }
.front-head { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.front-head-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.front-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.9rem, 4vw, 2.66rem);
  line-height: 1.04;
  letter-spacing: var(--tracking);
}
.front-counts { margin: 0 0 0.3rem; font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.front-stand { margin: 0.7rem 0 0; max-width: 42rem; font-size: 0.95rem; line-height: 1.6; color: var(--lede); }
.front-caveat { margin: 0.45rem 0 0; max-width: 42rem; font-size: 0.79rem; line-height: 1.55; color: var(--muted); }

.lead {
  border-top: 2px solid var(--rust);
  padding-top: 1rem;
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 2.4rem;
}
.lead-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.45rem; }
.tag-quiet { background: none; border: 1px solid var(--line); color: var(--muted); }
.lead-meta, .also-co p {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  display: flex;
  gap: 0.7rem;
}
.lead h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.71rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead h2 a { text-decoration: none; }
.lead-title { margin: 0 0 0.5rem; font-size: 1.14rem; line-height: 1.42; color: var(--ink); }
.lead-desc { margin: 0; font-size: 0.91rem; line-height: 1.62; color: var(--lede); max-width: 38rem; }
.lead-src {
  margin: 0.7rem 0 0;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.lead-src .source { color: var(--rust); text-decoration: none; }
.lead-why { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.why-key {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}
.lead-why ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.42rem; }
.lead-why li { font-size: 0.83rem; line-height: 1.45; color: var(--lede); }

.secondaries {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}
.secondary { border-top: 1px solid var(--ink); padding-top: 0.75rem; }
.secondary h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 1.18rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.secondary h3 a { text-decoration: none; }
.secondary-title { margin: 0 0 0.4rem; font-size: 0.97rem; line-height: 1.4; }
.secondary-why { margin: 0; font-family: var(--mono); font-size: 0.67rem; color: var(--rust); line-height: 1.5; }

.alsoday { margin-top: 1.9rem; }
.alsoday-key {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
.alsolist { list-style: none; margin: 0; padding: 0; }
.alsolist li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) 13rem;
  gap: 1.3rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.also-co a { font-family: var(--display); font-size: 1.03rem; font-weight: var(--display-weight); text-decoration: none; }
.also-co p { margin: 0.05rem 0 0; font-size: 0.65rem; }
.also-tag {
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hot);
}
.also-filing p { margin: 0.1rem 0 0; font-size: 0.93rem; line-height: 1.4; }
.also-why { margin: 0; font-family: var(--mono); font-size: 0.67rem; color: var(--muted); line-height: 1.45; }
.front-foot {
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.front-all { font-family: var(--display); font-size: 1.24rem; font-weight: var(--display-weight); text-decoration: none; color: var(--rust); }
.front-foot p { margin: 0; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }

/* --- B1: navigator ------------------------------------------------------ */
body[data-page="sectors"] .simple-page { max-width: 84rem; margin: 0 auto; }
.nav-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.tier-key {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-key span { color: var(--line); }
.tier-list { display: flex; flex-direction: column; max-height: 30rem; overflow-y: auto; }
.tier-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0.45rem;
  text-decoration: none;
  font-size: 0.8rem;
  border-left: 2px solid transparent;
}
.tier-list a:hover { background: var(--panel-wash); border-left-color: var(--rust); }
.tier-count { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.nav-unclassified {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  max-width: 46rem;
}
.nav-unclassified p { margin: 0; font-size: 0.83rem; line-height: 1.55; color: var(--lede); }
.nav-indices, .nav-tags { margin-top: 1.9rem; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.nav-indices-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.nav-indices-head h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.28rem; letter-spacing: -0.02em; }
.nav-indices-head p { margin: 0; font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.indexcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; }
.indexcard {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
}
.indexcard-key { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); }
.indexcard-n { font-family: var(--display); font-size: 1.19rem; font-weight: var(--display-weight); }
.indexcard-note { font-size: 0.74rem; color: var(--lede); }
.tagcloud { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tagchip {
  border: 1px solid var(--line);
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--lede);
}
.tagchip.is-material { border-color: var(--rust); color: var(--rust); }
.tagchip span { font-family: var(--mono); font-size: 0.66rem; color: var(--muted); }

/* --- C5: company page --------------------------------------------------- */
body[data-page="company"] .simple-page { max-width: 66rem; margin: 0 auto; }
.crumbs { display: flex; gap: 0.5rem; align-items: baseline; font-size: 0.76rem; color: var(--muted); margin: 0 0 1.1rem; }
.crumbs a { text-decoration: none; }
.crumb-sep { color: var(--line); }
.co-identity { border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
.co-identity h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: clamp(1.6rem, 3.4vw, 2.28rem);
  line-height: 1.08;
  letter-spacing: var(--tracking);
}
.co-ids { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 0.55rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.co-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.65rem; }
.chip { border: 1px solid var(--line); padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.7rem; color: var(--lede); }
.chip-own, .chip-index { border-color: var(--rust); color: var(--rust); }
.chip-muted { color: var(--muted); font-style: italic; }
.co-note { margin: 0.6rem 0 0; font-size: 0.79rem; color: var(--muted); }
.block-key {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-chart { margin-top: 1.5rem; }
.co-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.co-chart-read { margin: 0; font-family: var(--mono); font-size: 0.72rem; color: var(--lede); }
.co-chart-note { margin: 0.5rem 0 0; font-family: var(--mono); font-size: 0.66rem; color: var(--muted); }
.co-strips { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.rhythm-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.rbar { flex: 1; height: var(--h, 0%); background: var(--line); min-height: 0; }
.rbar.is-material { background: var(--rust); }
.rhythm-note { margin: 0.4rem 0 0; font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }
.whatfiles { border: 1px solid var(--line); background: var(--panel); padding: 0.75rem 0.85rem; }
.whatfiles-list { display: flex; flex-direction: column; gap: 0.3rem; }
.whatfiles-list a { display: flex; justify-content: space-between; font-size: 0.78rem; text-decoration: none; }
.whatfiles-list a.is-quiet { color: var(--muted); }
.whatfiles-list a span:last-child { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.co-filings { margin-top: 1.8rem; }
.co-filings-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; margin-bottom: 1.1rem; }
.co-filings-head h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.24rem; letter-spacing: -0.02em; }
.co-filings-head p { margin: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.35rem; }
.tl-row { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.1rem; }
.tl-date { margin: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); padding-top: 0.15rem; }

/* --- C6: reading drawer ------------------------------------------------- */
.panel-read { flex: 1; overflow-y: auto; padding: 1.4rem 1.5rem 1rem; }
.panel-lead {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 34rem;
}
.panel-desc { margin: 0 0 0.85rem; font-size: 0.95rem; line-height: 1.62; color: var(--ink); max-width: 36rem; }
.panel-why { border: 1px solid var(--line); background: var(--panel-wash); padding: 0.85rem 1rem; margin-top: 1.2rem; max-width: 36rem; }
.panel-why-key {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-why-body { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--lede); }
.panel-why-body .mono { font-family: var(--mono); font-size: 0.78rem; }
.panel-why-body .accent { color: var(--rust); }
.panel-pdf { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); max-width: 36rem; }
.panel-pdf a { font-size: 0.9rem; color: var(--rust); text-decoration: none; }
.panel-pdf-note { margin: 0.1rem 0 0; font-family: var(--mono); font-size: 0.65rem; color: var(--muted); }
#panel-frame { width: 100%; height: 60vh; margin-top: 1.2rem; border: 1px solid var(--line); }

@media (max-width: 68rem) {
  .lead, .co-strips { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .lead-why { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 0.8rem; }
  .secondaries { grid-template-columns: minmax(0, 1fr); }
  .nav-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alsolist li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
}
@media (max-width: 44rem) {
  .nav-tiers { grid-template-columns: minmax(0, 1fr); }
  .toolbar { gap: 0.5rem; }
  .picker { max-width: 100%; }
}

.materiallist { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.8rem; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.buildtable { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.buildtable th, .buildtable td { text-align: left; padding: 0.35rem 0.6rem 0.35rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.buildtable th { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.buildtable td.mono { font-family: var(--mono); font-size: 0.74rem; }
.buildtable tr.is-dirty td { background: color-mix(in srgb, var(--down) 8%, transparent); }
.dirty-flag { color: var(--down); font-size: 0.68rem; }
.stagechip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0.02rem 0.4rem; margin: 0 0.2rem 0.2rem 0; font-family: var(--mono); font-size: 0.63rem; color: var(--muted); }
.stagechip.is-failed { border-color: var(--down); color: var(--down); }
