/* 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; }
.tape .tpre { display: none; color: var(--band-muted); font-size: 11.5px; white-space: nowrap; }   /* phones only: the time line is hidden there */

/* 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); } }
.newswire.ai-news li { grid-template-columns: 84px minmax(0, 1fr); padding: 7px 0; }
.newswire.ai-news .nw-body { min-width: 0; }
.newswire.ai-news .nw-body > a, .newswire.ai-news .nw-body > .h { display: block; }
.newswire .nw-why { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); white-space: normal; }
.newswire .nw-tk { font: 500 11.5px/1 var(--num); color: var(--muted); margin-left: 4px; white-space: nowrap; }
.newswire .nw-src { font-size: 11.5px; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.newswire.ai-news time { white-space: nowrap; }
@media (max-width: 760px) { .newswire.ai-news li { grid-template-columns: 74px minmax(0, 1fr); column-gap: 8px; } .newswire.ai-news time { font-size: 11px; } }

/* 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; }
  .tape .tpre:not([hidden]) { display: inline; font-size: 10.5px; padding: 0 4px; border: 1px solid var(--band-muted); border-radius: 4px; line-height: 1.3; }
  .tape-in:has(.tpre:not([hidden])) { column-gap: 8px; }
  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; } }

/* The yield curve in the Fed panel: its slopes beside the caption, and one line for it in the Fed box. */
.cap .cap-n { margin-left: 12px; color: var(--ink-2); } .cap .cap-n b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .cap .cap-n { display: block; margin: 2px 0 0; } }

/* The Portfolio tab. One colour an entity all the way down the page: the portfolio as entered in ink, what is made with
   the most correlated stocks in the second series colour, what is made with the least correlated in the first. */
.pf-form label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 14px; }
.pf-in { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.pf-form textarea { width: 100%; min-height: 118px; font: inherit; font-size: 15px; line-height: 1.45; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--axis); background: var(--surface); color: var(--ink); resize: vertical; font-variant-numeric: tabular-nums; }
.pf-form textarea:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.pf-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; } .pf-go .dim { font-size: 12.5px; flex: 1 1 220px; line-height: 1.4; }
.pf-go .btn[disabled] { opacity: .5; cursor: not-allowed; }
.pf-left { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pf-error { margin: 10px 0 0; color: var(--down); font-size: 14px; max-width: 60ch; }
.pf-note { margin: 0 2px 16px; font-size: 13.5px; color: var(--ink-2); }
.pf-in-r { min-width: 0; } .pf-eg-k { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 14px; }
.pf-in-b { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pf-eg { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; text-align: left; padding: 10px 12px 11px; border-radius: 9px; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-2); font: inherit; cursor: pointer; min-width: 0; transition: border-color .12s, background .12s; }
.pf-eg:hover { border-color: var(--axis); background: var(--surface-2); } .pf-eg:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.pf-eg b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--ink); } .pf-eg b .ico { width: 15px; height: 15px; color: var(--s1); flex: none; }
.pf-eg code { font-family: var(--num); font-size: 12px; line-height: 1.5; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1100px) { .pf-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .pf-in-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-eg code { font-size: 11.5px; } }

/* the portfolio itself: its name, the positions with their weights, the sector mix, and four figures */
.pf-you { margin-bottom: 22px; overflow: visible; }
.pf-h { align-items: center; padding: 10px 14px 9px; gap: 10px 12px; flex-wrap: wrap; } .pf-h > b { font-size: 16px; display: inline-flex; align-items: center; }
.pf-h > b .logo { width: 24px; height: 24px; line-height: 24px; border-radius: 6px; } .pf-h > span { font-size: 13px; min-width: 0; }
.pf-pos { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 14px 12px; }
.pf-chip { position: relative; display: inline-flex; align-items: center; gap: 0; padding: 6px 11px 9px 8px; border-radius: 9px; background: var(--surface-2); font-size: 13.5px; overflow: hidden; }
.pf-chip b { font-weight: 680; color: var(--ink); } .pf-chip i { font-style: normal; color: var(--ink-2); margin-left: 8px; font-family: var(--num); font-size: 13px; }
.pf-chip .pf-w { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; } .pf-chip .pf-w u { display: block; height: 100%; background: var(--ink); opacity: .55; text-decoration: none; }
.pf-mix { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 14px 13px; font-size: 12.5px; color: var(--ink-2); }
.pf-mix-k { color: var(--muted); } .pf-mix-bar { display: flex; flex: 0 1 220px; min-width: 120px; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.pf-mix-bar i { display: block; min-width: 2px; } .pf-mix-l { display: flex; flex-wrap: wrap; gap: 3px 14px; } .pf-mix-l span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pf-mix-l i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.pf-mix .m0 { background: var(--s1); } .pf-mix .m1 { background: var(--s2); } .pf-mix .m2 { background: var(--s3); } .pf-mix .m3 { background: var(--s4); } .pf-mix .m4 { background: var(--s7); }
.pf-mix-bar i:nth-child(n+6) { background: var(--axis); }
.figures.summary.band.pf-figs { flex-wrap: nowrap; }
.figures.summary.band.pf-figs .fig { flex: 1 1 0; min-width: 0; padding: 11px 14px 12px; cursor: default; border-top-width: 2px; }
.figures.summary.band.pf-figs .fig .k { font-size: 12.5px; white-space: nowrap; } .figures.summary.band.pf-figs .v { font-size: 24px; margin-top: 2px; } .figures.summary.band.pf-figs .v:not(.pos):not(.neg) { color: var(--ink); }
.figures.summary.band.pf-figs .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.figures.summary.band.pf-figs .vrow { justify-content: flex-start; gap: 10px; align-items: baseline; } .figures.summary.band.pf-figs .tone.plain { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.figures.summary.band.pf-figs .tone.plain::before { display: none; }
.figures.summary.band.pf-figs .n { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: normal; line-height: 1.4; }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 7px; overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
@media (max-width: 900px) { .figures.summary.band.pf-figs { flex-wrap: wrap; } .figures.summary.band.pf-figs .fig { flex: 1 1 46%; } }

/* Share: the menu under the button */
.pf-share { margin-left: auto; position: relative; } .pf-share > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; }
.pf-share > summary::-webkit-details-marker { display: none; } .pf-share > summary:hover, .pf-share[open] > summary { border-color: var(--axis); background: var(--surface-2); }
.pf-share > summary .ico { width: 14px; height: 14px; } .pf-share > summary:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.pf-share-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 13px 14px 12px; border-radius: 12px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule), 0 12px 32px rgba(0, 0, 0, .16); display: block; }
.pf-share-menu p { margin: 0 0 11px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pf-nets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .pf-nets a, .pf-acts button, .pf-native { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px;
  border-radius: 8px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pf-nets a:hover, .pf-acts button:hover, .pf-native:hover { background: var(--surface-2); border-color: var(--axis); text-decoration: none; }
.pf-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; } .pf-acts .ico { width: 14px; height: 14px; color: var(--ink-2); } .pf-acts button[disabled] { opacity: .5; }
.pf-native { width: 100%; margin-bottom: 8px; background: var(--ink); color: var(--surface); border-color: var(--ink); } .pf-native:hover { background: var(--ink); filter: brightness(1.15); }

/* the two lists */
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .pf-two > .panel { min-width: 0; }
@media (max-width: 1150px) { .pf-two { grid-template-columns: 1fr; gap: 0; } }
.pf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-right: 8px; flex: none; vertical-align: 0; }
.pf-top .pf-dot { background: var(--s2); } .pf-low .pf-dot { background: var(--s1); }
table.data.pf-list td, table.data.pf-list th, table.data.pf-mixes td, table.data.pf-mixes th, table.data.pf-fac td, table.data.pf-fac th { white-space: nowrap; }
table.data.pf-list { table-layout: fixed; } table.data.pf-list th.pf-c { width: 150px; } table.data.pf-list th:nth-child(3), table.data.pf-list th:nth-child(4) { width: 76px; } table.data.pf-list th:nth-child(5) { width: 94px; }
table.data.pf-list td { padding-top: 9px; padding-bottom: 9px; vertical-align: middle; } table.data.pf-list td.l { overflow: hidden; }
.pf-st { display: flex; align-items: center; gap: 10px; min-width: 0; } .pf-st .logo { width: 28px; height: 28px; line-height: 28px; border-radius: 7px; margin: 0; font-size: 13px; }
.pf-st > div { display: flex; flex-direction: column; min-width: 0; font-family: inherit; } .pf-t { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pf-st b { font-weight: 700; color: var(--ink); font-size: 14px; flex: none; } .pf-nm { color: var(--ink-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pf-ind { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; margin-top: 1px; min-width: 0; } .pf-ind .ico { width: 13px; height: 13px; flex: none; }
.pf-ind > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pf-cc { display: flex; align-items: center; gap: 9px; justify-content: flex-end; } .pf-cc .cbar { flex: 1 1 auto; min-width: 30px; } .pf-cc b { flex: none; min-width: 40px; text-align: right; }
table.data.pf-list td.off { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.cbar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface-2); min-width: 40px; }
.cbar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--axis); }
.cbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); }
.pf-top .cbar i, td.pf-top .cbar i { background: var(--s2); } .pf-low .cbar i, td.pf-low .cbar i { background: var(--s1); } td.pf-alone .cbar i { background: var(--ink); }
.pf-why { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 16px 12px; border-top: 1px solid var(--rule); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.pf-why[hidden] { display: none; } .pf-why > .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--s7); }
.pf-why p { margin: 0; flex: 1; font-size: 13.5px; line-height: 1.5; color: var(--ink); } .pf-why-by { flex: none; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--rule);
  border-radius: 6px; padding: 1px 6px; cursor: help; margin-top: 1px; }

/* return, risk and Sharpe: the table beside the chart; a switch shows one window's columns */
.pf-risk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 0 8px; align-items: start; }
.pf-risk > .tablewrap, .pf-risk > div { min-width: 0; } .pf-mv .cap { padding-top: 12px; }
@media (max-width: 1100px) { .pf-risk { grid-template-columns: minmax(0, 1fr); } }
table[data-w="1y"] .w-3m, table[data-w="1y"] .w-1m, table[data-w="3m"] .w-1y, table[data-w="3m"] .w-1m, table[data-w="1m"] .w-1y, table[data-w="1m"] .w-3m { display: none; }
table.data.pf-mixes td.l { white-space: normal; } table.data.pf-mixes td.l .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--ink-2); }
table.data.pf-mixes tr.pf-alone td { font-weight: 600; } table.data.pf-mixes tr.pf-in-grp td.l { padding-left: 34px; color: var(--ink-2); }
table.data.pf-mixes tr.pf-grp td { padding-top: 14px; padding-bottom: 6px; border-bottom: 0; font-size: 12.5px; font-weight: 650; color: var(--ink); font-family: inherit; }
table.data.pf-mixes tr.pf-best td { background: var(--surface-2); } table.data.pf-mixes tr.pf-best td.l { color: var(--ink); }
.chart.pf-mvc { height: 350px; } @media (max-width: 760px) { .chart.pf-mvc { height: 380px; } }
.pf-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.pf-mv { padding: 0 8px 8px 0; } .pf-mv .cap { padding-left: 8px; } .pf-mv .cap + .chart + .cap { padding-top: 6px; }
.pf-fine { margin: 10px 16px 14px; font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 62ch; }

/* factor loadings: a bar and a number for each of the three, bold where the t-statistic is beyond 2 */
table.data.pf-fac th .pf-dot { width: 9px; height: 9px; margin-right: 6px; } table.data.pf-fac th { white-space: nowrap; }
.pf-fn { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: inherit; } .pf-fn > .ico { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.pf-fn > span { display: flex; flex-direction: column; min-width: 0; } .pf-fn b { font-weight: 650; color: var(--ink); } .pf-fn.pf-plain { padding-left: 28px; } .pf-fn.pf-plain b { font-weight: 500; color: var(--ink-2); }
.pf-fa { font-size: 12px; color: var(--muted); white-space: normal; line-height: 1.35; }
.pf-b { display: inline-flex; align-items: center; gap: 9px; justify-content: flex-end; width: 100%; color: var(--muted); } .pf-b b { font-weight: 500; min-width: 44px; text-align: right; color: var(--ink-2); }
.pf-b.sig b { font-weight: 720; color: var(--ink); } .pf-b .t { font-size: 12px; min-width: 46px; text-align: right; } .pf-b.sig .t { color: var(--ink-2); }
.pf-b .cbar { flex: 1 1 60px; max-width: 150px; height: 7px; } .pf-b:not(.sig) .cbar i { opacity: .45; }
table.data.pf-fac tr.sum td { border-top: 2px solid var(--rule); } table.data.pf-fac td.l { width: 34%; }
.pf-about b { color: var(--ink); }
@media (max-width: 760px) {
  table.data.pf-list td, table.data.pf-list th, table.data.pf-fac td, table.data.pf-fac th, table.data.pf-mixes td, table.data.pf-mixes th { padding: 9px 7px; font-size: 13px; }
  table.data.pf-list td.l, table.data.pf-list th.l, table.data.pf-mixes td.l, table.data.pf-mixes th.l, table.data.pf-fac td.l, table.data.pf-fac th.l { padding-left: 12px; }
  .pf-nm { display: none; } .pf-st .logo { width: 24px; height: 24px; line-height: 24px; } .pf-st { gap: 8px; }
  table.data.pf-list th.pf-c { width: 104px; } table.data.pf-list th:nth-child(3), table.data.pf-list th:nth-child(4) { width: 50px; } .pf-cc { gap: 6px; } .pf-cc b { min-width: 34px; }
  table.data.pf-mixes tr.pf-in-grp td.l { padding-left: 24px; }
  .pf-fn { gap: 7px; } .pf-fn > .ico { width: 15px; height: 15px; } .pf-fn.pf-plain { padding-left: 22px; }
  .pf-b .cbar { max-width: 70px; height: 5px; } .pf-b .t { font-size: 11.5px; }
  table.data.pf-fac th { white-space: normal; font-size: 11.5px; line-height: 1.25; } table.data.pf-fac th .pf-dot { display: block; margin: 0 0 3px auto; }
  .pf-h > span { flex: 1 1 100%; order: 3; } .pf-why { padding: 10px 12px 11px; }
}

/* The latest economic figures on Macro: one compact table. */
table.data.prints td, table.data.prints th { white-space: nowrap; } table.data.prints td.l .dim { font-size: 12.5px; margin-left: 6px; }
@media (max-width: 760px) { table.data.prints td, table.data.prints th { padding: 9px 7px; font-size: 13px; } table.data.prints td.l, table.data.prints th.l { padding-left: 12px; } }
@media (max-width: 900px) { table.data.prints td.l .dim { display: none; } }

/* Two charts in one panel: side by side on a wide screen; below that one at a time, chosen with a pair of buttons. */
.duo-tabs { display: none; }
.duo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; } .duo-row.one { grid-template-columns: minmax(0, 1fr); }
.duo-pane { min-width: 0; } .duo-head { padding: 4px 8px 0; margin: 0; min-height: 30px; flex-wrap: nowrap; align-items: flex-start; }
.duo-head .cap { padding: 3px 0 0; min-width: 0; }
@media (max-width: 1099px) {
  .duo-tabs { display: inline-flex; }
  .duo-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .duo-pane:not(.on) { display: none; }
  #yields:has(.duo[data-on="b"]) #yrange { display: none; }           /* the period buttons belong to the other chart: no gap left for them */
}

/* A small switch between two charts, set in the chart's own head at the right of its caption. */
.seg.mini { padding: 2px; border-radius: 8px; flex: none; margin-left: auto; align-self: flex-start; }
.seg.mini button { padding: 3px 9px; font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
/* The Business cycle's two charts: each head holds its caption, the small switch (narrow screens) and the chart's own buttons. */
#cycle .duo-head { flex-wrap: wrap; gap: 6px 8px; align-items: center; min-height: 34px; }
#cycle .duo-head .cap { order: 1; margin-right: auto; padding-top: 0; }
#cycle .duo-head .duo-tabs { order: 2; margin-left: 0; align-self: center; }
#cycle .duo-head .seg:not(.duo-tabs) { order: 3; }
#lei-plot { height: 280px; }
@media (min-width: 1100px) {
  #cycle .duo-row { gap: 22px; align-items: start; } #lei-plot { height: 396px; }                /* as tall as the two recession charts beside it */
  #cycle #lrange button { padding: 4px 8px; font-size: 12.5px; } #cycle #rrange button { padding: 4px 9px; font-size: 12.5px; }
}
@media (max-width: 760px) {
  /* as in the other panels: the caption with the small switch at its right; the chart's own buttons on the line below */
  #cycle .duo-head { align-items: flex-start; } #cycle .duo-head .cap { flex: 1 1 50%; min-width: 0; margin: 0; padding-top: 3px; }
  #cycle .duo-head .seg:not(.duo-tabs) { margin-left: auto; } #cycle .duo-head #lrange { margin-left: 0; }
  #rrange { padding: 2px; } #rrange button { padding: 3px 7px; font-size: 12px; line-height: 1.35; }
  #lrange button { padding: 4px 9px; font-size: 12.5px; }
}

.cap .cap-n { white-space: nowrap; }
@media (max-width: 760px) { .cap .cap-n { white-space: normal; } .cap .cap-n > span { white-space: nowrap; } }
@media (max-width: 400px) { #rrange button { padding: 3px 5px; } #cycle .duo-tabs button { padding: 3px 7px; } }
.figures.summary.slow-band .fig.plain .v { color: var(--ink); } .figures.summary.slow-band .fig.plain .tone { color: var(--ink-2); font-weight: 500; }
.figures.summary.slow-band .fig.plain { border-top-color: var(--rule); }
.figures.summary.slow-band .fig .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* seven boxes: one row on a desktop; four and three on a tablet, where seven would be cramped */
@media (min-width: 761px) and (max-width: 1099px) { .figures.summary.slow-band:has(.fig:nth-child(7)) .fig { min-width: 23%; } }
@media (min-width: 1100px) {
  .figures.summary.slow-band { flex-wrap: nowrap; }
  .figures.summary.slow-band .fig { min-width: 0; padding: 9px 11px 9px; }
  .figures.summary.slow-band:has(.fig:nth-child(7)) .vrow { flex-wrap: wrap; gap: 0 7px; }
  .figures.summary.slow-band:has(.fig:nth-child(7)) .fig .n { white-space: normal; }
  .figures.summary.slow-band:has(.fig:nth-child(7)) .vrow svg.spark { display: none; }
}

/* The economic figures: a small line of the past year, and a row under each that opens with the figures behind it. */
table.data.prints tr.pr-row[data-open] { cursor: pointer; } table.data.prints tr.pr-row[data-open]:hover td { background: var(--surface-2); }
table.data.prints td.l { position: relative; padding-left: 30px; } table.data.prints th.l { padding-left: 30px; }
table.data.prints .pr-x { position: absolute; left: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; padding: 0; border: 0; background: none; cursor: pointer; }
table.data.prints .pr-x::before { content: ""; display: block; width: 0; height: 0; margin: 3px 0 0 5px; border-style: solid; border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--muted); transition: transform .15s; }
table.data.prints tr.open .pr-x::before { transform: rotate(90deg); }
table.data.prints .pr-x:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { table.data.prints .pr-x::before { transition: none; } }
table.data.prints td.pr-t, table.data.prints th.pr-t { width: 96px; } table.data.prints td.pr-t svg { display: block; margin-left: auto; width: 72px; height: 20px; }
table.data.prints tr.pr-hist td { padding: 4px 14px 12px 30px; background: var(--surface-2); white-space: normal; }
.pr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 6px; }
.pr-grid span { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; } .pr-grid i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pr-grid b { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 1099px) { .pr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } table.data.prints td.l, table.data.prints th.l { padding-left: 26px; }
  table.data.prints .pr-x { left: 5px; } table.data.prints tr.pr-hist td { padding: 4px 10px 10px 26px; }
  table.data.prints td.pr-t, table.data.prints th.pr-t { width: 58px; } table.data.prints td.pr-t svg { width: 52px; }
}
@media (min-width: 1100px) and (max-width: 1260px) { #cycle table.lei-all td, #cycle table.lei-all th { padding: 9px 6px; font-size: 12.5px; } #cycle table.lei-all th:nth-child(4), #cycle table.lei-all td:nth-child(4) { display: none; } }   /* half the panel wide here */

/* ---- a figure against its own history: the small histogram (the band, the table) and an opened row's charts */
svg.histo { display: block; width: 100%; height: 26px; margin-top: 5px; }
svg.histo .b { fill: var(--axis); opacity: 0.55; } svg.histo .b.good { fill: var(--good); } svg.histo .b.warn { fill: var(--warn); } svg.histo .b.bad { fill: var(--bad); }
svg.histo .b.good, svg.histo .b.warn, svg.histo .b.bad { opacity: 0.4; } svg.histo .b.now { opacity: 1; } svg.histo .b.now:not(.good):not(.warn):not(.bad) { fill: var(--s1); }
svg.histo .mark { fill: var(--ink); }
.figures.summary.slow-band .fig svg.histo { height: 24px; margin: 4px 0 1px; }
.pr-tone { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pr-tone::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--muted); }
.pr-tone.good::before { background: var(--good); } .pr-tone.warn::before { background: var(--warn); } .pr-tone.bad::before { background: var(--bad); }
table.data.prints td.pr-d, table.data.prints th.pr-d { width: 190px; padding-left: 18px; }
.pr-dd { display: flex; align-items: center; gap: 10px; } .pr-dd svg.histo { flex: 0 0 84px; width: 84px; height: 22px; margin: 0; }
table.data.prints td .pr-tone.narrow-l { display: none; }
table.data.prints tr.pr-hist td { padding: 12px 16px 14px 30px; }
.pr-more { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 8px 28px; margin-bottom: 14px; text-align: left; }
.pr-more.solo { grid-template-columns: minmax(0, 1fr); }
.pr-more .pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; margin: 0 0 2px; padding: 0; }
.pr-more .pane-head .cap { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pr-more .chart.pr-chart { height: 230px; min-height: 0; }
.pr-dist { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--rule); padding-left: 28px; }
.pr-dist .chart.pr-chart { height: 196px; }
.pr-say { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) {
  .pr-more { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pr-dist { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 12px; }
  .pr-more .chart.pr-chart { height: 210px; } .pr-dist .chart.pr-chart { height: 170px; }
}
@media (max-width: 760px) {
  table.data.prints td .pr-tone.narrow-l { display: block; font-size: 11.5px; font-weight: 500; margin-top: 1px; }
  table.data.prints tr.pr-hist td { padding: 10px 10px 12px 12px; }
}
.pr-cap { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: left; }
.pr-med { font-weight: 400; color: var(--muted); }
@media (max-width: 1180px) { table.data.prints td.l .dim { display: none; } }
@media (max-width: 1099px) { .pr-dd svg.histo { display: none; } table.data.prints td.pr-d, table.data.prints th.pr-d { width: auto; padding-left: 10px; } }
@media (max-width: 900px) { table.data.prints .pr-b { display: none; } }
@media (max-width: 400px) { table.data.prints td, table.data.prints th { padding-left: 5px; padding-right: 5px; } table.data.prints td.pr-t, table.data.prints th.pr-t { width: 50px; } table.data.prints td.pr-t svg { width: 44px; } }
@media (max-width: 860px) { table.data.prints .pr-c { display: none; } }
#pf-you { scroll-margin-top: 14px; }
@media (max-width: 900px) {
  .pf-fa { display: none; } table.data.pf-fac td.l { width: auto; }
  .pf-b { flex-direction: column; align-items: flex-end; gap: 2px; } .pf-b .cbar { flex: none; width: 100%; max-width: 110px; order: 3; } .pf-b .t { min-width: 0; } .pf-b b { min-width: 0; }
}
@media (max-width: 760px) { .pf-b .cbar { max-width: 70px; } }
@media (max-width: 340px) { table.data.pf-fac td, table.data.pf-fac th { padding: 8px 4px; } table.data.pf-fac td.l, table.data.pf-fac th.l { padding-left: 9px; } }
.nw-none { margin: 10px 0 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .newswire.events.none { display: none; } }

/* Company logos: small and quiet across the site. One block, last in the file, so every table, tile
   and heading follows it. Where a stock has no logo a monogram stands in, in a neutral tint. */
.logo { width: 16px; height: 16px; border-radius: 4px; margin-right: 6px; }
img.logo { filter: saturate(.7); opacity: .88; }
.logo.mono { background: var(--surface-3); color: var(--ink-2); font-size: 9.5px; font-weight: 650; line-height: 16px; }
td.pl-co .logo, .mult .mh .logo { width: 15px; height: 15px; line-height: 15px; font-size: 9px; margin-right: 6px; }
.fig .v .logo { width: 16px; height: 16px; line-height: 16px; font-size: 9.5px; border-radius: 4px; }
.figures.summary.slan-sum .vrow .v .logo { width: 14px; height: 14px; line-height: 14px; font-size: 8.5px; border-radius: 3px; }
h1 .logo { width: 22px; height: 22px; line-height: 22px; font-size: 12px; border-radius: 5px; margin-right: 9px; }
.td-ico .logo { width: 18px; height: 18px; line-height: 18px; font-size: 10px; border-radius: 4px; }
.pf-h > b .logo { width: 20px; height: 20px; line-height: 20px; border-radius: 5px; }
.pf-st .logo { width: 20px; height: 20px; line-height: 20px; border-radius: 5px; font-size: 10.5px; }
table.data.earn td.sym .logo { left: 24px; } table.data.earn#earn-rep td.sym .logo { left: 14px; }
@media (max-width: 760px) { .td-ico .logo { width: 16px; height: 16px; line-height: 16px; } .pf-st .logo { width: 18px; height: 18px; line-height: 18px; } }

/* The Portfolio tab, second layout: the box folds into a bar of positions once there is an analysis; then a one-line
   profile, the figures against the market, links to the sections, and the sections. Names start pn-. */
.pf-form[hidden], .pn-check[hidden], .pn-rec[hidden], .pn-menu[hidden], .pn-why[hidden] { display: none; }
.pf-form textarea { min-height: 168px; font-family: var(--num); }
.pn-priv { display: flex; align-items: flex-start; gap: 7px; } .pn-priv .ico { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.pn-check { margin-top: 10px; padding: 10px 12px 11px; border-radius: 9px; background: var(--surface-2); font-size: 13px; }
.pn-check .st { display: flex; align-items: center; gap: 7px; font-weight: 650; color: var(--ink); } .pn-check .st .ico { width: 15px; height: 15px; color: var(--up); flex: none; }
.pn-check .st span { color: var(--muted); font-weight: 500; } .pn-check .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pn-check .row span { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 9px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); font-size: 12.5px; }
.pn-check .row b { font-weight: 680; } .pn-check .row i { font-style: normal; color: var(--ink-2); font-family: var(--num); font-size: 12px; }
.pn-check .wn { display: flex; align-items: flex-start; gap: 7px; margin-top: 9px; font-size: 12.5px; color: var(--warn-ink); line-height: 1.4; } .pn-check .wn .ico { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.pn-check .wn.er { color: var(--down); margin-top: 0; }
.pn-rec { margin-top: 18px; } .pn-rec h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.pn-rec h3 .ico { width: 15px; height: 15px; } .pn-rec h3 small { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.pn-rec-l button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid var(--rule); background: none;
  color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pn-rec-l button:last-child { border-bottom: 1px solid var(--rule); } .pn-rec-l button:hover { background: var(--surface-2); }
.pn-rec-l button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); } .pn-rec-l button b { font-weight: 650; color: var(--ink); }
.pn-rec-l button em { font-style: normal; color: var(--muted); font-size: 12.5px; font-family: var(--num); white-space: nowrap; }
.pn-meth { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.pn-meth div { background: var(--surface); padding: 13px 16px 15px; } .pn-meth span { display: block; font-size: 12.5px; color: var(--muted); }
.pn-meth b { display: block; margin: 3px 0; font-size: 15px; font-weight: 680; } .pn-meth small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.pn-warn { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: 9px; background: var(--warn-bg); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.pn-warn .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn-ink); }

.pn-over { margin-bottom: 14px; overflow: visible; }
.pn-bar { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 10px; }
.pn-bar .pf-pos { padding: 0; flex: 1 1 auto; gap: 7px; min-width: 0; } .pn-bar .pf-chip { padding: 5px 10px 5px 7px; } .pn-bar .pf-chip.more { color: var(--muted); padding-left: 10px; }
.pn-bar .pf-chip .logo { width: 16px; height: 16px; line-height: 16px; }
.pn-acts { display: flex; gap: 8px; flex: none; align-items: flex-start; }
.pn-btn, .pf-share > summary.pn-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 11px; border-radius: 8px; cursor: pointer; list-style: none; white-space: nowrap; }
.pn-btn::-webkit-details-marker { display: none; } .pn-btn .ico { width: 14px; height: 14px; } .pn-btn:hover { border-color: var(--axis); color: var(--ink); }
.pn-btn.pri { background: var(--ink); border-color: var(--ink); color: var(--surface); } .pn-btn.pri:hover { color: var(--surface); filter: brightness(1.15); }
.pn-btn:focus-visible, .pn-more:focus-visible, td.add button:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.pn-menu { position: relative; margin: 0; } .pn-menu-b { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(360px, calc(100vw - 32px)); background: var(--surface); border-radius: 10px;
  box-shadow: 0 0 0 1px var(--rule), 0 12px 32px rgba(0,0,0,.14); padding: 6px 0; }
.pn-menu-b button:first-child { border-top: 0; } .pn-menu-b button:last-child { border-bottom: 0; }
.pn-read { padding: 15px 16px; border-top: 1px solid var(--rule); }
.pn-read h2 { margin: 0; font-size: 18.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; max-width: 82ch; }
.pn-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 9px; } .pn-facts span { padding: 0 16px; border-left: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.pn-facts span:first-child { padding-left: 0; border-left: 0; } .pn-facts b { color: var(--ink); font-weight: 650; }
.figures.summary.band.pn-figs .fig { justify-content: flex-start; padding: 12px 15px 13px; }
.figures.summary.band.pn-figs .vrow { flex-wrap: nowrap; align-items: center; min-height: 32px; } .figures.summary.band.pn-figs .vrow svg.spark { flex: 0 1 72px; min-width: 40px; margin-left: auto; }
.pn-cmp { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; color: var(--muted); } .pn-cmp b { font-family: var(--num); font-weight: 600; color: var(--ink-2); }
.pn-cmp i { display: inline-block; width: 9px; height: 2px; background: var(--axis); border-radius: 1px; }
.pn-tri { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 8px; } .pn-tri i { height: 6px; border-radius: 3px; background: var(--surface-3); } .pn-tri i.on { background: var(--ink); }
.pn-tri u { position: absolute; top: -3px; width: 3px; height: 12px; margin-left: -1px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.pn-tril { display: grid; grid-template-columns: repeat(3, 1fr); font-size: 11px; color: var(--muted); margin-top: 3px; text-align: center; }

.pn-nav { position: sticky; top: var(--pf-top, 0px); z-index: 15; display: flex; align-items: center; gap: 4px; padding: 5px; margin-bottom: 22px; background: var(--surface); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--rule), 0 6px 14px -10px rgba(0,0,0,.25); overflow-x: auto; scrollbar-width: none; }
.pn-nav::-webkit-scrollbar { display: none; }
.pn-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pn-nav a .ico { width: 15px; height: 15px; } .pn-nav a:hover { color: var(--ink); text-decoration: none; } .pn-nav a.on { background: var(--surface-2); color: var(--ink); }
.pn-nav .end { margin-left: auto; font-size: 12.5px; color: var(--muted); padding: 0 10px; white-space: nowrap; }
#pf-you, #pf-hold, #pf-perf-s, #pf-corr, #pf-risk, #pf-fac { scroll-margin-top: calc(var(--pf-top, 0px) + 60px); }

.pn-2 { display: grid; gap: 22px; align-items: stretch; } .pn-2 > .panel { min-width: 0; }
.pn-2.a { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .pn-2.b { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pn-2.b > .panel:only-child { grid-column: 1 / -1; }
.panel-head .sub { text-align: left; }
table.data.pn-hold { table-layout: fixed; width: 100%; } table.data.pn-hold td { padding-top: 9px; padding-bottom: 9px; vertical-align: middle; } table.data.pn-hold td.l { overflow: hidden; }
table.data.pn-hold th.c2 { width: 222px; } table.data.pn-hold th.c3 { width: 84px; } table.data.pn-hold th.c4 { width: 78px; } table.data.pn-hold th.c5 { width: 118px; }
table.data.pn-hold th .lg { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; font-weight: 500; white-space: nowrap; }
table.data.pn-hold th .lg i { width: 10px; height: 10px; border-radius: 3px; } .lg i.w, .pb.w i { background: var(--axis); } .lg i.r, .pb.r i { background: var(--accent); }
table.data td small { color: var(--muted); font-weight: 500; }
.pn-pr { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 5px 8px; line-height: 1; }
.pn-pr b { font-family: var(--num); font-size: 12px; font-weight: 600; text-align: right; color: var(--ink-2); line-height: 1; } .pn-pr b.over { color: var(--ink); font-weight: 750; }
.pb { display: block; height: 7px; border-radius: 4px; background: var(--surface-2); } .pb i { display: block; height: 100%; border-radius: 4px; }
.pn-heat { display: grid; grid-template-columns: 58px repeat(var(--n), minmax(0, 1fr)); gap: 3px; padding: 6px 16px 4px; font-family: var(--num); }
.pn-heat .hh { font-size: 11.5px; font-weight: 650; color: var(--ink-2); text-align: center; padding-bottom: 3px; font-family: inherit; overflow: hidden; }
.pn-heat .hr { display: flex; align-items: center; font-size: 12.5px; font-weight: 680; font-family: inherit; }
.pn-heat .hc { min-height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--accent) var(--a), var(--surface-2)); }
.pn-heat .hc.neg { background: color-mix(in srgb, var(--s2) var(--a), var(--surface-2)); } .pn-heat .hc.dk { color: #fff; } .pn-heat .hc.na { background: var(--surface-2); color: var(--muted); }
.pn-st2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); margin-top: 12px; }
.pn-st2 div { background: var(--surface); padding: 12px 16px; } .pn-st2 b { display: block; font-family: var(--num); font-size: 22px; font-weight: 680; letter-spacing: -0.02em; }
.pn-st2 b small { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; } .pn-st2 span { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: block; }
.pn-mix { padding: 12px 16px 15px; border-top: 1px solid var(--rule); } .pn-mix .k { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.pn-mix .bar { display: flex; gap: 2px; height: 10px; } .pn-mix .bar i { border-radius: 3px; min-width: 2px; }
.pn-mix .lg { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); } .pn-mix .lg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.pn-mix .m0 { background: var(--s1); } .pn-mix .m1 { background: var(--s4); } .pn-mix .m2 { background: var(--s3); } .pn-mix .m3 { background: var(--s7); } .pn-mix .m4 { background: var(--s2); } .pn-mix .bar i { background: var(--axis); }
.pn-mix .bar i.m0 { background: var(--s1); } .pn-mix .bar i.m1 { background: var(--s4); } .pn-mix .bar i.m2 { background: var(--s3); } .pn-mix .bar i.m3 { background: var(--s7); } .pn-mix .bar i.m4 { background: var(--s2); }
.pn-stats { display: flex; flex-wrap: wrap; gap: 8px 30px; padding: 2px 16px 12px; } .pn-stats div span { display: block; font-size: 12px; color: var(--muted); }
.pn-stats div b { font-family: var(--num); font-size: 18px; font-weight: 680; letter-spacing: -0.01em; } .pn-stats div small { font-size: 12px; color: var(--muted); margin-left: 5px; }
.pn-pad { padding: 0 10px 8px; }
.pn-day { padding: 2px 16px 14px; } .pn-day .big { display: flex; align-items: baseline; gap: 12px; } .pn-day .big b { font-family: var(--num); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.pn-day .big span { font-size: 13px; color: var(--muted); } .pn-day h3 { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 15px 0 5px; }
.pn-day .dr { display: grid; grid-template-columns: 112px minmax(0, 1fr) 54px; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 13px; }
.pn-day .dn { display: flex; align-items: center; font-weight: 600; white-space: nowrap; overflow: hidden; } .pn-day .dr b { font-family: var(--num); font-weight: 600; text-align: right; }
.cbar.d i.pos { background: var(--up); } .cbar.d i.neg { background: var(--down); } .pn-day b.pos, .pn-stats b.pos, .pn-wf b.pos, .pn-out b.pos { color: var(--up); } .pn-day b.neg, .pn-stats b.neg, .pn-wf b.neg, .pn-out b.neg { color: var(--down); }
.pn-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-2); margin-left: auto; } .pn-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pn-key i.lo, .pn-hist i.lo { background: var(--s1); } .pn-key i.hi, .pn-hist i.hi { background: var(--s2); } .pn-key i.md { width: 0; height: 12px; border-left: 2px dashed var(--ink-2); border-radius: 0; vertical-align: -2px; }
.pn-hist-w { padding: 4px 18px 12px; } .pn-hist { position: relative; height: 104px; border-bottom: 1px solid var(--axis); }
.pn-hist i { position: absolute; bottom: 0; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--surface); }
.pn-hist u { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ink-2); }
.pn-hist-x { position: relative; height: 20px; font-size: 11.5px; color: var(--muted); font-family: var(--num); } .pn-hist-x span { position: absolute; top: 4px; transform: translateX(-50%); }
.pn-sum { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px; }
.pn-tags { display: flex; flex-wrap: wrap; gap: 6px; } .pn-tags span { display: inline-flex; align-items: baseline; font-size: 12.5px; font-weight: 550; color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule);
  border-radius: 6px; padding: 3px 9px; white-space: nowrap; } .pn-tags span b { font-family: var(--num); font-weight: 680; color: var(--ink); margin-left: 6px; }
.pf-why.pn-why { display: grid; grid-template-columns: auto 1fr; gap: 10px; background: var(--surface-2); border: 0; border-radius: 8px; padding: 10px 13px 11px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.pf-why.pn-why[hidden] { display: none; } .pn-why .ai { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--axis); border-radius: 4px; padding: 1px 5px; height: 18px; margin-top: 1px; }
.pn-why b { font-weight: 680; } .pn-why p { display: inline; margin: 0; font-size: inherit; } .pn-why small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
table.data.pn-list th.add, table.data.pn-list td.add { width: 40px; padding-left: 0; padding-right: 10px; } table.data.pn-list tr[hidden] { display: none; }
td.add button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; padding: 0; cursor: pointer; margin-left: auto; }
td.add button:hover { border-color: var(--axis); color: var(--accent); } td.add .ico { width: 13px; height: 13px; }
.pn-more { display: flex; width: 100%; justify-content: center; align-items: center; gap: 5px; padding: 10px; border: 0; border-top: 1px solid var(--rule); background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
  cursor: pointer; border-radius: 0 0 var(--radius) var(--radius); } .pn-more:hover { background: var(--surface-2); } .pn-more .ico { width: 13px; height: 13px; }
.pn-mixes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .pn-mv { padding: 0 12px 14px 8px; min-width: 0; } .pn-side { border-left: 1px solid var(--rule); min-width: 0; }
.pn-slide { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: 14px; margin: 8px 4px 0 8px; padding: 10px 14px; background: var(--surface-2); border-radius: 10px; }
.pn-slide .lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink-2); } .pn-slide .seg { margin: 0; background: var(--surface-3); }
.pn-slide input[type=range] { width: 100%; accent-color: var(--s1); height: 22px; margin: 0; } .pn-slide output { font-family: var(--num); font-size: 20px; font-weight: 700; min-width: 52px; text-align: right; }
.pn-out { padding: 14px 16px 16px; } .pn-out h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 680; } .pn-out p { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.pn-out .g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pn-out .g div { background: var(--surface-2); border-radius: 9px; padding: 10px 12px 11px; min-width: 0; }
.pn-out .g span { display: block; font-size: 12px; color: var(--muted); } .pn-out .g b { display: block; font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 1px 0; }
.pn-out .g em { font-style: normal; font-size: 12px; font-family: var(--num); color: var(--ink-2); white-space: nowrap; }
table.data.pn-mt td, table.data.pn-mt th { padding-top: 8px; padding-bottom: 8px; }
table.data.pn-list th.pf-c { width: 132px; } table.data.pn-list th:nth-child(3), table.data.pn-list th:nth-child(4) { width: 60px; } table.data.pn-list th:nth-child(5) { width: 86px; }
.chart.pf-mvc { height: 430px; } .pn-side .pf-fine { max-width: none; } .pn-star { margin-right: 6px; color: var(--ink); }
table.data.pn-fac .pf-b:not(.sig) { opacity: .5; } table.data.pn-fac td { padding-top: 8px; padding-bottom: 8px; }
.pn-wf { padding: 6px 16px 10px; } .pn-wf .wr { display: grid; grid-template-columns: 168px minmax(0, 1fr) 58px; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.pn-wf .wn { display: flex; align-items: center; gap: 9px; font-weight: 600; white-space: nowrap; overflow: hidden; } .pn-wf .wn .ico { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.pn-wf .wt { position: relative; height: 16px; background: linear-gradient(var(--grid), var(--grid)) 0 50% / 100% 1px no-repeat; } .pn-wf .wt i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--axis); }
.pn-wf .wt i.pos { background: var(--up); } .pn-wf .wt i.neg { background: var(--down); } .pn-wf .wt i.tot { background: var(--ink); }
.pn-wf .wt i.hatch.pos { background: repeating-linear-gradient(135deg, var(--up) 0 4px, color-mix(in srgb, var(--up) 45%, var(--surface)) 4px 7px); }
.pn-wf .wt i.hatch.neg { background: repeating-linear-gradient(135deg, var(--down) 0 4px, color-mix(in srgb, var(--down) 45%, var(--surface)) 4px 7px); }
.pn-wf .wt u { position: absolute; top: 16px; height: 14px; border-left: 1px dashed var(--axis); } .pn-wf .wr b { font-family: var(--num); font-weight: 680; text-align: right; }
.pn-wf .wr.tot { border-top: 2px solid var(--rule); margin-top: 6px; padding-top: 11px; } .pn-wf .wr.tot .wt { background: none; }
@media (max-width: 1150px) {
  .pn-2.a, .pn-2.b, .pn-mixes { grid-template-columns: minmax(0, 1fr); gap: 0; } .pn-2 > .panel { margin-bottom: 22px; } .pn-side { border-left: 0; border-top: 1px solid var(--rule); }
  .pn-meth { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pn-nav .end { display: none; } .pn-mv { padding-right: 8px; }
}
@media (max-width: 760px) {
  .pn-bar { flex-direction: column; gap: 10px; padding: 12px 12px 10px; } .pn-acts { width: 100%; } .pn-read { padding: 13px 12px; } .pn-read h2 { font-size: 16.5px; }
  .pn-facts { flex-direction: column; gap: 3px; } .pn-facts span { padding: 0; border: 0; }
  .pn-nav { margin-left: -4px; margin-right: -4px; border-radius: 9px; } .pn-nav a { padding: 7px 10px; font-size: 13px; }
  table.data.pn-hold th.c2 { width: 136px; } table.data.pn-hold th.c3 { width: 72px; } table.data.pn-hold th .lg { display: flex; margin: 0; }
  .pn-heat { padding: 6px 10px 4px; grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); gap: 2px; } .pn-heat .hc { font-size: 10.5px; min-height: 26px; border-radius: 4px; } .pn-heat .hh, .pn-heat .hr { font-size: 10.5px; }
  .pn-meth { grid-template-columns: minmax(0, 1fr); } .pn-key { margin-left: 0; } .pn-hist-w { padding: 4px 12px 10px; } .pn-sum { padding: 0 12px 10px; }
  .pn-slide { grid-template-columns: minmax(0, 1fr) auto; margin: 8px 0 0; } .pn-slide .lbl { grid-column: 1 / -1; } .pn-out { padding: 12px; } .pn-out .g b { font-size: 19px; }
  .pn-wf { padding: 6px 12px 10px; } .pn-wf .wr { grid-template-columns: 118px minmax(0, 1fr) 50px; gap: 8px; font-size: 13px; } .pn-wf .wn .ico { display: none; }
  table.data.pn-hold td, table.data.pn-hold th { padding: 9px 7px; font-size: 13px; } table.data.pn-hold td.l, table.data.pn-hold th.l { padding-left: 12px; }
  table.data.pn-hold th.c2 { width: 118px; } table.data.pn-hold th.c3 { width: 70px; } .pn-pr { grid-template-columns: minmax(0, 1fr) 30px; gap: 5px 6px; }
  table.data.pn-list th.pf-c { width: 104px; } table.data.pn-list th:nth-child(3), table.data.pn-list th:nth-child(4) { width: 48px; } .chart.pf-mvc { height: 400px; max-height: 400px !important; }   /* this one carries a legend: taller than the phone's usual 250px */
  .pn-day .dr { grid-template-columns: 96px minmax(0, 1fr) 50px; } table.data.pn-list th.add, table.data.pn-list td.add { width: 34px; padding-right: 8px; }
  .pn-stats { gap: 8px 22px; padding: 2px 12px 10px; }
}

/* Portfolio: the factor table's Current and 1Y views, and the moving loadings under it */
table[data-w="now"] .w-1y, table[data-w="1y"] .w-now { display: none; }
.pn-load { margin-top: 18px; border-top: 1px solid var(--rule); padding: 14px 16px 0; }
.pn-load-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 6px; }
.pn-load-h h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.pn-load-h .seg.mini { flex-wrap: wrap; }
.chart.pf-load { height: 230px; }
@media (max-width: 760px) { .chart.pf-load { height: 210px; max-height: 210px !important; } }
/* Portfolio summary: where the volatility and the Sharpe ratio sit among the stocks in coverage */
.pn-dist { position: relative; display: flex; align-items: flex-end; gap: 1px; height: 22px; margin-top: 7px; }
.pn-dist i { flex: 1 1 0; min-height: 1px; background: var(--surface-3); border-radius: 1px 1px 0 0; } .pn-dist i.on { background: var(--ink-2); }
.pn-dist u { position: absolute; bottom: -3px; width: 2px; height: 28px; margin-left: -1px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.pn-distl { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.figures.summary.band.pn-figs .vrow .tone.plain { margin-left: auto; font-size: 12.5px; }
/* the factor table's note runs the table's width */
.pf-fine.wide { max-width: none; }
/* the two lists line up: title, labels and note, table and the "show all" row share their heights across the pair */
@media (min-width: 1151px) {
  .pf-two { grid-template-rows: auto auto auto auto; row-gap: 0; }
  .pf-two > .panel { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
  .pf-two > .panel > .tablewrap { align-self: start; } .pf-two > .panel > .pn-more { align-self: end; }
}
/* the combinations chart fills its column, as tall as the table beside it */
@media (min-width: 761px) {
  .pn-mv { display: flex; flex-direction: column; }
  .pn-mv .chart.pf-mvc { flex: 1 1 auto; height: auto; min-height: 430px; }
}
#pf-fac.pn-2 { align-items: start; }
/* Portfolio input: the period, bought and held */
.pn-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.pn-dates .k { display: flex; flex-basis: 100%; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); } .pn-dates .k .ico { width: 15px; height: 15px; }
.pn-dates label { display: inline-flex; align-items: center; gap: 6px; }
.pn-dates input[type=date] { font: inherit; font-family: var(--num); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 5px 8px; }
.pn-dates input[type=date]:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.pn-reset { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.pn-reset:hover { background: var(--surface-2); }
.pn-att[data-w="now"] .w-1y, .pn-att[data-w="1y"] .w-now { display: none; }

/* a tab without a live figure (Portfolio) keeps an empty one, so its label lines up with the others where the figure sits under the label */
.band nav a .tabfig.tab-gap { visibility: hidden; background: none; box-shadow: none; }
@media (min-width: 1240px) { .band nav a .tabfig.tab-gap { display: none; } }

/* above the Google button: an app's built-in browser, or the home-screen app */
.auth-card .g-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45;
  background: color-mix(in srgb, #f59e0b 12%, transparent); border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent); }
.auth-card .g-warn[hidden] { display: none; }

/* ---------------------------------------------------------------- the Positioning tab */
.pos-lede { max-width: 78ch; color: var(--ink-2); margin: -6px 0 18px; font-size: 14.5px; line-height: 1.55; }
.pos-find { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.pos-find label { font-weight: 600; font-size: 14px; }
.pos-find input[type=text], .pos-find input:not([type]) { width: 11ch; min-width: 0; padding: 8px 11px; font: inherit; font-family: var(--num);
  text-transform: uppercase; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); }
.pos-find .btn { padding: 8px 16px; }
.pos-clear { font-size: 13px; color: var(--muted); }
.pos-card .panel-head h2 { display: flex; align-items: center; gap: 4px; }
.pos-card .panel-head h2 .co { font-weight: 450; color: var(--muted); font-size: 15px; margin-left: 6px; }
.pos-figs { margin-bottom: 16px; }
.pos-figs .fig .n { font-family: inherit; }
.pos-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 8px; }
.pos-charts p { margin: 0 0 4px; }
.pos-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 28px; margin-top: 8px; }
.pos-detail dl { display: grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 0; font-size: 13.5px; align-content: start; }
.pos-detail dt { color: var(--muted); }
.pos-detail dd { margin: 0; text-align: right; font-family: var(--num); }
.pos-tabs { margin: 4px 0 12px; }
.pos-tabs a { padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); border-radius: 7px; white-space: nowrap; text-decoration: none; }
.pos-tabs a:hover { color: var(--ink); }
.pos-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
table.data.pos-t td.sym { line-height: 1.2; white-space: nowrap; }
table.data.pos-t td.sym .logo { float: left; margin-top: 3px; }
table.data.pos-t td.sym .tk { display: block; }
table.data.pos-t td.sym .co { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-size: 11.5px; color: var(--muted); }
table.data.pos-t td.gcell { min-width: 64px; }
table.data.pos-t td.gcell .meter { margin-top: 4px; height: 4px; }
.pos-meth h2 { font-size: 17px; margin: 0 0 8px; }
.pos-meth p { max-width: 95ch; line-height: 1.6; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 900px) { .pos-detail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .pos-charts, .pos-detail { grid-template-columns: 1fr; }
  table.data.pos-t td.sym .co { max-width: 120px; }
  .pos-tabs { display: flex; overflow-x: auto; max-width: 100%; }
}
.pos-charts .key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin: 0 2px; }
.pos-charts .key.s1 { background: var(--s1); } .pos-charts .key.s2 { background: var(--s2); }
/* seven tabs (the Positioning tab shown): a little smaller, so every label still fits */
@media (min-width: 901px) and (max-width: 1500px) {
  .band nav:has(> a:nth-child(7)) .lbl-l { display: none; } .band nav:has(> a:nth-child(7)) .lbl-s { display: inline; }
}
@media (max-width: 900px) {
  .band nav:has(> a:nth-child(7)) a { font-size: 10.5px; letter-spacing: -0.01em; }
  .band nav:has(> a:nth-child(7)) a .tabfig { font-size: 9.5px; padding: 0 3px; }
}

/* the hedge-fund estimates: their check, the labels (as the retail tab's) and the day's events */
.hf-check { border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px 6px; margin: 4px 0 14px; background: var(--surface-2, transparent); }
.hf-check-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hf-check h3 { font-size: 15px; margin: 0; }
.hf-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.hf-check.ok .hf-badge { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.hf-check.no .hf-badge { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }
.hf-badge .ico { width: 14px; height: 14px; }
.hf-check-figs { margin: 10px 0; }
.hf-check p.small { margin: 6px 0 8px; line-height: 1.5; }
.hfp { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; white-space: nowrap; margin-top: 3px; }
.hfp.buy { color: var(--up); background: var(--up-soft); }
.hfp.sell { color: var(--down); background: var(--down-soft); }
table.data.pos-t td.sym .hfp, table.data.pos-t td.sym .hf-ev { margin-right: 4px; }
.hf-ev { display: inline-block; font-size: 10.5px; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0 6px; margin-top: 3px; white-space: nowrap; }
.hf-unck { color: #b26b00; font-weight: 600; }
.pos-figs .fig .hfp { margin-top: 6px; }

/* Positioning: market sentiment */
.gm-ctl { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin: 1rem 0 .25rem; }
.gm-figs .fig .n + .n { margin-top: .25rem; }
.gm-figs .gm-parts { color: var(--ink-2); }
.gm-figs .fig { flex: 1 1 300px; }
.gm-ctl > .seg { margin: 0; }

/* Positioning: AI-model disagreement */
.dis-figs .fig { flex: 1 1 260px; }
.dis-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.dis-cols h3 { margin: 0 0 8px; font-size: 14px; }
.dis-t td, .dis-t th { white-space: nowrap; }
.dis-t .co { max-width: 14ch; }
.dis-sig { font-weight: 650; }
@media (max-width: 860px) { .dis-cols { grid-template-columns: minmax(0, 1fr); } }

/* AI tab: the three top AI stories as one slim line under the figures (headlines only; the reason is the tooltip) */
.ai-wire { display: flex; align-items: center; gap: 0; margin: -10px 0 22px; padding: 0 6px 0 14px; min-height: 36px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius, 10px); font-size: 13px; overflow: hidden; }
.ai-wire .aw-k { flex: none; font-size: 12px; font-weight: 650; color: var(--ink-2); padding-right: 12px; white-space: nowrap; }
.ai-wire a, .ai-wire .aw-i { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; align-self: stretch; border-left: 1px solid var(--grid);
  color: var(--ink); text-decoration: none; }
.ai-wire time { flex: none; font: 500 11.5px/1 var(--num); color: var(--muted); white-space: nowrap; }
.ai-wire b { min-width: 0; font-weight: 550; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ai-wire a:hover b { color: var(--accent); text-decoration: underline; }
.ai-wire a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 900px) {
  .ai-wire { display: block; margin-top: -4px; padding: 6px 12px 4px; }
  .ai-wire .aw-k { display: block; padding: 0 0 2px; }
  .ai-wire a, .ai-wire .aw-i { padding: 5px 0; border-left: 0; border-top: 1px solid var(--grid); }
  .ai-wire time { min-width: 76px; }
}
/* AI debt: the yield chart gives up its right side to the week's AI credit headlines */
.nc-top.has-news { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.nc-top .nc-main { min-width: 0; }
.nc-news { border-left: 1px solid var(--grid); padding: 10px 18px 6px 16px; min-width: 0; }
.nc-news h3 { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.nc-news h3 small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.nc-news ul { list-style: none; margin: 0; padding: 0; }
.nc-news li { padding: 9px 0; border-top: 1px solid var(--grid); }
.nc-news li:first-child { border-top: 0; padding-top: 4px; }
.nc-news a, .nc-news .h { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font-size: 13.5px; font-weight: 550; line-height: 1.35; color: var(--ink); text-decoration: none; }
.nc-news a:hover { color: var(--accent); text-decoration: underline; }
.nc-news .m { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 1000px) {
  .nc-top.has-news { display: block; }
  .nc-news { border-left: 0; border-top: 1px solid var(--grid); padding: 10px 18px 4px; }
  .nc-news li { padding: 7px 0; } .nc-news a, .nc-news .h { -webkit-line-clamp: 2; line-clamp: 2; }
}

/* ---- home page, second version: a smaller headline, the day's stories beside it, and a real slice of each tab ---- */
.lp-hero.v2 { padding: clamp(32px, 5vw, 60px) 0 30px; align-items: start; }
.lp-hero.v2 h1 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -0.028em; max-width: 26ch; margin-bottom: 18px; text-wrap: balance; }   /* a long headline: four lines, not five */
.lp-hero.v2 .lp-lede { font-size: clamp(16px, 1.4vw, 18.5px); margin-bottom: 22px; }
.lp-g { margin: 0; display: contents; }
.lp-g .btn { display: inline-flex; align-items: center; gap: 10px; }
.lp-g .g-logo { width: 18px; height: 18px; flex: none; }
.lp-terms { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.lp-terms a { font-weight: 600; }
.lp-hero.v2 .lp-fresh { margin-top: 14px; }
.lp-side { width: min(100%, 470px); display: grid; gap: 22px; min-width: 0; }
.lp-side .lp-mkt { width: auto; }
.lp-news { border-top: 2px solid var(--ink); padding-top: 12px; }
.lp-news h2 { font-size: 14.5px; font-weight: 660; margin: 0 0 4px; }
.lp-news ol { list-style: none; margin: 0; padding: 0; }
.lp-news li { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14.5px; font-weight: 560; line-height: 1.35; }
.lp-news li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line each; the full headline is the tooltip */
.lp-news li:first-child { border-top: 0; }
.lp-news time { font: 500 12px/1 var(--num); color: var(--muted); }
.lp-pv { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 10px; }
.lp-pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.lp-pv-head h2 { font-size: 20px; font-weight: 680; letter-spacing: -0.01em; margin: 0; }
.lp-pv-head p { margin: 0; font-size: 14px; color: var(--muted); }
.lp-grid { display: flex; flex-wrap: wrap; gap: 16px; }   /* cards share each row evenly, so a missing one leaves no hole */
.pv-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px 14px; display: flex; flex-direction: column; min-width: 0; flex: 1 1 300px; }
.pv-card.wide { flex: 2.2 1 700px; padding-bottom: 6px; }
.pv-card h3 { font-size: 16.5px; font-weight: 680; margin: 0 0 8px; }
.pv-card h3 small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.pv-card .lp-plot { height: clamp(240px, 26vw, 330px); margin: 0 -8px; }
.pv-t { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 14.5px; }
.pv-t caption { text-align: left; font-size: 12.5px; color: var(--muted); padding-bottom: 3px; }
.pv-t th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 6px 8px 6px 0; }
.pv-t td { text-align: right; padding: 6px 0 6px 10px; font-family: var(--num); font-weight: 620; white-space: nowrap; }
.pv-t tr + tr th, .pv-t tr + tr td { border-top: 1px solid var(--grid); }
.pv-t td.pos { color: var(--up); } .pv-t td.neg { color: var(--down); }
.pv-t td + td { font-weight: 500; width: 78px; }
.pv-t.bars th, .pv-t.div th { width: 1%; white-space: nowrap; font-weight: 620; color: var(--ink); }
.pv-t.div th { font-weight: 500; color: var(--ink-2); }
.pv-t td.bar { width: auto; padding: 0 0 0 12px; text-align: left; }
.pv-t td.bar i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--s1); min-width: 2px; }
.pv-t.div td.bar { position: relative; }
.pv-t.div td.bar::before { content: ""; position: absolute; left: calc(50% + 6px); top: 0; bottom: 0; border-left: 1px solid var(--axis); }
.pv-t.div td.bar i { margin-left: calc(50% - 6px); background: var(--up); }
.pv-t.div td.bar.neg i { margin-left: 0; margin-right: calc(50% - 6px); margin-left: auto; transform: translateX(-100%); position: relative; left: calc(50% - 6px); margin: 0; border-radius: 4px 0 0 4px; background: var(--down); }
.pv-news { list-style: none; margin: 0 0 12px; padding: 0; }
.pv-news li { padding: 7px 0; font-size: 14.5px; font-weight: 560; line-height: 1.35; border-top: 1px solid var(--grid); }
.pv-news li:first-child { border-top: 0; padding-top: 0; }
.pv-more { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pv-more a { font-weight: 650; }
.lp-pv + .lp-what { margin-top: 36px; }
.lp-join { margin: 44px 0 12px; padding: 30px 24px 32px; text-align: center; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.lp-join h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 0 0 6px; }
.lp-join p { margin: 0 0 18px; color: var(--ink-2); }
.lp-join .lp-cta { justify-content: center; }
@media (max-width: 1000px) { .lp-side { width: 100%; margin-top: 28px; } }
@media (max-width: 640px) { .pv-card, .pv-card.wide { flex-basis: 100%; } .lp-cta .btn.lg { flex: 1 1 100%; justify-content: center; text-align: center; } }
.lp-what.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-what.six > div:nth-child(4) { padding-left: 0; border-left: 0; }
@media (max-width: 900px) { .lp-what.six { grid-template-columns: minmax(0, 1fr); } .lp-what.six > div, .lp-what.six > div + div { padding: 16px 0 14px; border-left: 0; } }
.lp-pv-head p a { font-weight: 650; }
.pv-t thead th { font-size: 12px; font-weight: 500; color: var(--muted); text-align: right; padding: 0 0 2px 10px; white-space: nowrap; }
.pv-t.three th[scope=row] { max-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-t.three th b { font-weight: 650; color: var(--ink); } .pv-t.three th span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.pv-t.three td { width: 76px; font-weight: 620; } .pv-t.three td + td { font-weight: 500; color: var(--ink-2); }

/* home page: screenshots of the real pages, one at a time, chosen by the row of page names (all of them, stacked, without JavaScript) */
.lp-tour { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 10px; }
.lp-tabs { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.lp-tour.js .lp-tabs { display: flex; }
.lp-tabs button { font: inherit; font-size: 14.5px; font-weight: 620; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface);
  color: var(--ink-2); cursor: pointer; }
.lp-tabs button:hover { color: var(--ink); border-color: var(--axis); }
.lp-tabs button[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.lp-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-shot { margin: 0 0 28px; }
.lp-tour.js .lp-shot { margin-bottom: 0; }
.lp-shot figcaption { max-width: 86ch; margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.lp-shot figcaption b { color: var(--ink); font-weight: 680; margin-right: 4px; }
.lp-tour.js .lp-shot figcaption b { display: none; }
.lp-shot a { display: block; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(20, 20, 19, 0.35); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-tour + .lp-join { margin-top: 36px; }
@media (max-width: 640px) { .lp-tabs { gap: 5px; } .lp-tabs button { font-size: 13.5px; padding: 7px 12px; } .lp-shot figcaption { font-size: 14.5px; } }
.lp-mkt { position: relative; }
.lp-pre { position: absolute; top: 14px; right: 0; font: 500 11.5px/1.3 var(--num); color: var(--muted); padding: 1px 6px; border: 1px solid var(--axis); border-radius: 4px; }
.lp-pre[hidden] { display: none; }

/* home page: each card of "A look inside" shows a piece of the real page; the piece opens the whole screenshot */
.pv-card.shot { padding: 0 0 14px; overflow: hidden; }
.pv-card.shot h3, .pv-card.shot .pv-text, .pv-card.shot .pv-more { margin-left: 18px; margin-right: 18px; }
.pv-card.shot h3 { margin-top: 14px; margin-bottom: 4px; }
.pv-img { display: block; border-bottom: 1px solid var(--rule); background: var(--page); cursor: zoom-in; overflow: hidden; }
.pv-img img { display: block; width: 100%; height: auto; transition: transform 0.25s ease; }
.pv-img:hover img { transform: scale(1.025); }
.pv-img:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pv-text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.pv-card.wide .pv-text { margin-top: 6px; max-width: 70ch; }
.pv-full { float: right; font-weight: 600; cursor: zoom-in; }
.pv-card.join { justify-content: center; background: var(--ink); border-color: var(--ink); color: var(--page); padding: 22px 24px; }
.pv-card.join h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; margin-bottom: 10px; color: var(--page); }
.pv-card.join ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15.5px; line-height: 1.5; }
.pv-card.join li { padding-left: 24px; position: relative; margin: 5px 0; }
.pv-card.join li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 10px; height: 5px; border-left: 2px solid var(--band-up); border-bottom: 2px solid var(--band-up); transform: rotate(-45deg); }
.pv-card.join .btn.ghost { background: transparent; color: var(--page); border-color: color-mix(in srgb, var(--page) 45%, transparent); }
.lp-zoom { width: min(96vw, 1500px); max-height: 94vh; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: auto; }
.lp-zoom::backdrop { background: rgba(10, 10, 9, 0.72); }
.lp-zoom img { display: block; width: 100%; height: auto; }
.lp-zoom form { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 8px; margin-bottom: -46px; pointer-events: none; }
.lp-zoom-x { pointer-events: auto; font: inherit; font-size: 13.5px; font-weight: 620; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.lp-zoom p { position: sticky; bottom: 0; margin: 0; padding: 10px 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .pv-img img { transition: none; } .pv-img:hover img { transform: none; } }
.pv-card.shot, .pv-card.join { flex-basis: 360px; }      /* three to a row on a desktop, so each picture stays readable */
@media (max-width: 640px) { .pv-card.shot, .pv-card.join { flex-basis: 100%; } .pv-full { float: none; display: block; margin-top: 4px; } }

/* Home page, pictures of the real pages: three columns, a wide card and a narrow one to a row. Each picture is
   one whole part of a page on its own tile (transparent around it), shown whole whatever the frame's shape. */
.lp-shots .lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-shots .pv-card { flex: none; }
.lp-shots .pv-card.s2 { grid-column: span 2; }
.lp-shots .pv-card.s3 { grid-column: span 3; }
.lp-shots .pv-card.wide { padding-bottom: 14px; }
.lp-shots .pv-card.wide .lp-plot { flex: 1 1 auto; height: auto; min-height: clamp(260px, 26vw, 340px); }
.lp-shots .pv-card.shot { padding: 0 0 14px; overflow: hidden; }
.lp-shots .pv-img { position: relative; flex: 1 0 auto; aspect-ratio: var(--ar, 16 / 10); max-height: 470px; border-bottom: 1px solid var(--rule);
  background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.lp-shots .pv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.lp-shots .pv-img:hover img { transform: scale(1.012); }
.lp-shots .pv-card.shot h3 { margin-top: 14px; }
.lp-shots .pv-text { max-width: 62ch; }
.lp-shots .pv-more { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.lp-shots .pv-full { float: none; font-weight: 560; color: var(--ink-2); white-space: nowrap; }
.lp-shots .pv-full:hover { color: var(--accent); }
/* the invitation that closes the grid */
.lp-shots .pv-card.join { container-type: inline-size; justify-content: center; padding: 0; border: 0; background: var(--band); color: var(--band-ink); overflow: hidden; }
.join-in { display: flex; flex-direction: column; gap: 22px; padding: 26px 26px 24px; height: 100%; justify-content: center; }
.lp-shots .join h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; font-weight: 740; letter-spacing: -0.022em; margin: 0 0 14px; color: var(--band-ink); }
.lp-shots .join ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--band-muted); }
.lp-shots .join li { position: relative; padding-left: 24px; margin: 0; color: #d7d5cc; }
.lp-shots .join li::before { content: ""; position: absolute; left: 2px; top: 0.36em; width: 11px; height: 6px; border-left: 2px solid var(--band-up); border-bottom: 2px solid var(--band-up); transform: rotate(-45deg); }
.join-do { display: flex; flex-direction: column; gap: 10px; }
.join-do form { margin: 0; display: flex; }
.join-do .btn.lg { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
.lp-shots .join .btn.ghost { background: transparent; color: var(--band-ink); box-shadow: inset 0 0 0 1px rgba(244, 243, 239, 0.34); display: inline-flex; align-items: center; gap: 10px; }
.lp-shots .join .btn.ghost:hover { background: rgba(244, 243, 239, 0.08); }
.join-do p { margin: 2px 0 0; font-size: 13.5px; color: var(--band-muted); text-align: center; }
.join-do p a { color: var(--band-ink); font-weight: 620; text-decoration: underline; text-decoration-color: rgba(244, 243, 239, 0.4); text-underline-offset: 3px; }
@container (min-width: 700px) {
  .join-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px 48px; padding: 30px 36px; }
  .lp-shots .join h3 { margin-bottom: 12px; }
  .lp-shots .join ul { flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
  .join-do { flex: 0 0 auto; min-width: 270px; }
}
@container (min-width: 700px) and (max-width: 1000px) { .join-in { align-items: flex-start; } }
.lp-zoom-pic { position: relative; }
.lp-zoom-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(244, 244, 241, 0), #f4f4f1 88%); }   /* the picture is the top of a page: it fades out, not cut */
@media (max-width: 900px) {
  .lp-shots .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-shots .pv-card.s2, .lp-shots .pv-card.s3 { grid-column: auto; }
  .lp-shots .pv-img { max-height: 420px; }
}
@media (max-width: 600px) {
  .lp-shots .pv-img { aspect-ratio: var(--ar-m, var(--ar, 16 / 10)); max-height: 400px; }
  .lp-zoom-pan { overflow-x: auto; }
  .lp-zoom-pan img { width: 860px; max-width: none; }                 /* a whole page on a phone: pan across it */
}
@media (prefers-reduced-motion: reduce) { .lp-shots .pv-img img { transition: none; } .lp-shots .pv-img:hover img { transform: none; } }
.lp-zoom form { justify-content: space-between; align-items: center; margin-bottom: 0; padding: 8px 10px 8px 16px; pointer-events: auto; background: var(--surface); border-bottom: 1px solid var(--rule); }
.lp-zoom-t { font-size: 15px; font-weight: 680; }

/* AI tab: the news above the figures, two short lists side by side (AI news; AI credit news). One line a headline,
   cut with an ellipsis; the whole headline and the reason are the tooltip. */
.ai-heads { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: -6px 0 12px; font-size: 14px; }
.ai-heads.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ah-col { min-width: 0; padding: 8px 16px 8px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius, 10px); }   /* two boxes, the page's grey between them */
.ai-heads .ah-col h2 { margin: 0 0 1px; padding: 0; border: 0; font-size: 12.5px; line-height: 20px; font-weight: 680; letter-spacing: 0; color: var(--ink-2); }
.ai-heads .ah-col h2 small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.ah-col ul { list-style: none; margin: 0; padding: 0; }
.ah-col li { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 0; line-height: 23px; }
.ah-col time { flex: 0 0 82px; font: 500 12px/23px var(--num); color: var(--muted); white-space: nowrap; }
.ah-col a, .ah-col .h { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); font-weight: 540; text-decoration: none; }
.ah-col a:hover { color: var(--accent); text-decoration: underline; }
.ah-col a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 2px; }
@media (max-width: 760px) {
  .ai-heads { gap: 8px; font-size: 13.5px; }
  .ai-heads.two { grid-template-columns: minmax(0, 1fr); }
  .ah-col { padding: 7px 12px; }
  .ah-col time { flex-basis: 76px; }
}

/* A stock cell outside the Earnings table: ticker, then the company's name in a lighter weight, cut with an
   ellipsis so a long name never widens the table. The tickers share a width, so the names line up. */
table.data:not(.earn) td.sym { white-space: nowrap; }
table.data:not(.earn) td.sym .tk { display: inline-block; min-width: 5.4ch; }
table.data:not(.earn) td.sym .co { display: inline-block; max-width: 24ch; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom; font-weight: 400; color: var(--muted); }
table.data:not(.earn) td.sym .co:empty { display: none; }
@media (max-width: 1100px) { table.data:not(.earn) td.sym .co { max-width: 16ch; } }
@media (max-width: 560px) { table.data:not(.earn) td.sym .co { max-width: 11ch; margin-left: 6px; } }

/* ---- Retail Flow & Sentiment ---- */
/* a long table kept to its first rows on every screen (data-fold-all), with the button that opens it */
table.data.fold-all:not(.unfolded) tr.fold-x { display: none; }
.fold-btn.always { display: block; width: 100%; padding: 11px; border: 0; border-top: 1px solid var(--rule); background: none; color: var(--accent);
  font: inherit; font-size: 13.5px; font-weight: 620; cursor: pointer; text-align: center; }
.fold-btn.always:hover { background: var(--surface-2); }
.tablewrap:has(> table.unfolded) + .fold-btn.always { display: none; }
/* the bar at the top: the retail figures, then the two sentiment figures, built the same way (each is a link to its panel) */
.figures.summary.slan-sum a.fig.sentf { text-decoration: none; color: inherit; }
.figures.summary.slan-sum a.fig.sentf .v small { font-weight: 500; color: var(--muted); }
.figures.summary.slan-sum a.fig.sentf:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* the sentiment part: after the retail part. On a wide screen its two figures are in the bar at the top; on a phone,
   and when there is no retail list to show, they head the sentiment part instead */
.rf-sent > .rf-part, .rf-sent > .figures.only-sent { display: none; }
.rf-sent.alone > .figures.only-sent { display: flex; max-width: 520px; }
.rf-sent > .panel { scroll-margin-top: 110px; }
.rf-part { margin: 26px 0 12px; font-size: 20px; font-weight: 720; letter-spacing: -0.015em; }
@media (max-width: 760px) {
  .figures.summary.slan-sum.with-sent a.fig.sentf { display: none; }                 /* not nested with the retail figures */
  .rf-sent > .rf-part { display: block; }
  .rf-sent > .figures.only-sent, .rf-sent.alone > .figures.only-sent { display: block; max-width: none; }
  .rf-sent > .figures.only-sent a.fig.sentf { display: grid; }
}
@media (max-width: 1500px) { .figures.summary.slan-sum.with-sent .fig.newsf { display: none; } }   /* room for the sentiment figures: the news count is on the cards' tags */
/* the Retail tab carries the longest name ("Retail & Sentiment") and a figure: it takes a wider share of the row
   wherever the long names are shown (six tabs or fewer, a wide screen). It is the second tab, after Macro, for a
   member and for a visitor alike, so the second column is the wide one. */
@media (min-width: 901px) {
  .band nav:not(:has(> a:nth-child(7))):has(> a[data-sec="slan"]), .band nav.visitor { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
/* seven tabs on a wide screen: the Retail tab keeps its short name (the long one and its figure do not fit a seventh of the row) */
@media (min-width: 1501px) {
  .band nav:has(> a:nth-child(7)) > a[data-sec="slan"] .lbl-l { display: none; } .band nav:has(> a:nth-child(7)) > a[data-sec="slan"] .lbl-s { display: inline; }
}
/* the Positioning tab's name is cut to "Position" only where seven tabs share a phone's width */
.band nav .lbl-abbr { display: none; }
@media (max-width: 520px) { .band nav .lbl-full { display: none; } .band nav .lbl-abbr { display: inline; } }
/* the Retail tab's figure is a stock and its z ("VST +4.89"): where tabs are narrowest, the z alone */
.band nav .tabfig .tf-s { display: none; }
@media (max-width: 380px) {
  .band nav:has(> a:nth-child(7)) a { font-size: 10.5px; letter-spacing: -0.015em; padding-left: 1px; padding-right: 1px; }
  .band nav:has(> a:nth-child(7)) .tabfig .tf-l { display: none; } .band nav:has(> a:nth-child(7)) .tabfig .tf-s { display: inline; }
}
@media (max-width: 340px) {
  .band nav:has(> a:nth-child(6)) a { font-size: 10px; letter-spacing: -0.02em; }
  .band nav:has(> a:nth-child(6)) .tabfig .tf-l { display: none; } .band nav:has(> a:nth-child(6)) .tabfig .tf-s { display: inline; }
}
/* the disagreement tables on a phone: ticker only and tighter cells, so all four columns show without scrolling sideways */
@media (max-width: 560px) {
  table.data.dis-t td.sym .co { display: none; }
  table.data.dis-t th, table.data.dis-t td { padding-left: 6px; padding-right: 6px; }
  table.data.dis-t th:first-child, table.data.dis-t td:first-child { padding-left: 4px; }
}
@media (max-width: 380px) { table.data.dis-t th, table.data.dis-t td { padding-left: 4px; padding-right: 4px; font-size: 13px; } }

/* ---- Portfolio: the simulation (the entered portfolio beside edited or optimized weights) */
.ps-top { display: flex; gap: 8px; flex: none; margin-left: auto; align-self: flex-start; }
.pn-btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
a.pn-btn { text-decoration: none; } a.pn-btn:hover { text-decoration: none; }
.pn-sim { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: 1px solid var(--rule); }
.ps-edit { min-width: 0; } .ps-res { min-width: 0; border-left: 1px solid var(--rule); display: flex; flex-direction: column; transition: opacity .15s; }
#pf-sim[aria-busy=true] .ps-res { opacity: .5; }
.ps-add { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 12px 16px 10px; }
.ps-add label { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ps-add input { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 10px; min-width: 0; width: 100%; text-transform: uppercase; }
.ps-add input::placeholder { color: var(--muted); } .ps-add input:focus-visible, .ps-in input:focus-visible, td.x button:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.ps-hint { grid-column: 2 / -1; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ps-msg { margin: 0 16px 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--ink-2); } .ps-msg[hidden] { display: none; }
.ps-msg.er { background: var(--warn-bg); color: var(--ink); }
table.data.ps-tbl td, table.data.ps-tbl th { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
table.data.ps-tbl td { font-family: var(--num); } table.data.ps-tbl td.l { font-family: inherit; overflow: hidden; max-width: 0; width: 38%; }
table.data.ps-tbl td.pos { color: var(--up); } table.data.ps-tbl td.neg { color: var(--down); }
table.data.ps-tbl th.s, table.data.ps-tbl td.s { width: 104px; } table.data.ps-tbl th.x, table.data.ps-tbl td.x { width: 38px; padding-left: 0; padding-right: 10px; }
table.data.ps-tbl tr.zero td:not(.s):not(.x) { opacity: .5; } table.data.ps-tbl tr.added td.l b { color: var(--accent); }
table.data.ps-tbl .new { font-family: inherit; font-size: 11.5px; font-weight: 650; color: var(--accent); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
table.data.ps-tbl tfoot td { border-top: 1px solid var(--rule); border-bottom: 0; font-weight: 650; color: var(--ink); } table.data.ps-tbl tfoot td.l { font-family: inherit; }
#ps-total small { display: block; font-family: var(--font, inherit); font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; } #ps-total.off { color: var(--warn-ink); }
.ps-in { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; } .ps-in i { font-style: normal; color: var(--muted); font-size: 12.5px; }
.ps-in input { width: 66px; font: inherit; font-family: var(--num); font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; padding: 5px 7px; -moz-appearance: textfield; }
.ps-in input::-webkit-outer-spin-button, .ps-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } .ps-in input:hover { border-color: var(--axis); }
td.x button { width: 24px; height: 24px; border-radius: 7px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; cursor: pointer; margin-left: auto; }
td.x button:hover { background: var(--surface-2); color: var(--ink); } td.x .ico { width: 12px; height: 12px; }
.ps-edit .pf-fine { max-width: none; }
table.data.ps-cmp td, table.data.ps-cmp th { padding-top: 8px; padding-bottom: 8px; } table.data.ps-cmp td { font-family: var(--num); font-weight: 600; }
table.data.ps-cmp td.l { font-family: inherit; font-weight: 500; color: var(--ink-2); } table.data.ps-cmp td.pos { color: var(--up); } table.data.ps-cmp td.neg { color: var(--down); }
table.data.ps-cmp td:last-child { color: var(--ink-2); font-weight: 500; font-size: 13px; white-space: nowrap; } table.data.ps-cmp td:nth-child(3) { font-weight: 700; }
table.data.ps-cmp th { white-space: nowrap; } .ps-key { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--ink); } .ps-key.s { background: var(--s1); }
.ps-res.same .ps-key.s { background: var(--rule); } .ps-res.same table.data.ps-cmp td:nth-child(3) { color: var(--muted); font-weight: 500; }
.ps-pad { padding: 6px 8px 0 6px; flex: 1 1 auto; display: flex; max-height: 400px; } .ps-pad .chart { flex: 1 1 auto; min-height: 236px; height: auto !important; }
.ps-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px 14px; } .ps-foot span { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .pn-sim { grid-template-columns: minmax(0, 1fr); } .ps-res { border-left: 0; border-top: 1px solid var(--rule); } }
@media (max-width: 760px) {
  .pn-acts { flex-wrap: wrap; }
  .ps-add { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 12px 10px; } .ps-add label { grid-column: 1 / -1; } .ps-hint { grid-column: 1 / -1; }
  .ps-msg { margin: 0 12px 10px; } table.data.ps-tbl td.l { width: auto; } table.data.ps-tbl th.s, table.data.ps-tbl td.s { width: 96px; } .ps-in input { width: 60px; font-size: 16px; }
  .ps-add input { font-size: 16px; } .ps-foot { padding: 10px 12px 12px; } #pf-sim .panel-head { flex-wrap: wrap; } .ps-top { margin-left: 0; }
  table.data.ps-cmp { table-layout: fixed; width: 100%; } table.data.ps-cmp td, table.data.ps-cmp th { padding-left: 6px; padding-right: 6px; font-size: 13px; }
  table.data.ps-cmp th.l, table.data.ps-cmp td.l { width: 36%; padding-left: 12px; white-space: normal; line-height: 1.25; } table.data.ps-cmp td:last-child { font-size: 12px; padding-right: 12px; }
  table.data.ps-cmp th { font-size: 12px; } .ps-key { display: none; }
}
@media (max-width: 350px) { table.data.ps-cmp th.l, table.data.ps-cmp td.l { width: 30%; } }

/* ---- Portfolio: two views of one layout (the portfolio as entered, and a simulated one), and their comparison */
.pn-nav { overflow: visible; gap: 8px; } .pn-nav a[hidden] { display: none; }
.pn-links { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; } .pn-links::-webkit-scrollbar { display: none; }
.pn-links a.off { opacity: .38; pointer-events: none; } .pn-links.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.pn-nav .pn-links a { padding: 7px 11px; } @media (max-width: 1540px) { .pn-nav .end { display: none; } }
.pv-sw { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 9px; background: var(--surface-2); }
.pv-sw button { position: relative; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink-2); padding: 6px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.pv-sw button .ico { width: 15px; height: 15px; } .pv-sw button:hover { color: var(--ink); }
.pv-sw button[aria-pressed=true] { background: var(--ink); color: var(--surface); } .pv-sw button:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
.pv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--s1); margin-left: 1px; } .pv-dot[hidden] { display: none; }
#pf-sim, #pf-cmp { scroll-margin-top: calc(var(--pf-top, 0px) + 60px); }
.pv-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 7px 9px; border-radius: 9px; background: var(--s1); color: #fff; font-size: 13px; font-weight: 650; } .pv-tag svg.ico { width: 14px; height: 14px; color: #fff; } .pv-sw button svg.ico { color: inherit; }
.pn-cmp.ent i { background: var(--ink); height: 3px; } .pv .pn-cmp.ent { margin-top: 3px; }
.pv-new, .pv-was { margin-left: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; } .pv-new { color: var(--accent); background: var(--surface-2); padding: 1px 7px; border-radius: 6px; } .pv-was { color: var(--muted); font-family: var(--num); }
.pv-out { margin: 0; padding: 9px 16px 11px; border-top: 1px solid var(--rule); max-width: none; }
.pv.stale, .pc.stale #pc-body { opacity: .5; transition: opacity .15s; }
/* the weights table's own additions */
td.x button[data-back] { color: var(--accent); } .ps-top { flex-wrap: wrap; justify-content: flex-end; }
.ps-link { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; } .ps-link[disabled] { display: none; }
/* the comparison */
.pc-key { display: flex; gap: 16px; align-self: center; margin-left: auto; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.pc-key i, .pc-who i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 7px; vertical-align: middle; background: var(--ink); } .pc-key i.s, .pc-who i.s { background: var(--s1); }
.pc-stale { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; background: var(--warn-bg); color: var(--ink); font-size: 13.5px; border-top: 1px solid var(--rule); } .pc-stale[hidden] { display: none; }
.pc-stale .ico { width: 15px; height: 15px; flex: none; color: var(--warn-ink); } .pc-stale span { flex: 1 1 auto; } .pc-stale .pn-btn { flex: none; }
.pc-who { display: grid; gap: 6px; padding: 14px 16px 13px; border-top: 1px solid var(--rule); } .pc-who p { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.pc-who p b { font-weight: 650; grid-column: 1; grid-row: 1; padding-left: 19px; font-size: 13px; color: var(--ink-2); } .pc-who p i { grid-column: 1; grid-row: 1; align-self: center; margin: 0; } .pc-who p span { font-weight: 600; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); } .pc-col { min-width: 0; } .pc-col + .pc-col { border-left: 1px solid var(--rule); }
.pc-col h3, .pc-sec h3 { margin: 0; padding: 12px 16px 4px; font-size: 13px; font-weight: 650; color: var(--ink); } .pc-col h3 small { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 12px; }
table.data.pc-t { table-layout: fixed; width: 100%; } table.data.pc-t th, table.data.pc-t td { padding: 7px 8px; white-space: nowrap; } table.data.pc-t th { font-size: 12px; }
table.data.pc-t th.l, table.data.pc-t td.l { width: 40%; padding-left: 16px; white-space: normal; line-height: 1.25; color: var(--ink-2); font-weight: 500; }
table.data.pc-t td { font-family: var(--num); font-weight: 600; } table.data.pc-t td.l { font-family: inherit; } table.data.pc-t td:nth-child(3) { font-weight: 700; }
table.data.pc-t td.d { font-weight: 500; font-size: 12.5px; color: var(--ink-2); padding-right: 16px; } table.data.pc-t th:last-child { padding-right: 16px; }
table.data.pc-t td.pos { color: var(--up); } table.data.pc-t td.neg { color: var(--down); } table.data.pc-t td small { font-weight: 500; font-size: 11.5px; color: var(--muted); margin-left: 2px; }
table.data.pc-t .faint { opacity: .45; } table.data.pc-t td small.blk { display: block; margin: 1px 0 0; } table.data.pc-t tr:last-child td { border-bottom: 0; }
.pc-sec.pn-mix { padding: 0 16px 14px; } .pc-sec h3 { padding: 12px 0 8px; }
.pc-bars { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 7px 10px; font-size: 12.5px; color: var(--ink-2); }
.pc-sec .lg b { font-family: var(--num); font-weight: 600; color: var(--ink); } .pc-sec .mx { background: var(--axis); }
@media (max-width: 1100px) { .pc-grid { grid-template-columns: minmax(0, 1fr); } .pc-col + .pc-col { border-left: 0; border-top: 1px solid var(--rule); } table.data.pc-t th.l, table.data.pc-t td.l { width: 36%; } }
@media (max-width: 760px) {
  .pn-nav { gap: 5px; padding: 4px; } .pv-sw button { padding: 6px 9px; font-size: 13px; gap: 5px; } .pv-sw button .ico { display: none; }
  .pc-key { display: none; } .pc-who p { grid-template-columns: minmax(0, 1fr); } .pc-who p span { grid-column: 1; } .pc-who { padding: 12px 12px 11px; }
  .pc-col h3 { padding: 11px 12px 4px; } table.data.pc-t th.l, table.data.pc-t td.l { padding-left: 12px; width: 34%; } table.data.pc-t td.d, table.data.pc-t th:last-child { padding-right: 12px; }
  table.data.pc-t th, table.data.pc-t td { padding-left: 5px; padding-right: 5px; font-size: 13px; } table.data.pc-t td.d { font-size: 12px; }
  .pc-sec.pn-mix { padding: 0 12px 12px; } .pc-stale { flex-wrap: wrap; padding: 10px 12px; } .pv-out { padding: 9px 12px 11px; }
  .ps-top .pn-btn { padding-left: 9px; padding-right: 9px; }
}

/* ---- Portfolio: the two views as tabs of their own above the section bar, and the simulation's main actions */
.pv-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pv-tabs button { position: relative; display: flex; align-items: center; gap: 13px; min-width: 0; text-align: left; padding: 13px 16px 14px; border-radius: var(--radius); border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-2); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .12s, background .12s, box-shadow .12s; }
.pv-tabs .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); } .pv-tabs .ic svg.ico { width: 19px; height: 19px; color: var(--ink-2); }
.pv-tabs .tx { min-width: 0; flex: 1 1 auto; } .pv-tabs b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.005em; color: var(--ink); line-height: 1.25; }
.pv-tabs small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-tabs .go { flex: none; display: grid; place-items: center; } .pv-tabs .go svg.ico { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--accent); }
.pv-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.pv-tabs button[aria-pressed=true] { border-color: var(--ink); cursor: default; } .pv-tabs button[aria-pressed=true]::after { background: var(--ink); }
.pv-tabs button[aria-pressed=true] .ic { background: var(--ink); } .pv-tabs button[aria-pressed=true] .ic svg.ico { color: var(--surface); } .pv-tabs button[aria-pressed=true] .go { display: none; }
/* the simulation, not yet open, is the one thing on the page in the accent colour */
.pv-tabs button[data-view=b] .ic { background: var(--accent-soft); } .pv-tabs button[data-view=b] .ic svg.ico { color: var(--accent); }
.pv-tabs button[data-view=b][aria-pressed=false] { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface); }
.pv-tabs button[data-view=b][aria-pressed=false] b { color: var(--accent); }
.pv-tabs button[data-view=b][aria-pressed=true] { border-color: var(--accent); } .pv-tabs button[data-view=b][aria-pressed=true]::after, .pv-tabs button[data-view=b][aria-pressed=true] .ic { background: var(--accent); }
.pv-tabs button[data-view=b][aria-pressed=true] .ic svg.ico { color: #fff; }
.pv-tabs button[aria-pressed=false]:hover { border-color: var(--axis); box-shadow: 0 6px 16px -12px rgba(0,0,0,.35); } .pv-tabs button[data-view=b][aria-pressed=false]:hover { border-color: var(--accent); }
.pv-tabs button:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.pv-state { flex: none; font-style: normal; font-size: 12.5px; font-weight: 650; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pv-state[hidden] { display: none; } .pv-state.warn { color: var(--warn-ink); background: var(--warn-bg); }
.pv-tabs button[data-view=b][aria-pressed=false] .pv-state { background: var(--surface); }
/* in the bar, the small switch stands in for the tabs once they have scrolled away (and always on a phone, which has no tabs) */
.pn-nav .pv-sw { display: none; } .pn-nav.docked .pv-sw { display: inline-flex; }
.pv-sw button[data-view=b][aria-pressed=false] { color: var(--accent); }
/* buttons: the simulation's own actions in the accent colour, the one that runs the analysis solid */
.pn-btn.acc { border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.pn-btn.acc:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 17%, transparent); } .pn-btn.acc svg.ico { color: var(--accent); }
.pn-btn.big { font-size: 14px; padding: 8px 15px; } .pn-btn.big .ico { width: 15px; height: 15px; }
.pn-btn.quiet { border-color: transparent; background: none; color: var(--ink-2); } .pn-btn.quiet:hover { background: var(--surface-2); border-color: transparent; }
.pn-btn.cta { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 15px; font-weight: 700; padding: 11px 16px 11px 20px; border-radius: 10px; gap: 8px; box-shadow: 0 8px 18px -10px var(--accent); }
.pn-btn.cta:hover { color: #fff; filter: brightness(1.07); } .pn-btn.cta svg.ico { color: #fff; width: 15px; height: 15px; transform: rotate(-90deg); }
.pn-btn.cta[disabled] { background: var(--surface-3, var(--surface-2)); border-color: var(--rule); color: var(--muted); box-shadow: none; opacity: 1; } .pn-btn.cta[disabled] svg.ico { color: var(--muted); }
.ps-top { align-items: center; }
.ps-cta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--rule); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface-2); transition: background .15s; }
.ps-cta .ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); } .ps-cta .ic svg.ico { width: 18px; height: 18px; color: var(--muted); }
.ps-cta .tx { flex: 1 1 auto; min-width: 0; } .ps-cta b { display: block; font-size: 15px; font-weight: 700; color: var(--ink); } .ps-cta .tx span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); max-width: 92ch; }
.ps-cta .pn-btn { flex: none; }
.ps-cta.ready, .ps-cta.busy { background: linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface); border-top-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.ps-cta.ready .ic, .ps-cta.busy .ic { background: var(--accent); box-shadow: none; } .ps-cta.ready .ic svg.ico, .ps-cta.busy .ic svg.ico { color: #fff; }
.ps-cta.old { background: var(--warn-bg); } .ps-cta.old .ic svg.ico { color: var(--warn-ink); }
.ps-cta.done .pn-btn.cta { background: var(--surface); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); box-shadow: none; } .ps-cta.done .pn-btn.cta svg.ico { color: var(--accent); transform: none; }
.ps-cta.busy .pn-btn.cta[disabled] { background: var(--accent); border-color: var(--accent); color: #fff; opacity: .75; } .ps-cta.busy .pn-btn.cta svg.ico { display: none; }
table.data.ps-tbl small.lim { display: block; margin: 2px 22px 0 0; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) {
  .pv-tabs { display: none; } .pn-nav .pv-sw { display: inline-flex; }
  .ps-cta { flex-wrap: wrap; padding: 12px; gap: 10px 12px; } .ps-cta .ic { display: none; } .ps-cta .pn-btn.cta { width: 100%; justify-content: center; }
  table.data.ps-tbl small.lim { margin-right: 18px; }
}


/* ===== Macro open to everyone (settings.MACRO_OPEN): what a visitor sees =====
   The tabs, with a lock on the ones an account opens; a strip under the header that says what an account adds, closed
   for one visit at a time; the tabs again at the foot of Macro; and the page a locked tab shows a visitor. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.band nav.visitor a.locked { color: #a9a79f; }
.band nav.visitor a.locked:hover, .band nav.visitor a.locked.on { color: var(--band-ink); }
.band nav.visitor .tabfig.tab-lock, .band nav.visitor .tabfig.tab-free { display: inline-flex; align-items: center; padding: 0; background: none; color: #7f7d76; }
.band nav.visitor .tabfig.tab-free { color: var(--band-up); }
.band nav.visitor a.locked:hover .tab-lock, .band nav.visitor a.locked.on .tab-lock { color: var(--band-muted); }
.band nav.visitor svg.lock { display: block; }
.band .who a.tour { font-weight: 600; }
.band .who a.tour.on { color: var(--band-ink); }
@media (max-width: 760px) {
  .band nav.visitor a { gap: 5px; }
  .band nav.visitor .tabfig.tab-lock, .band nav.visitor .tabfig.tab-free { line-height: 1; height: 14px; }
}
@media (max-width: 760px) { .band .who a.btn.small { padding: 7px 12px; } }       /* the button keeps its own padding beside the plain links */
@media (max-width: 480px) { .band .who a.tour { display: none; } }

/* the band under the header: the site's line as a headline, what an account adds, and the ways on. A compact masthead,
   not a hero: two lines of headline at most on a desktop, so the day's data is still in view under it. */
.vstrip { background: var(--surface); border-bottom: 1px solid var(--rule); }
html.join-closed .vstrip { display: none; }
.vstrip-in { position: relative; max-width: 1320px; margin: 0 auto; padding: 20px 76px 21px 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 14px 40px; }
.vstrip-head { margin: 0 0 7px; max-width: 31em; font-size: clamp(21px, 2.05vw, 29px); line-height: 1.15; letter-spacing: -0.026em; font-weight: 740;
  color: var(--ink); text-wrap: balance; }
.vstrip-say { margin: 0; max-width: 88ch; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.vstrip-say b { color: var(--ink); font-weight: 680; }
.vstrip-do { display: flex; align-items: center; gap: 22px; }
.vstrip-do .btn { padding: 11px 18px; font-size: 15px; white-space: nowrap; }
.vstrip-tour { font-size: 14.5px; font-weight: 620; white-space: nowrap; }
.vstrip-x { position: absolute; top: 12px; right: 26px; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0;
  border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.vstrip-x:hover, .vstrip-x:focus-visible { color: var(--ink); background: var(--surface-2); }
@media (max-width: 1040px) { .vstrip-in { grid-template-columns: minmax(0, 1fr); } }
.head .vis-note { flex-basis: 100%; margin: -12px 0 0; text-align: right; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .vstrip-in { padding: 14px 14px 15px; gap: 11px; }
  .vstrip-text { padding-right: 30px; }                  /* the close button's corner */
  .vstrip-head { font-size: 19px; line-height: 1.2; margin-bottom: 6px; }
  .vstrip-say { font-size: 13.5px; }
  .vstrip-do { gap: 18px; } .vstrip-do .btn { padding: 10px 16px; font-size: 14.5px; }
  .vstrip-x { top: 8px; right: 8px; }
  .head .vis-note { margin: 0; text-align: left; font-size: 12.5px; }
}

.vis-more { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--rule); }
.vis-more-head { display: flex; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vis-more-head h2 { font-size: 21px; letter-spacing: -0.015em; }
.vis-more-head p { margin: 0; font-size: 14px; color: var(--muted); }
.vis-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.vis-tile { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 13px; border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); }
.vis-tile:hover, .vis-tile:focus-visible { text-decoration: none; box-shadow: inset 0 0 0 1px var(--accent); }
.vis-pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; margin-bottom: 8px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--rule); }
.vis-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.vis-tile b { font-size: 15px; font-weight: 680; }
.vis-txt { font-size: 13px; line-height: 1.42; color: var(--muted); }
.vis-cta { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-top: 20px; }
.vis-cta form, .lk-cta form { margin: 0; }
.vis-cta .btn.ghost, .lk-cta .btn.ghost { color: var(--ink); background: var(--surface); }
.vis-cta .g-logo, .lk-cta .g-logo { width: 18px; height: 18px; flex: none; }
.vis-tour { margin-left: 6px; font-size: 14.5px; font-weight: 620; }
@media (max-width: 760px) {
  .vis-more { margin-top: 22px; padding-top: 18px; }
  .vis-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vis-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .vis-pic { display: none; }
  .vis-tile { padding: 11px 12px 12px; }
  .vis-cta .btn.lg { flex: 1 1 100%; } .vis-cta form { flex: 1 1 100%; display: flex; } .vis-tour { margin: 2px 0 0; }
}

main.locked { padding-top: 44px; }
.lk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.lk-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 640;
  color: var(--accent); background: var(--accent-soft); }
.lk h1 { font-size: 36px; margin-bottom: 10px; }
.lk-line { margin: 0 0 20px; max-width: 44ch; font-size: 17.5px; line-height: 1.45; color: var(--ink-2); }
.lk-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.lk-points li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.42; }
.lk-points li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); }
.lk-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lk-terms { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.lk-back { display: flex; gap: 22px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.lk-pic { margin: 0; }
.lk-frame { display: block; overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--rule), 0 22px 44px -28px rgba(17, 17, 16, 0.4); }
.lk-frame img { display: block; width: 100%; height: auto; }
.lk-pic figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) { .lk { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 760px) {
  main.locked { padding-top: 20px; }
  .lk h1 { font-size: 27px; } .lk-line { font-size: 16px; }
  .lk-cta .btn.lg { flex: 1 1 100%; } .lk-cta form { flex: 1 1 100%; display: flex; } .lk-cta form .btn { flex: 1; }
  .vis-cta form .btn { flex: 1; }
}


/* ===== Unusual today: the moves that stand out against their own year, each with the headline that goes with it =====
   One line a move. The pill that names it is the alert pill the Markets band already uses, in the move's colour; the
   headline hangs off it behind a bar of the same colour, so the number and the news read as one statement. The same
   mark and words sit under the row in the Markets box, and the pill leads there. Nothing marked: nothing shown. */
.standouts { margin: 0 0 16px; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.standouts:has(.un-rows:empty) { display: none; }
.un-h { display: flex; align-items: baseline; gap: 10px; padding: 9px 18px 8px; border-bottom: 1px solid var(--grid); font-size: 13px; color: var(--muted); }
.un-h b { font-size: 13.5px; font-weight: 680; color: var(--ink); }
.un-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px 14px; padding: 9px 18px; border-top: 1px solid var(--grid); }
.un-row:first-child { border-top: 0; }
.un-what { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 13.5px; font-weight: 640; white-space: nowrap;
  color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--axis); }
.un-what:hover { text-decoration: none; filter: brightness(0.97); }
.un-row.neg .un-what { color: var(--down); background: var(--down-soft); box-shadow: inset 0 0 0 1px var(--down); }
.un-row.pos .un-what { color: var(--up); background: var(--up-soft); box-shadow: inset 0 0 0 1px var(--up); }
.un-what svg.ico { width: 15px; height: 15px; color: currentColor; }
.un-what b { font-weight: 680; }
.un-move { font-family: var(--num); font-weight: 680; }
.un-rank { font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.un-idx { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--axis); color: var(--muted); font-family: var(--num); font-size: 13px; }
.un-news { display: flex; align-items: baseline; gap: 9px; min-width: 0; padding-left: 14px; border-left: 3px solid var(--axis); color: var(--ink); font-size: 14px; }
.un-row.neg .un-news { border-left-color: var(--down); } .un-row.pos .un-news { border-left-color: var(--up); }
a.un-news:hover { text-decoration: none; } a.un-news:hover .un-head { text-decoration: underline; }
.un-tag { flex: none; font-size: 12px; font-weight: 640; color: var(--muted); white-space: nowrap; }
.un-head { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.un-src { flex: none; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
/* the row the pill leads to: lit for a moment when it is jumped to */
.mon-r:target { animation: un-lit 2.4s ease-out 1; scroll-margin-top: 120px; }
@keyframes un-lit { 0%, 35% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .mon-r:target { animation: none; outline: 2px solid var(--accent); outline-offset: 3px; } }
@media (max-width: 1100px) {
  .un-row { grid-template-columns: auto minmax(0, 1fr); }
  .un-news { grid-column: 1 / -1; }
  .un-rank { white-space: normal; }
}
@media (max-width: 760px) {
  .standouts { margin-bottom: 12px; }
  .un-h { padding: 8px 14px 7px; } .un-h span { display: none; }
  .un-row { padding: 9px 14px 10px; gap: 7px 10px; }
  .un-rank { font-size: 13px; }
  .un-idx { display: block; margin: 2px 0 0; padding: 0; border: 0; }
  .un-news { flex-wrap: wrap; gap: 2px 8px; padding-left: 11px; }
  .un-head { flex: 1 1 100%; white-space: normal; order: 2; }
  .un-tag { order: 1; } .un-src { order: 3; }
}

/* more than a few unusual moves at once: the most unusual are listed, the rest fold under one line */
.un-more { border-top: 1px solid var(--grid); }
.un-more > summary { list-style: none; cursor: pointer; padding: 8px 18px; font-size: 13px; font-weight: 620; color: var(--accent); }
.un-more > summary::-webkit-details-marker { display: none; }
.un-more > summary::after { content: "Show"; margin-left: 8px; font-weight: 500; color: var(--muted); }
.un-more[open] > summary::after { content: "Hide"; }
.un-more > summary:hover { background: var(--surface-2); }
.un-more[open] > summary { border-bottom: 1px solid var(--grid); }
.un-more .un-row:first-of-type { border-top: 0; }
@media (max-width: 760px) { .un-more > summary { padding: 9px 14px; } }


/* ===== Status: today so far beside earlier days at the same time of day =====
   Under a figure, five small cells: the four days before and (set apart) the same weekday a week ago. Each: the day,
   its count by this time, and today's change against it. In the tables the same days are columns after "Today". */
.vs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; align-items: start; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--grid); }
.vs-c { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.25; }
.vs-c i { display: block; height: 15px; font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--muted); white-space: nowrap; }
.vs-c b { font-family: var(--num); font-size: 14px; font-weight: 640; color: var(--ink); }
.vs-c em { font-style: normal; font-family: var(--num); font-size: 11.5px; color: var(--muted); }
.vs-c em.pos { color: var(--up); } .vs-c em.neg { color: var(--down); }
.vs-note.under { margin: -10px 0 20px; }
.vs-note { margin: -8px 0 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 110ch; }
.vs-note b { color: var(--ink-2); font-weight: 620; }

/* five cells need room: on a phone each such box takes the full width */
.fig:has(> .vs) { flex-basis: 262px; }
/* A table that keeps to the width of its panel: the name takes what the figures leave and wraps when it must. */
table.data.fit { table-layout: fixed; }
table.data.fit col.c-n { width: 72px; } table.data.fit col.c-w { width: 92px; }
table.data.fit th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
table.data.fit th, table.data.fit td { padding-left: 9px; padding-right: 9px; }
table.data.fit td.l { white-space: normal; overflow-wrap: anywhere; font-family: inherit; }
@media (max-width: 760px) { table.data.fit col.c-n { width: 54px; } table.data.fit col.c-w { width: 68px; } table.data.fit th, table.data.fit td { padding-left: 6px; padding-right: 6px; } }
/* A row that opens on today against the days before: the name is its button. */
table.vs-table tr.vs-top { cursor: pointer; }
.vs-open { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.vs-open::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: 1px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(-45deg); transition: transform 0.12s; }
.vs-open[aria-expanded="true"]::before { transform: translateY(-3px) rotate(45deg); border-color: var(--ink); }
.vs-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
table.vs-table tr.vs-top.open td { border-bottom-color: transparent; font-weight: 620; }
table.vs-table tr.vs-top.open td, table.data.vs-table tbody tr.vs-sub td, table.data.vs-table tbody tr.vs-sub:hover td { background: var(--surface-2); }
table.data.vs-table tr.vs-sub td { padding: 2px 14px 14px 24px; white-space: normal; text-align: left; font-family: inherit; }
table.data.vs-table tbody tr.vs-top:has(+ tr.vs-sub[hidden]:last-child) td { border-bottom: 0; }
.vsx { max-width: 600px; }
.vsx-h { margin: 0 0 7px; font-size: 12px; color: var(--muted); }
.vsx-r { display: grid; grid-template-columns: 84px minmax(0, 1fr) 52px 50px; align-items: center; column-gap: 10px; padding: 3px 0; font-size: 13px; }
.vsx-d { color: var(--ink-2); white-space: nowrap; }
.vsx-r.now .vsx-d { color: var(--ink); font-weight: 650; }
.vsx-b { display: block; height: 10px; }
.vsx-b i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; background: color-mix(in srgb, var(--s1) 38%, var(--surface-2)); }
.vsx-r.now .vsx-b i { background: var(--s1); }
.vsx-r b { font-family: var(--num); font-weight: 560; text-align: right; color: var(--ink); }
.vsx-r.now b { font-weight: 700; }
.vsx-r em { font-style: normal; font-family: var(--num); font-size: 12px; text-align: right; color: var(--muted); }
.vsx-r em.pos { color: var(--up); } .vsx-r em.neg { color: var(--down); }
.vsx-none { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { table.data.vs-table tr.vs-sub td { padding-left: 12px; } .vsx-r { grid-template-columns: 76px minmax(0, 1fr) 44px 46px; column-gap: 7px; } }
.panel-head h2 ~ .seg ~ .share:first-of-type { margin-left: 8px; }
@media (max-width: 760px) { .panel-head.vs-head .note { order: 2; flex-basis: 100%; } .panel-head.vs-head .seg { order: 3; margin-left: 0; } }
