/* ============================================================
   Bettitips — design system
   Theme palettes ported 1:1 from the original app (dark + light),
   exposed as CSS custom properties so theming is a single attribute swap.
   ============================================================ */

:root,
[data-theme="dark"] {
  --bg: #06070A; --panel: #0E1117; --panel-hi: #171A21; --input: #0A0C12;
  --bd: #1A1E27; --bd-hi: #262B36;
  --fg: #FAFAFA; --fg-dim: #A1A1AA; --fg-muted: #52525B;
  --lime: #D9F756; --lime-dark: #A8D40A; --cyan: #22D3EE;
  --red: #F87171; --amber: #FBBF24;
  --on-accent: #06070A;
  --glow: radial-gradient(900px 600px at 80% -10%, rgba(217,247,86,0.08), transparent 60%),
          radial-gradient(700px 500px at 0% 20%, rgba(34,211,238,0.05), transparent 60%);
}

[data-theme="light"] {
  --bg: #FAFAFA; --panel: #FFFFFF; --panel-hi: #F4F4F5; --input: #F4F4F5;
  --bd: #E4E4E7; --bd-hi: #D4D4D8;
  --fg: #09090B; --fg-dim: #52525B; --fg-muted: #A1A1AA;
  --lime: #65A30D; --lime-dark: #4D7C0F; --cyan: #0891B2;
  --red: #DC2626; --amber: #D97706;
  --on-accent: #FFFFFF;
  --glow: radial-gradient(900px 600px at 80% -10%, rgba(101,163,13,0.06), transparent 60%),
          radial-gradient(700px 500px at 0% 20%, rgba(8,145,178,0.04), transparent 60%);
}

* { box-sizing: border-box; }

/* The hidden attribute must always win, even over classes that set display
   (e.g. the modal's display:grid) — UA stylesheets lose to author rules. */
[hidden] { display: none !important; }

/* No native disclosure marker on any <details>. Both places that use one (the
   language menu and the FAQ) draw their own affordance. Chrome drops the marker
   as soon as summary stops being display:list-item, which .icon-btn's grid did
   — but Safari renders ::-webkit-details-marker as a real child element, so it
   survived and became a second grid row, stacking a stray triangle above the
   globe in the header. Reset it once here rather than per component. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background-color .25s ease, color .25s ease;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--glow);
}

main { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.icon { width: 1em; height: 1em; stroke-width: 2; flex-shrink: 0; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.15; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* ...unless it is focused. A skip link that never becomes visible is a skip
   link that cannot be used: keyboard users land on it first and see nothing. */
.visually-hidden:focus, .visually-hidden:focus-visible {
  position: fixed !important; top: 12px; left: 12px; z-index: 200;
  width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto;
  background: var(--panel); color: var(--fg); border: 1px solid var(--lime-dark);
  border-radius: 10px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

/* A visible focus ring everywhere the UA default was suppressed. */
:focus-visible { outline: 2px solid var(--lime-dark); outline-offset: 2px; }

/* Respect a reduced-motion preference: the site animates on hover throughout
   and runs an infinite pulse on live badges. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1;
  transition: transform .12s ease, background-color .2s ease, border-color .2s ease;
  background: transparent; color: var(--fg);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lime); color: var(--on-accent); font-weight: 700; }
.btn-ghost { border-color: var(--bd-hi); color: var(--fg); }
.btn-ghost:hover { background: var(--panel-hi); }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--bd);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--lime); color: var(--on-accent);
  box-shadow: 0 0 24px rgba(217, 247, 86, 0.4);
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__dot { color: var(--lime); }
.nav-primary { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-primary a {
  padding: 8px 11px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--fg-dim);
  /* A two-word label like "Responsible Gambling" must not break across lines —
     a wrapped nav item is what made the header look like it had fallen apart. */
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav-primary a:hover { color: var(--fg); background: var(--panel-hi); }
.nav-primary a[aria-current="page"] { color: var(--fg); background: var(--panel-hi); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--bd); background: var(--panel); color: var(--fg-dim); cursor: pointer;
  font-size: 18px; transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { color: var(--fg); background: var(--panel-hi); }
[data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="light"] .theme-icon--sun { display: none; }

/* language switcher */
.lang { position: relative; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--panel); border: 1px solid var(--bd); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35); display: none; z-index: 60;
}
.lang[open] .lang__menu { display: block; }
.lang__menu a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  font-size: 14px; color: var(--fg-dim);
}
.lang__menu a:hover { background: var(--panel-hi); color: var(--fg); }
.lang__menu a[aria-current="true"] { color: var(--fg); font-weight: 600; }
.lang__flag { font-size: 17px; }

.menu-toggle { display: none; }

/* mobile nav */
.nav-mobile { display: none; border-top: 1px solid var(--bd); background: var(--bg); }
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 14px 24px; font-size: 16px; font-weight: 500; color: var(--fg-dim);
  border-bottom: 1px solid var(--bd);
}
.nav-mobile a[aria-current="page"] { color: var(--fg); }

/* Licence line under a bookmaker's bonus — the justification for listing it. */
.book-row__licence {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
  font-size: 12px; color: var(--fg-muted);
}
.book-row__licence svg { width: 13px; height: 13px; }

/* Shown when no operator is cleared for the visitor's market. */
.bms-empty {
  padding: 22px; border: 1px dashed var(--bd-hi); border-radius: 14px;
  color: var(--fg-dim); font-size: 15px; line-height: 1.6; margin: 0;
}
.bms-empty__market {
  display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px;
  background: var(--panel-hi); color: var(--fg-muted); font-size: 12px; font-weight: 600;
}
/* Language row: the dropdown lives in .header-actions and is desktop-only, so
   without this a four-language site has no way to switch language on a phone. */
.nav-mobile__langs {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px;
  border-bottom: 1px solid var(--bd);
}
.nav-mobile__langs a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  border: 1px solid var(--bd); border-radius: 999px; font-size: 14px;
  color: var(--fg-dim); background: var(--panel);
}
.nav-mobile__langs a[aria-current="true"] { color: var(--fg); border-color: var(--lime-dark); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--lime-dark);
  padding: 6px 12px; border: 1px solid var(--bd-hi); border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6.5vw, 76px); font-weight: 800; letter-spacing: -0.04em; margin: 0 0 20px; }
.hero h1 .accent { color: var(--lime); }
.hero__sub { font-size: clamp(16px, 2vw, 20px); color: var(--fg-dim); max-width: 640px; margin: 0 0 30px; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 0 0 6px; }
.section__head p { color: var(--fg-dim); margin: 0; font-size: 15px; }
.section__link { color: var(--lime-dark); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--bd); border-radius: 16px; padding: 20px;
  transition: border-color .18s ease, transform .18s ease;
}
a.card:hover, .card.is-link:hover { border-color: var(--bd-hi); transform: translateY(-2px); }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.card__desc { font-size: 13px; color: var(--fg-dim); margin: 0; line-height: 1.5; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.badge-value { background: rgba(217,247,86,.14); color: var(--lime-dark); }
.badge-live { background: rgba(248,113,113,.14); color: var(--red); }
.badge-hot { background: rgba(251,191,36,.16); color: var(--amber); }
.badge-soft { background: var(--panel-hi); color: var(--fg-dim); }
.badge-won { background: rgba(217,247,86,.14); color: var(--lime-dark); }
.badge-lost { background: rgba(248,113,113,.14); color: var(--red); }
.badge-void { background: var(--panel-hi); color: var(--fg-muted); }

/* profit/loss sign colours */
.pos { color: var(--lime-dark); }
.neg { color: var(--red); }

/* ---------- Results / track record ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--bd); border-radius: 14px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 540px; }
.rtable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); font-weight: 700; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--bd); }
.rtable td { padding: 13px 16px; border-bottom: 1px solid var(--bd); vertical-align: middle; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable tbody tr:hover td { background: var(--panel-hi); }
.rtable .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable__date { color: var(--fg-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rtable__match { font-weight: 600; }
.rtable__league { display: block; color: var(--fg-muted); font-size: 12px; margin-top: 2px; }

.track-record {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px;
  padding: 16px 20px; margin: 0 0 8px; border-radius: 14px;
  border: 1px solid var(--bd); background: var(--panel); color: var(--fg-dim); font-size: 14px;
}
.track-record:hover { border-color: var(--bd-hi); }
.track-record b { color: var(--fg); font-variant-numeric: tabular-nums; font-size: 16px; margin-right: 5px; }
.track-record b.pos { color: var(--lime-dark); }
.track-record b.neg { color: var(--red); }
.track-record__label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--fg); }
.track-record__cta { margin-left: auto; color: var(--lime-dark); font-weight: 600; white-space: nowrap; }

/* prediction card */
.pick { position: relative; overflow: hidden; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--bd); }
.pick.is-value { border-color: rgba(217, 247, 86, 0.25); }
.pick__ev { position: absolute; top: 0; right: 0; padding: 4px 10px; background: var(--lime); color: var(--on-accent); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; border-radius: 0 16px 0 10px; }
.pick__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pick__league { padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; background: var(--panel-hi); color: var(--fg-dim); letter-spacing: 0.05em; }
.pick__time { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--fg-dim); }
.pick__time svg { width: 11px; height: 11px; }
.pick__teams { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.01em; }
.pick__vs { color: var(--fg-muted); font-size: 12px; font-weight: 500; }
.pick__bet { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 12px; margin-bottom: 12px; background: var(--input); border: 1px solid var(--bd); }
.pick.is-value .pick__bet { background: rgba(217, 247, 86, 0.08); border-color: rgba(217, 247, 86, 0.2); }
.pick__bet-label { font-size: 10px; color: var(--fg-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.pick__bet-name { font-size: 14px; font-weight: 700; }
.pick.is-value .pick__bet-name { color: var(--lime-dark); }
.pick__odds { padding: 8px 14px; border-radius: 8px; background: var(--bg); font-size: 18px; font-weight: 800; font-family: ui-monospace, monospace; letter-spacing: -0.02em; }
.pick__conf-row { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--fg-dim); margin-bottom: 6px; }
.pick__conf-val { color: var(--fg); font-weight: 600; }
.pick__bar { height: 4px; background: var(--input); border-radius: 2px; overflow: hidden; }
.pick__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--cyan)); }
.pick.is-value .pick__bar span { background: linear-gradient(90deg, var(--lime), var(--lime-dark)); }

/* bookmaker row (mirrors BookRow) */
.book-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px; background: var(--panel); border: 1px solid var(--bd); border-radius: 14px;
}
.book-row.is-highlight { background: linear-gradient(90deg, rgba(217, 247, 86, 0.05), transparent), var(--panel); border-color: rgba(217, 247, 86, 0.2); }
.book-row__rank { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-hi); font-size: 18px; font-weight: 800; color: var(--fg); }
.book-row__rank.is-first { background: var(--lime); color: var(--on-accent); }
.book-row__title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.book-row__name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.book-row__rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--fg); font-weight: 600; }
.book-row__rating svg { width: 12px; height: 12px; color: var(--amber); fill: var(--amber); }
.book-row__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg-dim); }
.book-row__meta b { color: var(--fg); font-weight: 600; }
.book-row__meta b.mono { font-family: ui-monospace, monospace; }
.book-row__bonus { display: none; text-align: right; }
.book-row__bonus-label { font-size: 10px; color: var(--fg-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.book-row__bonus-text { font-size: 13px; color: var(--fg); font-weight: 500; }
.book-row__cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.book-row__cta svg { width: 14px; height: 14px; }
@media (min-width: 780px) { .book-row__bonus { display: block; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-muted); margin: 0 0 24px; padding: 0; list-style: none; }
.crumbs a { color: var(--fg-dim); }
.crumbs a:hover { color: var(--fg); }
.crumbs li { display: flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--fg-muted); }
.crumbs [aria-current] { color: var(--fg); }

/* ---------- Page heading ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 0 0 12px; }
.page-head p { color: var(--fg-dim); font-size: 17px; max-width: 680px; margin: 0; line-height: 1.6; }
.page-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }

/* ---------- SEO prose ---------- */
.prose { color: var(--fg-dim); }
.prose h2 { font-size: 24px; color: var(--fg); margin: 40px 0 14px; display: flex; align-items: center; gap: 10px; }
.prose h3 { font-size: 19px; color: var(--fg); margin: 28px 0 10px; }
.prose p { font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.prose ul, .prose ol { line-height: 1.7; padding-left: 0; list-style: none; margin: 0 0 14px; }
.prose .calc-link { color: var(--lime-dark); font-weight: 600; border-bottom: 1px dashed currentColor; }
.prose strong { color: var(--fg); }

.seo-list li { display: flex; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.seo-list .check { color: var(--lime); margin-top: 2px; }
.steps { counter-reset: step; }
.steps li { display: flex; gap: 14px; margin-bottom: 14px; font-size: 15px; align-items: flex-start; }
.steps .num { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.callout { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--bd-hi); background: var(--panel); margin: 0 0 14px; }
.callout-warn { border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.06); }
.formula-item { padding: 10px 13px; background: var(--input); border-radius: 8px; font-family: ui-monospace, "SF Mono", monospace; font-size: 14px; margin-bottom: 6px; color: var(--fg-dim); }
.see-also { padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.7; margin-top: 18px; }

/* ---------- Calculator widget ---------- */
.calc-widget { background: var(--panel); border: 1px solid var(--bd); border-radius: 18px; padding: 22px; margin: 8px 0 12px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; color: var(--fg-dim); font-weight: 500; }
.field .input-wrap { position: relative; display: flex; align-items: center; }
.field input, .field select {
  width: 100%; padding: 12px 14px; background: var(--input); border: 1px solid var(--bd); border-radius: 11px;
  color: var(--fg); font-size: 16px; font-variant-numeric: tabular-nums; outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus { border-color: var(--lime); }
.field .affix { position: absolute; right: 14px; color: var(--fg-muted); font-size: 14px; pointer-events: none; }
.field .affix-pre { left: 14px; right: auto; }
.field .affix-pre + input { padding-left: 30px; }

.calc-rows { display: flex; flex-direction: column; gap: 10px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.calc-row--m { align-items: center; gap: 8px; }
.calc-row--m input, .calc-row--m select {
  width: 100%; padding: 9px 11px; background: var(--input); border: 1px solid var(--bd); border-radius: 9px;
  color: var(--fg); font-size: 14px; font-variant-numeric: tabular-nums; outline: none; box-sizing: border-box;
}
.calc-row--m input:focus, .calc-row--m select:focus { border-color: var(--lime); }
.calc-row__out { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; color: var(--fg); }
.calc-rowhead { display: grid; gap: 8px; font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: 0 2px 4px; }
.row-del { width: 40px; height: 46px; border-radius: 10px; border: 1px solid var(--bd); background: var(--panel); color: var(--fg-muted); cursor: pointer; display: grid; place-items: center; }
.row-del:hover { color: var(--red); border-color: var(--red); }
.btn-add { margin-top: 12px; }

.results { margin-top: 18px; border-top: 1px solid var(--bd); padding-top: 18px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.result-tile { background: var(--input); border: 1px solid var(--bd); border-radius: 12px; padding: 14px 16px; }
.result-tile.hot { border-color: color-mix(in srgb, var(--lime) 45%, var(--bd)); }
.result-tile small { display: block; font-size: 12px; color: var(--fg-muted); margin-bottom: 5px; }
.result-tile b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 14px; font-size: 13px; padding: 12px 14px; border-radius: 10px; background: var(--panel-hi); color: var(--fg-dim); }
.calc-note.neg { background: rgba(248,113,113,.1); color: var(--red); }
.calc-note.pos { background: rgba(217,247,86,.12); color: var(--lime-dark); }

/* ---------- Related ---------- */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }

/* ---------- Filters / pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bd); background: var(--panel); color: var(--fg-dim); font-size: 13px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"], .chip.active { background: var(--lime); color: var(--on-accent); border-color: var(--lime); font-weight: 700; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--bd); font-size: 14px; color: var(--fg-dim); }
.pagination a:hover { background: var(--panel-hi); color: var(--fg); }
.pagination [aria-current] { background: var(--lime); color: var(--on-accent); border-color: var(--lime); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details { border: 1px solid var(--bd); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: var(--panel); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-muted); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--fg-dim); line-height: 1.7; margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--bd); margin-top: 60px; padding: 48px 0 32px; background: var(--panel); }
/* Brand block plus four link columns. The count is explicit: the grid used to
   declare four tracks for five children, so the last column wrapped onto its
   own row and sat alone under the brand. */
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.footer-about p { color: var(--fg-dim); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); margin: 0 0 14px; }
.footer-col a { display: block; padding: 5px 0; color: var(--fg-dim); font-size: 14px; }
.footer-col a:hover { color: var(--fg); }
.footer-col a.is-important { color: var(--cyan); font-weight: 600; }
.footer-col a.is-important:hover { color: var(--fg); }

.footer-rg { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 32px 0 20px; padding: 14px 18px; border-radius: 12px; background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.2); }
.footer-rg__icon { flex-shrink: 0; color: var(--cyan); display: inline-flex; }
.footer-rg__icon svg { width: 18px; height: 18px; fill: currentColor; }
.footer-rg__text { flex: 1; min-width: 200px; font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.footer-rg__text strong { color: var(--fg); font-weight: 600; }
.footer-rg__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: var(--cyan); color: #000; font-size: 12px; font-weight: 700; white-space: nowrap; }
.footer-rg__btn svg { width: 14px; height: 14px; }

.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--bd); }
.footer-bottom__copy { font-size: 12px; color: var(--fg-muted); margin-bottom: 8px; }
.footer-bottom__disclaimer { font-size: 11px; color: var(--fg-muted); max-width: 600px; line-height: 1.5; }
.footer-bottom__legal { font-size: 12px; color: var(--fg-muted); }
.age-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 12px; margin-right: 8px; vertical-align: middle; }

/* ---------- Misc content blocks ---------- */
.lead { font-size: 18px; color: var(--fg-dim); line-height: 1.7; }
.notice { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--bd-hi); background: var(--panel); color: var(--fg-dim); font-size: 14px; line-height: 1.6; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.kv b { font-variant-numeric: tabular-nums; }

/* ---------- Enquiry form on a trust page ---------- */
.legal-form {
  margin: 40px 0 0; padding: 26px 24px;
  background: var(--panel); border: 1px solid var(--bd); border-radius: 16px;
}
.legal-form__note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: var(--fg-muted);
}
.legal-form__note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 640px) { .legal-form { padding: 22px 18px; } }

/* ---------- Shared enquiry form (partner + contact) ---------- */
.cform-h2 { font-size: 20px; font-weight: 700; margin: 0 0 24px; color: var(--fg); }
.cform-note {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 8px;
}
.cform-note--neg { background: color-mix(in srgb, var(--red) 10%, transparent); color: var(--red); }
.cform-note--ok { background: color-mix(in srgb, var(--lime) 14%, transparent); color: var(--lime-dark); font-weight: 600; }
.cform { display: flex; flex-direction: column; gap: 16px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform .field { gap: 6px; }
.cform .field label {
  font-size: 11px; color: var(--fg-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cform-req { color: var(--red); }
.cform .field input,
.cform .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--input); border: 1px solid var(--bd);
  color: var(--fg); font-size: 14px; font-family: inherit;
  outline: none; box-sizing: border-box; transition: border-color 0.15s;
}
.cform .field textarea { padding: 14px 16px; resize: vertical; line-height: 1.6; }
.cform .field input:focus,
.cform .field textarea:focus { border-color: var(--bd-hi); }
.cform .field ::placeholder { color: var(--fg-muted); }
.cform-count { font-size: 11px; color: var(--fg-muted); margin-top: 6px; text-align: right; }
.cform-submit {
  padding: 14px 20px; border-radius: 12px;
  background: var(--lime); border: none; color: var(--on-accent);
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--lime) 25%, transparent);
  margin-top: 8px; width: 100%;
}
.cform-submit svg { width: 16px; height: 16px; stroke-width: 2.5; }
@media (max-width: 640px) {
  .cform__row { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
/* The primary nav needs ~1250px once every section is listed, so it collapses
   into the burger well before the phone breakpoint — it used to overflow the
   viewport and force a horizontal scroll on anything narrower than a desktop. */
@media (max-width: 1280px) {
  .nav-primary { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: none; }
}
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-actions .desktop-only { display: none; }
  .grid-3, .grid-4, .grid-2, .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .hero { padding: 48px 0 32px; }
  .book-row { grid-template-columns: auto 1fr; }
  .book-row__cta { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 18px; }
}

/* ---------- Calculators catalog (mirrors CalcList / CalcCardFull) ---------- */
.calc-catalog { padding: 48px 0 80px; }
.calc-catalog__title { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 12px; }
.calc-catalog__sub { font-size: 17px; color: var(--fg-dim); line-height: 1.6; max-width: 640px; margin: 0 0 32px; }
.calc-catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.calc-catalog__bar .filters { margin-bottom: 0; gap: 6px; }
.filters .chip { display: inline-flex; align-items: center; gap: 6px; }
.chip__count { padding: 1px 6px; border-radius: 6px; background: var(--panel-hi); font-size: 10px; font-weight: 700; font-family: ui-monospace, monospace; }
.chip.active .chip__count { background: rgba(0, 0, 0, 0.15); }
.calc-catalog__showing { font-size: 12px; color: var(--fg-muted); }
.calc-catalog__showing strong { color: var(--fg); font-weight: 600; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: 400px; }
.catalog-cell { display: flex; }

.ccard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; min-height: 380px;
  padding: 24px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--bd);
  color: var(--fg); text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.ccard:hover { border-color: hsl(var(--hue) 80% 65% / 0.45); transform: translateY(-3px); }
.ccard__glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: hsl(var(--hue) 80% 65% / 0.12); filter: blur(40px); pointer-events: none; }
.ccard__head { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.ccard__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: hsl(var(--hue) 80% 65%); background: hsl(var(--hue) 80% 65% / 0.12); border: 1px solid hsl(var(--hue) 80% 65% / 0.25); }
.ccard__icon svg { width: 24px; height: 24px; }
.ccard__heading { min-width: 0; }
.ccard__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.ccard__sub { font-size: 13px; color: var(--fg-dim); }
.ccard__body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.ccard__desc { font-size: 14px; color: var(--fg-dim); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ccard__use { margin-top: auto; padding: 10px 12px; border-radius: 10px; background: var(--input); border: 1px solid var(--bd); font-size: 12px; color: var(--fg-dim); line-height: 1.5; }
.ccard__use-label { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: hsl(var(--hue) 80% 65%); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.ccard__use-label svg { width: 12px; height: 12px; }
.ccard__btn { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 999px; background: hsl(var(--hue) 80% 65%); color: #000; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.ccard__btn svg { width: 15px; height: 15px; }

.catalog-pager { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pager-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--bd); color: var(--fg); font-size: 13px; font-weight: 600; cursor: pointer; }
.pager-btn:disabled { opacity: .5; cursor: not-allowed; color: var(--fg-muted); }
.pager-btn svg { width: 14px; height: 14px; }
.pager-prev svg { transform: rotate(180deg); }
.pager-nums { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pager-num { width: 40px; height: 40px; border-radius: 12px; background: var(--panel); border: 1px solid var(--bd); color: var(--fg); font-size: 14px; font-weight: 700; cursor: pointer; font-family: ui-monospace, monospace; }
.pager-num.active { background: var(--lime); color: var(--on-accent); border-color: var(--lime); }

@media (max-width: 980px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .catalog-grid { grid-template-columns: 1fr; } }

/* ---------- Home page (mirrors HomePage / LiveTicker / journal / PM teaser) ---------- */
.home-block { padding: 0 0 40px; }

.home-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(217, 247, 86, 0.08); border: 1px solid rgba(217, 247, 86, 0.25); color: var(--lime-dark); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; }
.home-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.home-pill svg { width: 12px; height: 12px; }
.home-pill--up { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 11px; background: rgba(217, 247, 86, 0.12); border-color: rgba(217, 247, 86, 0.3); margin-bottom: 20px; }
.home-grad { background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.home-hero { padding: 56px 0 40px; }
.home-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.home-hero__copy .home-pill { margin-bottom: 28px; }
.home-hero__title { font-size: clamp(44px, 6.5vw, 84px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; margin: 0 0 24px; }
.home-hero__sub { font-size: 17px; color: var(--fg-dim); line-height: 1.6; max-width: 540px; margin: 0 0 32px; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-glow { box-shadow: 0 8px 24px rgba(217, 247, 86, 0.3); }
.btn-cyan { background: var(--cyan); color: #000; font-weight: 700; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3); }

.live-ticker { background: var(--panel); border: 1px solid var(--bd); border-radius: 20px; padding: 20px; }
.live-ticker__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.live-ticker__live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--red); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.2); } 50% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); } }
.live-ticker__ago { font-size: 11px; color: var(--fg-dim); }
.live-ticker__rows { display: flex; flex-direction: column; gap: 12px; }
.live-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--input); border: 1px solid var(--bd); }
.live-row__match { flex: 1; min-width: 0; }
.live-row__league { font-size: 10px; color: var(--fg-muted); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 3px; }
.live-row__teams { font-size: 13px; color: var(--fg); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row__teams span { color: var(--fg-muted); }
.live-row__odds { text-align: right; }
.live-row__pick { font-size: 10px; color: var(--fg-muted); margin-bottom: 2px; }
.live-row__num { font-size: 14px; font-weight: 700; color: var(--fg); font-family: ui-monospace, monospace; }
.live-row__num.is-value { color: var(--lime-dark); }

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: var(--panel); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; }
.stat-cell { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid var(--bd); }
.stat-cell:last-child { border-right: none; }
.stat-cell__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-hi); color: var(--fg-dim); flex-shrink: 0; }
.stat-cell__icon.is-accent { background: rgba(217, 247, 86, 0.1); color: var(--lime-dark); }
.stat-cell__icon svg { width: 20px; height: 20px; }
.stat-cell__text { display: flex; flex-direction: column; }
.stat-cell__v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.stat-cell__l { font-size: 12px; color: var(--fg-dim); margin-top: 4px; text-transform: capitalize; }

.journal-show { position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(135deg, rgba(217, 247, 86, 0.08) 0%, rgba(34, 211, 238, 0.05) 100%); border: 1px solid rgba(217, 247, 86, 0.2); }
.journal-show__glow { position: absolute; top: -80px; right: -80px; width: 360px; height: 360px; background: rgba(217, 247, 86, 0.1); filter: blur(100px); border-radius: 50%; pointer-events: none; }
.journal-show__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.journal-show__copy { padding: 44px 40px; }
.journal-show__h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 16px; }
.journal-show__p { font-size: 15px; color: var(--fg-dim); line-height: 1.6; margin: 0 0 24px; max-width: 440px; }
.journal-show__feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.journal-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg); }
.journal-feat__ic { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: rgba(217, 247, 86, 0.12); border: 1px solid rgba(217, 247, 86, 0.2); color: var(--lime-dark); }
.journal-feat__ic svg { width: 14px; height: 14px; }
.journal-show__preview { padding: 44px 40px 44px 0; display: flex; align-items: center; }
.journal-mock { width: 100%; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--bd); box-shadow: 0 20px 60px rgba(6, 7, 10, 0.4); }
.journal-mock__tiles { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.journal-tile { padding: 14px; border-radius: 10px; background: var(--input); border: 1px solid var(--bd); }
.journal-tile__l { font-size: 9px; color: var(--fg-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.journal-tile__v { font-size: 22px; font-weight: 800; font-family: ui-monospace, monospace; letter-spacing: -0.02em; }
.journal-tile__v--pos { color: #10B981; }
.journal-tile__v--cyan { color: var(--cyan); }
.journal-mock__chart { padding: 0 20px 20px; }
.journal-mock__chart svg { display: block; width: 100%; height: 80px; border-radius: 10px; background: var(--input); border: 1px solid var(--bd); padding: 12px; }

.pm-teaser { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px 36px; border-radius: 20px; background: var(--panel); border: 1px solid var(--bd); }
.pm-teaser__glow { position: absolute; top: -60px; left: 30%; width: 280px; height: 280px; background: rgba(34, 211, 238, 0.06); filter: blur(90px); border-radius: 50%; pointer-events: none; }
.pm-teaser__icon { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(217, 247, 86, 0.1)); border: 1px solid rgba(34, 211, 238, 0.3); color: var(--cyan); }
.pm-teaser__icon svg { width: 30px; height: 30px; }
.pm-teaser__copy { position: relative; z-index: 1; min-width: 0; }
.pm-teaser__new { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; background: rgba(34, 211, 238, 0.12); color: var(--cyan); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.pm-teaser__h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.pm-teaser__p { font-size: 14px; color: var(--fg-dim); line-height: 1.55; margin: 0; max-width: 560px; }
.pm-teaser .btn { position: relative; z-index: 1; white-space: nowrap; }

.compact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ccompact { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; min-height: 180px; padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--bd); color: var(--fg); text-decoration: none; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.ccompact:hover { background: var(--panel-hi); border-color: hsl(var(--hue) 80% 65% / 0.25); transform: translateY(-3px); }
.ccompact__glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: hsl(var(--hue) 80% 65% / 0.12); filter: blur(40px); pointer-events: none; }
.ccompact__icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: hsl(var(--hue) 80% 65%); background: hsl(var(--hue) 80% 65% / 0.12); border: 1px solid hsl(var(--hue) 80% 65% / 0.25); }
.ccompact__icon svg { width: 22px; height: 22px; }
.ccompact__body { position: relative; flex: 1; display: flex; flex-direction: column; }
.ccompact__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.ccompact__desc { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.ccompact__cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: hsl(var(--hue) 80% 65%); }
.ccompact__cta svg { width: 16px; height: 16px; }

.section__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bd-hi); color: var(--fg); font-weight: 500; font-size: 13px; }
.section__link:hover { background: var(--panel-hi); }
.section__link svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .home-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .journal-show__grid { grid-template-columns: 1fr; }
  .journal-show__preview { padding: 0 40px 44px; }
}
@media (max-width: 720px) {
  .pm-teaser { grid-template-columns: 1fr; text-align: center; }
  .pm-teaser__icon { margin: 0 auto; }
  .journal-show__copy { padding: 32px 24px; }
  .journal-show__preview { padding: 0 24px 32px; }
}

/* ---------- Related calculators (mirrors RelatedCalcs) ---------- */
.related-section { margin-top: 60px; }
.related-section__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.related-section__head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 6px; }
.related-section__head p { font-size: 14px; color: var(--fg-dim); margin: 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 0; }
.relc { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--bd); color: var(--fg); text-decoration: none; transition: border-color .2s ease, transform .2s ease, background-color .2s ease; }
.relc:hover { background: var(--panel-hi); border-color: hsl(var(--hue) 80% 65% / 0.25); transform: translateY(-2px); }
.relc__head { display: flex; align-items: center; gap: 12px; }
.relc__icon { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: hsl(var(--hue) 80% 65%); background: hsl(var(--hue) 80% 65% / 0.12); border: 1px solid hsl(var(--hue) 80% 65% / 0.25); }
.relc__icon svg { width: 18px; height: 18px; }
.relc__heading { flex: 1; min-width: 0; }
.relc__title { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 2px; }
.relc__desc { display: block; font-size: 11px; color: var(--fg-muted); }
.relc__arrow { flex-shrink: 0; display: inline-flex; color: hsl(var(--hue) 80% 65%); }
.relc__arrow svg { width: 16px; height: 16px; }
.relc__pair { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: hsl(var(--hue) 80% 65% / 0.12); border: 1px solid hsl(var(--hue) 80% 65% / 0.25); font-size: 12px; color: var(--fg); line-height: 1.5; }
.relc__pair svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; color: hsl(var(--hue) 80% 65%); }

/* ---------- Social sign-in buttons (auth page) ---------- */
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 16px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--bd-hi); background: var(--panel-hi); color: var(--fg); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.oauth-btn:hover { border-color: var(--fg-muted); background: var(--input); }
.oauth-btn__icon { display: inline-flex; }
.oauth-btn__icon svg { width: 18px; height: 18px; display: block; }
.oauth-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--fg-muted); font-size: 12px; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--bd); }

/* ---------- Compliance top bar + modal ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--bd); }
.topbar__inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar__age { flex-shrink: 0; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red); font-size: 10px; font-weight: 800; }
.topbar__text { flex: 1; min-width: 0; margin: 0; font-size: 12px; color: var(--fg-dim); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__geo { color: var(--fg-muted); margin-left: 8px; }
.topbar__more { flex-shrink: 0; padding: 5px 12px; border-radius: 999px; background: transparent; border: 1px solid var(--bd-hi); color: var(--fg); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.topbar__more:hover { background: var(--panel-hi); }
.topbar__x { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: transparent; border: none; color: var(--fg-muted); cursor: pointer; }
.topbar__x:hover { color: var(--fg); }
.topbar__x svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .topbar__geo { display: none; } }

.tbmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.tbmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.tbmodal__card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--panel); border: 1px solid var(--bd-hi); border-radius: 20px; padding: 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); }
.tbmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tbmodal__head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.tbmodal__x { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-hi); border: 1px solid var(--bd); color: var(--fg-dim); cursor: pointer; }
.tbmodal__x:hover { color: var(--fg); }
.tbmodal__x svg { width: 16px; height: 16px; }
.tbmodal__sec { margin-bottom: 18px; }
.tbmodal__sec h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.tbmodal__sec h3 svg { width: 15px; height: 15px; color: var(--cyan); }
.tbmodal__sec p { font-size: 13px; color: var(--fg-dim); line-height: 1.65; margin: 0; }
.tbmodal__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--cyan); }
.tbmodal__link svg { width: 14px; height: 14px; }
.tbmodal__ok { width: 100%; justify-content: center; margin-top: 4px; }

/* Admin-only state indicators: pages/links of a section switched off in
   /admin/settings render only for a logged-in admin — mark them clearly. */
.admin-preview { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-size: 13px; line-height: 1.45; color: var(--fg); background: rgba(251,191,36,.13); border-bottom: 1px solid rgba(251,191,36,.35); }
.admin-preview svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--amber); }
.admin-preview span { color: var(--fg-dim); }
.admin-preview strong { color: var(--amber); font-weight: 700; }
.admin-preview a { flex-shrink: 0; font-weight: 700; color: var(--amber); text-decoration: underline; }
.nav-off { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); border: 1px solid currentColor; border-radius: 4px; padding: 1px 4px; margin-left: 5px; }

/* Home hero tools panel (shown instead of the ticker when predictions are off)
   and linked cells in the stats strip. */
.tools-panel__title { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-dark); }
.tools-panel__title svg { width: 14px; height: 14px; }
a.live-ticker__ago:hover { color: var(--fg); }
a.live-row { transition: background-color .15s ease, border-color .15s ease; }
a.live-row:hover { background: var(--panel-hi); border-color: var(--bd-hi); }
.live-row__go { display: inline-flex; color: var(--lime-dark); }
.live-row__go svg { width: 16px; height: 16px; }
a.stat-cell { transition: background-color .15s ease; }
a.stat-cell:hover { background: var(--panel-hi); }

/* Hero artwork — glowing analytics scene inside the hero side card. */
.hero-art { width: 100%; height: auto; margin: 2px 0 14px; display: block; }
.hero-art__panel { fill: color-mix(in srgb, var(--fg) 3%, transparent); stroke: var(--bd-hi); }
.hero-art__grid path { stroke: var(--fg-muted); opacity: .25; stroke-dasharray: 2 4; }
.hero-art__faint circle, .hero-art__faint path { stroke: var(--fg-muted); opacity: .35; }
.hero-art__spark { fill: var(--fg-muted); stroke: none; opacity: .6; }
.hero-art__line2 { stroke: var(--cyan); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: .55; }
.hero-art__stem { stroke: var(--fg-muted); stroke-dasharray: 2 3; opacity: .5; }
.hero-art__ring-bg { stroke: var(--panel-hi); stroke-width: 4; }
.hero-art__num { fill: var(--fg); font-size: 13px; font-weight: 700; font-family: ui-monospace, monospace; }

/* Calculators catalog power tools: search, sort, topic facets, empty state. */
.catalog-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-search { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 380px; }
.catalog-search > svg { position: absolute; left: 13px; width: 15px; height: 15px; color: var(--fg-muted); pointer-events: none; }
.catalog-search input { width: 100%; padding: 11px 38px; background: var(--input); border: 1px solid var(--bd); border-radius: 999px; color: var(--fg); font: inherit; font-size: 14px; outline: none; transition: border-color .15s ease; }
.catalog-search input:focus { border-color: var(--lime); }
.catalog-search input::-webkit-search-cancel-button { display: none; }
.catalog-search__x { position: absolute; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-hi); border: none; color: var(--fg-dim); cursor: pointer; }
.catalog-search__x:hover { color: var(--fg); }
.catalog-search__x svg { width: 12px; height: 12px; }
.catalog-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-dim); white-space: nowrap; }
.catalog-sort select { padding: 10px 12px; background: var(--input); border: 1px solid var(--bd); border-radius: 10px; color: var(--fg); font: inherit; font-size: 13px; outline: none; cursor: pointer; }
.catalog-sort select:focus { border-color: var(--lime); }
.catalog-tools .calc-catalog__showing { margin-left: auto; }
.calc-catalog__bar { margin-bottom: 12px; }
.filters--tags { margin: 0 0 26px; }
.filters--tags .chip--tag { font-size: 12px; padding: 6px 11px; border-style: dashed; }
.filters--tags .chip--tag.active { border-style: solid; }
.catalog-grid[data-empty="1"] { min-height: 0; }
.catalog-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; border: 1px dashed var(--bd-hi); border-radius: 16px; color: var(--fg-dim); text-align: center; }
.catalog-empty svg { width: 32px; height: 32px; color: var(--fg-muted); }
.catalog-empty p { margin: 0; font-size: 15px; }
@media (max-width: 640px) { .catalog-tools .calc-catalog__showing { margin-left: 0; width: 100%; } .catalog-search { max-width: none; } }

/* Trust & legal pages (about, terms, disclosures, methodology, cookies). */
.legal-updated { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; font-size: 13px; color: var(--fg-muted); }
.legal-updated svg { width: 14px; height: 14px; }
.legal-prose section { margin-bottom: 4px; }
.legal-prose h2 { font-size: 21px; margin: 36px 0 12px; }
.legal-prose p { font-size: 15.5px; line-height: 1.78; }
.legal-prose .seo-list li { font-size: 15px; line-height: 1.7; align-items: flex-start; }
.legal-prose .seo-list .check svg { width: 15px; height: 15px; }
.legal-more { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--bd); }
.legal-more h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); margin: 0 0 14px; }
.legal-more__links { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-more__links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bd); background: var(--panel); color: var(--fg-dim); font-size: 13px; font-weight: 500; }
.legal-more__links a:hover { color: var(--fg); border-color: var(--bd-hi); background: var(--panel-hi); }
.legal-more__links svg { width: 13px; height: 13px; }

/* Odds reference pages: the answer block and the value grids. */
.odds-answer { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--bd); border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; margin: 4px 0 30px; }
.odds-answer__cell { background: var(--panel); padding: 20px 22px; }
.odds-answer__cell.is-accent { background: rgba(217,247,86,.07); }
.odds-answer__cell small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted); margin-bottom: 8px; font-weight: 700; }
.odds-answer__cell b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.odds-answer__cell.is-accent b { color: var(--lime-dark); }
.odds-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.odds-grid a { display: inline-flex; align-items: center; justify-content: center; min-width: 62px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--bd); background: var(--panel); color: var(--fg-dim); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.odds-grid a:hover { color: var(--fg); border-color: var(--lime); background: var(--panel-hi); }
@media (max-width: 480px) { .odds-answer__cell b { font-size: 24px; } }
