@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(/fonts/PublicSans-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

/* On the business. One publication with On the record (otrecord.news, site/styles.css): the same
   paper, ink, type scale, 1320px page and rules; see DESIGN.md. Only the masthead differs (bizhead.css).
   Green and red mean up and down and nothing else; footnote blue is for sources.

   This file: tokens and page shell first (everything below "Shared" is used by every section), then
   section blocks, each under its own comment header. Sections append their own rules at the end;
   they don't restyle the shared classes. */

/* =====================================================================================
   Shared: tokens
   ===================================================================================== */
:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --cite: #1F48B8;
  --quiet: #6B6B6B;
  --rail: #E9E9E6;
  --rule: var(--rail);           /* older name for --rail, still used by section rules */
  --faint: #CFCFCA;
  --wash: #F4F4F1;
  --hl: #FFE45C;
  --up: #0B6B2E;
  --up-bg: #E3F4E8;
  --down: #B00020;
  --down-bg: #FBE5E8;
  --k0: #1D3557; --k1: #2A9D8F; --k2: #E9A23B; --k3: #6D597A; --k4: #4A90C2; --k5: #E76F51; --k6: #9AA5B1;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: 32px;
  --sec-gap: 56px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; }
h3 { font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.wrap.wide { max-width: 1480px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 70; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }
.sub { color: var(--quiet); }
.note { font-size: 14px; color: var(--quiet); }
.src { margin: 16px 0 0; font-size: 14px; color: var(--quiet); max-width: 90ch; }
.src a { color: var(--cite); }
.more { font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; }
.more:hover { text-decoration-thickness: 2px; }

/* =====================================================================================
   Shared: page head (On the record's .p-head) and breadcrumbs (.lb-crumb)
   ===================================================================================== */
.ph { padding: 56px 0 48px; }
.ph h1 { font-size: clamp(44px, 7vw, 104px); line-height: .95; letter-spacing: -.05em; font-weight: 800; max-width: 14ch; }
.ph .lede { margin: 28px 0 0; font-size: 22px; line-height: 1.4; color: var(--ink); max-width: 44ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; font-size: 14px; color: var(--quiet); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* =====================================================================================
   Shared: sections. Each opens with a 5px ink rule over a 32px heading, on white.
   .band once meant a grey band; it is plain white now (only Sources and the tape use wash).
   ===================================================================================== */
.blk { padding: 0 0 var(--sec-gap); }
.band { background: none; }
.sh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; padding-top: 16px; border-top: 5px solid var(--ink); }
.sh h2 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.sh-sub { margin: 6px 0 0; color: var(--quiet); font-size: 16px; max-width: 70ch; }
.sh-more { flex: none; margin-top: 8px; font-size: 15px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; }
.sh-more:hover { text-decoration-thickness: 2px; }

/* Grids */
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; }
.split-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; }
.g2 > *, .g3 > *, .g4 > *, .split > *, .split-r > * { min-width: 0; }

/* =====================================================================================
   Shared: facts row, in On the record's .tally manner: the number first, its label under it.
   (The markup keeps dt before dd; column-reverse puts the figure on top.)
   ===================================================================================== */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px; margin: 0 0 8px; }
.facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 10px 0 18px; border-top: 2px solid var(--ink); min-width: 0; }
.facts dt { margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--quiet); }
.facts dd { margin: 0; font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.facts dd .chg { font-size: 15px; letter-spacing: 0; margin-left: 6px; }

/* Up / down: colored text in tables, square pills elsewhere (.pct) */
.chg { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.pill { display: inline-block; padding: 2px 6px; border-radius: 0; font-size: 13px; font-weight: 800; line-height: 1.3; background: var(--wash); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.up { background: var(--up-bg); color: var(--up); }
.pill.down { background: var(--down-bg); color: var(--down); }
.tk { font-weight: 800; font-size: 13px; letter-spacing: .01em; }

/* =====================================================================================
   Shared: tables (On the record's .lb-table for rankings, table.fin for numbers).
   Heads stick just below the masthead (--bh-h, set by bizhead.css). On phones, columns marked
   .c2 (shell.table cols third item) are hidden instead of the table scrolling sideways.
   ===================================================================================== */
.tbl-wrap { margin: 0; }
/* A table wider than its column (biz.js marks it .tbl-x) scrolls inside its own box; its head can't stick */
.tbl-wrap.tbl-x { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tbl-x .tbl thead th { position: static; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; font-variant-numeric: tabular-nums; border-top: 2px solid var(--ink); }
.tbl caption { text-align: left; font-size: 14px; color: var(--quiet); padding-bottom: 8px; }
.tbl th { text-align: left; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--quiet); padding: 9px 12px 8px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.tbl thead th { position: sticky; top: var(--bh-h, 100px); z-index: 2; background: var(--paper); transition: top .22s var(--ease); }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th[aria-sort] { color: var(--ink); }
.tbl th[aria-sort]::after { content: " ↓"; }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; }
.tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rail); vertical-align: top; }
.tbl .n { text-align: right; white-space: nowrap; }
.tbl th.n { text-align: right; }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
.tbl tbody tr:hover > td { background: var(--wash); }
.tbl a { text-decoration: none; font-weight: 600; }
.tbl a:hover { text-decoration: underline; }
.tbl .sm { display: block; font-size: 13px; color: var(--quiet); font-weight: 400; }
.tbl .rk { width: 1%; font-weight: 800; color: var(--ink); }
.tbl td.up { color: var(--up); font-weight: 600; }
.tbl td.down { color: var(--down); font-weight: 600; }
.tbl.dense td { padding-top: 9px; padding-bottom: 9px; }
.more-rows { margin-top: 16px; }

/* =====================================================================================
   Shared: controls (On the record's .seg, .pick, .btn, inputs). Square, ink borders.
   ===================================================================================== */
.ctrl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 20px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: 0; }
.seg button { font: 600 14px/1.2 var(--sans); padding: 6px 11px; background: var(--paper); color: var(--ink); border: 0; border-right: 1px solid var(--ink); border-radius: 0; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--wash); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pick { display: inline-grid; gap: 3px; font-size: 13px; color: var(--quiet); }
.pick select, .pick input, .fld { font: 400 15px/1.3 var(--sans); color: var(--ink); padding: 6px 8px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); min-width: 0; }
.fld { min-width: 260px; }
.pick select:focus, .pick input:focus, .fld:focus { outline: 3px solid var(--cite); outline-offset: 0; }
.btn { display: inline-block; font: 800 16px/1.2 var(--sans); padding: 14px 22px; border: 0; border-radius: 0; background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cite); }
.btn.alt { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); padding: 9px 14px; font-size: 15px; }
.btn.alt:hover { background: var(--ink); color: var(--paper); }

/* =====================================================================================
   Shared: feeds, dated lists of events (On the record's .events)
   ===================================================================================== */
.feed { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.feed > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--rail); }
.feed .when { font-size: 14px; color: var(--quiet); padding-top: 2px; font-variant-numeric: tabular-nums; }
.feed .what { min-width: 0; }
.feed .what a { font-weight: 600; text-decoration: none; }
.feed .what a:hover { text-decoration: underline; }
.feed .what .x { display: block; font-size: 14px; color: var(--quiet); margin-top: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 0 6px; border: 1px solid var(--faint); border-radius: 0; color: var(--quiet); margin-right: 6px; vertical-align: 1px; white-space: nowrap; }

/* =====================================================================================
   Shared: ranked list, compact (On the record's .mvx-list rows; the rank in ink)
   ===================================================================================== */
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; border-top: 2px solid var(--ink); }
.rank li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rail); counter-increment: r; }
.rank li::before { content: counter(r); color: var(--ink); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.rank a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank a:hover { text-decoration: underline; }
.rank .v { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank .x { grid-column: 2 / -1; font-size: 13px; color: var(--quiet); margin-top: -4px; }

/* Bars inside tables and lists (On the record's .lb-bar) */
.bar { display: block; height: 6px; background: var(--rail); margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); }
.bar.up > i { background: var(--up); }
.bar.down > i { background: var(--down); }

/* Directory of sections (On the record's .lb-hub) */
.dir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.dir a { display: block; padding: 16px 0 28px; border-top: 5px solid var(--ink); text-decoration: none; }
.dir a b { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.dir a span { display: block; color: var(--quiet); font-size: 15px; margin-top: 6px; }
.dir a .ct { color: var(--ink); font-weight: 600; font-size: 14px; margin-top: 10px; }
.dir a:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* =====================================================================================
   Shared: market map (home and markets). Square; the tip has an ink border, no shadow.
   ===================================================================================== */
.mmap-wrap { position: relative; }
.mmap { position: relative; width: 100%; height: 620px; background: var(--ink); border-radius: 0; overflow: hidden; }
.mmap .sec { position: absolute; }
.mmap .sec-l { position: absolute; left: 0; top: 0; right: 0; height: 20px; padding: 2px 6px; font-size: 12px; font-weight: 800; color: #fff; background: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.mmap .t { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; text-decoration: none; border: 1px solid #000; overflow: hidden; line-height: 1.15; }
.mmap .t b { font-weight: 800; }
.mmap .t span { font-size: 0.8em; opacity: .92; }
.mmap .t:hover, .mmap .t:focus-visible { outline: 2px solid #fff; outline-offset: -2px; z-index: 2; }
.mmap-legend { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--quiet); margin-top: 10px; flex-wrap: wrap; }
.mmap-legend i { display: inline-block; width: 34px; height: 14px; }
.mmap-legend span { margin: 0 8px 0 2px; }
.mmap-tip { position: fixed; pointer-events: none; z-index: 40; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; padding: 10px 12px; font-size: 14px; min-width: 200px; font-variant-numeric: tabular-nums; }
.mmap-tip b { display: block; font-size: 15px; }
.mmap-empty { color: #ccc; padding: 40px; }

/* Index strip (markets), in the tape's manner: 13px 800 name, price, a square change pill */
.ixs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 24px; border-top: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.ixs a { display: block; min-width: 0; padding: 12px 0 14px; text-decoration: none; border-bottom: 1px solid var(--rail); }
.ixs .nm { display: block; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ixs .px { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.ixs .chg { display: inline-block; margin-top: 6px; padding: 2px 6px; font-size: 13px; font-weight: 800; }
.ixs .chg.up { background: var(--up-bg); }
.ixs .chg.down { background: var(--down-bg); }
.ixs a:hover .nm { text-decoration: underline; }

/* Headlines (home) */
.heads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.heads li { border-top: 1px solid var(--rail); }
.heads li:nth-child(-n+3) { border-top: 2px solid var(--ink); }
.heads a { display: block; padding: 16px 0 20px; text-decoration: none; }
.heads b { display: block; font-size: 19px; line-height: 1.3; font-weight: 800; }
.heads .k { display: block; font-size: 13px; color: var(--quiet); margin-bottom: 6px; }
.heads a:hover b { text-decoration: underline; }
.heads img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; background: var(--wash); }

/* Calendar (reuses /calendar.js, given more room) */
.biz-cal .cal-week { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Line charts drawn by biz.js (On the record's .chart: 2px ink line, quiet labels, rail grid) */
.spark { display: block; width: 100%; height: 56px; }
.lc { width: 100%; height: 260px; display: block; }
.lc text { font: 12px var(--sans); fill: var(--quiet); }
.lc .ln { fill: none; stroke: var(--ink); stroke-width: 2; }
.lc .ar { fill: rgba(0,0,0,.05); }
.lc .gr { stroke: var(--rail); }

/* Pager */
.pager { display: flex; gap: 12px; align-items: center; margin-top: 20px; font-size: 15px; }

/* =====================================================================================
   Shared: footer (On the record's .foot)
   ===================================================================================== */
.bf { background: var(--ink); color: var(--paper); padding: 56px 0 64px; margin-top: 16px; font-size: 15px; }
.bf .wrap { display: grid; grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr)); gap: 48px; }
.bf-id img { width: 174px; height: auto; margin-bottom: 24px; }
.bf-id p { margin: 0 0 12px; max-width: 52ch; }
.bf .small { color: #A8A8A8; font-size: 13px; }
.bf ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.bf a { text-decoration: none; }
.bf-id a { text-decoration: underline; }
.bf a:hover { text-decoration: underline; }
.bf :focus-visible { outline-color: #8FA8FF; }

/* =====================================================================================
   Shared: narrower screens (On the record's breakpoints: 1099, 960, 640)
   ===================================================================================== */
@media (max-width: 1200px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  /* Below the sticky-rail width, wide tables scroll inside their own box rather than the page */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .tbl thead th { position: static; }
}
@media (max-width: 960px) {
  .split, .split-r, .g2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .g3, .dir { grid-template-columns: minmax(0, 1fr); }
  .heads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .bf-id { grid-column: 1 / -1; }
  .mmap { height: 520px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; --sec-gap: 48px; }
  .ph { padding: 32px 0 32px; }
  .ph .lede { margin-top: 20px; font-size: 19px; }
  .sh { flex-direction: column; gap: 8px; }
  .sh h2 { font-size: 26px; }
  .sh-more { margin-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .facts dd { font-size: 30px; }
  .facts dt { font-size: 14px; }
  .tbl { font-size: 14px; }
  .tbl .c2 { display: none; }
  .tbl td { padding-top: 10px; padding-bottom: 10px; }
  .feed > li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ixs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .heads, .g4 { grid-template-columns: minmax(0, 1fr); }
  .bf { padding: 40px 0 48px; }
  .bf .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .bf ul:last-child { grid-column: 1 / -1; }
  .mmap { height: 440px; }
  .fld { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* =====================================================================================
   Sections
   ===================================================================================== */

/* ---------- Filings, deals, insiders ---------- */
.fl-chips { gap: 8px; }
.fl-chip { font: 600 14px var(--sans); padding: 6px 11px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; }
.fl-chip .sub { font-weight: 400; margin-left: 2px; }
.fl-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fl-chip[aria-pressed="true"] .sub { color: #ccc; }
.fl-day + .fl-day { margin-top: 36px; }
.fl-dh { margin-bottom: 10px; }
.fl-dh .sub { font-weight: 400; font-size: 15px; margin-left: 6px; }
.feed .what .x a.fl-src { font-weight: 400; color: var(--cite); }

/* ---------- Economy and Banks sections ---------- */
.eco-nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 40px; }
.eco-nav .wrap { display: flex; gap: 4px 22px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
.eco-nav a { text-decoration: none; color: var(--quiet); font-weight: 600; }
.eco-nav a:hover { color: var(--ink); text-decoration: underline; }
.eco-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.eco-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; }
.eco-tile { border-top: 2px solid var(--ink); padding: 14px 0 22px; }
.eco-tile h3 { font-size: 15px; font-weight: 600; }
.eco-v { margin: 6px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.eco-v .chg { font-size: 15px; font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.eco-v.sm { font-size: 22px; margin-bottom: 8px; }
.eco-when { margin: 4px 0 8px; font-size: 13px; color: var(--quiet); font-weight: 400; letter-spacing: 0; }
.eco-v .eco-when { font-size: 14px; margin-left: 6px; }
.eco-note { display: block; font-size: 13px; color: var(--quiet); margin-top: 6px; }
.eco-src { margin: 6px 0 0; font-size: 12px; }
.eco-src a { color: var(--cite); }
.eco-card { min-width: 0; margin-bottom: 16px; }
.eco-h3 { margin: 32px 0 12px; }
.split > div > .eco-h3:first-child { margin-top: 0; }
.yc { width: 100%; height: auto; display: block; }
.yc text { font: 12px var(--sans); fill: var(--quiet); }
.yc .gr { stroke: var(--rule); }
.yc polyline { fill: none; stroke-width: 2; }
.yc .yc0 { stroke: var(--ink); stroke-width: 2.5; }
.yc .yc0d { fill: var(--ink); }
.yc .yc1 { stroke: var(--cite); stroke-dasharray: 6 4; }
.yc .yc2 { stroke: var(--faint); }
.yc-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--quiet); margin: 8px 0 0; }
.yc-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: 6px; }
.yc-legend i.yc0 { border-color: var(--ink); }
.yc-legend i.yc1 { border-color: var(--cite); border-top-style: dashed; }
.yc-legend i.yc2 { border-color: var(--faint); }
.eco-years { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; margin: 0 0 20px; }
.tbl .eco-sp { width: 120px; height: 28px; }
.bk-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.bk-states a { display: block; padding: 10px 0 12px; border-top: 1px solid var(--rule); text-decoration: none; }
.bk-states b { display: block; font-weight: 600; }
.bk-states span { font-size: 13px; color: var(--quiet); }
.bk-states a:hover b { text-decoration: underline; }

/* ---------- Calendar section (sections/calendar.py) ---------- */
.biz-cal { --rail: var(--rule); }
.biz-cal .cal { margin-bottom: 0; }
.cal-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cal-jump a { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--faint); border-radius: 0; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cal-jump a:hover { border-color: var(--ink); }
.cal-jump span { font-weight: 400; color: var(--quiet); font-size: 13px; }
.cal-small { list-style: none; margin: 10px 0 0; padding: 0; columns: 4 240px; column-gap: 32px; font-size: 14px; }
.cal-small li { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-small a { text-decoration: none; }

/* Logos and photos in front of company and people names (shell._decorate) */
.lg { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; vertical-align: -6px; flex: none;
      border: 1px solid var(--faint); border-radius: 0; background: #fff; overflow: hidden; font: 800 9px/1 var(--sans); color: var(--quiet); letter-spacing: 0; text-decoration: none; }
.lg img { width: 18px; height: 18px; object-fit: contain; }
.lg.dark { background: #000; border-color: #000; }
.lg.mono { background: var(--wash); }
.lg.pp { border-radius: 0; }
.lg.pp img { width: 100%; height: 100%; object-fit: cover; }
a:hover .lg { text-decoration: none; }
.rank a, .feed .what a, .tbl a { text-decoration: none; }

/* ---------- Advisers section (sections/advisers.py) ---------- */
.adv-q { margin: 8px 0 0; font-size: 15px; line-height: 1.55; max-width: 92ch; }
.adv-ul { margin: 8px 0 24px; padding-left: 20px; max-width: 92ch; }
.adv-ul li { margin: 4px 0; }
.adv-h3 { margin-top: 36px; }
.adv-item { padding: 22px 0; border-top: 1px solid var(--rule); max-width: 92ch; }
.adv-item h3 { margin-bottom: 8px; }
.adv-bro p { margin: 0 0 12px; white-space: pre-line; }
.adv-more summary { cursor: pointer; font-weight: 600; color: var(--cite); margin: 4px 0 12px; }
.adv-more[open] summary { margin-bottom: 16px; }

/* ---------- Page with the price rail (shell.page, sections/_rail.py) ----------
   A main column and a 300px rail on the right. Inside the main column, sections drop their own
   page width and gutters; tinted bands keep a little padding so text doesn't touch the tint. */
.pg { margin: 0 auto; }
.pg.has-rail { max-width: 1320px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 56px; padding: 0 var(--gut); }
.pg.has-rail > main { min-width: 0; }
.pg.has-rail > main .wrap { max-width: none; padding: 0; }
.pg.has-rail > main .band > .wrap { padding: 0; }
.pg.has-rail > main .ph { padding-top: 44px; }
.prail { position: sticky; top: var(--bh-h, 100px); align-self: start; max-height: calc(100vh - var(--bh-h, 100px)); transition: top .22s var(--ease), max-height .22s var(--ease); overflow-y: auto; padding: 20px 0 24px; scrollbar-width: thin; font-size: 14px; }
.rl-b { padding: 14px 0 16px; border-top: 3px solid var(--ink); }
.rl-b + .rl-b { margin-top: 10px; }
.rl-h { font-size: 15px; font-weight: 800; margin: 0 0 8px; letter-spacing: 0; }
.rl-h a { text-decoration: none; }
.rl-h a:hover { text-decoration: underline; }
.rl-src { margin: 8px 0 0; font-size: 12px; color: var(--quiet); line-height: 1.4; }
.rl-src a { color: var(--cite); text-decoration: none; }
.rl-src a:hover { text-decoration: underline; }
/* price tabs: radio inputs, labels as tabs */
.rl-px { padding-top: 0; }
.rt-r { position: absolute; opacity: 0; pointer-events: none; }
.rt-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.rt-tabs label { padding: 9px 8px 8px; font-weight: 600; font-size: 13px; color: var(--quiet); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.rt-tabs label:first-child { padding-left: 0; }
.rt-tabs label:hover { color: var(--ink); }
.rt-p { display: none; }
#rt-stocks:checked ~ .rt-tabs label[for="rt-stocks"], #rt-rates:checked ~ .rt-tabs label[for="rt-rates"], #rt-fx:checked ~ .rt-tabs label[for="rt-fx"] { color: var(--ink); border-bottom-color: var(--ink); }
#rt-stocks:checked ~ .rt-p[data-tab="stocks"], #rt-rates:checked ~ .rt-p[data-tab="rates"], #rt-fx:checked ~ .rt-p[data-tab="fx"] { display: block; }
.rt-r:focus-visible ~ .rt-tabs { outline: 2px solid var(--cite); outline-offset: 2px; }
.rt { width: 100%; border-collapse: collapse; }
.rt th, .rt td { padding: 7px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; white-space: nowrap; }
.rt th { text-align: left; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.rt td { text-align: right; padding-left: 6px; }
.rt .px { font-weight: 600; }
.rt .chg-slot { width: 1%; }
.rt .pill, .rstrip .pill { font-size: 12px; padding: 1px 6px; min-width: 56px; text-align: center; }
.rs { display: inline-block; width: 48px; height: 16px; vertical-align: middle; }
.rs polyline { fill: none; stroke: var(--quiet); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
/* breadth */
.br { display: flex; height: 8px; border-radius: 0; overflow: hidden; background: var(--down); }
.br .u { background: var(--up); }
.br .f { background: var(--faint); }
.br-l { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 14px; }
/* gainers and losers */
.mv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.mv2 ol { list-style: none; margin: 0; padding: 0; }
.mv2 li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.mv2 a { font-weight: 800; font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.mv2 a:hover { text-decoration: underline; }
.mv2 .chg { font-size: 13px; }
/* coming up */
.ev { list-style: none; margin: 0; padding: 0; }
.ev li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.ev-d { font-size: 12px; font-weight: 600; color: var(--quiet); padding-top: 2px; }
.ev a { font-weight: 600; text-decoration: none; }
.ev a:hover { text-decoration: underline; }
.ev li > div { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-x { display: block; font-size: 12px; font-weight: 400; color: var(--quiet); }
/* the one-line strip of prices on narrow screens */
.rstrip { display: none; }
@media (max-width: 1099px) {
  .pg.has-rail { display: block; padding: 0; }
  .pg.has-rail > main .wrap { max-width: 1320px; padding: 0 var(--gut); }
  .pg.has-rail > main .band > .wrap { padding: 0 var(--gut); }
  .prail { position: static; max-height: none; overflow: visible; padding: 8px var(--gut) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .rl-b + .rl-b { margin-top: 0; }
  .prail .rl-px { grid-column: 1 / -1; }
  .rstrip { display: block; border-bottom: 1px solid var(--rule); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: var(--paper); }
  .rstrip::-webkit-scrollbar { display: none; }
  .rstrip ul { display: flex; list-style: none; margin: 0; padding: 0 var(--gut); gap: 0; width: max-content; }
  .rstrip li { padding: 9px 16px 9px 0; margin-right: 16px; border-right: 1px solid var(--rule); font-size: 13px; white-space: nowrap; }
  .rstrip li:last-child { border-right: 0; }
  .rstrip .nm { font-weight: 600; color: var(--quiet); }
  .rstrip .px { font-weight: 800; }
  .rstrip .pill { min-width: 0; }
}
@media (max-width: 640px) {
  .prail { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Home (sections/home.py) ---------- */
.hm-lead { padding-top: 28px; }
.dline { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--quiet); }
.dline b { color: var(--ink); font-weight: 800; }
.lead-g { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; }
.lead { border-top: 4px solid var(--ink); padding-top: 14px; }
.lead .k, .heads2 .k { display: block; font-size: 13px; color: var(--quiet); margin: 0 0 6px; }
.lead-h { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.lead-h a { text-decoration: none; }
.lead-h a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.lead-d { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #2b2b2b; max-width: 60ch; }
.lead-img { width: 100%; height: auto; aspect-ratio: 32 / 15; object-fit: cover; margin-bottom: 14px; background: var(--wash); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.heads2 .chips { margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 1px solid var(--rule); border-radius: 6px; font-size: 13px; white-space: nowrap; }
.chip a { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; }
.chip .lg { width: 18px; height: 18px; margin-right: 5px; vertical-align: 0; }
.chip .lg img { width: 14px; height: 14px; }
.heads2 { list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--ink); }
.heads2 li { padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
.heads2 li > a { display: block; font-size: 17px; line-height: 1.3; font-weight: 800; text-decoration: none; margin-bottom: 4px; }
.heads2 li > a:hover { text-decoration: underline; }
.heads2 .k { margin: 0; }
.db-more { margin: 10px 0 0; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.db-more > a { font-weight: 600; }
.db-src { font-size: 12px; color: var(--quiet); }
.db-src a, a.cite { color: var(--cite); font-weight: 400; text-decoration: none; }
.db-src a:hover, a.cite:hover { text-decoration: underline; }
/* market wrap */
.hm-map { height: 420px; }
.hm-tables { margin-top: 32px; gap: 40px; }
.lh { font-size: 16px; margin: 0 0 6px; }
.mt { width: 100%; border-collapse: collapse; font-size: 14px; }
.mt th, .mt td { padding: 6px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; white-space: nowrap; }
.mt thead th { font-size: 12px; color: var(--quiet); font-weight: 600; border-bottom: 2px solid var(--ink); padding-top: 0; }
.mt tbody th { font-weight: 600; max-width: 0; width: 46%; overflow: hidden; text-overflow: ellipsis; }
.mt tbody th a { text-decoration: none; }
.mt tbody th a:hover { text-decoration: underline; }
.mt .n { text-align: right; padding-left: 10px; }
.mt .sb { width: 22%; padding-left: 10px; }
.mt .sb .bar { margin: 0; }
/* this week */
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.wk-h { font-size: 15px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.wk-h span { font-weight: 400; color: var(--quiet); }
.wk { list-style: none; margin: 0; padding: 0; }
.wk li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk li a { font-weight: 600; text-decoration: none; }
.wk li a:hover { text-decoration: underline; }
.wk .x { display: block; font-size: 12px; color: var(--quiet); }
.wk .tag { font-size: 11px; padding: 0 5px; }
.wk-more a { font-weight: 400 !important; color: var(--quiet); font-size: 13px; }
/* the dataset grid */
.dbg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.db { border-top: 3px solid var(--ink); padding-top: 10px; min-width: 0; display: flex; flex-direction: column; }
.db-h { font-size: 17px; margin: 0; }
.db-h a { text-decoration: none; }
.db-h a:hover { text-decoration: underline; }
.db-fig { margin: 6px 0 8px; font-size: 13px; color: var(--quiet); line-height: 1.4; }
.db-fig b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.dl { list-style: none; margin: 0; padding: 0; flex: 1; }
.dl li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.dl li:first-child { border-top: 1px solid var(--rule); }
.dl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dl .nm a { text-decoration: none; }
.dl .nm a:hover { text-decoration: underline; }
.dl .nm .x { font-weight: 400; color: var(--quiet); font-size: 13px; }
.dl .nm .x a { font-weight: 600; color: var(--ink); }
.dl .nm .x a.cite { color: var(--cite); font-weight: 400; }
.dl .v { flex: none; font-weight: 600; white-space: nowrap; }
.dl.eco .v .chg { font-size: 12px; margin-left: 4px; }
.db .lg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; }
.db .lg img { width: 14px; height: 14px; }
.nf-h { font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.nf-l { font-size: 19px; max-width: 60ch; }
@media (max-width: 1300px) { .dbg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } .week > div:nth-child(n+4) { display: none; } }
@media (max-width: 1000px) { .lead-g { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 640px) {
  .lead-h { font-size: 30px; }
  .lead-d { font-size: 16px; }
  .dbg, .week { grid-template-columns: minmax(0, 1fr); }
  .week > div:nth-child(n+3) { display: none; }
  .hm-map { height: 360px; }
  .hm-tables { gap: 28px; }
}
.also-h { font-size: 13px; font-weight: 800; margin: 28px 0 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.heads3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.heads3 li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.heads3 a { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; }
.heads3 a:hover { text-decoration: underline; }
.heads3 .k { display: block; font-size: 12px; color: var(--quiet); margin-top: 3px; }
@media (max-width: 640px) { .heads3 { grid-template-columns: minmax(0, 1fr); } }
.also-sub { margin: 2px 0 0; font-size: 13px; color: var(--quiet); }
.heads3 .k .lg { width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px; }
.heads3 .k .lg img { width: 12px; height: 12px; }
.heads3 .k a { display: inline; font-size: 12px; font-weight: 600; color: var(--ink); }
.lead-g { grid-template-areas: "lead side" "rel side"; grid-template-rows: auto 1fr; align-items: start; }
.lead { grid-area: lead; }
.lead-side { grid-area: side; }
.lead-rel { grid-area: rel; }
.lead-rel .also-h { margin-top: 4px; }
@media (max-width: 1000px) { .lead-g { grid-template-areas: "lead" "side" "rel"; } }
/* Home sections in otrecord.news's manner: a 5px rule over a 32px heading (styles.css .heads, .today h2) */
.hm { padding: 48px 0; }
.blk + .blk.hm { border-top: 0; }
.hm .sh { border-top: 5px solid var(--ink); padding-top: 16px; margin-bottom: 22px; }
.hm .sh h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.03em; }
.hm.band { padding-top: 40px; }
.lead, .heads2 { border-top-width: 5px; }
.heads2 .k { margin: 0 0 3px; }
.heads2 li > a { margin-bottom: 0; }
.heads2 .chips { margin-top: 8px; }
@media (max-width: 640px) { .hm .sh h2 { font-size: 26px; } }

/* =====================================================================================
   Biotech and squeeze watch (sections/biotech.py, squeeze.py). In tables marked .bt, text cells
   wrap at spaces and break a word only when it can't fit; columns marked .bt-w (drug names and
   trial titles) may break anywhere. With their .c2 columns hidden they fit a 390px phone instead
   of scrolling sideways; on phones a trial title under the drug shows two lines.
   ===================================================================================== */
.tbl.bt td:not(.n) { overflow-wrap: break-word; }
.tbl.bt td.bt-w { overflow-wrap: anywhere; }
.tbl.bt th.n { white-space: normal; }
@media (max-width: 640px) {
  .tbl.bt td.bt-w .sm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
}

/* =====================================================================================
   Analysts (sections/analysts.py). The buy/hold/sell mini-bar next to a consensus rating: one
   block with a three-color CSS gradient (buy green, hold grey, sell red), not three child nodes.
   ===================================================================================== */
.an-bar { display: block; width: 64px; height: 6px; background: var(--rail); margin-bottom: 2px; }
