/* Wagerframe Weekly — vocal-media.co.uk */
/* Design: light iGaming/Tech editorial. */

:root {
  --primary: #9c2a3f;
  --primary-rgb: 156, 42, 63;
  --accent: #d99a3c;
  --accent-rgb: 217, 154, 60;
  --secondary: #5a1622;
  --secondary-rgb: 90, 22, 34;
  --bg: #fdfaf7;
  --surface: #ffffff;
  --text: #26161a;
  --muted: #725058;
  --border: rgba(156, 42, 63, .10);
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 40, .04), 0 4px 12px rgba(20, 24, 40, .05);
  --shadow-md: 0 6px 18px rgba(20, 24, 40, .08), 0 2px 6px rgba(20, 24, 40, .04);
  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SF Mono", "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary); text-decoration: underline; }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-fluid { max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 6px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  position: relative;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(var(--primary-rgb), .06); color: var(--primary); text-decoration: none; }
.main-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* CSS-only mobile hamburger */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; }
.nav-toggle-label span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

@media (max-width: 991px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
  }
  .nav-toggle-checkbox:checked ~ .main-nav {
    max-height: 500px;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 20px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; width: 100%; padding: 12px 14px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .header-inner { padding: 12px 20px; position: relative; }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle-checkbox:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ HERO ============ */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(var(--primary-rgb), .06), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(var(--accent-rgb), .05), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
}
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 40px; }
}

/* Chip row under H1 */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip.mono { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }

/* ============ CTA BUTTON ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), .32);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), .38), 0 0 0 1px rgba(var(--primary-rgb), .12);
  color: #fff; text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), .28);
}
.btn-ghost:hover {
  background: rgba(var(--primary-rgb), .06);
  color: var(--primary);
  text-decoration: none;
}

/* ============ MAIN CONTENT ============ */
main { padding: 24px 0 72px; }

.byline {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  margin: 24px 0 32px;
  font-size: 14px;
  color: var(--muted);
}
.byline img { width: 40px; height: 40px; border-radius: 50%; }
.byline strong { color: var(--text); }
.byline time { font-family: var(--font-mono); font-size: 13px; }

article h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 56px 0 20px;
  letter-spacing: -0.015em;
}
article h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 32px 0 12px;
  color: var(--text);
}
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 20px; padding-left: 24px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 600; color: var(--text); }
article em { font-style: italic; color: var(--muted); }

article img {
  border-radius: var(--radius);
  margin: 32px auto;
  box-shadow: var(--shadow-sm);
}
article .figure {
  margin: 32px 0;
}
article .figure figcaption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Numeric emphasis */
.stat {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }

/* ============ TABLE OF CONTENTS ============ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.toc-heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.toc-list {
  list-style: none;
  counter-reset: toc-counter;
  column-count: 2;
  column-gap: 32px;
  column-rule: 1px solid var(--border);
  margin: 0;
  padding: 0;
}
.toc-list li {
  counter-increment: toc-counter;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  padding: 6px 0 6px 40px;
  position: relative;
  font-size: 14.5px;
}
.toc-list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.toc-list a { color: var(--text); }
.toc-list a:hover { color: var(--primary); }
@media (max-width: 700px) {
  .toc-list { column-count: 1; column-rule: none; }
}

/* ============ CALLOUT / FACT BOX ============ */
.callout {
  background: rgba(var(--primary-rgb), .04);
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: var(--radius-sm);
}
.callout strong { color: var(--primary); }
.callout.warn {
  background: rgba(var(--accent-rgb), .06);
  border-left-color: var(--accent);
}
.callout.warn strong { color: var(--accent); }

/* ============ COMPARISON TABLE ============ */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead { background: rgba(var(--primary-rgb), .06); }
.compare th { font-weight: 600; color: var(--primary); font-size: 14px; letter-spacing: 0.02em; }
.compare tbody tr:nth-child(even) { background: rgba(var(--primary-rgb), .03); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.num { font-family: var(--font-mono); font-weight: 600; color: var(--primary); }
@media (max-width: 700px) {
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 10px 12px; }
}

/* ============ ZIGZAG STEPS ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 48px 0 52px;
  position: relative;
  counter-reset: step-counter;
}
.steps li {
  position: relative;
  margin: 0 0 32px;
  min-height: 76px;
  display: flex;
  align-items: center;
  counter-increment: step-counter;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: -66px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--border) 0 5px, transparent 5px 10px);
}
.step-num {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: 4px solid var(--bg);
  box-shadow: 0 6px 16px rgba(var(--primary-rgb), .32);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  z-index: 2;
}
.step-body {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
  position: relative;
}
.step-body strong { display: block; margin-bottom: 4px; color: var(--primary); }

@media (min-width: 992px) {
  .steps li { padding: 0 46px; }
  .steps li:nth-child(odd) .step-body { width: calc(50% - 46px); margin-right: auto; }
  .steps li:nth-child(odd) .step-body::after {
    content: "";
    position: absolute;
    right: -8px; top: 50%;
    width: 14px; height: 14px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: translateY(-50%) rotate(45deg);
  }
  .steps li:nth-child(even) .step-body { width: calc(50% - 46px); margin-left: auto; }
  .steps li:nth-child(even) .step-body::after {
    content: "";
    position: absolute;
    left: -8px; top: 50%;
    width: 14px; height: 14px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: translateY(-50%) rotate(45deg);
  }
}

@media (max-width: 991px) {
  .steps li:not(:last-child)::before { left: 24px; }
  .steps li { padding-left: 60px; }
  .step-num { left: 24px; }
  .step-body { width: 100%; }
}

/* ============ FAQ ============ */
.faq-section {
  margin: 48px 0;
}
.faq-section details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  interpolate-size: allow-keywords;
  transition: box-shadow .2s, border-color .2s;
}
.faq-section details[open] { box-shadow: var(--shadow-sm); border-color: rgba(var(--primary-rgb), .24); }
.faq-section summary {
  padding: 18px 56px 18px 22px;
  position: relative;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 16.5px;
  color: var(--text);
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before,
.faq-section summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 14px; height: 2px;
  background: var(--primary);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.faq-section summary::before { transform: translateY(-50%) rotate(0deg); }
.faq-section summary::after { transform: translateY(-50%) rotate(90deg); }
.faq-section details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq-section details::details-content {
  height: 0; opacity: 0; overflow: clip;
  transition: height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease-out, content-visibility .35s allow-discrete;
}
.faq-section details[open]::details-content { height: auto; opacity: 1; }
.faq-section details > *:not(summary) {
  padding: 0 22px 18px;
  animation: faqSlideDown .32s cubic-bezier(.4,0,.2,1);
}
@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ AUTHOR BOX ============ */
.author-box {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 56px 0 32px;
  box-shadow: var(--shadow-sm);
}
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0; box-shadow: none; }
.author-box h3 { margin: 0 0 4px; font-size: 18px; }
.author-box .role { font-size: 13px; color: var(--muted); margin: 0 0 10px; letter-spacing: 0.02em; }
.author-box p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) {
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box img { margin: 0 auto; }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, .82);
  padding: 56px 0 24px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h3 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a { color: rgba(255, 255, 255, .78); }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { height: 42px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .70); margin: 0 0 12px; max-width: 320px; }
.footer-brand .legal { font-size: 12.5px; color: rgba(255, 255, 255, .55); font-family: var(--font-mono); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .60);
}
.footer-age { display: flex; align-items: center; gap: 12px; }
.age-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  border: 2px solid rgba(255, 255, 255, .40);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
}
.copyright { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============ SUBPAGE GRID CARDS ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), .28);
}
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary); }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ============ FOCUS RINGS ============ */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============ PRINT ============ */
@media print {
  .site-header, .site-footer, .nav-toggle-label, .btn { display: none !important; }
  body { font-size: 12pt; }
}
