@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 record Business.
   The main site's paper and ink, given room: a black masthead, a 1480px page, and tables set in
   tabular figures. Green and red mean up and down and nothing else; footnote blue is for sources. */
:root {
  --paper: #FFFFFF;
  --ink: #000000;
  --cite: #1F48B8;
  --quiet: #5E5E5A;
  --rule: #E2E2DD;
  --faint: #CBCBC5;
  --wash: #F3F3EF;
  --up: #08773F;
  --down: #BD2A2A;
  --up-bg: #E3F3E9;
  --down-bg: #F8E4E2;
  --hl: #FFE45C;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
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; letter-spacing: -0.01em; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--gut); }
.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: 50; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Page head ---------- */
.ph { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.ph h1 { font-size: 56px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.ph .lede { margin: 18px 0 0; font-size: 20px; line-height: 1.5; color: #2b2b2b; max-width: 68ch; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--quiet); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.blk { padding: 56px 0; }
.blk + .blk { border-top: 1px solid var(--rule); }
.band { background: var(--wash); }
.band + .blk, .blk + .band { border-top: 0; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.sh h2 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.sh-sub { margin: 8px 0 0; color: var(--quiet); font-size: 16px; max-width: 72ch; }
.sh-more { flex: none; font-weight: 600; font-size: 15px; }
h3 { font-size: 19px; font-weight: 800; line-height: 1.25; }
.sub { color: var(--quiet); }
.src { margin: 16px 0 0; font-size: 13px; color: var(--quiet); max-width: 90ch; }
.src a { color: var(--cite); }
.note { font-size: 14px; color: var(--quiet); }

/* 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: 40px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.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; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--quiet); }
.facts dd { margin: 4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.facts dd .chg { font-size: 16px; font-weight: 600; margin-left: 6px; }

/* Up / down */
.chg { white-space: nowrap; font-weight: 600; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--wash); white-space: nowrap; }
.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; }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.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; color: var(--quiet); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; position: sticky; top: 0; background: var(--paper); }
.band .tbl th { background: var(--wash); }
.tbl th[data-sort] { cursor: pointer; user-select: none; }
.tbl th[data-sort]:hover { color: var(--ink); }
.tbl th[aria-sort]::after { content: " ↓"; color: var(--ink); }
.tbl th[aria-sort="ascending"]::after { content: " ↑"; }
.tbl td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); 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 tr:hover td { background: rgba(0,0,0,.018); }
.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 { color: var(--quiet); width: 1%; }
.tbl.dense td { padding-top: 7px; padding-bottom: 7px; }
.more-rows { margin-top: 16px; }

/* Controls */
.ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 6px; overflow: hidden; }
.seg button { font: 600 14px var(--sans); padding: 7px 14px; background: var(--paper); color: var(--ink); border: 0; border-left: 1px solid var(--ink); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--quiet); }
.pick select, .pick input, .fld { font: 400 15px var(--sans); color: var(--ink); padding: 7px 10px; border: 1px solid var(--faint); border-radius: 6px; background: var(--paper); }
.fld { min-width: 260px; }
.btn { font: 600 15px var(--sans); padding: 9px 18px; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; display: inline-block; }
.btn.alt { background: var(--paper); color: var(--ink); }

/* Feeds: dated lists of events */
.feed { list-style: none; margin: 0; padding: 0; }
.feed > li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.feed > li:first-child { border-top: 2px solid var(--ink); }
.feed .when { font-size: 14px; color: var(--quiet); padding-top: 1px; }
.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; padding: 1px 7px; border: 1px solid var(--faint); border-radius: 4px; color: #333; margin-right: 6px; vertical-align: 1px; white-space: nowrap; }

/* Ranked list (compact) */
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.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(--rule); counter-increment: r; }
.rank li::before { content: counter(r); color: var(--quiet); font-size: 14px; }
.rank li:first-child { border-top: 2px solid var(--ink); }
.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; }
.rank .x { grid-column: 2 / -1; font-size: 13px; color: var(--quiet); margin-top: -4px; }

/* Bars inside tables and lists */
.bar { display: block; height: 6px; background: var(--wash); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bar.up > i { background: var(--up); }
.bar.down > i { background: var(--down); }

/* Directory of sections (home) */
.dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 40px; }
.dir a { display: block; padding: 18px 0 20px; border-top: 2px solid var(--ink); text-decoration: none; }
.dir a b { display: block; font-size: 19px; font-weight: 800; }
.dir a span { display: block; color: var(--quiet); font-size: 15px; margin-top: 4px; }
.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: 2px; }

/* ---------- Market map (home and markets): sectors as blocks, companies sized by value ---------- */
.mmap-wrap { position: relative; }
.mmap { position: relative; width: 100%; height: 620px; background: var(--ink); border-radius: 4px; 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-radius: 6px; padding: 10px 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); min-width: 200px; }
.mmap-tip b { display: block; font-size: 15px; }
.mmap-empty { color: #ccc; padding: 40px; }

/* Index strip (home, markets) */
.ixs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ixs a { display: block; padding: 14px 16px 16px 0; text-decoration: none; border-bottom: 1px solid var(--rule); }
.ixs a + a { padding-left: 16px; border-left: 1px solid var(--rule); }
.ixs .nm { display: block; font-size: 14px; font-weight: 600; }
.ixs .px { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.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(--rule); }
.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; border-radius: 3px; 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 (economy) */
.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(--rule); }

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

/* ---------- Footer ---------- */
.bf { background: var(--ink); color: var(--paper); padding: 64px 0 72px; margin-top: 40px; font-size: 15px; }
.bf .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.bf-id img { width: 120px; margin-bottom: 20px; }
.bf-id p { margin: 0; color: #bdbdb7; max-width: 56ch; }
.bf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bf ul { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.bf a { text-decoration: none; }
.bf a:hover { text-decoration: underline; }
.bf :focus-visible { outline-color: #8FA8FF; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1200px) {
  .ixs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ixs a:nth-child(4n+1) { padding-left: 0; border-left: 0; }
  .dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  :root { --gut: 24px; }
  .split, .split-r, .g2 { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .heads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph h1 { font-size: 42px; }
  .bf .wrap { grid-template-columns: 1fr; gap: 40px; }
  .mmap { height: 520px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  body { font-size: 15px; }
  .ph { padding: 36px 0 28px; }
  .ph h1 { font-size: 34px; }
  .ph .lede { font-size: 17px; }
  .blk { padding: 40px 0; }
  .sh { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sh h2 { font-size: 24px; }
  .ixs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ixs a:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .ixs a:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .dir, .heads, .g4 { grid-template-columns: minmax(0, 1fr); }
  .facts dd { font-size: 22px; }
  .bf-cols { grid-template-columns: 1fr 1fr; }
  .mmap { height: 440px; }
  .fld { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Filings, deals, insiders ---------- */
.fl-chips { gap: 8px; }
.fl-chip { font: 600 14px var(--sans); padding: 6px 12px; border: 1px solid var(--faint); border-radius: 99px; 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-bottom: 1px solid var(--rule); }
.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); }
.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: 6px; 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(--rule); border-radius: 5px; background: #fff; overflow: hidden; font: 800 9px/1 var(--sans); color: #555; 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: 50%; }
.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 { max-width: 1480px; margin: 0 auto; }
.pg.has-rail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 40px; 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 28px; }
.pg.has-rail > main .ph { padding-top: 44px; }
.prail { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); 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: #6b6b66; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
/* breadth */
.br { display: flex; height: 8px; border-radius: 4px; 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: 1480px; 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; } }
