/* =====================================================================
   MeleeMarkets — public site design system
   One app column, IBM Plex Mono, orange gradient accents, light + dark.
   Admin keeps its own stylesheet.
   ===================================================================== */

@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-sans.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-sans.woff2') format('woff2'); }

:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F7F7F8; --chip: #F1F1F4; --app-bg: #ECECF0;
  --ink: #09090B; --on-ink: #FFFFFF; --ink-2: #3F3F46; --ink-3: #6B6B75;
  --line: #E4E4E7; --line-2: #F0F0F2; --glass: rgba(255, 255, 255, 0.92);
  --orange: #F05100; --orange-text: #C2410C;
  --o1: #FF8D50; --o2: #FC7F32; --o3: #DD1B11;
  --grad: linear-gradient(135deg, #FF8D50 0%, #DD1B11 100%);
  --positive: #0F8A4B; --negative: #C81E1E; --up: var(--positive); --down: var(--negative);
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --header-h: 56px; --tabbar-h: 0px;
}
:root[data-theme="dark"] {
  --bg: #0C0C10; --surface: #0C0C10; --soft: #121217; --chip: #1A1A21; --app-bg: #050507;
  --ink: #F4F4F5; --on-ink: #09090B; --ink-2: #C6C6CD; --ink-3: #8E8E99;
  --line: #25252C; --line-2: #1A1A20; --glass: rgba(12, 12, 16, 0.9);
  --orange-text: #FF9A63;
  --positive: #34D399; --negative: #F87171;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  min-height: 100dvh;
  font-family: var(--mono); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul[role="list"] { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.up { color: var(--up); }
.down { color: var(--down); }
.is-up { color: var(--up); } .is-down { color: var(--down); } .is-flat { color: var(--ink-3); }


/* ---------- Buttons, chips, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: var(--on-ink); }
.btn--primary { border: 0; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(221, 27, 17, 0.22); }
.btn--primary:hover { background: var(--grad); filter: brightness(1.06); color: #fff; }
.btn--dark { background: var(--ink); color: var(--on-ink); }
.btn--dark:hover { background: var(--orange-text); border-color: var(--orange-text); }
.btn--block { width: 100%; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background .15s, color .15s; }
.chip:hover { background: var(--line-2); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--ink); color: var(--on-ink); }

.tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 1px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.src--polymarket::before { background: #2563EB; }
.src--kalshi::before { background: #12A150; }

/* ---------- Page header (inner pages) ---------- */
.page-head, .category-header { padding: 28px 0 8px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--orange-text); }
.breadcrumb .sep { color: var(--line); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); }
.page-head h1, .category-header__title { margin-top: 10px; font-size: clamp(24px, 6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.page-head p, .category-header__desc { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); max-width: 62ch; }
.category-header__count { margin-top: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.content-layout, .category-header.wrap, .notfound.wrap, .wrap--narrow { width: min(100% - 32px, 760px); }
.wrap--mid { width: min(100% - 32px, 960px); }
.content-layout { display: block; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 0 8px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.section-heading a { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.section-heading a:hover { color: var(--orange-text); }
.empty-note { margin-top: 18px; padding: 28px 16px; border: 1px dashed #C9C9CF; border-radius: var(--radius); text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- Feed rows (headlines, stories) ---------- */
.row { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.row[hidden] { display: none; }
.row__time { padding-top: 3px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.row__meta { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.row__tag { color: var(--orange-text); font-weight: 600; }
.row__title { display: block; margin-top: 6px; font-size: 15px; line-height: 1.42; font-weight: 600; letter-spacing: -0.005em; }
.row__title:hover { color: var(--orange-text); }
.row__title--out::after { content: " \2197"; color: var(--orange-text); font-weight: 700; }
.row__sum { margin-top: 7px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.odds { margin-top: 11px; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; transition: background .15s, color .15s; }
.odds:hover { background: var(--ink); color: var(--on-ink); }
.odds__src { font-weight: 400; color: var(--ink-3); }
.odds:hover .odds__src, .odds:hover .up, .odds:hover .down { color: var(--on-ink); }
.row--move { margin-inline: -12px; padding-inline: 12px; background: linear-gradient(90deg, rgba(255, 141, 80, 0.15), rgba(255, 141, 80, 0) 72%); }
.row--move::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.move { margin-top: 10px; display: flex; align-items: baseline; gap: 12px; }
.move__pct { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.move__chg { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.post-list .row { grid-template-columns: 58px 1fr; }


/* Pull-to-refresh + toast */
.ptr { position: fixed; z-index: 45; top: calc(var(--header-h) + 8px); left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--surface); box-shadow: 0 6px 20px rgba(9, 9, 11, 0.18); display: grid; place-items: center; opacity: 0; transform: translateY(-60px) rotate(0); pointer-events: none; }
.ptr svg { width: 20px; height: 20px; color: var(--orange-text); }
.ptr.is-loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.card p { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }

@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(15, 138, 75, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(15, 138, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 138, 75, 0); } }

/* ---------- Market list rows ---------- */
.mlist { border-top: 1px solid var(--ink); margin-top: 8px; }
.mrow { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.mrow:hover .mrow__title { color: var(--orange-text); }
.mrow__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.mrow__title { margin-top: 6px; font-size: 15.5px; line-height: 1.4; font-weight: 600; }
.mrow__sub { margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.mrow__stat { text-align: right; }
.mrow__prob { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mrow__chg { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; }
.mrow__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.mrow__bar i { display: block; height: 100%; background: var(--grad); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; padding: 14px 0 6px; max-width: 520px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .form-group label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
select, input[type="text"], input[type="email"], input[type="search"], textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; }
select { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2309090B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; font-weight: 600; }
select:focus, input:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(240, 81, 0, 0.18); }
textarea { resize: vertical; min-height: 140px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pagination__ellipsis { border: 0 !important; color: var(--ink-3); min-width: 0 !important; }

/* ---------- Market page ---------- */
.market { padding-top: 22px; }
.market__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.market h1 { margin-top: 12px; font-size: clamp(22px, 5.4vw, 32px); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
.market__meta { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.market__prob { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.market__pct { font-size: clamp(44px, 12vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.market__pct small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-left: 10px; }
.market__chg { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--line-2); }
.market__chg.is-up { background: rgba(15, 138, 75, 0.1); }
.market__chg.is-down { background: rgba(200, 30, 30, 0.1); }
.chartbox { position: relative; margin-top: 18px; padding: 14px 10px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chartbox .sparkline-empty { padding: 28px 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
.market__summary { margin-top: 18px; font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.stats-grid__item { background: var(--surface); padding: 14px 16px; }
.stats-grid dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.stats-grid dd { margin-top: 5px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.resolution-box { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); background: var(--soft); }
.resolution-box h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.resolution-box p { margin-top: 8px; font-family: var(--sans); font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.resolution-box .fine-print { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.market__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fine-print { margin-top: 16px; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }
.fine-print a { text-decoration: underline; text-underline-offset: 3px; }
.share-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.share-row__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.sentiment-widget { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.sentiment-widget h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.sentiment-widget__sub { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.sentiment-widget__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn--yes:hover { background: var(--positive); border-color: var(--positive); }
.btn--no:hover { background: var(--negative); border-color: var(--negative); }
.sentiment-widget__bar { height: 8px; margin-top: 14px; border-radius: 999px; background: rgba(200, 30, 30, 0.25); overflow: hidden; }
.sentiment-widget__bar span { display: block; height: 100%; background: var(--positive); }
.sentiment-widget__tally { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }

/* Probability chart (render_sparkline) */
.sparkline { width: 100%; height: auto; cursor: crosshair; }
.sparkline__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sparkline__axis-label, .sparkline__date-label { font-family: var(--mono); font-size: 9px; fill: var(--ink-3); }
.sparkline__guide { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sparkline__tooltip { position: absolute; top: 0; left: 0; z-index: 5; transform: translate(-50%, -100%); margin-top: -10px; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 11px; white-space: nowrap; pointer-events: none; }
.sparkline__tooltip[hidden], [data-guide][hidden], [data-guide-dot][hidden] { display: none; }
.sparkline-empty { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Compare ---------- */
.cmp-gap { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius); background: var(--soft); font-size: 13px; color: var(--ink-2); }
.cmp-gap strong { color: var(--ink); }
.cmp-grid { display: grid; gap: 16px; margin-top: 18px; }
.cmp-col { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.cmp-col__change { position: absolute; top: 16px; right: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cmp-col__change:hover { color: var(--orange-text); }
.cmp-col__title { margin-top: 12px; font-size: 16px; line-height: 1.4; font-weight: 600; padding-right: 64px; }
.cmp-col__title a:hover { color: var(--orange-text); }
.cmp-col__prob { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.cmp-col__pct { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.cmp-col__chg { font-size: 12px; font-weight: 600; }
.cmp-col__chart { position: relative; margin-top: 14px; }
.cmp-col__vol { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.cmp-picker { position: relative; }
.cmp-search { width: 100%; }
.cmp-hint { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.cmp-results { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cmp-results[hidden] { display: none; }
.cmp-results__msg { padding: 14px; font-size: 12.5px; color: var(--ink-3); }
.cmp-result > .src, .cmp-sugg > .src { grid-column: 1 / -1; }
.cmp-result, .cmp-sugg { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.cmp-result:last-child, .cmp-sugg:last-child { border-bottom: 0; }
.cmp-result:hover, .cmp-sugg:hover { background: var(--soft); }
.cmp-result__title { line-height: 1.35; font-weight: 600; }
.cmp-result__prob { font-weight: 700; }
.cmp-suggs { margin-top: 16px; }
.cmp-suggs > p { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cmp-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.cmp-share p { font-size: 12.5px; color: var(--ink-2); }
.cmp-share__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.cmp-share__btns .share-row { margin-top: 0; }

/* ---------- Articles + prose ---------- */
.article { width: min(100% - 32px, 720px); margin-inline: auto; padding-top: 22px; }
.post-header h1 { margin-top: 12px; font-size: clamp(22px, 5.4vw, 32px); line-height: 1.22; font-weight: 700; letter-spacing: -0.02em; }
.post-header__badges { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.post-byline { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); }
.post-byline img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.post-byline__name { font-weight: 600; color: var(--ink); }
.post-byline p + p { margin-top: 1px; }
.post-correction { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--orange); background: var(--soft); border-radius: 10px; font-size: 13px; }
.post-hero-media { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-prose { margin-top: 22px; font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.post-prose > * + * { margin-top: 1.1em; }
.post-prose h2 { font-family: var(--mono); margin-top: 1.9em; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.post-prose h3 { font-family: var(--mono); margin-top: 1.6em; font-size: 15px; font-weight: 700; color: var(--ink); }
.post-prose a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.post-prose strong { color: var(--ink); font-weight: 600; }
.post-prose ul, .post-prose ol { padding-left: 1.4em; }
.post-prose li + li { margin-top: 0.4em; }
.post-prose blockquote { padding-left: 16px; border-left: 3px solid var(--orange); color: var(--ink); }
.post-prose img, .post-prose video { width: 100%; height: auto; border-radius: 12px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-cloud a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.tag-cloud a:hover { border-color: var(--ink); color: var(--ink); }
.post-sources { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.post-sources__label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.post-sources ul { list-style: none; display: grid; gap: 6px; }
.post-sources a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.author-box { display: flex; gap: 14px; margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); }
.author-box__name { font-weight: 700; font-size: 14px; }
.author-box__role { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.author-box__bio { margin-top: 8px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.author-links a { font-size: 11.5px; font-weight: 600; color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Forms + notices ---------- */
.site-form { margin-top: 24px; max-width: 640px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; }
.form-row { display: grid; gap: 0 16px; }
.form-hint { font-size: 11.5px; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 400; }
.notice { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.notice--success { border-color: var(--positive); background: rgba(15, 138, 75, 0.06); }
.notice--error { border-color: var(--negative); background: rgba(200, 30, 30, 0.05); }
.notfound { padding: 72px 0 40px; }
.notfound h1 { font-size: clamp(24px, 6vw, 34px); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.notfound p { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.notfound a { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface); box-shadow: 0 16px 40px rgba(9, 9, 11, 0.18); }
.cookie-consent[hidden] { display: none; }
.cookie-consent__inner { display: grid; gap: 12px; padding: 16px; }
.cookie-consent p { font-size: 12.5px; }
.cookie-consent a { color: var(--orange-text); text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 8px; }
.cookie-consent .btn { min-height: 40px; padding: 0 16px; }


/* =====================================================================
   APP SHELL — the whole site is one app column (like a phone screen).
   Phone: the column is the screen. Desktop: the same column, centred,
   floating on the page background. Light + dark via [data-theme].
   ===================================================================== */
:root { --bar-h: 56px; --filter-h: 50px; --col: 520px; }
html { background: var(--app-bg); color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; padding: 0; min-height: 100dvh; background: var(--app-bg); }

.app { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 100dvh; background: var(--bg); }
.app--reel { height: 100dvh; min-height: 0; overflow: hidden; }
.app > main { flex: 1; min-width: 0; }

.wrap, .wrap--narrow, .wrap--mid, .content-layout, .category-header.wrap, .notfound.wrap { width: calc(100% - 32px); margin-inline: auto; }
.is-feed .wrap, .is-feed .wrap--narrow { width: calc(100% - 32px); }

/* top bar */
.appbar { position: sticky; top: 0; z-index: 40; flex: none; display: flex; align-items: center; gap: 6px; height: calc(var(--bar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0 16px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.brand i { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); }
.brand span { color: var(--orange-text); }
.appbar__sp { flex: 1; }
.livepill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; margin-right: 4px; border-radius: 999px; background: rgba(240, 81, 0, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 81, 0, 0.28); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); }
.livepill i { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); animation: livepulse 2.2s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(240, 81, 0, 0.45); } 70% { box-shadow: 0 0 0 6px rgba(240, 81, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 81, 0, 0); } }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); -webkit-tap-highlight-color: transparent; transition: background .15s; }
.iconbtn:hover { background: var(--chip); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn .i-sun { display: none; }
html[data-theme="dark"] .iconbtn .i-sun { display: block; }
html[data-theme="dark"] .iconbtn .i-moon { display: none; }

/* slide-out menu (lives inside the column's width) */
.scrim { position: fixed; inset: 0 max(0px, calc(50% - var(--col) / 2)); z-index: 90; background: rgba(5, 5, 8, 0.5); opacity: 0; transition: opacity .2s; }
.scrim:not([hidden]).is-on { opacity: 1; }
.drawer { position: fixed; z-index: 95; top: 0; bottom: 0; right: max(0px, calc(50% - var(--col) / 2)); width: min(86vw, 330px); display: flex; flex-direction: column; gap: 16px; padding: calc(8px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(5, 5, 8, 0.25); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.drawer__search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--chip); color: var(--ink-3); }
.drawer__search svg { width: 18px; height: 18px; flex: none; }
.drawer__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 13.5px; color: var(--ink); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.drawer__nav a svg { width: 20px; height: 20px; color: var(--ink-3); }
.drawer__nav a:hover { background: var(--chip); }
.drawer__nav a[aria-current="page"] { background: rgba(240, 81, 0, 0.1); color: var(--orange-text); }
.drawer__nav a[aria-current="page"] svg { color: var(--orange-text); }
.drawer__more { display: flex; flex-direction: column; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.drawer__more a { padding: 10px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.drawer__more a:hover { color: var(--orange-text); }
body.menu-open { overflow: hidden; }

/* footer bar */
.appfoot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); font-size: 11px; color: var(--ink-3); }
.appfoot__links { display: flex; gap: 14px; overflow: hidden; }
.appfoot__links a { white-space: nowrap; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.appfoot__links a:hover { color: var(--orange-text); }
.appfoot__note { flex-basis: 100%; margin: 4px 0 0; font-size: 10.5px; line-height: 1.5; }
.app--reel .appfoot__note { display: none; }
.app--reel .appfoot { padding-block: 8px calc(8px + env(safe-area-inset-bottom)); }

/* toast, pull-to-refresh */
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.ptr { top: calc(var(--bar-h) + 8px); }

/* ---------- Topic tabs ---------- */
.filterbar { position: static; flex: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.filterbar__in { display: flex; align-items: center; padding-inline: 6px; }
.chips { flex: 1; min-width: 0; gap: 0; height: var(--filter-h); padding: 0; align-items: stretch; }
.is-feed .chip, .chip { position: relative; min-height: 0; height: var(--filter-h); padding: 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink-3); font-size: 12px; letter-spacing: 0.05em; }
.chip:hover, .is-feed .chip:hover { color: var(--ink); background: none; }
.chip[aria-current="true"], .is-feed .chip[aria-current="true"] { background: none; color: var(--ink); }
.chip[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }

/* ---------- Story card ---------- */
.feed { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
.fitem {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 82px 20px 22px; overflow: hidden; border-radius: 0; min-height: 230px;
  background: radial-gradient(120% 50% at 50% 0%, rgba(255, 141, 80, 0.26), rgba(255, 141, 80, 0) 72%), var(--surface);
}
html[data-theme="dark"] .fitem { background: radial-gradient(120% 50% at 50% 0%, rgba(255, 141, 80, 0.2), rgba(255, 141, 80, 0) 72%), var(--surface); }
.fitem__top { display: flex; align-items: center; gap: 8px; min-width: 0; margin-right: -60px; }
.fitem__tag { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(240, 81, 0, 0.45); background: rgba(240, 81, 0, 0.08); color: var(--orange-text); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.fitem--world .fitem__tag { border-color: var(--line); background: var(--chip); color: var(--ink-2); }
.fitem__flag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.fitem__time { flex: none; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fitem__body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; justify-content: flex-end; }
.fitem__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; font-size: clamp(21px, 5.9vw, 27px); line-height: 1.17; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.fitem__sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; font-size: 13.5px; line-height: 1.62; color: var(--ink-2); }
.fitem__foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.fitem__src { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem__read { flex: none; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.fitem__read::before { content: "· "; }

.fitem__body .odds { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 11px 14px; min-height: 0; border: 0; border-left: 3px solid var(--orange); border-radius: 12px; background: rgba(240, 81, 0, 0.08); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--ink); }
.fitem__body .odds:hover { background: rgba(240, 81, 0, 0.15); color: var(--ink); }
.fitem__body .odds .odds__src { margin-right: auto; font-weight: 600; color: var(--ink-2); }
.fitem__body .odds:hover .odds__src { color: var(--ink-2); }
.fitem__body .odds:hover .up { color: var(--up); } .fitem__body .odds:hover .down { color: var(--down); }

.fitem__acts { position: absolute; right: 12px; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 56px; }
.fitem__avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 19px; font-weight: 700; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--o2); }
.act { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 56px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 10.5px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.act svg { box-sizing: content-box; width: 20px; height: 20px; padding: 13px; border-radius: 50%; background: var(--chip); transition: background .15s, transform .12s; }
.act:hover svg { background: var(--line); }
.act:active svg { transform: scale(0.92); }

.move { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.move__pct { font-size: clamp(84px, 24vw, 112px); font-weight: 700; line-height: 0.95; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.move__chg { font-size: 14px; font-weight: 700; }
.fitem--move .fitem__title { -webkit-line-clamp: 4; font-size: clamp(17px, 4.8vw, 21px); }

.fitem--top { color: #fff; background: radial-gradient(120% 70% at 0% 0%, #FF8D50 0%, rgba(255, 141, 80, 0) 60%), radial-gradient(100% 80% at 100% 20%, #DD1B11 0%, rgba(221, 27, 17, 0) 60%), #B3260F; }
html[data-theme="dark"] .fitem--top { background: radial-gradient(120% 70% at 0% 0%, #E8631F 0%, rgba(232, 99, 31, 0) 60%), radial-gradient(100% 80% at 100% 20%, #B3150D 0%, rgba(179, 21, 13, 0) 60%), #7A1A0B; }
.fitem--top .fitem__tag { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.fitem--top .fitem__flag { background: var(--surface); color: var(--o3); }
.fitem--top .fitem__time, .fitem--top .fitem__read, .fitem--top .fitem__sum { color: rgba(255, 255, 255, 0.9); }
.fitem--top .act { color: #fff; }
.fitem--top .act svg { background: rgba(255, 255, 255, 0.2); }
.fitem--top .fitem__avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.fitem--top .odds { background: rgba(255, 255, 255, 0.16); border-left-color: #fff; color: #fff; }
.fitem--top .odds .odds__src { color: rgba(255, 255, 255, 0.85); }

.feed--list .fitem { border-radius: 18px; min-height: 250px; box-shadow: 0 0 0 1px var(--line); }
.feed--list .fitem__title { font-size: 19px; -webkit-line-clamp: 4; }

.more { display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); background: var(--soft); }
.reel__end { display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: var(--soft); font-size: 14px; font-weight: 600; }
.reel__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.reel__links a:hover { color: var(--orange-text); }
.newpill { position: absolute; top: 12px; left: 0; right: 0; z-index: 25; display: flex; justify-content: center; height: 0; overflow: visible; }
.newpill[hidden] { display: none; }
.newpill button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(9, 9, 11, 0.28); }
.newpill i { width: 7px; height: 7px; border-radius: 50%; background: var(--o2); }

/* ---------- The reel: one story per screen ---------- */
.reelmain { position: relative; display: flex; flex-direction: column; min-height: 0; }
.reel { flex: 1; min-height: 0; container-type: size; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; background: var(--surface); }
.reel::-webkit-scrollbar { display: none; }
.reel .feed { display: contents; }
.reel .fitem, .reel .more, .reel .reel__end { height: 100cqh; min-height: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.reel .fitem { border-bottom: 1px solid var(--line); }
.reel .fitem--top { border-bottom: 0; }
.reel .empty-note { margin: 22px; }
.reel__hint { position: fixed; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 30; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; animation: hintfade 4.5s ease forwards; }
@keyframes hintfade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.reel__nav { display: none; }

/* ---------- Desktop: the same app, centred ---------- */
@media (min-width: 768px) {
  .app { width: var(--col); margin: 16px auto; min-height: calc(100dvh - 32px); border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(9, 9, 11, 0.12); overflow: clip; }
  html[data-theme="dark"] .app { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
  .app--reel { height: calc(100dvh - 32px); min-height: 0; }
  .appbar { position: relative; padding-top: 0; height: var(--bar-h); }
  .reel__hint { display: none; }
  .reel__nav { display: flex; flex-direction: column; gap: 10px; position: fixed; z-index: 30; top: 50%; left: calc(50% + var(--col) / 2 + 24px); transform: translateY(-50%); }
  .reel__nav button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 20px; box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(9, 9, 11, 0.1); }
  .reel__nav button:hover { background: var(--ink); color: var(--on-ink); }
  .drawer { top: 16px; bottom: 16px; border-radius: 0 28px 28px 0; border-left: 1px solid var(--line); }
  .scrim { top: 16px; bottom: 16px; border-radius: 28px; }
  .toast { bottom: 40px; }
  .cookie-consent { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
}
@media (max-width: 767.98px) {
  .livepill { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) { .reel__hint { animation: none; opacity: 0; } .drawer, .scrim { transition: none; } * { scroll-behavior: auto !important; } }

/* =====================================================================
   Polish pass: embedded (transparent) header, spacing, market cards
   ===================================================================== */
.brand span { color: inherit; }
.app > main:not(.reelmain) { padding-bottom: 44px; }

/* header + tabs melt into the page instead of sitting on a bar */
.appbar { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .2s, border-color .2s; }
.appbar.is-scrolled { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.filterbar { background: transparent; border-bottom: 0; }
.app:not(.app--reel) { background: radial-gradient(ellipse 100% 300px at 50% 0, rgba(255, 141, 80, 0.2), rgba(255, 141, 80, 0) 100%) no-repeat, var(--bg); }
html[data-theme="dark"] .app:not(.app--reel) { background: radial-gradient(ellipse 100% 300px at 50% 0, rgba(255, 141, 80, 0.16), rgba(255, 141, 80, 0) 100%) no-repeat, var(--bg); }

/* on the feed the header floats over the story, so its glow runs behind it */
.app--reel .appbar { position: absolute; top: 0; left: 0; right: 0; }
.app--reel .filterbar { position: absolute; top: calc(var(--bar-h) + env(safe-area-inset-top)); left: 0; right: 0; z-index: 40; }
.app--reel .fitem { padding-top: calc(var(--bar-h) + var(--filter-h) + 20px + env(safe-area-inset-top)); }
.app--reel .newpill { top: calc(var(--bar-h) + var(--filter-h) + 12px + env(safe-area-inset-top)); }
.over-top .brand, .over-top .iconbtn, .over-top .livepill { color: #fff; }
.over-top .livepill { background: rgba(255, 255, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.over-top .livepill i { background: #fff; }
.over-top .iconbtn:hover { background: rgba(255, 255, 255, 0.18); }
.over-top .chip { color: rgba(255, 255, 255, 0.78); }
.over-top .chip[aria-current="true"] { color: #fff; }
.over-top .chip[aria-current="true"]::after { background: #fff; }
@media (min-width: 768px) { .app--reel .appbar { position: absolute; padding-top: 0; height: var(--bar-h); } }

/* the % sign on odds-move cards was being clipped by the gradient text box */
.move__pct { display: inline-block; padding: 0.04em 0.14em 0.08em 0; line-height: 1.02; overflow: visible; }

/* market lists as cards */
.mlist { border-top: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mrow { padding: 16px 16px 28px; border: 0; border-radius: 18px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); transition: transform .12s ease, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.mrow:hover { box-shadow: 0 0 0 1px var(--orange); }
.mrow:active { transform: scale(0.985); }
.mrow__bar { left: 16px; right: 16px; bottom: 12px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mrow__title { font-size: 15px; font-weight: 700; line-height: 1.38; }
.page-head, .category-header { padding-top: 8px; }
.filters { margin-top: 18px; }
.pagination { margin: 28px 0 4px; }
.pagination a, .pagination span { background: var(--soft); border-color: transparent; box-shadow: 0 0 0 1px var(--line); }
.pagination a:hover { box-shadow: 0 0 0 1px var(--orange); }
.pagination [aria-current="page"] { background: var(--ink); box-shadow: none; }
.section-heading { padding-top: 26px; }
.pagination { gap: 5px; flex-wrap: nowrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 8px; font-size: 12px; }
.pagination .pagination__ellipsis { box-shadow: none; background: none; min-width: 16px !important; padding: 0; }

/* ---------- Story page ---------- */
.story { padding-top: 6px; }
.story .breadcrumb { margin-bottom: 18px; }
.story__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-3); }
.story__title { margin-top: 16px; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; }
.story__sum { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.story__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.story__acts .btn svg { width: 16px; height: 16px; }
.story__odds { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; padding: 16px 18px; border-radius: 18px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); border-left: 4px solid var(--orange); transition: box-shadow .15s; }
.story__odds:hover { box-shadow: 0 0 0 1px var(--orange); }
.story__odds-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.story__odds-title { font-size: 15px; line-height: 1.38; }
.story__odds-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; font-weight: 700; }
.story__odds-pct { font-size: 34px; line-height: 1; letter-spacing: -0.04em; }
.story__odds-go { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.story__sec { margin-top: 34px; }
.story__sec h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.story__also { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.story__also a { padding: 8px 14px; border-radius: 999px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; }
.story__also a:hover { box-shadow: 0 0 0 1px var(--orange); color: var(--orange-text); }
.story__rel { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.story__rel-t { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; }
.story__rel:hover .story__rel-t { color: var(--orange-text); }
.story__rel-m { display: block; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); }
.appfoot__links { flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
.appfoot__note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- TL;DR + sponsored slides ---------- */
.fitem__tldr { padding: 11px 14px; border-left: 3px solid var(--ink-3); border-radius: 12px; background: var(--chip); font-size: 12.5px; line-height: 1.5; font-weight: 600; }
.fitem__tldr b { margin-right: 8px; color: var(--orange-text); font-size: 10.5px; letter-spacing: 0.12em; }
.fitem--top .fitem__tldr { background: rgba(255, 255, 255, 0.16); border-left-color: #fff; }
.fitem--top .fitem__tldr b { color: #fff; }
.fitem__tag--sponsor { border-color: transparent; background: var(--ink); color: var(--on-ink); }
.fitem--sponsor { background: radial-gradient(120% 55% at 50% 0%, rgba(255, 141, 80, 0.34), rgba(255, 141, 80, 0) 72%), var(--soft); }
.sponsor__img { width: 100%; max-height: 30cqh; object-fit: cover; border-radius: 16px; }
.feed--list .sponsor__img { max-height: 200px; }
.sponsor__cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(221, 27, 17, 0.25); }
.sponsor__cta:active { transform: scale(0.97); }

/* ---------- Compare: analysis + gap board ---------- */
.cmp-analysis { margin-top: 18px; display: grid; gap: 16px; }
.cmp-read { padding: 14px 16px; border-radius: 14px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; line-height: 1.65; font-weight: 600; }
.cmp-chartbox { padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.cmp-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 7px; border-radius: 50%; }
.cmp-chart { width: 100%; height: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cmp-table th, .cmp-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.cmp-table thead th { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; }
.cmp-table tbody td { font-weight: 700; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-rules { padding: 4px 16px; border-radius: 14px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.cmp-rules summary { padding: 12px 0; cursor: pointer; font-size: 12.5px; font-weight: 700; }
.cmp-rules__grid { display: grid; gap: 16px; padding-bottom: 14px; }
.cmp-rules h3 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cmp-rules p { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); margin-top: 6px; }
.cmp-rules a { color: var(--orange-text); font-weight: 600; }

.cmp-board { margin-top: 28px; }
.cmp-board__h { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cmp-board__note { margin: 12px 0 14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.cmp-pair { display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.cmp-pair:hover { box-shadow: 0 0 0 1px var(--orange); }
.cmp-pair__title { font-size: 14px; font-weight: 700; line-height: 1.4; }
.cmp-pair__prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cmp-chip--poly::before, .cmp-chip--kalshi::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.cmp-chip--poly::before { background: #2563EB; }
.cmp-chip--kalshi::before { background: #12A150; }
.cmp-pair__gap { margin-left: auto; padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 700; }
.cmp-pair__meta { font-size: 11.5px; color: var(--ink-3); }
.cmp-pair__gap.is-flat { background: var(--chip); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }

.cmp-chart .sparkline__axis-label, .cmp-chart .sparkline__date-label { font-size: 17px; }
.cmp-chart polyline { stroke-width: 3.5; }

/* ---------- Topic tab icons ---------- */
.chip { gap: 6px; }
.chip svg { flex: none; width: 15px; height: 15px; opacity: 0.8; }
.chip[aria-current="true"] svg { opacity: 1; color: var(--orange-text); }
.over-top .chip[aria-current="true"] svg { color: #fff; }

/* ---------- Source photo on some cards ---------- */
.fitem__img { display: block; flex: 0 1 180px; flex-basis: min(30cqh, 260px); min-height: 0; width: 100%; max-height: 260px; border-radius: 14px; object-fit: cover; background: var(--chip); }
.fitem--top .fitem__img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }

/* =====================================================================
   Every screen: iPhone notch / home bar, tall Android, small phones, landscape
   ===================================================================== */
/* tabs: six of them scroll sideways; the current one is centred (feed.js) and an edge fade hints at more */
.chips { overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chips.is-end { -webkit-mask-image: none; mask-image: none; }
.chip { flex: none; white-space: nowrap; }
@media (max-width: 380px) { .chip { padding: 0 10px; font-size: 11px; } .chip svg { width: 14px; height: 14px; } }

/* type grows with the screen height (tall phones) but never past what fits */
.fitem__title { font-size: clamp(21px, min(6.6vw, 3.6cqh), 30px); }
.fitem__sum { font-size: clamp(13.5px, 1.75cqh, 16px); }
.fitem__tldr { font-size: clamp(12.5px, 1.6cqh, 14.5px); }
.feed--list .fitem__title { font-size: 19px; }

/* phones: the card owns the whole screen; legal links live in the menu */
@media (max-width: 767.98px) {
  .app--reel .appfoot { display: none; }
  .app--reel .fitem { padding-bottom: calc(22px + env(safe-area-inset-bottom)); padding-left: max(22px, calc(14px + env(safe-area-inset-left))); }
  .app--reel .fitem__acts { bottom: calc(22px + env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); }
  .reel__hint { bottom: auto; top: calc(var(--bar-h) + var(--filter-h) + 64px + env(safe-area-inset-top)); }
  .reel .more, .reel .reel__end { padding-bottom: env(safe-area-inset-bottom); }
}

/* very small phones (iPhone SE, 320-360px) */
@media (max-width: 359px) {
  .fitem { padding-right: 70px; padding-left: 16px; }
  .fitem__acts { right: 8px; width: 50px; }
  .act { width: 50px; }
  .act svg { padding: 11px; }
  .fitem__avatar { width: 42px; height: 42px; }
  .fitem__top { margin-right: -50px; }
  .brand { font-size: 13px; letter-spacing: 0.05em; }
  .livepill { display: none; }
}

/* a phone turned sideways: no phone-frame, cards may scroll inside */
@media (max-height: 520px) {
  .app { width: 100%; margin: 0; border-radius: 0; border: 0; box-shadow: none; min-height: 100dvh; }
  .app--reel { height: 100dvh; }
  .reel { scroll-snap-type: y proximity; }
  .reel .fitem { height: auto; min-height: 100cqh; padding-top: calc(var(--bar-h) + var(--filter-h) + 12px); }
  .fitem__title { font-size: 20px; }
  .reel__hint { display: none; }
  .scrim, .drawer { top: 0; bottom: 0; border-radius: 0; }
}

/* big screens that are narrow & tall (tablets in portrait, foldables): keep the column readable */
@media (min-width: 600px) and (max-width: 767.98px) {
  .app { width: min(100%, 560px); margin-inline: auto; }
}

.story__chart { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.story__chart .story__odds-label { display: block; margin-bottom: 8px; }
.story__chart svg { width: 100%; height: auto; }

/* =====================================================================
   Full-screen photo cards
   ===================================================================== */
.fitem__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; background: #000; }
html[data-theme] .fitem--photo { color: #fff; background: #000; }
.fitem--photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.9) 100%); }
.fitem--photo > .fitem__top, .fitem--photo > .fitem__body, .fitem--photo > .fitem__foot { position: relative; z-index: 2; }
.fitem--photo > .fitem__acts { z-index: 2; }
.fitem--photo .fitem__title { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.fitem--photo .fitem__sum, .fitem--photo .fitem__time, .fitem--photo .fitem__read, .fitem--photo .fitem__src { color: rgba(255, 255, 255, 0.92); }
.fitem--photo .fitem__src { color: #fff; }
.fitem--photo .fitem__tag { background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.fitem--photo .fitem__flag { background: #fff; color: #09090B; }
.fitem--photo .fitem__tldr, .fitem--photo .odds { background: rgba(0, 0, 0, 0.42); border-left-color: #fff; color: #fff; }
.fitem--photo .fitem__tldr b, .fitem--photo .odds .odds__src { color: rgba(255, 255, 255, 0.85); }
.fitem--photo .odds:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.fitem--photo .act { color: #fff; }
.fitem--photo .act svg { background: rgba(0, 0, 0, 0.38); }
.fitem--photo .fitem__avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
.fitem--photo .odds .up { color: #6EE7A8; } .fitem--photo .odds .down { color: #FCA5A5; }

/* =====================================================================
   No bars: the feed fills the real screen, and nothing behind it shows
   ===================================================================== */
html.has-reel, html.has-reel body { height: 100%; overflow: hidden; overscroll-behavior: none; }
@media (max-width: 767.98px) {
  html.has-reel, html.has-reel body { background: var(--edge, var(--bg)); transition: background-color .25s ease; }
  .app--reel { height: 100vh; height: 100dvh; }
  html.has-vh .app--reel { height: var(--app-h); }
}

/* ---------- Pull to refresh on the feed ---------- */
.ptr--reel { top: calc(var(--bar-h) + var(--filter-h) + 10px + env(safe-area-inset-top)); }

/* ---------- Topic tabs: fades + side arrows on desktop ---------- */
.chips { --fl: 28px; --fr: 28px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.chips.is-start { --fl: 0px; }
.chips.is-end { --fr: 0px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 100%); }
.chips.is-start.is-end { -webkit-mask-image: none; mask-image: none; }
.chips.is-drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.filterbar__in { position: relative; }
@media (hover: hover) and (min-width: 768px) {
  .chips:not(.is-start) ~   .chips { cursor: grab; }
}
.appfoot__links { flex-wrap: wrap; }

/* smoothness: each card paints on its own, so scrolling the feed stays at full frame rate */
.reel .fitem { contain: layout paint style; }
.reel { -webkit-overflow-scrolling: touch; }

/* desktop tabs: tighter so most fit; the rest scroll with a thin, quiet scrollbar (no arrow buttons) */
@media (min-width: 768px) {
  .chip { padding: 0 8px; gap: 5px; font-size: 11px; letter-spacing: 0.03em; }
  .chip svg { width: 14px; height: 14px; }
  .chip[aria-current="true"]::after { left: 8px; right: 8px; }
}
@media (hover: hover) and (min-width: 768px) {
  .chips { scrollbar-width: none; overflow-y: hidden; }
  .chips::-webkit-scrollbar { display: none; }
}
/* odds callout: live odds + the same question on the other platform */
.oddsbox { display: flex; flex-direction: column; gap: 6px; }
.odds__cmp { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--orange-text); text-transform: none; }
.odds__cmp:hover { text-decoration: underline; text-underline-offset: 3px; }
.fitem--top .odds__cmp, .fitem--photo .odds__cmp { color: #fff; }
/* touch screens have no hover: don't leave a lit circle behind after a tap */
@media (hover: none) { .iconbtn:hover, .over-top .iconbtn:hover { background: none; } }

/* =====================================================================
   Seamless edges: no line between cards, a soft fade behind the header,
   and photo/hero cards that end in the exact colour of the browser bars
   ===================================================================== */
.reel .fitem--photo, .reel .fitem--top { border-bottom: 0; box-shadow: none; }
.app--reel .appbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -1; pointer-events: none; height: calc(var(--bar-h) + var(--filter-h) + 30px + env(safe-area-inset-top)); background: linear-gradient(180deg, var(--edge-a, var(--bg)) 0, var(--edge-a, var(--bg)) 60%, transparent 100%); }
.fitem--photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.92) 88%, #000 100%); }
.odds__q { flex-basis: 100%; order: 5; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--ink-2); text-transform: none; }
.fitem--top .odds__q, .fitem--photo .odds__q { color: rgba(255, 255, 255, 0.92); }

/* =====================================================================
   Probability board: rows (page + side panel)
   ===================================================================== */
.board { display: flex; flex-direction: column; }
.board--page { gap: 8px; margin-top: 16px; }
.board__empty { padding: 24px 4px; font-size: 13px; color: var(--ink-3); }
.board__all { display: block; padding: 14px 4px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--orange-text); }
.board__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.brow { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.brow:hover { box-shadow: 0 0 0 1px var(--orange); }
.brow__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.brow__t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; line-height: 1.35; font-weight: 600; }
.brow__m { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.brow__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ink-3); }
.brow__dot--polymarket { background: #2563EB; } .brow__dot--kalshi { background: #12A150; }
.brow__v { overflow: hidden; text-overflow: ellipsis; }
.brow__stat { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 62px; }
.brow__stat b { font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.brow__stat span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.brow__stat .up, .brow__stat .is-up { color: var(--up); } .brow__stat .down, .brow__stat .is-down { color: var(--down); }

/* desktop: the board sits in the empty space right of the app column */
.boardpanel { display: none; }
@media (min-width: 1296px) {
  .boardpanel:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 20; top: 16px; bottom: 16px; left: calc(50% + var(--col) / 2 + 28px); width: min(360px, calc(50% - var(--col) / 2 - 52px)); padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); box-shadow: 0 20px 60px rgba(9, 9, 11, 0.08); overflow: hidden; }
  html[data-theme="dark"] .boardpanel { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
  .boardpanel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .boardpanel__title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
  .boardpanel__title i { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
  .boardpanel__head a { font-size: 11.5px; font-weight: 700; color: var(--orange-text); }
  .boardpanel__head a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .boardpanel__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
  .boardpanel__tabs button { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-3); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background .15s, color .15s; }
  .boardpanel__tabs button:hover { color: var(--ink); }
  .boardpanel__tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  .boardpanel__body { flex: 1; min-height: 0; overflow-y: auto; gap: 8px; padding-right: 2px; scrollbar-width: thin; transition: opacity .15s; }
  .boardpanel__body.is-loading { opacity: 0.4; }
  .boardpanel .brow { padding: 11px 12px; }
  .boardpanel .brow__stat b { font-size: 20px; }
  /* the up/down story buttons move to the left of the app column so the board has the right side */
  .reel__nav { left: auto; right: calc(50% + var(--col) / 2 + 24px); }
}

/* board panel: tidy tabs (two even rows) and a thin quiet scrollbar */
@media (min-width: 1296px) {
  .boardpanel__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .boardpanel__tabs button { padding: 7px 0; border-radius: 10px; font-size: 10px; letter-spacing: 0.01em; text-align: center; white-space: nowrap; }
  .boardpanel__body { scrollbar-width: auto; }
  .boardpanel__body::-webkit-scrollbar { width: 3px; }
  .boardpanel__body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
  .boardpanel__body::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
  .boardpanel__body::-webkit-scrollbar-track { background: transparent; }
  .boardpanel__body { padding-right: 6px; }
}
@supports not selector(::-webkit-scrollbar) { .boardpanel__body { scrollbar-width: thin; scrollbar-color: var(--line) transparent; } }

/* short position marker under the tab row (replaces the long scrollbar) */
.chips__ind { display: none; position: absolute; left: 50%; bottom: 2px; width: 44px; height: 3px; margin-left: -22px; border-radius: 3px; background: var(--line); pointer-events: none; }
.chips__ind i { display: block; width: 16px; height: 100%; border-radius: 3px; background: var(--ink-3); }
@media (hover: hover) and (min-width: 768px) { .chips__ind.is-on { display: block; } }
/* smooth scrolling: photos get their own layer, so scrolling only moves them instead of repainting */
.fitem__bg { transform: translateZ(0); backface-visibility: hidden; }
.reel { will-change: scroll-position; }

/* No page shake when you switch tabs on desktop: the feed locks the page from the very first paint
   (not after the script loads), and the scrollbar space is always reserved, so the app column never shifts sideways. */
html:has(.app--reel), html:has(.app--reel) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
@media (min-width: 768px) { html { scrollbar-gutter: stable; } }

/* =====================================================================
   "Get market alerts": a plain menu row and a small, simple dialog
   ===================================================================== */
.drawer__nav button { display: flex; align-items: center; gap: 14px; width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.drawer__nav button svg { width: 20px; height: 20px; color: var(--ink-3); }
.drawer__nav button:hover { background: var(--chip); }

.alerts { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.alerts[hidden] { display: none; }
.alerts__scrim { position: absolute; inset: 0; background: rgba(5, 5, 8, 0.55); opacity: 0; transition: opacity .2s; }
.alerts.is-on .alerts__scrim { opacity: 1; }
.alerts__box { position: relative; width: min(340px, 100%); padding: 26px 22px 20px; border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 70px rgba(0, 0, 0, 0.3); transform: translateY(12px); opacity: 0; transition: transform .22s ease, opacity .2s; }
.alerts.is-on .alerts__box { transform: none; opacity: 1; }
.alerts__box:focus { outline: 0; }
.alerts__x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.alerts__x:hover { background: var(--chip); color: var(--ink); }
.alerts__x svg { width: 17px; height: 17px; }
.alerts__main[hidden], .alerts__done[hidden] { display: none; }
.alerts__box h2 { margin: 0; padding-right: 26px; font-size: 17px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; text-transform: none; }
.alerts__lead { margin: 6px 0 20px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.alerts__cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--ink); color: var(--on-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .15s; -webkit-tap-highlight-color: transparent; }
.alerts__cta:hover { opacity: 0.85; }
.alerts__cta:disabled { opacity: 0.5; cursor: default; }
.alerts__link { display: block; width: 100%; margin: 14px 0 0; padding: 4px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.alerts__link[hidden] { display: none; }
.alerts__link:hover { color: var(--ink); }
.alerts [data-email-form] { margin-top: 14px; }
.alerts [data-email-form][hidden] { display: none; }
.alerts__row { display: flex; gap: 8px; }
.alerts__row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.alerts__row input::placeholder { color: var(--ink-3); }
.alerts__row input:focus { outline: 0; border-color: var(--ink); }
.alerts__row .alerts__cta { flex: none; width: auto; }
.alerts__msg { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; text-align: center; color: var(--ink-2); }
.alerts__msg[hidden] { display: none; }
.alerts__msg.is-ok { color: var(--up); } .alerts__msg.is-bad { color: var(--down); }
.alerts__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.alerts__topics[hidden] { display: none; }
.alerts__topics button { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-3); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.alerts__topics button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.alerts__done { padding: 10px 0 0; text-align: center; }
.alerts__done h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.alerts__done p { margin: 0 auto 20px; max-width: 280px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.alerts__check { display: block; width: 56px; height: 56px; margin: 0 auto; }
.alerts__check circle { fill: none; stroke: var(--up); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: alertsDraw .6s ease forwards; }
.alerts__check path { fill: none; stroke: var(--up); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: alertsDraw .35s .45s ease forwards; }
@keyframes alertsDraw { to { stroke-dashoffset: 0; } }
body.alerts-open { overflow: hidden; }
@media (max-width: 767.98px) {
  .alerts { align-items: flex-end; padding: 0; }
  .alerts__box { width: 100%; padding-bottom: calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; transform: translateY(50px); }
}

/* ---------- Saved / watchlist ---------- */
.act[aria-pressed="true"] svg { background: var(--orange); color: #fff; }
.act[aria-pressed="true"] svg path { fill: currentColor; }
.fitem--photo .act[aria-pressed="true"] svg, .fitem--top .act[aria-pressed="true"] svg { background: #fff; color: var(--orange-text); }
.btn[aria-pressed="true"] { border-color: var(--orange); color: var(--orange-text); }
.btn[aria-pressed="true"] svg path { fill: currentColor; }
.btn[data-save] { display: inline-flex; align-items: center; gap: 8px; }
.btn[data-save] svg { width: 16px; height: 16px; }
.saved-h { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.saved-list { display: flex; flex-direction: column; gap: 10px; }
.saved-list .mlist, .saved-list .mrow { margin: 0; }
.saved-row { display: flex; align-items: stretch; gap: 8px; }
.saved-row > .mrow, .saved-row > .srow { flex: 1; min-width: 0; }
.saved-x { flex: none; width: 34px; border: 0; border-radius: 12px; background: none; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; }
.saved-x:hover { background: var(--chip); color: var(--ink); }
.srow { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.srow b { font-size: 14px; line-height: 1.35; }
.srow small { font-size: 11.5px; color: var(--ink-3); }
.srow--gone { opacity: 0.6; }
/* ---------- Calendar ---------- */
.cal { margin-top: 26px; }
.cal__ev { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cal__date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 58px; border-radius: 14px; background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.cal__date b { font-size: 21px; line-height: 1; font-weight: 700; }
.cal__date span { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); }
.cal__body { flex: 1; min-width: 0; }
.cal__body h3 { margin: 2px 0 0; font-size: 15px; line-height: 1.3; font-weight: 700; }
.cal__in { margin: 3px 0 10px; font-size: 12px; color: var(--ink-3); }
.cal__body .board { gap: 8px; }
.cal .mac-sec__h { margin-bottom: 4px; }.mac-sec { margin-top: 26px; }
.mac-sec[hidden] { display: none; }
.mac-sec__h { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Embed box on market pages ---------- */
.embedbox { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.embedbox summary { padding: 12px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; list-style: none; }
.embedbox summary::-webkit-details-marker { display: none; }
.embedbox summary::after { content: "+"; float: right; color: var(--ink-3); }
.embedbox[open] summary::after { content: "−"; }
.embedbox p { padding: 0 14px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.embedbox p code { font-size: 11px; }
.embedbox textarea { display: block; width: calc(100% - 28px); margin: 10px 14px 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 11.5px/1.4 var(--mono); resize: none; }
.embedbox .btn { margin: 0 14px 14px; }
/* ---------- Market page: long rule text never pushes the page wider; action buttons sit in a tidy grid ---------- */
.resolution-box, .resolution-box p { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.resolution-box a { word-break: break-all; }
@media (max-width: 560px) {
  .market__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .market__actions .btn { min-width: 0; padding: 0 12px; white-space: nowrap; }
  .market__actions .btn--primary { grid-column: 1 / -1; }
}
/* ---------- Market page: poll buttons side by side, related cards spaced like the markets list ---------- */
.sentiment-widget__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sentiment-widget__buttons .btn { min-width: 0; padding: 0 12px; }
.section-heading + .mlist { margin-top: 12px; }

/* ---------- Odds alert box on market pages (shares the quiet "embedbox" look) ---------- */
.alertbox { margin-top: 14px; }
.alertbox + .embedbox { margin-top: 10px; }
.alertbox__row { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; }
.alertbox__row input[type="number"] { width: 78px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 700 15px var(--mono); text-align: center; }
.alertbox__row span { font-weight: 700; color: var(--ink-2); }
.alertbox__row .btn { margin: 0 0 0 auto; min-height: 40px; }
.alertbox .linkbtn { display: block; margin: 6px 14px 14px; padding: 0; border: 0; background: none; color: var(--ink-3); font: 600 12px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.alertbox .linkbtn:hover { color: var(--orange-text); }
.alertbox__email { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 14px; }
.alertbox__email input[type="email"] { flex: 1 1 160px; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 14px var(--sans); }
.alertbox__email .btn { margin: 0; min-height: 40px; }
.alertbox__active { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px 12px; font-weight: 600; color: var(--ink); }
.alertbox__active .linkbtn { display: inline; margin: 0; }
.alertbox__msg { margin: 0; padding: 4px 14px 14px; font-size: 12.5px; color: var(--ink-2); }
.alertbox__msg.is-ok { color: var(--positive); }
.alertbox__msg.is-bad { color: var(--negative); }
.alertbox [hidden] { display: none !important; }

/* ---------- Advertise page ---------- */
.adv { margin-top: 30px; }
.adv__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.adv__fact { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.adv__fact b { font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; }
.adv__fact span { font-size: 11px; line-height: 1.3; color: var(--ink-3); }
.adv__fact--wide { grid-column: 1 / -1; }
.adv__fact--wide b { font-size: 16px; }
.adv__cards { display: grid; gap: 10px; }
.adv__card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.adv__tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-text); }
.adv__card h3 { margin-top: 8px; font-size: 16px; line-height: 1.3; }
.adv__card p:last-child { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.adv__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.adv__list li { padding-left: 16px; border-left: 3px solid var(--orange); font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.adv__list b { color: var(--ink); }
.adv__p { font-family: var(--sans); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 640px) { .adv__cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Ad slots: labelled, quiet, never jump the page ---------- */
.adslot { margin: 22px 0; text-align: center; }
.adslot__tag { display: block; margin-bottom: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.adslot__box { display: flex; align-items: center; justify-content: center; min-height: 100px; overflow: hidden; border-radius: 14px; }
.adslot__box > * { max-width: 100%; }
.adslot.is-empty { display: none; }
.mlist .adslot { margin: 6px 0; }
.boardpanel .adslot { flex: none; margin: 10px 4px 0; }
.boardpanel .adslot__box { min-height: 0; }
.fitem--ad .fitem__body--ad { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.fitem--ad .adslot { width: 100%; margin: 0; }
.fitem--ad .adslot__box { min-height: 250px; }
.fitem--ad.is-empty { display: none; }.fitem.fitem--ad { padding-right: 22px !important; }

/* ---------- Sliding banner at the bottom (story, market and other pages; never the feed) ---------- */
.adanchor { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.14); transform: translateY(115%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.adanchor.is-on { transform: none; }
.adanchor[hidden] { display: none; }
.adanchor .adslot { flex: 0 1 auto; max-width: 100%; margin: 0; }
.adanchor .adslot__tag { margin-bottom: 2px; }
.adanchor .adslot__box { min-height: 50px; border-radius: 8px; }
.adanchor__x { position: absolute; top: -27px; right: 10px; width: 30px; height: 27px; border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; background: var(--bg); color: var(--ink-2); font: 400 19px/1 var(--sans); cursor: pointer; }
html.has-anchor body { padding-bottom: 104px; }.adslot--story_top { margin: 20px 0 32px; }

/* ---------- Headlines page (plain links for search engines and readers) ---------- */
.hl { margin-top: 22px; }
.hl__item { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit; }
.hl__item:hover .hl__title { color: var(--orange-text); }
.hl__meta { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.hl__meta b { color: var(--orange-text); font-weight: 700; }
.hl__title { display: block; margin-top: 6px; font-size: 16px; line-height: 1.35; font-weight: 700; }
.hl__sum { display: block; margin-top: 5px; font-family: var(--sans); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }