/* Speltips.se — Swedish blue/yellow design system */
/* Default: dark theme */
:root, [data-theme="dark"] {
  --blue: #005293;
  --blue-dark: #003d6e;
  --blue-deep: #001a2e;
  --blue-night: #00264a;
  --yellow: #FECC00;
  --yellow-soft: #FFE176;
  --yellow-deep: #E0B400;
  --bg: #0a1929;
  --bg-2: #0e2236;
  --surface: #122a42;
  --surface-2: #1a3552;
  --card-bg: #122a42;
  --header-bg: rgba(10,25,41,0.92);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f3f6fa;
  --text-muted: #9fb3c8;
  --text-dim: #6b829c;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --container: 1200px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* Light theme */
[data-theme="light"] {
  --blue: #005293;
  --blue-dark: #003d6e;
  --blue-deep: #003066;
  --blue-night: #001f3f;
  --yellow: #c79100;       /* deeper yellow for legibility on light bg */
  --yellow-soft: #FFE176;
  --yellow-deep: #8a6a00;
  --bg: #f7f9fc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --card-bg: #ffffff;
  --header-bg: rgba(255,255,255,0.92);
  --border: rgba(8,30,57,0.08);
  --border-strong: rgba(8,30,57,0.18);
  --text: #0c1f33;
  --text-muted: #4d6478;
  --text-dim: #7d8fa1;
  --success: #10b981;
  --danger: #d62828;
  --shadow: 0 4px 14px rgba(8,30,57,0.08);
  --shadow-lg: 0 18px 38px rgba(8,30,57,0.14);
}

[data-theme="light"] .article-body table th { color: var(--blue-deep); background: var(--surface-2); }
[data-theme="light"] .article-body table td strong { color: #0a8a4d; }
[data-theme="light"] .nav a.active { color: var(--blue); }
[data-theme="light"] .article-body strong, [data-theme="light"] .article-body { color: var(--text); }
[data-theme="light"] a { color: var(--blue); }
[data-theme="light"] a:hover { color: var(--blue-dark); }
[data-theme="light"] .brand-logo { color: var(--blue-deep); }
[data-theme="light"] .article-body .pick-box .pick-line .odds { color: var(--blue); }
[data-theme="light"] .crumbs a:hover, [data-theme="light"] .article-body h2 .accent-bar { color: var(--blue); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow-soft); }
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--text); }
small { color: var(--text-muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Disclosure bar */
.disclosure {
  background: var(--blue-deep);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.disclosure a { color: var(--yellow); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.brand-logo:hover { color: var(--text); }
.brand-logo svg { display: block; height: 34px; width: auto; flex-shrink: 0; }
.brand-logo .wordmark-dot { color: var(--yellow); }
@media (max-width: 540px) {
  .brand-logo { font-size: 1.1rem; gap: 8px; }
  .brand-logo svg { height: 28px; }
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-muted); padding: 8px 14px; border-radius: 8px; font-weight: 500; font-size: 14px; transition: all var(--transition); }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { color: var(--yellow); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border-strong); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  filter: saturate(1.2) brightness(0.7);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-deep) 0%, transparent 60%), linear-gradient(0deg, var(--bg) 0%, transparent 60%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }
.hero h1 { color: var(--text); margin-bottom: 0.4em; max-width: 880px; }
.hero h1 .accent { color: var(--yellow); }
.hero .lede { font-size: 1.2rem; color: var(--text-muted); max-width: 720px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
}
.btn-primary { background: var(--yellow); color: var(--blue-deep); box-shadow: 0 6px 16px rgba(254,204,0,0.25); }
.btn-primary:hover { background: var(--yellow-soft); color: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(254,204,0,0.35); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface); color: var(--text); border-color: var(--yellow); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* Sections */
section.block { padding: 80px 0; }
section.block-sm { padding: 56px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-title h2 { margin: 0; }
.section-title .lede { color: var(--text-muted); margin: 6px 0 0; max-width: 620px; }
.section-eyebrow { color: var(--yellow); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }

/* Brand cards */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.brand-card:hover { transform: translateY(-3px); border-color: var(--yellow); box-shadow: var(--shadow-lg); }

/* Whole-card-clickable variant used on bonuskoder index */
.brand-card-linked { position: relative; cursor: pointer; }
.brand-card-linked .brand-card-link {
  position: absolute; inset: 0; z-index: 1;
  text-decoration: none; color: inherit;
  border-radius: inherit;
}
.brand-card-linked .brand-card-link:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 2px;
}
.brand-card-linked .body > * { position: relative; z-index: 0; }
.brand-card-linked .actions { position: relative; z-index: 2; }
.brand-card-linked .see-all {
  margin-top: auto;
  padding: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.01em;
  border-top: 1px dashed var(--border);
}
.brand-card-linked .see-all span { display: inline-block; transition: transform 200ms ease; margin-left: 4px; }
.brand-card-linked:hover .see-all span { transform: translateX(4px); }
.brand-card .image-wrap { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--bg-2); }
.brand-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.brand-card:hover .image-wrap img { transform: scale(1.04); }
.brand-card .rank-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--yellow);
  color: var(--blue-deep);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.brand-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.brand-card h3 { margin: 0; color: var(--text); }
.brand-card .tagline { color: var(--text-muted); font-size: 14px; margin: 0; }
.brand-card .rating { display: flex; align-items: center; gap: 8px; }
.brand-card .rating .score { background: var(--yellow); color: var(--blue-deep); padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 14px; }
.brand-card .rating .score-label { color: var(--text-muted); font-size: 13px; }
.brand-card .bonus-row { background: var(--bg-2); border-left: 3px solid var(--yellow); padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.brand-card .bonus-row b { color: var(--yellow); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; font-weight: 700; }
.brand-card .actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.brand-card .actions .btn { flex: 1; padding: 11px 14px; font-size: 14px; }

/* Comparison table */
.compare-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table th { background: var(--blue-deep); color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--surface-2); }
.compare-table .brand-cell { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); }
.compare-table .score-pill { background: var(--yellow); color: var(--blue-deep); padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 13px; }
.compare-table .promo-code { font-family: ui-monospace, 'SF Mono', monospace; background: var(--bg-2); border: 1px dashed var(--yellow); color: var(--yellow); padding: 4px 8px; border-radius: 4px; font-size: 12px; }

/* Tip cards */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 14px;
}
.tip-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.tip-card .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tip-card .meta .badge { background: var(--blue-deep); color: var(--yellow); padding: 4px 10px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.tip-card .meta .date { color: var(--text-muted); padding: 4px 0; }
.tip-card h3 { font-size: 1.2rem; margin: 0; color: var(--text); line-height: 1.35; }
.tip-card h3 a { color: var(--text); }
.tip-card h3 a:hover { color: var(--yellow); }
.tip-card .pick { background: var(--bg-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.tip-card .pick-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.tip-card .pick-value { color: var(--yellow); font-weight: 800; font-size: 16px; }
.tip-card .pick-odds { color: var(--text); font-weight: 700; margin-left: 6px; }
.tip-card .author { font-size: 13px; color: var(--text-muted); margin-top: auto; }

/* Article body */
.article-hero { padding: 60px 0 28px; }
.article-hero .meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.article-hero .meta .cat { color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.article-hero h1 { color: var(--text); max-width: 880px; }
.article-hero .standfirst { font-size: 1.15rem; color: var(--text-muted); max-width: 760px; }
.article-byline {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 24px 0;
  font-size: 14px;
}
.article-byline .author-init {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.article-byline .author-meta b { color: var(--text); display: block; }
.article-byline .author-meta span { color: var(--text-muted); font-size: 12px; }
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { color: var(--text); margin-top: 2.2em; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.article-body h2 .accent-bar { color: var(--yellow); }
.article-body h3 { color: var(--text); margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body ul li, .article-body ol li { margin-bottom: 0.6em; color: var(--text); }
.article-body strong { color: var(--text); }
.article-body blockquote {
  border-left: 4px solid var(--yellow);
  padding: 12px 22px;
  margin: 1.6em 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
}
.article-body .pick-box {
  background: var(--surface);
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0;
}
.article-body .pick-box h3 { margin-top: 0; color: var(--yellow); }
.article-body .pick-box .pick-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.article-body .pick-box .pick-line:last-child { border-bottom: none; }
.article-body .pick-box .pick-line b { color: var(--text); }
.article-body .pick-box .pick-line .odds { color: var(--yellow); font-weight: 800; }

/* Review pages */
.review-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--bg));
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}
.review-header .container { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.review-header h1 { margin-bottom: 8px; }
.review-header .review-image { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; }
.review-header .review-image img { width: 100%; height: 100%; object-fit: cover; }
.quick-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 28px 0;
}
.quick-facts h3 { margin-top: 0; color: var(--yellow); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.quick-facts dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.quick-facts dt { color: var(--text-muted); }
.quick-facts dd { margin: 0; color: var(--text); font-weight: 600; }

.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 28px 0; }
.score-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.score-tile .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.score-tile .num { font-size: 1.8rem; font-weight: 800; color: var(--yellow); margin: 4px 0; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0; }
.proscons > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.proscons h3 { margin-top: 0; }
.proscons .pros h3 { color: var(--success); }
.proscons .cons h3 { color: var(--danger); }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons ul li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14px; }
.proscons .pros ul li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.proscons .cons ul li::before { content: '−'; position: absolute; left: 0; color: var(--danger); font-weight: 800; }

.promo-box {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: 1px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.promo-box .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); font-weight: 700; }
.promo-box h3 { color: white; margin: 6px 0; font-size: 1.4rem; }
.promo-box .code-row { display: flex; align-items: center; gap: 10px; }
.promo-box .code {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 1.5rem; font-weight: 800;
  background: var(--blue-deep);
  border: 2px dashed var(--yellow);
  padding: 12px 22px;
  border-radius: 8px;
  color: var(--yellow);
  letter-spacing: 0.1em;
}
.promo-box .copy-btn { background: var(--yellow); color: var(--blue-deep); border: none; padding: 12px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* Categories grid (homepage) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  text-align: center;
}
.cat-card:hover { border-color: var(--yellow); transform: translateY(-2px); background: var(--surface-2); }
.cat-card h3 { color: var(--text); margin: 8px 0; font-size: 1.1rem; }
.cat-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.cat-card .ico { width: 44px; height: 44px; background: var(--blue); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--yellow); font-weight: 800; font-size: 22px; margin-bottom: 8px; }

/* WC2026 countdown banner */
.wc-banner {
  background-image: linear-gradient(135deg, rgba(0,26,46,0.85), rgba(0,82,147,0.55)), url('images/speltips_wc2026_hero.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  margin: 28px 0;
  border: 1px solid var(--yellow);
  position: relative;
  overflow: hidden;
}
.wc-banner h2 { color: var(--yellow); font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 8px; }
.wc-banner .lede { color: white; max-width: 640px; margin: 0 auto 20px; }
.wc-banner .countdown { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.wc-banner .cd-tile {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 78px;
}
.wc-banner .cd-tile .num { font-size: 1.8rem; font-weight: 800; color: var(--yellow); display: block; line-height: 1; }
.wc-banner .cd-tile .lab { font-size: 11px; color: white; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* Footer */
.site-footer {
  background: var(--blue-deep);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.footer-col h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--yellow); }
.rg-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.rg-block strong { color: var(--yellow); }
.rg-block a { color: var(--yellow); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }

/* FAQ */
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq-list details[open] { border-color: var(--yellow); }
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--text); list-style: none; position: relative; padding-right: 30px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--yellow); font-size: 22px; line-height: 1; transition: transform var(--transition); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > p { margin-top: 12px; color: var(--text-muted); }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; padding-top: 24px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { color: var(--text-dim); margin: 0 6px; }

/* Mobile */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-toggle { display: inline-flex; }
  .review-header .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .promo-box { grid-template-columns: 1fr; text-align: center; }
  .quick-facts dl { grid-template-columns: 1fr; gap: 4px; }
  .quick-facts dt { color: var(--text-muted); margin-top: 8px; }
  section.block { padding: 56px 0; }
  .hero { min-height: 480px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .compare-table th:nth-child(n+4), .compare-table td:nth-child(n+4) { display: none; }
}

/* Live odds widget */
.live-odds-wrap { margin-top: 24px; }
.live-odds-meta { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; font-size:0.92rem; color:var(--text-muted); }
.live-odds-meta .pulse { display:inline-flex; align-items:center; gap:8px; color:var(--yellow); font-weight:600; }
.live-odds-meta .pulse::before { content:""; width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 0 rgba(34,197,94,0.7); animation:pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.7)} 70%{box-shadow:0 0 0 10px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.fixture-list { display:grid; gap:14px; }
.fixture-card { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:18px 20px; }
.fixture-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.fixture-teams { font-size:1.08rem; font-weight:700; }
.fixture-date { font-size:0.88rem; color:var(--text-muted); }
.fixture-odds { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.bookie-row { background:var(--bg-2); border:1px solid var(--border); border-radius:8px; padding:10px 12px; }
.bookie-name { font-size:0.78rem; font-weight:700; color:var(--yellow); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:6px; }
.bookie-prices { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; font-variant-numeric:tabular-nums; }
.bookie-prices > div { text-align:center; }
.bookie-prices .lab { font-size:0.7rem; color:var(--text-muted); display:block; }
.bookie-prices .px { font-weight:700; color:var(--text); }
.bookie-prices .px.best { color:#22c55e; }
.live-odds-loading { padding:40px 20px; text-align:center; color:var(--text-muted); }
.live-odds-error { padding:24px; background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.3); border-radius:10px; color:var(--text); }

/* === Standardized footer (added 2026-05-07 overhaul) === */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 24px; margin-top: 80px; }
.site-footer .footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: var(--yellow); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.92rem; }
.site-footer ul li a:hover { color: var(--text); }
.site-footer .footer-about { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin: 0; }
.site-footer .footer-rg { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin: 0 0 12px; }
.site-footer .footer-rg-links a { color: var(--yellow); text-decoration: none; font-size: 0.88rem; line-height: 1.8; }
.site-footer .footer-rg-links a:hover { text-decoration: underline; }
.site-footer .footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.site-footer .footer-bottom p { color: var(--text-muted); font-size: 0.84rem; margin: 0 0 8px; line-height: 1.65; }
.site-footer .footer-tax { color: var(--text-muted); font-size: 0.78rem; opacity: 0.85; }

@media (max-width: 900px) {
  .site-footer .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .site-footer .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* === Hamburger menu, mobile-first === */
.menu-toggle { background: transparent; border: 1px solid var(--border-strong); color: var(--text); width: 40px; height: 40px; border-radius: 8px; display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; }
.menu-toggle:hover { background: var(--bg-2); }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; z-index: 100; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav a:last-child { border-bottom: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .container { position: relative; }
}

/* === Match preview / review article styling === */
.article-body { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.article-body .byline { color: var(--text-muted); font-size: 0.86rem; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-body h1 { font-size: 2.4rem; line-height: 1.18; margin: 28px 0 16px; }
.article-body h2 { font-size: 1.55rem; line-height: 1.25; margin: 40px 0 14px; color: var(--text); }
.article-body h3 { font-size: 1.18rem; line-height: 1.3; margin: 28px 0 10px; }
.article-body p { line-height: 1.78; margin: 0 0 16px; }
.article-body ul, .article-body ol { line-height: 1.78; padding-left: 1.4em; margin-bottom: 16px; }
.article-body ul li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.92rem; }
.article-body table th, .article-body table td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.article-body table th { background: var(--bg-2); font-weight: 700; color: var(--yellow); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
.article-body table td strong { color: #22c55e; }
.article-body .key-points { background: var(--bg-2); border-left: 3px solid var(--yellow); padding: 16px 20px; margin: 24px 0; border-radius: 0 8px 8px 0; }
.article-body .key-points ul { margin: 0; padding-left: 1.2em; }
.article-body .tipsruta { background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02)); border: 1px solid rgba(34,197,94,0.3); border-radius: 12px; padding: 4px 16px 16px; margin: 24px 0; }
.article-body .tipsruta-label { display: inline-block; background: #22c55e; color: #042c1e; font-weight: 700; font-size: 0.74rem; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; margin: 14px 0 0; }
.article-body blockquote { border-left: 3px solid var(--yellow); padding: 4px 18px; margin: 18px 0; color: var(--text-muted); font-style: italic; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 18px 0; }
.article-body .article-cta { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; margin: 28px 0; flex-wrap: wrap; }
.article-body .skattetext { font-size: 0.86rem; color: var(--text-muted); padding: 14px 16px; background: rgba(255,179,0,0.06); border: 1px solid rgba(255,179,0,0.2); border-radius: 8px; margin: 18px 0; }

/* Bracket path component */
.bracket-path { display: grid; gap: 18px; margin: 24px 0; }
.bracket-scenario { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.bracket-scenario h3 { color: var(--yellow); margin: 0 0 14px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bracket-rounds { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.bracket-round { flex: 1; min-width: 130px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.bracket-round-label { font-size: 0.72rem; color: var(--yellow); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.bracket-round-opp { font-size: 0.86rem; color: var(--text); margin-bottom: 4px; }
.bracket-round-venue { font-size: 0.74rem; color: var(--text-muted); margin-bottom: 6px; }
.bracket-round-odds { font-size: 0.92rem; font-weight: 700; color: #22c55e; font-variant-numeric: tabular-nums; }

/* Sweden route-to-final graphic on /vm-2026/ */
.route-graphic {
  margin: 28px 0 36px;
  padding: 22px 22px 14px;
  background: linear-gradient(180deg, rgba(251,191,36,0.04) 0%, rgba(0,0,0,0) 60%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.route-graphic .route-title {
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 0 12px;
  text-align: left;
}
.route-graphic .route-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--yellow);
}
.route-graphic .route-sub {
  font-size: 14px; color: var(--text-muted);
}
.route-graphic .route-svg {
  display: block; width: 100%; height: auto;
  max-height: 320px;
}
@media (max-width: 720px) {
  .route-graphic .route-svg { max-height: none; }
}

/* === Header right cluster === */
.header-right { display: flex; align-items: center; gap: 8px; }

/* === Theme toggle === */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* === Tips ticker === */
.tips-ticker {
  background: var(--blue-deep);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
[data-theme="light"] .tips-ticker { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.tips-ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 8px 16px;
}
.tips-ticker-label {
  flex-shrink: 0;
  background: var(--yellow);
  color: #001a2e;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
}
[data-theme="light"] .tips-ticker-label { color: #fff; background: var(--blue); }
.tips-ticker-track {
  display: flex;
  gap: 28px;
  overflow: hidden;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.tips-ticker-row {
  display: flex;
  gap: 28px;
  animation: ticker-slide 140s linear infinite;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .tips-ticker-row { animation-duration: 220s; }
}
.tips-ticker:hover .tips-ticker-row { animation-play-state: paused; }
@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tips-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tips-ticker-item time { color: var(--yellow); font-weight: 700; font-variant-numeric: tabular-nums; }
[data-theme="light"] .tips-ticker-item time { color: var(--blue); }
.tips-ticker-item .league { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.tips-ticker-item a { color: var(--text); font-weight: 600; }
.tips-ticker-item a:hover { color: var(--yellow); }
[data-theme="light"] .tips-ticker-item a:hover { color: var(--blue); }
.tips-ticker-item .pick { color: var(--text-muted); font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .tips-ticker-row { animation: none; }
  .tips-ticker-track { overflow-x: auto; }
}

/* === Tip CTA row injected after Tipsruta === */
.tip-cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px 16px; margin: -4px 0 22px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  border-top: none;
}
.tip-cta-label { font-size: 0.78rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; }
[data-theme="light"] .tip-cta-label { color: var(--blue); }
.tip-cta-btn { font-size: 0.86rem; padding: 8px 14px; }
.bm-link { color: var(--yellow); font-weight: 600; text-decoration: none; border-bottom: 1px dotted currentColor; }
.bm-link:hover { color: var(--yellow-soft); }
[data-theme="light"] .bm-link { color: var(--blue); }
[data-theme="light"] .bm-link:hover { color: var(--blue-dark); }

/* === Sticky mobile CTA on tip pages === */
.sticky-tip-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--bg-2);
  border-top: 1px solid var(--border-strong);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  align-items: center; justify-content: space-between; gap: 10px;
}
.sticky-tip-cta .tag { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sticky-tip-cta .pick { font-weight: 700; color: var(--text); font-size: 0.92rem; }
.sticky-tip-cta a.btn { padding: 10px 14px; font-size: 0.86rem; }
@media (max-width: 720px) {
  .sticky-tip-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 80px; }
}

/* === Related tips block === */
.related-tips {
  max-width: 760px; margin: 56px auto 0; padding: 0 20px;
}
.related-tips h2 {
  font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--yellow); padding-bottom: 10px; border-bottom: 1px solid var(--border);
  margin: 0 0 18px;
}
[data-theme="light"] .related-tips h2 { color: var(--blue); }
.related-tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-tip-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  text-decoration: none;
  transition: all var(--transition);
}
.related-tip-card:hover { transform: translateY(-2px); border-color: var(--yellow); box-shadow: var(--shadow); }
[data-theme="light"] .related-tip-card:hover { border-color: var(--blue); }
.related-tip-card .league { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.related-tip-card .matchup { font-size: 0.96rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.related-tip-card .when { font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* === Live odds inline (per tip) === */
.tip-live-odds {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tip-live-odds .lo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px;
}
.tip-live-odds .lo-title { font-size: 0.78rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.05em; }
[data-theme="light"] .tip-live-odds .lo-title { color: var(--blue); }
.tip-live-odds .lo-pulse { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--text-muted); }
.tip-live-odds .lo-pulse::before { content:""; width:7px; height:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 0 rgba(34,197,94,0.7); animation:pulse 2s infinite; }
.tip-live-odds .lo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tip-live-odds .lo-cell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tip-live-odds .lo-cell .bk { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.tip-live-odds .lo-cell .px { font-size: 1rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.tip-live-odds .lo-cell.best { border-color: rgba(34,197,94,0.5); background: rgba(34,197,94,0.08); }
.tip-live-odds .lo-cell.best .px { color: #22c55e; }
.tip-live-odds .lo-foot { margin-top: 8px; font-size: 0.72rem; color: var(--text-muted); }
.tip-live-odds .lo-empty { font-size: 0.86rem; color: var(--text-muted); font-style: italic; padding: 6px 0; }

/* === Mobile polish (>=540 already exists, add tip-page extras) === */
.article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 540px) {
  .site-header .container { padding: 10px 16px; }
  .header-right { gap: 6px; }
  .article-body { padding: 0 16px; }
  .article-body h1 { font-size: 1.7rem; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body table { font-size: 0.84rem; }
  .article-body table th, .article-body table td { padding: 8px 10px; }
}

/* ===== Calculator pages ===== */
.calc-shell { background: var(--surface, #f8f9fb); border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 24px; margin: 24px 0; }
[data-theme="light"] .calc-shell { background: #f8f9fb; border-color: #e5e7eb; }
.calc-form { display: flex; flex-direction: column; gap: 14px; }
.calc-form .field { display: flex; flex-direction: column; gap: 6px; }
.calc-form label { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.calc-form input[type="number"], .calc-form select { padding: 10px 12px; border: 1px solid var(--border, #d1d5db); border-radius: 8px; background: var(--bg, #fff); color: var(--text); font-size: 1rem; font-family: inherit; }
.calc-form input[type="number"]:focus, .calc-form select:focus { outline: 2px solid var(--blue, #0066B3); outline-offset: 1px; }
.calc-form .legs { display: flex; flex-direction: column; gap: 8px; }
.calc-form .leg-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; }
.calc-form .leg-row label { margin: 0; font-size: 0.85rem; color: var(--muted); }
.calc-form .leg-row input { padding: 8px 10px; }
.calc-form .btn-icon { background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; padding: 4px 10px; color: var(--muted); }
.calc-form .row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0; }
.calc-form small.muted { font-size: 0.78rem; }
.calc-result { margin-top: 18px; padding: 18px; background: var(--bg, #fff); border: 1px solid var(--border); border-radius: 10px; min-height: 60px; }
.calc-result .muted { color: var(--muted); font-style: italic; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.result-grid .lab { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.result-grid .val { font-size: 1.25rem; font-weight: 700; margin-top: 2px; }
.result-grid .val.accent { color: var(--blue, #0066B3); }
.result-grid .val.ok { color: #15803d; }
.result-grid .val.bad { color: #b91c1c; }
.result-grid .val.warn { color: #b45309; }
[data-theme="dark"] .result-grid .val.ok { color: #4ade80; }
[data-theme="dark"] .result-grid .val.bad { color: #f87171; }
.result-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 0.92rem; }
.result-table th, .result-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.result-table th { background: var(--surface-alt, #f1f3f7); font-weight: 600; }
.meta-note { margin-top: 14px; padding: 12px 14px; background: var(--surface-alt, #f1f3f7); border-left: 3px solid var(--blue, #0066B3); border-radius: 4px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.meta-note .ok { color: #15803d; font-weight: 600; }
.meta-note .bad { color: #b91c1c; font-weight: 600; }
.meta-note .warn { color: #b45309; font-weight: 600; }
.related-links { padding-left: 18px; }
.related-links li { margin: 6px 0; }
.related-links a { color: var(--blue, #0066B3); text-decoration: none; font-weight: 500; }
.related-links a:hover { text-decoration: underline; }

/* ============================================================
   HOMEPAGE V2 — countdown hero, quicklinks, tables, cards
   ============================================================ */

/* Hero v2 — countdown card overlay */
.hero-v2 .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; max-width: 720px; }
.hero-v2 .hstat { background: rgba(0,0,0,0.32); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px 12px; text-align: center; }
[data-theme="light"] .hero-v2 .hstat { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.08); }
.hero-v2 .hstat-num { font-size: 1.6rem; font-weight: 800; color: var(--yellow, #FECC00); line-height: 1; }
[data-theme="light"] .hero-v2 .hstat-num { color: var(--blue, #0066B3); }
.hero-v2 .hstat-lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; line-height: 1.2; }

.countdown-card { display: inline-flex; flex-direction: column; gap: 6px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(254,204,0,0.4); border-radius: 12px; padding: 16px 22px; margin-top: 20px; }
[data-theme="light"] .countdown-card { background: rgba(255,255,255,0.85); border-color: rgba(0,82,147,0.3); }
.countdown-eyebrow { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.countdown-clock { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.4rem; font-weight: 800; color: var(--yellow, #FECC00); letter-spacing: 0.04em; }
[data-theme="light"] .countdown-clock { color: var(--blue, #0066B3); }
.countdown-clock .cd-sep { font-size: 0.7rem; color: var(--text-muted); margin: 0 6px 0 1px; font-weight: 500; }
.countdown-match a { color: var(--text); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.countdown-match a:hover { color: var(--yellow, #FECC00); }

/* Section spacing variants */
.block-tight { padding: 28px 0; }
.section-foot { text-align: center; margin-top: 28px; }

/* Quicklinks */
.quicklinks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ql-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); transition: all 0.2s; min-height: 100px; justify-content: center; }
.ql-card:hover { border-color: var(--yellow, #FECC00); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.ql-emoji { font-size: 1.8rem; line-height: 1; }
.ql-label { font-weight: 700; font-size: 0.95rem; }
.ql-sub { font-size: 0.72rem; color: var(--text-muted); text-align: center; line-height: 1.3; }

/* Generic table-wrap with horizontal scroll + fade edges */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--border); background: var(--card-bg, var(--surface)); }
.table-wrap[data-fade-edges]::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 28px; pointer-events: none; background: linear-gradient(to left, var(--card-bg, var(--surface)), transparent); opacity: 0; transition: opacity 0.2s; }
.table-wrap[data-fade-edges].is-scrollable::after { opacity: 1; }

/* Match table (upcoming) */
.match-table, .compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
.match-table th, .match-table td, .compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.match-table th, .compare-table th { background: var(--bg-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.match-table tr:last-child td, .compare-table tr:last-child td { border-bottom: none; }
.match-table tr:hover td, .compare-table tr:hover td { background: var(--bg-2); }
.match-table .cell-date { width: 110px; font-size: 0.82rem; line-height: 1.3; }
.match-table .cell-date .kickoff-rel { color: var(--yellow, #FECC00); font-weight: 700; }
[data-theme="light"] .match-table .cell-date .kickoff-rel { color: var(--blue, #0066B3); }
.match-table .cell-date .kickoff-abs { color: var(--text-muted); font-size: 0.76rem; }
.match-table .cell-league { font-size: 0.82rem; color: var(--text-muted); }
.match-table .cell-match a { color: var(--text); text-decoration: none; }
.match-table .cell-match a:hover { color: var(--yellow, #FECC00); }
[data-theme="light"] .match-table .cell-match a:hover { color: var(--blue, #0066B3); }
.match-table .cell-pick { font-weight: 600; }
.book-pill { display: inline-block; padding: 4px 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--text); text-decoration: none; }
.book-pill:hover { border-color: var(--yellow, #FECC00); color: var(--yellow, #FECC00); }
.rating-pill { display: inline-block; padding: 4px 10px; background: linear-gradient(135deg, #15803d, #22c55e); color: #fff; border-radius: 999px; font-weight: 700; font-size: 0.82rem; }

/* Compare table specifics */
.compare-table { min-width: 820px; }
.compare-table td a { color: var(--text); text-decoration: none; }
.compare-table td a:hover { color: var(--yellow, #FECC00); }
[data-theme="light"] .compare-table td a:hover { color: var(--blue, #0066B3); }

/* Button sizes */
.btn-xs { padding: 6px 12px; font-size: 0.78rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* Highlight cards (best bets) */
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hl-card { background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 14px; padding: 22px; transition: all 0.2s; display: flex; flex-direction: column; gap: 10px; }
.hl-card:hover { border-color: var(--yellow, #FECC00); transform: translateY(-2px); }
.hl-eyebrow { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.hl-title { margin: 0; font-size: 1.2rem; line-height: 1.25; }
.hl-title a { color: var(--text); text-decoration: none; }
.hl-title a:hover { color: var(--yellow, #FECC00); }
[data-theme="light"] .hl-title a:hover { color: var(--blue, #0066B3); }
.hl-pick { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--bg-2); border-radius: 8px; }
.hl-pick-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hl-pick-val { font-weight: 700; font-size: 1.05rem; color: var(--yellow, #FECC00); }
[data-theme="light"] .hl-pick-val { color: var(--blue, #0066B3); }
.hl-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; color: var(--text-muted); }
.hl-card .btn { margin-top: auto; align-self: flex-start; }

/* Tools grid */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px; background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); transition: all 0.2s; text-align: center; }
.tool-card:hover { border-color: var(--yellow, #FECC00); transform: translateY(-2px); }
.tool-icon { font-size: 1.6rem; line-height: 1; }
.tool-name { font-weight: 700; font-size: 0.92rem; }
.tool-desc { font-size: 0.74rem; color: var(--text-muted); }

/* Guides grid */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.guide-card:hover { border-color: var(--yellow, #FECC00); transform: translateY(-2px); }
.guide-tag { display: inline-block; padding: 3px 10px; background: var(--bg-2); border-radius: 999px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; align-self: flex-start; }
.guide-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.guide-card p { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

/* News grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.news-card:hover { border-color: var(--yellow, #FECC00); transform: translateY(-2px); }
.news-tag { display: inline-block; padding: 3px 10px; background: linear-gradient(135deg, #005293, #0066B3); color: #fff; border-radius: 999px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; align-self: flex-start; }
.news-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.news-card p { margin: 0; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   MOBILE — drawer nav, fluid type, sticky CTA, touch targets
   ============================================================ */

/* Fluid headings */
h1 { font-size: clamp(1.7rem, 4vw + 0.5rem, 3rem); }
h2 { font-size: clamp(1.4rem, 2.5vw + 0.4rem, 2rem); }
h3 { font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem); }

/* Touch targets — buttons, nav, links inside tables */
.btn, .menu-toggle, .theme-toggle { min-height: 44px; }
.btn-xs { min-height: 36px; }
.nav a { min-height: 44px; display: flex; align-items: center; }

/* Drawer nav improvements */
@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
  /* Closed state: hidden via translateX so it can't expand document width.
     Use right:0 + transform:translateX(100%) instead of right:-100% which
     extends the layout box past the viewport on some browsers and creates
     a horizontal scroll bug (page renders 2x viewport width). */
  .nav { position: fixed; top: 0; right: 0; left: auto; bottom: 0; width: 84%; max-width: 360px; height: 100vh; background: var(--bg); border-left: 1px solid var(--border); border-bottom: none; padding: 80px 24px 24px; z-index: 1100; flex-direction: column; gap: 4px; transform: translateX(100%); transition: transform 0.28s ease; box-shadow: -8px 0 32px rgba(0,0,0,0.4); display: flex; will-change: transform; }
  .nav.open { transform: translateX(0); }
  .nav a { width: 100%; padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.28s, visibility 0.28s; z-index: 1050; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .nav-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
}

/* Mobile-only homepage adjustments */
@media (max-width: 900px) {
  .hero-v2 .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-v2 .hstat { padding: 10px 8px; }
  .hero-v2 .hstat-num { font-size: 1.3rem; }
  .quicklinks { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ql-card { padding: 14px 8px; min-height: 90px; }
  .hl-grid { grid-template-columns: 1fr; gap: 14px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .guides-grid, .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .countdown-card { width: 100%; }
  .countdown-clock { font-size: 1.2rem; }
}

@media (max-width: 540px) {
  .quicklinks { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool-card { padding: 14px 10px; }
  .ql-card { min-height: 84px; }
  .match-table th, .match-table td, .compare-table th, .compare-table td { padding: 10px; font-size: 0.86rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* Sticky bottom CTA for review/bonus pages — only mobile */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  body.has-sticky-cta { padding-bottom: 76px; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--bg); border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,0.18); }
  .sticky-cta .sc-brand { font-weight: 700; font-size: 0.9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sticky-cta .btn { flex-shrink: 0; }
}

/* Reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--yellow, #FECC00), var(--blue, #0066B3)); width: 0; z-index: 200; transition: width 0.1s; pointer-events: none; }

/* Auto-TOC */
.auto-toc { background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
.auto-toc-title { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 700; margin: 0 0 10px; }
.auto-toc ol { margin: 0; padding-left: 22px; }
.auto-toc li { margin: 6px 0; }
.auto-toc a { color: var(--text); text-decoration: none; font-size: 0.94rem; }
.auto-toc a:hover { color: var(--yellow, #FECC00); }
[data-theme="light"] .auto-toc a:hover { color: var(--blue, #0066B3); }

/* Related tips block */
.related-tips { margin: 32px 0; padding: 22px; background: var(--card-bg, var(--surface)); border: 1px solid var(--border); border-radius: 12px; }
.related-tips h3 { margin: 0 0 14px; font-size: 1.1rem; }
.related-tips-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related-tip-item { padding: 12px 14px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 4px; transition: all 0.2s; }
.related-tip-item:hover { border-color: var(--yellow, #FECC00); }
.related-tip-league { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.related-tip-match { font-weight: 600; font-size: 0.92rem; }
.related-tip-pick { font-size: 0.82rem; color: var(--text-muted); }

/* Light-mode refinements for new components */
[data-theme="light"] .hl-card, [data-theme="light"] .ql-card, [data-theme="light"] .tool-card, [data-theme="light"] .guide-card, [data-theme="light"] .news-card, [data-theme="light"] .table-wrap, [data-theme="light"] .auto-toc, [data-theme="light"] .related-tips { background: #fff; }
[data-theme="light"] .match-table th, [data-theme="light"] .compare-table th { background: #f8fafc; color: #475569; }
[data-theme="light"] .match-table tr:hover td, [data-theme="light"] .compare-table tr:hover td { background: #f8fafc; }

/* Dark mode contrast pass — ensure text muted is readable */
[data-theme="dark"] .text-muted, [data-theme="dark"] .ql-sub, [data-theme="dark"] .tool-desc, [data-theme="dark"] .hl-eyebrow, [data-theme="dark"] .countdown-eyebrow { color: #b9c4d3; }

/* Nav close button visible only when drawer is shown */
.nav-close { display: none; }
@media (max-width: 900px) {
  .nav.open .nav-close { display: inline-flex; }
}
@media (min-width: 901px) {
  .nav-close { display: none !important; }
  .nav-overlay { display: none !important; }
}

/* === Nav submenu (Poker dropdown) === */
.nav-item.has-submenu { position: relative; display: flex; align-items: center; }
.nav-item.has-submenu > a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-muted); padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: 14px; transition: all var(--transition);
}
.nav-item.has-submenu > a:hover { background: var(--surface); color: var(--text); }
.nav-item.has-submenu > a.active { color: var(--yellow); }
.nav-item.has-submenu .submenu-caret { font-size: 10px; line-height: 1; opacity: 0.85; transition: transform var(--transition); }
.nav-item.has-submenu.open .submenu-caret,
.nav-item.has-submenu:hover .submenu-caret { transform: rotate(180deg); }
.nav-item.has-submenu .submenu-toggle { display: none; }
.nav-item.has-submenu .submenu {
  position: absolute; top: 100%; left: 0;
  display: none; flex-direction: column; min-width: 200px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; gap: 2px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 200;
}
.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu.open .submenu,
.nav-item.has-submenu:focus-within .submenu { display: flex; }
.nav-item.has-submenu .submenu a {
  color: var(--text); padding: 9px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav-item.has-submenu .submenu a:hover { background: var(--surface); color: var(--yellow); }
.nav-item.has-submenu .submenu a.active { color: var(--yellow); background: var(--surface); }
[data-theme="light"] .nav-item.has-submenu .submenu { box-shadow: 0 8px 24px rgba(0,0,0,0.10); }

@media (max-width: 900px) {
  .nav-item.has-submenu { flex-direction: row; flex-wrap: wrap; align-items: stretch; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-item.has-submenu > a { flex: 1; padding: 14px 12px; border-bottom: none; }
  .nav-item.has-submenu .submenu-caret { display: none; }
  .nav-item.has-submenu .submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; min-height: 44px; background: transparent;
    border: none; color: var(--text-muted); font-size: 14px; cursor: pointer;
    transition: transform var(--transition);
  }
  .nav-item.has-submenu.open .submenu-toggle { transform: rotate(180deg); color: var(--yellow); }
  .nav-item.has-submenu .submenu {
    position: static; display: none; width: 100%;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 8px 16px; border-radius: 0; flex-basis: 100%;
  }
  .nav-item.has-submenu.open .submenu { display: flex; }
  .nav-item.has-submenu:hover .submenu { display: none; }
  .nav-item.has-submenu.open .submenu { display: flex; }
  .nav-item.has-submenu .submenu a { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
  .nav-item.has-submenu .submenu a:last-child { border-bottom: none; }
}

/* === Clickable hero stats + highlight card cover === */
a.hstat { text-decoration: none; color: inherit; display: block; transition: all var(--transition); cursor: pointer; }
a.hstat:hover { transform: translateY(-2px); border-color: var(--yellow); background: var(--surface); }
a.hstat:hover .hstat-num { color: var(--yellow); }
a.hstat:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.hl-card.hl-card-linked { position: relative; }
.hl-card-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hl-card-cover:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.hl-card-linked > *:not(.hl-card-cover) { position: relative; z-index: 2; }
.hl-card-linked .hl-cta { pointer-events: auto; }
.hl-card-linked:hover { transform: translateY(-3px); border-color: var(--yellow); }
.hl-card-linked:hover .hl-title a { color: var(--yellow); }
.hl-card-linked .hl-title a, .hl-card-linked .hl-cta { position: relative; z-index: 3; }

/* Cover-link pattern for cat-card (avoids nested anchor bug) */
.cat-card.cat-card-linked { position: relative; cursor: pointer; }
.cat-card-cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; text-indent: -9999px; overflow: hidden; }
.cat-card-cover:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.cat-card-linked > h3, .cat-card-linked > p, .cat-card-linked > .ico { position: relative; z-index: 2; pointer-events: none; }
.cat-card-linked p a { pointer-events: auto; position: relative; z-index: 3; }
.cat-card-linked:hover { border-color: var(--yellow); transform: translateY(-2px); background: var(--surface-2); }

/* Bracket round as link to live odds */
a.bracket-round { text-decoration: none; color: inherit; display: grid; transition: all var(--transition); }
a.bracket-round:hover { background: var(--surface-2); border-color: var(--yellow); transform: translateY(-1px); }
a.bracket-round:hover .bracket-round-odds { color: var(--yellow); }
a.bracket-round:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Breadcrumb link visibility — links should look clickable */
.crumbs a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; transition: all var(--transition); }
.crumbs a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
.crumbs b { color: var(--text); font-weight: 600; }

/* Related-content blocks (used across guides, tools, previews, reviews) */
.related-block { background: var(--surface-alt); padding: 36px 0 44px; margin-top: 40px; border-top: 1px solid var(--border); }
.related-block h2 { margin: 6px 0 22px; font-size: 1.55rem; }
.related-block .rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rel-card { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: inherit; transition: all var(--transition); }
.rel-card:hover { border-color: var(--yellow); transform: translateY(-2px); background: var(--surface-2); }
.rel-card h4 { margin: 0 0 6px; color: var(--text); font-size: 1rem; line-height: 1.35; }
.rel-card p { margin: 0; color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.rel-card:hover h4 { color: var(--yellow); }

/* Monte Carlo SVG chart */
.mc-chart { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-top: 14px; }
.mc-chart svg { display: block; width: 100%; height: auto; }
.mc-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 0.84rem; color: var(--text-muted); }
.mc-chart-legend .lg-item { display: inline-flex; align-items: center; gap: 6px; }
.mc-chart-legend .lg-swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

/* ===================================================================
 * Round 1-6 — Sport tiles, hub-hero, sticky CTA, sport filter, MC chart,
 * light theme contrast fixes
 * ================================================================ */

/* --- Photographic sport tiles (replaces emojis) ------------------ */
.ql-card { padding: 14px 10px 16px; gap: 8px; }
.ql-img {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #001f3f 0%, #003d6e 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 4px 14px rgba(0,0,0,0.35);
  margin-bottom: 4px;
}
.ql-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--transition);
}
.ql-card:hover .ql-img img { transform: scale(1.04); }
@media (max-width: 640px) {
  .ql-img { width: 72px; height: 72px; border-radius: 12px; }
  .ql-card { min-height: 140px; }
}
[data-theme="light"] .ql-img {
  box-shadow: inset 0 0 0 1px rgba(0,82,147,0.12), 0 4px 14px rgba(8,30,57,0.10);
  background: linear-gradient(135deg, #e7eff8 0%, #c9d8ea 100%);
}

/* --- Hub hero (cinematic banner above hub h1) -------------------- */
.hub-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  margin: 18px 0 30px;
  min-height: 220px;
  display: flex; align-items: flex-end;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hub-hero-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover;
  filter: brightness(0.62) saturate(1.08);
  z-index: 0;
}
.hub-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,15,30,0.10) 0%, rgba(0,15,30,0.85) 100%);
}
.hub-hero-content {
  position: relative; z-index: 2;
  padding: 44px 28px 28px; color: #fff;
  max-width: 720px;
}
.hub-hero-content .section-eyebrow { color: var(--yellow); margin-bottom: 6px; }
.hub-hero-content h1 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.15; }
.hub-hero-content p.standfirst { color: rgba(255,255,255,0.86); margin: 0; max-width: 620px; font-size: 1.05rem; }
@media (max-width: 720px) {
  .hub-hero { min-height: 180px; border-radius: 14px; }
  .hub-hero-content { padding: 32px 18px 20px; }
}

/* --- Sticky pre-footer CTA (mobile + desktop strip) -------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-deep) 0%, #001428 100%);
  color: #fff;
  padding: 28px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.cta-strip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
.cta-strip .cta-text h3 { color: #fff; margin: 0 0 4px; font-size: 1.18rem; }
.cta-strip .cta-text p { color: rgba(255,255,255,0.78); margin: 0; font-size: 0.92rem; }
.cta-strip .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-strip .btn-primary { background: var(--yellow); color: var(--blue-deep); border: 0; }
.cta-strip .btn-primary:hover { background: #ffe267; }
.cta-strip .btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.cta-strip .btn-secondary:hover { background: rgba(255,255,255,0.08); }
[data-theme="light"] .cta-strip { background: linear-gradient(135deg, #003066 0%, #001f3f 100%); }

/* Mobile sticky CTA (single bar) */
.mobile-cta {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  align-items: center; gap: 10px;
}
.mobile-cta .mc-text { flex: 1; min-width: 0; font-size: 0.95rem; line-height: 1.2; color: var(--text); font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-cta .mc-text b { color: var(--yellow); font-weight: 700; }
.mobile-cta .btn { padding: 9px 16px; font-size: 0.9rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 768px) {
  .mobile-cta.mobile-cta-on { display: flex; }
  body.has-mobile-cta { padding-bottom: 76px; }
}
@media (max-width: 380px) {
  .mobile-cta .mc-text { font-size: 0.88rem; }
  .mobile-cta .btn { padding: 9px 12px; font-size: 0.86rem; }
}

/* --- Sport filter chips on /speltips/ index --------------------- */
.sport-filter {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 18px 0 8px;
}
.sport-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  transition: all var(--transition); cursor: pointer;
}
.sport-chip:hover { border-color: var(--yellow); color: var(--yellow); }
.sport-chip.is-active { background: var(--yellow); color: var(--blue-deep); border-color: var(--yellow); }
.sport-chip .sc-emoji { font-size: 0.95rem; line-height: 1; }
[data-theme="light"] .sport-chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* --- Light theme contrast fixes -------------------------------- */
[data-theme="light"] .ql-card { background: #fff; border-color: rgba(8,30,57,0.10); }
[data-theme="light"] .ql-card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(0,82,147,0.12); }
[data-theme="light"] .ql-card:hover .ql-label { color: var(--blue); }
[data-theme="light"] .cat-card-linked:hover { border-color: var(--blue); background: #fff; box-shadow: 0 8px 22px rgba(0,82,147,0.10); }
[data-theme="light"] .related-block { background: var(--surface-2); }
[data-theme="light"] .rel-card:hover { border-color: var(--blue); }
[data-theme="light"] .rel-card:hover h4 { color: var(--blue); }
[data-theme="light"] a.bracket-round:hover { border-color: var(--blue); }
[data-theme="light"] a.bracket-round:hover .bracket-round-odds { color: var(--blue); }
[data-theme="light"] .crumbs a:hover { color: var(--blue); text-decoration-color: var(--blue); }
[data-theme="light"] .footer-rg-links a, [data-theme="light"] .site-footer a { color: var(--blue); }
[data-theme="light"] .hub-hero { box-shadow: 0 8px 24px rgba(8,30,57,0.10); }

/* --- Monte Carlo trajectory chart -------------------------------- */
.mc-chart-wrap { margin-top: 18px; }
.mc-chart .axis-label { font-size: 11px; fill: var(--text-muted); }
.mc-chart .grid-line { stroke: var(--border); stroke-width: 1; }
.mc-chart .baseline { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 3; }
.mc-chart .band { fill: rgba(254, 204, 0, 0.18); }
.mc-chart .median-path { stroke: var(--yellow); stroke-width: 2.5; fill: none; }
.mc-chart .p10-path, .mc-chart .p90-path { stroke: rgba(254,204,0,0.5); stroke-width: 1.4; fill: none; }
.mc-chart .sample-path { stroke: rgba(160,176,196,0.30); stroke-width: 1; fill: none; }
[data-theme="light"] .mc-chart .median-path { stroke: var(--blue); }
[data-theme="light"] .mc-chart .band { fill: rgba(0, 82, 147, 0.12); }
[data-theme="light"] .mc-chart .p10-path, [data-theme="light"] .mc-chart .p90-path { stroke: rgba(0,82,147,0.45); }
[data-theme="light"] .mc-chart .sample-path { stroke: rgba(125,143,161,0.32); }
.mc-chart .swatch-band { background: rgba(254, 204, 0, 0.30); }
.mc-chart .swatch-median { background: var(--yellow); }
.mc-chart .swatch-sample { background: rgba(160,176,196,0.5); }
[data-theme="light"] .mc-chart .swatch-band { background: rgba(0, 82, 147, 0.20); }
[data-theme="light"] .mc-chart .swatch-median { background: var(--blue); }

/* --- Poker hub layout (real hub, not flat MD) -------------------- */
.poker-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.poker-hub-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; transition: all var(--transition);
}
.poker-hub-card:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.20); }
.poker-hub-card .ph-eyebrow { font-size: 0.74rem; font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.poker-hub-card h3 { margin: 0 0 6px; font-size: 1.14rem; }
.poker-hub-card h3 a { color: inherit; text-decoration: none; }
.poker-hub-card p { color: var(--text-muted); margin: 0 0 12px; font-size: 0.92rem; line-height: 1.55; }
.poker-hub-card .ph-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-muted); }
.poker-hub-card .ph-meta b { color: var(--text); }
.poker-hub-card .ph-rating { display: inline-block; background: var(--yellow); color: var(--blue-deep); padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 0.84rem; }
.poker-hub-cover { position: absolute; inset: 0; z-index: 1; }
.poker-hub-card > * { position: relative; z-index: 2; pointer-events: none; }
.poker-hub-card a:not(.poker-hub-cover) { pointer-events: auto; z-index: 3; position: relative; }
.poker-hub-card .ph-cta { display: inline-flex; gap: 8px; margin-top: 8px; }
[data-theme="light"] .poker-hub-card:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(0,82,147,0.12); }
[data-theme="light"] .poker-hub-card .ph-eyebrow { color: var(--blue); }
[data-theme="light"] .poker-hub-card .ph-rating { background: var(--blue); color: #fff; }


/* Monte Carlo chart — JS-emitted classes */
.mc-chart .axis-grid { stroke: var(--border); stroke-width: 1; opacity: 0.45; }
.mc-chart .axis-baseline { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 4 3; opacity: 0.7; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 12px; font-size: 0.86rem; color: var(--text-muted); }
.mc-legend .mc-leg { display: inline-flex; align-items: center; gap: 8px; }
.mc-legend .mc-leg-axis { margin-left: auto; font-style: italic; opacity: 0.85; }
.mc-legend .sw { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.mc-legend .sw-median { background: var(--yellow); height: 3px; }
.mc-legend .sw-p10, .mc-legend .sw-p90 { background: rgba(254,204,0,0.55); height: 2px; }
.mc-legend .sw-band { background: rgba(254,204,0,0.30); height: 8px; border-radius: 3px; }
.mc-legend .sw-sample { background: rgba(160,176,196,0.45); height: 2px; }
[data-theme="light"] .mc-legend .sw-median { background: var(--blue); }
[data-theme="light"] .mc-legend .sw-p10, [data-theme="light"] .mc-legend .sw-p90 { background: rgba(0,82,147,0.45); }
[data-theme="light"] .mc-legend .sw-band { background: rgba(0,82,147,0.18); }
[data-theme="light"] .mc-legend .sw-sample { background: rgba(125,143,161,0.40); }

/* ============================================================
   HEADLINE PREVIEW BAND (homepage cinematic top band)
   ============================================================ */
.headline-preview {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}
.headline-preview .hp-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  z-index: -2;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}
.headline-preview .hp-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,.35) 35%, rgba(8,10,14,.85) 100%),
    linear-gradient(90deg, rgba(8,10,14,.78) 0%, rgba(8,10,14,.30) 55%, rgba(8,10,14,.10) 100%);
}
.headline-preview .hp-inner {
  padding: 64px 0 56px;
  max-width: 760px;
  color: #fff;
}
.headline-preview .hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd84d;
  margin-bottom: 14px;
}
.headline-preview .hp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 4px rgba(255,59,59,.25);
  animation: hp-pulse 1.6s ease-in-out infinite;
}
@keyframes hp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,59,59,.25); }
  50% { box-shadow: 0 0 0 8px rgba(255,59,59,.05); }
}
.headline-preview .hp-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.headline-preview .hp-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(90deg, transparent, transparent);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-image .25s ease;
}
.headline-preview .hp-title a:hover {
  background-image: linear-gradient(90deg, #ffd84d, #ffd84d);
}
.headline-preview .hp-vs {
  font-weight: 400;
  font-size: 0.62em;
  opacity: 0.7;
  vertical-align: middle;
  margin: 0 0.15em;
}
.headline-preview .hp-lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  margin: 0 0 24px;
  max-width: 620px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.headline-preview .hp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 26px;
  background: rgba(8,10,14,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.headline-preview .hp-stat-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 4px;
}
.headline-preview .hp-stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.headline-preview .hp-stat-val a {
  color: #ffd84d;
  text-decoration: none;
}
.headline-preview .hp-stat-val a:hover {
  text-decoration: underline;
}
.headline-preview .hp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.headline-preview .btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.headline-preview .btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}

@media (max-width: 720px) {
  .headline-preview { min-height: 420px; }
  .headline-preview .hp-inner { padding: 40px 0 36px; }
  .headline-preview .hp-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    padding: 12px 14px;
  }
  .headline-preview .hp-stat-val { font-size: 0.95rem; }
  .headline-preview .hp-lede { font-size: 0.98rem; }
}

/* ============================================================
   HEADLINE TIP CARD (pinned on /speltips/ index)
   ============================================================ */
.headline-tip-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  margin-top: 18px;
}
.headline-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  border-color: var(--yellow);
}
.headline-tip-card .htc-img {
  background-size: cover;
  background-position: center 35%;
  min-height: 220px;
  position: relative;
}
.headline-tip-card .htc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 60%, var(--bg-2) 100%);
  pointer-events: none;
}
.headline-tip-card .htc-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.headline-tip-card .htc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}
.headline-tip-card .htc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255,59,59,.2);
  animation: hp-pulse 1.6s ease-in-out infinite;
}
.headline-tip-card .htc-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
}
.headline-tip-card .htc-lede {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.headline-tip-card .htc-pick {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--bg-3, rgba(255,255,255,.04));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}
.headline-tip-card .htc-pick-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.headline-tip-card .htc-pick-val {
  font-weight: 700;
  color: var(--text);
}
.headline-tip-card .htc-book {
  font-size: 0.78rem;
  background: var(--yellow);
  color: #0a1320;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.headline-tip-card .htc-cta {
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.95rem;
}
.headline-tip-card .htc-arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.headline-tip-card:hover .htc-arrow {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .headline-tip-card {
    grid-template-columns: 1fr;
  }
  .headline-tip-card .htc-img {
    min-height: 180px;
  }
  .headline-tip-card .htc-img::after {
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, var(--bg-2) 100%);
  }
  .headline-tip-card .htc-body {
    padding: 18px 18px 20px;
  }
  .headline-tip-card .htc-title {
    font-size: 1.35rem;
  }
}

/* === Mobile match-table -> card stack (no horizontal swiping) === */
@media (max-width: 720px) {
  .table-wrap { border: none; background: transparent; }
  .table-wrap[data-fade-edges]::after { display: none; }
  .match-table { min-width: 0; width: 100%; }
  .match-table thead { display: none; }
  .match-table, .match-table tbody, .match-table tr, .match-table td { display: block; width: 100%; }
  .match-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .match-table tr {
    background: var(--card-bg, var(--surface));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date    league"
      "match   match"
      "pick    book"
      "cta     cta";
    gap: 8px 12px;
    align-items: center;
  }
  .match-table tr:hover td { background: transparent; }
  .match-table td { padding: 0 !important; border: none !important; white-space: normal !important; }
  .match-table .cell-date { grid-area: date; width: auto; font-size: 0.78rem; }
  .match-table .cell-date .kickoff-rel { display: inline; margin-right: 6px; }
  .match-table .cell-date .kickoff-abs { display: inline; }
  .match-table .cell-date br { display: none; }
  .match-table .cell-league { grid-area: league; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; color: var(--text-muted); }
  .match-table .cell-match { grid-area: match; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
  .match-table .cell-match a { color: var(--text); text-decoration: none; }
  .match-table .cell-pick { grid-area: pick; font-size: 0.92rem; color: var(--yellow, #FECC00); font-weight: 700; }
  [data-theme="light"] .match-table .cell-pick { color: var(--blue, #0066B3); }
  .match-table .cell-book { grid-area: book; text-align: right; }
  .match-table .cell-cta { grid-area: cta; margin-top: 6px; }
  .match-table .cell-cta .btn { width: 100%; padding: 10px 14px; font-size: 0.88rem; }

  /* Same treatment for comparison tables on narrow screens — keep horizontal scroll fallback only when necessary */
  .compare-table { min-width: 0; }
}
