/* WeAllPeek - one stylesheet for the whole site.
   Neutrals and series colours follow the validated chart palette; up/down are a red/green pair
   checked for colour-blind separation (position or labels always carry the sign as well). */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.ba4038fc5cb5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.65233324c912.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Peek Figures: the ten digits of Schibsted Grotesk in their tabular (equal-width) form and
   nothing else, so columns of numbers line up while punctuation keeps its normal width. */
@font-face { font-family: "Peek Figures"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/peek-figures-wght.5bd808663a78.woff2") format("woff2"); unicode-range: U+0030-0039; }

:root {
  color-scheme: light;
  --num: "Peek Figures", "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: #f4f4f1; --surface: #ffffff; --surface-2: #f0efeb; --surface-3: #e7e6e0;
  --ink: #111110; --ink-2: #4f4e4a; --muted: #6f6d66;
  --rule: #e2e1da; --grid: #ecebe5; --axis: #c6c5bb; --ring: rgba(17,17,16,0.10);
  --band: #141413; --band-ink: #f4f3ef; --band-muted: #a3a199; --band-rule: #2b2b29;
  --band-up: #43cf83; --band-down: #ff7a70;
  --accent: #2a78d6; --accent-soft: rgba(42,120,214,0.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s7: #6250d6;
  --up: #15803d; --down: #dc2626; --mid: #ecebe6;
  --up-soft: rgba(21,128,61,0.10); --down-soft: rgba(220,38,38,0.09);
  --warn-bg: #fff4d6;
  --radius: 10px;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0f0f0e; --surface: #181817; --surface-2: #212120; --surface-3: #2a2a28;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8d85;
    --rule: #2a2a28; --grid: #242422; --axis: #3d3d3a; --ring: rgba(255,255,255,0.10);
    --band: #0a0a09; --band-ink: #f0efec; --band-muted: #95938b; --band-rule: #262624;
    --accent: #3987e5; --accent-soft: rgba(57,135,229,0.16);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s7: #9085e9;
    --up: #1fae5a; --down: #cf3f38; --mid: #34342f;
    --up-soft: rgba(31,174,90,0.14); --down-soft: rgba(207,63,56,0.16);
    --warn-bg: #3a2f10;
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #0f0f0e; --surface: #181817; --surface-2: #212120; --surface-3: #2a2a28;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #8f8d85;
    --rule: #2a2a28; --grid: #242422; --axis: #3d3d3a; --ring: rgba(255,255,255,0.10);
    --band: #0a0a09; --band-ink: #f0efec; --band-muted: #95938b; --band-rule: #262624;
    --accent: #3987e5; --accent-soft: rgba(57,135,229,0.16);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s7: #9085e9;
    --up: #1fae5a; --down: #cf3f38; --mid: #34342f;
    --up-soft: rgba(31,174,90,0.14); --down-soft: rgba(207,63,56,0.16);
    --warn-bg: #3a2f10;
  }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -0.022em; font-weight: 740; margin: 0; }
h2 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 680; margin: 0; }
h3 { font-size: 15px; font-weight: 660; margin: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.sub { color: var(--ink-2); margin: 6px 0 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.up, .pos, .zpos { color: var(--up); }
.down, .neg, .zneg { color: var(--down); }

/* ---------------------------------------------------------------- shell */
.band { background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-rule);
  position: sticky; top: 0; z-index: 20; }
.band-in { max-width: 1320px; margin: 0 auto; padding: 0 32px; height: 58px; display: flex; align-items: center; gap: 36px; }
.brand { color: var(--band-ink); font-weight: 780; font-size: 19px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.band nav { display: flex; gap: 26px; height: 100%; flex: 1; }
.band nav a { color: #c9c7be; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  border-bottom: 2px solid transparent; padding-top: 2px; }
.band nav a:hover { color: var(--band-ink); text-decoration: none; }
.band nav a.on { color: var(--band-ink); border-bottom-color: var(--accent); }
.band .who { display: flex; align-items: center; gap: 18px; font-size: 13.5px; }
.band .who a, .band .who button.link { color: var(--band-muted); }
.band .who a:hover, .band .who button.link:hover { color: var(--band-ink); text-decoration: none; }
.band .btn.small { color: #fff; }
.fresh { display: flex; align-items: center; gap: 8px; color: var(--band-muted); font-size: 13px; white-space: nowrap; font-family: var(--num); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--band-muted); flex: none; }
.dot.live { background: #2fc06c; box-shadow: 0 0 0 0 rgba(47,192,108,0.55); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47,192,108,0); } 100% { box-shadow: 0 0 0 0 rgba(47,192,108,0); } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

main { max-width: 1320px; width: 100%; margin: 0 auto; padding: 30px 32px 64px; }
main.narrow { max-width: 520px; }
footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; margin-top: auto; }
footer .in { max-width: 1320px; margin: 0 auto; padding: 18px 32px 28px; display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); }
.foot-nav a:hover { color: var(--ink); }

.messages { max-width: 1320px; margin: 16px auto 0; padding: 0 32px; }
.msg { padding: 10px 14px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring); margin-bottom: 6px; font-size: 14px; }
.delay-banner { background: var(--warn-bg); text-align: center; padding: 8px; font-size: 14px; color: var(--ink); }

/* ---------------------------------------------------------------- buttons, controls */
.btn, button.btn, .auth-card button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 620;
  cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 10px; }
.btn.ghost, .auth-card .btn.ghost[type=submit] { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--axis); }
.btn.danger, .auth-card .btn.danger[type=submit] { background: var(--down); color: #fff; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 9px; }
.seg button { background: transparent; border: 0; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 560;
  color: var(--ink-2); cursor: pointer; border-radius: 7px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
input.search, .toolbar input, .toolbar select, select.run { font: inherit; font-size: 13.5px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--axis); background: var(--surface); color: var(--ink); }
input.search { width: 190px; }

/* ---------------------------------------------------------------- page header & figures */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.head .crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.head .crumb a { color: var(--muted); }
.asof { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 14px; flex-wrap: wrap; font-family: var(--num); }
.asof b { color: var(--ink); font-weight: 640; }
.tag { font-size: 12px; font-weight: 640; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.tag.live { background: var(--accent-soft); color: var(--accent); }
.links { display: flex; gap: 14px; font-size: 13.5px; }

.figures { display: flex; flex-wrap: wrap; gap: 1px; background: var(--rule);
  border-radius: var(--radius); border: 1px solid var(--rule); margin-bottom: 22px; overflow: hidden; }
.fig { flex: 1 1 150px; padding: 14px 18px 15px; background: var(--surface); min-width: 0; }
.fig .k { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig .v { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.25; margin-top: 3px; white-space: nowrap; font-family: var(--num); }
.fig .v small { font-size: 14px; font-weight: 560; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.fig .n { font-size: 12.5px; color: var(--muted); margin-top: 1px; font-family: var(--num); }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px 0; }
.panel-head .note { font-size: 13px; color: var(--muted); }
.panel-body { padding: 8px 10px 10px; }
.panel-body.pad { padding: 14px 18px 18px; }
.chart { width: 100%; height: 340px; }
.chart:empty::before { content: "Loading chart"; display: flex; height: 100%; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; background: var(--surface-2); border-radius: 8px; }
.chart.short { height: 220px; }
.chart.ext { height: 290px; }
.chart.tall { height: 440px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cols-2 > .panel { margin-bottom: 0; }
.stack > * + * { margin-top: 22px; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }

/* tabs (one per factor, or per book) */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; padding: 0 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 14px 10px;
  font: inherit; cursor: pointer; color: var(--ink-2); text-align: left; white-space: nowrap; }
.tabs button .t { display: block; font-size: 13.5px; font-weight: 620; }
.tabs button .x { display: block; font-size: 12.5px; margin-top: 1px; font-family: var(--num); }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* factor page: today's bars beside the selected factor */
.split { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 22px; margin-bottom: 22px; align-items: stretch; }
.split > .panel { margin-bottom: 0; min-width: 0; }
.split > .panel { display: flex; flex-direction: column; }
.panel-body.grow { flex: 1; display: flex; flex-direction: column; }
.chart.fill { flex: 1; height: auto; min-height: 340px; }
.panel-head .seg { margin-left: auto; }
.cap { font-size: 12.5px; color: var(--muted); padding: 10px 18px 0; }
.split.rev { grid-template-columns: 1fr minmax(280px, 360px); }
.cols-2.inner { padding: 4px 18px 16px; gap: 28px; }
.cols-2.inner h3 { font-size: 13.5px; font-weight: 620; color: var(--ink-2); margin: 6px 0 0; }
table.data.plain th { cursor: default; }
table.data.plain td, table.data.plain th { padding: 11px 12px; font-size: 14px; }
.strip { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.strip .sf { display: flex; flex-direction: column; }
.strip .sf .k { font-size: 12px; color: var(--muted); }
.strip .sf .v { font-size: 17px; font-weight: 680; letter-spacing: -0.01em; font-family: var(--num); }


/* error pages */
.errorpage { text-align: left; }
.errorpage .code { font-size: 13px; font-weight: 640; color: var(--accent); margin: 0 0 6px; font-family: var(--num); }
.errorpage h1 { margin-bottom: 8px; }

/* small multiples */
/* item hairlines come from each panel's own shadow, so a part-filled last row leaves no grey cells */
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 1px;
  overflow: hidden; border-top: 1px solid var(--rule); }
.panel > .multiples { margin: 12px 1px 1px; border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.mult { background: var(--surface); box-shadow: 1px 1px 0 var(--rule); padding: 12px 14px 10px; color: var(--ink); display: block; }
.mgroup { margin: 0; padding: 16px 18px 0; font-size: 14px; font-weight: 640; }
.mgroup span { color: var(--muted); font-weight: 500; margin-left: 3px; }
.mgroup + .multiples { margin-top: 10px; }
.mult:hover { text-decoration: none; background: var(--surface-2); }
.mult .mh { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.mult .mh b { font-size: 14.5px; font-weight: 720; letter-spacing: -0.01em; }
.mult .mh .zv { font-weight: 680; font-family: var(--num); }
.mult .mh .cs { color: var(--muted); }
.mult .mh .nw { margin-left: auto; font-size: 11.5px; font-weight: 640; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.mult svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.mult .mf { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--muted); font-family: var(--num); }
.mult .ax { font-size: 8.6px; fill: var(--muted); font-family: var(--num); }
.fig.hi .k, .fig.hi .v small { color: var(--up); }
.fig.lo .k, .fig.lo .v small { color: var(--down); }

/* ---------------------------------------------------------------- tables */
.tablewrap { overflow: auto; max-height: 680px; }
.tablewrap.full { max-height: none; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.data th { text-align: right; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 10px 12px 9px;
  border-bottom: 1px solid var(--rule); cursor: pointer; white-space: nowrap; user-select: none; position: sticky; top: 0;
  background: var(--surface); z-index: 1; }
table.data th:hover { color: var(--ink); }
table.data th.l, table.data td.l, table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td { text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--grid); white-space: nowrap; font-family: var(--num); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.sym a, table.data td.sym { font-weight: 680; color: var(--ink); }
table.data td.dim { color: var(--muted); }
table.data th.sorted { color: var(--ink); }
table.data th.sorted::after { content: " \2193"; } table.data th.sorted.asc::after { content: " \2191"; }
table.data td.zcell { font-weight: 640; }
.bar-cell { display: inline-block; height: 8px; border-radius: 2px; vertical-align: middle; margin-left: 8px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.status-ok { color: var(--up); font-weight: 640; } .status-failed { color: var(--down); font-weight: 640; } .status-running { color: var(--s4); font-weight: 640; }
pre.msg-body { white-space: pre-wrap; font-size: 12px; color: var(--ink-2); max-height: 120px; overflow: auto; margin: 4px 0 0; font-family: inherit; }

/* ---------------------------------------------------------------- forms & account pages */
.auth-card, .form-card { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); padding: 30px 32px; margin: 28px auto 48px; }
.auth-card h1, .form-card h1 { font-size: 26px; margin-bottom: 12px; }
.auth-card input:not([type=checkbox]):not([type=radio]), .auth-card select, .form-card input:not([type=checkbox]):not([type=radio]), .form-card select {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--axis);
  background: var(--surface); color: var(--ink); margin: 4px 0 10px; }
.auth-card label, .form-card label { font-size: 14px; font-weight: 560; }
.auth-card .helptext ul, .form-card .helptext ul { padding-left: 16px; color: var(--muted); font-size: 12px; margin: 0; }
.auth-card ul.errorlist, .form-card ul.errorlist { color: var(--down); font-size: 14px; margin-top: 0; }
.auth-card .helptext, .form-card .helptext { color: var(--muted); font-size: 12px; display: block; margin-top: -6px; margin-bottom: 8px; }
.auth-card .sub, .form-card .sub { color: var(--ink-2); margin: 0 0 20px; }
.auth-card .fine { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 5px; }
.field input:not([type=checkbox]):not([type=radio]), .field select { margin: 0; }
.field.check { display: flex; align-items: center; gap: 8px; }
.field.check label { font-weight: 500; margin: 0; }
.field .helptext { margin: 6px 0 0; }
.field .helptext ul { margin: 0; padding-left: 16px; }
.field .helptext a { font-size: 13px; }
.field ul.errorlist { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.field.has-error input, .field.has-error select { border-color: var(--down); }
.auth-card .social { margin-top: 18px; }
.auth-card .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 14px; }
.auth-card .or::before, .auth-card .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.auth-card button[type=submit] { width: 100%; margin-top: 8px; }
.auth-card .btn.ghost[type=submit], .auth-card .btn.danger[type=submit] { width: auto; margin: 8px 8px 0 0; }
.auth-card h2 { font-size: 18px; margin: 26px 0 10px; }
.auth-card input[type=radio] { margin-right: 8px; accent-color: var(--accent); }
.auth-card form button:not([type=submit]) { margin-top: 6px; }
.acct-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--rule); }
.acct-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.acct-list li span { color: var(--muted); }

/* ---------------------------------------------------------------- landing page */
main.landing { padding-top: 0; }
.lp-hero { padding: clamp(48px, 8vw, 96px) 0 36px; }
.lp-hero h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 780; max-width: 17ch; margin: 0 0 22px; text-wrap: balance; }
.lp-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 54ch; margin: 0 0 28px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-fresh { margin: 26px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--axis); flex: none; }
.lp-dot.live { background: var(--up); }
.lp-chart { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 8px; }
.lp-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lp-chart-head h2 { font-size: 15px; font-weight: 660; margin: 0; }
.lp-chart-head p { margin: 0; font-size: 14px; color: var(--muted); }
.lp-plot { height: clamp(260px, 36vw, 420px); margin: 6px -8px 0; }
.lp-what { display: grid; grid-template-columns: repeat(3, 1fr); margin: 56px 0 8px; }
.lp-what > div { padding: 18px 28px 6px 0; border-top: 1px solid var(--rule); }
.lp-what > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.lp-what h3 { font-size: 18px; font-weight: 680; letter-spacing: -0.01em; margin: 0 0 8px; }
.lp-what h3 a { color: var(--ink); }
.lp-what p { color: var(--ink-2); max-width: 36ch; margin: 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .cols-2, .split, .split.rev { grid-template-columns: 1fr; }
  .band-in { gap: 18px; padding: 0 16px; }
  .band nav { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .band nav::-webkit-scrollbar { display: none; }
  .fresh span.when { display: none; }
}
@media (max-width: 760px) {
  main { padding: 20px 16px 48px; }
  .messages { padding: 0 16px; }
  footer .in { padding: 16px; }
  h1 { font-size: 25px; }
  .band-in { height: auto; min-height: 54px; flex-wrap: wrap; row-gap: 0; padding: 8px 16px 0; }
  .band nav { order: 3; flex-basis: 100%; height: 40px; }
  .band .who { margin-left: auto; gap: 12px; }
  .band .who .email { display: none; }
  .fig { padding: 11px 14px 12px; }
  .fig .v { font-size: 20px; }
  .panel-head { padding: 12px 14px 0; }
  .lp-what { grid-template-columns: 1fr; margin-top: 40px; }
  .lp-what > div, .lp-what > div + div { padding: 16px 0 14px; border-left: 0; }
  .auth-card, .form-card { padding: 24px 20px; }
  .multiples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mult { padding: 10px 10px 8px; }
  .mult .mh .cs { display: none; }
  .mgroup { padding: 14px 14px 0; }
  .hide-sm { display: none; }
}

/* printing a page: no navigation or controls, panels kept whole */
@media print {
  .band nav, .band .who, .fresh, .seg, input.search, select.run, footer .foot-nav { display: none !important; }
  .band { position: static; }
  body { background: #fff; }
  .panel, .figures, .mult { break-inside: avoid; }
  .tablewrap { max-height: none; overflow: visible; }
}

/* Terms and Privacy */
.legal { max-width: 72ch; }
.legal h1 { margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.legal h2 { font-size: 18px; margin: 30px 0 8px; }
.legal h3 { font-size: 15px; margin: 18px 0 6px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }

/* one line under the factor tabs */
.fdesc { margin: 0; padding: 10px 18px 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.fdesc b { color: var(--ink); font-weight: 620; }

/* explanations: an intro under the page title, a line under a heading, a caption under a chart; full width */
.lead { margin: -8px 0 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.lead b { color: var(--ink); font-weight: 620; }
.panel-head .ttl { display: flex; flex-direction: column; gap: 3px; flex: 1 1 320px; min-width: 0; }
.ttl .sub { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.foot { margin: 0; padding: 11px 18px 14px; border-top: 1px solid var(--rule); color: var(--ink-2);
  font-size: 13px; line-height: 1.55; }
.nwk { font-size: 11.5px; font-weight: 640; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.tabs + .explain { padding-top: 12px; }

/* "Sign in with Google", in Google's own button style (light and dark) */
.auth-card button.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  height: 42px; margin: 0; padding: 0 16px; border: 1px solid #747775; border-radius: 6px; background: #fff;
  color: #1f1f1f; font: 500 14.5px/1 "Roboto", "Helvetica Neue", Arial, sans-serif; letter-spacing: .25px;
  cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.auth-card button.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.auth-card button.btn-google:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }
.btn-google .g-logo { width: 18px; height: 18px; flex: none; }
@media (prefers-color-scheme: dark) {
  .auth-card button.btn-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  .auth-card button.btn-google:hover { background: #1f1f20; }
}
/* find a stock's page */
.findsym input { width: 150px; padding: 6px 10px; border: 1px solid var(--axis); border-radius: 8px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13.5px; text-transform: uppercase; }
.findsym input::placeholder { text-transform: none; color: var(--muted); }

/* explanations and legal text: justified on wider screens, hyphenated so the spacing stays even */
@media (min-width: 640px) {
  .lead, .foot, .ttl .sub, .fdesc, .legal p, .legal li {
    text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty;
  }
}

/* ---------------------------------------------------------------- index strip */
/* S&P 500 and Nasdaq under the top bar on every page, in the bar's own colours */
.tape { background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-rule); font-family: var(--num); }
.tape-in { max-width: 1320px; margin: 0 auto; padding: 7px 32px 8px; display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 2px 26px; font-size: 13px; line-height: 1.4; }
.tq { white-space: nowrap; }
.tq .tn { color: var(--band-muted); margin-right: 7px; }
.tq .tv { font-weight: 600; margin-right: 5px; }
.tq .tc { font-weight: 600; color: var(--band-muted); }
.tq .tc.up { color: var(--band-up); }
.tq .tc.down { color: var(--band-down); }
.tape .tt { margin-left: auto; color: var(--band-muted); font-size: 12.5px; white-space: nowrap; }

/* the same two indices on the landing page, beside the headline */
.lp-hero.has-mkt { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: end; }
.lp-mkt { width: min(100%, 400px); border-top: 2px solid var(--ink); padding-top: 14px; font-family: var(--num); }
.lp-ix { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.lp-ix .k { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.lp-ix .v { font-size: clamp(26px, 2.5vw, 34px); font-weight: 740; letter-spacing: -0.02em; line-height: 1.15; margin-top: 2px; }
.lp-ix .c { font-size: 17px; font-weight: 660; color: var(--muted); margin-top: 1px; }
.lp-ix .c.up { color: var(--up); }
.lp-ix .c.down { color: var(--down); }
.lp-ix-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); max-width: 44ch; }
@media (max-width: 1080px) {
  .lp-hero.has-mkt { display: block; }
  .lp-mkt { margin-top: 30px; }
}
@media (max-width: 760px) {
  .tape-in { padding: 6px 16px 7px; column-gap: 12px; font-size: 12px; }
  .tq .tn { margin-right: 5px; }
  .tq .tv { margin-right: 4px; }
  .tape .tt { margin-left: 0; flex-basis: 100%; font-size: 11.5px; }
  .band nav.signed-out { display: none; }          /* no links to show: no empty row */
}
@media print { .tape { display: none; } }

/* ---- status page sections */
h2.sec { font-size: 17px; font-weight: 680; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h2.sec .note { font-size: 13px; font-weight: 400; color: var(--muted); }
h2.sec + .figures { margin-bottom: 22px; }
.cols-2.gap { margin-bottom: 22px; }
.cols-2 > * { min-width: 0; }                   /* a wide table scrolls inside its panel */

/* ---- overview: the three sections side by side */
.ov { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.ov-card { margin-bottom: 0; padding: 18px 20px 20px; display: flex; flex-direction: column; border-top: 3px solid var(--accent); }
.ov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ov-head h2 { font-size: 21px; font-weight: 720; letter-spacing: -0.015em; margin: 0; }
.ov-head h2 a { color: var(--ink); text-decoration: none; }
.ov-head h2 a:hover { color: var(--accent); }
.ov-head .note { font-size: 12.5px; color: var(--muted); font-family: var(--num); }
.ov-what { margin: 6px 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; min-height: 3.9em; }
.ov-card h3 { font-size: 13px; font-weight: 620; color: var(--ink-2); margin: 14px 0 8px; }
.ov-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-family: var(--num); }
.ov-figs .k { font-size: 12px; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.ov-figs .v { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.ov-bars { list-style: none; margin: 0; padding: 0; font-family: var(--num); }
.ov-bars li { display: grid; grid-template-columns: 58px 1fr 54px; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.ov-bars.wide li { grid-template-columns: 132px 1fr 62px; }
.ov-bars .lab { font-weight: 650; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ov-bars a.lab:hover { color: var(--accent); }
.ov-bars .nm { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.ov-bars .track { height: 12px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ov-bars .bar { display: block; height: 100%; border-radius: 3px; min-width: 2px; }
.ov-bars .bar.up, .ov-bars .bar.hi { background: var(--up); }
.ov-bars .bar.dn, .ov-bars .bar.lo { background: var(--down); }
.ov-bars .val { text-align: right; font-weight: 620; }
.chart.ov-plot { height: 190px; }
.ov-line { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); font-family: var(--num); }
.ov-empty { color: var(--muted); }
.ov-go { margin-top: auto; align-self: flex-start; }
.ov-card > .ov-go { margin-top: 18px; }
.ov-card > :nth-last-child(2) { margin-bottom: auto; }
@media (max-width: 1080px) { .ov { grid-template-columns: 1fr; } .ov-what { min-height: 0; } }

/* ---- a live figure on each tab, and the other sections on every data page */
.tabfig { font-family: var(--num); font-size: 12.5px; font-weight: 620; color: var(--band-muted); padding: 2px 7px;
  border-radius: 999px; background: rgba(255,255,255,0.07); }
.tabfig.pos, .tabfig.zpos { color: var(--band-up); }
.tabfig.neg, .tabfig.zneg { color: var(--band-down); }
.more { display: flex; align-items: stretch; gap: 10px; margin: -4px 0 18px; flex-wrap: wrap; }
.more-k { align-self: center; font-size: 12.5px; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.more-card { flex: 1 1 200px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 14px 10px 14px;
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 10px;
  color: var(--ink); text-decoration: none; line-height: 1.3; min-width: 0; transition: background 0.12s, box-shadow 0.12s; }
.more-card:hover, .more-card:focus-visible { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); text-decoration: none; }
.more-card .t { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--accent); white-space: nowrap; }
.more-card .t .ico { width: 17px; height: 17px; flex: none; }
.more-card .go { margin-left: auto; font-size: 17px; line-height: 1; }
.more-card .f { font-family: var(--num); font-size: 13.5px; padding-left: 24px; }
.more-card .f .w, .more-card .f.w { color: var(--muted); font-size: 12.5px; font-family: inherit; }
@media (max-width: 760px) { .tabfig { display: inline; padding: 1px 6px; font-size: 11.5px; } .more-k { flex-basis: 100%; } .more-card { white-space: normal; } }
@media print { .more { display: none; } }
.field label .opt { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }

/* ---------------------------------------------------------------- macro tab, bond panel */
.figures.flat { border-radius: 0; border-width: 1px 0; margin: 12px 0 4px; }
.fig .v.range { font-size: 19px; line-height: 1.58; }
.keys { display: flex; gap: 18px; flex-wrap: wrap; padding: 6px 12px 0; font-size: 12.5px; color: var(--ink-2); }
.keys span { display: inline-flex; align-items: center; gap: 7px; }
.keys i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; background: var(--s1); }
.keys i.k95 { opacity: 0.28; }
.keys i.kdot { width: 10px; border-radius: 50%; background: var(--ink); }
.tablewrap.pad { padding: 4px 8px 6px; }
table.data tr.ref td { color: var(--ink-2); border-top: 1px solid var(--axis); }
table.data sup { color: var(--muted); font-weight: 400; margin-left: 1px; }
.cols-2.inner.pd { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-top: 10px; }
.cols-2.inner { row-gap: 18px; }
.lp-what.four { grid-template-columns: repeat(4, 1fr); }
.lp-what.four > div { padding-right: 20px; }
.lp-what.four > div + div { padding-left: 20px; }
.ov.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ov.four .ov-what { min-height: 0; }
@media (max-width: 900px) {
  .cols-2.inner.pd { grid-template-columns: 1fr; }
  .lp-what.four { grid-template-columns: repeat(2, 1fr); }
  .lp-what.four > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ov.four { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fig .v.range { font-size: 16px; }
  .lp-what.four { grid-template-columns: 1fr; }
  .lp-what.four > div, .lp-what.four > div + div { padding: 16px 0 14px; border-left: 0; }
}

.livenote { margin: 8px 0 0; padding: 0 16px; font-size: 13px; color: var(--ink-2); }
.livenote .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.keys i.know { width: 9px; height: 9px; border-radius: 1px; background: var(--surface); border: 2px solid var(--ink); transform: rotate(45deg); margin: 0 3px; }
.fig .v small { font-size: 0.55em; font-weight: 500; color: var(--ink-2); margin-left: 3px; }

/* the summary bar at the top of a page: each figure jumps to its section */
.figures.summary { margin-bottom: 16px; }
.figures.summary .fig { color: inherit; text-decoration: none; flex-basis: 160px; border-top: 3px solid var(--s1); transition: background 0.12s; }
.figures.summary .fig:hover, .figures.summary .fig:focus-visible { background: var(--surface-2); }
section.panel { scroll-margin-top: 14px; }

/* summary bar: a status colour on the cell's top edge, repeated as a dot with the word, never colour alone */
:root { --good: #1a8a4a; --warn: #d99200; --bad: #d63a2f; }
.figures.summary .fig { border-top-color: var(--rule); }
.figures.summary .fig.good { border-top-color: var(--good); }
.figures.summary .fig.warn { border-top-color: var(--warn); }
.figures.summary .fig.bad { border-top-color: var(--bad); }
.figures.summary a#er-sum { border-top-color: var(--s1); }
.figures.summary .n { line-height: 1.4; }
.figures.summary .tone { display: block; color: var(--ink); font-weight: 600; font-family: inherit; }
.figures.summary .tone::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.figures.summary .good .tone::before { background: var(--good); }
.figures.summary .warn .tone::before { background: var(--warn); }
.figures.summary .bad .tone::before { background: var(--bad); }
.figures.summary .nowline { display: block; color: var(--ink); }

/* summary bar: small charts, and boxes that hold two measures */
.figures.summary .fig { flex-basis: 190px; }
.figures.summary .fig.two, .figures.summary a#er-sum { flex-basis: 250px; }
.figures.summary .vrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.figures.summary .vrow .nowline { font-size: 13px; color: var(--ink-2); white-space: nowrap; font-family: var(--num); }
svg.spark { width: 84px; flex: none; overflow: visible; }
svg.spark polyline { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
svg.spark circle { fill: var(--ink-2); }
svg.spark.good circle { fill: var(--good); } svg.spark.warn circle { fill: var(--warn); } svg.spark.bad circle { fill: var(--bad); }
svg.rangebar { display: block; width: 100%; max-width: 280px; margin: 5px 0 1px; overflow: visible; }
svg.rangebar .r0 { fill: var(--s1); opacity: 0.1; } svg.rangebar .r95 { fill: var(--s1); opacity: 0.3; } svg.rangebar .r68 { fill: var(--s1); opacity: 0.75; }
svg.rangebar .zero { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 2; }
svg.rangebar .mean { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
svg.rangebar .now { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.figures.summary .ends { display: flex; justify-content: space-between; max-width: 280px; font-size: 12px; color: var(--muted); font-family: var(--num); }
.figures.summary .row { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; column-gap: 8px; margin-top: 7px; font-size: 13px; }
.figures.summary .row .what { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figures.summary .row b { font-family: var(--num); font-weight: 650; font-size: 15px; white-space: nowrap; }
.figures.summary .row svg.spark { width: 64px; }
.figures.summary .row .tone { grid-column: 1 / -1; font-size: 12.5px; margin-top: -1px; }
.figures.summary .fig.two { flex: 1.5 1 290px; }
.figures.summary .fig .row .tone::before { background: var(--muted); }
.figures.summary .fig .row.good .tone::before { background: var(--good); }
.figures.summary .fig .row.warn .tone::before { background: var(--warn); }
.figures.summary .fig .row.bad .tone::before { background: var(--bad); }
.figures.summary .row { max-width: 340px; }
/* summary bar: each box's content sits in the middle of the box, across and down */
.figures.summary .fig { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.figures.summary .fig > * { width: 100%; }
.figures.summary .vrow { justify-content: center; gap: 12px; }
.figures.summary svg.rangebar, .figures.summary .ends { margin-left: auto; margin-right: auto; }
.figures.summary .row { margin-left: auto; margin-right: auto; text-align: left; }
.figures.summary .fig.two > .k { margin-bottom: -1px; }

.figures a.fig { color: inherit; text-decoration: none; }
.figures a.fig:hover, .figures a.fig:focus-visible { background: var(--surface-2); }
.figures.summary { margin-bottom: 22px; }

/* the same bar on every data page: plain boxes take less room than the two-measure ones */
.figures.summary .fig { flex-basis: 160px; border-top: 3px solid var(--rule); }
.figures.summary .fig.two, .figures.summary a#er-sum { flex-basis: 250px; }
.figures.summary .fig.good { border-top-color: var(--good); }
.figures.summary .fig.warn { border-top-color: var(--warn); }
.figures.summary .fig.bad { border-top-color: var(--bad); }
.figures.summary .v small { font-size: 14px; }
.figures.summary .vrow { flex-wrap: wrap; row-gap: 2px; }
.figures.summary .vrow svg.spark { flex: 0 1 72px; min-width: 46px; width: auto; }
.figures.summary .fig { overflow: hidden; }
/* summary bars: the headline number wears its status colour (signed returns keep green / red by sign) */
:root { --warn-ink: #9a6200; }
@media (prefers-color-scheme: dark) { :root { --warn-ink: #e3a93c; } }
.figures.summary .fig.good .v:not(.pos):not(.neg), .figures.summary .row.good b { color: var(--up); }
.figures.summary .fig.warn .v:not(.pos):not(.neg), .figures.summary .row.warn b { color: var(--warn-ink); }
.figures.summary .fig.bad .v:not(.pos):not(.neg), .figures.summary .row.bad b { color: var(--down); }
.figures.summary .fig.two > .v { color: inherit; }

/* top bar: Status sits with the account links (always in view); tabs give way in steps as the window narrows */
.band nav { gap: 22px; }
.band-in { gap: 28px; }
.band nav .short, .band .who .acct { display: none; }
.band .who a.staff { color: var(--band-ink); font-weight: 600; border: 1px solid #4a4944; border-radius: 6px; padding: 3px 9px; }
.band .who a.staff.on { border-color: var(--accent); }
@media (max-width: 1560px) { .band .who .email { display: none; } .band .who .acct { display: inline; } }
@media (max-width: 1400px) { .band nav .full { display: none; } .band nav .short { display: inline; } }
@media (max-width: 1240px) { .tabfig { display: none; } }
@media (max-width: 1380px) { .band nav:not(.signed-out) ~ .fresh span:not(.dot) { display: none; } }
@media (max-width: 760px) { .tabfig { display: inline; } .band nav { overflow-x: auto; } }
@media (max-width: 760px) { .band .who .acct { display: none; } }

/* when a page or a panel was last updated: small, quiet, beside the heading */
.stamp { font-family: var(--num); font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
h2 .stamp { margin-left: 10px; }
h2 .stamp::before { content: ""; display: inline-block; width: 1px; height: 11px; background: var(--rule); margin-right: 10px; vertical-align: -1px; }
.asof .stamp { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) { h2 .stamp { display: block; margin: 2px 0 0; } h2 .stamp::before { display: none; } }

/* status colours on the figures inside a section (same rule as the summary bar) */
.figures.flat .fig.good .v:not(.pos):not(.neg) { color: var(--up); }
.figures.flat .fig.warn .v:not(.pos):not(.neg) { color: var(--warn-ink); }
.figures.flat .fig.bad .v:not(.pos):not(.neg) { color: var(--down); }

/* registration: the code page, "did you mean" under an email box, forms on their way */
.auth-card .addr { font-weight: 640; overflow-wrap: anywhere; }
.auth-card input.code-input { font-family: var(--num); font-size: 30px; font-weight: 640; letter-spacing: 0.32em; text-align: center;
  padding: 12px 10px 12px calc(10px + 0.32em); }
.auth-card .help-list { margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--rule); }
.auth-card .help-list h2 { font-size: 16px; margin: 18px 0 8px; }
.auth-card .help-list ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.auth-card .help-list li { margin: 7px 0; }
.auth-card .help-list details > summary { cursor: pointer; color: var(--accent); }
.auth-card .help-list details[open] > summary { margin-bottom: 12px; }
.auth-card .help-list .change-form { margin: 0 0 6px; }
.auth-card form.inline-form { display: inline; }
.auth-card button.link, .auth-card form button.link[type=submit] { all: unset; color: var(--accent); cursor: pointer; font: inherit; width: auto; margin: 0; }
.auth-card button.link:hover { text-decoration: underline; }
.auth-card button.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.auth-card .start-over { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }
.suggest { margin: 8px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--warn); }
.suggest p { margin: 0 0 10px; font-size: 14.5px; color: var(--ink); }
.suggest-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-card .suggest-actions button.btn.small, .suggest-actions button.btn.small { width: auto; margin: 0; padding: 7px 13px; font-size: 13.5px;
  overflow-wrap: anywhere; text-align: left; }
form.is-sending button[aria-busy=true] { opacity: 0.6; cursor: progress; }
.errorpage .btn { margin: 6px 8px 0 0; }
.msg.error { box-shadow: inset 3px 0 0 var(--bad), inset 0 0 0 1px var(--ring); }
.msg.success { box-shadow: inset 3px 0 0 var(--good), inset 0 0 0 1px var(--ring); }
.msg.warning { box-shadow: inset 3px 0 0 var(--warn), inset 0 0 0 1px var(--ring); }
.auth-card .help-list .aside { color: var(--muted); }
.figures .fig.bad .n b { color: var(--bad); }
.figures .fig.warn .n b { color: var(--warn-ink); }

/* earnings */
table.data.earn td.name, table.data.earn-past td.name { font-family: inherit; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
table.data.earn td.dim.l { font-family: inherit; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
table.data.earn .est { color: var(--muted); font-weight: 400; }
table.data.earn-past td { vertical-align: top; line-height: 1.35; }
table.data.earn-past td .when, table.data.earn-past td .was { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
table.data.earn-past td b { font-size: 15px; font-weight: 650; }
@media (max-width: 760px) { table.data.earn td.name, table.data.earn-past td.name { max-width: 118px; } }
/* with live prices the table carries three more columns: tighter cells, shorter names */
table.data.earn.tight th, table.data.earn.tight td { padding-left: 7px; padding-right: 7px; }
table.data.earn.tight td.dim.l { max-width: 160px; }
@media (max-width: 1300px) { table.data.earn.tight td.dim.l { max-width: 140px; } }
@media (max-width: 760px) { table.data.earn.tight td.name { max-width: 66px; } table.data.earn.tight th, table.data.earn.tight td { padding-left: 5px; padding-right: 5px; } }

/* the live forecast box: the second figure, under the bar */
.figures.summary .tofc { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.figures.summary .tofc b { font-family: var(--num); font-weight: 600; }

/* Treasury yields in the summary bar: maturity, yield, move in basis points */
.figures.summary .row.yrow { grid-template-columns: minmax(0, 1fr) auto 62px; margin-top: 5px; }
.figures.summary .row.yrow b { font-family: var(--num); }
.figures.summary .row.yrow .chg { text-align: right; font-family: var(--num); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
/* seven boxes do not fit one row on a desktop: four above, three below, not six and a stray one */
@media (min-width: 1000px) { .figures.summary.rows2 .fig { flex-basis: 23%; } }
.figures.summary .row.yrow b.pos, .figures.summary .row.yrow .chg.pos { color: var(--up); }
.figures.summary .row.yrow b.neg, .figures.summary .row.yrow .chg.neg { color: var(--down); }

/* four cards or more: one row on a desktop. Each card stacks its title, figure and line, so it can be narrow. */
@media (min-width: 1000px) {

}

/* earnings: the last four reactions side by side in one cell, and the count behind a sector average */
table.data.earn td.past4, table.data.earn th.past4 { white-space: nowrap; }
table.data.earn td.past4 span.q { display: inline-block; min-width: 46px; text-align: right; line-height: 1.25; vertical-align: middle; }
table.data.earn td.past4 span.q i { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); font-family: inherit; }
table.data.earn td.past4 span.q b { display: block; font-weight: 500; font-size: 12px; letter-spacing: -0.01em; }
table.data.earn td.past4 b.dim { color: var(--muted); }
table.data.earn td small.pn { margin-left: 5px; color: var(--muted); font-weight: 400; font-size: 11.5px; }
table.data.earn td small.pn::before { content: "n "; }
table.data.earn td small.pn.sec::before { content: "sector "; }

/* Macro: the day's top market stories, as a news wire above the summary bar: a centred box, lines to the left */
.newswire { max-width: 820px; margin: 0 auto 16px; padding: 10px 18px 6px; text-align: left;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.newswire .nw-head { display: flex; justify-content: center; align-items: baseline; gap: 10px; padding-bottom: 6px; font-size: 12px; color: var(--muted); }
.newswire .nw-k { font-weight: 650; color: var(--ink-2); }
.newswire ul { list-style: none; margin: 0 auto; padding: 0; width: fit-content; max-width: 100%; }   /* the lines as one block, centred; each starts at the same point */
.newswire li { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: baseline; column-gap: 10px; padding: 6px 0;
  border-top: 1px solid var(--grid); }
.newswire time { font: 500 11.5px/1 var(--num); color: var(--muted); text-align: right; }
.newswire a, .newswire .h { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 550; color: var(--ink); text-decoration: none; }
.newswire a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 760px) { .newswire { padding: 8px 12px 4px; } .newswire li { grid-template-columns: 56px minmax(0, 1fr); } }

/* the top bar when the tabs would not fit (set by base.html): first the e-mail goes, then the tab figures */
.band.tight .who .email { display: none; } .band.tight .who .acct { display: inline; }
.band.tighter .tabfig { display: none; }
@media (max-width: 760px) { .band.tight .who .acct, .band.tighter .who .acct { display: none; } }

/* earnings: the tables fit the window. The company's name sits under its ticker, headings wrap onto
   two lines, long names and industries are cut with an ellipsis (the whole one on hover). */
table.data.earn th { white-space: normal; vertical-align: bottom; line-height: 1.2; padding: 8px 8px 7px; }
table.data.earn td { padding: 6px 8px; }
table.data.earn td.sym { line-height: 1.2; }
table.data.earn td.sym .tk { display: block; }
table.data.earn td.sym .co { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-weight: 400;
  font-size: 11.5px; color: var(--muted); font-family: inherit; }
table.data.earn td.dim.l { max-width: 170px; }
@media (max-width: 1400px) { table.data.earn td.sym .co { max-width: 150px; } table.data.earn td.dim.l { max-width: 152px; }
  table.data.earn th, table.data.earn td { padding-left: 6px; padding-right: 6px; } table.data.earn { font-size: 13px; } }
@media (max-width: 760px) { table.data.earn td.sym .co { max-width: 110px; } }

/* earnings: a company's last four reports, opened under its row */
table.data.earn tr.has-past { cursor: pointer; }
table.data.earn tr.has-past:hover td { background: var(--hover, rgba(0,0,0,.025)); }
table.data.earn td.sym { position: relative; padding-left: 22px; }
table.data.earn td.sym button.xp { position: absolute; left: 4px; top: 9px; width: 14px; height: 14px; padding: 0; border: 0; background: none;
  cursor: pointer; color: var(--muted); }
table.data.earn td.sym button.xp::before { content: ""; display: block; width: 0; height: 0; margin: 2px 0 0 4px;
  border-style: solid; border-width: 5px 0 5px 7px; border-color: transparent transparent transparent currentColor; transition: transform .15s; }
table.data.earn tr.open td.sym button.xp::before { transform: rotate(90deg); }
table.data.earn td.sym button.xp:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
table.data.earn tr.open td { border-bottom-color: transparent; }
table.data.earn tr.past-row > td { padding: 2px 8px 12px 22px; background: var(--panel-2, rgba(0,0,0,.02)); white-space: normal; text-align: left; }
table.past-mini { border-collapse: collapse; font-size: 12.5px; font-family: var(--num); }
table.past-mini th { font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 6px 14px 4px 0; text-align: right; white-space: nowrap; }
table.past-mini td { padding: 3px 14px 3px 0; text-align: right; white-space: nowrap; border: 0; }
table.past-mini .l { text-align: left; }
table.past-mini .dim { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { table.data.earn td.sym button.xp::before { transition: none; } }

/* earnings: the row of small charts above the tables */
.earn-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 16px; }
.earn-charts > .panel { margin-bottom: 0; min-width: 0; }
.earn-charts .panel-head { padding-top: 10px; }
.earn-charts .panel-head h2 { font-size: 13.5px; }
.earn-charts .panel-body { padding-top: 2px; padding-bottom: 6px; }
.earn-charts p.small { font-size: 11.5px; margin: 0 0 2px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-charts .key { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin: 0 1px; }
.earn-charts .key.s1 { background: var(--s1); } .earn-charts .key.s2 { background: var(--s2); }
.earn-charts .chart { height: 170px; min-height: 0; }

/* explanations, folded: the gist always shows; "More" opens the full text (a <details>, no script) */
.explain, p.gist { margin: 0; padding: 10px 18px 14px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.explain > summary { list-style: none; cursor: pointer; }
.explain > summary::-webkit-details-marker { display: none; }
.explain > summary .xmore::before { content: "More"; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--s1); white-space: nowrap; }
.explain > summary .xmore::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: 1px;
  border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent var(--s1); transition: transform .15s; }
.explain[open] > summary .xmore::before { content: "Less"; }
.explain[open] > summary .xmore::after { transform: rotate(90deg); }
.explain > summary:hover .xmore::before { text-decoration: underline; }
.explain > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.explain .full { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--grid); color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.explain .sr, p.gist .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .explain > summary .xmore::after { transition: none; } }

/* ===================================================================== Macro, by time horizon */
.head .chg-line { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); }
.head .chg-line b { font-weight: 650; color: var(--ink); } .head .chg-line b.pos { color: var(--up); } .head .chg-line b.neg { color: var(--down); }
.mx-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.mx-top > .panel, .mx-side > .panel { margin-bottom: 0; min-width: 0; }
.mx-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mx-side .panel-head h2 { font-size: 14px; }
ul.side-list { list-style: none; margin: 0; padding: 4px 18px 14px; }
ul.side-list li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--grid); font-size: 13.5px; line-height: 1.4; }
ul.side-list li:first-child { border-top: 0; }
ul.side-list time { color: var(--muted); font-size: 12px; font-family: var(--num); padding-top: 1px; }
ul.side-list a { color: var(--ink); text-decoration: none; } ul.side-list a:hover { text-decoration: underline; }
ul.side-list .dim { display: block; color: var(--muted); font-size: 12px; }
.figures.summary.strip { margin-bottom: 16px; }
.mx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.mx-two > .panel { margin-bottom: 0; min-width: 0; }
.mx-two .figures.flat .fig .v small { font-size: 0.6em; color: var(--muted); }
#cycle .figures.flat .fig .tone, .mx-two .fig .tone { margin-right: 6px; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; }
.pane-head .cap { margin: 0; }
.pane-head.pad-x { padding: 4px 18px 0; }
.seg.tabs button { font-weight: 600; }
details.fold-table > summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--s1); margin: 6px 0 2px; list-style: none; }
details.fold-table > summary::-webkit-details-marker { display: none; }
details.fold-table > summary::after { content: " ▸"; } details.fold-table[open] > summary::after { content: " ▾"; }
details.fold-panel > summary { cursor: pointer; list-style: none; }
details.fold-panel > summary::-webkit-details-marker { display: none; }
details.fold-panel > summary .open-label::before { content: "Show charts ▸"; font-size: 12.5px; font-weight: 600; color: var(--s1); white-space: nowrap; }
details.fold-panel[open] > summary .open-label::before { content: "Hide charts ▾"; }
details.fold-panel:not([open]) > summary { padding-bottom: 14px; }
@media (max-width: 1100px) { .mx-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 980px) { .mx-top { grid-template-columns: minmax(0, 1fr); } }

/* a livenote folded into an explanation keeps its own small type */
.livenote-x.explain { padding: 6px 18px 4px; font-size: 12.5px; color: var(--muted); }
.livenote-x.explain .full { font-size: 12.5px; }
/* two panels side by side: the figures in one even row */
.mx-two .figures.flat { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.mx-two .figures.flat .fig { min-width: 0; }
.mx-two .figures.flat .fig .v { font-size: 22px; }
.mx-two .figures.flat .fig .n { font-size: 12px; }
#return .figures.flat .fig .v { font-size: 24px; }
#return .figures.flat .fig.quiet .v { font-size: 18px; color: var(--ink-2); }
@media (max-width: 760px) { #return .figures.flat .fig .v { font-size: 18px; } #return .figures.flat .fig.quiet .v { font-size: 16px; } }
#return table.data th, #return table.data td { padding-left: 8px; padding-right: 8px; } #return table.data { font-size: 13px; }

/* Macro: news and upcoming events side by side, above the top bar */
.nw-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin: 0 0 16px; }
.nw-row .newswire { max-width: none; margin: 0; width: 100%; box-sizing: border-box; }
.nw-row .newswire ul { width: auto; }
.newswire.events li { grid-template-columns: 74px minmax(0, 1fr); }
.newswire .dim { color: var(--muted); font-weight: 400; font-size: 12.5px; }
@media (max-width: 900px) { .nw-row { grid-template-columns: minmax(0, 1fr); } }
/* the top bar in two rows: markets, then the economy */
.figures.summary.bar2 .fig { flex: 1 1 0; min-width: 150px; }
.figures.summary.bar2 .fig.two, .figures.summary.bar2 a#er-sum { flex: 2 1 0; min-width: 240px; }
.figures.summary.bar2 .brk { flex-basis: 100%; height: 0; padding: 0; margin: 0; }
.figures.summary.bar2 .v.range { font-size: 20px; }
.figures.summary.bar2 a#er-sum { flex: 2 1 0; }

/* Macro's top bar in two bands: live markets (full tiles), then the slow economy (one slim line each) */
.bar-band { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 10px; }
.bar-band.slow { margin-bottom: 22px; }
.bar-band .bar-k { display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 12.5px; color: var(--muted); }
.bar-band .bar-k b { font-size: 14px; color: var(--ink); font-weight: 700; }
.bar-band .bar-k .dot { margin-right: 5px; }
.bar-band .figures.summary { margin-bottom: 0; }
.figures.summary.live-band .fig { flex: 1 1 0; min-width: 140px; }
.figures.summary.live-band .fig.two, .figures.summary.live-band a#er-sum { flex: 2 1 0; min-width: 230px; }
.figures.summary.slow-band .fig { flex: 1 1 0; min-width: 170px; padding: 9px 14px 10px; border-top-width: 2px; align-items: stretch; text-align: left; }
.figures.summary.slow-band .fig .k { font-size: 12px; }
.figures.summary.slow-band .vrow { justify-content: flex-start; flex-wrap: nowrap; gap: 8px; margin-top: 2px; }
.figures.summary.slow-band .v { font-size: 18px; margin-top: 0; }
.figures.summary.slow-band .v small { font-size: 12px; }
.figures.summary.slow-band .tone { display: inline; font-size: 12px; white-space: nowrap; }
.figures.summary.slow-band .tone.plain::before { display: none; }
.figures.summary.slow-band .vrow svg.spark { flex: 0 1 56px; min-width: 36px; margin-left: auto; }
.figures.summary.slow-band .fig.good .v:not(.pos):not(.neg) { color: var(--up); }
@media (max-width: 760px) { .bar-band { grid-template-columns: minmax(0, 1fr); gap: 4px; } .bar-band .bar-k { flex-direction: row; gap: 8px; align-items: baseline; } }
.bar-band .bar-k .dot { display: inline-block; vertical-align: 1px; }
#return tr.now-row td { background: var(--accent-soft); }
@media (max-width: 480px) { .figures.summary.slow-band .vrow svg.spark { display: none; } }

/* the Markets band: both indices' ranges in one tile, and every other live market in one box */
.figures.summary.live-band .fig.ixfig { flex: 0 1 310px; min-width: 300px; align-items: stretch; text-align: left; padding: 12px 16px 10px; }
.figures.summary.live-band .fig.ixfig .k { text-align: center; margin-bottom: 4px; }
.ixfig .ixs + .ixs { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--grid); }
.ixfig .ixs-top { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.ixfig .ixs-top .nm { font-weight: 600; color: var(--ink); margin-right: auto; white-space: nowrap; }
.ixfig .ixs-top .lv { font: 600 15px/1.2 var(--num); color: var(--ink); }
.ixfig .ixs-top .mv { font: 600 13px/1.2 var(--num); }
.ixfig svg.rangebar { display: block; width: 100%; height: 22px; margin: 3px 0 0; }
.ixfig .ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.figures.summary.live-band .fig.mon { flex: 3 1 560px; min-width: 0; padding: 10px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; align-items: start; text-align: left; cursor: default; }
.mon-col { min-width: 0; }
.mon-h, .mon-r { display: grid; grid-template-columns: minmax(78px, 1fr) minmax(58px, auto) minmax(56px, auto) 56px; gap: 8px; align-items: center; }
.mon-h { font-size: 11.5px; color: var(--muted); padding: 0 0 4px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.mon-h span:first-child { overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); font-weight: 600; }
.mon-h span:first-child { grid-column: 1 / 3; }
.mon-h span:nth-child(2) { grid-column: 3 / 5; text-align: right; }
.figures.summary .fig.mon .mon-r { display: grid; padding: 5px 0; border: 0; border-bottom: 1px solid var(--grid); color: var(--ink); text-decoration: none; font-size: 13.5px; background: none; min-height: 0; flex: none; }
.figures.summary .fig.mon .mon-r:last-child { border-bottom: 0; }
.figures.summary .fig.mon a.mon-r:hover { background: var(--surface-2); }
.figures.summary .fig.mon:hover { background: var(--surface); }
a.mon-r:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mon-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-n .est { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 5px; }
.mon-v, .mon-c { text-align: right; font-family: var(--num); white-space: nowrap; }
.mon-v { font-weight: 600; }
.mon-c { font-size: 12.5px; color: var(--muted); }
.mon-r.pos .mon-c { color: var(--up); }
.mon-r.neg .mon-c { color: var(--down); }
svg.dayspark { width: 56px; height: 20px; display: block; overflow: visible; }
svg.dayspark polyline { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
svg.dayspark circle { fill: var(--ink-2); }
.mon-r.pos svg.dayspark polyline { stroke: var(--up); } .mon-r.pos svg.dayspark circle { fill: var(--up); }
.mon-r.neg svg.dayspark polyline { stroke: var(--down); } .mon-r.neg svg.dayspark circle { fill: var(--down); }
svg.dayspark line.base { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 2 2; }
@media (max-width: 1100px) { .figures.summary.live-band .fig.mon { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; } }
@media (max-width: 480px) { .mon-h, .mon-r { grid-template-columns: minmax(70px, 1fr) auto auto 48px; gap: 8px; } svg.dayspark { width: 48px; } }
/* the indices now, in the range panel */
.ixnow-wrap { padding: 4px 20px 0; }
table.ixnow td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
table.ixnow td.big { font: 600 18px/1.2 var(--num); }
table.ixnow td b { font-family: var(--num); }
table.ixnow .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 400; }
table.ixnow td.l .dim { display: block; font-size: 12px; font-weight: 400; }
table.ixnow .tag { font-size: 11px; color: var(--muted); }
.figures.summary.live-band .fig.hk { flex: 0 1 190px; min-width: 175px; }
.livenote-x .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.figures.summary .ixfig svg.rangebar { max-width: none; width: 100%; }
.figures.summary .ixfig .ends { max-width: none; }
.ixfig .ixs-top { gap: 6px; } .ixfig .ixs-top .nm { font-size: 12.5px; }

/* the range panel: both indices side by side, each a header line, a chart and its horizons */
#return .panel-head .keys { margin: 0; }
.ix-cards { display: grid; grid-template-columns: minmax(0, 1fr); }
.ix-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix-cards.two .ix-card + .ix-card { border-left: 1px solid var(--rule); }
.ix-card { padding: 10px 16px 6px; min-width: 0; }
.ix-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--grid); }
.ix-head .nm { font-size: 15px; }
.ix-head .lv { font: 650 17px/1.2 var(--num); }
.ix-head .mv { font: 600 14px/1.2 var(--num); }
.ix-head .src { color: var(--muted); font-size: 12px; }
.ix-head .vol { margin-left: auto; color: var(--ink-2); white-space: nowrap; }
.ix-head .vol b { font: 650 15px/1.2 var(--num); color: var(--ink); margin-left: 3px; }
.ix-head .vol i { font-style: normal; font-size: 11px; color: var(--muted); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.ix-card .er-plot { margin-top: 2px; }
table.data.hz { font-size: 12.5px; }
table.data.hz th, table.data.hz td { padding: 5px 4px; }
table.data.hz th { font-size: 12px; }
table.data.hz th:first-child, table.data.hz td:first-child { padding-left: 2px; }
@media (max-width: 1199px) { .ix-cards.two { grid-template-columns: minmax(0, 1fr); } .ix-cards.two .ix-card + .ix-card { border-left: 0; border-top: 1px solid var(--rule); } }
/* the economy boxes: value, arrow, word; the scale; one line of context */
.figures.summary.slow-band .fig { padding: 9px 14px 9px; }
.figures.summary.slow-band .fig .n { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figures.summary .arr { font-size: 10px; line-height: 1; }
.figures.summary .arr.good { color: var(--up); } .figures.summary .arr.bad { color: var(--down); }
svg.gauge { display: block; width: 100%; height: 10px; margin-top: 5px; }
svg.gauge .z { opacity: 0.32; } svg.gauge .z.good { fill: var(--good); } svg.gauge .z.warn { fill: var(--warn); } svg.gauge .z.bad { fill: var(--bad); }
svg.gauge .mark { fill: var(--ink); stroke: var(--surface); stroke-width: 1; }
.figures.summary.live-band .fig.hk svg.gauge { max-width: 150px; margin: 6px auto 2px; }
.ix-card .tablewrap { overflow-x: auto; }
table.data.hz th:last-child, table.data.hz td:last-child { padding-right: 0; }

/* the two bands across the full width, their names inside */
.figures.summary.band { margin-bottom: 10px; }
.figures.summary.band.slow-band { margin-bottom: 20px; }
.figures.summary.band .fig.bk { flex: 0 0 104px; min-width: 104px; white-space: nowrap; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 3px; padding: 10px 12px; background: var(--surface-2); border-top-color: var(--rule); text-align: left; cursor: default; }
.figures.summary.band .fig.bk:hover { background: var(--surface-2); }
.band .bk b { font-size: 14px; color: var(--ink); } .band .bk span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.band .bk .dot { display: inline-block; }
svg.ico { width: 14px; height: 14px; flex: none; vertical-align: -2px; color: var(--accent); }
.figures.summary .k svg.ico { margin-right: 5px; }
.mon-h svg.ico { margin-right: 5px; }
/* the Fed box: the odds at each coming decision */
.figures.summary .fig.hk .vrow { justify-content: center; }
.figures.summary .fig.hk .nowline .tone { display: inline; margin-left: 8px; }
.fig.hk .meet { width: 100%; max-width: 170px; margin: 6px auto 0; }
svg.meetbars { display: block; width: 100%; height: 34px; }
svg.meetbars .hk { fill: var(--bad); opacity: 0.7; } svg.meetbars .ct { fill: var(--good); opacity: 0.7; }
svg.meetbars .base { stroke: var(--axis); stroke-width: 1; }
.fig.hk .meet .ends { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); max-width: none; font-family: inherit; }
/* the range panel, compact: one line per index above its chart, one footer line */
.er-panel .ix-card { padding: 8px 14px 4px; }
.ix-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14.5px; font-weight: 700; }
.ix-head h2 svg.ico { width: 15px; height: 15px; }
.ix-head { padding-bottom: 4px; gap: 2px 10px; }
.ix-head .lv { font-size: 16px; }
.ix-head .vol i { margin-left: 4px; }
table.data.hz th, table.data.hz td { padding-top: 3px; padding-bottom: 3px; }
.er-foot { display: flex; align-items: flex-start; gap: 6px 18px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding: 0 16px 0 0; }
.er-foot details.explain { flex: 1 1 420px; min-width: 0; border-top: 0; }
.er-foot .keys { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; padding: 9px 0; font-size: 12px; }
.er-foot .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; }
@media (max-width: 760px) { .figures.summary.live-band .fig.hk { flex: 1 1 100%; max-width: none; } }

/* the bands: one box each, its name a slim line inside it, the boxes across the full width */
.band-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.band-box.slow-box { margin-bottom: 20px; }
.band-h { display: flex; align-items: baseline; gap: 10px; padding: 6px 14px 5px; font-size: 12px; color: var(--muted); }
.band-h b { font-size: 13px; color: var(--ink); font-weight: 700; }
.band-h span { display: inline-flex; align-items: center; gap: 5px; }
.band-h .dot { display: inline-block; }
.band-box .figures.summary.band { border: 0; border-top: 1px solid var(--rule); border-radius: 0; margin: 0; }
/* every box: its icon in the top-left corner, then its name, left-aligned */
.figures.summary.band .fig { text-align: left; align-items: stretch; }
.figures.summary.band .fig > .k { display: flex; align-items: center; gap: 7px; justify-content: flex-start; text-align: left; overflow: visible; }
.figures.summary.band .fig > .k svg.ico, .mon-h svg.ico { width: 18px; height: 18px; margin: 0; flex: none; }
.figures.summary.live-band .fig.ixfig .k { margin-bottom: 6px; }
.mon-h span:first-child { display: flex; align-items: center; gap: 7px; }
.figures.summary .fig.hk .vrow { justify-content: flex-start; }
.fig.hk .meet { margin: 6px 0 0; max-width: none; }
.figures.summary.live-band .fig.hk svg.gauge { margin: 6px 0 2px; }
.ix-head h2 svg.ico { width: 18px; height: 18px; }
.more-card .t .ico { width: 18px; height: 18px; }
.keys i.kframe { background: none; border: 1px dotted var(--s1); height: 10px; }
.er-panel .er-plot { margin-top: 0; }

/* where the move stands among the past year's days */
.ix-viz.with-hist { display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 12px; align-items: center; }
.ix-viz .hist { min-width: 0; padding: 2px 0 0; }
svg.movehist { display: block; width: 100%; height: 62px; overflow: visible; }
svg.movehist rect.b { fill: var(--axis); }
svg.movehist rect.tail.neg { fill: var(--down); } svg.movehist rect.tail.pos { fill: var(--up); }
svg.movehist line.axis { stroke: var(--axis); stroke-width: 1; } svg.movehist line.zero { stroke: var(--ink-2); stroke-width: 1; }
svg.movehist line.now { stroke: var(--ink); stroke-width: 1.5; } svg.movehist path.now { fill: var(--ink); }
svg.movehist text.t { font-size: 9.5px; fill: var(--muted); font-family: var(--num); }
svg.movehist text.mid { text-anchor: middle; } svg.movehist text.end { text-anchor: end; }
.ix-viz .hcap { font-size: 11px; color: var(--ink-2); line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-viz .hist.extreme .hcap b { font-weight: 700; }
@media (max-width: 560px) { .ix-viz.with-hist { grid-template-columns: minmax(0, 1fr); } }
/* the warning on the Markets band when a move is among the year's most extreme */
.mk-alerts { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.mk-alerts:empty { display: none; }
.mk-alert { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; animation: mk-flash 1.6s ease-in-out infinite; }
.mk-alert.neg { color: var(--down); background: var(--down-soft); box-shadow: inset 0 0 0 1px var(--down); }
.mk-alert.pos { color: var(--up); background: var(--up-soft); box-shadow: inset 0 0 0 1px var(--up); }
.mk-alert b { font-family: var(--num); }
.mk-alert svg.ico { width: 15px; height: 15px; color: currentColor; }
@keyframes mk-flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .mk-alert { animation: none; } }
.ixfig .ixs.extreme.neg .mv, .ixfig .ixs.extreme.pos .mv { text-decoration: underline; text-underline-offset: 3px; }
.ixfig .ixs.extreme.neg { box-shadow: inset 3px 0 0 var(--down); padding-left: 6px; }
.ixfig .ixs.extreme.pos { box-shadow: inset 3px 0 0 var(--up); padding-left: 6px; }
.newswire.events li .dim.above, .newswire.events li .dim.below { color: var(--ink-2); }
.newswire.events li.out time { color: var(--muted); }
.keys i.kclose { width: 0; height: 12px; border-left: 2px dashed var(--ink-2); border-radius: 0; background: none; }
.ixfig .ends .mid { font-size: 10.5px; color: var(--muted); }
/* a page's introduction, folded: one line, the rest behind More */
.lead-x.explain { margin: -6px 0 16px; padding: 0 2px; border: 0; background: none; font-size: 14px; color: var(--ink-2); }
.lead-x.explain .full { font-size: 14px; line-height: 1.55; max-width: 1100px; }
.lead-x.explain b { color: var(--ink); font-weight: 620; }
.newswire.events b.act { font-weight: 650; font-family: var(--num); color: var(--ink); }
.newswire.events b.act.pos { color: var(--up); } .newswire.events b.act.neg { color: var(--down); }
.mk-alert span { white-space: nowrap; }
@media (max-width: 760px) { .band-h { flex-wrap: wrap; } .mk-alerts { margin-left: 0; flex-basis: 100%; } .mk-alert span { white-space: normal; } }
.band-h .mk-alert > span { display: inline; }
.ixfig > .k .left { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; padding-left: 6px; }
.ixfig > .k { overflow: visible; }
table.data.hz { width: 100%; }
table.data.hz { font-size: 12px; } table.data.hz th { font-size: 11.5px; }
.figures.summary.band .ixfig > .k { flex-wrap: wrap; row-gap: 0; }

/* the Earnings tables' drill-downs: a peer figure opens the reports behind it, a ticker its path */
button.drill { all: unset; cursor: pointer; border-bottom: 1px dotted currentColor; padding-bottom: 1px; }
button.drill:hover, button.drill[aria-expanded="true"] { color: var(--accent); border-bottom-style: solid; }
button.drill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
button.drill.pos { color: var(--up); } button.drill.neg { color: var(--down); }
button.drill.tkb { border-bottom: 0; } button.drill.tkb .tk { border-bottom: 1px dotted var(--accent); color: var(--accent); }
button.drill.tkb[aria-expanded="true"] .tk { border-bottom-style: solid; }
tr.det-row > td { background: var(--surface-2); padding: 10px 16px 12px !important; text-align: left; }
tr.det-row .det-h { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; white-space: normal; }
tr.det-row .past-mini { max-width: 760px; }
tr.det-row .rx-chart { background: var(--surface); border-radius: 8px; max-width: 900px; }
.earn small.sdk { margin-left: 4px; font-size: 10.5px; color: var(--muted); }
/* a reporter's chart row: volatility (two charts) or price */
tr.det-row .rx-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
tr.det-row .rx-head .det-h { flex: 1 1 320px; }
.rx-vol { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1100px; white-space: normal; }
tr.det-row .rx-head { white-space: normal; }
.rx-cell { background: var(--surface); border-radius: 8px; padding: 10px 10px 2px; min-width: 0; }
.rx-t { font-size: 13px; font-weight: 640; color: var(--ink); }
.rx-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); margin: 3px 0 2px; }
.rx-keys i.kl { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--s1); vertical-align: middle; margin-right: 5px; }
.rx-keys i.kl.s2 { border-top-color: var(--s2); } .rx-keys i.kl.s7 { border-top-color: var(--s7); }
.rx-keys i.kl.ax { border-top-color: var(--axis); } .rx-keys i.kl.dotm { border-top: 2px dotted var(--muted); }
.rx-keys i.kl.dash { border-top-style: dashed; } .rx-keys i.kl.dotx { border-top: 2px dotted var(--axis); }
.rx-keys b { font-weight: 640; color: var(--ink); }
.rx-note { font-size: 12.5px; color: var(--ink-2); max-width: 1100px; margin: 8px 2px 0; white-space: normal; line-height: 1.45; }
.rx-sess p.empty { padding: 70px 10px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .rx-vol { grid-template-columns: 1fr; } }
/* ---- Earnings graphics: blue = what the options expected, orange = beyond it, green/red = the actual move */
svg.movebar { width: 150px; height: 22px; display: block; overflow: visible; }
svg.movebar .exp { fill: var(--s1); opacity: .16; }
svg.movebar .zero { stroke: var(--axis); stroke-width: 1; }
svg.movebar .up { fill: var(--up); } svg.movebar .dn { fill: var(--down); }
svg.movebar circle.out { stroke: var(--s2); stroke-width: 2.5; paint-order: stroke; }
svg.implbar { width: 96px; height: 14px; display: block; }
svg.implbar .track { fill: var(--grid); } svg.implbar .imp { fill: var(--s1); }
svg.implbar .usual { stroke: var(--ink); stroke-width: 2; }
svg.pastbars { width: 88px; height: 30px; display: block; }
svg.pastbars .up { fill: var(--up); } svg.pastbars .dn { fill: var(--down); }
svg.pastbars .base { stroke: var(--axis); stroke-width: 1; }
svg.pastbars .exp { stroke: var(--s1); stroke-width: 1.2; stroke-dasharray: 3 2; }
svg.hitdots { height: 12px; width: auto; display: block; margin-top: 6px; }
svg.hitdots .hit { fill: var(--s2); } svg.hitdots .miss { fill: none; stroke: var(--axis); stroke-width: 1.5; }
svg.ratiogauge { width: 150px; height: 22px; display: block; margin-top: 4px; }
svg.ratiogauge .lo { fill: var(--s1); opacity: .35; } svg.ratiogauge .hi { fill: var(--s2); opacity: .35; }
svg.ratiogauge .one { stroke: var(--ink-2); stroke-width: 1.2; } svg.ratiogauge .ptr { fill: var(--ink); }
.gauge-k { display: flex; justify-content: space-between; width: 150px; font-size: 11px; color: var(--muted); font-family: inherit; }
/* cells that hold a graphic and its figure */
td.gcell { white-space: nowrap; }
td.gcell .gfig { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
td.gcell .gfig b { font-weight: 600; min-width: 46px; text-align: right; }
td.gcell .gfig small { color: var(--muted); font-size: 11.5px; min-width: 40px; text-align: right; }
td.gcell .gfig small.over { color: var(--s2); font-weight: 650; }
/* figure cards with an icon and a small graphic */
.figures.earn-sum .fig .k { display: flex; align-items: center; gap: 6px; }
.figures.earn-sum .fig .k .ico { width: 16px; height: 16px; flex: none; color: var(--ink-2); }
.figures.earn-sum .fig .v .sym { font-weight: 700; }
.figures.earn-sum .fig .n svg { margin-top: 6px; }
.figures.earn-sum .fig .n .pair { display: flex; gap: 10px; margin-top: 2px; font-size: 12px; }
.figures.earn-sum .fig .n .pair i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.figures.earn-sum .fig .n .pair i.e { background: var(--s1); } .figures.earn-sum .fig .n .pair i.u { background: var(--ink); width: 3px; }
/* how to read the page */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.howto div { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.howto .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.howto .h1 .ico { color: var(--s1); } .howto .h2 .ico { color: var(--up); } .howto .h3 .ico { color: var(--s2); }
.howto b { color: var(--ink); display: block; font-size: 13.5px; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }
.panel-head h2 .ico, .earn-charts h2 .ico { width: 17px; height: 17px; vertical-align: -3px; margin-right: 7px; color: var(--ink-2); }
/* under a ticker: the verdict, the two bars and the chart */
.rx-verdict { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); margin: 2px 0 10px; white-space: normal; }
.rx-verdict .ico { width: 20px; height: 20px; flex: none; }
.rx-verdict.in .ico { color: var(--s1); } .rx-verdict.out .ico { color: var(--s2); }
.rx-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; max-width: 1100px; align-items: stretch; white-space: normal; }
.rx-grid .rx-side { background: var(--surface); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.rx-grid .rx-main { background: var(--surface); border-radius: 8px; padding: 6px 8px 2px; min-width: 0; }
.comparebars .cb-r { display: grid; grid-template-columns: 1fr; gap: 3px; margin: 6px 0; }
.comparebars .cb-k { font-size: 12.5px; color: var(--ink-2); }
.comparebars .cb-t { display: block; height: 12px; background: var(--grid); border-radius: 6px; overflow: hidden; }
.comparebars .cb-t i { display: block; height: 100%; border-radius: 6px; }
.comparebars .cb-e { background: var(--s1); } .comparebars .cb-up { background: var(--up); } .comparebars .cb-dn { background: var(--down); }
.comparebars b { font-size: 20px; font-weight: 680; font-family: var(--num); }
.rx-ratio { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.rx-ratio b { color: var(--ink); }
.rx-ratio b.over { color: var(--s2); }
@media (max-width: 760px) { .rx-grid { grid-template-columns: 1fr; } }
.rx-keys i.kl.band { height: 10px; border: 0; background: var(--s1); opacity: .3; border-radius: 2px; vertical-align: -1px; }
.rx-keys i.kl.upl { border-top-color: var(--up); } .rx-keys i.kl.dnl { border-top-color: var(--down); }
.figures.earn-sum .fig .k { white-space: normal; line-height: 1.3; }
/* under a ticker: as wide as the screen, not the table, and kept in view when the table scrolls sideways */
tr.chart-row .rx-verdict, tr.chart-row .rx-grid { width: min(1100px, calc(100vw - 56px)); position: sticky; left: 8px; }
@media (max-width: 600px) {
  svg.movebar { width: 96px; }
  table.earn td.gcell .gfig { gap: 5px; }
  table.earn td.gcell .gfig small { min-width: 30px; }
}
@media (max-width: 600px) {
  tr.chart-row .rx-verdict, tr.chart-row .rx-grid { width: calc(100vw - 80px); }
  .howto { gap: 6px; } .howto div { padding: 8px 10px; font-size: 12.5px; } .howto b { font-size: 13px; }
}
/* company logos (served from this site) and their monogram stand-ins; industry icons */
.logo { display: inline-block; width: 20px; height: 20px; border-radius: 5px; vertical-align: middle; margin-right: 7px; flex: none;
  background: #fff; box-shadow: 0 0 0 1px var(--ring); object-fit: contain; }
.logo.mono { background: hsl(var(--h) 52% 44%); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: none; font-family: var(--font, inherit); }
table.earn td.sym { white-space: nowrap; }
table.earn td.sym .logo { float: left; margin-top: 3px; }
td.ind .ind-ico, .det-h .ind-ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; color: var(--ink-2); }
td.pl-co .logo { width: 18px; height: 18px; line-height: 18px; margin-right: 6px; }
/* an explanation box inside a table heading */
.thi { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px;
  border-radius: 50%; border: 1.3px solid currentColor; font-size: 10px; font-weight: 700; font-style: italic; color: var(--s1);
  cursor: help; vertical-align: 1px; line-height: 1; font-family: Georgia, serif; }
.thi-box { display: none; position: absolute; top: calc(100% + 8px); right: -10px; z-index: 30; width: 250px; padding: 10px 12px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.12);
  font: 400 12.5px/1.45 var(--font, system-ui); font-style: normal; text-align: left; white-space: normal; letter-spacing: 0; }
.thi-box b { display: block; color: var(--ink); font-weight: 650; margin-bottom: 3px; }
.thi:hover .thi-box, .thi:focus .thi-box, .thi:focus-within .thi-box { display: block; }
.thi:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
/* the Company heading lines up with the logos; the expand triangle (upcoming table only) sits in the margin to their left */
table.data.earn#earn-now > thead > tr > th:first-child { padding-left: 22px; }
table.data.earn#earn-rep td.sym { padding-left: 12px; }
table.data.earn#earn-rep > thead > tr > th:first-child { padding-left: 12px; }
/* in a right-aligned heading the ⓘ comes first, so the heading's words end where the figures do */
table.data th .thi { margin: 0 5px 0 0; }
/* Highest / Lowest on Retail Flows: the figure and its line in green (positive z) or red (negative) */
.fig .v small.zpos { color: var(--up); } .fig .v small.zneg { color: var(--down); }
svg.spark.zpos polyline { stroke: var(--up); } svg.spark.zpos circle { fill: var(--up); }
svg.spark.zneg polyline { stroke: var(--down); } svg.spark.zneg circle { fill: var(--down); }
/* the bond panel: levels and changes in the space of a row of boxes; the swatches are the chart's key.
   A rise in a yield or spread (borrowing dearer, more risk) is red, a fall green */
.bondgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 10px 0 4px; padding: 4px 16px; }
table.bg { width: 100%; border-collapse: collapse; font-size: 13px; }
table.bg th { font-size: 11.5px; font-weight: 500; color: var(--muted); text-align: right; padding: 2px 6px 3px; white-space: nowrap; }
table.bg td { text-align: right; padding: 2px 6px; color: var(--ink-2); white-space: nowrap; font-family: var(--num); }
table.bg th.l, table.bg td.l { text-align: left; padding-left: 0; }
table.bg td.l { color: var(--ink); font-family: inherit; }
table.bg td.lv { color: var(--ink); font-weight: 650; }
table.bg td.wider { color: var(--down); } table.bg td.narrower { color: var(--up); }
table.bg i.sw { display: inline-block; width: 16px; height: 0; border-top: 2.5px solid var(--s1); vertical-align: middle; margin-right: 7px; }
table.bg i.sw.s2 { border-top-color: var(--s2); } table.bg i.sw.dot { border-top-style: dotted; border-top-width: 2.5px; }
table.bg i.sw.gap { border-top: 0; height: 8px; background: var(--s2); opacity: .35; border-radius: 2px; vertical-align: -1px; }
@media (max-width: 760px) { .bondgrid { grid-template-columns: 1fr; gap: 6px; padding: 4px 10px; }
  table.bg { font-size: 12px; } table.bg td, table.bg th { padding-left: 3px; padding-right: 3px; } table.bg i.sw { width: 12px; margin-right: 5px; } }
table.bg { table-layout: fixed; } table.bg th:not(.l), table.bg td:not(.l) { width: 58px; }
table.bg th.l, table.bg td.l { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { table.bg th:not(.l), table.bg td:not(.l) { width: 50px; } }
@media (max-width: 760px) { table.bg th.l, table.bg td.l { white-space: normal; overflow: visible; text-overflow: clip; } }
/* a cell that opens a nested row: the pointer, and a dotted underline under its figure on hover */
table.earn td[data-open] { cursor: pointer; }
table.earn td[data-open]:hover { background: var(--hover, rgba(0,0,0,.035)); }
table.earn td[data-open]:not(.gcell):hover { text-decoration: underline dotted; text-underline-offset: 3px; }
table.earn td[data-open][aria-expanded="true"] { background: rgba(37, 99, 235, .07); }
table.earn td[data-open]:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
/* icons in every card label and logos beside tickers, on every page as on Macro and Earnings */
.fig .k svg.ico { margin-right: 5px; }
.fig .v .logo { width: 22px; height: 22px; line-height: 22px; vertical-align: -3px; }
h1 .logo { width: 30px; height: 30px; line-height: 30px; font-size: 15px; border-radius: 7px; vertical-align: -4px; margin-right: 10px; }
table.data td.sym .logo { margin-top: -2px; }
.mult .mh .logo { width: 18px; height: 18px; line-height: 18px; font-size: 10px; margin-right: 6px; vertical-align: -4px; }
td.ind .ind-ico { flex: none; }
h1.has-logo { display: flex; align-items: center; gap: 0; }
h1.has-logo .logo { vertical-align: 0; margin-bottom: 0; }
/* a card's label wraps rather than being cut short */
.fig .k { white-space: normal; line-height: 1.3; }
/* the News tag: a small tinted label (cards, table), quiet and inside the card; in running text just the icon and word */
.mult .mh { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mult .mh .cs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mult .mh .nw, td .nwk { display: inline-flex; align-items: center; gap: 3px; flex: none; margin-left: auto; align-self: center;
  font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 6px 3px 5px; border-radius: 4px;
  background: #fdf0e6; color: #a3470f; border: 1px solid #f3d3bb; box-shadow: none; letter-spacing: 0; }
.mult .mh .nw svg.ico, td .nwk svg.ico { width: 11px; height: 11px; color: #c2571a; margin: 0; vertical-align: 0; }
td .nwk { margin-left: 0; margin-right: 4px; }
p .nwk { display: inline; padding: 0; background: none; border: 0; box-shadow: none; color: var(--ink-2); font-weight: 600; font-size: inherit; }
p .nwk svg.ico { width: 13px; height: 13px; color: #c2571a; vertical-align: -2px; margin-right: 2px; }
/* yesterday's list before the open: a warning, the date tag in amber, the page outlined */
.tag.stale { background: #fff1cc; color: #7a4b00; border: 1px solid #f0c24b; display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
.tag.stale svg.ico { color: #b26b00; }
.stale-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: #fff6dd; border: 1px solid #f0c24b; color: #5c3a00; font-size: 14px; line-height: 1.45; }
.stale-note svg.ico { width: 20px; height: 20px; color: #b26b00; margin-top: 1px; }
.stale-note b { color: #3d2600; }
.stale-note.cleared { background: var(--surface); border-color: var(--rule); color: var(--ink-2); }
.stale-note.cleared svg.ico { color: var(--s1); } .stale-note.cleared b { color: var(--ink); }
.stale-wrap > .figures, .stale-wrap > .panel { outline: 2px dashed #f0c24b; outline-offset: 3px; }
/* Retail Flows' top bar: every card the same three rows from the top (label, figure with its line,
   note), so labels, figures and notes line up across the bar; no coloured edges */
.figures.summary.slan-sum .fig { justify-content: flex-start; align-items: center; border-top: 0; padding: 16px 14px 14px; gap: 0; }
.figures.summary.slan-sum .fig .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; height: 18px; line-height: 18px; margin: 0; }
.figures.summary.slan-sum .vrow { height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.figures.summary.slan-sum .vrow .v { margin: 0; line-height: 40px; font-size: 26px; }
.figures.summary.slan-sum .vrow .v.pos { color: var(--up); } .figures.summary.slan-sum .vrow .v.neg { color: var(--down); }
.figures.summary.slan-sum .vrow svg.spark { width: 76px; height: auto; }
.figures.summary.slan-sum .vrow .v .logo { width: 22px; height: 22px; line-height: 22px; vertical-align: -3px; margin-right: 6px; }
.figures.summary.slan-sum .vrow .v small { font-size: 14px; margin-left: 5px; }
.figures.summary.slan-sum .n { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.figures.summary.slan-sum .n .tone { display: flex; align-items: center; justify-content: center; margin-top: 1px; font-weight: 600; color: var(--ink-2); }
.figures.summary.slan-sum .fig:hover { background: var(--surface); }
.figures.summary.slan-sum .vrow .v { display: inline-flex; align-items: center; }
.figures.summary.slan-sum .vrow .v .logo { vertical-align: 0; flex: none; }
.figures.summary.slan-sum .n.zline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.figures.summary.slan-sum .n.zline svg.spark { width: 64px; height: auto; }
.figures.summary.slan-sum .n.zline span { white-space: nowrap; }
@media (max-width: 600px) { .figures.summary.slan-sum .n.zline svg.spark { width: 46px; } .figures.summary.slan-sum .n.zline { gap: 6px; } }
/* Highest / Lowest z: a small logo beside the ticker, not a second headline */
.figures.summary.slan-sum .vrow .v .logo { width: 16px; height: 16px; line-height: 16px; font-size: 9.5px; border-radius: 4px; margin-right: 6px; opacity: .9; }
/* a top bar laid out evenly (AI): every card the same rows from the top - label, figure, its line,
   two note lines - so they line up across the bar; no coloured edges (the status dot says it) */
.figures.summary.even .fig { justify-content: flex-start; align-items: center; border-top: 0; padding: 16px 12px 14px; }
.figures.summary.even .fig .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; height: 18px; line-height: 18px; margin: 0; }
.figures.summary.even .vrow { height: 38px; display: flex; align-items: center; justify-content: center; margin: 6px 0 0; }
.figures.summary.even .vrow .v { margin: 0; line-height: 38px; font-size: 26px; }
.figures.summary.even .sprow { height: 22px; display: flex; align-items: center; justify-content: center; margin: 2px 0 6px; }
.figures.summary.even .sprow svg.spark { width: 84px; height: auto; }
.figures.summary.even .n { display: flex; flex-direction: column; align-items: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 100%; }
.figures.summary.even .n > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.figures.summary.even .n b { font-weight: 600; }
.figures.summary.even .n .tone { display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-weight: 600; }
.figures.summary.even .fig:hover { background: var(--surface); }
.figures.summary.even a.fig:hover { background: var(--surface-2); }

/* =====================================================================================
   Compact layout: slimmer summary bars, tabs at the thumb on a phone, one view of a section at a
   time on small screens, folded lists, and a hint when a wide table scrolls sideways.
   ===================================================================================== */
:root { --news: #c2571a; }

/* ---- summary bars: label, then the number with its trend beside it, then a one-line note ---- */
.figures.summary .k .ksub { color: var(--muted); font-weight: 400; margin-left: 6px; font-family: var(--num); }
.figures.summary.even .fig { display: grid; grid-template-columns: auto auto; grid-template-areas: "k k" "v sp" "n n";
  justify-content: center; align-items: center; column-gap: 10px; padding: 11px 10px 10px; }
.figures.summary.even .fig > * { width: auto; }
.figures.summary.even .fig .k { grid-area: k; justify-self: center; }
.figures.summary.even .vrow { grid-area: v; height: 30px; margin: 3px 0 2px; }
.figures.summary.even .vrow .v { font-size: 22px; line-height: 30px; }
.figures.summary.even .sprow { grid-area: sp; height: 30px; margin: 3px 0 2px; }
.figures.summary.even .sprow svg.spark { width: 52px; }
.figures.summary.even .n { grid-area: n; flex-direction: row; justify-content: center; gap: 0 7px; font-size: 12px; line-height: 1.4; }
.figures.summary.slan-sum .fig { padding: 11px 12px 10px; }
.figures.summary.slan-sum .vrow { height: 30px; margin: 3px 0 2px; }
.figures.summary.slan-sum .vrow .v { font-size: 22px; line-height: 30px; }
.figures.summary.slan-sum .vrow svg.spark { width: 58px; }
.figures.summary.slan-sum .n { font-size: 12px; display: flex; justify-content: center; align-items: center; gap: 7px; white-space: nowrap; }
.figures.summary.slan-sum .n .tone { margin: 0; }

/* ---- the other sections: a slim row at the foot of a page (the tabs already carry the same figures) ---- */
.more { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.more-card { padding: 8px 12px; min-width: 0; }
.more-card .f { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- one view at a time (phones): the switch, and what it hides ---- */
.viewsw { display: none; }
.fold-btn { display: none; }
.band nav .lbl-s { display: none; }
.d-s { display: none; }

/* ---- a wide table that scrolls sideways fades toward the side that has more ---- */
.tablewrap.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0,0,0,0.12)); mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0,0,0,0.12)); }
.tablewrap.more-l.more-r { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px, #000 calc(100% - 44px), rgba(0,0,0,0.12)); mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px, #000 calc(100% - 44px), rgba(0,0,0,0.12)); }

/* ---- Retail: a marker for "heavy news today", and readable small print in the cards ---- */
.nwmark { display: inline-block; width: 9px; height: 9px; background: var(--news); transform: rotate(45deg); margin: 0 5px 0 12px; vertical-align: 0; }
.mult .ax { font-size: 10px; }
.mult svg { height: auto; }

/* ---- Factors: the daily and monthly tables side by side on a wide screen ---- */
@media (min-width: 1240px) {
  .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-bottom: 22px; }
  .pair > .panel { margin-bottom: 0; min-width: 0; }
  .pair table.data th, .pair table.data td { padding-left: 7px; padding-right: 7px; }
  .pair .tablewrap { max-height: 560px; overflow: auto; }
  .pair .d-l { display: none; } .pair .d-s { display: inline; }
}

/* ---- Earnings: with a single chart, it sits beside the tiles instead of under them ---- */
.asof .nb { white-space: nowrap; }
@media (min-width: 1100px) {
  .earn-top:has(.earn-charts > .panel:only-child) { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
  .earn-top:has(.earn-charts > .panel:only-child) > .figures { margin-bottom: 0; }
  .earn-top:has(.earn-charts > .panel:only-child) > .figures .fig { flex-basis: 30%; }
  .earn-top:has(.earn-charts > .panel:only-child) > .earn-charts { margin-bottom: 0; }
}

/* ---- bigger targets for a finger ---- */
table.data.earn td.sym button.xp::after { content: ""; position: absolute; inset: -12px -10px -14px -6px; }
.lp-what.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lp-what.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 760px) {
  /* ----- top of the page: one slim row, then the index strip ----- */
  .band-in { min-height: 46px; padding: 6px 14px; gap: 10px; flex-wrap: nowrap; }
  .brand { font-size: 17.5px; }
  .band .who { gap: 12px; font-size: 13px; }
  .band .who .acct, .band.tight .who .acct, .band.tighter .who .acct { display: inline; }
  .band .who a, .band .who button.link { padding: 8px 0; }
  .band .who a.staff { padding: 3px 8px; }
  .band nav.signed-out { display: none; }
  .tape-in { padding: 5px 14px 6px; }
  .tape .tt { display: none; }
  main { padding-top: 14px; padding-bottom: 28px; }
  .head { margin-bottom: 10px; gap: 4px 12px; }
  h1 { font-size: 22px; }
  .head .asof, .head .chg-line { font-size: 12.5px; gap: 6px 10px; }
  .asof .stamp { font-size: 12.5px; }
  .panel { margin-bottom: 12px; }
  .figures.summary { margin-bottom: 12px; }
  table.data td { padding-top: 5px; padding-bottom: 5px; }
  table.data th { padding-top: 7px; padding-bottom: 6px; }
  .d-l { display: none; } .d-s { display: inline; }
  .more { display: none; }                       /* the tabs stay on screen at the bottom */
  footer .foot-nav a.sec { display: none; }
  footer .foot-nav a { padding: 8px 0; }
  footer .in { padding-bottom: 20px; }

  /* ----- tabs at the thumb: a bar fixed to the bottom, each tab with its live figure ----- */
  .band nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; order: 0; flex-basis: auto; height: auto; min-height: 54px;
    background: var(--band); border-top: 1px solid #33322e; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    gap: 0; padding: 0 2px env(safe-area-inset-bottom, 0px); overflow: visible; }
  .band nav a { flex-direction: column; justify-content: center; align-items: center; gap: 3px; font-size: 11.5px; border-bottom: 0;
    padding: 7px 0 6px; min-width: 0; min-height: 54px; }
  .band nav a .tabfig { display: inline; font-size: 10.5px; padding: 0 5px; line-height: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .band.tighter .tabfig { display: inline; }
  .band nav a.on { color: #fff; box-shadow: inset 0 2px 0 var(--accent); background: #1f1e1c; }
  .band nav .lbl-l { display: none; } .band nav .lbl-s { display: inline; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }

  /* ----- a summary bar becomes a ledger: one measure per line, the numbers in a column ----- */
  .figures.summary.even, .figures.summary.slan-sum { display: block; background: var(--surface); }
  .figures.summary.even .fig, .figures.summary.slan-sum .fig { display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "k sp v" "n sp v"; align-items: center; justify-content: stretch; column-gap: 12px; row-gap: 0;
    padding: 7px 14px; text-align: left; border-top: 1px solid var(--rule); }
  .figures.summary.even .fig:first-child, .figures.summary.slan-sum .fig:first-child { border-top: 0; }
  .figures.summary.even .fig .k, .figures.summary.slan-sum .fig .k { grid-area: k; justify-self: start; justify-content: flex-start; width: auto; color: var(--ink); font-weight: 600; }
  .figures.summary.even .n, .figures.summary.slan-sum .n { grid-area: n; justify-content: flex-start; align-items: center; flex-direction: row; gap: 0 7px; font-size: 12px; width: auto; }
  .figures.summary.even .vrow { grid-area: v; justify-content: flex-end; height: auto; margin: 0; }
  .figures.summary.even .vrow .v, .figures.summary.slan-sum .vrow .v { font-size: 18px; line-height: 1.3; min-width: 78px; text-align: right; justify-content: flex-end; }
  .figures.summary.even .sprow { grid-area: sp; height: auto; margin: 0; }
  .figures.summary.even .sprow svg.spark { width: 56px; }
  .figures.summary.slan-sum .fig { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k v" "n v"; }
  .figures.summary.slan-sum .vrow { grid-area: v; display: flex; flex-flow: row-reverse nowrap; justify-content: flex-start; align-items: center; height: auto; margin: 0; gap: 12px; }
  .figures.summary.slan-sum .vrow .v { min-width: 0; }
  .figures.summary.slan-sum .vrow svg.spark { width: 56px; }

  /* ----- one view at a time ----- */
  .viewsw { display: flex; gap: 2px; padding: 3px; margin: 0 0 12px; background: var(--surface-3); border-radius: 10px; position: sticky; top: 52px; z-index: 15; }
  .panel > .viewsw { margin: 12px 14px 0; position: static; }
  .viewsw button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
    padding: 8px 4px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .viewsw button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
  [data-view].view-off { display: none !important; }
  #return[data-show="spx"] .ix-card[data-ix="ndx"], #return[data-show="ndx"] .ix-card[data-ix="spx"] { display: none; }

  /* ----- folded lists ----- */
  table.data:not(.unfolded) tr.fold-x, .multiples:not(.unfolded) > .fold-x { display: none; }
  .fold-btn { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--rule); background: none; color: var(--accent);
    font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; }

  .tablewrap[hidden] + .fold-btn { display: none; }
  /* the one-line introduction under a page title: two lines, the rest behind "More" */
  .explain.lead-x > summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .explain.lead-x[open] > summary { display: block; }
  /* ----- wide tables: the first column stays put while the rest scrolls ----- */
  .tablewrap table.data tr { background: var(--surface); }
  .tablewrap table.data th:first-child, .tablewrap table.data td:first-child { position: sticky; left: 0; z-index: 1; background: inherit; }
  .tablewrap table.data thead th:first-child { z-index: 3; }

  /* ----- charts a little shorter, headlines on two lines ----- */
  .chart:not(#heat):not(#nc-pd):not(.fill) { max-height: 250px; }
  .chart.tall:not(#heat) { max-height: 320px; }
  .newswire a, .newswire .h { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.35; }
  .newswire li { align-items: start; } .newswire time { padding-top: 4px; }
}
@media (max-width: 760px) {
  .figures.summary.slow-band .fig { padding: 8px 12px 9px; }
  .figures.summary.slow-band .vrow { gap: 2px 6px; flex-wrap: wrap; }
  .figures.summary.slow-band .fig .n { white-space: normal; }
}

/* the other sections' cards: the figure always shows, its label gives way */
.more-card .f { display: flex; gap: 5px; align-items: baseline; }
.more-card .f .w { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-card .f b { flex: none; }
@media (min-width: 1240px) { .pair table.data { font-size: 13.5px; } .pair table.data th, .pair table.data td { padding-left: 5px; padding-right: 5px; } }
@media (max-width: 760px) { .band nav.signed-out ~ .fresh span:not(.dot) { display: none; } .band nav.signed-out ~ .who { gap: 10px; } }

/* ===================================================================================== Today */
.td-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.td-grid > .panel, .td-side > * { margin-bottom: 0; }
.td-side { display: grid; gap: 16px; min-width: 0; }
.td-side .newswire { max-width: none; margin: 0; }
.td-side .newswire ul { width: auto; }
.td-side .newswire a, .td-side .newswire .h { white-space: normal; }
.td-rows { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.td-rows li { border-bottom: 1px solid var(--grid); }
.td-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 11px 18px; color: var(--ink); }
.td-row:hover { background: var(--surface-2); text-decoration: none; }
.td-ico { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--s1); }
.td-ico .ico { width: 17px; height: 17px; margin: 0; }
.td-ico .logo { width: 30px; height: 30px; line-height: 30px; font-size: 14px; border-radius: 8px; margin: 0; }
.td-main { display: flex; flex-direction: column; min-width: 0; }
.td-h { font-weight: 680; font-size: 15px; letter-spacing: -0.005em; }
.td-t { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.td-num { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.td-num b { font-family: var(--num); font-size: 18px; font-weight: 720; letter-spacing: -0.01em; }
.td-num b.pos { color: var(--up); } .td-num b.neg { color: var(--down); }
.td-rare { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 560; }
.dots { display: inline-flex; gap: 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.dots.d1 i:nth-child(-n+1), .dots.d2 i:nth-child(-n+2), .dots.d3 i:nth-child(-n+3), .dots.d4 i:nth-child(-n+4), .dots.d5 i { background: var(--s4); }
.dots.d4 i:nth-child(-n+4), .dots.d5 i { background: var(--s2); }
.wk { padding: 2px 18px 6px; }
.wk-day { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--grid); }
.wk-day:first-child { border-top: 0; }
.wk-d { font-size: 12.5px; font-weight: 650; color: var(--ink-2); padding-top: 1px; }
.wk-day.now .wk-d { color: var(--accent); }
.wk-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.wk-day li { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; font-size: 13.5px; align-items: baseline; }
.wk-day time { font: 500 11.5px/1.2 var(--num); color: var(--muted); }
.wk-w { font-weight: 560; } .wk-w .dim { font-weight: 400; color: var(--muted); font-size: 12.5px; } .wk-w b.act { font-family: var(--num); }
.wk-w a { color: var(--ink); }
.td-week .foot { margin-top: 0; }
@media (max-width: 1000px) { .td-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (max-width: 760px) {
  .td-row { padding: 10px 14px; column-gap: 10px; grid-template-columns: 26px minmax(0, 1fr) auto; }
  .td-ico, .td-ico .logo { width: 26px; height: 26px; line-height: 26px; }
  .td-h { font-size: 14.5px; } .td-t { font-size: 12.5px; } .td-num b { font-size: 16px; }
  .td-rare { font-size: 11px; }
  .wk { padding: 2px 14px 6px; } .wk-day { grid-template-columns: 70px minmax(0, 1fr); }
}

/* ===================================================================================== About */
main.narrow.about { max-width: 760px; }
.about .about-lede { font-size: 18px; line-height: 1.5; margin: 14px 0 12px; color: var(--ink); }
.about .about-note { background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 0 0 8px; }
.about-list { margin: 0; }
.about-list dt { font-weight: 700; margin-top: 14px; }
.about-list dd { margin: 2px 0 0; line-height: 1.6; color: var(--ink-2); }
.about-when { border-collapse: collapse; width: 100%; margin: 6px 0 10px; font-size: 14.5px; }
.about-when th { text-align: left; white-space: nowrap; font-weight: 650; padding: 8px 18px 8px 0; vertical-align: top; border-top: 1px solid var(--rule); }
.about-when td { padding: 8px 0; border-top: 1px solid var(--rule); color: var(--ink-2); line-height: 1.5; }
.about-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.lp-about { align-self: center; margin-left: 6px; font-weight: 600; }

/* ---- dark by choice (the footer's switch), light by choice on a dark device ---- */
:root[data-theme="light"] { color-scheme: light; --warn-ink: #9a6200; }
:root[data-theme="dark"] { --warn-ink: #e3a93c; }
:root[data-theme="dark"] .auth-card button.btn-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
.foot-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme { display: inline-flex; padding: 2px; gap: 1px; background: var(--surface-3); border-radius: 8px; }
.theme button { border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--muted); padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.theme button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
/* ---- a tab with something new since the reader last opened it ---- */
.band nav a.new { position: relative; }
.band nav a.new::after { content: ""; position: absolute; top: 14px; right: -9px; width: 7px; height: 7px; border-radius: 50%; background: var(--s2); }
/* ---- share a chart ---- */
.panel-head .share { margin-left: 10px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 12.5px; font-weight: 560; padding: 4px 9px; border-radius: 8px; cursor: pointer; flex: none; align-self: flex-start; }
.panel-head .share:hover { color: var(--ink); border-color: var(--axis); } .panel-head .share[disabled] { opacity: .5; }
.panel-head .share .ico { width: 13px; height: 13px; margin: 0; }
.panel-head .seg + .share { margin-left: 8px; }
.panel-head h2 ~ .share:first-of-type, .panel-head .ttl ~ .share:first-of-type { margin-left: auto; }
.panel-head .seg ~ .share { margin-left: 8px; }
/* ---- days in a row ---- */
.mult .mh .stk, .tag.stk { font-size: 11px; font-weight: 640; padding: 1px 6px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; flex: none; }
.tag.stk { font-size: 12px; padding: 2px 8px; }
@media print { .share, .theme, .viewsw, .fold-btn { display: none !important; } }
@media (max-width: 760px) {
  .band nav a.new::after { top: 7px; right: calc(50% - 26px); }
  .panel-head .share span { display: none; } .panel-head .share { padding: 6px 8px; }
  .foot-end { width: 100%; justify-content: space-between; }
}

/* ===================================================================================== watchlist */
button.star { border: 0; background: none; padding: 4px; margin: -4px 0 -4px 4px; cursor: pointer; line-height: 0; vertical-align: -3px; color: var(--axis); border-radius: 6px; }
button.star svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
button.star:hover { color: var(--s4); }
button.star.on { color: var(--s4); } button.star.on svg { fill: currentColor; }
h1 button.star { margin-left: 10px; vertical-align: 0; } h1 button.star svg { width: 22px; height: 22px; }
.mult .mh .wst { color: var(--s4); font-size: 12px; line-height: 1; }
.wl-only { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-left: auto; white-space: nowrap; cursor: pointer; }
.wl-only + input.search { margin-left: 12px; }
.wl { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.wl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; padding: 8px 14px 8px 18px; border-bottom: 1px solid var(--grid); }
.wl li.alert { box-shadow: inset 3px 0 0 var(--s4); }
.wl-s { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14.5px; } .wl-s .logo { margin: 0; }
.wl-t { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12.5px; color: var(--muted); min-width: 0; }
.wl-t .nwk { margin: 0; }
.wl-z { font-family: var(--num); font-weight: 680; font-size: 14.5px; white-space: nowrap; }
.wl-none { text-align: left; padding: 4px 18px 16px; line-height: 1.5; }
.brief-card { margin-top: 18px; } .brief-card h2 { font-size: 18px; margin: 0 0 6px; }
.brief-card label.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.brief-card label.check input { margin-top: 3px; } .brief-card label.check a { font-size: 13px; margin-left: 6px; white-space: nowrap; }
/* ===================================================================================== public, delayed pages */
.pub-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 22px; flex-wrap: wrap; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; line-height: 1.5; }
.pub-cta > div { flex: 1 1 320px; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 18px 16px; margin: 0; font-family: var(--num); font-weight: 600; }
@media (max-width: 760px) { .wl li { padding: 8px 10px 8px 14px; } .wl-only { margin-left: 0; } }

/* Today on a narrow screen: the reader's own watchlist comes first, then the ranked list, then news and the week */
@media (max-width: 1000px) { .td-side { display: contents; } .td-grid > .td-list { order: 1; } .td-side > * { order: 2; } .td-side > .td-watch { order: 0; } }
@media (max-width: 760px) { .findsym input { width: 116px; } select.run { max-width: 108px; } .head .asof > form.inline { margin: 0; } }

/* ---- the tab bar at the bottom: on phones, and on tablets held upright (six tabs do not fit their top bar).
   Made easy to see: brighter labels, the current tab on a blue block, a shadow lifting the bar off the page. ---- */
@media (max-width: 900px) {
  .band nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; order: 0; flex: none; height: auto; min-height: 60px;
    background: var(--band); border-top: 1px solid #3d3c38; box-shadow: 0 -6px 18px rgba(0,0,0,0.28);
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 2px;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .band nav.signed-out { display: none; }
  .band nav a { flex-direction: column; justify-content: center; align-items: center; gap: 3px; font-size: 12px; font-weight: 650; color: #dedcd4;
    border-bottom: 0; padding: 6px 0 5px; min-width: 0; min-height: 52px; border-radius: 11px; position: relative; }
  .band nav a .tabfig, .band.tighter nav a .tabfig { display: inline; font-size: 10.5px; padding: 0 5px; line-height: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .band nav a.on { color: #fff; font-weight: 720; background: #2463b4; box-shadow: none; }
  .band nav a.on .tabfig { background: rgba(255,255,255,0.16); color: #fff; }
  .band nav .lbl-l { display: none; } .band nav .lbl-s { display: inline; }
  .band nav a.new::after { top: 6px; right: calc(50% - 28px); }
  .band .who { margin-left: auto; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .more { display: none; }
  footer .foot-nav a.sec { display: none; }
}
@media (min-width: 600px) and (max-width: 900px) { .band nav a { font-size: 13.5px; } .band nav a .tabfig, .band.tighter nav a .tabfig { font-size: 11.5px; } }
/* the switch between views of one section: the chosen view stands out */
@media (max-width: 760px) {
  .viewsw { box-shadow: inset 0 0 0 1px var(--rule); }
  .viewsw button.on { color: var(--accent); font-weight: 720; box-shadow: 0 0 0 1px var(--ring), 0 1px 3px rgba(0,0,0,0.10); }
}

/* the figure on a tab fits the narrowest phone */
@media (max-width: 900px) {
  .band nav { gap: 0; padding-left: 2px; padding-right: 2px; }
  .band nav a .tabfig, .band.tighter nav a .tabfig { padding: 0 3px; }
}
@media (max-width: 374px) { .band nav a .tabfig, .band.tighter nav a .tabfig { font-size: 10px; } }
/* Retail bar on a mid-width screen (a tablet, a small laptop): the threshold moves from the label to the note, which may wrap */
.figures.summary.slan-sum .n .nsub { display: none; }
@media (min-width: 761px) and (max-width: 1180px) {
  .figures.summary.slan-sum .k .ksub { display: none; }
  .figures.summary.slan-sum .n .nsub { display: inline; }
  .figures.summary.slan-sum .n { flex-wrap: wrap; gap: 0 7px; }
}
@media (min-width: 901px) and (max-width: 1180px) { .figures.summary.slan-sum .fig { flex: 1 1 0; min-width: 0; } }
@media (min-width: 761px) and (max-width: 900px) { .figures.summary.slan-sum .fig { flex: 1 1 30%; } }

.brief-card .brief-off { background: var(--surface-2); border-radius: 8px; padding: 10px 14px; font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
.brief-card .brief-test { margin-top: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
/* the narrowest phones: the ledger gives its notes a little more room; a chart's caption may take two lines */
@media (max-width: 380px) {
  .figures.summary.even .fig, .figures.summary.slan-sum .fig { column-gap: 8px; padding-left: 12px; padding-right: 12px; }
  .figures.summary.even .sprow svg.spark, .figures.summary.slan-sum .vrow svg.spark { width: 42px; }
  .figures.summary.even .vrow .v { min-width: 68px; font-size: 17px; }
  .figures.summary.even .n, .figures.summary.slan-sum .n { font-size: 11.5px; gap: 0 5px; }
}
@media (max-width: 760px) { .earn-charts p.small { white-space: normal; } }

/* ---- mid-width screens (tablets, small laptops) ---- */
@media (max-width: 900px) { .bondgrid { grid-template-columns: 1fr; gap: 8px; } }
@media (min-width: 901px) and (max-width: 1180px) { .more-card { flex: 1 1 30%; } }
@media (max-width: 1100px) { .figures.summary.slow-band .fig .n { white-space: normal; } }
@media (max-width: 1180px) { .newswire.events a, .newswire.events .h { white-space: normal; } .newswire.events li { align-items: start; } }
/* a Retail card too narrow for everything on its top line drops the call share when it also carries a News tag */
.mult { container-type: inline-size; }
@container (max-width: 236px) { .mult.has-news .mh .cs { display: none; } }

@media (max-width: 1340px) { .newswire.events a, .newswire.events .h { white-space: normal; } .newswire.events li { align-items: start; } }
/* a stock's initial on its coloured tile, and the watchlist star: dark enough to read on any hue and in both themes */
.logo.mono { background: hsl(var(--h) 55% 36%); }
:root { --star: #b87d00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --star: #e3a93c; } }
:root[data-theme="dark"] { --star: #e3a93c; }
button.star:hover, button.star.on, .mult .mh .wst { color: var(--star); }
.wl li.alert { box-shadow: inset 3px 0 0 var(--star); }

/* a link into a page lands with its heading below the bar that stays at the top, not under it */
html { scroll-padding-top: 72px; }
@media (max-width: 900px) { html { scroll-padding-top: 62px; } }
/* a row of buttons wider than a phone scrolls sideways inside its own box instead of widening the page */
@media (max-width: 760px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; }
  .panel-head { min-width: 0; } .panel-head > * { min-width: 0; }
}
/* the other sections' cards: when a label and its figure do not fit one line, the figure drops to the next (nothing is cut) */
.more-card .f { flex-wrap: wrap; row-gap: 0; }
.more-card .f .w { overflow: visible; text-overflow: clip; min-width: auto; }
.more-card .f.w { display: block; white-space: normal; overflow: visible; }

/* ---- last touches from the full check ---- */
.tabs.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0,0,0,0.12)); mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0,0,0,0.12)); }
.tabs.more-l.more-r { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px, #000 calc(100% - 44px), rgba(0,0,0,0.12)); mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px, #000 calc(100% - 44px), rgba(0,0,0,0.12)); }
.tabs.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px); mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px); }
.tablewrap.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px); mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px); }
@media (min-width: 761px) and (max-width: 1240px) { .tabs button { padding-left: 10px; padding-right: 10px; } }
@media (min-width: 761px) and (max-width: 900px) { .figures.earn-sum .fig { flex: 1 1 30%; } }
@media (max-width: 1000px) { .panel-head .share span { display: none; } .panel-head .share { padding: 6px 8px; } }
@media (max-width: 380px) { .tape-in { font-size: 12px; gap: 2px 10px; } .tq .tn { margin-right: 5px; } }
@media (max-width: 380px) { .tape-in { font-size: 11.5px; gap: 2px 8px; padding-left: 12px; padding-right: 12px; } .tq .tn { margin-right: 4px; } .tq .tv { margin-right: 3px; } }

/* =====================================================================================
   The bars that stay on screen are always on top of the page.
   The Macro page's two bands also carry the class "band", so they had picked up the top bar's
   "stay put, above everything" rule and painted over both bars. They are ordinary boxes again.
   ===================================================================================== */
header.band { z-index: 100; }
.figures.summary.band, nav.figures.band { position: relative; top: auto; z-index: auto; }

/* =====================================================================================
   Desktop and tablets held sideways: the tabs get a row of their own under the name, as wide as the
   page, and that row stays at the top of the window while the page scrolls (the name row slides away).
   Same look as the bar on a phone: bright labels, each tab's live figure, the current tab on blue.
   ===================================================================================== */
@media (min-width: 901px) {
  header.band:not(:has(nav.signed-out)) { top: -50px; }
  .band-in { height: auto; flex-wrap: wrap; row-gap: 0; column-gap: 20px; }
  .band-in > .brand { height: 50px; margin-right: auto; }
  .band-in > .fresh, .band-in > .who { height: 50px; }
  .band nav.signed-out { display: none; }
  .band nav { order: 9; flex: 0 0 100%; height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
    padding: 6px 0 7px; border-top: 1px solid var(--band-rule); overflow: visible; }
  .band nav a { justify-content: center; gap: 9px; min-height: 40px; padding: 4px 10px; border-bottom: 0; border-radius: 10px;
    font-size: 15.5px; font-weight: 680; letter-spacing: -0.005em; color: #ecebe4; background: #222220; box-shadow: inset 0 0 0 1px #33322e; }
  .band nav a:hover { background: #2e2e2b; color: #fff; text-decoration: none; }
  .band nav a.on { background: #2463b4; color: #fff; box-shadow: none; border-bottom-color: transparent; }
  .band nav a .tabfig, .band.tighter nav a .tabfig { display: inline; font-size: 12.5px; }
  .band nav a.on .tabfig { background: rgba(255,255,255,0.16); color: #fff; }
  .band nav a.new::after { top: 6px; right: 8px; }
  .band nav .lbl-l { display: inline; } .band nav .lbl-s { display: none; }
}
/* narrower desktops and tablets on their side: the figure sits under the label so six tabs fit */
@media (min-width: 901px) and (max-width: 1239px) {
  .band nav a { flex-direction: column; gap: 2px; min-height: 46px; font-size: 14.5px; }
  .band nav a .tabfig, .band.tighter nav a .tabfig { font-size: 11.5px; line-height: 16px; padding: 0 6px; }
}
/* a nested row with nothing to chart or list yet says so, instead of the cell doing nothing */
.det-none { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; white-space: normal; text-align: left; font-family: inherit; }
.det-none .ico { width: 16px; height: 16px; flex: none; margin: 2px 0 0; color: var(--muted); }
.det-none b { color: var(--ink); }

/* ===================================================================================== out of the ordinary today (Macro) */
.newswire.events li.later time { color: var(--muted); } .newswire.events li.later .h { font-weight: 500; color: var(--ink-2); }
.td-watch { margin-bottom: 16px; }
.td-watch .wl { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); border-top: 1px solid var(--rule); }
.td-watch .wl li { border-right: 1px solid var(--grid); }
@media (max-width: 900px) {
}
@media (max-width: 760px) {
  .td-watch .wl { grid-template-columns: minmax(0, 1fr); } .td-watch .wl li { border-right: 0; }
}

/* Earnings: what opens under a company takes the width of the table as it stands and never adds to it (a box of no width of its own
   that then fills its cell), and a list too wide for a phone scrolls on its own. Opening a row never pushes the columns above it apart. */
tr.past-row > td > :not(button), tr.det-row > td > :not(button) { width: 0; min-width: 100%; box-sizing: border-box; }
tr.past-row > td > .past-mini, tr.det-row > td > .past-mini { display: block; max-width: none; overflow-x: auto; overscroll-behavior-x: contain; }
tr.chart-row > td > .rx-verdict, tr.chart-row > td > .rx-grid { width: 0; min-width: min(100%, 1100px); position: static; }
tr.past-row > td > .det-none, tr.det-row > td > .det-none { padding-left: 0; padding-right: 0; }
/* should a table still be wider than a tablet's screen, the company stays in view while the rest scrolls (and is shaded with its row under a pointer) */
@media (max-width: 1179px) {
  .tablewrap table.data.earn > tbody > tr { background: var(--surface); }
  .tablewrap table.data.earn > tbody > tr:not(.has-past):hover { background: var(--surface-2); }
  .tablewrap table.data.earn > thead th:first-child, .tablewrap table.data.earn > tbody > tr > td.sym { position: sticky; left: 0; z-index: 1; background: inherit; }
  .tablewrap table.data.earn > tbody > tr.has-past:hover > td.sym { background: linear-gradient(rgba(0,0,0,.025), rgba(0,0,0,.025)) var(--surface); }
  .tablewrap table.data.earn > thead th:first-child { z-index: 3; }
}
/* every opened row is shaded alike, on every screen */
.tablewrap table.data.earn > tbody > tr.past-row > td, .tablewrap table.data.earn > tbody > tr.det-row > td { position: static; background: var(--surface-2); }
/* the small table inside an opened row is its own thing: none of the outer table's pinned cells or row colours reach into it */
.tablewrap table.data table.past-mini tr, .tablewrap table.data table.past-mini th, .tablewrap table.data table.past-mini td { position: static; background: none; z-index: auto; }
/* the columns that matter most are always there; the rest join as the screen widens, so the table is never scrolled sideways */
@media (max-width: 900px) { .hide-t1 { display: none; } }
@media (max-width: 1023px) { .hide-t2 { display: none; } }
@media (max-width: 1199px) { .hide-t3 { display: none; } }
@media (max-width: 1339px) { .hide-t4 { display: none; } }
@media (min-width: 1340px) {
  table.data.earn.has-peers small.sdk, table.data.earn.has-peers td.gcell.hide-t3 small { display: none; }
}
.past-mini.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0,0,0,0.12)); mask-image: linear-gradient(to right, #000 calc(100% - 44px), rgba(0,0,0,0.12)); }
.past-mini.more-l.more-r { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px, #000 calc(100% - 44px), rgba(0,0,0,0.12)); mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px, #000 calc(100% - 44px), rgba(0,0,0,0.12)); }
.past-mini.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px); mask-image: linear-gradient(to right, rgba(0,0,0,0.12), #000 44px); }
/* phones hide the Industry column, which is what opens a company's peers: the way in is a button under its past reports */
.show-sm { display: none !important; }
@media (max-width: 760px) { .show-sm { display: inline-flex !important; } }
.pl-open { align-items: center; gap: 7px; margin: 10px 0 2px; padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left; white-space: normal; cursor: pointer; max-width: 100%; }
.pl-open .ico { width: 14px; height: 14px; flex: none; margin: 0; }
.pl-open[aria-expanded="true"] { background: var(--surface-2); color: var(--ink); }
/* phones: the Earnings tables fit the screen, with nothing to scroll sideways for. The bar beside the expected move is left to the chart above the table. */
@media (max-width: 480px) { table.earn#earn-now td.gcell svg.implbar { display: none; } }
/* phones: the column headings keep to their words; what each column means is in the note under the table */
@media (max-width: 480px) { table.data.earn th .thi { display: none; } }
/* an industry's name runs to a second line rather than being cut short */
.tablewrap table.data.earn td.dim.l.ind { max-width: none; overflow: visible; white-space: normal; }
td.ind .ind-w { display: flex; align-items: flex-start; gap: 6px; max-width: 150px; line-height: 1.25; }
td.ind .ind-w .ind-ico { margin: 1px 0 0; }
td.ind .ind-n { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* Earnings: a company's name gets the room it needs. The logo sits in the cell's padding rather than floating beside the name, so the
   name's full width counts when the columns are sized; how long a name may run follows the room each screen has to spare. */
@media (min-width: 1340px) { table.data.earn.has-peers th, table.data.earn.has-peers td { padding-left: 6px; padding-right: 6px; } }
table.data.earn td.sym { padding-left: 50px; }
table.data.earn td.sym .logo { float: none; position: absolute; left: 22px; top: 50%; margin: 0; transform: translateY(-50%); }
table.data.earn#earn-rep td.sym { padding-left: 40px; }
table.data.earn#earn-rep td.sym .logo { left: 12px; }
table.data.earn td.sym .co { max-width: 124px; }
@media (min-width: 1401px) { table.data.earn.has-peers { font-size: 13px; } }
@media (min-width: 1200px) and (max-width: 1339px) { table.data.earn td.sym .co { max-width: clamp(104px, calc(100vw - 1080px), 124px); } }
@media (min-width: 1024px) and (max-width: 1199px) { table.data.earn td.sym .co { max-width: clamp(104px, calc(100vw - 914px), 124px); } }
@media (min-width: 901px) and (max-width: 1023px) { table.data.earn td.sym .co { max-width: clamp(104px, calc(100vw - 790px), 124px); } }
@media (min-width: 761px) and (max-width: 900px) { table.data.earn td.sym .co { max-width: clamp(84px, calc(100vw - 680px), 124px); } }
@media (max-width: 760px) {
  table.data.earn td.sym .co { max-width: clamp(72px, calc(100vw - 291px), 124px); }
  table.data.earn#earn-rep td.sym .co { max-width: clamp(66px, calc(100vw - 303px), 124px); }
}
/* phones: the company takes whatever room the three figures beside it leave */
@media (max-width: 760px) {
  table.data.earn > thead th:first-child { width: 100%; }
  table.data.earn td.sym .co, table.data.earn#earn-rep td.sym .co { max-width: none; overflow-wrap: anywhere; }
}
@media (max-width: 380px) { table.data.earn#earn-rep td.sym { padding-left: 35px; } table.data.earn#earn-rep td.sym .logo { left: 8px; } }
/* phones and tablets have no pointer to hover for the full name: there a long name runs to a second line instead of being cut */
@media (max-width: 1199px) {
  table.data.earn td.sym .co { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.2; }
}
@media (min-width: 761px) and (max-width: 1199px) { table.data.earn td.sym .co { overflow-wrap: break-word; } }
@media (max-width: 760px) { table.data.earn td.sym .co { -webkit-line-clamp: 3; line-clamp: 3; } }
/* Macro: a day's change that ranks among the few largest of the past year is marked in its own box, the way an index's is */
.figures.summary .fig.mon .mon-r.extreme { padding-left: 7px; }
.mon-r.extreme.pos { box-shadow: inset 3px 0 0 var(--up); } .mon-r.extreme.neg { box-shadow: inset 3px 0 0 var(--down); }
.mon-r.extreme .mon-c { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.mon-flag { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; margin-top: -2px; font-size: 11.5px; font-weight: 600; line-height: 1.3; white-space: normal; }
.mon-r.pos .mon-flag { color: var(--up); } .mon-r.neg .mon-flag { color: var(--down); }
.mon-flag svg.ico, .box-flag svg.ico { width: 13px; height: 13px; flex: none; margin: 0; color: currentColor; }
.box-flag { display: flex; align-items: flex-start; gap: 5px; margin-top: 7px; padding: 5px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.35; text-align: left; white-space: normal; }
.box-flag svg.ico { margin-top: 2px; }
.box-flag b { font-family: var(--num); }
/* the Fed box: a jump in the odds is neither good nor bad news in itself, so its note is amber whichever way the odds moved */
.box-flag { color: var(--warn-ink); background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--warn); }
/* Factors: the two tables of returns show whole on every screen. A heading runs to two lines; the note that a day is intraday or a month
   is not over sits under its date; the columns that matter least wait for a wider screen. */
.narrow-l, .d-xs { display: none; }
#fac-recent table.data th, #fac-monthly table.data th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
#fac-recent td.fday, #fac-monthly td.fday { white-space: nowrap; }
td.fday .under { display: block; width: max-content; margin-top: 2px; font-size: 10.5px; line-height: 1.3; }
td.fday .tag.under { padding: 0 6px; }
@media (max-width: 1239px) { #fac-recent table.data th, #fac-recent table.data td, #fac-monthly table.data th, #fac-monthly table.data td { padding-left: 6px; padding-right: 6px; } }
@media (min-width: 1240px) { #fac-recent .fc-rf, #fac-monthly .fc-rf { display: none; } }     /* side by side: the risk-free rate is left to the CSV */
@media (min-width: 1240px) and (max-width: 1299px) { #fac-recent table.data, #fac-monthly table.data { font-size: 12.5px !important; } }
@media (max-width: 760px) {
  #fac-recent .fc-rmw, #fac-recent .fc-cma, #fac-recent .fc-rf, #fac-monthly .fc-rmw, #fac-monthly .fc-cma, #fac-monthly .fc-rf { display: none; }
  #fac-recent table.data, #fac-monthly table.data { font-size: 12.5px; }
  #fac-recent table.data th, #fac-recent table.data td, #fac-monthly table.data th, #fac-monthly table.data td { padding-left: 4px; padding-right: 4px; }
  #fac-recent table.data th, #fac-monthly table.data th { font-size: 11.5px; }
  .narrow-l, #fac-recent .d-xs { display: inline; } .wide-l, #fac-recent .d-s { display: none; }
}
@media (max-width: 380px) {
  #fac-recent table.data, #fac-monthly table.data { font-size: 11.5px; }
  #fac-recent table.data th, #fac-recent table.data td, #fac-monthly table.data th, #fac-monthly table.data td { padding-left: 3px; padding-right: 3px; }
}
/* Factors on phones (and where the tabs share a row with the chart on a small laptop): the seven factor tabs sit in two rows, all in
   view, instead of a strip to scroll */
@media (max-width: 760px), (min-width: 901px) and (max-width: 1023px) {
  #ftabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; padding: 8px 8px 6px; -webkit-mask-image: none; mask-image: none; }
  #ftabs button { min-width: 0; margin: 0; padding: 7px 2px 6px; border: 0; border-radius: 9px; text-align: center; }
  #ftabs button .t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  #ftabs button .x { font-size: 12px; }
  #ftabs button.on { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
  #ftabs button:nth-child(7):last-child { grid-column: span 2; }       /* the long name, AI orthogonal, takes the two places left in its row */
}
/* AI: the two books and the default table show whole on every screen */
#t-long table.data th, #t-short table.data th, table.pd-table th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
table.data.pd-table th, table.data.pd-table td { padding-left: 7px; padding-right: 7px; }
table.pd-table td.l b { white-space: nowrap; }
@media (max-width: 1339px) { table.pd-table .pd-group { display: none; } }          /* the chart beside it already colours the two groups */
@media (max-width: 760px) {
  #t-long table.data th, #t-long table.data td, #t-short table.data th, #t-short table.data td { padding-left: 6px; padding-right: 6px; }
  table.pd-table .pd-rating, table.pd-table .pd-1y { display: none; }
  table.data.pd-table th, table.data.pd-table td { padding-left: 4px; padding-right: 4px; }
  table.data.pd-table { font-size: 12.5px; } table.data.pd-table th { font-size: 11.5px; }
}
@media (max-width: 380px) {
  #t-long table.data th, #t-long table.data td, #t-short table.data th, #t-short table.data td { padding-left: 4px; padding-right: 4px; }
  #t-long table.data, #t-short table.data { font-size: 13px; }
  table.data.pd-table th, table.data.pd-table td { padding-left: 3px; padding-right: 3px; }
  table.data.pd-table { font-size: 12px; } table.data.pd-table th { font-size: 11px; }
}
/* Retail Flows, all names: the whole table on every screen. Headings run to two lines; phones keep the three scores and the call share. */
#tbl th, table.hz th, table.lei-all th { white-space: normal; line-height: 1.2; vertical-align: bottom; }
@media (max-width: 1023px) { table.data#tbl th, table.data#tbl td { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 760px) {
  #tbl .c-x { display: none; }
  table.data#tbl th, table.data#tbl td { padding-left: 5px; padding-right: 5px; }
}
/* Macro: the range table keeps the horizon, the expected return, the 68% range and the odds of a fall on phones (the chart above it draws
   the 95% range); the leading index's table and its row of buttons fold onto the screen */
@media (max-width: 760px) {
  table.hz .hz-x { display: none; }
  #return table.data.hz th, #return table.data.hz td { padding-left: 6px; padding-right: 6px; }
  #lrange { display: flex; flex-wrap: wrap; overflow: visible; height: auto; }
  table.data.lei-all th, table.data.lei-all td { padding-left: 5px; padding-right: 5px; white-space: normal; }
  table.data.lei-all { font-size: 12.5px; } table.data.lei-all th { font-size: 11.5px; }
}
@media (max-width: 1023px) { table.data.lei-all th, table.data.lei-all td { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 400px) {
  #return table.data.hz { font-size: 12.5px; }
  #return table.data.hz th, #return table.data.hz td { padding-left: 4px; padding-right: 4px; }
  table.data.lei-all th, table.data.lei-all td { padding-left: 3px; padding-right: 3px; }
  .tablewrap.pad:has(> table.lei-all) { padding-left: 0; padding-right: 0; }
}
@media (max-width: 380px) {
  #return table.data.hz, #return table.data.hz td b { font-size: 12px; }
  #return table.data.hz th, #return table.data.hz td { padding-left: 3px; padding-right: 3px; }
}
@media (min-width: 901px) and (max-width: 1023px) { table.data.pd-table th, table.data.pd-table td { padding-left: 5px; padding-right: 5px; } }
/* the narrowest phones: plain tables give up some of the space between their columns */
@media (max-width: 380px) { table.data th, table.data td { padding-left: 8px; padding-right: 8px; } }
/* Macro: the two index cards share their rows, so a heading that runs to a second line in one moves both and the charts and tables stay level */
@media (min-width: 1200px) {
  .ix-cards.two { grid-template-rows: auto auto auto; }
  .ix-cards.two > .ix-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  .ix-cards.two .ix-head { align-content: start; }
}
/* Factors, side by side: the tables scroll down inside their boxes, and on Windows that scroll bar takes room of its own. The columns are
   set a little closer and the bar is the thin kind, so the widest month still fits beside it. */
@media (min-width: 1240px) {
  .pair .tablewrap { overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
  #fac-recent table.data, #fac-monthly table.data { font-size: 13px; }
  #fac-recent table.data th, #fac-recent table.data td, #fac-monthly table.data th, #fac-monthly table.data td { padding-left: 4px; padding-right: 4px; }
  #fac-recent table.data th:first-child, #fac-recent table.data td:first-child, #fac-monthly table.data th:first-child, #fac-monthly table.data td:first-child { padding-left: 14px; }
  #fac-recent table.data th:last-child, #fac-recent table.data td:last-child, #fac-monthly table.data th:last-child, #fac-monthly table.data td:last-child { padding-right: 10px; }
}
/* "More" and its arrow never part company at the end of a line */
.explain > summary .xmore { display: inline-block; white-space: nowrap; }
/* phones: the key under the two index charts keeps inside the box */
@media (max-width: 760px) { .er-foot { padding-right: 0; } .er-foot .keys { padding: 4px 16px 12px; gap: 8px 14px; } }
/* a panel whose heading holds only its title and the share button: one line, the button at the right */
.panel-head.ttl-share { flex-wrap: nowrap; align-items: flex-start; }
.panel-head.ttl-share .ttl { flex: 1 1 0; }
.panel-head.ttl-share .share { flex: none; margin-left: auto; }
/* phones: the share button always sits in the top right corner of its panel's heading, beside the title, whatever else the heading holds */
@media (max-width: 760px) {
  .panel-head.has-share { position: relative; }
  .panel-head.has-share > .share { position: absolute; top: 12px; right: 14px; margin: 0; }
  .panel-head.has-share > .ttl > h2, .panel-head.has-share > h2 { padding-right: 46px; }     /* only the title makes room for it */
}
.nw { white-space: nowrap; }
/* phones: the footer in the usual order, centred: the links, the theme switch, then the copyright line */
@media (max-width: 760px) {
  footer .in { flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 18px 16px 22px; }
  footer .foot-nav { order: 1; justify-content: center; gap: 4px 26px; }
  footer .foot-end { order: 2; width: auto; flex-direction: column; gap: 12px; justify-content: center; }
  footer .in > span:first-child { order: 3; }
}
/* phones: each row of the AI debt table keeps to one line */
@media (max-width: 760px) {
  .bondgrid table.bg td.l, .bondgrid table.bg th.l { white-space: nowrap; }
  .bondgrid table.bg th, .bondgrid table.bg td { padding-left: 4px; padding-right: 4px; }
}
.sub .tag, .asof .tag { white-space: nowrap; }      /* a tag is never split across two lines */
/* the narrowest phones have no room for that: there the two longest labels run to a second line, as before */
@media (max-width: 380px) { .bondgrid table.bg td.l, .bondgrid table.bg th.l { white-space: normal; } }
