/* SoleStats look (2026-11-21): light grey page, white rounded cards without borders, small grey labels over big
   heavy numbers, one orange accent, blue bars for comparisons, green pills for deltas. */
:root { --ink: #111; --paper: #f3f3f3; --card: #fff; --accent: #fc5200; --muted: #6f6f78; --line: #ececec; --bar: #2f5fd6; --bar-soft: #c9d6f5; --good-bg: #dff5cd; --good-ink: #2f6b1a; --warn-bg: #fff2c2; --warn-ink: #6b4f00; --track: #803629; --track-deep: #6e2d22; --lane: #fff; --cream: #f6ebe0; --radius: 18px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05); }
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { margin: 0; }
a { color: var(--ink); }
.engines, main, footer, .edition-foot { max-width: 960px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
/* The track: a full-width brick-red band with a white lane line along its bottom edge. */
.hero { background: var(--track); color: #fff; padding: 28px max(16px, calc((100% - 960px) / 2)) 22px; border-bottom: 3px solid var(--lane); box-shadow: inset 0 -12px 0 var(--track), inset 0 -14px 0 var(--lane); }
.hero.small { padding-bottom: 18px; }
.brand { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); margin: 0 0 6px; font-size: 13px; }
.brand a { text-decoration: none; color: inherit; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.03em; font-weight: 800; color: #fff; }
.hero .muted, .hero .edition { color: var(--cream); opacity: .9; }
.hero .edition .pending { color: #ffd2a8; }
.hero [data-def] { text-decoration-color: rgba(255,255,255,.6); }
h2 { font-size: 22px; margin: 28px 0 10px; letter-spacing: -.02em; font-weight: 800; }
h3 { font-size: 17px; margin: 0 0 12px; font-weight: 800; }
.muted { color: var(--muted); }
.lookup { display: flex; gap: 8px; max-width: 520px; }
.lookup input { flex: 1; font: inherit; padding: 13px 16px; border: 0; border-radius: 999px; background: var(--card); min-width: 0; }
.lookup button { font: inherit; font-weight: 700; padding: 13px 20px; border: 0; background: var(--ink); color: #fff; border-radius: 999px; cursor: pointer; }
.edition { font-size: 14px; margin: 14px 0 0; color: var(--muted); }
.edition .pending { color: var(--accent); font-weight: 700; }
.notice { display: inline-block; margin-top: 12px; padding: 6px 12px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 999px; font-size: 13px; font-weight: 700; }
.engines { padding-top: 16px; }
.engine-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.engine { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.engine .name { font-weight: 800; font-size: 15px; display: inline-block; }
.engine .name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.engine .model { font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 2px; }
.engine .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.engine .stat { font-size: 13px; color: var(--muted); margin-top: 2px; }
.engine.pending { box-shadow: none; border: 2px dashed #ddd; background: transparent; color: var(--muted); }
.engine.pending .name::before { background: #ccc; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 12px 0; }
/* Lanes: the tables sit on the track, each row a lane, white lane lines between them. */
.table-wrap { background: var(--track); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 4px 0 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 2px solid var(--lane); white-space: nowrap; }
th { font-size: 12px; font-weight: 700; color: var(--cream); background: var(--track); position: sticky; top: 0; letter-spacing: .02em; text-transform: uppercase; }
tbody tr:nth-child(even) td { background: var(--track-deep); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; font-weight: 700; color: #fff; }
td .lane { display: inline-block; min-width: 1.6em; color: var(--cream); font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 6px; opacity: .85; }
.table-wrap [data-def] { text-decoration-color: rgba(255,255,255,.55); }
.table-wrap .empty { color: var(--cream); }
.barcell { width: 44%; min-width: 150px; }
.bar { display: flex; align-items: center; gap: 10px; width: 100%; }
.bar .track { flex: 1 1 auto; min-width: 80px; }
.bar .fill { height: 22px; border-radius: 8px; background: var(--lane); }
.bar .val { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2.2em; color: #fff; }
.score.none { color: rgba(255,255,255,.45); font-weight: 500; }
.margin { color: var(--cream); opacity: .8; font-size: 12px; margin-left: 4px; font-weight: 500; }
.subject .margin { color: var(--muted); }
.pill { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; background: var(--good-bg); color: var(--good-ink); }
.pill.grey { background: #eee; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills .pill { white-space: nowrap; }
.example .q .pill { font-size: 11px; padding: 2px 6px; vertical-align: 1px; }
.empty { padding: 20px 16px; color: var(--muted); }
.downloads { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.downloads a { display: inline-block; padding: 9px 14px; border: 1.5px solid #ddd; border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 600; font-size: 14px; }
.downloads a:hover { border-color: var(--accent); color: var(--accent); }
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.subject { padding: 14px 16px; border-radius: 14px; background: #fafafa; }
.subject .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.subject .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.example { border-left: 3px solid var(--line); padding: 4px 12px; margin: 12px 0; font-size: 14px; }
.example .q { font-weight: 700; }
.example .a { white-space: pre-wrap; color: #333; max-height: 160px; overflow: hidden; }
footer { padding-top: 28px; padding-bottom: 48px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-def] { cursor: help; text-decoration: underline dotted; text-decoration-color: #bbb; text-underline-offset: 3px; }
.tip { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; z-index: 10; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tip b { display: block; margin-bottom: 2px; }
main.prose { max-width: 720px; }
main.prose p, main.prose li { line-height: 1.55; }
.defs dt { font-weight: 800; margin-top: 14px; }
.defs dd { margin: 2px 0 0; color: #333; }
@media (max-width: 640px) { .sec { display: none; } .barcell { width: 62%; min-width: 0; } .margin { display: none; } .hero { padding-top: 20px; } .lookup { flex-direction: column; } .lookup button { width: 100%; } }

/* Revenue card: reported figures, context only */
.revenue { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.revenue .label { font-size: 13px; color: var(--muted); }
.revenue .big { font-size: 28px; font-weight: 800; }
.revenue .muted { font-size: 13px; }
.revenue .muted a { color: inherit; }
.revenue .big.down { color: var(--muted); }

/* Share of voice page: scatter charts on white cards. One series colour (--bar); rings mark wider revenue figures. */
.chart { width: 100%; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; }
.scatter .grid { stroke: var(--line); stroke-width: 1; }
.scatter .zero { stroke: #b9b9c2; stroke-width: 1.5; }
.scatter .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.scatter .axis-label { font-size: 12px; fill: var(--muted); }
.scatter .dot { fill: var(--bar); stroke: var(--card); stroke-width: 2; }
.scatter .dot.ring { fill: var(--card); stroke: var(--bar); stroke-width: 2.5; }
.scatter .hit { fill: transparent; }
.scatter .pt { cursor: pointer; outline: none; }
.scatter .pt:hover .dot, .scatter .pt:focus .dot { stroke: var(--ink); }
.scatter .pt-label { font-size: 12px; fill: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: -4px 0 8px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--bar); }
.legend .swatch.ring { background: var(--card); border: 2.5px solid var(--bar); width: 11px; height: 11px; }
.readout { font-size: 14px; min-height: 2.8em; margin: 6px 0 0; }
.small { font-size: 13px; }
.empty { color: var(--muted); padding: 28px 0; text-align: center; }
td .pm { font-weight: 400; opacity: .75; font-size: 13px; }
.scatter .diag { stroke-dasharray: 4 4; }
.races { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; }
.races .muted a, .races a.muted { color: var(--muted); }
.edition-foot { padding-top: 8px; }

/* Brand by need (2026-11-22): one hue (--bar), light to dark in six fixed steps; numbers always printed, in ink on the
   light steps and white on the two dark ones. On a white card, not the track, so the colours read true. */
.heat-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.heatmap { font-size: 14px; border-collapse: separate; border-spacing: 2px; width: 100%; }
table.heatmap th, table.heatmap td { border: 0; padding: 0; background: var(--card); color: var(--ink); }
table.heatmap tbody tr:nth-child(even) td { background: var(--card); }
table.heatmap th { color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; font-weight: 700; padding: 10px 4px 6px; vertical-align: bottom; white-space: normal; line-height: 1.15; min-width: 48px; text-align: center; }
table.heatmap .stick { position: sticky; left: 0; z-index: 1; padding: 0 10px 0 12px; text-align: left; white-space: nowrap; }
table.heatmap td.stick a { color: var(--ink); font-weight: 700; font-size: 14px; }
table.heatmap td.heat { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; height: 34px; border-radius: 4px; cursor: pointer; outline: none; }
.heat:focus, .heat:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.heat.h0, table.heatmap td.heat.h0 { background: #f1f3f8; color: var(--muted); }
.heat.h1, table.heatmap td.heat.h1 { background: #dfe7f9; color: var(--ink); }
.heat.h2, table.heatmap td.heat.h2 { background: #bccdf3; color: var(--ink); }
.heat.h3, table.heatmap td.heat.h3 { background: #8ba8ea; color: var(--ink); }
.heat.h4, table.heatmap td.heat.h4 { background: #2f5fd6; color: #fff; }
.heat.h5, table.heatmap td.heat.h5 { background: #1c3f99; color: #fff; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; color: var(--muted); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.heat-legend .key { display: inline-flex; align-items: center; gap: 5px; }
.heat-legend .swatch { width: 14px; height: 14px; border-radius: 3px; }
.card .heat-legend { margin: 12px 0 0; }
.need-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.need-tile .label { font-size: 12px; color: var(--muted); font-weight: 600; min-height: 2.4em; line-height: 1.2; }
.need-tile .big { font-size: 22px; font-weight: 800; text-align: center; padding: 8px 0; border-radius: 8px; font-variant-numeric: tabular-nums; cursor: pointer; outline: none; }
table.heatmap { table-layout: fixed; min-width: 660px; }
table.heatmap th.stick { width: 118px; }
.heat-legend .swatch.h0 { box-shadow: inset 0 0 0 1px #d5d9e3; }

/* Head to head (2026-11-22): diverging, orange below an even split, grey around it, blue above. */
.heat.d0 { background: #b84300; color: #fff; }
.heat.d1 { background: #f7c3a3; color: var(--ink); }
.heat.d2 { background: #e6e7ec; color: var(--ink); }
.heat.d3 { background: #bccdf3; color: var(--ink); }
.heat.d4 { background: #2f5fd6; color: #fff; }
table.heatmap td.heat.d0 { background: #b84300; color: #fff; } table.heatmap td.heat.d1 { background: #f7c3a3; }
table.heatmap td.heat.d2 { background: #e6e7ec; } table.heatmap td.heat.d3 { background: #bccdf3; }
table.heatmap td.heat.d4 { background: #2f5fd6; color: #fff; }
table.heatmap td.heat.self { background: repeating-linear-gradient(45deg, #f3f3f6, #f3f3f6 4px, #fff 4px, #fff 8px); cursor: default; }
table.heatmap td.heat.d-none { background: #f6f6f8; color: var(--muted); cursor: default; }
table.heatmap.h2h { min-width: 560px; }
.h2h-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.h2h-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; background: #fafafa; border-radius: 8px; font-size: 14px; }
.h2h-list .heat { min-width: 2.6em; text-align: center; font-weight: 800; border-radius: 6px; padding: 4px 6px; font-variant-numeric: tabular-nums; cursor: pointer; outline: none; }
[hidden] { display: none !important; }

/* Where the sale goes, per brand (2026-11-22): one bar per kind of place, one hue. */
.places { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.places li { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 3em; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; outline: none; border-radius: 6px; }
.places li:focus, .places li:hover { background: #f6f6f8; }
.places .ptrack { height: 16px; background: #f1f3f8; border-radius: 4px; overflow: hidden; }
.places .fill { height: 100%; background: var(--bar); border-radius: 4px; }
.places .pval { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Sources to earn (2026-11-22) */
h4 { font-size: 14px; margin: 16px 0 6px; font-weight: 800; }
.sources { margin: 0; padding-left: 1.6em; display: grid; gap: 4px; font-size: 14px; }
.sources li { line-height: 1.35; }
.sources .dom { font-weight: 700; word-break: break-all; }
.sources .cnt { display: block; color: var(--muted); font-size: 13px; }

/* Engine split under each subject (2026-11-22) */
.by-engine { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: -2px 0 8px; font-size: 12px; }
.by-engine .eng { padding: 2px 6px; border-radius: 6px; background: #eef1f7; color: #333; font-variant-numeric: tabular-nums; cursor: pointer; outline: none; }
.by-engine .eng.low { background: #fde2d3; color: #8a2e00; font-weight: 700; }
.by-engine .eng.low::before { content: "▼ "; font-size: 9px; vertical-align: 1px; }

/* The edition summary (2026-11-22): generated sentences, near the bottom of the index above Engines. */
.summary > div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 20px; }
.summary p { margin: 8px 0; line-height: 1.5; }
.places.models .plabel { display: flex; flex-direction: column; line-height: 1.2; }
.places .sub { font-size: 12px; color: var(--muted); }
table.mini { margin-top: 14px; font-size: 14px; }
table.mini th, table.mini td { color: var(--ink); background: transparent; border-bottom: 1px solid var(--line); padding: 7px 6px; white-space: normal; }
table.mini th { color: var(--muted); font-size: 11px; position: static; }
table.mini tbody tr:nth-child(even) td { background: transparent; }
table.attrs td.up::after { content: " ▲"; font-size: 10px; color: var(--bar); }
table.attrs td.down::after { content: " ▼"; font-size: 10px; color: #b84300; }
table.attrs tr { cursor: pointer; outline: none; }
table.attrs tr:focus td, table.attrs tr:hover td { background: #f6f6f8; }
