/* InsiderPrint — institutional research look.
   Layout: utility bar → white masthead → content grid (main + right rail) → navy footer. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0d1b2e;
  --ink-2: #33445a;
  --muted: #5d6c80;
  --line: #dfe5ec;
  --line-2: #eef2f6;
  --brand: #1747a6;
  --brand-ink: #0f357f;
  --brand-tint: #e8effb;
  --navy: #0a1f3c;
  --navy-2: #12305a;
  --on-navy: #dbe5f3;
  --pos: #0b7a4b;
  --pos-tint: #e5f4ec;
  --neg: #b42318;
  --neg-tint: #fbe9e7;
  --gold: #9a6a12;
  --gold-tint: #fbf2df;
  --chart-line: #1747a6;
  --mark-bg: #0a1f3c;
  --shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 1px 1px rgba(13, 27, 46, .04);
  --f-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --f-ui: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 6px;
  --max: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1322; --surface: #111c2e; --surface-2: #15223a; --ink: #e8eef7; --ink-2: #c3cfdf; --muted: #8fa0b8;
    --line: #23324a; --line-2: #1a2840; --brand: #6d9cf5; --brand-ink: #9dbcf8; --brand-tint: #182b4d;
    --navy: #070f1d; --navy-2: #0e1a2e; --on-navy: #b9c7db; --pos: #3fbf83; --pos-tint: #12301f;
    --neg: #f0776b; --neg-tint: #3a1714; --gold: #e0b158; --gold-tint: #33270e; --chart-line: #6d9cf5;
    --mark-bg: #17325c; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1322; --surface: #111c2e; --surface-2: #15223a; --ink: #e8eef7; --ink-2: #c3cfdf; --muted: #8fa0b8;
  --line: #23324a; --line-2: #1a2840; --brand: #6d9cf5; --brand-ink: #9dbcf8; --brand-tint: #182b4d;
  --navy: #070f1d; --navy-2: #0e1a2e; --on-navy: #b9c7db; --pos: #3fbf83; --pos-tint: #12301f;
  --neg: #f0776b; --neg-tint: #3a1714; --gold: #e0b158; --gold-tint: #33270e; --chart-line: #6d9cf5;
  --mark-bg: #17325c; --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--f-ui); font-feature-settings: "tnum" 1;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px;
}
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.45rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 1.32rem; font-weight: 600; line-height: 1.25; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .72rem/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- demo banner ---------- */
.demo-banner { background: var(--gold-tint); color: var(--gold); border-bottom: 1px solid var(--line); font-size: .82rem; }
.demo-banner .wrap { padding-block: 7px; display: flex; gap: 8px; align-items: center; }
.demo-banner strong { letter-spacing: .06em; }

/* ---------- utility bar + masthead ---------- */
.utility { background: var(--navy); color: var(--on-navy); font-size: .78rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.utility a { color: var(--on-navy); }
.utility .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34c77b; margin-right: 6px; vertical-align: 1px; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.logo-word { font: 600 1.28rem/1 var(--f-display); letter-spacing: -.01em; }
.logo-word span { color: var(--brand); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .92rem; padding: 22px 10px 20px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.search { position: relative; width: 260px; flex-shrink: 0; }
.search input {
  width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface-2);
  padding: 0 14px 0 36px; font: inherit; font-size: .9rem; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.search-results {
  position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(13, 27, 46, .14); overflow: hidden; z-index: 30;
}
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; color: var(--ink); font-size: .9rem; border-bottom: 1px solid var(--line-2); }
.search-results a:hover, .search-results a.sel { background: var(--brand-tint); text-decoration: none; }
.search-results b { font-family: var(--f-mono); font-weight: 600; color: var(--brand); min-width: 52px; }
.search-results span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results em { font-style: normal; color: var(--muted); font-size: .8rem; }
@media (max-width: 980px) {
  .masthead .wrap { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; }
  .search { order: 2; flex: 1; width: auto; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; }
  .nav a { padding: 8px 10px 9px; }
}

/* ---------- page header ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 30px 26px; display: grid; gap: 10px; }
.page-head p.lede { color: var(--ink-2); max-width: 70ch; font-size: 1.02rem; }
.crumbs { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ---------- home hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-navy); }
.hero .wrap { padding-block: 40px 0; display: grid; gap: 14px; }
.hero h1 { color: #fff; max-width: 26ch; }
.hero .lede { max-width: 62ch; font-size: 1.05rem; color: var(--on-navy); }
.hero .eyebrow { color: #9fb6d8; }
.pulse { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
.pulse > div { padding: 18px 20px 16px; border-right: 1px solid var(--line-2); display: grid; gap: 4px; min-width: 0; }
.pulse > div:last-child { border-right: 0; }
.pulse .k { font-size: .76rem; color: var(--muted); font-weight: 500; }
.pulse .v { font: 600 1.55rem/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.pulse .s { font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse > div { border-bottom: 1px solid var(--line-2); } .pulse > div:nth-child(2n) { border-right: 0; }
  .pulse > div:last-child { grid-column: 1 / -1; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-block: 28px 56px; }
.layout.full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1060px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.main { display: grid; gap: 28px; align-content: start; min-width: 0; }
.rail { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1061px) { .rail-sticky { position: sticky; top: 86px; display: grid; gap: 20px; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-head p { color: var(--muted); font-size: .85rem; }
.panel-head .more { font-size: .86rem; font-weight: 500; white-space: nowrap; }
.panel-body { padding: 18px 20px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th { font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.data th[data-sort] { cursor: pointer; user-select: none; }
table.data th[data-sort]:hover { color: var(--ink); }
table.data th[aria-sort="ascending"]::after { content: " ▲"; font-size: .6rem; }
table.data th[aria-sort="descending"]::after { content: " ▼"; font-size: .6rem; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
td.tk a, .tk-link { font: 600 .85rem var(--f-mono); color: var(--brand); }
td .sub { display: block; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
td.who { min-width: 180px; }
td.who a { color: var(--ink); font-weight: 500; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.pill.buy { background: var(--pos-tint); color: var(--pos); }
.pill.sell { background: var(--neg-tint); color: var(--neg); }
.pill.neu { background: var(--line-2); color: var(--muted); }
.pill.plan { background: var(--line-2); color: var(--muted); font-weight: 500; }
.flag { display: inline-block; font-size: .7rem; color: var(--gold); background: var(--gold-tint); border-radius: 3px; padding: 1px 6px; margin-left: 6px; white-space: nowrap; }

.score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 12px;
  font: 600 .8rem/1 var(--f-ui); font-variant-numeric: tabular-nums; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.score.s-hi { background: var(--pos); color: #fff; border-color: transparent; }
.score.s-up { background: var(--pos-tint); color: var(--pos); border-color: transparent; }
.score.s-mid { background: var(--line-2); color: var(--ink-2); border-color: transparent; }
.score.s-lo { background: var(--neg-tint); color: var(--neg); border-color: transparent; }
.score.big { min-width: 64px; height: 44px; border-radius: 22px; font-size: 1.3rem; font-family: var(--f-display); }

/* ---------- filter bar ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { font: 500 .84rem var(--f-ui); color: var(--ink-2); background: var(--surface); border: 0; padding: 7px 14px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.filters select, .filters input { height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; padding: 0 10px; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .82rem; }

/* ---------- cluster cards ---------- */
.clusters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.cluster { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: grid; gap: 12px; box-shadow: var(--shadow); align-content: start; }
.cluster-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cluster-top .tk-link { font-size: 1rem; }
.cluster-top .co { display: block; color: var(--ink); font-weight: 500; font-size: .92rem; }
.cluster-top .sec { display: block; color: var(--muted); font-size: .78rem; }
.cluster .spark { width: 120px; height: 36px; flex-shrink: 0; }
.cluster-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-block: 10px; border-block: 1px solid var(--line-2); }
.cluster-figs .k { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cluster-figs .v { font: 600 1.05rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.cluster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
.cluster li { display: flex; justify-content: space-between; gap: 10px; }
.cluster li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cluster li a { color: var(--ink-2); }
.cluster .when { font-size: .78rem; color: var(--muted); }
.badge-exec { font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); border-radius: 3px; padding: 2px 6px; }

.spark polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; }
.spark-up polyline { stroke: var(--pos); }
.spark-down polyline { stroke: var(--neg); }
.spark circle { fill: var(--brand); }
.spark-mark { stroke: var(--brand); stroke-dasharray: 2 2; stroke-width: 1; opacity: .7; }

/* ---------- summaries list ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.feed li:last-child { border-bottom: 0; }
.feed .txt { font-size: .9rem; color: var(--ink-2); }
.feed .txt a.tk-link { margin-right: 4px; }
.feed time { color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* ---------- company page ---------- */
.co-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.co-title { display: grid; gap: 6px; }
.co-title .tkr { font: 600 .95rem var(--f-mono); color: var(--brand); background: var(--brand-tint); border-radius: 4px; padding: 3px 8px; justify-self: start; }
.quote { text-align: right; display: grid; gap: 2px; }
.quote .px { font: 600 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.quote .chg { font-size: .9rem; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.kpis > div { padding: 16px 20px; border-right: 1px solid var(--line-2); display: grid; gap: 3px; min-width: 0; }
.kpis > div:last-child { border-right: 0; }
.kpis .k { font-size: .75rem; color: var(--muted); }
.kpis .v { font: 600 1.25rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis > div { border-bottom: 1px solid var(--line-2); } }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .tick { stroke: var(--line); }
.chart .axis { fill: var(--muted); font: 11px var(--f-ui); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--chart-line); stroke-width: 1.8; stroke-linejoin: round; }
.chart .endpoint { fill: var(--chart-line); stroke: var(--surface); stroke-width: 2; }
.chart .mk-buy { fill: var(--pos); fill-opacity: .85; stroke: var(--surface); stroke-width: 1.5; }
.chart .mk-sell { fill: var(--neg); fill-opacity: .75; stroke: var(--surface); stroke-width: 1.5; }
.legend { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .b { background: var(--pos); } .legend .s { background: var(--neg); } .legend .l { background: var(--chart-line); border-radius: 2px; height: 3px; vertical-align: 3px; width: 14px; }
.prose { color: var(--ink-2); font-size: .95rem; max-width: 72ch; display: grid; gap: 12px; }
.prose h2 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 14px 20px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 8px; color: var(--ink-2); font-size: .92rem; }

/* ---------- insider page ---------- */
.record { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.record > div { padding: 18px 20px; border-right: 1px solid var(--line-2); display: grid; gap: 4px; align-content: center; }
.record > div:last-child { border-right: 0; }
.record .k { font-size: .75rem; color: var(--muted); }
.record .v { font: 600 1.2rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .record { grid-template-columns: repeat(2, minmax(0, 1fr)); } .record > div { border-bottom: 1px solid var(--line-2); } }

/* ---------- directory ---------- */
.az { display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.az a { font: 600 .82rem var(--f-mono); padding: 4px 8px; border-radius: 4px; color: var(--ink-2); }
.az a:hover { background: var(--brand-tint); text-decoration: none; }

/* ---------- rail widgets ---------- */
.ad-slot { display: grid; gap: 6px; }
.ad-slot .ad-label { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ad-box { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; font-size: .8rem; text-align: center; padding: 10px; }
.ad-box.rect { min-height: 250px; }
.ad-box.tall { min-height: 600px; }
.ad-box.leader { min-height: 90px; }
.ad-inline { padding-inline: 20px; padding-block: 6px 14px; }
.newsletter { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 22px 20px; display: grid; gap: 12px; }
.newsletter h3 { color: #fff; font-size: 1.15rem; }
.newsletter p { font-size: .88rem; }
.newsletter form { display: grid; gap: 8px; }
.newsletter input { height: 40px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 12px; font: inherit; font-size: .9rem; }
.newsletter input::placeholder { color: #9fb0c8; }
.btn { display: inline-flex; justify-content: center; align-items: center; height: 40px; padding: 0 18px; border-radius: 6px; border: 0; font: 600 .9rem var(--f-ui); cursor: pointer; background: var(--brand); color: #fff; }
.btn:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.newsletter .btn { background: #fff; color: var(--navy); }
.newsletter .fine { font-size: .74rem; color: #9fb0c8; }
.newsletter .ok { font-size: .85rem; color: #a7e3c4; }
.newsletter.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: center; gap: 24px; padding: 26px 28px; }
.newsletter.wide form { grid-template-columns: minmax(0, 1fr) auto; }
.newsletter.wide .fine { grid-column: 1 / -1; }
@media (max-width: 760px) { .newsletter.wide { grid-template-columns: minmax(0, 1fr); } .newsletter.wide form { grid-template-columns: minmax(0, 1fr); } }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-2); font-size: .86rem; }
.side-list li:last-child { border-bottom: 0; }
.side-list .who { min-width: 0; }
.side-list .who a { color: var(--ink); font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .who span { color: var(--muted); font-size: .76rem; }
.method-note { font-size: .8rem; color: var(--muted); padding: 14px 18px; border-top: 1px solid var(--line-2); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: var(--on-navy); font-size: .84rem; }
.footer .wrap { padding-block: 44px 28px; display: grid; gap: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.footer h4 { margin: 0 0 10px; font: 600 .74rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: #8ea6c8; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { color: var(--on-navy); }
.footer .logo { color: #fff; }
.footer .logo:hover { color: #fff; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; font-size: .76rem; color: #8ea6c8; display: grid; gap: 8px; max-width: 120ch; }

.empty { padding: 28px 20px; color: var(--muted); text-align: center; font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) { .search-results a, .nav a { transition: color .15s, background-color .15s; } }

@media (max-width: 640px) {
  .quote { text-align: left; }
  .utility .wrap > span:last-child { display: none; }
  .masthead { position: static; }
  .page-head .wrap { padding-block: 22px 20px; }
}
.sec-link { margin-left: 6px; font-size: .64rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.sec-link:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* ---------- ticker tape ---------- */
.tape { display: flex; align-items: stretch; background: var(--navy); color: var(--on-navy); font-size: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.tape-label { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; background: var(--brand); color: #fff;
  font: 600 .68rem/1.15 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; position: relative; z-index: 1; }
.tape-label small { font-weight: 500; letter-spacing: .04em; opacity: .8; text-transform: none; font-size: .68rem; }
.tape-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tape-track { display: flex; width: max-content; animation: tape 70s linear infinite; }
.tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
.tape-list { display: flex; list-style: none; margin: 0; padding: 0; }
.tape-list li { border-right: 1px solid rgba(255, 255, 255, .08); }
.tape-list a, .tape-idx { display: flex; align-items: center; gap: 8px; padding: 9px 18px; color: var(--on-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tape-list a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.tape-list b { font: 600 .8rem var(--f-mono); color: #fff; }
.tape .pos { color: #4ad291; } .tape .neg { color: #ff8a80; }
.tape-side { font-style: normal; font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; }
.tape-side.buy { background: rgba(52, 199, 123, .16); color: #6fe0a6; }
.tape-side.sell { background: rgba(255, 120, 110, .14); color: #ff9d94; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .tape-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tape-list[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .tape-label { padding: 0 10px; } .tape-side { display: none; } }

/* ---------- picks ---------- */
.disclosure { font-size: .8rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; max-width: 80ch; }
.home-picks { display: grid; gap: 0; }
.picks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .picks-grid { grid-template-columns: minmax(0, 1fr); } }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; align-content: start; min-width: 0; scroll-margin-top: 90px; }
.pick-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.pick-rank { font: 600 1.05rem var(--f-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.pick-id { display: grid; min-width: 0; }
.pick-id .tk-link { font-size: 1rem; }
.pick-id .co { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-id .sec { font-size: .78rem; color: var(--muted); }
.pick-score { display: inline-flex; align-items: baseline; gap: 1px; padding: 3px 9px; border-radius: 14px; font-variant-numeric: tabular-nums; vertical-align: middle; }
.pick-score b { font: 600 .9rem var(--f-ui); }
.pick-score small { font-size: .62rem; opacity: .75; }
.pick-score.big { flex-direction: column; align-items: center; gap: 0; padding: 6px 12px; border-radius: 8px; line-height: 1; }
.pick-score.big b { font: 600 1.6rem/1 var(--f-display); }
.pick-score.big small { margin-top: 2px; }
.ps-hi { background: var(--pos); color: #fff; }
.ps-mid { background: var(--pos-tint); color: var(--pos); }
.ps-lo { background: var(--line-2); color: var(--ink-2); }
.pick-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.pick-figs > div { padding: 12px 18px; display: grid; gap: 2px; min-width: 0; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pick-figs > div:nth-child(2n) { border-right: 0; }
.pick-figs > div:nth-last-child(-n+2) { border-bottom: 0; }
.pick-figs .k { font-size: .72rem; color: var(--muted); }
.pick-figs .v { font: 600 1.08rem/1.25 var(--f-display); font-variant-numeric: tabular-nums; }
.pick-figs .s { font-size: .74rem; color: var(--muted); }
.pick.full .pick-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick.full .pick-figs > div { border-bottom: 0; }
.pick.full .pick-figs > div:nth-child(2n) { border-right: 1px solid var(--line-2); }
.pick.full .pick-figs > div:last-child { border-right: 0; }
@media (max-width: 760px) {
  .pick.full .pick-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick.full .pick-figs > div { border-bottom: 1px solid var(--line-2); }
  .pick.full .pick-figs > div:nth-child(2n) { border-right: 0; }
}
.pick-body { display: grid; gap: 14px; padding: 16px 18px; }
.pick.full .pick-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .pick.full .pick-body { grid-template-columns: minmax(0, 1fr); } }
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 3.2em; gap: 10px; align-items: center; font-size: .78rem; }
.bar-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 7px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 4px; }
.bar-fill.hi { background: var(--pos); }
.bar-fill.mid { background: var(--brand); }
.bar-fill.lo { background: var(--neg); opacity: .75; }
.bar-num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick-notes { display: grid; gap: 12px; align-content: start; }
.pick-notes h4, .pick-since h4 { margin: 0 0 6px; font: 600 .7rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ticks, .warns { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .84rem; }
.ticks li, .warns li { position: relative; padding-left: 18px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--pos); font-weight: 600; }
.warns li::before { content: "!"; position: absolute; left: 3px; color: var(--gold); font-weight: 700; }
.pick:not(.full) .pick-notes .warns { display: none; }
.pick:not(.full) .pick-notes div:has(.warns) { display: none; }
.pick-since { padding: 14px 18px 16px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.pick-buyers { font-size: .8rem; color: var(--muted); }
.pick-buyers a { color: var(--ink-2); }
.main > .pick { margin-bottom: 0; }

/* ---------- timeline (news + 8-K) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .86rem; }
.timeline li { display: block; padding-left: 5.2em; position: relative; color: var(--ink-2); }
.timeline time { position: absolute; left: 0; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.timeline .pill { margin-right: 4px; }
.timeline a { color: var(--ink); }
.timeline.pad { padding: 16px 20px; gap: 10px; }
.timeline.pad li { padding-left: 8.4em; }

.kpis.kpis-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
.kpis .s { font-size: .74rem; color: var(--muted); }
@media (max-width: 900px) { .kpis.kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.kpis-6 > div:last-child { grid-column: 1 / -1; } }
.panel-head .more .pick-score { margin-left: 4px; }
.picks-stack { display: grid; gap: 14px; }
.picks-stack .pick-figs > div { padding-block: 10px; }

/* ---------- stocks to watch ---------- */
.watch-list { list-style: none; margin: 0; padding: 0; counter-reset: wl; }
.watch-list li { display: grid; grid-template-columns: 1.6em 4.2em minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-2); counter-increment: wl; }
.watch-list li::before { content: counter(wl); font: 600 1rem var(--f-display); color: var(--muted); }
.watch-list li:last-child { border-bottom: 0; }
.wl-text { display: grid; min-width: 0; font-size: .86rem; }
.wl-text strong { font-weight: 500; color: var(--ink); }
.wl-text span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-chg { display: grid; text-align: right; font-weight: 600; font-size: .9rem; }
.wl-chg small { font-weight: 400; font-size: .7rem; color: var(--muted); }
@media (max-width: 640px) { .watch-list li { grid-template-columns: 1.2em 3.8em minmax(0, 1fr) auto; } .watch-list .wl-chg { display: none; } }

.story { scroll-margin-top: 90px; }
.story-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 22px 16px; border-bottom: 1px solid var(--line-2); }
.story-num { font: 600 2.2rem/1 var(--f-display); color: var(--brand); min-width: 1ch; }
.story-head h2 { font-size: 1.45rem; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.story-head .tk-link { font-size: .9rem; background: var(--brand-tint); border-radius: 4px; padding: 2px 7px; }
.story-lead { color: var(--ink-2); font-size: .98rem; font-style: italic; font-family: var(--f-display); font-weight: 400; }
.story-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; padding: 18px 22px 22px; }
@media (max-width: 860px) { .story-body { grid-template-columns: minmax(0, 1fr); } .story-side { order: -1; } }
.story-text { font-size: .95rem; line-height: 1.65; }
.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .two-lists { grid-template-columns: minmax(0, 1fr); } }
.two-lists h4 { margin: 0 0 8px; font: 600 .7rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.story-side { display: grid; gap: 14px; align-content: start; }
.story-side figure { margin: 0; display: grid; gap: 6px; padding: 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); }
.story-side figcaption { font-size: .74rem; color: var(--ink-2); font-weight: 500; }
.story-side .spark { width: 100%; height: auto; }
.spark-recent { fill: var(--neg); opacity: .07; }
.pe-bars { width: 100%; height: auto; }
.pe-past { fill: var(--line); }
.pe-now { fill: var(--brand); }
.pe-val { fill: var(--ink-2); font: 600 10px var(--f-ui); font-variant-numeric: tabular-nums; }
.pe-lab { fill: var(--muted); font: 10px var(--f-ui); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.facts div { display: grid; gap: 1px; }
.facts dt { font-size: .7rem; color: var(--muted); }
.facts dd { margin: 0; font: 600 .98rem var(--f-display); font-variant-numeric: tabular-nums; }
.story-side .bar-row { grid-template-columns: 8.6em minmax(0, 1fr) 2.8em; font-size: .72rem; }
table.data.compact th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
table.data.compact th, table.data.compact td { padding-inline: 10px; }

/* logo mark tile follows the theme; the knockout around the green line matches the tile */
.logo svg rect { fill: var(--mark-bg); }
.logo svg [stroke="#0a1f3c"] { stroke: var(--mark-bg); }
.footer .logo svg rect { fill: #17325c; }
.footer .logo svg [stroke="#0a1f3c"] { stroke: #17325c; }

/* ---------- related stocks, guides ---------- */
.rel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rel-grid li { display: grid; gap: 2px; padding: 14px 20px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.rel-grid li:nth-child(3n) { border-right: 0; }
.rel-grid li span { font-size: .85rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-grid li small { font-size: .75rem; color: var(--muted); }
@media (max-width: 700px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rel-grid li:nth-child(3n) { border-right: 1px solid var(--line-2); } .rel-grid li:nth-child(2n) { border-right: 0; } }
.side-list.stack li { display: grid; gap: 3px; justify-content: stretch; padding: 14px 20px; }
.side-list.stack li span { font-size: .84rem; }
.prose .btn { width: fit-content; }

/* ---------- newsletter slide-in ---------- */
.nl-pop { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(380px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(10, 31, 60, .28); animation: nl-in .35s ease-out; }
.nl-pop[hidden] { display: none; }
.nl-close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: transparent; color: #9fb0c8; font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 6px; }
.nl-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
@keyframes nl-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .nl-pop { right: 16px; left: 16px; bottom: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .nl-pop { animation: none; } }

/* ---------- tape date ---------- */
@media (max-width: 640px) { .tape-thru { display: none; } }

/* ---------- phones: app-style bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .masthead .wrap { flex-wrap: nowrap; }
  .search { order: 0; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 16px rgba(13, 27, 46, .06); }
  .tabbar > a, .tabbar summary { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; color: var(--muted);
    font-size: .68rem; font-weight: 500; list-style: none; cursor: pointer; text-decoration: none; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar > a[aria-current="page"], .tab-more[open] summary { color: var(--brand); }
  .tabbar > a:hover { text-decoration: none; color: var(--brand); }
  .tab-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); background: var(--surface);
    border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(13, 27, 46, .22); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
  .tab-sheet a { padding: 15px 18px; color: var(--ink); font-weight: 500; font-size: .92rem; border-bottom: 1px solid var(--line-2); }
  .tab-sheet a:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .nl-pop { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- phones: wide tables become stacked cards ---------- */
@media (max-width: 640px) {
  table.data.stack thead { display: none; }
  table.data.stack, table.data.stack tbody { display: block; }
  table.data.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  table.data.stack tr[hidden] { display: none; }
  table.data.stack tbody tr:last-child { border-bottom: 0; }
  table.data.stack td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; font-size: .86rem; }
  table.data.stack td::before { content: attr(data-label); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  table.data.stack td.tk { order: -2; }
  table.data.stack td.who { order: -1; grid-column: span 2; min-width: 0; }
  table.data.stack td.tk::before, table.data.stack td.who::before { display: none; }
  table.data.stack td .sub { max-width: none; }
  table.data.stack td:empty { display: none; }
}
