/* ResultsIQ - one stylesheet for every page. Tokens follow the Sep 2026 mockups (IBM Plex, teal accent). */
:root {
  color-scheme: light;
  --bg: #F6F7F5; --surface: #FFFFFF; --sunk: #EEF1EE; --ink: #17201C; --ink2: #3A4541; --muted: #5A6661; --faint: #8A9590;
  --rule: #DCE1DD; --rule2: #E8ECE9; --accent: #0E6E5C; --accentInk: #0A5446; --accentSoft: #E3F1EC; --onAccent: #FFFFFF;
  --goodText: #1F7A45; --goodSoft: #E4F2E9; --goodMark: #1F7A45; --badText: #B03A34; --badSoft: #F8E6E4; --badMark: #B03A34;
  --warnText: #94600F; --warnSoft: #FBF0DC; --neutralText: #4F5A55; --neutralSoft: #EAEEEB; --neutralMark: #8A9590;
  --newRow: #F1F8F5; --shadow: 0 8px 24px rgba(23, 32, 28, .12);
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", Arial, sans-serif;
}
/* Dark: follows the device unless the reader picked a theme with the button in the top bar (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E1311; --surface: #151C19; --sunk: #1B2421; --ink: #E4EAE6; --ink2: #C2CCC7; --muted: #9AA7A1; --faint: #6F7C76;
    --rule: #27312D; --rule2: #1F2825; --accent: #4CB9A2; --accentInk: #7FD3C0; --accentSoft: #16302A; --onAccent: #0B1210;
    --goodText: #6FD39B; --goodSoft: #15291F; --goodMark: #3A9E66; --badText: #F0928A; --badSoft: #2E1A18; --badMark: #D4665D;
    --warnText: #E8B35E; --warnSoft: #2C2414; --neutralText: #B7C1BC; --neutralSoft: #1F2825; --neutralMark: #55625D;
    --newRow: #13251F; --shadow: 0 8px 24px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1311; --surface: #151C19; --sunk: #1B2421; --ink: #E4EAE6; --ink2: #C2CCC7; --muted: #9AA7A1; --faint: #6F7C76;
  --rule: #27312D; --rule2: #1F2825; --accent: #4CB9A2; --accentInk: #7FD3C0; --accentSoft: #16302A; --onAccent: #0B1210;
  --goodText: #6FD39B; --goodSoft: #15291F; --goodMark: #3A9E66; --badText: #F0928A; --badSoft: #2E1A18; --badMark: #D4665D;
  --warnText: #E8B35E; --warnSoft: #2C2414; --neutralText: #B7C1BC; --neutralSoft: #1F2825; --neutralMark: #55625D;
  --newRow: #13251F; --shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accentInk); text-decoration: underline; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--cond); font-weight: 600; letter-spacing: -0.005em; text-wrap: balance; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.up { color: var(--goodText); }
.dn { color: var(--badText); }
.wn { color: var(--warnText); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- pills, tags, chips, buttons */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1; }
.p-good { background: var(--goodSoft); color: var(--goodText); }
.p-bad { background: var(--badSoft); color: var(--badText); }
.p-warn { background: var(--warnSoft); color: var(--warnText); }
.p-neutral { background: var(--neutralSoft); color: var(--neutralText); }
.p-accent { background: var(--accentSoft); color: var(--accent); }
.p-line { border: 1px solid var(--rule); color: var(--muted); font-weight: 500; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; }
.t-said { background: var(--ink); color: var(--bg); }
.t-calc { border: 1px solid var(--accent); color: var(--accent); }
.t-reported { background: var(--neutralSoft); color: var(--neutralText); }
.t-guided { background: var(--accentSoft); color: var(--accent); }
.t-target { border: 1px solid var(--accent); color: var(--accent); }
.t-analyst { border: 1px dashed var(--faint); color: var(--muted); }
.t-conflict { background: var(--warnSoft); color: var(--warnText); }
.t-deflected { background: var(--badSoft); color: var(--badText); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); font-size: 13px; color: var(--ink2); white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .ct { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.chip.on .ct { color: var(--bg); opacity: .75; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 600; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--onAccent); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; align-items: center; height: 32px; padding: 0 12px; font-size: 13px; color: var(--muted); border: 0; border-right: 1px solid var(--rule); background: none; }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--sunk); color: var(--ink); font-weight: 600; }
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--rule); }
.top-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 28px; height: 56px; padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .mark { width: 24px; height: 24px; border-radius: 5px; background: var(--accent); display: grid; place-items: center; }
.brand .mark svg { stroke: var(--onAccent); width: 16px; height: 16px; fill: none; stroke-width: 2; }
.nav { display: flex; gap: 24px; height: 100%; }
.nav a { display: flex; align-items: center; height: 100%; color: var(--ink2); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
/* Five nav items (Latest results added, Oct 2026): tighter gaps and a narrower search before the phone layout. */
@media (max-width: 1280px) { .top-in { gap: 20px; } .nav { gap: 18px; } .search { width: 300px; } }
/* Tablets and small laptops: the nav gets its own row under the brand and search, as on phones. */
@media (max-width: 1024px) and (min-width: 761px) {
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; row-gap: 6px; }
  .nav { order: 3; width: 100%; height: 40px; overflow-x: auto; }
  .search { width: 340px; }
}
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.search { position: relative; margin-left: auto; width: 380px; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.search input:focus { outline: 2px solid var(--accentSoft); border-color: var(--accent); }
.search .icon { position: absolute; left: 12px; top: 11px; color: var(--muted); }
.suggest { position: absolute; top: 42px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid var(--rule2); }
.suggest a:last-child { border-bottom: none; }
.suggest a:hover, .suggest a.sel { background: var(--sunk); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; }
.theme { width: 32px; height: 32px; margin-right: -16px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink2); display: grid; place-items: center; padding: 0; flex-shrink: 0; }
.theme:hover { color: var(--ink); border-color: var(--faint); }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font-weight: 600; font-size: 12px; overflow: hidden; border: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: absolute; right: 32px; top: 52px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; min-width: 220px; z-index: 30; }
.menu .mi { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; border: 0; background: none; color: var(--ink); }
.menu .mi:hover { background: var(--sunk); text-decoration: none; }
.page { max-width: 1440px; margin: 0 auto; padding: 28px 32px 48px; }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h1 { font-size: 32px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.ph h3 { font-size: 17px; }
.pb { padding: 16px 18px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- stats strip */
.stats { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; margin-bottom: 20px; }
.stat { padding: 18px 20px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: none; }
.stat .big { font-family: var(--cond); font-weight: 600; font-size: 28px; line-height: 1; }
.bar { display: flex; height: 8px; gap: 2px; border-radius: 3px; overflow: hidden; background: var(--sunk); max-width: 360px; }
.bar span { display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }

/* ---------- tables */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface); position: sticky; top: 56px; }
/* A table inside a horizontal scroller cannot use a sticky header: it would stick 56px down inside the scroller
   and cover the first row. */
.tblwrap { overflow-x: auto; }
.tbl.flat th { position: static; }
.tbl td { padding: 12px 12px; border-bottom: 1px solid var(--rule2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--sunk); }
.tbl .r { text-align: right; }
.tbl .sub { font-size: 12px; color: var(--muted); }
/* Why a result is not scored ("Too small to score: ..."), under the pill on Latest results. */
.sub.why, .mcard .why { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: normal; max-width: 36ch; line-height: 1.35; }
.coname { font-weight: 600; color: var(--ink); }
.metric { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.metric b { font-weight: 600; }
.flag { display: inline-flex; gap: 6px; align-items: flex-start; padding: 4px 8px; border-radius: 4px; background: var(--warnSoft); color: var(--warnText); font-size: 12px; font-weight: 600; max-width: 170px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- company page */
.cohead { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.cohead h1 { font-size: 34px; }
.price { text-align: right; }
.price .big { font-family: var(--cond); font-size: 26px; font-weight: 600; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; background: var(--warnSoft); color: var(--warnText); margin-bottom: 16px; font-size: 13px; }
.notice.info { background: var(--sunk); color: var(--ink2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin: 6px 0 20px; overflow-x: auto; }
.tab { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab .ct { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.cards3 { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.score { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 8px; }
.score .n { font-family: var(--cond); font-size: 56px; font-weight: 600; line-height: .9; }
.score .of { color: var(--muted); font-size: 15px; }
.minitab { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; font-size: 13px; }
.minitab td, .minitab th { padding: 6px 0; border-top: 1px solid var(--rule2); }
.minitab th { text-align: left; font-weight: 600; color: var(--ink); }
.minitab td.r { font-weight: 600; }
.minitab td.r { text-align: right; }
/* Results card title: "Latest results" with its quarter in a pill (filled for the latest, grey for earlier ones). */
.ctitle { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.qpill { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 5px; background: var(--sunk); color: var(--ink); }
.qpill.on { background: var(--accent); color: var(--onAccent); }
.qseg button { font-family: var(--mono); font-size: 12.5px; }
.qseg button.on { background: var(--ink); color: var(--bg); }
.gl { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule2); font-size: 13px; }
.gl:first-child { border-top: none; }
.lock { position: relative; border: 1px dashed var(--rule); border-radius: 8px; padding: 18px; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 8px, var(--sunk) 8px, var(--sunk) 9px); }
.lock .cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lock ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); filter: blur(0.4px); }

/* ---------- note */
.note .headline { font-family: var(--cond); font-size: 24px; font-weight: 600; line-height: 1.25; margin: 4px 0 14px; text-wrap: pretty; }
.takeaways { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.takeaways li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.takeaways .k { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.nsec { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--rule); }
.nsec h4 { font-size: 18px; margin-bottom: 10px; }
.nb { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.nb li { line-height: 1.5; }
.nb b, .takeaways b { font-weight: 600; }
.src { border: 0; background: none; padding: 0 0 0 4px; color: var(--muted); font-size: 12px; vertical-align: -2px; }
.src .icon { width: 15px; height: 15px; }
.nowrap { white-space: nowrap; }
.src:hover { color: var(--accent); }
.quote { display: block; margin: 6px 0 2px; padding: 8px 12px; background: var(--sunk); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--ink2); font-style: italic; }
.taglist { display: inline-flex; gap: 4px; margin-left: 6px; }

/* ---------- financials bars */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 120px; padding: 8px 4px 0; }
.bars div { background: var(--accent); opacity: .8; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars div.neg { background: var(--badMark); }
.barlabels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px 4px 0; font-family: var(--mono); font-size: 10px; color: var(--muted); text-align: center; }

/* ---------- prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: 34px; margin-bottom: 10px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink2); line-height: 1.6; margin-bottom: 10px; }
.prose pre { background: var(--sunk); padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.prose table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; }
.prose td, .prose th { border-bottom: 1px solid var(--rule); padding: 8px 6px; text-align: left; font-size: 13px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.plans .panel { padding: 22px; }
.plans .price { text-align: left; font-family: var(--cond); font-size: 30px; font-weight: 600; margin: 8px 0 14px; }
.plans ul { padding-left: 18px; margin: 0; }
/* Pricing (owner, Oct 2026): free, 1 month, 3 months side by side; the free summaries stand out on the free card. */
.prose.pricing { max-width: 1080px; }
.prose.pricing > p { max-width: 760px; }
.pricing .plans { align-items: stretch; }
.popts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.popt { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.popt.best { border-color: var(--accent); background: var(--accentSoft); }
.popt .price { margin: 0; font-size: 26px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; }
.plan .price { margin-bottom: 2px; }
.plan ul { margin-top: 12px; }
.plan li { margin-bottom: 6px; }
.plan-paid { border-color: var(--accent); }
.plan-badge { position: absolute; top: -11px; right: 16px; }
.plan-cta { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.plan-cta .btn[disabled] { opacity: .7; cursor: not-allowed; }
.freehl { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--accentSoft); color: var(--ink); }
.freehl .icon { color: var(--accent); flex: none; width: 20px; height: 20px; margin-top: 1px; }
.freehl b { display: block; color: var(--accentInk); }
/* Pricing round 2 (owner, Oct 2026): compact Free card, one card per paid plan with its own large button, the
   3-month plan highlighted. Phones: 3 months, then 1 month, then Free. */
.plans3 { grid-template-columns: .82fr 1fr 1fr; gap: 18px; align-items: stretch; }
.plans3 .panel { padding: 24px; }
.price-big { font-family: var(--cond); font-size: 46px; font-weight: 700; line-height: 1; margin: 12px 0 6px; color: var(--ink); }
.price-big.small-price { font-size: 32px; }
.price-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price-sub b { color: var(--goodText); }
.plans3 .btn.big { height: 50px; font-size: 15.5px; border-radius: 8px; margin-top: 0; }
.plans3 .btn.big.primary { box-shadow: 0 4px 14px rgba(14, 110, 92, .28); }
.plan-paid .btn.wide { margin-top: 0; }
.plan-best { border: 2px solid var(--accent); background: linear-gradient(180deg, var(--accentSoft) 0, var(--surface) 170px); box-shadow: var(--shadow); }
.plan-free { background: var(--surface); }
.plan-free .freehl { margin-top: 0; }
.perks-lbl { margin-top: 20px; }
ul.ticks { list-style: none; padding: 0; margin: 10px 0 0; }
ul.ticks li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-size: 14px; }
ul.ticks li .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
ul.small-ticks li { font-size: 13px; }
.extend-note { margin: 8px 0 0; }
.plans-note { margin: 12px 2px 0; }
@media (max-width: 960px) {
  .plans3 { grid-template-columns: 1fr; }
  .plans3 .plan-best { order: -2; }
  .plans3 .plan-paid:not(.plan-best) { order: -1; }
}

/* The free way into a locked AI summary, at the top of the note: hard to miss. */
.freebar { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accentSoft); }
.freebar > .icon { color: var(--accent); flex: none; width: 22px; height: 22px; }
.freebar .fb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.freebar .fb-text b:first-child { color: var(--accentInk); font-size: 15px; }
.freebar .fb-text span { color: var(--ink2); font-size: 13px; }
.freebar .btn { flex: none; }
.lock-free { border-style: solid; border-color: var(--accent); }
.lock-free .btn { white-space: normal; text-align: left; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.row.wrap { flex-wrap: wrap; }

/* ---------- payments: Pay buttons, the pay dialog, the payment page */
.popt .btn { margin-top: 10px; align-self: flex-start; }
.plan-cta p { margin: 0; }
.test-note { color: var(--warnText); }
.pay-card h2 .muted { font-weight: 500; font-size: .7em; }
.fld { display: flex; flex-direction: column; gap: 6px; margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--ink2); }
.fld input { height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 16px; font-family: inherit; }
.fld input:focus { outline: 2px solid var(--accentSoft); border-color: var(--accent); }
.fld-help { margin-top: 6px; }
.pay-err { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--badSoft); color: var(--badText); font-size: 13px; }
.btn.wide { width: 100%; margin-top: 14px; height: 44px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.pay-fine { margin-top: 10px; }
.pay-card .notice { margin: 12px 0 0; }
.paywrap { max-width: 560px; margin: 32px auto; padding: 0 16px; }
.paystate { text-align: left; }
.paywrap .paystate { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; }
.paystate > .icon { width: 34px; height: 34px; color: var(--accent); }
.paystate.ok > .icon { color: var(--goodText); }
.paystate.bad > .icon { color: var(--badText); }
.paystate h2 { margin: 8px 0 6px; }
.paystate p { color: var(--ink2); }
.pay-facts { margin: 16px 0 6px; padding: 16px 18px; grid-template-columns: 140px 1fr; }
.empty.paystate { text-align: center; }

/* ---------- modal, toast, footer */
.modal { position: fixed; inset: 0; background: rgba(10, 16, 13, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .box { background: var(--surface); border-radius: 10px; padding: 24px; width: 420px; max-width: 100%; box-shadow: var(--shadow); }
.modal h3 { font-size: 22px; margin-bottom: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-size: 13px; z-index: 60; }
.foot { border-top: 1px solid var(--rule); margin-top: 40px; background: var(--surface); }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 28px 32px 32px; display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.foot-brand { max-width: 620px; display: flex; flex-direction: column; gap: 10px; }
.foot-name { font-family: var(--cond); font-weight: 700; font-size: 17px; color: var(--ink); }
.foot-name .iq { color: var(--accent); }
.foot-name .muted { font-family: var(--sans); font-weight: 500; font-size: 13px; }
.foot-in p { line-height: 1.6; }
.foot-copy { color: var(--faint); }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.foot-cols .lbl { margin-bottom: 2px; }
.foot-cols a { color: var(--ink2); font-size: 13px; }
.foot-cols a:hover { color: var(--accent); }

/* ---------- policy pages: side list of every policy, the page itself in prose */
.legal { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 48px; align-items: start; }
.legal-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.legal-nav .lbl { margin-bottom: 8px; }
.legal-nav a { padding: 7px 10px; border-radius: 6px; color: var(--ink2); font-size: 13.5px; border-left: 2px solid transparent; }
.legal-nav a:hover { background: var(--sunk); text-decoration: none; color: var(--ink); }
.legal-nav a.on { color: var(--ink); font-weight: 600; background: var(--sunk); border-left-color: var(--accent); border-radius: 0 6px 6px 0; }
.legal-body h1 { margin-top: 6px; }
.legal-body h2 { font-size: 19px; margin: 26px 0 8px; }
.legal-body ul { padding-left: 20px; margin: 0 0 10px; }
.legal-body code { font-family: var(--mono); font-size: 12.5px; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.legal-meta { font-family: var(--mono); font-size: 12px; color: var(--muted) !important; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 18px !important; }
.contact-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px 18px; margin: 18px 0 20px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; }
.contact-card dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact-card dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.5; }
.plan-notes { margin-top: 22px; padding: 18px 20px; background: var(--sunk); border-radius: 8px; }
.plan-notes p { font-size: 13px; margin-bottom: 8px; }
.plan-notes p:last-child { margin-bottom: 0; }

/* ---------- sign-in: one card for the dialog and the /signin page */
.si-card { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 32px 32px 22px; width: 440px; max-width: 100%; box-shadow: var(--shadow); }
.si-card.in-dialog { animation: si-in .16s ease-out; }
@keyframes si-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.si-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; padding: 0; }
.si-x:hover { background: var(--sunk); color: var(--ink); }
.si-brand { display: flex; align-items: center; gap: 9px; font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 22px; }
.si-brand .iq { color: var(--accent); }
.si-brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.si-brand .mark svg { stroke: var(--onAccent); width: 18px; height: 18px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.si-card h2 { font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.si-sub { color: var(--ink2); font-size: 14.5px; line-height: 1.5; margin-bottom: 20px !important; }
.si-perks { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; }
.si-perks li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); line-height: 1.4; }
.si-perks .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.si-btn { min-height: 44px; display: flex; justify-content: center; margin-bottom: 18px; }
.si-btn > div { width: 100%; display: flex; justify-content: center; }
.si-btn .notice { width: 100%; margin: 0; }
.si-btn-skel { width: 100%; max-width: 340px; height: 42px; border-radius: 6px; background: var(--sunk); animation: pulse 1.2s infinite ease-in-out; }
.si-fine { font-size: 12px; color: var(--muted); line-height: 1.55; text-align: center; margin-bottom: 18px !important; }
.si-foot { border-top: 1px solid var(--rule2); padding-top: 14px; text-align: center; font-size: 12px; color: var(--faint); }
.si-modal { background: rgba(10, 16, 13, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.si-page { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; max-width: 1080px; margin: 24px auto 0; min-height: 62vh; }
.si-pitch h1 { font-size: 40px; line-height: 1.1; margin: 10px 0 16px; }
.si-pitch > p { color: var(--ink2); font-size: 16px; line-height: 1.6; margin-bottom: 18px; max-width: 540px; }
.si-pitch ul { padding-left: 18px; margin: 0 0 20px; color: var(--ink2); line-height: 1.9; font-size: 14.5px; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 16px; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-nav .lbl { width: 100%; margin-bottom: 0; }
  .legal-nav a, .legal-nav a.on { border: 1px solid var(--rule); border-radius: 16px; padding: 5px 11px; font-size: 12.5px; }
  .legal-nav a.on { border-color: var(--ink); }
  .si-page { grid-template-columns: 1fr; gap: 28px; margin-top: 0; min-height: 0; }
  .si-page .si-card { margin: 0 auto; order: -1; }
  .si-pitch h1 { font-size: 30px; }
}
@media (max-width: 760px) {
  .foot-in { padding: 24px 16px 28px; gap: 28px; }
  .foot-cols { gap: 28px; }
  .contact-card { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .contact-card dd { margin-bottom: 10px; }
  .si-card { padding: 26px 20px 18px; }
  .si-card h2 { font-size: 23px; }
  .si-modal { align-items: end; padding: 0; }
  .si-modal .si-card { width: 100%; border-radius: 16px 16px 0 0; border-bottom: 0; }
}
.skel { height: 14px; background: var(--sunk); border-radius: 4px; margin: 8px 0; animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- small screens */
.cards-m { display: none; }
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .search { width: 260px; }
}
@media (max-width: 760px) {
  .top-in { gap: 12px; padding: 0 16px; height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; height: 36px; gap: 18px; overflow-x: auto; }
  .search { order: 4; width: 100%; margin-left: 0; }
  .theme { margin-left: auto; margin-right: 0; }
  .who { margin-left: 0; }
  .page { padding: 18px 16px 40px; }
  .pagehead h1, .cohead h1 { font-size: 26px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2n) { border-right: none; }
  .tbl-wide { display: none; }
  .cards-m { display: flex; flex-direction: column; gap: 10px; }
  .mcard { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
  .mcard:hover { text-decoration: none; }
  .plans { grid-template-columns: 1fr; }
  .freebar { flex-wrap: wrap; }
  .freebar .btn { width: 100%; justify-content: center; }
  .menu { right: 16px; }
  .tbl th { position: static; }
  .price { text-align: left; }
}

/* Paywall: a latest-period score the viewer does not have (the server never sent it) */
.p-lock { border: 1px dashed var(--rule); color: var(--muted); font-weight: 500; background: var(--sunk); }
.p-lock .icon { width: 12px; height: 12px; }
.lockedcell { opacity: .85; }
.score.greyed { opacity: .45; filter: grayscale(1); user-select: none; }
.score.greyed .n { letter-spacing: 4px; }
/* Price move after past results */
.move { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule2); }
.move .big2 { font-family: var(--cond); font-size: 28px; font-weight: 600; line-height: 1; }
.mvidx { margin-top: 6px; font-size: 14px; }
.mvspan { font-size: 13px; color: var(--ink2); line-height: 1.35; }
.seg button .icon { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; display: inline-block; }

/* Note navigator: a quarter's deck, call and press release side by side; other events below. */
.notenav { display: grid; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.notenav .ngrp { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notenav .ngrp > .lbl { min-width: 92px; }
.notenav .nbtns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.notenav .chip.nmiss { border-style: dashed; color: var(--muted); background: transparent; }
.notenav .chip.nmiss:hover { color: var(--ink2); text-decoration: none; }
.notenav .chip.nmiss .icon { width: 13px; height: 13px; }
.notenav .chip { cursor: pointer; font: inherit; font-size: 13px; }
.notenav details summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; }
.notenav details[open] { display: grid; gap: 8px; }

/* Company page: latest results (premium) and previous results with the price move after them, side by side. */
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }

@media (max-width: 760px) { .cards2 { grid-template-columns: 1fr; } }

/* ---------- Oct 2026 round 2: brand, watchlist stars, spotlight, AI summaries, company sections, watchlist cards */
.brand .iq { color: var(--accent); }
.crumb .lbl .icon { width: 13px; height: 13px; vertical-align: -2px; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
/* Latest results cards: six filed figures, three a row. */
.mgrid.m3 { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
.chips { margin-bottom: 14px; }

/* Watchlist star: next to a company in every list; filled when the company is on the watchlist. */
.star { display: inline-grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--faint); padding: 0; margin-top: -3px; }
.star .icon { width: 18px; height: 18px; }
.star:hover { color: var(--warnText); background: var(--warnSoft); }
.star.on { color: #D9961A; }
.star.on .icon { fill: currentColor; }
.corow { display: flex; gap: 6px; align-items: flex-start; }
.watchon { background: var(--accentSoft); border-color: transparent; color: var(--accent); cursor: default; }
.coact { gap: 10px; }

/* Season stats: the guidance and AI summary tiles open their pages. */
a.stat { color: inherit; }
a.stat:hover { text-decoration: none; background: var(--sunk); }
.stat .go { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: auto; }
.stat .go .icon, .ph a .icon, .sgo .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* Spotlight above the results: latest guidance changes and AI summaries, side by side (swipeable on phones). */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; align-items: start; }
.spot .ph a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sitems { display: flex; flex-direction: column; }
.gmini { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--rule2); color: var(--ink); }
.gmini .row { flex-wrap: nowrap; align-items: flex-start; }
.gmini .coname { flex: 1; min-width: 0; }
.gmini .spacer { display: none; }
.gmini:first-child { border-top: none; padding-top: 0; }
.gmini:hover { text-decoration: none; }
.gmini:hover .coname { color: var(--accent); }
.gmini .icon { width: 12px; height: 12px; vertical-align: -1px; }
.ink { color: var(--ink); }
.sitem { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--rule2); color: var(--ink); }
.sitem:first-child { border-top: none; padding-top: 0; }
.sitem:hover { text-decoration: none; }
.sitem:hover .coname { color: var(--accent); }
.hl { font-size: 13px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Spotlight lists: about five items show, the rest scroll inside the panel. */
.sscroll { max-height: 330px; overflow-y: auto; }
@media (min-width: 761px) { .spot .sitem .hl { -webkit-line-clamp: 1; } }
/* Phone section tabs on the home page (hidden on wide screens, where every section shows). */
.mtabs { display: none; }

/* AI summary marks */
.p-ai { background: var(--accentSoft); color: var(--accent); align-self: flex-start; }
.p-ai .icon, .jump .icon, .btn .icon { width: 14px; height: 14px; }
.p-new { background: var(--goodSoft); color: var(--goodText); }

/* Company page: section headings and the jump bar */
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 6px; }
.jump a { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 15px; background: var(--surface); color: var(--ink2); font-size: 13px; }
.jump a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
h2.sect { font-size: 21px; margin: 24px 0 12px; scroll-margin-top: 76px; display: flex; align-items: center; gap: 8px; }
h2.sect .icon { width: 18px; height: 18px; color: var(--accent); }
h2.sect .ct { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--muted); }
.sectsub { margin: -6px 0 12px; }
.nhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.nhead h3 { font-size: 20px; }
.notenav > .lbl { margin-bottom: 2px; }

/* Watchlist cards */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wcard { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.wcard:hover { border-color: var(--faint); }
.wcard.fresh { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); background: var(--newRow); }
.wcard .coname { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wfoot { border-top: 1px solid var(--rule2); padding-top: 8px; }
.wfoot a { display: inline-flex; align-items: center; gap: 4px; }
.wfoot .icon { width: 13px; height: 13px; }

/* Summary picker: about three quarters visible, the rest scroll. */
.nqs { display: grid; gap: 8px; max-height: 120px; overflow-y: auto; padding-right: 4px; }
.nqs.more { border-bottom: 1px dashed var(--rule); padding-bottom: 6px; }
.nqhint { margin-top: -2px; }

/* Watchlist table */
.wsort { margin-bottom: 12px; }
.wsort .chip { cursor: pointer; font: inherit; font-size: 13px; }
.wtbl th.sortable { cursor: pointer; user-select: none; }
.wtbl th.sortable:hover, .wtbl th.sortable.on { color: var(--ink); }
.wtbl tr.fresh td { background: var(--newRow); }
.wtbl tr.fresh td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.nlink { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.nlink .icon { width: 13px; height: 13px; }
.wnote { border-top: 1px solid var(--rule2); padding-top: 8px; }
.cards-m .wcard { margin-bottom: 10px; }

/* AI summaries page */
.srow { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--rule2); color: var(--ink); }
.srow:hover { background: var(--sunk); text-decoration: none; }
.srow:hover .coname { color: var(--accent); }
.sdate { display: flex; flex-direction: column; }
.smain { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.smain .hl { font-size: 14px; -webkit-line-clamp: 3; }
.sgo { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* The results table scrolls inside its own box (about six rows show), with its header kept in view; columns sort. */
.feedwrap { max-height: 470px; overflow: auto; }
.feedwrap .tbl th { top: 0; z-index: 1; }
.tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortable:hover, .tbl th.sortable.on { color: var(--ink); }
.tbl th .arr { margin-left: 4px; font-size: 9px; color: var(--faint); }
.tbl th.on .arr { color: var(--accent); }
.msort { display: none; }
@media (max-width: 760px) {
  .mtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--sunk); border-radius: 10px; }
  .mtabs button { border: 0; background: none; border-radius: 7px; padding: 9px 4px; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mtabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
  .mtabs .ct { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); }
  .spot { display: block; margin-bottom: 0; }
  .home [data-ms] { display: none; }
  .home[data-show="results"] [data-ms="results"], .home[data-show="guidance"] [data-ms="guidance"], .home[data-show="ai"] [data-ms="ai"] { display: block; }
  .home .sscroll { max-height: none; }
  .msort { display: block; padding: 12px 16px 0; }
  .msort select { margin-left: 6px; height: 32px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; padding: 0 8px; }
  .home .cards-m { max-height: 70vh; overflow-y: auto; }
  .home .spot > .panel { margin-bottom: 18px; }
  .nav a { white-space: nowrap; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats .stat { padding: 14px 12px; border-bottom: none; border-right: 1px solid var(--rule); }
  .stats .stat:first-child { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--rule); padding: 16px; }
  .stats .stat:last-child { border-right: none; }
  .stats .stat:not(:first-child) > .small.muted { display: none; }
  .stats .stat .big { font-size: 24px; }
  .stats .lbl { font-size: 10px; }
  .legend { gap: 6px 14px; }
  .mcard { cursor: pointer; }
  .srow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .sdate { flex-direction: row; gap: 6px; }
  .sgo { display: none; }
  .coact { width: 100%; }
  .nhead .btn { width: 100%; }
  h2.sect { font-size: 19px; }
  .note .headline { font-size: 19px; }
  .wgrid { grid-template-columns: 1fr; }
  .nqs { max-height: 240px; }
}
