/* QuarterFile: official filings, readable at a glance. */

:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fcfcfb;
  --surface-2: #f0eee8;
  --line: #e2dfd6;
  --line-strong: #cfcbbf;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #6a6862;
  --accent: #17446f;
  --accent-ink: #ffffff;
  --series-1: #2a78d6;
  --series-1-soft: #b7d3f6;
  --pos: #256abf;
  --neg: #d03b3b;
  --focus: #2a78d6;
  --k-earnings: #17446f;
  --k-quarterly: #3d5a2a;
  --k-annual: #6b4a12;
  --k-presentation: #5b3a78;
  --k-interim: #2f5f63;
  --k-proxy: #5c5a55;
  --k-event: #8a3324;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0b0d;
    --surface: #111316;
    --surface-2: #191c20;
    --line: #22262b;
    --line-strong: #363c44;
    --text: #e9ebee;
    --text-2: #a6adb7;
    --text-3: #858d98;
    --accent: #f5a524;
    --accent-ink: #171106;
    --series-1: #3987e5;
    --series-1-soft: #1c4a85;
    --pos: #6da7ec;
    --neg: #e66767;
    --focus: #f5a524;
    --k-earnings: #9ec5f4;
    --k-quarterly: #a9cf8e;
    --k-annual: #e3c07a;
    --k-presentation: #c9a9e6;
    --k-interim: #8fd0d4;
    --k-proxy: #b5b3ab;
    --k-event: #f0a48f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111316;
  --surface-2: #191c20;
  --line: #22262b;
  --line-strong: #363c44;
  --text: #e9ebee;
  --text-2: #a6adb7;
  --text-3: #858d98;
  --accent: #f5a524;
  --accent-ink: #171106;
  --series-1: #3987e5;
  --series-1-soft: #1c4a85;
  --pos: #6da7ec;
  --neg: #e66767;
  --focus: #f5a524;
  --k-earnings: #9ec5f4;
  --k-quarterly: #a9cf8e;
  --k-annual: #e3c07a;
  --k-presentation: #c9a9e6;
  --k-interim: #8fd0d4;
  --k-proxy: #b5b3ab;
  --k-event: #f0a48f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 17px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 3px; background: var(--accent);
  background-image: linear-gradient(var(--accent-ink), var(--accent-ink)), linear-gradient(var(--accent-ink), var(--accent-ink)), linear-gradient(var(--accent-ink), var(--accent-ink));
  background-size: 10px 1.5px; background-repeat: no-repeat;
  background-position: 4px 5px, 4px 8.5px, 4px 12px;
}
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 11px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- page frame ---------- */
main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 32px) 56px; outline: none; }
.loading { color: var(--text-2); padding: 40px 0; }
.footer {
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
  padding: 16px clamp(16px, 3vw, 32px); border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 12.5px;
}
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.page-head p { margin: 6px 0 0; color: var(--text-2); max-width: 62ch; }
.section { margin-top: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 14px 18px; }
.stat b { display: block; font: 500 26px/1.1 var(--serif); }
.stat span { color: var(--text-2); font-size: 13px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- controls ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.pill:hover { color: var(--text); background: var(--surface-2); }
.pill[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
select, .field {
  padding: 6px 10px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
}

/* ---------- document chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--k) 38%, transparent);
  background: color-mix(in srgb, var(--k) 9%, transparent); color: var(--k);
  font: 500 11.5px/1.5 var(--mono); white-space: nowrap;
}
a.chip:hover { background: color-mix(in srgb, var(--k) 20%, transparent); text-decoration: none; }
.k-earnings { --k: var(--k-earnings); }
.k-quarterly { --k: var(--k-quarterly); }
.k-annual { --k: var(--k-annual); }
.k-presentation { --k: var(--k-presentation); }
.k-interim { --k: var(--k-interim); }
.k-proxy { --k: var(--k-proxy); }
.k-event { --k: var(--k-event); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child > td { border-bottom: 0; }
thead th {
  position: sticky; top: 0; background: var(--surface-2); color: var(--text-2);
  font: 500 12px/1.3 var(--sans); letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
}
th.r, td.r { text-align: right; }
td.r { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:hover { color: var(--text); }
th[aria-sort] button::after { content: '↓'; font-size: 11px; }
th[aria-sort="ascending"] button::after { content: '↑'; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: var(--surface-2); }
.bank-cell { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.bank-cell b { font-weight: 500; }
.bank-cell span { color: var(--text-3); font: 12px var(--mono); }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }
thead .sticky-col { background: var(--surface-2); z-index: 2; }

/* ---------- reporting grid ---------- */
.grid-table td { vertical-align: top; min-width: 112px; }
.grid-table td.cell { padding: 7px 8px; }
.grid-table td.cell:hover { background: var(--surface-2); }
.cell-docs { display: flex; flex-wrap: wrap; gap: 4px; }
.cell-empty { color: var(--text-3); font: 12px var(--mono); }
.grid-table th.q { text-align: left; font-family: var(--mono); letter-spacing: 0; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .date { color: var(--text-3); font: 12.5px var(--mono); }
.feed .what { min-width: 0; }
.feed .what a.bank { font-weight: 500; }
.feed .what .desc { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.more { display: block; width: 100%; padding: 10px; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.more:hover { background: var(--surface-2); color: var(--text); }
.upcoming li { grid-template-columns: 64px minmax(0, 1fr) auto; }

/* ---------- bank page ---------- */
.crumbs { color: var(--text-3); font-size: 13px; margin-bottom: 10px; }
.bank-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.bank-meta .num { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.quarter-rail { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.qtab {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 84px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
}
.qtab b { font: 500 14px var(--mono); }
.qtab span { font-size: 12px; color: var(--text-3); }
.qtab:hover { border-color: var(--line-strong); }
.qtab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.qtab[aria-selected="true"] span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.doc-list { display: grid; gap: 10px; }
.doc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--k); border-radius: var(--radius);
}
.doc h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.doc .sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.doc .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { padding: 22px; text-align: center; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.kv { width: 100%; }
.kv td { padding: 7px 14px; }
.kv td:first-child { color: var(--text-2); }
.delta { color: var(--text-2); }
.note { font-size: 12.5px; color: var(--text-3); margin-top: 8px; }
.summary { padding: 16px 18px; }
.summary h3 { margin-bottom: 8px; }
.summary ul { margin: 6px 0 12px; padding-left: 18px; }
.summary li { margin: 3px 0; }
.summary mark { background: color-mix(in srgb, var(--series-1) 20%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; color: var(--text-2); }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .charts { grid-template-columns: minmax(0, 1fr); } }
.chart { padding: 14px 16px 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-head .title { font-size: 13px; color: var(--text-2); }
.chart-head .value { font: 500 18px var(--mono); }
.chart .axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--text-3); margin-top: 3px; }
.hbar-row { display: grid; grid-template-columns: minmax(90px, 190px) minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 5px 0; }
.hbar-row .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.hbar-track { height: 14px; position: relative; }
.hbar { position: absolute; top: 0; bottom: 0; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar.neg { border-radius: 4px 0 0 4px; opacity: 0.75; }
.hbar-zero { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.hbar-row .val { text-align: right; font: 13px var(--mono); }
.tooltip {
  position: fixed; z-index: 50; pointer-events: none; padding: 6px 9px; border-radius: 5px;
  background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.35; max-width: 260px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.22);
}
.tooltip b { font-family: var(--mono); font-weight: 500; }

/* ---------- compare ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.picked { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.picked button { all: unset; cursor: pointer; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); }
.picked button:hover { background: var(--line-strong); color: var(--text); }
.compare-table th.bankcol { text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--text); text-align: right; min-width: 124px; }
.compare-table th.bankcol span { display: block; font: 11.5px var(--mono); color: var(--text-3); }

/* ---------- calendar ---------- */
.week { margin-top: 22px; }
.week h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }

@media (max-width: 720px) {
  .feed li { grid-template-columns: 62px minmax(0, 1fr); }
  .feed li > :last-child { grid-column: 2; justify-self: start; }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .hbar-row { grid-template-columns: 92px minmax(0, 1fr) 76px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bars .col i, .pill, .qtab, .nav a { transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
}

/* ---------- quarterly bar charts (HTML bars so the rounded ends stay crisp) ---------- */
.bars { position: relative; display: flex; gap: 2px; height: 96px; margin-top: 10px; }
.bars::after { content: ''; position: absolute; left: 0; right: 0; top: var(--zero); height: 1px; background: var(--line-strong); pointer-events: none; }
.bars .col { all: unset; position: relative; flex: 1; min-width: 0; height: 100%; cursor: pointer; }
.bars .col.none { cursor: default; }
.bars .col i { position: absolute; left: 0; right: 0; background: var(--series-1-soft); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .col i.neg { border-radius: 0 0 4px 4px; }
.bars .col:hover i, .bars .col:focus-visible i, .bars .col.sel i { background: var(--series-1); }
.bars .col:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- outlooks ---------- */
.views-table td, .forecast-table td { white-space: nowrap; }
.view { display: inline-flex; align-items: center; gap: 6px; }
.view i { font-style: normal; font-size: 11px; }
.v-positive i { color: var(--pos); }
.v-negative i { color: var(--neg); }
.v-neutral i { color: var(--text-3); font-size: 9px; }
.forecast-table td.r a { border-bottom: 1px dotted var(--line-strong); }
.forecast-table td.r a:hover { text-decoration: none; border-bottom-color: var(--text); }
.forecast-table th.r { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); }
.report-list { display: grid; gap: 16px; }
.report { padding: 20px 22px; scroll-margin-top: 76px; }
.report header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-who { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.report h3 { font-size: 22px; line-height: 1.2; }
.report h3 span { color: var(--text-2); font-style: italic; }
.report h3 span { display: block; font-size: 18px; margin-top: 2px; }
.report .sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.report-headline { font-family: var(--serif); font-size: 18px; line-height: 1.45; margin: 16px 0; max-width: 85ch; }
.stance { display: inline-block; margin-right: 10px; padding: 1px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 12px/1.7 var(--sans); vertical-align: 2px; color: var(--text-2); }
.report-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; }
@media (max-width: 800px) { .report-cols { grid-template-columns: minmax(0, 1fr); } }
.report-cols h4 { margin: 10px 0 4px; font: 600 12px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.report-cols ul { margin: 0 0 8px; padding-left: 18px; }
.report-cols li { margin: 5px 0; font-size: 14.5px; }
.report mark { background: color-mix(in srgb, var(--series-1) 18%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
.report .tags { margin-top: 12px; }
.report-forecasts h4 { margin: 12px 0 6px; font: 600 12px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.fc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 28px; }
.fc-list a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fc-list a:hover { text-decoration: none; background: var(--surface-2); }
.fc-list span { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-list b { font: 500 13.5px var(--mono); white-space: nowrap; }
.exhibits { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.exhibits li { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.exhibits a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exhibits span { color: var(--text-3); font: 12px var(--mono); white-space: nowrap; }

/* ---------- announcements (compact) ---------- */
.announcements { margin-top: 14px; padding: 12px 16px; }
.announcements h3 { font: 600 12px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.announcements ul { list-style: none; margin: 0; padding: 0; }
.announcements li { display: flex; gap: 14px; padding: 3px 0; font-size: 14px; }
.announcements .date { color: var(--text-3); font: 12.5px var(--mono); min-width: 52px; }

/* ---------- home: bubbles, league table, the wire ---------- */
:root { --up-fill: #1b7a3e; --down-fill: #b93229; --star: #b87a00; --h1: #cfe9d6; --h0: #e7e4db; --h-1: #f7d6d1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --up-fill: #2fb564; --down-fill: #ea5a4f; --star: #f5a524; --h1: #1e3d2a; --h0: #2a2d31; --h-1: #4d2623; } }
:root[data-theme="dark"] { --up-fill: #2fb564; --down-fill: #ea5a4f; --star: #f5a524; --h1: #1e3d2a; --h0: #2a2d31; --h-1: #4d2623; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-home main { max-width: none; padding: 0 0 56px; }
.wrap { width: 100%; max-width: 1360px; margin-left: auto; margin-right: auto; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
.band { margin-top: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .band { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .band.in { opacity: 1; transform: none; }
}

/* a change: the arrow gives the direction, the colour says whether it is good news */
.chg { font: 500 12.5px/1.3 var(--mono); white-space: nowrap; }
.chg.good { color: var(--up); }
.chg.bad { color: var(--down); }
.chg.flat { color: var(--text-3); }

/* segmented controls */
.seg { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.seg > button, .seg > a { all: unset; box-sizing: border-box; cursor: pointer; padding: 5px 11px; margin-left: -1px; border: 1px solid var(--line-strong); font: 500 12px/1.35 var(--mono); color: var(--text-2); white-space: nowrap; }
.seg > :first-child, .seg > .gap + * { margin-left: 0; }
.seg > button:hover, .seg > a:hover { color: var(--text); background: var(--surface-2); }
.seg > :focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; position: relative; z-index: 2; }
.seg > [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); position: relative; z-index: 1; }
.seg .gap, .pills .gap { width: 12px; }

/* the quarter in one line */
.statbar { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.sb { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 10px; min-width: 0; padding: 11px 18px 13px; border-left: 1px solid var(--line); }
.sb:first-child { border-left: 0; padding-left: 0; }
a.sb:hover { text-decoration: none; background: var(--surface); }
.sb .k { flex-basis: 100%; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb > b { font: 500 24px/1.1 var(--mono); letter-spacing: -0.03em; }
.sb > b.name { font: 600 18px/1.35 var(--sans); letter-spacing: -0.01em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb .s { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.sb .meter, .sb .split { position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px; }
.meter { display: block; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--series-1); }
.split { display: flex; gap: 2px; }
.split i { min-width: 2px; }
.split .g, .mbar .g { background: var(--up-fill); }
.split .b, .mbar .b { background: var(--down-fill); }
@media (max-width: 900px) {
  .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb:first-child { display: none; }
  .sb { border-bottom: 1px solid var(--line); padding: 9px 14px 11px; }
  .sb:nth-child(even) { border-left: 0; padding-left: 0; }
  .sb:nth-child(n+4) { border-bottom: 0; }
  .sb > b { font-size: 21px; }
  .sb .meter, .sb .split { left: 0; right: 14px; }
  .sb:nth-child(odd) .meter, .sb:nth-child(odd) .split { left: 14px; right: 0; }
}

/* the bubbles */
.bub-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding-top: 12px; padding-bottom: 12px; }
.bub-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.bub-opts label { display: inline-flex; align-items: center; gap: 8px; }
.bub-opts select { padding: 4px 8px; font: 500 12px var(--mono); letter-spacing: 0; text-transform: none; color: var(--text); border-radius: 0; }
.bub-field {
  position: relative; height: clamp(400px, calc(100vh - 300px), 780px); overflow: hidden; touch-action: pan-y;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 50% 46%, color-mix(in srgb, var(--series-1) 9%, transparent), transparent 72%),
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px) 0 0 / 64px 100%;
}
.bub {
  --c: var(--text-3); --a1: 6%; --a2: 26%;
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  overflow: hidden; text-align: center; line-height: 1; color: var(--text); cursor: grab; will-change: transform;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) var(--a1), var(--bg)) 38%, color-mix(in srgb, var(--c) var(--a2), var(--bg)) 100%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 78%, var(--bg)), 0 0 22px -8px var(--c);
}
.bub:hover, .bub:focus-visible { text-decoration: none; z-index: 3; outline: 0; box-shadow: inset 0 0 0 2px var(--text), 0 0 26px -6px var(--c); }
.dragging .bub { cursor: grabbing; }
.bub.h2 { --c: var(--up-fill); --a1: 16%; --a2: 62%; }
.bub.h1 { --c: var(--up-fill); --a1: 5%; --a2: 26%; }
.bub.h0, .bub.hx { --c: var(--text-3); --a1: 4%; --a2: 20%; }
.bub.h-1 { --c: var(--down-fill); --a1: 5%; --a2: 28%; }
.bub.h-2 { --c: var(--down-fill); --a1: 16%; --a2: 62%; }
.bub b { font: 600 clamp(8.5px, calc(var(--r) * 0.38px), 34px)/1 var(--sans); letter-spacing: -0.01em; max-width: 88%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.bub span { font: 500 clamp(8.5px, calc(var(--r) * 0.2px), 17px)/1.1 var(--mono); white-space: nowrap; }
.bub .bv { color: var(--text-2); }
.b-s .bv, .b-s .bc, .b-m .bv { display: none; }
.bub-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; }
.bub-foot .hint { font-size: 12.5px; color: var(--text-3); }
.heat-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.heat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.heat-legend i { width: 11px; height: 11px; border-radius: 50%; }
.heat-legend .h2 { background: var(--up-fill); } .heat-legend .h1 { background: color-mix(in srgb, var(--up-fill) 45%, var(--bg)); } .heat-legend .h0 { background: var(--h0); }
.heat-legend .h-1 { background: color-mix(in srgb, var(--down-fill) 45%, var(--bg)); } .heat-legend .h-2 { background: var(--down-fill); }
@media (max-width: 720px) { .bub-field { height: clamp(380px, calc(100vh - 330px), 620px); } .bub-foot .hint { flex-basis: 100%; } }

/* follow button */
.star { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 3px 5px; border-radius: 3px; color: var(--text-3); font-size: 15px; line-height: 1; flex: none; }
.star:hover { color: var(--text); background: var(--surface-2); }
.star:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.star[aria-pressed="true"] { color: var(--star); }
.star .on, .star[aria-pressed="true"] .off { display: none; }
.star[aria-pressed="true"] .on { display: inline; }
.star.labelled { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.star.labelled .on, .star.labelled .off { font: 500 13.5px var(--sans); color: var(--text); }
td.star-cell, th.star-cell { width: 34px; padding-right: 0; }

/* a coloured edge that repeats the bubble's colour */
.edge { --ec: var(--line-strong); box-shadow: inset 3px 0 0 var(--ec); }
.edge.h2 { --ec: var(--up-fill); } .edge.h1 { --ec: color-mix(in srgb, var(--up-fill) 50%, var(--bg)); }
.edge.h-1 { --ec: color-mix(in srgb, var(--down-fill) 50%, var(--bg)); } .edge.h-2 { --ec: var(--down-fill); }

/* the reader's board */
.board-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 14px 32px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--accent); }
.board-empty h2 { font: 600 12.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.board-empty p { margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pick { display: inline-flex; align-items: baseline; gap: 7px; padding: 4px 11px 4px 9px; border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; font-size: 13px; color: var(--text-2); cursor: pointer; }
.pick::before { content: '+'; font: 500 13px var(--mono); color: var(--text-3); }
.pick b { font: 500 12.5px var(--mono); color: var(--text); }
.pick:hover { background: var(--surface-2); color: var(--text); }
.pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick[aria-pressed="true"]::before { content: '✓'; color: var(--accent-ink); }
.pick[aria-pressed="true"] b { color: var(--accent-ink); }
.be-pick .field, .board-edit .field { width: min(320px, 100%); }
.board-edit { padding: 14px 16px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); }
.btiles { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.btile { flex: 0 0 252px; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 11px 14px 11px 16px; background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; }
.btile header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.btile header a { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.btile header b { font: 500 14.5px var(--mono); }
.btile header a span { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bt-main:hover { text-decoration: none; }
.bt-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.bt-fig .k { flex-basis: 100%; font-size: 11.5px; color: var(--text-3); }
.bt-fig b { font: 500 24px/1.1 var(--mono); letter-spacing: -0.03em; }
.bt-h { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.4; }
.btile footer { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.btile footer b { font: 500 12px var(--mono); color: var(--text); }
.spark { flex: none; display: block; }
.spark rect { fill: var(--line-strong); }
.spark rect.now { fill: var(--text); }
.spark rect.neg { fill: var(--down-fill); }
@media (max-width: 760px) { .board-empty { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } .pick:nth-child(n+9) { display: none; } }

/* league table */
.league td, .league th { padding: 6px 12px; }
.league .rank { width: 38px; color: var(--text-3); font: 12px var(--mono); }
.league a.bank-cell:hover { text-decoration: none; }
.league a.bank-cell:hover b { text-decoration: underline; text-underline-offset: 3px; }
.league td.hc { font: 500 12.5px var(--mono); }
.hc.h2 { background: color-mix(in srgb, var(--up-fill) 44%, transparent); }
.hc.h1 { background: color-mix(in srgb, var(--up-fill) 16%, transparent); }
.hc.h-1 { background: color-mix(in srgb, var(--down-fill) 16%, transparent); }
.hc.h-2 { background: color-mix(in srgb, var(--down-fill) 44%, transparent); }
.hc.hx { color: var(--text-3); }
.more.boxed { border: 1px solid var(--line); border-top: 0; font: 500 12px var(--mono); }
.more-auto { display: block; padding: 14px; text-align: center; font: 500 12px var(--mono); color: var(--text-3); }

/* the wire */
.wire-wrap { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
.rail { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: thin; }
.rail .section-head { margin-top: 24px; }
.rail .section-head:first-child { margin-top: 0; }
.wire { border-top: 1px solid var(--line); }
.w-day { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 18px 0 7px; border-bottom: 1px solid var(--line-strong); font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--text-3); }
.w-day:first-child { padding-top: 12px; }
.w-day b { font: 600 12.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.w { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 12px 8px 14px; border-bottom: 1px solid var(--line); }
a.w:hover { text-decoration: none; background: var(--surface); }
.w-k { font: 500 10.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.w-res .w-k, .w-lib .w-k { color: var(--text); }
.w-main { min-width: 0; }
.w-main b { font-weight: 600; }
.w-main i { font: normal 12px var(--mono); color: var(--text-3); margin-left: 8px; }
.w-line { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.w-line mark { background: none; color: inherit; }
.w-res .w-line, .w-lib .w-line { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-fig { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.w-fig b { font: 500 15px var(--mono); white-space: nowrap; }
.wire-end .note { padding: 14px 0; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: no-preference) { .w, .w-day { animation: rise 0.35s ease both; } }
@media (max-width: 900px) {
  .wire-wrap { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; order: -1; }
}
@media (max-width: 720px) {
  .w { grid-template-columns: 48px minmax(0, 1fr); gap: 4px 10px; padding-left: 12px; }
  .w-fig { grid-column: 2; flex-direction: row; align-items: baseline; gap: 10px; }
}

.movers { padding: 12px 16px 12px; }
.movers h3 { font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin: 2px 0 6px; }
.movers a + h3 { margin-top: 16px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(36px, 1fr) 62px; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.mrow:hover { text-decoration: none; }
.mrow:hover .mn { text-decoration: underline; text-underline-offset: 3px; }
.mn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn b { display: inline-block; min-width: 44px; margin-right: 8px; font: 500 12px var(--mono); color: var(--text-2); }
.mbar { height: 8px; }
.mbar i { display: block; height: 100%; }
.mrow .chg { text-align: right; }

/* ---------- compare: bars, leaders and changes ---------- */
.quick { align-items: center; }
.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 12px; margin: 4px 0 20px; }
.vcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 13px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--series-1); border-radius: 10px; }
.vcard:hover { text-decoration: none; background: var(--surface-2); }
.vcard .k { font: 600 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.vcard b { font: 500 21px/1.2 var(--serif); letter-spacing: -0.01em; }
.vcard .d { color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.cmp-legend { margin-bottom: 10px; gap: 6px 18px; }
.cmp-legend .chg + .chg { margin-left: -3px; }
.lg-bar { width: 26px; height: 6px; border-radius: 0 3px 3px 0; background: var(--series-1-soft); }
.lg-bar.lead { background: var(--series-1); }
.cmp th.bankcol { text-align: left; min-width: 148px; }
.cmp td.cmp-cell { vertical-align: top; padding: 9px 14px 7px; }
.cmp td.none { color: var(--text-3); font-family: var(--mono); }
.cmp .cv { display: block; font: 500 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp .cbar { display: block; height: 6px; margin: 6px 0 5px; }
.cmp .cbar i { display: block; height: 100%; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--series-1-soft); }
.cmp .lead .cbar i { background: var(--series-1); }
.cmp .cbar i.neg { background: var(--down-fill); }
.cmp .cd { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; min-height: 17px; }
.cmp em { font: 600 10.5px/1.5 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); background: color-mix(in srgb, var(--series-1) 20%, transparent); padding: 0 5px; border-radius: 3px; }
.cmp tr.grp > * { padding: 14px 14px 5px; border-bottom: 0; background: var(--surface); }
.cmp tr.grp th { font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.cmp td.lab { min-width: 190px; max-width: 250px; }
.cmp td.lab b { display: block; font-weight: 500; }
.cmp td.lab span { display: block; margin-top: 1px; font-size: 12px; line-height: 1.3; color: var(--text-3); }
#ranking .hbar-row { grid-template-columns: minmax(90px, 190px) minmax(0, 1fr) 168px; }
#ranking .val { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; }
#ranking .val .chg { min-width: 62px; text-align: right; }
@media (max-width: 720px) {
  .verdict { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vcard { padding: 10px 12px 11px; }
  .vcard b { font-size: 17px; }
  .vcard .d { font-size: 12.5px; }
  .cmp td.lab { min-width: 128px; max-width: 150px; }
  .cmp td.lab span { display: none; }
  .cmp th.bankcol { min-width: 124px; }
  #ranking .hbar-row { grid-template-columns: 92px minmax(0, 1fr) 76px; }
  #ranking .val .chg { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .vcard, .pick, .star, .seg > * { transition: background-color 0.12s, border-color 0.12s, color 0.12s; } }

/* long exhibit titles must shrink inside a document card instead of widening the page */
.doc > * { min-width: 0; }
.exhibits li { min-width: 0; }
.exhibits a { flex: 1 1 auto; }
@media (max-width: 720px) { .exhibits li { flex-direction: column; gap: 0; } .exhibits a { white-space: normal; } }
.summary-label { margin: 0 0 6px; font: 600 12px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.summary h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.summary h3 + h3, .summary ul + h3 { font: 600 12px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); margin: 12px 0 4px; }
.summary .note a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- ticker: the strip of fresh results under the top bar ---------- */
:root { --up: #0f6b1f; --down: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --up: #6fd08c; --down: #f28b82; } }
:root[data-theme="dark"] { --up: #6fd08c; --down: #f28b82; }

.ticker { display: flex; align-items: center; gap: 10px; padding: 0 clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--surface); height: 40px; font-size: 13.5px; }
.tk-toggle { all: unset; cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: var(--text-3); font-size: 9px; flex: none; }
.tk-toggle:hover { background: var(--surface-2); color: var(--text); }
.tk-toggle:focus-visible { outline: 2px solid var(--focus); }
.tk-label { flex: none; font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); padding-right: 10px; border-right: 1px solid var(--line-strong); }
.tk-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 40px), transparent); }
.tk-track { display: flex; width: max-content; animation: tk-scroll 240s linear infinite; }
.tk-set { display: flex; flex: none; }
.ticker:hover .tk-track, .ticker:focus-within .tk-track, .tk-paused .tk-track { animation-play-state: paused; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
.tk-still .tk-view { overflow-x: auto; scrollbar-width: none; }
.tk-still .tk-track { animation: none; }

.tk-item { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 18px; white-space: nowrap; color: var(--text-2); border-right: 1px solid var(--line); line-height: 40px; }
.tk-item:hover { text-decoration: none; color: var(--text); background: var(--surface-2); }
.tk-item b { color: var(--text); font-weight: 600; }
.tk-sym { display: none; }
.tk-q { color: var(--text-3); }
.tk-m { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.tk-m i { font-style: normal; font-size: 11.5px; }
.tk-m .up { color: var(--up); }
.tk-m .down { color: var(--down); }
.tk-tag { font: 600 10px/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; background: var(--surface-2); color: var(--text-2); align-self: center; }
.tk-new { background: var(--accent); color: var(--accent-ink); }

/* style 1 · paper: the site's own editorial voice */
.tk-paper .tk-item b { font-family: var(--serif); font-size: 15.5px; font-weight: 500; }

/* style 2 · tape: a trading-floor tape, dark in both themes, symbols instead of names */
.tk-tape { background: #0d0f12; border-bottom-color: #0d0f12; color-scheme: dark; --up: #4ade80; --down: #f87171; font-family: var(--mono); font-size: 12.5px; }
.tk-tape .tk-label { color: #9aa3ad; border-right-color: #2a2f36; }
.tk-tape .tk-toggle { color: #6b7480; }
.tk-tape .tk-toggle:hover { background: #1b1f25; color: #fff; }
.tk-tape .tk-item { border-right-color: #1f242b; color: #9aa3ad; }
.tk-tape .tk-item:hover { background: #171b20; color: #fff; }
.tk-tape .tk-item b { color: #fff; letter-spacing: 0.03em; }
.tk-tape .tk-name { display: none; }
.tk-tape .tk-sym { display: inline; }
.tk-tape .tk-q { color: #6b7480; }
.tk-tape .tk-m { color: #e6e9ec; }
.tk-tape .tk-tag { background: #1f242b; color: #c3cad1; }
.tk-tape .tk-new { background: #facc15; color: #111; }

/* style 3 · pills: calm rounded capsules on the page background */
.tk-pills { background: transparent; height: 52px; border-bottom: 0; }
.tk-pills .tk-label { border-right: 0; padding-right: 0; }
.tk-pills .tk-set { gap: 8px; padding-right: 8px; }
.tk-pills .tk-item { line-height: 1; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); align-items: center; }
.tk-pills .tk-item:hover { border-color: var(--text-3); }

@media (max-width: 720px) { .tk-label { display: none; } .ticker { gap: 4px; } }

/* ---------- library: shelves of books ---------- */
:root { --wood: #d6cfbf; --wood-edge: #bdb5a2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wood: #3b3934; --wood-edge: #24231f; } }
:root[data-theme="dark"] { --wood: #3b3934; --wood-edge: #24231f; }
.s-markets { --c0: #17446f; --c1: #2a5f93; --c2: #0f3353; }
.s-ai { --c0: #5b3a78; --c1: #76529a; --c2: #45295e; }
.s-chips { --c0: #1f5f63; --c1: #2f7c81; --c2: #154649; }
.s-robotics { --c0: #8a4b24; --c1: #a66236; --c2: #6d3817; }
.s-energy { --c0: #55661c; --c1: #6f8229; --c2: #414e13; }
.s-economy { --c0: #7a5a12; --c1: #94701f; --c2: #5e440b; }
.s-crypto { --c0: #8a2f55; --c1: #a5426b; --c2: #6c2141; }
.t0 { --c: var(--c0); } .t1 { --c: var(--c1); } .t2 { --c: var(--c2); }

.bookshelf { margin-top: 30px; }
.bookshelf .section-head p { margin-top: 2px; }
.shelf-row {
  display: flex; align-items: flex-end; gap: 3px; min-height: 304px; padding: 16px 18px 0; overflow-x: auto; scrollbar-width: thin;
  border-bottom: 12px solid var(--wood); border-radius: 0 0 3px 3px; box-shadow: 0 2px 0 var(--wood-edge), 0 14px 18px -14px rgb(0 0 0 / 0.45);
}
.spine {
  flex: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 0 9px; border-radius: 3px 3px 1px 1px; background: var(--c); color: #fff;
  box-shadow: inset 4px 0 5px rgb(255 255 255 / 0.13), inset -4px 0 6px rgb(0 0 0 / 0.28);
}
.spine:hover, .spine:focus-visible { text-decoration: none; transform: translateY(-12px); }
.spine::after { content: ''; position: absolute; left: 0; right: 0; bottom: 30px; height: 1px; background: rgb(255 255 255 / 0.38); }
.sp-pub { align-self: stretch; font: 600 9px/1.2 var(--sans); letter-spacing: 0.03em; text-transform: uppercase; text-align: center; padding: 11px 3px 8px; border-bottom: 1px solid rgb(255 255 255 / 0.38); }
.sp-title { flex: 1; min-height: 0; overflow: hidden; writing-mode: vertical-rl; font: 500 13px/16px var(--serif); letter-spacing: 0.01em; padding: 2px 0 8px; }
.sp-year { font: 500 9.5px/1 var(--mono); opacity: 0.85; }
.link-only { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, #8b8b8b) 0 7px, color-mix(in srgb, var(--c) 38%, #8b8b8b) 7px 14px); }

.cover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; padding-top: 4px; }
.cover {
  aspect-ratio: 2 / 3; display: flex; flex-direction: column; padding: 16px 15px 14px 20px; border-radius: 3px 7px 7px 3px; background: var(--c); color: #fff;
  box-shadow: inset 7px 0 8px -4px rgb(0 0 0 / 0.4), inset 9px 0 0 -8px rgb(255 255 255 / 0.3), 0 10px 18px -10px rgb(0 0 0 / 0.5);
}
.cover:hover, .cover:focus-visible { text-decoration: none; transform: translateY(-5px); }
.cv-pub { font: 600 10.5px/1.25 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.cv-title { margin-top: auto; font: 500 21px/1.12 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cv-sub { margin-top: 6px; font: italic 400 13.5px/1.25 var(--serif); opacity: 0.9; }
.cv-foot { margin-top: 14px; padding-top: 9px; border-top: 1px solid rgb(255 255 255 / 0.35); font: 11px var(--mono); opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) { .spine, .cover { transition: transform 0.16s ease; } }

/* ---------- an open book ---------- */
.book {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); background: var(--surface);
  border: 1px solid var(--line-strong); border-top: 5px solid var(--c0); border-radius: 4px 4px 10px 10px; box-shadow: 0 22px 40px -28px rgb(0 0 0 / 0.5);
}
.leaf { padding: clamp(22px, 3.2vw, 44px); min-width: 0; }
.leaf-left { border-right: 1px solid var(--line); background-image: linear-gradient(90deg, transparent calc(100% - 30px), rgb(0 0 0 / 0.055)); }
.leaf-right { background-image: linear-gradient(90deg, rgb(0 0 0 / 0.055), transparent 30px); }
.book-shelf { margin: 0 0 18px; font: 600 11.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c1); }
.book-pub { margin: 0 0 6px; font: 600 12.5px var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); }
.book h1 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.08; }
.book-sub { margin: 8px 0 0; font: italic 400 18px/1.3 var(--serif); color: var(--text-2); }
.book-meta { margin: 12px 0 20px; color: var(--text-3); font-size: 13px; }
.book h4 { margin: 26px 0 8px; font: 600 12px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.leaf-right h4:first-of-type { margin-top: 22px; }
.book-numbers { display: grid; gap: 0; }
.book-numbers a { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.book-numbers a:hover { text-decoration: none; background: var(--surface-2); }
.book-numbers b { font: 500 17px var(--mono); white-space: nowrap; }
.book-numbers span { color: var(--text-2); font-size: 13.5px; line-height: 1.35; }
.book .tags { margin-top: 20px; }
.book-lede { margin: 0; font: 400 clamp(19px, 2vw, 23px)/1.42 var(--serif); }
.book ul { margin: 0; padding-left: 18px; }
.book li { margin: 7px 0; font-size: 15px; line-height: 1.5; }
.book mark { background: color-mix(in srgb, var(--c1) 22%, transparent); color: inherit; padding: 0 2px; border-radius: 2px; }
.book-turn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.book-turn a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.book-turn a:hover { text-decoration: none; background: var(--surface-2); border-color: var(--line-strong); }
.book-turn a.next { text-align: right; }
.book-turn span { display: block; font-size: 12.5px; color: var(--text-3); }
.book-turn b { font-weight: 500; }
@media (max-width: 860px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .leaf-left { border-right: 0; border-bottom: 1px solid var(--line); background-image: none; }
  .leaf-right { background-image: none; }
  .book-turn { grid-template-columns: minmax(0, 1fr); }
  .book-turn a.next { text-align: left; }
}

.shelves-wrap.paired { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.shelves-wrap.paired .bookshelf.wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .shelves-wrap.paired { grid-template-columns: minmax(0, 1fr); } }

/* ---------- library, default look: cards led by one number ---------- */
.s-markets { --ca: #17446f; } .s-economy { --ca: #7a5a12; } .s-ai { --ca: #5b3a78; } .s-chips { --ca: #1f5f63; }
.s-robotics { --ca: #8a4b24; } .s-energy { --ca: #55661c; } .s-crypto { --ca: #8a2f55; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .s-markets { --ca: #9ec5f4; } :root:not([data-theme="light"]) .s-economy { --ca: #e3c07a; }
  :root:not([data-theme="light"]) .s-ai { --ca: #c9a9e6; } :root:not([data-theme="light"]) .s-chips { --ca: #8fd0d4; }
  :root:not([data-theme="light"]) .s-robotics { --ca: #f0b48a; } :root:not([data-theme="light"]) .s-energy { --ca: #c3d98a; }
  :root:not([data-theme="light"]) .s-crypto { --ca: #f0a3c2; }
}
:root[data-theme="dark"] .s-markets { --ca: #9ec5f4; } :root[data-theme="dark"] .s-economy { --ca: #e3c07a; }
:root[data-theme="dark"] .s-ai { --ca: #c9a9e6; } :root[data-theme="dark"] .s-chips { --ca: #8fd0d4; }
:root[data-theme="dark"] .s-robotics { --ca: #f0b48a; } :root[data-theme="dark"] .s-energy { --ca: #c3d98a; }
:root[data-theme="dark"] .s-crypto { --ca: #f0a3c2; }

.lib-tabs { margin-bottom: 4px; }
.lib-shelf, .bookshelf { margin-top: 38px; }
.lib-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.lib-head h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.lib-head h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--ca); flex: none; }
.lib-head p { margin: 3px 0 0 20px; color: var(--text-2); font-size: 14px; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lcard {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.lcard:hover, .lcard:focus-visible { text-decoration: none; border-color: var(--ca); box-shadow: 0 14px 28px -20px rgb(0 0 0 / 0.45); transform: translateY(-2px); }
.lc-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.lc-pub { font: 600 11.5px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ca); }
.lc-year { font: 12px var(--mono); color: var(--text-3); white-space: nowrap; }
.lc-title { font: 500 20px/1.2 var(--serif); letter-spacing: -0.01em; }
.lc-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 0 2px; border-top: 1px solid var(--line); margin-top: 2px; }
.lc-stat b { font: 500 30px/1.05 var(--mono); letter-spacing: -0.02em; }
.lc-stat b.word { font: italic 500 30px/1.05 var(--serif); letter-spacing: 0; }
.lc-stat span { color: var(--text-2); font-size: 13px; line-height: 1.35; }
.lc-head { color: var(--text-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc-head mark { background: none; color: inherit; }
.lc-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--text-3); }
.lc-go { color: var(--ca); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) { .lcard { transition: transform 0.14s ease, border-color 0.14s, box-shadow 0.14s; } }

.lib-also { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13.5px; color: var(--text-2); }
.lib-also span { font: 600 11px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); align-self: center; }
.lib-also a { border-bottom: 1px dotted var(--line-strong); }
.lib-also a:hover { text-decoration: none; color: var(--text); border-bottom-color: var(--text); }

/* ---------- library as a list ---------- */
.lib-index { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.lrow { display: grid; grid-template-columns: 124px minmax(0, 1fr) minmax(150px, 230px) 56px; gap: 6px 20px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { text-decoration: none; background: var(--surface-2); }
.lr-pub { font: 600 11.5px/1.3 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ca); }
.lr-main { display: flex; flex-direction: column; min-width: 0; }
.lr-main b { font: 500 17px/1.25 var(--serif); }
.lr-main span { color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-main mark { background: none; color: inherit; }
.lr-stat { display: flex; flex-direction: column; min-width: 0; }
.lr-stat b { font: 500 16px var(--mono); }
.lr-stat span { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-meta { text-align: right; font: 12px var(--mono); color: var(--text-3); }
@media (max-width: 760px) {
  .lrow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .lr-meta { text-align: left; }
  .lib-head p { margin-left: 0; }
}

/* ---------- firm icons ---------- */
.logo { width: 22px; height: 22px; border-radius: 5px; background: #fff; object-fit: contain; flex: none; box-shadow: 0 0 0 1px var(--line-strong); }
.logo.mono, .compare-table th.bankcol span.logo.mono, .btile header a span.logo.mono { display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text-2); font: 600 9.5px/1 var(--mono); letter-spacing: 0; }
.logo.sm { width: 18px; height: 18px; border-radius: 4px; }
.logo.md { width: 28px; height: 28px; border-radius: 6px; }
.logo.lg { width: 42px; height: 42px; border-radius: 9px; }
.named { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.named b { font-weight: inherit; }
.named-h { display: flex; align-items: center; gap: 14px; }
.league a.named:hover { text-decoration: none; }
.league a.named:hover .bank-cell b { text-decoration: underline; text-underline-offset: 3px; }
.btile header a { align-items: center; }
.bub .logo { width: clamp(12px, calc(var(--r) * 0.5px), 46px); height: clamp(12px, calc(var(--r) * 0.5px), 46px); border-radius: 24%; box-shadow: none; margin-bottom: 1px; pointer-events: none; }
.b-s .logo { display: none; }
.w-k { display: flex; align-items: center; }
.w-cover { width: 30px; height: 40px; object-fit: cover; object-position: top; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-strong); }

/* ---------- dates everyone watches ---------- */
.tagk { font: 600 10px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--accent); color: var(--text); }
.feed li.macro .date { color: var(--text); }
.feed li.macro { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* ---------- sector pulse ---------- */
.sector { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.sx { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px 10px; background: var(--surface); border: 1px solid var(--line); }
.sx .k { font: 500 10.5px/1.35 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); min-height: 2.7em; }
.sx-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.sx-fig b { font: 500 22px/1.1 var(--mono); letter-spacing: -0.03em; }
.sx-bars { display: flex; align-items: flex-end; gap: 3px; height: 52px; margin-top: 4px; }
.sx-bars i { flex: 1; min-height: 2px; background: var(--line-strong); }
.sx-bars i:hover { background: var(--text-2); }
.sx-bars i.now { background: var(--series-1); box-shadow: 0 0 14px -2px var(--series-1); }
.sx-bars i.neg { background: var(--down-fill); }
.sx-line { position: relative; display: block; height: 52px; margin: 4px 4px 0; }
.sx-line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sx-line polyline { fill: none; stroke: var(--text-2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sx-line i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.sx-line i::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 2px var(--surface); }
.sx-line i.now::after { inset: 2.5px; background: var(--series-1); box-shadow: 0 0 0 2px var(--surface), 0 0 12px 1px var(--series-1); }
.sx-foot { display: flex; justify-content: space-between; gap: 6px; font: 10.5px var(--mono); color: var(--text-3); }

/* ---------- library: covers standing on a shelf ---------- */
.lib-covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 36px 26px; align-items: start; }
.cov { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cov:hover { text-decoration: none; }
.cov-art { position: relative; height: 244px; display: flex; align-items: flex-end; justify-content: center; padding: 0 8px; perspective: 800px; border-bottom: 3px solid var(--line-strong); box-shadow: 0 12px 16px -14px var(--ca); }
.cov-sheet { position: relative; display: block; transform-origin: 50% 100%; box-shadow: 0 1px 0 rgb(255 255 255 / 0.05), 5px 2px 12px -6px rgb(0 0 0 / 0.7); }
.cov-sheet img { display: block; width: auto; height: auto; max-width: 100%; max-height: 230px; }
.cov-sheet::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgb(255 255 255 / 0.3), transparent 58%); mix-blend-mode: screen; }
.cov:hover .cov-sheet, .cov:focus-visible .cov-sheet {
  transform: translateY(-16px) scale(1.06) rotateX(var(--rx, 3deg)) rotateY(var(--ry, -6deg));
  box-shadow: 0 30px 36px -18px rgb(0 0 0 / 0.8), 0 0 0 1px color-mix(in srgb, var(--ca) 70%, transparent), 0 0 46px -8px var(--ca);
}
.cov:hover .cov-sheet::after { opacity: 1; }
.cov:hover .cov-info > b { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .cov-sheet { transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s; } .cov-sheet::after { transition: opacity 0.2s; } }
.cov-made { display: flex; flex-direction: column; gap: 10px; width: 158px; height: 224px; padding: 14px 13px; color: #fff; text-align: left; background: linear-gradient(160deg, color-mix(in srgb, var(--ca) 62%, #0a0b0d), color-mix(in srgb, var(--ca) 24%, #0a0b0d)); }
.cov-made i { font: 600 10px/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.cov-made b { font: 500 16.5px/1.16 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cov-made em { margin-top: auto; font: normal 11px var(--mono); opacity: 0.75; }
.cov-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cov-info > b { font: 600 14px/1.25 var(--sans); }
.cov-stat { display: flex; flex-direction: column; margin-top: 4px; }
.cov-stat b { font: 500 17px/1.2 var(--mono); }
.cov-stat span { font-size: 12px; line-height: 1.3; color: var(--text-3); }
.lib-strip { display: flex; gap: 24px; overflow-x: auto; padding: 24px 6px 12px; scrollbar-width: thin; }
.lib-strip .cov { flex: 0 0 148px; }
.lib-strip .cov-art { height: 206px; }
.lib-strip .cov-sheet img { max-height: 192px; }
.lib-strip .cov-stat { display: none; }
.book-cover { display: block; width: fit-content; margin-bottom: 20px; }
.book-cover img { display: block; max-width: 168px; max-height: 236px; box-shadow: 0 18px 28px -16px rgb(0 0 0 / 0.7), 0 0 0 1px var(--line-strong); }

/* ---------- alerts, install, what is new ---------- */
.alert-btn, .seg > .alert-btn, .alert-note { display: none; }
.has-alerts .alert-btn, .has-alerts .seg > .alert-btn { display: inline-flex; align-items: center; gap: 7px; }
.has-alerts .alert-note { display: inline; }
.alert-btn svg { color: #2aabee; flex: none; }
#install { margin-left: 0; }
.since { display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 13.5px; color: var(--text-2); }
.since b { color: var(--text); font-weight: 600; }
.since i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px var(--accent); flex: none; }

/* ---------- company reports: a sheet of paper with the firm's icon ---------- */
.cov[class*="k-"] { --ca: var(--k); }
.logo.xl { width: 46px; height: 46px; border-radius: 10px; }
.cov-doc { position: relative; display: flex; flex-direction: column; gap: 8px; width: 158px; height: 224px; padding: 22px 14px 12px; text-align: left; background: #fbfaf7; color: #14161a; border-top: 5px solid var(--ca); }
.cov-doc .logo { box-shadow: 0 0 0 1px #d9d6cd; }
.cov-doc b { margin-top: 6px; font: 600 14px/1.2 var(--sans); overflow-wrap: anywhere; }
.cov-doc i { font: italic 400 14px/1.25 var(--serif); color: #4a4d55; }
.cov-doc em { margin-top: auto; padding-top: 8px; border-top: 1px solid #dedbd2; font: normal 10.5px var(--mono); color: #6b6e76; }
.cov-doc::after { content: ''; position: absolute; left: 14px; right: 14px; top: 132px; height: 44px; background: repeating-linear-gradient(#e7e4db 0 2px, transparent 2px 9px); opacity: 0.9; }
.icon-btn[hidden] { display: none; }

/* a long figure in a report must wrap on a narrow phone instead of widening the page */
@media (max-width: 480px) {
  .book-numbers a { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .book-numbers b { white-space: normal; }
}

/* ====================================================================================
   Desk: the look of the whole site. Sober surfaces, serif headlines, logos first,
   colour kept for the posters of results. Dark unless the reader picks light.
   ==================================================================================== */
:root {
  --bg: #f4f2ec; --surface: #fcfbf8; --surface-2: #ece9e1; --line: #dedad0; --line-strong: #c9c4b7;
  --text: #0b0b0c; --text-2: #4f4d48; --text-3: #66645e;
  --accent: #0b0b0c; --accent-ink: #f4f2ec; --series-1: #0b0b0c; --series-1-soft: #c9c4b7; --focus: #0b0b0c; --star: #946600;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 10px; --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.3, 1.45, 0.5, 1);
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --surface: #131315; --surface-2: #1a1a1d; --line: #26262a; --line-strong: #3a3a40;
  --text: #f2f0eb; --text-2: #a8a59d; --text-3: #8b887f;
  --accent: #f2f0eb; --accent-ink: #0b0b0c; --series-1: #f2f0eb; --series-1-soft: #3a3a40; --focus: #f2f0eb; --star: #e8c46a;
  --up: #5fd38d; --down: #ff7a6b;
}
body { font: 15px/1.5 var(--sans); background: var(--bg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h3 { font-size: 22px; }
.eyebrow { margin: 0; font: 500 11.5px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.live { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--up-fill); vertical-align: 1px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up-fill) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: no-preference) { .live { animation: ping 2.2s ease-out infinite; } }

/* top bar */
.topbar { gap: 20px; padding: 12px clamp(16px, 3.4vw, 40px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand-name { font: 600 16px var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.brand-name b { font: italic 400 21px/1 var(--serif); margin-left: 3px; letter-spacing: 0; }
.nav { gap: 2px; }
.nav a { padding: 6px 11px; border-radius: 8px; font: 400 14px var(--sans); color: var(--text-2); }
.nav a:hover { background: none; color: var(--text); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.icon-btn { border-radius: 10px; border-color: var(--line); }
.is-home #ticker { display: none; }
.tk-item b, .tk-paper .tk-item b { font: 500 13.5px var(--sans); }
.footer { font: 11.5px var(--mono); }

/* shared pieces */
.page-head h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 0.98; }
.page-head p { font-size: 15.5px; }
.section-head { align-items: baseline; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1; }
.rail .section-head h2 { font-size: 26px; }
.rail .section-head { margin-bottom: 12px; }
.lib-head h2 { font-size: clamp(26px, 3vw, 36px); }
.band, .bubbles { margin-top: clamp(44px, 6vw, 80px); }
.panel, .table-wrap, .lib-index { border-radius: 14px; }
.btile, .sx, .vcard, .lcard, .board-edit, .board-empty, .doc, .chart, .kpi { border-radius: 16px; }
.btile:hover, .sx:hover, .vcard:hover, .lcard:hover { border-color: var(--line-strong); }
.btn, select, .field { border-radius: 10px; border-color: var(--line); }
.btn { border-radius: 999px; padding: 7px 14px; }
.btn.primary { border-color: var(--accent); }
.pill { border-color: var(--line); font: 500 12.5px/1.4 var(--mono); padding: 5px 12px; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg { gap: 6px; }
.seg > button, .seg > a { margin-left: 0; padding: 6px 12px; border-radius: 999px; border-color: var(--line); font: 500 12.5px/1.35 var(--mono); }
.seg .gap, .pills .gap { width: 6px; }
.pick { border-radius: 999px; border-color: var(--line); }
.picked { border-radius: 999px; }
.star.labelled { border-radius: 999px; border-color: var(--text); background: none; padding: 7px 14px; }
.star.labelled[aria-pressed="true"] { background: var(--text); }
.star.labelled[aria-pressed="true"] .on, .star.labelled[aria-pressed="true"] > span:first-child { color: var(--bg); }
.logo { border-radius: 28%; box-shadow: 0 0 0 1px var(--line); }
.logo.sm, .logo.md, .logo.lg, .logo.xl { border-radius: 28%; }
.logo.lg { width: 52px; height: 52px; }
.vcard { border-top-width: 1px; }
.vcard b { font: 400 26px/1.1 var(--serif); letter-spacing: -0.01em; }
.qtab { border-radius: 12px; }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; background: var(--surface); }
thead .sticky-col { background: var(--surface); }
.league tbody tr.link:hover td:first-child { box-shadow: inset 2px 0 0 var(--text); }
.w { position: relative; }
.w.fresh::before { content: ''; position: absolute; left: -10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--up-fill); }
.since i { background: var(--up-fill); box-shadow: none; }
.since { background: var(--surface); border-radius: 12px 12px 0 0; }
.w-go { font: 500 12px var(--mono); color: var(--text-2); white-space: nowrap; }
.bub-field { height: clamp(380px, 62vh, 620px); }
.summary h3 { font-size: 26px; line-height: 1.15; }
.report-headline { font-size: 24px; line-height: 1.25; }
.lc-title { font-size: 25px; line-height: 1.08; }
.lr-main b { font-size: 20px; }
.cov-info > b { font: 400 21px/1.1 var(--serif); letter-spacing: -0.01em; }
.book-lede { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; }
.board-empty { box-shadow: none; }
.board-empty h2 { font: 400 30px/1 var(--serif); letter-spacing: -0.015em; text-transform: none; }
@media (max-width: 720px) {
  .bub-bar { flex-wrap: nowrap; overflow-x: auto; gap: 12px; scrollbar-width: none; }
  .bub-bar::-webkit-scrollbar { display: none; }
  .bub-bar .seg, .bub-opts { flex-wrap: nowrap; flex: none; }
  .bub-opts label { white-space: nowrap; }
}

/* ---------- home: the opening, with the wall of firms ---------- */
.open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding-top: clamp(30px, 5.4vw, 76px); padding-bottom: clamp(26px, 4vw, 54px); }
.open h1 { margin: 14px 0 0; font-size: clamp(46px, 7.4vw, 104px); line-height: 0.94; letter-spacing: -0.025em; }
.open h1 em { font-style: italic; color: var(--text-2); }
.say { margin: 20px 0 0; max-width: 44ch; color: var(--text-2); font-size: clamp(16px, 1.5vw, 18px); }
.facts { display: flex; flex-wrap: wrap; row-gap: 14px; margin-top: 28px; border-top: 1px solid var(--line); }
.facts > * { padding: 14px 20px 0 0; margin-right: 20px; border-right: 1px solid var(--line); min-width: 0; }
.facts > :last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts b { display: block; margin-top: 2px; font: 500 clamp(21px, 2.5vw, 29px)/1.1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts b.name { font: 400 clamp(22px, 2.6vw, 30px)/1.1 var(--serif); letter-spacing: -0.01em; max-width: 13ch; overflow: hidden; text-overflow: ellipsis; }
.facts b .chg { margin-left: 6px; letter-spacing: 0; }
.facts a:hover { text-decoration: none; } .facts a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.wall button { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: transform 0.35s var(--spring), border-color 0.2s, background 0.2s; }
.wall button .logo { width: 58%; height: 58%; border-radius: 26%; box-shadow: none; }
.wall button i { position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.wall .up i { background: var(--up-fill); } .wall .down i { background: var(--down-fill); }
.wall button:hover, .wall button:focus-visible { transform: scale(1.14); z-index: 2; border-color: var(--line-strong); background: var(--surface-2); }
.wall button:active { transform: scale(0.95); }

/* the tape: every big firm passing by */
.tape { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape > div { display: flex; width: max-content; animation: tape 200s linear infinite; }
.tape:hover > div, .tape:focus-within > div { animation-play-state: paused; }
.tape button { display: flex; align-items: center; gap: 9px; padding: 11px 20px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; font: 500 13.5px var(--mono); white-space: nowrap; }
.tape button:hover { background: var(--surface); }
.tape button > span:not(.chg):not(.logo) { color: var(--text-2); }
@keyframes tape { to { transform: translateX(-50%); } }

/* posters: one bold sheet per result */
.posters { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px clamp(16px, 3vw, 32px) 22px; scrollbar-width: none; }
.posters::-webkit-scrollbar { display: none; }
.poster { position: relative; flex: 0 0 min(300px, 78vw); height: 400px; scroll-snap-align: center; display: flex; flex-direction: column; padding: 20px; border: 0; border-radius: 6px; background: var(--pb); color: var(--pi); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: transform 0.4s var(--ease); }
.poster:hover, .poster:focus-visible { transform: translateY(-8px) rotate(-0.6deg); }
.poster > * { position: relative; }
.poster .p-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.poster .p-top span { display: flex; align-items: center; gap: 8px; }
.poster .logo { width: 24px; height: 24px; box-shadow: none; }
.poster .logo.mono { background: color-mix(in srgb, var(--pi) 16%, transparent); color: var(--pi); }
.poster .p-num { display: block; margin-top: 22px; font: 600 clamp(58px, 16vw, 84px)/0.88 var(--sans); letter-spacing: -0.05em; white-space: nowrap; }
.poster .p-sub { display: block; margin-top: 12px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.poster .p-name { display: block; margin-top: auto; font: 400 34px/1 var(--serif); letter-spacing: -0.02em; }
.poster .p-line { margin-top: 8px; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster .p-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; display: flex; align-items: flex-end; opacity: 0.13; }
.poster .p-bars i { flex: 1; background: var(--pi); }

/* the shelf: real books, standing, that turn to face the reader */
.titles { overflow: hidden; white-space: nowrap; font: italic 400 clamp(26px, 3.6vw, 44px)/1.2 var(--serif); color: var(--text-3); border-top: 1px solid var(--line); padding: 14px 0 4px; mask-image: linear-gradient(90deg, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); }
.titles span { margin-right: 44px; transition: color 0.3s; } .titles span.on { color: var(--text); }
.bshelf { display: flex; align-items: flex-end; gap: clamp(18px, 3vw, 40px); overflow-x: auto; padding: 46px clamp(16px, 3vw, 32px) 0; scrollbar-width: none; perspective: 1400px; border-bottom: 10px solid var(--surface-2); }
.bshelf::-webkit-scrollbar { display: none; }
.bk3d { --w: 148px; --h: 206px; --d: 26px; position: relative; flex: 0 0 var(--w); width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateY(-32deg); transition: transform 0.7s var(--ease); }
.bk3d:hover, .bk3d:focus-visible { transform: rotateY(0deg) translateY(-14px) scale(1.04); outline: 0; }
.bk3d img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0 3px 3px 0; transform: translateZ(calc(var(--d) / 2)); box-shadow: inset 4px 0 6px -3px rgb(0 0 0 / 0.5); }
.bk3d::before { content: ''; position: absolute; top: 3px; left: 0; width: var(--d); height: calc(var(--h) - 6px); transform: translateX(calc(var(--w) - var(--d) / 2 - 3px)) rotateY(90deg); background: repeating-linear-gradient(90deg, #f4f1e8 0 1px, #dcd8cc 1px 2px); }
.bk3d::after { content: ''; position: absolute; inset: 0; border-radius: 0 3px 3px 0; transform: translateZ(calc(var(--d) / -2)); background: #1c1c1f; box-shadow: -14px 6px 30px 4px rgb(0 0 0 / 0.45); }

/* ---------- a firm at a glance: the sheet that rises from the bottom ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.fsheet { position: fixed; left: 50%; bottom: 0; z-index: 41; width: min(520px, 100%); max-height: 92vh; overflow-y: auto; translate: -50% 104%; padding: 10px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; outline: 0; transition: translate 0.5s var(--spring); touch-action: pan-y; visibility: hidden; }
.sheet-open .scrim { opacity: 1; pointer-events: auto; }
.sheet-open .fsheet { translate: -50% 0; visibility: visible; }
.fsheet .grab { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 2px; background: var(--line-strong); }
.fsheet header { display: flex; align-items: center; gap: 12px; }
.fsheet header > div { min-width: 0; margin-right: auto; }
.fsheet h2 { margin: 0; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.fsheet header > div span { font: 12px var(--mono); color: var(--text-3); }
.fsheet .qs { display: flex; gap: 6px; margin: 18px 0 6px; overflow-x: auto; scrollbar-width: none; }
.fsheet .qs button { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; cursor: pointer; font: 500 12.5px var(--mono); color: var(--text-2); transition: background 0.2s, color 0.2s; }
.fsheet .qs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.fsheet .qs button:disabled { opacity: 0.4; cursor: default; }
.fsheet .figure { padding: 16px 0 6px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fsheet .figure b { display: block; font: 600 clamp(52px, 15vw, 76px)/0.95 var(--sans); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.fsheet .figure span { font: 500 13px var(--mono); color: var(--text-2); }
.fsheet .mini { display: flex; align-items: flex-end; gap: 6px; height: 62px; margin: 10px 0 16px; }
.fsheet .mini i { flex: 1; min-height: 3px; border-radius: 3px; background: var(--line-strong); cursor: pointer; transition: background 0.25s; }
.fsheet .mini i.neg { background: var(--down-fill); }
.fsheet .mini i.on { background: var(--text); }
.fsheet p { margin: 0 0 14px; color: var(--text-2); }
.fsheet .docs { border-top: 1px solid var(--line); }
.fsheet .docs a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.fsheet .docs a span { color: var(--text-3); font: 13px var(--mono); white-space: nowrap; }
.fsheet .docs a:hover { text-decoration: none; } .fsheet .docs a:hover span { color: var(--text); }
.fsheet .docs a svg { flex: none; }

@media (max-width: 860px) {
  .open { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } .wall button:nth-child(n+25) { display: none; }
  .facts > * { padding-right: 16px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tape { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .tape > div { animation: none; }
  .fsheet, .bk3d, .poster, .wall button { transition: none; }
}

/* ---------- Telegram, in plain sight ---------- */
.tg { flex: none; display: block; }
.tg-top, .tg-cta, .tg-band { display: none; }
.has-alerts .tg-top { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border: 1px solid var(--line); border-radius: 999px; font: 500 13.5px var(--sans); white-space: nowrap; }
.has-alerts .tg-top:hover { text-decoration: none; border-color: #2aabee; background: var(--surface); }
.has-alerts .tg-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 9px 16px 9px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; }
.has-alerts .tg-cta:hover { text-decoration: none; border-color: #2aabee; }
.tg-cta i { font-style: normal; color: var(--text-3); transition: transform 0.2s; } .tg-cta:hover i { transform: translateX(3px); color: var(--text); }
.has-alerts .tg-band { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding-top: clamp(26px, 4vw, 48px); padding-bottom: clamp(26px, 4vw, 48px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tg-band h2 { margin: 12px 0 0; font-size: clamp(36px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.02em; }
.tg-points { list-style: none; margin: 18px 0 0; padding: 0; color: var(--text-2); }
.tg-points li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.tg-points li::before { content: '✓'; position: absolute; left: 2px; color: #2aabee; font-weight: 600; }
.tg-go { display: inline-flex; align-items: center; gap: 11px; margin-top: 22px; padding: 11px 22px 11px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px; transition: transform 0.25s var(--spring); }
.tg-go:hover { text-decoration: none; transform: translateY(-2px); } .tg-go:active { transform: scale(0.97); }
.tg-film { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0b0b0c; }
.tg-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-bar { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid #26262a; background: #131315; }
.film-bar button { padding: 6px 13px; border: 0; border-radius: 999px; background: #26262a; color: #f2f0eb; font: 500 12.5px var(--mono); cursor: pointer; }
.film-bar button:hover { background: #3a3a40; }
.film-bar button[aria-pressed="true"] { background: #f2f0eb; color: #0b0b0c; }
.tg-line { display: inline-flex; align-items: center; gap: 8px; color: inherit !important; font: inherit !important; }
@media (max-width: 860px) { .has-alerts .tg-band { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .has-alerts .tg-top { padding: 6px; } .tg-top span { display: none; } .has-alerts .tg-cta { align-items: flex-start; border-radius: 16px; } }

/* ---------- QuarterFile: the mark and the name ---------- */
.brand { gap: 9px; }
.brand-q { width: 24px; height: 24px; flex: none; }
.brand-name { font: 400 18px var(--sans); letter-spacing: -0.03em; }
.brand-name b { font: 700 18px var(--sans); margin-left: 0; letter-spacing: -0.03em; }
.bub-opts select { max-width: 150px; }

/* ---------------------------------------------------------------- the read-through, peers, sharing */
.vd { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.02em; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.vd.good { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.vd.bad { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); }
.vd.mid { background: var(--surface-2); color: var(--text); }
.vd.flat { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
.read { margin-top: 26px; }
.read .section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.read-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.rd { padding: 18px 20px 14px; min-width: 0; }
.rd h3 { font: 400 25px/1.1 var(--serif); letter-spacing: -0.01em; }
.rd-sub { margin: 4px 0 12px; color: var(--text-3); font-size: 13px; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rd-table th { padding: 0 0 6px 10px; font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); text-align: left; background: none; border: 0; }
.rd-table th.r, .rd-table td.r { text-align: right; }
.rd-table td { padding: 9px 0 9px 10px; border-top: 1px solid var(--line); vertical-align: middle; background: none; }
.rd-table td:first-child, .rd-table th:first-child { padding-left: 0; }
.rd-table td.num { white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.rd-table td.faint { color: var(--text-3); }
.rd-p { display: block; color: var(--text-3); font: 500 11px var(--mono); letter-spacing: 0.04em; margin-top: 1px; }
.rd-changes { list-style: none; margin: 0; padding: 0; }
.rd-changes li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.4; }
.rd-k { align-self: start; margin-top: 3px; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.rd-was { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; }
.read .note a, .peers + .note a { text-decoration: underline; text-underline-offset: 2px; }
.peer-rank { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; color: var(--text-2); }
.peer-rank b { font: 400 22px/1 var(--serif); color: var(--text); margin-right: 4px; }
.peers tr.me td { background: var(--surface-2); }
.peers tr.me td:first-child { box-shadow: inset 3px 0 0 var(--text); }
.peers td a { color: inherit; }
.peers td.best .chg, .peers td.best .num { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.poster .p-flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.poster .p-flags i { font: 500 10px var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--pi); color: var(--pb); }
.moves-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.moves-grid > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.moves-grid .eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.dot.good { background: var(--up); } .dot.bad { background: var(--down); }
.moves-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.moves-list button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: none; color: inherit; font: 500 12px var(--mono); cursor: pointer; }
.moves-list button:hover { border-color: var(--line-strong); background: var(--surface-2); }
dialog.share { width: min(560px, calc(100vw - 28px)); padding: 22px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text); }
dialog.share::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
dialog.share h2 { font: 400 30px/1 var(--serif); margin: 0 0 14px; }
dialog.share form { position: absolute; top: 12px; right: 12px; margin: 0; }
dialog.share .x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.share-pic { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.share-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--surface-2); }
.share-text { margin: 12px 0; color: var(--text-2); font-size: 14.5px; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 13px var(--mono); }
.share-to { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* On a phone, a row of the read-through becomes two lines: the measure, then its figures. */
@media (max-width: 560px) {
  .rd { padding: 16px 16px 10px; }
  .rd-table, .rd-table tbody { display: block; }
  .rd-table thead { display: none; }
  .rd-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
  .rd-table td { padding: 0; border: 0; text-align: left; }
  .rd-table td:first-child { flex: 1 0 100%; }
  .rd-table td.num { white-space: normal; }
  .rd-table td[data-l]::before { content: attr(data-l) ' '; color: var(--text-3); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
  .rd-table td:last-child { margin-left: auto; }
  .rd-was { display: inline; margin-left: 6px; }
  .rd-changes li { grid-template-columns: 1fr; gap: 2px; }
  .peer-rank { gap: 4px 16px; }
}

/* ---------------------------------------------------------------- search, tab bar, coloured charts */
.find { margin-left: auto; flex: 0 1 320px; min-width: 150px; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text-3); font: 14px var(--sans); cursor: pointer; text-align: left; }
.find:hover { border-color: var(--line-strong); color: var(--text-2); }
.find span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.find kbd, .finder-foot kbd { font: 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; }
dialog.finder { width: min(660px, calc(100vw - 32px)); max-height: min(640px, calc(100dvh - 120px)); margin-top: 84px; padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); color: var(--text); overflow: hidden; }
dialog.finder[open] { display: flex; flex-direction: column; }
dialog.finder::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(3px); }
.finder-top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); flex: none; }
.finder-top input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--text); font: 18px var(--sans); outline: 0; }
.finder-top input::placeholder { color: var(--text-3); }
.finder-top input::-webkit-search-cancel-button { display: none; }
.finder-x { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font: 500 13px var(--sans); cursor: pointer; }
.finder-list { flex: 1; overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.fi-group { margin: 12px 10px 4px; font: 500 11px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.fi { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; color: inherit; }
.fi:hover { text-decoration: none; background: var(--surface-2); }
.fi.active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fi .logo { flex: none; }
.fi-icon { flex: none; width: 28px; height: 28px; border-radius: 28%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.fi.active .fi-icon { background: var(--bg); }
.fi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fi-main b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-main span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fi-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; }
.fi-none { margin: 26px 16px; color: var(--text-2); }
.finder-foot { display: flex; gap: 18px; margin: 0; padding: 9px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; flex: none; }
.finder-foot kbd { margin-right: 3px; }

.tabbar { display: none; }

.chart-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -6px 0 14px; color: var(--text-2); font-size: 12.5px; }
.chart-key span { display: inline-flex; align-items: center; gap: 7px; }
.chart-key .k { width: 14px; height: 12px; border-radius: 3px 3px 0 0; background: var(--series-1-soft); }
.chart-key .k.good, .bars .col.good i { background: color-mix(in srgb, var(--up) 62%, transparent); }
/* worse: the colour AND a hatch, so the two are told apart without seeing red from green */
.chart-key .k.bad, .bars .col.bad i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--down) 78%, transparent) 0 3px, color-mix(in srgb, var(--down) 30%, transparent) 3px 6px); }
.bars .col.good:hover i, .bars .col.good:focus-visible i, .bars .col.good.sel i { background: var(--up); }
.bars .col.bad:hover i, .bars .col.bad:focus-visible i, .bars .col.bad.sel i { background: repeating-linear-gradient(135deg, var(--down) 0 3px, color-mix(in srgb, var(--down) 55%, transparent) 3px 6px); }
.bars .col.sel i { outline: 2px solid var(--text); outline-offset: 1px; }
.spark rect.now.up { fill: var(--up); } .spark rect.now.down { fill: var(--down); }

/* Below 860px the sections no longer fit beside the name, the search and the buttons: they move
   to a bar at the bottom of the screen, under the thumb. */
@media (max-width: 860px) {
  /* one row at the top: the name, the search, Telegram, the theme */
  .topbar { gap: 10px; flex-wrap: nowrap; }
  .topbar .nav { display: none; }
  /* the sections move to the bottom of the screen, under the thumb */
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 4px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; color: var(--text-3); font: 500 10.5px var(--sans); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--text); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2; }
  body { padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  /* the search takes the whole screen */
  dialog.finder { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .finder-top { padding: calc(10px + env(safe-area-inset-top)) 10px 10px 16px; }
  .finder-top input { font-size: 17px; }
  .finder-foot { display: none; }
  .fi { padding: 11px 8px; }
}

/* the cover of a results brief: the firm's poster, in small */
.cov-brief { display: flex; flex-direction: column; width: 158px; height: 224px; padding: 13px 12px 12px; background: var(--pb); color: var(--pi); text-align: left; overflow: hidden; }
.cov-brief > span { display: flex; align-items: center; gap: 7px; font: 500 11px var(--mono); letter-spacing: 0.08em; }
.cov-brief > span i { font-style: normal; }
.cov-brief .logo { width: 24px; height: 24px; box-shadow: none; }
.cov-brief .logo.mono { background: color-mix(in srgb, var(--pi) 16%, transparent); color: var(--pi); }
.cov-brief b { margin-top: 20px; font: 600 40px/0.9 var(--sans); letter-spacing: -0.05em; white-space: nowrap; }
.cov-brief b.word { font-size: 30px; }
.cov-brief em { margin-top: auto; font: normal 400 21px/1.02 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cov-brief u { margin-top: 6px; text-decoration: none; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.lib-more { margin: 22px 0 0; }
.s-fed { --ca: #33506b; --c0: #33506b; --c1: #44637f; --c2: #243b50; } .s-briefs { --ca: #4a4a4f; --c0: #4a4a4f; --c1: #5c5c62; --c2: #36363a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-fed { --ca: #b4c8dc; } :root:not([data-theme="light"]) .s-briefs { --ca: #d8d5cc; } }
:root[data-theme="dark"] .s-fed { --ca: #b4c8dc; } :root[data-theme="dark"] .s-briefs { --ca: #d8d5cc; }

/* ---------------------------------------------------------------- comfort on a phone */
@media (pointer: coarse) {
  /* things a finger presses are at least 36 pixels tall */
  .pill, .seg > *, .btn { min-height: 36px; display: inline-flex; align-items: center; }
  .tk-toggle { width: 34px; height: 34px; }
}
@media (max-width: 720px) {
  /* the list of companies keeps what fits: the name, revenue and net income */
  table.dir th:nth-child(3), table.dir td:nth-child(3), table.dir th:nth-child(4), table.dir td:nth-child(4),
  table.dir th:nth-child(n+7), table.dir td:nth-child(n+7) { display: none; }
  table.dir td, table.dir th { padding-left: 6px; padding-right: 6px; }
  table.dir .star-cell { width: 34px; padding-left: 8px; padding-right: 0; }
  table.dir .bank-cell { min-width: 0; }
  table.dir .bank-cell b { display: block; max-width: 26vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.dir td.r, table.dir th.r { white-space: nowrap; }
  /* two covers side by side instead of one lost in the middle */
  .lib-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .lib-covers .cov { align-items: center; }
  .lib-covers .cov-info { align-self: stretch; }
  .cov-sheet img { max-height: 200px; }
  .cov-brief, .cov-made { width: 146px; height: 206px; }
  .page-head h1 { font-size: clamp(34px, 10vw, 44px); }
  .footer { padding-bottom: 14px; }
}
@media (max-width: 370px) { table.dir th:nth-child(5), table.dir td:nth-child(5) { display: none; } table.dir .bank-cell b { max-width: 38vw; } }
/* on a tablet the top bar has no room for the long search field: it becomes its icon */
@media (max-width: 1000px) {
  .find { width: 38px; min-width: 0; padding: 0; justify-content: center; flex: none; color: var(--text-2); }
  .find span, .find kbd { display: none; }
}

/* ---------- presentation pass (design audit, Nov 2026) ---------- */
/* the page keeps its height while it loads, so the footer does not jump (layout shift) */
#app { min-height: 100svh; }
.more-cell { text-align: center; padding: 14px; }
.chg.fromto { font-size: 11.5px; white-space: nowrap; }
/* tap targets of at least 24px everywhere, 36px for what is pressed often on a phone */
.picked button { width: 28px; height: 28px; position: relative; }
.picked button::after { content: ''; position: absolute; inset: -6px; }
th[data-sort] button { padding: 10px 0; }
.tk-toggle { width: 28px; height: 28px; font-size: 11px; }
@media (pointer: coarse) {
  .star { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; }
  .bub { min-width: 30px; min-height: 30px; }
}
/* in the light theme the cream posters get an edge, or they melt into the page */
:root[data-theme="light"] .poster, :root[data-theme="light"] .cov-made, :root[data-theme="light"] .cov-brief { box-shadow: 0 0 0 1px var(--line); }
/* counts inside pills keep their space ("Europe 4", not "Europe4") */
.pill .faint { margin-left: 6px; }
/* a report page: the left page stays in view while the summary scrolls */
@media (min-width: 900px) { .book .leaf-left { position: sticky; top: 84px; align-self: start; } }
/* the logo wall's colours, explained */
.wall-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.wall-key span { display: inline-flex; align-items: center; gap: 6px; }
.wall-key i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.wall-key i.up { background: var(--up); } .wall-key i.down { background: var(--down); }
/* the share window: six equal buttons */
.share-to { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-to .btn { justify-content: center; }
/* filters that would take a third of a phone screen scroll sideways in one row */
@media (max-width: 720px) {
  .lib-tabs, .filters .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .lib-tabs::-webkit-scrollbar, .filters .pills::-webkit-scrollbar { display: none; }
  .lib-tabs .pill, .filters .pills .pill { flex: none; }
}

/* promises: one row per firm, two chips */
.moves-count { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; color: var(--text-2); font-size: 13.5px; }
.moves-count b { font: 600 18px var(--mono); margin-right: 4px; }
.moves-count b.good { color: var(--up); } .moves-count b.bad { color: var(--down); }
.moves-rows { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.moves-rows button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.moves-rows button:hover { border-color: var(--line-strong); background: var(--surface-2); }
.mv-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mv-name b { font: 600 13px var(--mono); }
.mv-name span { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

/* quarter tabs carry the result; the selected tab keeps readable sub-labels in both themes */
.qtab .qt.up { color: var(--up); } .qtab .qt.down { color: var(--down); }
.qtab[aria-selected="true"] span, .qtab[aria-selected="true"] .qt { color: var(--bg); opacity: 0.85; }
/* the quarter in three figures, first thing under the name */
.fig-tiles { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 0; margin: 18px 0 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.fig-tiles > * { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.fig-tiles > :first-child { border-left: 0; }
.ft-when { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.ft-when b { font: 500 15px var(--mono); }
.ft-when span { color: var(--text-3); font-size: 12px; }
.fig-tile { display: flex; flex-direction: column; gap: 3px; }
.fig-tile b { font: 600 clamp(20px, 2.4vw, 28px)/1.1 var(--sans); letter-spacing: -0.02em; }
.fig-tile .eyebrow { margin: 0; }
.ft-chg { font: 500 12.5px var(--mono); }
.ft-chg.up { color: var(--up); } .ft-chg.down { color: var(--down); }
@media (max-width: 720px) {
  .fig-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-when { grid-column: 1 / -1; flex-direction: row; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .fig-tiles > * { padding: 10px 12px; }
  .fig-tiles > :nth-child(2) { border-left: 0; }
  .ft-chg .faint { display: none; }
}

/* hero: one clear action, one way to search, and the key of the logo wall */
.open-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.open-acts .tg-cta { margin-top: 0; }
.has-alerts .tg-cta { background: var(--text); color: var(--bg); border-color: var(--text); padding: 10px 18px 10px 12px; }
.has-alerts .tg-cta:hover { background: color-mix(in srgb, var(--text) 88%, #2aabee); border-color: var(--text); }
.has-alerts .tg-cta i { color: var(--bg); opacity: 0.7; }
.open-find { gap: 8px; min-height: 42px; border-radius: 999px; padding: 0 16px; }
.wall-col { min-width: 0; }
.markets-link a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text-2); }
.markets-link a:hover { text-decoration: none; border-color: var(--line-strong); background: var(--surface-2); }
.markets-link b { font: 400 26px var(--serif); color: var(--text); margin-right: 10px; }
.markets-link i { font-style: normal; font-size: 22px; color: var(--text); }

/* the promise is a sentence now: a little smaller than the old three-word title */
.open h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 0.98; }

/* on a phone the company's header keeps the essentials: ticker, sector, next results */
@media (max-width: 720px) { .bank-meta .bm-x { display: none; } }

/* ---------- who's buying ---------- */
.buy-tabs { margin: 4px 0 18px; }
.buy-tabs [aria-selected="true"] { background: var(--text); color: var(--bg); }
.buy-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0 0 24px; overflow: hidden; }
.buy-facts > div { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.buy-facts > div:first-child { border-left: 0; }
.buy-facts b { font: 600 22px/1.15 var(--sans); letter-spacing: -0.01em; }
.buy-facts .eyebrow { margin: 0; }
.buy-facts .mvline { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 36px; margin-top: 4px; }
.hist i { flex: 1; min-width: 6px; background: var(--series-1-soft); border-radius: 3px 3px 0 0; }
.hist i:last-child { background: var(--text); }
.tr-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.tr-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(0, 2fr) minmax(90px, auto) minmax(120px, auto) auto; gap: 8px 16px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.tr-row > :first-child:not(.tr-who) { grid-column: 1 / 3; }
.tr-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.tr-who:hover { text-decoration: none; }
.tr-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.tr-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-who span span, .an { color: var(--text-3); font-size: 12.5px; }
.an { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-what { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.tr-what > a, .tr-what > span:not(.tx):not(.tag) { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: inherit; }
.tr-what .an { max-width: 34ch; }
.tk { font: 600 13px var(--mono); }
.tr-amt { font: 500 13.5px var(--mono); white-space: nowrap; text-align: right; }
.tr-amt .an { font-family: var(--sans); text-align: right; }
.tr-when { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.src { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.tx { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font: 600 11.5px var(--mono); letter-spacing: 0.02em; white-space: nowrap; }
.tx-buy { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.tx-sell { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.tx-ex { background: var(--surface-2); color: var(--text-2); }
.lag { color: var(--text-3); font-size: 12px; }
.lag.late { color: var(--down); font-weight: 600; }
.tag.hot { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.mv { font: 600 12px var(--mono); white-space: nowrap; }
.mv.up { color: var(--up); } .mv.down { color: var(--down); }
.ava { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; padding: 2px; background: var(--line-strong); display: inline-grid; place-items: center; }
.ava.pty-D { background: #3b82f6; } .ava.pty-R { background: #ef4444; } .ava.pty-I { background: #a855f7; }
.ava .logo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--surface-2); display: grid; place-items: center; font: 600 12px var(--sans); color: var(--text-2); box-shadow: none; }
.ava.xs { width: 24px; height: 24px; padding: 1.5px; } .ava.xs .logo { font-size: 8px; }
.ava.sm { width: 34px; height: 34px; } .ava.md { width: 30px; height: 30px; }
.ava.xl { width: 96px; height: 96px; padding: 3px; } .ava.xl .logo { font-size: 28px; }
.fmark { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--fb); color: var(--fi); display: inline-grid; place-items: center; font: 700 14px var(--sans); letter-spacing: 0.02em; }
.fmark.xs { width: 24px; height: 24px; border-radius: 7px; font-size: 9px; } .fmark.md { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.fmark.xl { width: 96px; height: 96px; border-radius: 26px; font-size: 32px; }
.person-head { display: flex; gap: 22px; align-items: flex-start; margin: 6px 0 22px; }
.person-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1; }
.person-head .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.person-head .say { margin: 8px 0 0; max-width: 64ch; color: var(--text-2); }
.mgrid, .fgrid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-bottom: 18px; }
.mcard, .fcard { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; min-width: 0; }
.mcard:hover, .fcard:hover { text-decoration: none; border-color: var(--line-strong); background: var(--surface-2); }
.mc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-main > span { color: var(--text-3); font-size: 12.5px; }
.mc-stats { display: flex; gap: 12px; color: var(--text-2) !important; font: 500 12.5px var(--mono) !important; }
.mc-tk { display: flex; flex-wrap: wrap; gap: 4px; }
.mc-tk i, .mc-tk a, .mc-tk span { font: 500 11.5px var(--mono); font-style: normal; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.mc-tk.big { margin: -8px 0 20px; gap: 6px; }
.mc-tk.big a, .mc-tk.big span { display: inline-flex; gap: 6px; padding: 5px 10px; font-size: 12.5px; }
.mc-tk.big i { padding: 0; background: none; color: var(--text); font-weight: 600; }
.fcard { flex-direction: column; gap: 10px; }
.fc-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.fc-head > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fc-head b { font-weight: 600; }
.fc-head > span:last-child span { color: var(--text-3); font-size: 12.5px; }
.fc-fig { display: flex; align-items: baseline; gap: 10px; }
.fc-fig b { font: 600 22px var(--sans); letter-spacing: -0.01em; }
.fc-fig span { color: var(--text-3); font-size: 12.5px; }
.fc-top { display: flex; flex-wrap: wrap; gap: 6px; font: 500 12px var(--mono); color: var(--text-2); }
.fc-top span { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }
.fc-moves { display: flex; flex-wrap: wrap; gap: 10px; }
.clusters { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); margin-bottom: 22px; }
.cluster { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; }
.cluster:hover { text-decoration: none; border-color: var(--line-strong); }
.cluster > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cluster > span:nth-child(2) span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-fig { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--text-3); }
.cl-fig b { font: 600 15px var(--mono); color: var(--up); }
.fund-table .pbar { display: inline-block; width: 70px; height: 6px; margin-right: 10px; border-radius: 3px; background: var(--surface-2); vertical-align: middle; overflow: hidden; }
.fund-table .pbar i { display: block; height: 100%; background: var(--text-2); border-radius: 3px; }
.fund-table td:first-child a, .fund-table td:first-child > span { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; }
.who-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.who-col { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.who-col .eyebrow { margin: 0; }
.who-sum { display: flex; gap: 12px; margin: 0; }
.who-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.who-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); min-width: 0; }
.who-list li:first-child { border-top: 0; }
.who-list li > span:not(.tx):not(.ava):not(.fmark):not(.r):not(.logo) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.who-list .r { margin-left: auto; font: 500 12.5px var(--mono); white-space: nowrap; }
.who-list b { font-weight: 600; }
.who-list .logo { flex: none; }
@media (max-width: 900px) {
  .tr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-row > :first-child:not(.tr-who) { grid-column: auto; }
  .tr-what { grid-column: 1 / -1; order: 2; }
  .tr-amt { order: 3; text-align: left; }
  .tr-when { order: 4; align-items: flex-end; }
  .tr-row .src { order: 5; grid-column: 1 / -1; }
  .person-head { gap: 14px; }
  .ava.xl, .fmark.xl { width: 72px; height: 72px; }
}

/* the central bank shelf: one colour per kind of document, so the shelf is not a grey wall */
.cov-made.k-statement { background: linear-gradient(160deg, #1d3b7a, #0b1730); }
.cov-made.k-minutes { background: linear-gradient(160deg, #3d2a63, #150f24); }
.cov-made.k-beige { background: linear-gradient(160deg, #d9c9a3, #a8946a); color: #1c1608; }
/* the facts strip on a phone: two by two, separated by lines */
@media (max-width: 720px) {
  .buy-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 12px 14px; }
  .buy-facts > div:nth-child(-n+2) { border-top: 0; }
  .buy-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
  .buy-facts b { font-size: 19px; }
}

/* further trades of the same filing sit under the name, without repeating it */
.tr-row.same { border-top: 0; padding-top: 2px; }
.tr-list .tr-row.same { margin-top: -1px; }
@media (max-width: 900px) { .tr-row.same .tr-who { display: none; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--text-3); }
/* in the light theme the coloured chips need darker ink to stay readable (contrast 4.5:1 or more) */
:root[data-theme="light"] .tx-buy { color: #0b5418; background: color-mix(in srgb, var(--up) 11%, transparent); }
:root[data-theme="light"] .tx-sell { color: #8f1d16; background: color-mix(in srgb, var(--down) 10%, transparent); }
:root[data-theme="light"] .mv.up, :root[data-theme="light"] .ft-chg.up, :root[data-theme="light"] .qtab .qt.up { color: #0b5418; }
:root[data-theme="light"] .mv.down, :root[data-theme="light"] .ft-chg.down, :root[data-theme="light"] .qtab .qt.down, :root[data-theme="light"] .lag.late { color: #8f1d16; }
/* the selected quarter tab is dark in the light theme: its result keeps the light ink */
:root[data-theme] .qtab[aria-selected="true"] .qt.up, :root[data-theme] .qtab[aria-selected="true"] .qt.down { color: var(--bg); opacity: 0.9; }

/* ---------------------------------------------------------------- kept its word (company page) */
/* One line under the quarter's figures; the forecasts behind it open below. */
.kept { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.kept > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: 14px; }
.kept > summary::-webkit-details-marker { display: none; }
.kept > summary:hover { background: var(--surface-2); }
.kept > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.kept-k { font: 500 11.5px var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.kept-say { font-size: 15px; }
.kept-say b { font-weight: 600; }
.kept.tone-good .kept-say b { color: var(--up); }
.kept.tone-bad .kept-say b { color: var(--down); }
.kept-marks { display: inline-flex; flex-wrap: wrap; gap: 3px; max-width: 220px; }
.kept-marks i { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.kept-marks i.good { background: var(--up); }
.kept-marks i.bad { background: var(--down); }
.kept-marks i.mid { background: var(--text-2); }
.kept-marks i.flat { background: none; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.kept-rank { font: 500 12px var(--mono); color: var(--text-2); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.kept-open { margin-left: auto; width: 9px; height: 9px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-3px); }
.kept[open] .kept-open { transform: rotate(225deg) translate(-2px, -2px); }
.kept-body { padding: 2px 16px 12px; }
.kept-body .rd-table a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); color: inherit; }
.kept-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 12px 0 0; color: var(--text-2); font-size: 13.5px; }
.kept-facts a { text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .kept-open { transition: transform 0.15s; } }

/* ---------------------------------------------------------------- who keeps its word (markets) */
.kb-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.kb { padding: 14px 16px 6px; }
.kb h3 { font: 400 24px/1.1 var(--serif); margin-bottom: 8px; }
.kb ol { list-style: none; margin: 0; padding: 0; }
.kb li { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); }
.kb li > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 0; color: inherit; }
.kb li > a:hover { text-decoration: none; }
.kb li > a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.kb-rank { width: 22px; color: var(--text-3); font-size: 12.5px; text-align: right; flex: none; }
.kb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kb-name b { font: 600 13.5px var(--mono); }
.kb-name span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb .kept-marks { max-width: 110px; justify-content: flex-end; }
.kb-score { display: flex; flex-direction: column; align-items: flex-end; flex: none; min-width: 84px; }
.kb-score b { font-size: 14px; font-weight: 600; }
.kb-score span { color: var(--text-3); font-size: 11.5px; }
.kb-none { padding: 10px 0 14px; margin: 0; }
.keeps .note a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .kb .kept-marks { display: none; } }

/* ---------------------------------------------------------------- company page: More on a phone */
/* On a wide screen every action sits in the row and "More" is not there. */
.bank-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more-wrap { display: contents; }
.more-btn { display: none; }
.more-menu, .more-menu[hidden] { display: contents; }
@media (max-width: 720px) {
  /* one row: Follow and Telegram share the width, More keeps the right end (its list opens leftwards) */
  .page-head .bank-acts { width: 100%; flex-wrap: nowrap; }
  .bank-acts > .star.labelled, .has-alerts .bank-acts > .alert-btn { flex: 1 1 0; min-width: 0; box-sizing: border-box; justify-content: center; min-height: 42px; white-space: nowrap; }
  .bank-acts .acts-long { display: none; }
  .more-wrap { display: block; position: relative; flex: none; margin-left: auto; }
  .more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; }
  .more-btn[aria-expanded="true"] { background: var(--surface-2); }
  .more-menu[hidden] { display: none; }
  .more-menu { display: flex; flex-direction: column; gap: 2px; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: max-content; min-width: 230px; max-width: calc(100vw - 32px); padding: 6px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 14px 34px rgb(0 0 0 / 0.28); }
  .more-menu .btn { justify-content: flex-start; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; white-space: normal; }
  .more-menu .btn:hover, .more-menu .btn:focus-visible { background: var(--surface-2); }
}

/* ---------------------------------------------------------------- calendar: feed, week grid, list */
.cal-add { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 16px 20px; margin-bottom: 8px; }
.cal-add h2 { font: 400 24px/1.1 var(--serif); margin: 0; }
.cal-add p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; max-width: 62ch; }
.cal-add-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-add-acts .btn { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.cal-apps { font-size: 12px; opacity: 0.75; }
@media (max-width: 720px) {
  .cal-add { padding: 14px 16px; gap: 10px; }
  .cal-add h2 { font-size: 21px; }
  .cal-add p { display: none; }
  .cal-add-acts .btn { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
}
.cal-end { display: inline-flex; align-items: center; gap: 6px; }
/* on a phone the star stays at the end of its row instead of taking a line of its own */
@media (max-width: 720px) {
  .feed.upcoming li:not(.macro) { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .feed.upcoming li:not(.macro) > .cal-end { grid-column: 3; justify-self: end; }
  .cal-end > .num { display: none; }
}
.feed li.mine { background: color-mix(in srgb, var(--star) 7%, transparent); }
.feed li.mine .desc { color: var(--text-2); }
/* the week as five columns: only where five columns fit; a phone keeps the list */
.wk-grid { display: none; }
@media (min-width: 900px) {
  .wk-list { display: none; }
  .wk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
  .wk-day { min-width: 0; border-left: 1px solid var(--line); padding: 10px 10px 8px; }
  .wk-day:first-child { border-left: 0; }
  .wk-day.today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .wk-day h4 { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 8px; font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
  .wk-n { color: var(--text-3); font-size: 11px; letter-spacing: 0.02em; text-transform: none; }
  .wk-day.today h4 { color: var(--text); }
  .wk-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
  .wk-day li { display: flex; align-items: center; gap: 2px; border-radius: 8px; }
  .wk-day li:hover { background: var(--surface-2); }
  .wk-day li > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 6px; color: inherit; }
  .wk-day li > a:hover { text-decoration: none; }
  .wk-day li > a > span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .wk-day li b { font: 600 12.5px var(--mono); }
  .wk-day li > a > span > span { color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wk-day li.mine { background: color-mix(in srgb, var(--star) 9%, transparent); }
  .wk-day li.mine > a > span > span { color: var(--text-2); } /* keeps its contrast on the tinted row */
  .wk-day li.wk-macro { background: color-mix(in srgb, var(--accent) 9%, transparent); }
  .wk-day li.wk-macro b { font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
  .wk-day .logo.sm { width: 20px; height: 20px; }
  .wk-none { margin: 0; color: var(--text-3); font-size: 12.5px; }
}
.keeps { scroll-margin-top: 96px; }
