/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

/* barlow-condensed-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/barlow-condensed-v13-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-condensed-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/barlow-condensed-v13-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* barlow-condensed-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/barlow-condensed-v13-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* source-serif-4-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/source-serif-4-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-serif-4-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/source-serif-4-v14-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-serif-4-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/source-serif-4-v14-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* jetbrains-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
    /* ========================================
   1. CSS Variables & Reset
   ======================================== */
    :root {
      --color-bg: #FAFAF7;
      --color-text: #1A1A1A;
      --color-text-secondary: #6B6B6B;
      --color-accent: #C8553D;
      --color-accent-hover: #A8432F;
      --color-border: #E0DDD5;
      --color-surface: #F2F0EB;
      --color-success: #3A7D44;
      --color-danger: #C8553D;
      --color-hero-bg: #1A1A1A;
      --color-hero-text: #FAFAF7;

      --font-display: 'Barlow Condensed', sans-serif;
      --font-body: 'Source Serif 4', Georgia, serif;
      --font-mono: 'JetBrains Mono', monospace;

      --content-width: 1200px;
      --section-gap: clamp(64px, 8vw, 112px);
      --component-gap: 32px;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --color-bg: #141413;
        --color-text: #E8E6E1;
        --color-text-secondary: #9A9A96;
        --color-border: #2E2E2A;
        --color-surface: #1E1E1B;
        --color-hero-bg: #0A0A0A;
        --color-hero-text: #FAFAF7;
      }
    }

    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: var(--font-body);
      font-size: 1.125rem;
      font-weight: 400;
      line-height: 1.7;
      color: var(--color-text);
      background-color: var(--color-bg);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* ========================================
   2. General Typography
   ======================================== */
    h1 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(2.4rem, 5vw, 3.5rem);
      text-transform: uppercase;
      letter-spacing: 0.02em;
      line-height: 1.05;
      text-align: center;
      margin:  0 auto;
    }

    h2 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: clamp(1.6rem, 3vw, 2rem);
      letter-spacing: 0.01em;
      line-height: 1.15;
      color: var(--color-text);
      margin-bottom: 1rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }

    h3 {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: clamp(1.15rem, 2vw, 1.35rem);
      line-height: 1.3;
      color: var(--color-text);
      margin-top: 2.5rem;
      margin-bottom: 0.75rem;
      text-align: left;
      scroll-margin-top: 2rem;
    }

    p {
      margin-bottom: 1.25rem;
      text-align: left;
    }

    a {
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 3px;
      transition: color 0.2s ease;
    }

    a:hover {
      color: var(--color-accent-hover);
    }

    a:focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
      border-radius: 2px;
    }

    strong {
      font-weight: 600;
    }

    blockquote {
      border-left: 3px solid var(--color-accent);
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      font-style: italic;
      color: var(--color-text-secondary);
    }

    ul,
    ol {
      padding-left: 1.5rem;
      margin-bottom: 1.25rem;
      text-align: left;
    }

    li {
      margin-bottom: 0.5rem;
      text-align: left;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
      font-size: 0.95rem;
    }

    th,
    td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid var(--color-border);
    }

    th {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--color-text-secondary);
    }

    figure {
      margin: 2rem auto;
      max-width: 100%;
    }

    figcaption {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      text-align: center;
      margin-top: 0.75rem;
      font-style: italic;
    }

    hr {
      border: none;
      border-top: 1px solid var(--color-border);
      margin: 2rem 0;
    }

    /* ========================================
   3. Layout: data-content sections
   ======================================== */
    main {
      width: 100%;
    }

   .container {
      max-width: var(--content-width);
      margin-left: auto;
      margin-right: auto;
      padding-left: 1rem;
      padding-right: 1rem;
      margin-bottom: 2rem;
    }

    /* ========================================
   4. Visual Components
   ======================================== */


   header {
      max-width: none;
      width: 100vw;
      margin-left: calc(50% - 50vw);
      padding: 0;

      background-image:
        radial-gradient(ellipse at 80% 90%, rgba(200, 85, 61, 0.08) 0%, transparent 60%),
        repeating-linear-gradient(0deg,
          transparent,
          transparent 119px,
          rgba(255, 255, 255, 0.04) 119px,
          rgba(255, 255, 255, 0.04) 120px),
        linear-gradient(90deg,
          transparent calc(50% - 0.5px),
          rgba(255, 255, 255, 0.05) calc(50% - 0.5px),
          rgba(255, 255, 255, 0.05) calc(50% + 0.5px),
          transparent calc(50% + 0.5px)),
        repeating-linear-gradient(90deg,
          transparent,
          transparent 159px,
          rgba(255, 255, 255, 0.03) 159px,
          rgba(255, 255, 255, 0.03) 160px);
      position: relative;
    }
[data-content] {
    scroll-margin-top: 80px; 
}

    /* --- info-box --- */
    .info-box {
      background-color: var(--color-surface);
      border-left: 4px solid var(--color-accent);
      padding: 24px 28px;
      border-radius: 0;
      margin: var(--component-gap) 0;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .info-box p {
      font-family: var(--font-body);
      font-size: 1rem;
      line-height: 1.65;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0.75rem;
      background-color: var(--color-surface);
    }

    .info-box p:last-child {
      margin-bottom: 0;
    }

    .info-box p:first-child {
      font-weight: 600;
    }

    /* --- odds-example --- */
    .odds-example {
      background-color: #1A1A1A;
      color: #FAFAF7;
      padding: 32px;
      margin: var(--component-gap) 0;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .odds-example p {
      color: #FAFAF7;
      background-color: #1A1A1A;
      text-align: center;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.2rem;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }

    .odds-example table {
      width: 100%;
      border-collapse: collapse;
      margin: 0;
    }

    .odds-example th {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: rgba(255, 255, 255, 0.5);
      background-color: #1A1A1A;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15);
      padding: 10px 16px;
      text-align: left;
    }

    .odds-example td {
      font-family: var(--font-mono);
      font-weight: 500;
      font-size: 1.1rem;
      color: var(--color-accent);
      background-color: #1A1A1A;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      padding: 12px 16px;
      text-align: left;
    }

    .odds-example td:first-child {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 1.05rem;
      color: #FAFAF7;
    }

    @media (prefers-color-scheme: dark) {
      .odds-example {
        background-color: #0F0F0F;
      }

      .odds-example p {
        color: #FAFAF7;
        background-color: #0F0F0F;
      }

      .odds-example th {
        background-color: #0F0F0F;
      }

      .odds-example td {
        background-color: #0F0F0F;
      }

      .odds-example td:first-child {
        color: #FAFAF7;
      }
    }

    /* --- callout --- */
    .callout {
      background-color: transparent;
      border: 2px solid var(--color-accent);
      padding: 20px 24px 20px 56px;
      margin: var(--component-gap) 0;
      position: relative;
    }

    .callout::before {
      content: '!';
      position: absolute;
      left: 18px;
      top: 18px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background-color: var(--color-accent);
      color: #FAFAF7;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .callout p {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 1rem;
      font-style: italic;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0;
    }

    /* --- card-grid --- */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin: var(--component-gap) 0;
    }

    .card-grid>div {
      background-color: var(--color-bg);
      border: 1px solid var(--color-border);
      padding: 24px;
      transition: border-color 0.2s ease;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }

    .card-grid>div:hover {
      border-color: var(--color-accent);
    }

    .card-grid>div p:first-child {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1rem;
      text-transform: uppercase;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0.5rem;
    }

    .card-grid>div p {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 0.95rem;
      color: var(--color-text);
      text-align: left;
      line-height: 1.6;
      margin-bottom: 0.5rem;
    }

    .card-grid>div p:last-child {
      margin-bottom: 0;
    }

    @media (max-width: 640px) {
      .card-grid {
        grid-template-columns: 1fr;
      }
    }

    /* --- comparison --- */
    .comparison {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0;
      margin: var(--component-gap) 0;
      background-color: var(--color-surface);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .comparison>div {
      padding: 28px;
      background-color: var(--color-surface);
    }

    .comparison>div:first-child {
      border-top: 3px solid var(--color-accent);
      border-right: 1px solid var(--color-border);
    }

    .comparison>div:last-child {
      border-top: 3px solid var(--color-success);
    }

    .comparison>div p:first-child {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.1rem;
      text-transform: uppercase;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0.75rem;
    }

    .comparison>div p {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 0.95rem;
      color: var(--color-text);
      text-align: left;
      line-height: 1.6;
      margin-bottom: 0.5rem;
      background-color: var(--color-surface);
    }

    .comparison>div p:last-child {
      margin-bottom: 0;
    }

    @media (max-width: 640px) {
      .comparison {
        grid-template-columns: 1fr;
      }

      .comparison>div:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }
    }

    /* --- key-takeaway --- */
    .key-takeaway {
      border-top: 2px solid var(--color-accent);
      padding-top: 16px;
      margin: var(--component-gap) 0;
    }

    .key-takeaway p {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: clamp(1.2rem, 2.5vw, 1.5rem);
      line-height: 1.35;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0;
    }

    /* --- fun-fact --- */
    .fun-fact {
      position: relative;
      padding-left: 24px;
      margin: var(--component-gap) 0;
    }

    .fun-fact::before {
      content: '\2014';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--color-accent);
      font-weight: 700;
    }

    .fun-fact p {
      font-family: var(--font-body);
      font-style: italic;
      font-size: 1rem;
      color: var(--color-text-secondary);
      text-align: left;
      margin-bottom: 0;
    }

    /* --- glossary-term --- */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: var(--component-gap) 0;
    }

    .glossary-term p {
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: var(--color-text-secondary);
      text-align: left;
      margin-bottom: 0;
    }

    .glossary-term p strong {
      font-family: var(--font-mono);
      font-weight: 400;
      font-size: 0.95rem;
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 4px;
    }

    @media (max-width: 640px) {
      .glossary-term {
        flex-direction: column;
        gap: 4px;
      }
    }

    /* --- dos-donts --- */
    .dos-donts {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0;
      margin: var(--component-gap) 0;
    }

    .dos-donts>div {
      padding: 24px;
    }

    .dos-donts>div:first-child {
      border-top: 3px solid var(--color-success);
    }

    .dos-donts>div:last-child {
      border-top: 3px solid var(--color-danger);
    }

    .dos-donts>div p strong {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .dos-donts>div:first-child p strong {
      color: var(--color-success);
    }

    .dos-donts>div:last-child p strong {
      color: var(--color-danger);
    }

    .dos-donts>div p {
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 0.5rem;
    }

    .dos-donts ul {
      list-style: none;
      padding-left: 0;
    }

    .dos-donts>div:first-child li::before {
      content: '\2713  ';
      color: var(--color-success);
      font-weight: 700;
    }

    .dos-donts>div:last-child li::before {
      content: '\2717  ';
      color: var(--color-danger);
      font-weight: 700;
    }

    .dos-donts li {
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: var(--color-text);
      text-align: left;
      line-height: 1.6;
      margin-bottom: 0.5rem;
    }

    @media (max-width: 640px) {
      .dos-donts {
        grid-template-columns: 1fr;
      }
    }

    /* --- pre-bet-checklist --- */
    .pre-bet-checklist {
      margin: var(--component-gap) 0;
    }

    .pre-bet-checklist p strong {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-accent);
    }

    .pre-bet-checklist p {
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 1rem;
    }

    .pre-bet-checklist ul {
      list-style: none;
      padding-left: 24px;
      border-left: 2px solid var(--color-border);
    }

    .pre-bet-checklist li {
      position: relative;
      padding-left: 28px;
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--color-text);
      text-align: left;
      line-height: 1.65;
      margin-bottom: 16px;
    }

    .pre-bet-checklist li::before {
      content: '\2610';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--color-accent);
      font-size: 1.1rem;
      background-color: var(--color-bg);
      padding-right: 4px;
      margin-left: -36px;
    }

    /* --- at-a-glance --- */
    .at-a-glance {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0;
      margin: var(--component-gap) 0;
      border: 1px solid var(--color-border);
    }

    .at-a-glance>div {
      padding: 24px;
      border-right: 1px solid var(--color-border);
      text-align: center;
    }

    .at-a-glance>div:last-child {
      border-right: none;
    }

    .at-a-glance>div p:first-child {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.4rem;
      color: var(--color-text);
      text-align: center;
      margin-bottom: 0.5rem;
    }

    .at-a-glance>div p {
      font-family: var(--font-body);
      font-size: 0.9rem;
      color: var(--color-text-secondary);
      text-align: center;
      line-height: 1.5;
      margin-bottom: 0;
    }

    @media (max-width: 640px) {
      .at-a-glance {
        grid-template-columns: 1fr;
      }

      .at-a-glance>div {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
      }

      .at-a-glance>div:last-child {
        border-bottom: none;
      }
    }

    /* --- worked-example --- */
    .worked-example {
      background-color: var(--color-surface);
      padding: 36px 32px;
      margin: var(--component-gap) 0;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .worked-example p {
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--color-text);
      text-align: left;
      background-color: var(--color-surface);
      line-height: 1.7;
      margin-bottom: 1rem;
    }

    .worked-example p:last-child {
      margin-bottom: 0;
    }

    .worked-example p strong {
      font-family: var(--font-mono);
      font-weight: 500;
      font-size: 0.95rem;
    }

    .worked-example hr {
      border: none;
      border-top: 1px dashed var(--color-border);
      margin: 1rem 0;
    }

    .worked-example .result {
      font-family: var(--font-mono);
      font-size: 1.2rem;
      font-weight: 500;
      color: var(--color-accent);
      text-align: left;
    }

    /* --- section-bridge --- */
    .section-bridge {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 48px 0;
    }

    .section-bridge::before,
    .section-bridge::after {
      content: '';
      flex: 1;
      height: 1px;
      background-color: var(--color-border);
    }

    .section-bridge p {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 1rem;
      font-style: italic;
      color: var(--color-text-secondary);
      text-align: center;
      white-space: nowrap;
      margin-bottom: 0;
    }

    @media (max-width: 640px) {
      .section-bridge p {
        white-space: normal;
        font-size: 0.9rem;
      }
    }

    /* ========================================
   5. Hero Section
   ======================================== */
  

    [data-content="hero"] .hero-inner {
      max-width: var(--content-width);
      margin: 0 auto;
    
      text-align: center;
    }

    [data-content="hero"] .label {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--color-accent);
      display: block;
      margin-bottom: 1.25rem;
    }

    [data-content="hero"] h1 {
   
      margin-bottom: 1.5rem;
    }

    [data-content="hero"] .subtitle {
      font-family: var(--font-body);
      font-size: clamp(1rem, 2vw, 1.25rem);
      font-weight: 400;
     
      text-align: center;
      margin-bottom: 2rem;
      max-width: 580px;
      margin-left: auto;
      margin-right: auto;
    }

    [data-content="hero"] .hero-divider {
      width: 60px;
      height: 2px;
      background-color: var(--color-accent);
      border: none;
      margin: 0 auto 1.5rem;
    }

    [data-content="hero"] .meta {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      color: rgba(250, 250, 247, 0.5);
      margin-bottom: 2.5rem;
    }

    [data-content="hero"] .meta time {
      color: rgba(250, 250, 247, 0.5);
    }

    [data-content="hero"] figure {
      max-width: 900px;
      margin: 0 auto;
    }

    [data-content="hero"] figure img {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    [data-content="hero"] figure figcaption {
      color: rgba(250, 250, 247, 0.45);
      font-size: 0.8rem;
      margin-top: 1rem;
    }

    /* Hero gradient fade to page bg */
    [data-content="hero"]::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 80px;
      background: linear-gradient(to bottom, transparent, var(--color-bg));
      pointer-events: none;
    }

    /* ========================================
   5b. TOC Section (vertical list)
   ======================================== */
    [data-content="toc"] {
      margin: 2.5rem auto;
    }

    [data-content="toc"] nav {
      border: 1px solid var(--color-border);
      padding: 28px 32px;
    }

    [data-content="toc"] .toc-label {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-text-secondary);
      margin-bottom: 1.25rem;
      display: block;
    }

    [data-content="toc"] ol {
      list-style: none;
      padding-left: 0;
      margin-bottom: 0;
    }

    [data-content="toc"]>nav>ol>li {
      margin-bottom: 0.75rem;
    }

    [data-content="toc"]>nav>ol>li>a {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1rem;
      color: var(--color-text);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    [data-content="toc"]>nav>ol>li>a:hover {
      color: var(--color-accent);
    }

    [data-content="toc"] ol ol {
      padding-left: 1.25rem;
      margin-top: 0.4rem;
      margin-bottom: 0;
    }

    [data-content="toc"] ol ol li {
      margin-bottom: 0.35rem;
    }

    [data-content="toc"] ol ol a {
      font-family: var(--font-body);
      font-weight: 400;
      font-size: 0.9rem;
      color: var(--color-text-secondary);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    [data-content="toc"] ol ol a:hover {
      color: var(--color-accent);
    }

    /* ========================================
   6. FAQ Accordion
   ======================================== */
    details {
      border-bottom: 1px solid var(--color-border);
      interpolate-size: allow-keywords;
    }

    summary {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 1.05rem;
      color: var(--color-text);
      cursor: pointer;
      padding: 1.25rem 2.5rem 1.25rem 0;
      position: relative;
      list-style: none;
      text-align: left;
      transition: color 0.2s ease;
    }

    summary::-webkit-details-marker {
      display: none;
    }

    summary::after {
      content: '+';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1.4rem;
      color: var(--color-accent);
      transition: transform 0.3s ease;
    }

    details[open] summary::after {
      content: '\2212';
      transform: translateY(-50%);
    }

    summary:hover {
      color: var(--color-accent);
    }

    summary:focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 2px;
      border-radius: 2px;
    }

    /* Modern ::details-content animation */
    ::details-content {
      transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s allow-discrete;
      opacity: 0;
      block-size: 0;
      overflow: clip;
    }

    details[open]::details-content {
      opacity: 1;
      block-size: auto;
    }

    /* Fallback for older browsers */
    @supports not selector(::details-content) {
      @keyframes faq-fade-in {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      details[open]>*:not(summary) {
        animation: faq-fade-in 0.3s ease forwards;
      }
    }

    details div p {
      font-family: var(--font-body);
      font-size: 1rem;
      color: var(--color-text);
      text-align: left;
      line-height: 1.7;
      padding-bottom: 1.25rem;
    }

    /* ========================================
   7. Header & Footer
   ======================================== */
 

    footer {
    
      margin: 0 auto;
      padding: 2rem 1.25rem;
      border-top: 1px solid var(--color-border);
      font-size: 0.8rem;
      color: var(--color-text-secondary);
    }

    /* ========================================
   8. Images
   ======================================== */
    .hero-image {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }

    .article-image {
      max-width: 100%;
      height: auto;
      display: block;
      loading: lazy;
    }

    [data-content] figure {
      margin-left: auto;
      margin-right: auto;
    }

    /* ========================================
   9. Media Queries
   ======================================== */
    @media (max-width: 768px) {
      :root {
        --section-gap: 56px;
        --component-gap: 24px;
      }

      body {
        font-size: 1rem;
      }

      h1 {
        font-size: clamp(2rem, 7vw, 2.6rem);
      }

      h2 {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
      }

   

      .callout {
        padding-left: 48px;
      }

      [data-content="toc"] nav {
        padding: 20px 10px;
      }

      table {
        font-size: 0.85rem;
      }

      th,
      td {
        padding: 8px 10px;
      }

      .odds-example {
        padding: 20px 0;
      }

      .comparison>div,
      .dos-donts>div {
        padding: 20px 0;
      }

      .worked-example {
        padding: 24px 10px;
      }
    }

    @media (max-width: 480px) {

      .odds-example td,
      .odds-example th {
        padding: 8px;
        font-size: 0.85rem;
      }

      .odds-example p {
        font-size: 1rem;
      }
    }
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--text-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    transform var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--c-primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius);
  z-index: 200;
}

.skip-link:focus {
  top: var(--space-md);
}

/*  */

img {
  width: 100%;
  object-fit: cover;
  max-height: 700px;
}

.wp-block-image img {
  margin-bottom: 2rem;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 3rem;
  list-style: none;
  font-size: 1.1rem;
}

.container-casa {
  margin-top: 7rem;
}

.container-casa p {
  max-width: 800px;
  text-align: center;
  margin: 2rem auto;
}

/* --- 1. menu --- */
.header-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  background: var(--color-accent);
  min-height: 4rem;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.burger-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  text-decoration: none;
}

.main-logo-img {
  max-height: 52px;
  width: 52px;
  flex-shrink: 0;
  border-radius: 50%;
}

.logo-text {
  color: rgba(250, 250, 247, 0.75);
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.burger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.burger-btn span,
.burger-btn span::before,
.burger-btn span::after {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.burger-btn span::before {
  top: -8px;
}
.burger-btn span::after {
  top: 8px;
}

.js-burger.active span {
  background-color: transparent !important;
}
.js-burger.active span::before {
  transform: translateY(8px) rotate(45deg);
}
.js-burger.active span::after {
  transform: translateY(-8px) rotate(-45deg);
}

.main-navigation {
  position: fixed;

  top: -100%;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  background: var(--color-accent);
  z-index: 9999;

  transition:
    top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
  padding: 80px 20px 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  display: block;
  overflow-y: auto;
}

.main-navigation.active {
  top: 0;
  visibility: visible;
}

.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.main-menu a {
  text-decoration: none;
   color: rgba(250, 250, 247, 0.75);
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-menu a:hover {
  color: var(--color-text);
}

body.has-overlay {
  overflow: hidden;
}

.btn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 1;
  color: var(--color-text);
}

.menu-item-has-children > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

.menu-item-has-children > a::after {
  content: "▼";
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
  color: #3b9eff;
}

.sub-menu {
  list-style: none !important;
  padding-left: 20px !important;
  margin: 0 !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100vh;
}

.sub-menu li {
  padding: 10px 0;
}

.sub-menu a {
  font-size: 1rem !important;

  font-weight: 400 !important;
}

.menu-item-has-children > a {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu-item-has-children:hover > .sub-menu {
  max-height: 1000px !important;
  visibility: visible;
  opacity: 1;
}

.main-menu li.current-menu-item > a,
.main-menu li.current_page_item > a,
.main-menu li.current-post-ancestor > a,
.main-menu li.current-menu-ancestor > a,
.main-menu li.current-page-ancestor > a {
  color: #f1e253 !important;
  font-weight: 700 !important;
}

.main-menu li.menu-item-has-children.is-open > a {
  color: #f1e253 !important;
}

.main-menu li.active > a {
  color: #f1e253 !important;
  font-weight: 700 !important;
}

.main-navigation.active .main-menu .current-menu-item > a {
  color: #f1e253 !important;
}

/* end menu */
.sitemap-grid{
  margin: 5.5rem auto 3.5rem;
}
.sitemap-content {
  margin: 30px 0;
}

.sitemap-section {
  margin-bottom: 40px;
  padding: 20px;
  border-radius: 8px;
}

.sitemap-section h2 {
  color: inherit;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.sitemap-section h3 {
  color: #555;
  margin: 15px 0 10px 0;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
  gap: 0.8rem;
}
.breadcrumbs-content {
  display: contents;
}
@media (max-width: 1024px) {
  .sitemap-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 768px) {
  .sitemap-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .header-top {
    padding: 0 1rem;
  }
}

.sitemap-list li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.sitemap-list li:before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.sitemap-list a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.sitemap-list a:hover {
  color: var(--color-accent);
}

.category-group {
  margin-bottom: 20px;
}

.tags-cloud {
  line-height: 2;
}

.tag {
  display: inline-block;
  background: #e9e9e9;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 3px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: all 0.3s;
}

.tag:hover {
  background: #007cba;
  color: white;
}

.toc {
  background: rgba(230, 57, 70, 0.1) !important;
  padding: var(--spacing-md) !important;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .sitemap-section {
    padding: 15px;
  }

  .tag {
    font-size: 12px;
    padding: 3px 8px;
  }
}

@media (max-width: 1100px) {
  .site-titlecontainer-casa {
    margin-top: 3rem;
  }
  .wide-image-container {
    margin-left: calc(-2 * var(--space-xl));
    margin-right: calc(-2 * var(--space-xl));
    border-radius: var(--img-radius);
  }

  .site-branding nav {
    background: none;
    border-radius: var(--radius);

    margin-bottom: calc(var(--gap) * 1.5);
    box-shadow: none;
    border: none;
  }
}

header p {
  font-size: var(--font-md);
}
.toc-wrap {
  padding: 1rem;
}

.back-to-top {
  bottom: 1rem;
  right: 1rem;
  width: 45px;
  height: 45px;
}

/* articulos */
.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  padding-top: 30px;

  max-width: var(--max-width);
  margin: 0 auto;
}

.articulos-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.articulos-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.articulos-card__image-link img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
  transform: scale(1.08);
}

/* Контент */

.articulos-card__content {
  padding: 0 17px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.articulos-card__title {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.6rem;
}
.articulos-card__title a {
  text-decoration: none;
}

.articulos-card__excerpt {
  margin-top: auto;

  margin-bottom: 0;
  color: #6e6e73;
  font-size: 0.95rem;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articulos-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.articulos-card__link svg {
  transition: transform 0.3s;
}

.articulos-card__link:hover {
  color: #0073aa;
  gap: 12px;
}

.articulos-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  height: 170px;
}

.articulos-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
  transform: scale(1.08);
}

/* Заглушка, если у поста нет картинки */
.articulos-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more-wrapper {
  text-align: center;
  margin: 40px 0;
}

.btn-load-more {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-load-more:hover {
  background-color: #005177;
}

@media (max-width: 559px) {
  .articulos-grid {
    gap: 17px;
  }
  .articulos-card__image-link {
    height: 17rem;
  }
}

@media (max-width: 768px) {
  .sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
    list-style: none;
    padding: 0;
  }
}

#site-navigation a,
.menu-item a {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* ========================================
   Images Styles — Apuestas de Tenis
   ======================================== */

/* --- Hero image (inside [data-content="hero"] figure) --- */
[data-content="hero"] figure {
  margin-top: 2rem;
  width: 100%;
}

[data-content="hero"] figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

[data-content="hero"] figure figcaption {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  color: rgba(250, 250, 247, 0.5);
  margin-top: 0.75rem;
  text-align: center;
}

/* --- Content images (inside [data-content] sections, excluding hero) --- */
[data-content]:not([data-content="hero"]) figure {
  margin: 2.5rem 0;
  width: 100%;
}

[data-content]:not([data-content="hero"]) figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

[data-content]:not([data-content="hero"]) figure img:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

[data-content]:not([data-content="hero"]) figure figcaption {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  color: var(--color-text-secondary, #6B6B6B);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

/* --- Dark mode adjustments --- */
@media (prefers-color-scheme: dark) {
  [data-content]:not([data-content="hero"]) figure img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  [data-content]:not([data-content="hero"]) figure img:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 640px) {
  [data-content]:not([data-content="hero"]) figure {
    margin: 2rem 0;
  }

  [data-content]:not([data-content="hero"]) figure img {
    border-radius: 4px;
  }

  [data-content="hero"] figure img {
    border-radius: 4px;
  }
}

/* --- Footer --- */
footer {

  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--color-border, #E0DDD5);
}

footer p {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #6B6B6B);
 
}


.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Source Serif 4', serif; 
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.safety-icons {
    display: flex;
    gap: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo-container img {
   
    height: auto;
    display: block;
    margin-bottom: 20px;
    max-width: 86px;
    border-radius: 50%;
    
}

.footer-logo-text {

    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Добавляет маленькую стрелочку после внешних ссылок */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}
