/* ═══════════════════════════════════════════════════════════════════════
   THE REDESIGN OF THE THREE MARKET PAGES

   The market overview, the sector scoreboard and the options screener.
   Linked after public/css/redesign.css (the shared core: roles, motion,
   shared pieces), in place of a page's own <style> block, only while the
   redesign's release row is lit for the reader (lib/page-redesign.js):
   <html data-rd="home|scoreboard|screener">.

   IT STYLES THE CLASSES THE PAGES ALREADY WRITE. The markup, the wording and
   the scripts are each page's own file, shared by both designs, so every
   class a page or its script emits has its rule here or in the core.
   ═══════════════════════════════════════════════════════════════════════ */

/* How far down the page the reader is: a hairline under the header, where
   the browser can drive an animation from the scroll position itself. */
@supports (animation-timeline: scroll()) {
  html[data-rd="home"] body::before, html[data-rd="scoreboard"] body::before {
    content: ""; position: fixed; z-index: 101; left: 0; right: 0; top: 0; height: 2px;
    background: var(--accent); transform-origin: 0 50%; transform: scaleX(0);
    animation: rd-grow linear both; animation-timeline: scroll(root);
    pointer-events: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   THE MARKET OVERVIEW  (public/home-overview.html, public/js/home-overview.js)
   ═══════════════════════════════════════════════════════════════════════ */
.hm-shell {
  width: 100%; max-width: var(--page-measure); margin: 0 auto;
  padding: 0 max(var(--page-gutter), env(safe-area-inset-right, 0px)) 40px max(var(--page-gutter), env(safe-area-inset-left, 0px));
}
.hm-shell > * { min-width: 0; }
.hm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the head: the page's name and the subscription beside it, close under the
   site's header (30px, owner, 16 Nov 2026), so the figures come early. Its
   parts hang from that one line: the name stands where the scoreboard's and
   the screener's stand (owner, 16 Nov 2026), its eyebrow 30px under the
   site's header and the name 10px under the eyebrow, whatever the height of
   the subscription beside it. */
.hm-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 30px 0 20px;
}
.hm-head > div { animation: rd-rise .7s var(--rd-ease) backwards; }
.hm-eyebrow { margin: 0 0 10px; color: var(--accent); font: 600 12px/1 var(--rd-mono); letter-spacing: .14em; text-transform: uppercase; }
/* The page's name, at the size of the page's own section headings (owner,
   15 Nov 2026): the same figures as .rd-sec-head h2. */
.hm-head h1 {
  margin: 0; font: var(--display-weight, 700) clamp(26px, 2.8vw, 36px)/1.12 var(--rd-display);
  letter-spacing: -.02em; text-wrap: balance; text-transform: uppercase;
}
.hm-subscribe {
  display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 18px; text-decoration: none;
  border: 1px solid var(--rd-ring); border-radius: var(--rd-r); background: var(--rd-surface);
  transition: border-color .2s, transform .25s var(--rd-ease), box-shadow .25s;
  animation: rd-rise .7s .12s var(--rd-ease) backwards;
}
.hm-subscribe:hover { border-color: var(--rd-ink-2); transform: translateY(-2px); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--rd-ink) 55%, transparent); }
.hm-subscribe-copy { display: grid; gap: 3px; }
.hm-subscribe-copy strong { font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.hm-subscribe-copy span { color: var(--rd-ink-2); font-size: 12.5px; }
.hm-subscribe-action {
  font: 600 13px/1 var(--rd-sans); white-space: nowrap; padding: 10px 16px; border-radius: var(--rd-pill);
  background: var(--rd-ink); color: var(--rd-plane);
}
/* THE STATUS LINE HAS NO ROW OF ITS OWN (owner, 16 Nov 2026: no "Last
   refreshed" under the page's name). It is out of the page's flow at every
   width and in every state, so nothing moves when what it says changes.
   While the page has its data and nothing has failed, what it says is when
   that was refreshed, which the most-active card says at its own foot: it
   is not drawn (it stays in the page for a screen reader). The page has
   its data when a ticker is chosen (the news heading names it: every page
   with a quote of its own in the table has one) or when the list's
   universe is named: either one, so the line stays undrawn in the options
   view and under an empty list too. (A page with its data but neither
   mark, an empty list from an unnamed universe, has nowhere else that says
   when it was refreshed: there the line is drawn.)
   Otherwise it is what the page has to tell the reader, and is drawn: that
   the overview is loading or being built (after a moment, so an ordinary
   load never flashes it), or at once that it could not be had or could not
   be refreshed. Drawn, it is one line in the head's own foot: every
   sentence the page writes there fits it from 681px up. */
.hm-status {
  position: absolute; margin: -19px 0 0; max-width: calc(100% - 2 * var(--page-gutter));
  color: var(--rd-ink-2); font: 12px/18px var(--rd-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: rd-fade .3s 1.2s backwards;
}
.hm-status[data-tone="error"] { color: var(--bad); animation: none; }
/* A phone is narrower than the page's sentences, and a failure is never cut
   short: drawn, the line is a note at the window's foot, where it runs to
   as many lines as it needs and still stands in nobody's row. It takes no
   tap (what is under it is still pressed through it), and while it says
   that something failed the page ends with room enough to scroll its last
   lines clear of it.
   Only where the rule that undraws the line is understood: a browser that
   does not know :has() draws the line always, and for it the line stays
   the one in the head's foot, not a note that never leaves. */
@supports selector(:has(*)) {
  @media (max-width: 680px) {
    .hm-status {
      position: fixed; z-index: 30; left: var(--page-gutter); right: var(--page-gutter); bottom: max(12px, env(safe-area-inset-bottom, 0px));
      margin: 0; max-width: none; padding: 10px 14px; white-space: normal; overflow: visible; text-overflow: clip; pointer-events: none;
      background: var(--rd-surface); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm);
    }
    html[data-rd="home"]:has(.hm-status[data-tone="error"]) { padding-bottom: 96px; }
  }
}
.hm-shell:has(#hm-news-symbol:not([hidden])) > .hm-status:not([data-tone="error"]),
.hm-shell:has(#hm-universe:not([hidden])) > .hm-status:not([data-tone="error"]) {
  width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; animation: none;
}

/* The quote strip (public/js/quote-strip-view.js, seated by the redesign's
   script while the strip's own row is lit too): five delayed quotes in a
   row of their own under the page's head, edge to edge with the cards
   under them (three to a row on a phone). A tile is read top to bottom: the symbol and
   the day's change in percent, the ticker's name, the price large, the change in
   dollars and the volume.

   ITS ROOM IS KEPT FROM THE FIRST PAINT. The strip is seated by a script
   that runs after the page is first drawn, and its answer lands later
   still. The server's flag for the strip marks <html data-rd-qs> before
   anything is drawn, and until the strip stands there the cards are held
   down by its height and the space under it (below, with the rail's room):
   seating it, and then filling it, moves nothing. The room is kept only
   while the page waits for the redesign's script: started, the script ends
   the wait whether or not a strip was seated. */
.hm-shell > .qs { position: relative; margin: 0 0 20px; min-height: 129px; animation: none; }
/* It arrives once, when its first answer is drawn; a refresh redraws it still. */
.hm-shell > .qs:not(:empty) { animation: rd-rise .6s var(--rd-ease) backwards; }
/* Every tile, side by side across the row: five to it (which is also what the price is sized by, below). */
html[data-rd="home"] .qs-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); --qs-row: 5; }
/* A price the answer did not carry: a dash, never a figure. */
html[data-rd="home"] .qs-px:empty::before { content: "\2014"; color: var(--rd-muted); }
/* A name, a change or a volume the answer did not carry is drawn blank, and
   its line keeps its height (an empty line would otherwise fold to nothing,
   and that tile would be shorter than its neighbours and than its room). */
html[data-rd="home"] .qs-name:empty::before, html[data-rd="home"] .qs-amt:empty::before, html[data-rd="home"] .qs-vol:empty::before { content: "\200b"; }
/* THE OVERVIEW'S TILE also says the day's change in dollars and the volume
   (owner, 16 Nov 2026), and is set as the page sets a sector's tile: the
   symbol with the day's change in percent at its far side, the ticker's
   name under them (owner, same day: in a quieter ink, cut with an ellipsis
   where it is longer than the tile), the price large, then the change in
   dollars and the volume, each on a line of its own. Where a tile is wide enough (from 901px) those two share the
   last line, the volume at its far side, and the strip is no taller than
   it was. Each part is placed by its name, in two columns: the first takes
   what the second leaves. Nothing of this reaches the other two strips,
   whose tiles are written without the two further parts. */
html[data-rd="home"] .qs-list > .qs-tile { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
html[data-rd="home"] .qs-sym { grid-area: 1 / 1; }
html[data-rd="home"] .qs-chg { grid-area: 1 / 2; text-align: right; }
html[data-rd="home"] .qs-name { grid-area: 2 / 1 / auto / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-rd="home"] .qs-px { grid-area: 3 / 1 / auto / -1; }
html[data-rd="home"] .qs-amt { grid-area: 4 / 1 / auto / -1; }
html[data-rd="home"] .qs-vol { grid-area: 5 / 1 / auto / -1; }
/* The strip's note (where its figures stand, and as of when). It is NOT
   DRAWN while the page's own quotes are on screen (owner, 16 Nov 2026):
   the cards under it say where those stand, and a tile says its own time
   when pointed at. It stays in the page for a screen reader. It IS drawn
   while the page has none of its own quotes up for more than a moment
   (still loading, building its list on a cold start, or refused): the
   strip's would be the only figures on the page, with no word on where
   they stand. Drawn, it is a line under the strip that takes no room, so
   its coming and going moves nothing, and it waits a moment before it
   shows, so an ordinary load never flashes it. (A browser that cannot read
   the rule that hides it draws it always.) */
html[data-rd="home"] .qs-note {
  position: absolute; top: calc(100% + 1px); right: 0; margin: 0; line-height: 16px; white-space: nowrap;
  animation: rd-fade .3s 1.2s backwards;
}
html[data-rd="home"] .hm-shell:has(#hm-active-rows tr[data-symbol]) .qs:not(.qs-off) .qs-note {
  top: auto; right: auto; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0; animation: none;
}
/* Refused, the strip keeps its room and says so inside its frame: that
   does not move the page either. */
html[data-rd="home"] .qs-off .qs-note { position: static; white-space: normal; text-align: center; animation: none; }
.hm-shell > .qs.qs-off { display: flex; align-items: center; justify-content: center; border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm); }

/* The strip is drawn by the redesign's script, after the first paint: its
   room is kept above the cards until it stands there, so the cards do not
   move when it arrives. That room is the strip's height and the 20px under
   it (the status line before the cards is out of the flow and has no
   margin to swallow): 149px, and 131px where a tile is four lines. Kept while the mark of the
   overview's own inline script is on <html> (no script, no mark, no gap):
   the redesign's script takes it off when it has started, and it comes off
   by itself if that script never does. The strip's own tag adds a second
   mark, which says only that a strip is coming. The sums hold only while
   the page lays its parts out as blocks, one under the other: that is what
   lets these margins swallow the status line's. */
html[data-rd-wait][data-rd-qs] .hm-status + .hm-grid { margin-top: 149px; }
/* A wide tile seats the change in dollars and the volume on one line: a
   tile of four lines, and the strip's room and the room kept for it are
   what four lines take. The tile's layout and both rooms are said in one
   block, so that no width, a zoomed window's included, has the one without
   the others. */
@media (min-width: 901px) {
  html[data-rd="home"] .qs-amt { grid-area: 4 / 1; }
  html[data-rd="home"] .qs-vol { grid-area: 4 / 2; text-align: right; }
  .hm-shell > .qs { min-height: 111px; }
  html[data-rd-wait][data-rd-qs] .hm-status + .hm-grid { margin-top: 131px; }
}
/* A phone has no room for five tiles in a row: three to a row, and a last
   row's tiles share its width (no empty place is left in it). Two rows of
   tiles, the hairline between them and the frame's two. */
@media (max-width: 680px) {
  html[data-rd="home"] .qs-list { display: flex; flex-wrap: wrap; --qs-row: 3; }
  html[data-rd="home"] .qs-tile { flex: 1 1 30%; min-width: 0; }
  .hm-shell > .qs { min-height: 235px; }
  html[data-rd-wait][data-rd-qs] .hm-status + .hm-grid { margin-top: 255px; }
}
@media (max-width: 359px) {
  .hm-shell > .qs { min-height: 223px; }
  html[data-rd-wait][data-rd-qs] .hm-status + .hm-grid { margin-top: 243px; }
}

/* THE SECTION RAIL sits in the head, level with the page's name and right
   after it (owner, 16 Nov 2026), in a seat the redesign's script makes.
   Where the head has the room (1400px and wider: the name is set in
   capitals, and is that much wider) that is the head's one
   row: the name, the rail, the subscription at the far side. Narrower, the
   rail has a row of its own in the head, under the name and the
   subscription; on a phone it follows the name. The seat is one pill high
   at every width and the rail never wraps (it is swiped sideways where it
   is too long), so the head's height does not depend on what is in it.
   Its place among the head's parts is said here, by `order`, at every
   width (the script puts the page's own order after it, for a keyboard):
   the name, the seat, the subscription. In the head's one row the three
   stand equally far apart (owner, 16 Nov 2026): the seat has no margin of
   its own, and the head shares out what room is left on either side of it.
   The pills are set in capitals. */
.hm-head > .rd-rail-seat { display: block; order: 3; flex: 1 1 100%; min-width: 0; height: 30px; margin: -14px 0 0; animation: rd-fade .5s backwards; }
.hm-head > .hm-subscribe { order: 2; }
/* In its seat the rail is only its pills: no bar, nothing pinned. It is a
   box that scrolls sideways, which would cut a pill's focus ring off at
   its edges: 4px of padding holds the ring (2px, set 2px off), and the
   same 4px taken back as margin leaves the pills where they were. */
.rd-rail-seat > .rd-rail {
  position: static; margin: -4px; padding: 4px; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0;
}
/* Capitals run wide: a size smaller, and set a little apart. A pill is then 30px high, and so is its seat. */
.rd-rail-seat > .rd-rail a { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
/* Pinned: once its seat has gone up under the site's header the rail is a
   bar under that header, across the window, its pills where the page's
   left edge is. It is taken out of its seat, which keeps its size, so
   nothing on the page moves; it arrives quietly, once per pinning. */
.rd-rail-seat > .rd-rail.rd-pinned {
  position: fixed; top: var(--nav-h, 62px); left: 0; right: 0; margin: 0;
  padding: 10px max(var(--page-gutter), env(safe-area-inset-right, 0px)) 10px max(var(--page-gutter), env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--rd-plane) 84%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rd-ring);
  animation: rd-row .2s var(--rd-ease) backwards;
}
@media print { .rd-rail-seat > .rd-rail.rd-pinned { position: static; margin: -4px; padding: 4px; background: none; border-bottom: 0; animation: none; } }
/* A seat the script has moved within the head (the window was resized across a width where its place changes) has arrived already: nothing plays again. */
.hm-head > .rd-rail-seat.rd-moved, .rd-rail-seat.rd-moved > .rd-rail.rd-pinned { animation: none; }
/* The rail's room is kept from the first paint WHERE THE SEAT WILL STAND,
   so that drawing the rail moves nothing in the head either, and is given
   back with the wait. Under the name and the subscription it is the head's
   foot: its own 20px, the seat's height and the 14px the seat stands under
   the row above. The seat's own row and this room are the rule at every
   width, and each wider or narrower layout below unsays both together, so
   that no width, a zoomed window's between two of them included, has the
   one without the other. */
html[data-rd-wait] .hm-head { padding-bottom: 64px; }
@media (min-width: 1400px) {
  /* One row: the name, the seat, the subscription, equally far apart. Where room is short it is the rail that gives way, never the name or the subscription.
     The seat stands on the name's own line: as far down as the eyebrow (12px), the space under it (10px) and the name's line (36px at 1.12, the name's full size at these widths) reach, less its own 30px. */
  .hm-head { flex-wrap: nowrap; }
  .hm-head > :not(.rd-rail-seat) { flex: none; }
  .hm-head > .rd-rail-seat { order: 1; flex: 0 1 auto; margin: calc(12px + 10px + 36px * 1.12 - 30px) 0 0; }
  html[data-rd-wait] .hm-head { padding-bottom: 20px; }
}
/* On a phone it is between the name and the subscription (the seat's
   height, the head's gap, less the 4px the seat is drawn up by), and the
   head's foot is its own 20px again. */
@media (max-width: 680px) {
  .hm-head > .rd-rail-seat { order: 1; flex: none; width: 100%; margin: -4px 0 0; }
  html[data-rd-wait] .hm-head { padding-bottom: 20px; }
  html[data-rd-wait] .hm-head > div { margin-bottom: 44px; }
}

/* the cards */
.hm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
/* The first screen arrives in order: the head, then the two cards beside
   each other. Stylesheet-only, from the first paint, so nothing blinks. */
.hm-featured { animation: rd-rise .7s .14s var(--rd-ease) backwards; }
.hm-active { animation: rd-rise .7s .22s var(--rd-ease) backwards; }
.hm-card { min-width: 0; padding: 20px 22px; background: var(--rd-surface); border: 1px solid var(--rd-ring); border-radius: var(--rd-r); }
/* Equal halves: the options view of the table has seven columns to seat. */
.hm-featured { grid-column: span 6; display: flex; flex-direction: column; }
.hm-active { grid-column: span 6; display: flex; flex-direction: column; }
.hm-sectors, .hm-evidence { grid-column: 1 / -1; }
.hm-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.hm-card-head h2 { margin: 0; font: 650 19px/1.2 var(--rd-display); letter-spacing: -.012em; }
.hm-card-head p { margin: 4px 0 0; color: var(--rd-ink-2); font-size: 13.5px; }
.hm-window {
  flex: none; color: var(--rd-ink-2); font: 500 11.5px/1 var(--rd-mono); white-space: nowrap;
  border: 1px solid var(--rd-ring); border-radius: var(--rd-pill); padding: 6px 10px;
}
.hm-window:empty { display: none; }

/* the featured ticker */
.hm-featured-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.hm-featured-title h2 { font: 700 15px/1.1 var(--rd-mono); letter-spacing: .06em; color: var(--accent); }
.hm-featured-name { color: var(--rd-ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-quote { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-height: 54px; margin: 0 0 10px; }
.hm-price { font: 650 clamp(36px, 3.6vw, 54px)/1.02 var(--rd-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hm-change { font: 600 clamp(15px, 1.25vw, 18px)/1.2 var(--rd-mono); font-variant-numeric: tabular-nums; color: var(--rd-ink-2); }
.hm-up { color: var(--good); }
.hm-down { color: var(--bad); }
@keyframes hm-flash-up { from { color: var(--good); } }
@keyframes hm-flash-down { from { color: var(--bad); } }
.hm-flash-up, .hm-flash-up * { animation: hm-flash-up 700ms ease-out; }
.hm-flash-down, .hm-flash-down * { animation: hm-flash-down 700ms ease-out; }

/* the chart, on its own stage */
/* No padding, and the drawing starts at the stage's own corner: the page's
   script places the tooltip in the drawing's coordinates, measured from the
   stage. The drawing carries its own margins. */
.hm-chart-stage {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-start;
  background: var(--rd-surface-2); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm); padding: 0;
}
.hm-chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
/* Drawn left to right when the ticker changes; the script marks that moment. */
.hm-chart-stage.rd-draw .hm-chart { animation: rd-wipe .9s var(--rd-ease) backwards; }
.hm-chart .hm-gridline { stroke: var(--rd-ring); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hm-chart .hm-axis { fill: var(--rd-muted); font: 11px var(--rd-mono); font-variant-numeric: tabular-nums; }
.hm-chart.hm-compact .hm-axis { font-size: 16px; }
.hm-chart .hm-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hm-chart .hm-area { fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.hm-chart .hm-volume { fill: color-mix(in srgb, var(--rd-ink-2) 24%, transparent); }
.hm-chart .hm-last { fill: var(--accent); stroke: var(--rd-surface-2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hm-chart .hm-crosshair { stroke: var(--rd-muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.hm-chart .hm-focus { fill: var(--rd-surface-2); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hm-tooltip {
  position: absolute; z-index: 2; pointer-events: none; min-width: 150px; padding: 8px 10px;
  background: var(--rd-ink); color: var(--rd-plane); border-radius: var(--rd-r-xs);
  font: 11px/1.6 var(--rd-mono); font-variant-numeric: tabular-nums;
  box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--rd-ink) 70%, transparent);
}
.hm-tooltip span { display: flex; justify-content: space-between; gap: 14px; }
.hm-tooltip span:first-child { opacity: .7; margin-bottom: 2px; }
.hm-chart-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: var(--rd-muted); font: 11px/1.5 var(--rd-mono); }
.hm-empty { display: grid; place-items: center; min-height: 200px; padding: 20px; color: var(--rd-muted); text-align: center; font: 12.5px/1.6 var(--rd-mono); }

/* the news under the chart */
.hm-news { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rd-ring); }
.hm-news-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hm-news-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hm-news-head h3 { margin: 0; font: 650 15px/1.25 var(--rd-display); letter-spacing: -.005em; }
.hm-news-list { list-style: none; margin: 0; padding: 0; display: grid; }
.hm-news-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--rd-ring);
}
.hm-news-item:first-child { padding-top: 2px; border-top: 0; }
.hm-news-copy { min-width: 0; display: grid; gap: 3px; }
.hm-news-link, .hm-news-plain { color: var(--rd-ink); font-size: 14px; line-height: 1.4; font-weight: 500; text-decoration: none; }
.hm-news-link { transition: color .15s; text-underline-offset: 3px; }
.hm-news-link:hover { color: var(--accent); text-decoration: underline; }
.hm-news-meta { color: var(--rd-muted); font: 11.5px/1.3 var(--rd-mono); }
.hm-sent-pill {
  flex: none; display: inline-flex; align-items: center; padding: 4px 9px; border-radius: var(--rd-pill);
  border: 1px solid var(--rd-ring); background: var(--rd-surface-2); color: var(--rd-ink-2);
  font: 600 10.5px/1.2 var(--rd-mono); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.hm-sent-pill.hm-up { border-color: color-mix(in oklab, var(--good) 40%, var(--rd-ring)); background: color-mix(in oklab, var(--good) 14%, transparent); color: var(--good); }
.hm-sent-pill.hm-down { border-color: color-mix(in oklab, var(--bad) 40%, var(--rd-ring)); background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); }
.hm-news-empty { margin: 0; color: var(--rd-muted); font: 12.5px/1.5 var(--rd-mono); }

/* most active: the view toggle, and the table */
.hm-active-title { display: flex; align-items: center; gap: 8px; }
.hm-universe {
  padding: 3px 7px; border: 1px solid var(--rd-ring); border-radius: var(--rd-pill); color: var(--rd-ink-2);
  font: 600 10px/1 var(--rd-mono); letter-spacing: .04em;
}
/* The toggle: a track holding two equal halves; a thumb slides under the
   chosen one where the browser can select on it. */
.hm-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; padding: 3px;
  border: 1px solid var(--rd-base); border-radius: var(--rd-pill); background: var(--rd-plane);
}
.hm-toggle button {
  position: relative; z-index: 1; min-height: 30px; padding: 6px 14px; border: 0; border-radius: var(--rd-pill);
  background: transparent; color: var(--rd-ink-2); cursor: pointer; font: 600 13px/1 var(--rd-sans);
  transition: color .25s;
}
.hm-toggle button:hover { color: var(--rd-ink); }
.hm-toggle button[aria-pressed="true"] { background: var(--rd-ink); color: var(--rd-plane); }
@supports selector(:has(*)) {
  .hm-toggle::before {
    content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
    border-radius: var(--rd-pill); background: var(--rd-ink);
    transition: transform .34s var(--rd-ease);
  }
  .hm-toggle:has(button:nth-child(2)[aria-pressed="true"])::before { transform: translateX(100%); }
  .hm-toggle button[aria-pressed="true"] { background: transparent; }
}
.hm-table-wrap { width: 100%; overflow-x: auto; position: relative; }
.hm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hm-table thead th {
  text-align: right; padding: 8px 10px 9px; border-bottom: 1px solid var(--rd-base); color: var(--rd-muted);
  font: 600 11px/1.2 var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.hm-table thead th:first-child { text-align: left; padding-left: 12px; }
.hm-table tbody th[scope="row"] { text-align: left; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--rd-ring); font-weight: 400; max-width: 240px; }
.hm-table td { position: relative; z-index: 0; padding: 9px 10px; border-bottom: 1px solid var(--rd-ring); text-align: right; font: 14px/1.35 var(--rd-mono); white-space: nowrap; }
.hm-table tbody td:first-child { text-align: left; }
.hm-table tbody tr:last-child th, .hm-table tbody tr:last-child td { border-bottom: 0; }
.hm-table tbody th, .hm-table tbody td { transition: background .18s; }
.hm-table td.hm-px, .hm-table td.hm-vol { color: var(--rd-ink-2); }
/* A change, as a tile whose depth is the size of the move. */
.hm-table td.hm-up, .hm-table td.hm-down, .hm-sector-table td.hm-up, .hm-sector-table td.hm-down { color: var(--rd-ink); }
.hm-table td.hm-up::before, .hm-table td.hm-down::before,
.hm-sector-table td.hm-up::before, .hm-sector-table td.hm-down::before {
  content: ""; position: absolute; z-index: -1; inset: 3px 2px; border-radius: min(var(--rd-r-xs), 7px);
}
.hm-table td.hm-up::before, .hm-sector-table td.hm-up::before { background: color-mix(in oklab, var(--good) var(--a, 24%), transparent); }
.hm-table td.hm-down::before, .hm-sector-table td.hm-down::before { background: color-mix(in oklab, var(--bad) var(--a, 24%), transparent); }
.hm-table tbody tr[data-symbol] { cursor: pointer; }
.hm-table tbody tr[data-symbol]:hover > th, .hm-table tbody tr[data-symbol]:hover > td { background: var(--rd-surface-2); }
.hm-table tbody tr[data-selected="true"] > th { box-shadow: inset 3px 0 0 var(--accent); background: var(--rd-wash); }
.hm-table tbody tr[data-selected="true"] > td { background: var(--rd-wash); }
.hm-active-symbol {
  all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 8px;
  width: 100%; min-width: 0; color: var(--rd-ink); cursor: pointer; text-align: left;
}
.hm-active-symbol:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.hm-active-symbol b { font: 600 14px var(--rd-mono); flex: none; min-width: 4.2em; }
.hm-active-symbol small { color: var(--rd-ink-2); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-active-symbol:disabled { color: var(--rd-muted); cursor: default; }
.hm-table.hm-options thead th { padding: 8px 7px; font-size: 10.5px; letter-spacing: .05em; }
.hm-table.hm-options tbody th[scope="row"], .hm-table.hm-options td { padding: 9px 7px; font-size: 12.5px; }
.hm-table.hm-options thead th:first-child, .hm-table.hm-options tbody th[scope="row"] { padding-left: 12px; }
.hm-table.hm-options thead th:last-child, .hm-table.hm-options td:last-child { padding-right: 10px; }
.hm-table.hm-options .hm-active-symbol b { min-width: 0; font-size: 12.5px; }
.hm-contract { color: var(--rd-ink-2); }
.hm-active-note { min-height: 16px; margin: 12px 0 0; color: var(--rd-muted); font: 11px/1.55 var(--rd-mono); }

/* sector pulse: nine tiles, hairlines between them */
.hm-sector-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden;
  background: var(--rd-ring); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm);
}
.hm-sector { min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; background: var(--rd-surface); transition: background .2s; }
.hm-sector:hover { background: color-mix(in srgb, var(--rd-surface) 60%, var(--rd-surface-2)); }
/* An odd tile out fills its row, so the hairline grid shows no bare cell. */
.hm-sector-grid:empty { display: none; }
.hm-sector-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-sector-symbol { font: 700 12.5px var(--rd-mono); letter-spacing: .08em; color: var(--rd-ink-2); }
.hm-sector-change {
  font: 600 12.5px var(--rd-mono); font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: var(--rd-pill); background: var(--rd-surface-2);
}
.hm-sector-change:empty { display: none; }
.hm-sector-change.hm-up { background: color-mix(in oklab, var(--good) 14%, transparent); }
.hm-sector-change.hm-down { background: color-mix(in oklab, var(--bad) 14%, transparent); }
.hm-sector-name { margin: 4px 0 6px; font: 650 16px/1.3 var(--rd-display); letter-spacing: -.008em; }
.hm-sector-quote { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hm-sector-price { font: 650 28px/1.1 var(--rd-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-sector-volume { color: var(--rd-ink-2); font: 11.5px var(--rd-mono); font-variant-numeric: tabular-nums; }
.hm-sector-holdings { border-top: 1px solid var(--rd-ring); padding-top: 10px; overflow-x: auto; }
.hm-sector-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hm-sector-table thead th {
  padding: 0 6px 6px; border-bottom: 1px solid var(--rd-ring); color: var(--rd-muted); text-align: right;
  font: 600 10px/1.2 var(--rd-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.hm-sector-table thead th:first-child, .hm-sector-table tbody th[scope="row"] { padding-left: 0; text-align: left; }
.hm-sector-table thead th:last-child, .hm-sector-table td:last-child { padding-right: 0; }
.hm-sector-table tbody th[scope="row"] { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--rd-ring); font-weight: 400; max-width: 210px; }
.hm-sector-table td { position: relative; z-index: 0; padding: 6px; border-bottom: 1px solid var(--rd-ring); text-align: right; font: 12.5px/1.3 var(--rd-mono); white-space: nowrap; }
.hm-sector-table tbody tr:last-child th, .hm-sector-table tbody tr:last-child td { border-bottom: 0; }
.hm-sector-table td.hm-px, .hm-sector-table td.hm-vol { color: var(--rd-ink-2); }
.hm-sub-ticker { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.hm-sub-ticker b { font: 600 12.5px var(--rd-mono); flex: none; min-width: 3.8em; color: var(--rd-ink); }
.hm-sub-ticker small { color: var(--rd-ink-2); font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sector-holdings-empty { margin: 0; color: var(--rd-muted); font: 11.5px/1.4 var(--rd-mono); }

/* the closing call to action */
.hm-next {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(48px, 7vw, 84px); padding: 34px 0 6px; border-top: 1px solid var(--rd-ring);
}
.hm-next h2 { margin: 0; font: var(--display-weight, 700) clamp(24px, 2.6vw, 32px)/1.15 var(--rd-display); letter-spacing: -.02em; }
.hm-next p { margin: 8px 0 0; color: var(--rd-ink-2); font-size: 16px; }
.hm-next-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hm-next a {
  padding: 11px 20px; border: 1px solid var(--rd-base); border-radius: var(--rd-pill); text-decoration: none;
  font-size: 14px; font-weight: 600; background: var(--rd-surface);
  transition: border-color .18s, transform .22s var(--rd-ease);
}
.hm-next a:hover { border-color: var(--rd-ink-2); transform: translateY(-1px); }
.hm-next a:first-child { background: var(--rd-ink); border-color: var(--rd-ink); color: var(--rd-plane); }

/* the evidence lean (its own row, its own stylesheet for its own classes) */
.hm-evidence .hm-subscribe { animation: none; }

@media (max-width: 1180px) {
  .hm-featured, .hm-active { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .hm-sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-sector:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .hm-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hm-subscribe { width: 100%; justify-content: space-between; }
  .hm-card { padding: 16px; }
  .hm-news-item { flex-direction: column; gap: 6px; }
  .hm-sector-grid { grid-template-columns: 1fr; }
  .hm-sector:last-child:nth-child(odd) { grid-column: auto; }
  .hm-next { align-items: flex-start; flex-direction: column; }
}

/* ── the worked example (pages/redesign/home-explainer.html) ───────── */
.rd-explain { margin-top: clamp(56px, 8vw, 96px); }
/* Its label is words, not a number: stacked over the heading, as the page's own eyebrow is. */
.rd-explain .rd-sec-head { grid-template-columns: 1fr; row-gap: 12px; }
.rd-explain .rd-sec-head p { grid-column: 1; margin-top: 2px; }
.rd-explain .rd-sec-no { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.rd-loop-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.rd-transport { display: flex; gap: 6px; }
/* The steps: a row of labels with a rule under each, filled as it is reached. */
.rd-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.rd-chip {
  all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 96px; text-align: left;
  font: 600 12px/1.3 var(--rd-sans); color: var(--rd-muted);
  border-bottom: 2px solid var(--rd-ring); padding: 6px 10px 7px 2px;
  transition: color .25s, border-color .25s;
}
.rd-chip:hover { color: var(--rd-ink-2); }
.rd-chip.rd-done { color: var(--rd-ink-2); border-color: var(--rd-base); }
.rd-chip.rd-cur { color: var(--rd-ink); border-color: var(--accent); }
.rd-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rd-stage { background: var(--rd-surface-2); border: 1px solid var(--rd-ring); border-radius: var(--rd-r); padding: 8px; }
/* The script draws the frame that fits the stage's width, so the drawing is
   never wider than its box. The two smaller frames stop growing at the
   width where their type is the size of the page's. */
.rd-stage svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.rd-stage.rd-mid svg { max-width: 760px; }
.rd-stage.rd-narrow svg { max-width: 440px; }
.rd-stage svg text { font-family: var(--rd-sans); font-variant-numeric: tabular-nums; }
.rd-console { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 14px; margin-top: 14px; }
.rd-k { font: 700 11px/1.3 var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-muted); }
.rd-step-card h3 { margin: 4px 0 6px; font: 650 20px/1.25 var(--rd-display); letter-spacing: -.012em; }
.rd-step-card p { margin: 0; font-size: 14.5px; color: var(--rd-ink-2); }
.rd-step-card code {
  display: block; margin-top: 12px; font: 12px/1.5 var(--rd-mono); color: var(--rd-ink-2);
  background: var(--rd-surface-2); border-radius: var(--rd-r-xs); padding: 8px 10px; white-space: pre-wrap;
}
.rd-log { font: 12px/1.8 var(--rd-mono); min-height: 176px; overflow-x: auto; white-space: pre; color: var(--rd-muted); }
.rd-log .rd-ln { display: block; }
.rd-log .rd-ln.rd-new { color: var(--rd-ink); animation: rd-fade .5s backwards; }

/* the stage's own drawing */
.rd-pn-label { font-size: 10.5px; letter-spacing: .1em; font-weight: 700; fill: var(--rd-muted); }
.rd-pn-box { fill: var(--rd-surface); stroke: var(--rd-base); stroke-width: 1; transition: stroke .3s; }
.rd-pn.rd-active .rd-pn-box { stroke: var(--accent); stroke-width: 1.8; }
.rd-pn-content { opacity: 0; transition: opacity .5s; }
.rd-pn.rd-on .rd-pn-content { opacity: 1; }
.rd-t { fill: var(--rd-ink); } .rd-t2 { fill: var(--rd-ink-2); } .rd-tm { fill: var(--rd-muted); }
.rd-s9 { font-size: 10px; } .rd-s10 { font-size: 11px; } .rd-s11 { font-size: 12px; } .rd-s13 { font-size: 13.5px; } .rd-bold { font-weight: 650; }
.rd-num { font-size: 30px; font-weight: 680; letter-spacing: -.02em; fill: var(--rd-ink); }
.rd-f-up { fill: var(--good); } .rd-f-dn { fill: var(--bad); } .rd-f-acc { fill: var(--accent); } .rd-f-ink { fill: var(--rd-ink-2); }
.rd-track { fill: var(--rd-ring); }
.rd-zero { stroke: var(--rd-base); stroke-width: 1; }
.rd-axis { stroke: var(--rd-base); stroke-width: 1; }
.rd-gridl { stroke: var(--rd-ring); stroke-width: 1; }
.rd-exp-up { fill: none; stroke: var(--good); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.rd-exp-dn { fill: none; stroke: var(--bad); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.rd-today { fill: none; stroke: var(--rd-ink-2); stroke-width: 1.8; stroke-dasharray: 5 4; stroke-linecap: round; }
.rd-strike { stroke: var(--rd-base); stroke-width: 1; stroke-dasharray: 2 4; }
.rd-spot-line { stroke: var(--accent); stroke-width: 1.4; }
.rd-spot-dot { fill: var(--accent); stroke: var(--rd-surface); stroke-width: 2; }
.rd-entry-dot { fill: var(--rd-surface); stroke: var(--rd-ink-2); stroke-width: 1.6; }
.rd-bar { transform-box: fill-box; transform: scaleX(0); transition: transform .8s var(--rd-ease); }
.rd-bar.rd-pos { transform-origin: left center; } .rd-bar.rd-neg { transform-origin: right center; }
.rd-conn { fill: none; stroke: var(--rd-base); stroke-width: 1.3; stroke-dasharray: 3 4; transition: stroke .3s; }
.rd-conn.rd-on { stroke: var(--accent); stroke-dasharray: none; }
.rd-tip { fill: var(--rd-base); transition: fill .3s; } .rd-tip.rd-on { fill: var(--accent); }
.rd-pt { fill: var(--accent); }
.rd-pill-box { fill: var(--rd-surface-2); stroke: var(--rd-base); stroke-width: 1; }
.rd-stg { opacity: 0; transition: opacity .45s; transition-delay: calc(var(--i, 0) * 200ms); }
.rd-pn.rd-on .rd-stg { opacity: 1; }
@media (max-width: 980px) { .rd-console { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   THE SECTOR SCOREBOARD  (pages/scoreboard.html)
   ═══════════════════════════════════════════════════════════════════════ */
html[data-rd="scoreboard"] {
  --sb-surface: var(--rd-surface);
  --sb-fg: var(--rd-ink);
  --sb-muted: var(--rd-ink-2);
  --sb-line: var(--rd-ring);
  --sb-up: var(--good);
  --sb-dn: var(--bad);
  --sb-display: var(--rd-display);
  --sb-mono: var(--rd-mono);
}
.sb-wrap {
  max-width: var(--page-measure, 1240px); margin: 0 auto; display: grid; gap: 20px; counter-reset: rd-sec;
  padding: 0 max(var(--page-gutter, 24px), env(safe-area-inset-right, 0px)) 56px max(var(--page-gutter, 24px), env(safe-area-inset-left, 0px));
}
/* The wide table scrolls inside its own box, not the page. */
.sb-wrap > * { min-width: 0; }
.sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.up { color: var(--sb-up); } .dn { color: var(--sb-dn); }

.sb-head {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-end; justify-content: space-between;
  padding: 30px 0 0;
}
.sb-head > div:first-child { animation: rd-rise .7s var(--rd-ease) backwards; }
.sb-eyebrow { font: 600 12px/1 var(--rd-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
/* The page's name at the size of the overview's (and of the section
   headings): the figures under it are what is large. */
.sb-head h2 {
  margin: 10px 0 0; font: var(--display-weight, 700) clamp(26px, 2.8vw, 36px)/1.12 var(--rd-display);
  letter-spacing: -.02em; text-wrap: balance; text-transform: uppercase;
}
.sb-right { display: grid; gap: 10px; justify-items: end; animation: rd-rise .7s .1s var(--rd-ease) backwards; }
.sb-stamp { font: 12.5px/1.7 var(--rd-mono); color: var(--rd-ink-2); text-align: right; }
.sb-stamp b { color: var(--rd-ink); font-weight: 600; }
.sb-delayed {
  display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--rd-mono); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--rd-base); border-radius: var(--rd-pill); padding: 5px 9px; color: var(--rd-ink);
}
.sb-delayed::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn, var(--accent)); }
.sb-updating { font: 11.5px var(--rd-mono); color: var(--rd-ink-2); letter-spacing: .04em; animation: rd-fade .4s backwards; }
/* The sector picker, as the page wrote it: shown until the script draws the
   sector tabs in its place, and whenever scripting is off. */
.sb-pick {
  font: 13px var(--rd-mono); color: var(--rd-ink-2); display: inline-flex; gap: 6px; align-items: center; max-width: 100%;
  background: var(--rd-surface); border: 1px solid var(--rd-base); border-radius: var(--rd-pill); padding: 4px 6px 4px 14px;
}
.sb-pick select { font: 600 13px var(--rd-sans); color: var(--rd-ink); background: transparent; border: 0; padding: 5px 4px; min-width: 0; max-width: 100%; }
.sb-pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* The sector tabs (drawn by the script from the picker's own options): one
   row, pinned under the header, scrolled sideways on a phone. */
.rd-sectors {
  position: sticky; top: var(--nav-h, 62px); z-index: 20;
  /* Every sector is on screen at every width a mouse reaches: the row wraps
     onto a second line rather than hiding its end. */
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: -6px calc(-1 * var(--page-gutter, 24px)); padding: 12px var(--page-gutter, 24px);
  background: color-mix(in srgb, var(--rd-plane) 84%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.rd-sectors.rd-stuck { border-bottom-color: var(--rd-ring); }
/* A phone: eight sectors would take four lines of a pinned bar, so the row
   is one line swiped sideways, and its right edge fades to say there is more. */
@media (max-width: 700px) {
  .rd-sectors {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
    padding-right: calc(var(--page-gutter, 24px) + 28px);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .rd-sectors::-webkit-scrollbar { display: none; }
}
.rd-sectors .rd-tab { flex: none; }
.rd-sectors { animation: rd-fade .5s backwards; }
.sb-tiles { animation: rd-rise .7s .18s var(--rd-ease) backwards; }

.sb-note { max-width: 120ch; margin: 0; color: var(--rd-ink-2); font-size: 15.5px; line-height: 1.55; animation: rd-rise .7s .12s var(--rd-ease) backwards; }
.sb-note strong { color: var(--rd-ink); font-weight: 650; }
/* The quote strip across the page, then the summary under it. The page
   writes the summary first; the strip is set above it so that a summary
   that grows or shrinks (it is one line while a sector loads) moves what
   it always moved, the sections under it, and never the strip. */
.sb-lead { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
html[data-rd="scoreboard"] .sb-lead > .qs { order: -1; }
.qs-list {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(84px, auto)); gap: 1px;
  background: var(--rd-ring); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm); overflow: hidden;
}
.qs-tile { display: grid; gap: 3px; padding: 10px 14px; background: var(--rd-surface); font: 12px/1.25 var(--rd-mono); font-variant-numeric: tabular-nums; }
.qs-sym { font-weight: 700; letter-spacing: .06em; color: var(--rd-ink-2); font-size: 11px; }
.qs-px { color: var(--rd-ink); font: 650 16px/1.15 var(--rd-display); letter-spacing: -.01em; }
.qs-chg { color: var(--rd-ink-2); }
/* The overview's further parts: the day's change in dollars and the volume, and the ticker's name in a quieter ink. */
.qs-amt, .qs-vol { color: var(--rd-ink-2); }
.qs-name { color: var(--rd-muted); }
.qs-up { color: var(--good); } .qs-down { color: var(--bad); }
.qs-note { margin: 8px 0 0; font: 11px var(--rd-mono); color: var(--rd-muted); text-align: right; }
/* On the overview and the scoreboard the strip runs across the page, and a
   tile is a figure tile: the symbol, the price large, the day's change.
   Whole-pixel lines that never wrap, so a strip's height is the same in
   every browser and for every figure. */
html[data-rd="home"] .qs-tile, html[data-rd="scoreboard"] .qs-tile { gap: 2px; padding: 13px 16px 12px; white-space: nowrap; }
html[data-rd="home"] .qs-sym, html[data-rd="scoreboard"] .qs-sym { font-size: 12px; line-height: 16px; }
/* The price is sized to a tile's share of a full row: the list's width
   over the tiles a row holds (--qs-row, said beside each layout), less the
   tile's own padding, 18% of that, between a floor and the full size. A
   price in the thousands then stays inside a narrow tile, and every tile
   draws its price at one size, a last row's wider tiles included. That
   is said only to a browser that knows container units (a size with a
   var() in it is taken at face value by one that does not, and then
   thrown away for the tile's own 12px): every other browser keeps the size
   before it, from the window. The price's line is fixed. */
html[data-rd="home"] .qs-px, html[data-rd="scoreboard"] .qs-px { font-size: clamp(15px, 2.6vw, 25px); line-height: 30px; letter-spacing: -.02em; }
@supports (font-size: 1cqi) {
  html[data-rd="home"] .qs-px, html[data-rd="scoreboard"] .qs-px { font-size: clamp(15px, calc((100cqi / var(--qs-row) - 32px) * .18), 25px); }
}
html[data-rd="scoreboard"] .qs-list { --qs-row: 6; }
html[data-rd="home"] .qs-chg, html[data-rd="scoreboard"] .qs-chg { font-size: 12.5px; line-height: 16px; font-weight: 600; }
/* The change in dollars is set as the change in percent is; the volume a little smaller. One whole-pixel line each. */
html[data-rd="home"] .qs-amt { font-size: 12.5px; line-height: 16px; font-weight: 600; }
html[data-rd="home"] .qs-vol { font-size: 11.5px; line-height: 16px; }
html[data-rd="home"] .qs-name { font-family: var(--rd-sans); font-size: 11.5px; line-height: 16px; letter-spacing: 0; }
html[data-rd="scoreboard"] .qs-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* The list keeps to its frame, and cannot be scrolled inside it. */
html[data-rd="home"] .qs-list, html[data-rd="scoreboard"] .qs-list { overflow: clip; container-type: inline-size; }
/* The scoreboard's strip keeps its room from the moment the page's script
   seats it (a row of tiles, and its note's line under them), so the answer
   landing moves nothing under it. It arrives once, with its first answer. */
html[data-rd="scoreboard"] .qs-note { line-height: 17px; }
html[data-rd="scoreboard"] .sb-lead > .qs { min-height: 118px; }
html[data-rd="scoreboard"] .sb-lead > .qs:not(:empty) { animation: rd-rise .6s var(--rd-ease) backwards; }
/* Refused, it says so inside a frame that keeps one row's room: on a desk
   that is the strip's whole room, so nothing moves. Where the tiles would
   have stood in two rows, the second row's room is given back: a frame two
   rows tall around one sentence would be the emptiest thing on the page. */
html[data-rd="scoreboard"] .sb-lead > .qs.qs-off {
  display: flex; align-items: center; justify-content: center; min-height: 118px;
  border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm);
}
html[data-rd="scoreboard"] .qs-off .qs-note { margin: 0; text-align: center; }
/* Six tiles are two rows of three at 1100px and under (the rule is with the scoreboard's other breakpoints). */
@media (max-width: 1100px) {
  html[data-rd="scoreboard"] .sb-lead > .qs { min-height: 210px; }
}
@media (max-width: 680px) {
  html[data-rd="home"] .qs-tile, html[data-rd="scoreboard"] .qs-tile { padding: 10px 12px; }
  html[data-rd="home"] .qs-px, html[data-rd="scoreboard"] .qs-px { font-size: clamp(15px, 4.4vw, 20px); line-height: 24px; }
  @supports (font-size: 1cqi) {
    html[data-rd="home"] .qs-px, html[data-rd="scoreboard"] .qs-px { font-size: clamp(15px, calc((100cqi / var(--qs-row) - 24px) * .18), 20px); }
  }
  html[data-rd="scoreboard"] .sb-lead > .qs { min-height: 188px; }
}
@media (max-width: 359px) {
  html[data-rd="home"] .qs-tile, html[data-rd="scoreboard"] .qs-tile { padding: 9px 8px; }
  /* The narrowest tile seats the symbol and a two-digit change in percent on one line only a size smaller. */
  html[data-rd="home"] .qs-chg, html[data-rd="home"] .qs-amt { font-size: 11.5px; }
  html[data-rd="home"] .qs-px, html[data-rd="scoreboard"] .qs-px { font-size: clamp(12.5px, 4.4vw, 15px); line-height: 20px; }
  @supports (font-size: 1cqi) {
    html[data-rd="home"] .qs-px, html[data-rd="scoreboard"] .qs-px { font-size: clamp(12.5px, calc((100cqi / var(--qs-row) - 16px) * .18), 15px); }
  }
  html[data-rd="scoreboard"] .sb-lead > .qs { min-height: 176px; }
}

/* A notice: what could not be read, said beside what could. */
.sb-alert {
  margin: 0; padding: 14px 18px; border: 1px solid var(--rd-ring); border-left: 3px solid var(--warn, var(--accent));
  border-radius: var(--rd-r-sm); background: var(--rd-surface); font-size: 14.5px; color: var(--rd-ink-2);
  animation: rd-rise .4s var(--rd-ease) backwards;
}

/* section titles, numbered in the order they are met */
.sb-h2 {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px;
  font: var(--display-weight, 700) clamp(21px, 2vw, 26px)/1.2 var(--rd-display); letter-spacing: -.016em;
}
.sb-wrap > section > .sb-h2::before, .sb-tablehead > .sb-h2::before {
  counter-increment: rd-sec; content: counter(rd-sec, decimal-leading-zero);
  font: 700 12.5px/1 var(--rd-mono); letter-spacing: .1em; color: var(--rd-muted); font-variant-numeric: tabular-nums;
}
.sb-panel .sb-h2 { font-size: 17px; margin-bottom: 14px; }

/* the benchmark: six windows, hairlines between them */
.sb-tiles {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; overflow: hidden;
  background: var(--rd-ring); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm);
}
.sb-tile { display: grid; gap: 4px; padding: 18px 20px; min-width: 0; background: var(--rd-surface); transition: background .2s; }
.sb-tile:hover { background: color-mix(in srgb, var(--rd-surface) 60%, var(--rd-surface-2)); }
.sb-lbl { font: 700 11.5px var(--rd-mono); letter-spacing: .12em; color: var(--rd-muted); }
.sb-val { font: 650 clamp(26px, 2.5vw, 36px)/1.1 var(--rd-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; min-height: 1.1em; }
.sb-sub { font: 12px/1.4 var(--rd-mono); color: var(--rd-ink-2); }

/* breadth, leaders, laggards */
.sb-side { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.sb-panel { background: var(--rd-surface); border: 1px solid var(--rd-ring); border-radius: var(--rd-r); padding: 20px 22px; min-width: 0; }
.sb-side .sb-panel:nth-child(2) { border-top: 3px solid var(--good); }
.sb-side .sb-panel:nth-child(3) { border-top: 3px solid var(--bad); }
.sb-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sb-panel li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--rd-ring); font: 14px var(--rd-mono); font-variant-numeric: tabular-nums;
}
.sb-panel li:last-child { border-bottom: 0; }
.sb-panel li b { font-weight: 600; letter-spacing: .02em; }
.sb-panel h3 { font: 700 11px var(--rd-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rd-muted); margin: 18px 0 6px; }
.sb-panel h3:first-of-type { margin-top: 0; }
.sb-empty { margin: 0; font: 13px var(--rd-mono); color: var(--rd-muted); }
.sb-mini { width: 100%; border-collapse: collapse; font: 14px var(--rd-mono); font-variant-numeric: tabular-nums; }
.sb-mini th, .sb-mini td { padding: 8px 0; border-bottom: 1px solid var(--rd-ring); text-align: right; font-weight: 400; }
.sb-mini tbody tr:last-child th, .sb-mini tbody tr:last-child td { border-bottom: 0; }
.sb-mini th:first-child { text-align: left; color: var(--rd-ink-2); font-weight: 600; letter-spacing: .04em; }
.sb-mini thead th { font: 700 10.5px var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-muted); border-bottom-color: var(--rd-base); }

/* all tickers */
.sb-tablehead { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.sb-tablehead .sb-h2 { margin: 0; }
.sb-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font: 12px var(--rd-mono); color: var(--rd-ink-2); }
/* "One list": the page's own checkbox, drawn as a switch. */
.sb-flat {
  display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font: 600 13px var(--rd-sans); color: var(--rd-ink-2);
  border: 1px solid var(--rd-base); border-radius: var(--rd-pill); padding: 6px 12px 6px 8px; transition: border-color .2s, color .2s;
}
.sb-flat:hover { border-color: var(--rd-ink-2); color: var(--rd-ink); }
.sb-flat input {
  appearance: none; -webkit-appearance: none; margin: 0; position: relative; flex: none; cursor: pointer;
  width: 30px; height: 18px; border-radius: 999px; background: var(--rd-base); transition: background .25s;
}
.sb-flat input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rd-plane); transition: transform .28s var(--rd-ease);
}
.sb-flat input:checked { background: var(--rd-ink); }
.sb-flat input:checked::after { transform: translateX(12px); }
.sb-flat input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-ramp {
  display: inline-block; width: 150px; max-width: 30vw; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--sb-dn) 76%, transparent), transparent 50%, color-mix(in oklab, var(--sb-up) 76%, transparent));
}
/* Sideways only: the table runs its full length with the page. */
.sb-scroll { position: relative; overflow-x: auto; border: 1px solid var(--rd-ring); border-radius: var(--rd-r); background: var(--rd-surface); }
table.sb-grid { width: 100%; border-collapse: collapse; min-width: 860px; font-variant-numeric: tabular-nums; }
.sb-grid thead th { text-align: right; padding: 0; border-bottom: 1px solid var(--rd-base); font-weight: 400; background: var(--rd-surface); }
.sb-grid thead th:first-child { text-align: left; }
.sb-grid thead button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 14px 12px 11px;
  font: 700 11px var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-muted); text-align: inherit; transition: color .15s;
}
.sb-grid thead th:first-child button { padding-left: 18px; }
.sb-grid thead button:hover { color: var(--rd-ink); }
.sb-grid thead button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sb-grid thead th[aria-sort="ascending"] button, .sb-grid thead th[aria-sort="descending"] button { color: var(--rd-ink); }
.sb-dir { margin-left: 3px; color: var(--accent); }
.sb-grid thead small { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; letter-spacing: 0; opacity: .85; }
.sb-grid td { position: relative; z-index: 0; font: 14px var(--rd-mono); text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--rd-ring); white-space: nowrap; }
.sb-grid td.up, .sb-grid td.dn { color: var(--rd-ink); }
.sb-grid td.up::before, .sb-grid td.dn::before { content: ""; position: absolute; z-index: -1; inset: 2px; border-radius: min(var(--rd-r-xs), 7px); }
.sb-grid td.up::before { background: color-mix(in oklab, var(--sb-up) var(--a), transparent); }
.sb-grid td.dn::before { background: color-mix(in oklab, var(--sb-dn) var(--a), transparent); }
.sb-grid td.px { color: var(--rd-ink-2); }
.sb-grid td.vol { color: var(--rd-ink-2); }
/* After the close: "Close", or the delayed print's time and "close pending". */
.sb-pxnote { display: block; font-size: 10px; letter-spacing: .04em; color: var(--rd-muted); }
.sb-grid tbody th[scope=row] { text-align: left; padding: 8px 12px 8px 18px; border-bottom: 1px solid var(--rd-ring); font-weight: 400; min-width: 200px; }
.sb-grid tbody th b { font: 600 14px var(--rd-mono); display: inline-block; width: 4.2em; }
.sb-grid tbody th small { color: var(--rd-ink-2); font-size: 13px; }
.sb-grid tbody tr[data-symbol] > th, .sb-grid tbody tr[data-symbol] > td { transition: background .16s; }
.sb-grid tbody tr[data-symbol]:hover > th, .sb-grid tbody tr[data-symbol]:hover > td { background: var(--rd-surface-2); }
.sb-grid tbody:last-child tr:last-child > th, .sb-grid tbody:last-child tr:last-child > td { border-bottom: 0; }
.sb-gh th {
  text-align: left; padding: 22px 12px 9px 18px; border-bottom: 1px solid var(--rd-base); color: var(--rd-ink);
  font: 650 14px/1 var(--rd-display); letter-spacing: -.005em;
}
.sb-gh span {
  font: 600 11px var(--rd-mono); color: var(--rd-ink-2); margin-left: 8px; letter-spacing: 0;
  border: 1px solid var(--rd-ring); border-radius: var(--rd-pill); padding: 2px 7px;
}
.sb-lev tr:not(.sb-gh) { opacity: .85; }
.sb-foot {
  font: 12.5px/1.7 var(--rd-sans); color: var(--rd-ink-2); border-top: 1px solid var(--rd-ring); padding-top: 22px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px;
}

/* loading: the readout drawn empty, and the build's own progress */
.sb-skel { display: block; height: .9em; border-radius: 4px; max-width: 100%; background: color-mix(in oklab, var(--rd-ink) 9%, transparent); background-size: 240% 100%; }
.sb-skel.lg { height: 1.6em; width: 70%; margin: 4px 0; }
.sb-skel.sm { height: .7em; width: 55%; }
.sb-grid td .sb-skel { margin-left: auto; width: 4.5em; }
.sb-mini td .sb-skel { margin-left: auto; width: 3.5em; }
.sb-panel li .sb-skel { width: 100%; height: 1em; }
.sb-grid th .sb-skel { width: 9em; }
.sb-progress {
  position: relative; display: grid; gap: 14px; padding: 20px 22px; background: var(--rd-surface);
  border: 1px solid var(--rd-ring); border-left: 3px solid var(--accent); border-radius: var(--rd-r-sm);
}
.sb-progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.sb-progress-head b { font: 700 11.5px var(--rd-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sb-pct { font: 650 26px/1 var(--rd-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb-bar { position: relative; height: 6px; border-radius: 999px; overflow: hidden; background: color-mix(in oklab, var(--rd-ink) 10%, transparent); }
.sb-bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.sb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font: 13px var(--rd-mono); color: var(--rd-ink-2); font-variant-numeric: tabular-nums; }
.sb-steps li { display: flex; gap: 10px; align-items: baseline; }
.sb-steps li::before { content: "\25CB"; width: 1em; flex: none; text-align: center; }
.sb-steps li[data-state="active"] { color: var(--rd-ink); }
.sb-steps li[data-state="active"]::before { content: "\25D0"; color: var(--accent); }
.sb-steps li[data-state="done"]::before { content: "\2713"; color: var(--sb-up); }
.sb-status { margin: 0; font: 13px var(--rd-mono); color: var(--rd-ink-2); }
/* A window whose history is still loading: a faint placeholder, never a number. */
.sb-grid td.pend { color: var(--rd-ink-2); }
.sb-pend { display: inline-block; vertical-align: middle; width: 3.2em; height: .55em; border-radius: 3px; background: color-mix(in oklab, var(--accent) 22%, transparent); background-size: 240% 100%; }

/* row details (their own row) */
.sb-exp { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 6px; cursor: pointer; min-height: 28px; width: 100%; }
.sb-exp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-exp b { font: 600 14px var(--rd-mono); display: inline-block; width: 4.2em; }
.sb-exp small { color: var(--rd-ink-2); font-size: 13px; }
.sb-caret { display: inline-block; width: .9em; color: var(--rd-muted); font: 12px var(--rd-mono); transition: transform .25s var(--rd-ease), color .2s; }
.sb-caret::before { content: "\25B8"; }
.sb-exp[aria-expanded="true"] .sb-caret { transform: rotate(90deg); color: var(--accent); }
tr[data-symbol].sb-expandable { cursor: pointer; }
.sb-grid tr.sb-detail > td { padding: 0; text-align: left; white-space: normal; background: var(--rd-plane); }
.sb-dpanel {
  padding: 16px 18px 20px; display: grid; gap: 14px; position: sticky; left: 0; max-width: min(100vw - 34px, 1200px);
  animation: rd-rise .38s var(--rd-ease) backwards;
}
.sb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-tabs button {
  all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 14px; font: 600 13px/1.2 var(--rd-sans);
  color: var(--rd-ink-2); border: 1px solid var(--rd-base); border-radius: var(--rd-pill);
  transition: background .2s, color .2s, border-color .2s;
}
.sb-tabs button:hover { color: var(--rd-ink); border-color: var(--rd-ink-2); }
.sb-tabs button[aria-selected="true"] { background: var(--rd-ink); color: var(--rd-plane); border-color: var(--rd-ink); }
.sb-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-tabpanel { font: 14px/1.55 var(--rd-sans); color: var(--rd-ink); min-height: 120px; }
.sb-dnote { font: 12px var(--rd-mono); color: var(--rd-ink-2); margin: 0 0 10px; }
.sb-exps + .sb-dnote { margin-top: 12px; }
.sb-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sb-news li { display: grid; gap: 2px; }
.sb-news a { color: var(--rd-ink); text-underline-offset: 3px; }
.sb-news a:hover { color: var(--accent); }
.sb-news .sb-meta { font: 12px var(--rd-mono); color: var(--rd-ink-2); }
.sb-sent { font: 12px var(--rd-mono); }
.sb-sent.up { color: var(--sb-up); } .sb-sent.dn { color: var(--sb-dn); }
.sb-gauge {
  position: relative; height: 8px; border-radius: 999px; max-width: 320px; margin: 2px 0 14px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--sb-dn) 60%, transparent), color-mix(in oklab, var(--rd-ink) 12%, transparent) 50%, color-mix(in oklab, var(--sb-up) 60%, transparent));
}
.sb-gauge i { position: absolute; top: -3px; width: 3px; height: 14px; background: var(--rd-ink); border-radius: 1px; }
.sb-exps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sb-expc { border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm); padding: 14px 16px; background: var(--rd-surface); min-width: 0; }
.sb-expc h4 { margin: 0 0 8px; font: 700 11.5px var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-ink-2); }
.sb-expc dl { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font: 12.5px var(--rd-mono); font-variant-numeric: tabular-nums; }
.sb-expc dt { color: var(--rd-ink-2); } .sb-expc dd { margin: 0; text-align: right; }
.sb-band { display: grid; grid-template-columns: 5.6em 1fr; gap: 2px 8px; align-items: center; font: 11px var(--rd-mono); color: var(--rd-ink-2); }
.sb-bars { display: grid; gap: 2px; }
.sb-bars span { display: block; height: 6px; border-radius: 3px; min-width: 1px; }
.sb-bars .c { background: color-mix(in oklab, var(--sb-up) 70%, transparent); }
.sb-bars .p { background: color-mix(in oklab, var(--sb-dn) 70%, transparent); }
/* The legend's swatches use the bars' own classes, so they cannot drift. */
.sb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font: 12px var(--rd-mono); color: var(--rd-ink-2); margin: 0 0 8px; }
.sb-legend .sb-bars { display: inline-grid; width: 18px; }
.sb-far { display: block; font-size: 11px; color: var(--rd-ink-2); }
.sb-partial { font-size: 11px; color: var(--rd-ink-2); }
.sb-chart { width: 100%; height: auto; display: block; animation: rd-wipe .8s var(--rd-ease) backwards; }
.sb-chart .ln { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.sb-chart .vb { fill: color-mix(in oklab, var(--rd-ink) 22%, transparent); }
.sb-chart .sep { stroke: var(--rd-ring); stroke-width: 1; }
.sb-chart .cu { fill: var(--sb-up); stroke: var(--sb-up); } .sb-chart .cd { fill: var(--sb-dn); stroke: var(--sb-dn); }
.sb-chart text { fill: var(--rd-ink-2); font: 10px var(--rd-mono); }

@media (max-width: 1100px) {
  .sb-lead { grid-template-columns: 1fr; row-gap: 14px; }
  html[data-rd="scoreboard"] .qs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); --qs-row: 3; }
  .qs-note { text-align: left; }
}
@media (max-width: 900px) {
  .sb-tiles { grid-template-columns: repeat(3, 1fr); }
  .sb-side { grid-template-columns: 1fr; }
  .sb-foot { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* A 44px target for a finger. */
  .sb-exp { min-height: 44px; }
  .sb-exps { grid-template-columns: 1fr; }
  .sb-tiles { grid-template-columns: repeat(2, 1fr); }
  .sb-right { justify-items: start; }
  .sb-stamp { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════════════════
   THE OPTIONS SCREENER  (pages/options-screener.html)
   ═══════════════════════════════════════════════════════════════════════ */
html[data-rd="screener"] {
  --os-surface: var(--rd-surface);
  --os-fg: var(--rd-ink);
  --os-muted: var(--rd-ink-2);
  --os-line: var(--rd-ring);
  --os-up: var(--good);
  --os-dn: var(--bad);
  --os-mono: var(--rd-mono);
  --os-top: var(--nav-h, 62px);
}
.os-wrap {
  max-width: var(--page-measure, 1240px); margin: 0 auto;
  padding: 0 max(var(--page-gutter, 24px), env(safe-area-inset-right, 0px)) 56px max(var(--page-gutter, 24px), env(safe-area-inset-left, 0px));
}
.os-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.os-nowrap { white-space: nowrap; }
/* 30px under the site's header, as the overview's head and the scoreboard's are (owner, 16 Nov 2026). */
.os-head { padding: 30px 0 26px; }
.os-head > :not(.qs) { animation: rd-rise .7s var(--rd-ease) backwards; }
.os-eyebrow { font: 600 12px/1 var(--rd-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
/* The page's name in the scoreboard's own type (owner, 16 Nov 2026), which is the overview's too, and as far under its eyebrow as the scoreboard's is. */
.os-head h2 {
  margin: 10px 0 14px; font: var(--display-weight, 700) clamp(26px, 2.8vw, 36px)/1.12 var(--rd-display);
  letter-spacing: -.02em; text-wrap: balance; text-transform: uppercase;
}
/* The page's own paragraph, not the quote strip's note inside the same header. */
.os-head > p { margin: 0; color: var(--rd-ink-2); max-width: 72ch; font-size: 17px; line-height: 1.6; }
/* The quote strip: to the right of the text, under it when narrow. */
.os-head.has-qs { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 36px; align-items: end; }
.os-head.has-qs > :not(.qs) { grid-column: 1; }
.os-head.has-qs > .qs { grid-column: 2; grid-row: 1 / span 3; align-self: end; animation: rd-rise .7s .1s var(--rd-ease) backwards; }
html[data-rd="screener"] .qs-list { grid-template-columns: repeat(4, minmax(92px, auto)); }

/* The list and the results are separate columns, each scrolling with the page. */
.os-grid { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; transition: grid-template-columns .3s var(--rd-ease); }
/* The whole list at once, set close: no scroll box of its own. */
.os-nav { background: var(--rd-surface); border: 1px solid var(--rd-ring); border-radius: var(--rd-r); padding: 12px 14px 12px; }
/* Pinned beside the results only where the window can show the whole list. */
@media (min-width: 901px) and (min-height: 880px) { .os-nav { position: sticky; top: calc(var(--os-top) + 12px); } }
@media (min-width: 901px) and (min-height: 880px) and (max-height: 1089px) { .os-grid.os-positions .os-nav { position: static; } }
.os-nav-head { margin: 0 0 6px; }
.os-nav-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%;
  font: 700 11.5px var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-ink-2); padding: 4px 0;
  transition: color .15s;
}
.os-nav-toggle:hover { color: var(--rd-ink); }
.os-nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.os-nav-toggle svg { flex: none; transition: transform .25s var(--rd-ease); }
.os-nav-label { flex: 1; }
.os-nav-count {
  font: 600 11px var(--rd-mono); letter-spacing: 0; text-transform: none; color: var(--rd-plane); background: var(--rd-ink);
  border-radius: var(--rd-pill); padding: 2px 8px;
}
/* Collapsed: a slim rail; the results take the width. */
.os-grid.is-collapsed { grid-template-columns: 48px minmax(0, 1fr); }
.os-grid.is-collapsed .os-nav { padding: 10px 6px; overflow: visible; }
.os-grid.is-collapsed .os-nav-toggle { flex-direction: column; gap: 10px; padding: 6px 0; }
.os-grid.is-collapsed .os-nav-toggle svg { transform: rotate(180deg); }
.os-grid.is-collapsed .os-nav-label { writing-mode: vertical-rl; transform: rotate(180deg); flex: none; }
.os-nav fieldset { border: 0; margin: 0 0 9px; padding: 0; }
.os-nav legend { font: 700 10.5px var(--rd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rd-muted); padding: 0; margin-bottom: 2px; }
.os-strat { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; padding: 1px 4px; margin: 0 -4px; cursor: pointer; border-radius: 6px; transition: background .15s; }
.os-strat:hover { background: var(--rd-surface-2); }
.os-strat input { margin: 0; accent-color: var(--rd-ink); }
.os-strat span { flex: 1; }
.os-strat em { font: 11.5px var(--rd-mono); color: var(--rd-ink-2); font-style: normal; font-variant-numeric: tabular-nums; }
.os-strat-note { margin: 0 0 4px; font-size: 12px; color: var(--rd-ink-2); }
.os-est, .os-leg-exp { font: 10px var(--rd-mono); color: var(--rd-ink-2); }
.os-pl-cap { margin: 6px 0 0; font: 11px var(--rd-mono); color: var(--rd-ink-2); letter-spacing: .02em; }
.os-leg-exp { margin-left: 3px; }
.os-linkbtn { all: unset; cursor: pointer; font: 600 12.5px var(--rd-sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.os-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.os-main { min-width: 0; }
.os-grid { animation: rd-rise .7s .12s var(--rd-ease) backwards; }

/* the filter bar: pinned under the header */
.os-bar {
  /* Above the paywall (z-index 5) as well as the grid's own pinned cells:
     the bar slides over the results, and its controls stay in reach. */
  position: sticky; top: var(--os-top); z-index: 6; display: grid; gap: 10px; padding: 12px 0;
  background: color-mix(in srgb, var(--rd-plane) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rd-ring);
}
.os-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.os-filter {
  display: inline-flex; align-items: center; gap: 2px; background: var(--rd-surface); border: 1px solid var(--rd-base);
  border-radius: var(--rd-pill); padding: 3px 5px 3px 12px; transition: border-color .18s; animation: rd-fade .3s backwards;
}
.os-filter:hover, .os-filter:focus-within { border-color: var(--rd-ink-2); }
.os-filter select, .os-filter input, .os-und input { font: 13px var(--rd-mono); color: var(--rd-ink); background: transparent; border: 0; padding: 4px 2px; min-width: 0; }
.os-filter input { width: 5.5em; }
.os-filter select:focus-visible, .os-filter input:focus-visible, .os-und input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.os-x { all: unset; cursor: pointer; width: 22px; height: 22px; display: inline-grid; place-items: center; color: var(--rd-ink-2); border-radius: 50%; transition: background .15s, color .15s; }
.os-x:hover { color: var(--rd-ink); background: var(--rd-surface-2); }
.os-x:focus-visible { outline: 2px solid var(--accent); }
.os-row2 { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.os-und { display: inline-flex; gap: 8px; align-items: center; font: 600 12.5px var(--rd-sans); color: var(--rd-ink-2); }
.os-und input { border: 1px solid var(--rd-base); border-radius: var(--rd-pill); padding: 8px 14px; background: var(--rd-surface); width: 17em; transition: border-color .18s; }
.os-und input:hover { border-color: var(--rd-ink-2); }
/* "One per ticker": the page's own checkbox, drawn as a switch. */
.os-toggle { display: inline-flex; gap: 8px; align-items: center; font: 600 12.5px var(--rd-sans); color: var(--rd-ink-2); cursor: pointer; }
.os-toggle input {
  appearance: none; -webkit-appearance: none; margin: 0; position: relative; flex: none; cursor: pointer;
  width: 30px; height: 18px; border-radius: 999px; background: var(--rd-base); transition: background .25s;
}
.os-toggle input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rd-plane); transition: transform .28s var(--rd-ease);
}
.os-toggle input:checked { background: var(--rd-ink); }
.os-toggle input:checked::after { transform: translateX(12px); }
.os-toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.os-btn {
  all: unset; box-sizing: border-box; cursor: pointer; font: 600 13.5px/1.2 var(--rd-sans); padding: 9px 18px;
  border-radius: var(--rd-pill); transition: border-color .18s, background .18s, transform .18s var(--rd-ease), opacity .18s;
}
.os-btn:active { transform: scale(.97); }
.os-btn.primary { background: var(--rd-ink); color: var(--rd-plane); border: 1px solid var(--rd-ink); }
.os-btn.primary:hover { opacity: .88; }
.os-btn.ghost { border: 1px solid var(--rd-base); color: var(--rd-ink); background: var(--rd-surface); }
.os-btn.ghost:hover { border-color: var(--rd-ink-2); }
.os-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.os-btn[disabled] { opacity: .45; cursor: default; }
#os-scan { margin-left: auto; padding: 10px 26px; }
.os-status { font: 12.5px var(--rd-mono); color: var(--rd-ink-2); margin: 14px 0 8px; }

/* the tickers with results: toggle tabs */
.os-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.os-pill {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; font: 600 12.5px var(--rd-mono);
  padding: 5px 7px 5px 12px; border: 1px solid var(--rd-base); border-radius: var(--rd-pill); color: var(--rd-ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.os-pill:hover { border-color: var(--rd-ink-2); color: var(--rd-ink); }
.os-pill b { font-weight: 600; }
.os-pill i { font-style: normal; font-size: 11px; color: var(--rd-ink-2); background: var(--rd-surface-2); border-radius: var(--rd-pill); padding: 1px 7px; font-variant-numeric: tabular-nums; }
.os-pill[aria-pressed="true"] { background: var(--rd-ink); border-color: var(--rd-ink); color: var(--rd-plane); }
.os-pill[aria-pressed="true"] i { background: color-mix(in srgb, var(--rd-plane) 22%, transparent); color: var(--rd-plane); }
.os-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the grid: flat, hairlines between rows, its first columns pinned */
.os-results { position: relative; }
.os-scroll { overflow: auto; max-height: min(72vh, 680px); position: relative; border-top: 1px solid var(--rd-ring); }
table.os-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1080px; font-variant-numeric: tabular-nums; }
.os-table th, .os-table td { font: 13px/1.35 var(--rd-mono); text-align: right; padding: 12px 12px; border-bottom: 1px solid var(--rd-ring); white-space: nowrap; background: var(--rd-plane); transition: background .16s; }
.os-table .c-text { text-align: left; }
.os-table thead th { position: sticky; top: 0; z-index: 2; font: 700 10.5px/1.2 var(--rd-mono); letter-spacing: .06em; color: var(--rd-muted); padding: 0; text-transform: none; border-bottom-color: var(--rd-base); }
/* Every header label sits in one block with the cells' own side padding. */
.os-table thead button, .os-table thead .os-th { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 11px 12px; text-align: inherit; }
.os-table thead button { cursor: pointer; transition: color .15s; }
.os-table thead button:hover { color: var(--rd-ink); }
.os-table thead button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.os-table thead th[aria-sort="ascending"], .os-table thead th[aria-sort="descending"] { color: var(--rd-ink); }
/* The sort arrow sits on the side away from the shared edge. */
.os-table thead th.c-text[aria-sort="ascending"] button::after { content: " \2191"; color: var(--accent); }
.os-table thead th.c-text[aria-sort="descending"] button::after { content: " \2193"; color: var(--accent); }
.os-table thead th[aria-sort="ascending"]:not(.c-text) button::before { content: "\2191 "; color: var(--accent); }
.os-table thead th[aria-sort="descending"]:not(.c-text) button::before { content: "\2193 "; color: var(--accent); }
.os-unit { font-size: 10px; color: var(--rd-ink-2); font-weight: 400; }
/* The first four columns stay pinned while the grid scrolls sideways; each
   pinned width is fixed, so the next can sit beside it. */
.os-table .c-strat, .os-table .c-sym, .os-table .c-spot, .os-table .c-chg { position: sticky; z-index: 1; box-sizing: border-box; }
.os-table .c-strat { left: 0; width: 200px; min-width: 200px; max-width: 200px; }
.os-table td.c-strat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-table .c-sym { left: 200px; width: 64px; min-width: 64px; max-width: 64px; }
.os-table .c-spot { left: 264px; width: 88px; min-width: 88px; max-width: 88px; }
.os-table .c-chg { left: 352px; width: 72px; min-width: 72px; max-width: 72px; box-shadow: inset -1px 0 0 var(--rd-ring); }
.os-table thead .c-strat, .os-table thead .c-sym, .os-table thead .c-spot, .os-table thead .c-chg { z-index: 3; }
/* A phone: the ticker and its spot alone stay pinned. */
@media (max-width: 720px) {
  .os-table .c-strat, .os-table .c-chg { left: auto; box-shadow: none; }
  .os-table .c-sym { left: 0; }
  .os-table .c-spot { left: 64px; box-shadow: inset -1px 0 0 var(--rd-ring); }
}
.os-table tbody tr:hover td { background: var(--rd-surface); }
.os-strat-name { font: 600 13px/1.35 var(--rd-sans); color: var(--rd-ink); }
.os-table td.c-sym b { font-weight: 700; color: var(--rd-ink); }
.os-table td.c-key { color: var(--rd-ink); font-weight: 600; }
.os-table td.c-sec { color: var(--rd-ink-2); }
.os-pos { color: var(--good); }
.os-neg { color: var(--bad); }
.os-unl { color: var(--bad); font-weight: 600; }
.os-em-usd { color: var(--rd-ink-2); }
.os-bp-est { display: inline-block; width: 12ch; margin-right: 6px; text-align: left; font-size: 10px; color: var(--rd-ink-2); }
.os-em-fit { display: inline-block; width: 3.5ch; margin-right: 6px; text-align: left; font-size: 10px; letter-spacing: .04em; color: var(--rd-ink-2); }
.os-legs { font-size: 12px; color: var(--rd-ink); white-space: nowrap; }
.os-leg i { font-style: normal; color: var(--rd-ink-2); }
.os-derived { font-size: 9px; color: var(--rd-ink-2); margin-left: 1px; cursor: help; }
.os-basis { font: 600 10px var(--rd-mono); letter-spacing: .04em; color: var(--rd-ink-2); border: 1px solid var(--rd-ring); border-radius: var(--rd-pill); padding: 3px 8px; }
.os-basis.fmv { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--rd-ring)); }

/* an expanded row: its legs, and its P/L on a stage */
.os-exp {
  all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 6px 0 -4px; vertical-align: -3px;
  border-radius: 50%; cursor: pointer; color: var(--rd-ink-2); transition: transform .25s var(--rd-ease), color .2s, background .2s;
}
.os-exp::before { content: "\25B8"; font-size: 14px; line-height: 1; }
.os-exp[aria-expanded="true"] { transform: rotate(90deg); color: var(--accent); }
.os-exp:hover { color: var(--rd-ink); background: var(--rd-surface-2); }
.os-exp:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.os-table tr.os-open td { background: var(--rd-surface); }
.os-table tr.os-detail-row > td { padding: 0; text-align: left; white-space: normal; background: var(--rd-surface); }
.os-panel { position: sticky; left: 0; box-sizing: border-box; padding: 16px 18px 22px; display: grid; gap: 14px; }
.os-legs-wrap { overflow-x: auto; }
.os-legs-table { border-collapse: collapse; font: 12px/1.35 var(--rd-mono); font-variant-numeric: tabular-nums; min-width: 760px; }
/* Inside the grid, so its rules are the grid's cells' unless said here. */
.os-table .os-legs-table th, .os-table .os-legs-table td { font: 12px/1.35 var(--rd-mono); padding: 7px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--rd-ring); background: transparent; position: static; }
.os-table .os-legs-table thead th { font: 700 10.5px/1.2 var(--rd-mono); letter-spacing: .06em; color: var(--rd-muted); }
.os-table .os-legs-table .c-text { text-align: left; }
.os-table .os-legs-total td { font-weight: 600; color: var(--rd-ink); }
/* The totals and the price readout: tiles, hairlines between them. */
.os-totals, .os-pl-read {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; overflow: hidden;
  background: var(--rd-ring); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm); font: 12px var(--rd-mono);
}
.os-totals div, .os-pl-read div { display: grid; gap: 4px; padding: 12px 14px; background: var(--rd-plane); }
.os-totals dt, .os-pl-read dt { color: var(--rd-ink-2); font-size: 11.5px; }
.os-totals dd, .os-pl-read dd { margin: 0; color: var(--rd-ink); font: 650 18px/1.15 var(--rd-display); letter-spacing: -.015em; font-variant-numeric: tabular-nums; min-height: 1.15em; }
.os-pl { display: grid; gap: 12px; }
.os-pl-slider-row { display: flex; align-items: center; gap: 12px; font: 600 12.5px var(--rd-sans); color: var(--rd-ink-2); }
.os-pl-slider-row input[type="range"] { flex: 1; max-width: 420px; accent-color: var(--rd-ink); }
.os-pl-viz { touch-action: none; cursor: ew-resize; color: var(--rd-ink-2); background: var(--rd-surface-2); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm); padding: 10px; }
.os-pl-viz svg { display: block; width: 100%; }
.os-pl-note { margin: 0; font-size: 12.5px; color: var(--rd-ink-2); max-width: 86ch; }
.os-empty { padding: 44px 16px; text-align: center; color: var(--rd-ink-2); font-size: 15px; }
/* Before the first Scan: what to do, in one panel. */
.os-start {
  display: grid; justify-items: center; gap: 12px; text-align: center; margin-top: 16px; padding: 56px 20px;
  border: 1px dashed var(--rd-base); border-radius: var(--rd-r); background: var(--rd-surface);
}
.os-start svg { width: 44px; height: 44px; color: var(--accent); }
.os-start h2 { margin: 0; font: 650 22px/1.25 var(--rd-display); letter-spacing: -.015em; color: var(--rd-ink); }
.os-start p { margin: 0; max-width: 60ch; color: var(--rd-ink-2); font-size: 15px; line-height: 1.6; }
.os-key { display: inline-block; font: 600 12px/1 var(--rd-sans); padding: 5px 11px; border-radius: var(--rd-pill); background: var(--rd-ink); color: var(--rd-plane); vertical-align: 1px; }
.os-skel { display: block; height: .8em; border-radius: 4px; background: color-mix(in oklab, var(--rd-ink) 9%, transparent); background-size: 240% 100%; margin-left: auto; width: 4em; }
.os-table td:nth-child(-n+3) .os-skel { margin-left: 0; width: 8em; }
.os-progress { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--rd-ring); border-left: 3px solid var(--accent); border-radius: var(--rd-r-sm); background: var(--rd-surface); margin-bottom: 12px; }
.os-bar-track { height: 6px; border-radius: 999px; overflow: hidden; background: color-mix(in oklab, var(--rd-ink) 10%, transparent); }
.os-bar-track > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; }
.os-dnote { font: 12.5px var(--rd-mono); color: var(--rd-ink-2); }
.os-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; font: 12.5px var(--rd-mono); color: var(--rd-ink-2); }
.os-note { font: 13px/1.6 var(--rd-sans); color: var(--rd-ink-2); padding: 12px 16px; border: 1px dashed var(--rd-base); border-radius: var(--rd-r-sm); margin-top: 12px; }
.os-note a { color: var(--accent); text-underline-offset: 3px; }
/* The paywall sits over the results; the rows stay where they are. */
.os-wall {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; z-index: 5;
  background: color-mix(in oklab, var(--rd-plane) 74%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border-radius: var(--rd-r-sm); animation: rd-fade .5s backwards;
}
.os-wall div {
  max-width: 440px; text-align: center; background: var(--rd-surface); border: 1px solid var(--rd-ring); border-radius: var(--rd-r);
  padding: 28px; display: grid; gap: 12px; box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--rd-ink) 60%, transparent);
  animation: rd-rise .5s .08s var(--rd-ease) backwards;
}
.os-wall h2 { margin: 0; font: var(--display-weight, 700) 24px/1.2 var(--rd-display); letter-spacing: -.018em; }
.os-wall p { margin: 0; color: var(--rd-ink-2); font-size: 14.5px; }
.os-wall a { justify-self: center; text-decoration: none; }

/* what the screener is, in the page itself */
.os-about { margin-top: clamp(48px, 7vw, 84px); border-top: 1px solid var(--rd-ring); padding-top: 34px; display: grid; gap: 18px; max-width: 1100px; }
.os-about h3 { margin: 0; font: var(--display-weight, 700) clamp(21px, 2vw, 26px)/1.2 var(--rd-display); letter-spacing: -.016em; color: var(--rd-ink); }
.os-about h3:not(:first-child) { margin-top: 14px; font-size: 17px; }
.os-about p { margin: 0; color: var(--rd-ink-2); line-height: 1.65; font-size: 15.5px; max-width: 86ch; }
/* Each strategy family: its name beside what it is, a hairline under each. */
.os-about dl {
  margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); overflow: hidden;
  background: var(--rd-surface); border: 1px solid var(--rd-ring); border-radius: var(--rd-r-sm);
}
.os-about dt, .os-about dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--rd-ring); }
.os-about dt { font: 650 14.5px/1.45 var(--rd-display); color: var(--rd-ink); }
.os-about dd { color: var(--rd-ink-2); font-size: 14px; line-height: 1.55; }
.os-about dt:last-of-type, .os-about dd:last-of-type { border-bottom: 0; }
@media (max-width: 720px) {
  .os-about dl { grid-template-columns: 1fr; }
  .os-about dt { border-bottom: 0; padding-bottom: 0; }
  .os-about dt:last-of-type { border-bottom: 0; }
}
.os-foot {
  font: 12.5px/1.7 var(--rd-sans); color: var(--rd-ink-2); border-top: 1px solid var(--rd-ring); padding-top: 22px; margin-top: 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px;
}

@media (max-width: 900px) {
  .os-grid { grid-template-columns: 1fr; }
  /* On a narrow screen the list sits above the results and is not pinned. */
  .os-nav { position: static; max-height: none; }
  .os-nav form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  /* Phones: the list is a disclosure above the results, closed by default. */
  .os-grid.is-collapsed { grid-template-columns: 1fr; }
  .os-grid.is-collapsed .os-nav { padding: 6px 14px; }
  .os-grid.is-collapsed .os-nav-toggle { flex-direction: row; padding: 8px 0; }
  .os-grid.is-collapsed .os-nav-toggle svg { transform: rotate(-90deg); }
  .os-grid.is-collapsed .os-nav-label { writing-mode: horizontal-tb; transform: none; flex: 1; }
  .os-nav-toggle svg { transform: rotate(90deg); }
  .os-und input { width: 100%; }
  .os-und { flex: 1 1 100%; }
  /* The pinned bar holds every filter in one row, scrolled sideways. */
  .os-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .os-filter { flex: none; }
  /* Fifty tickers would fill a phone's screen: one row, scrolled sideways. */
  .os-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .os-pill { flex: none; }
  .os-head.has-qs { display: block; }
  .os-head.has-qs > .qs { margin-top: 16px; }
  html[data-rd="screener"] .qs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-foot { grid-template-columns: 1fr; }
}

/* ── loading shimmer ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .sb-skel, .sb-pend, .os-skel {
    background-image: linear-gradient(90deg, transparent 30%, color-mix(in oklab, var(--rd-ink) 10%, transparent) 50%, transparent 70%);
    animation: rd-sweep 1.6s ease-in-out infinite;
  }
  .sb-bar > span, .os-bar-track > span { transition: width .35s ease-out; }
}
/* On paper nothing is pinned. */
@media print {
  .rd-sectors, .os-bar { position: static; }
}
