/**
 * 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+ */
}

:root {
      --font-display: 'Barlow Condensed', sans-serif;
      --font-body: 'Source Serif 4', serif;
      --font-mono: 'JetBrains Mono', monospace;

      --color-accent: #2E7D32;
      --color-accent-hover: #256b29;
      --color-bg: #FAFAF7;
      --color-text: #1A1A1A;
      --color-text-secondary: #5C5C5C;
      --color-border: #E0E0D8;
      --color-surface: #F2F2EC;

      --color-success: #2E7D32;
      --color-danger: #C62828;

      --content-width: 1200px;
      --section-gap: 4rem;
      --component-radius: 6px;

      /* Dark theme odds-example keeps dark */
      --odds-bg: #1A1A1A;
      --odds-text: #FAFAF7;
      --odds-accent: #2E7D32;
      --odds-sub: #999;
    }

    @media (prefers-color-scheme: dark) {
      :root {
        --color-bg: #141413;
        --color-text: #E8E8E2;
        --color-text-secondary: #A0A096;
        --color-border: #2E2E2A;
        --color-surface: #1E1E1B;
        --color-accent: #4CAF50;
        --color-accent-hover: #43A047;

        --odds-bg: #0A0A0A;
        --odds-text: #E8E8E2;
        --odds-accent: #4CAF50;
        --odds-sub: #777;
      }
    }

    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
      font-size: 100%;
      -webkit-text-size-adjust: 100%;
    }

    body {
      font-family: var(--font-body);
      font-size: 1.125rem;
      line-height: 1.75;
      color: var(--color-text);
      background-color: var(--color-bg);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    html {
  scroll-behavior: smooth;
}




    img {
      max-width: 100%;
      height: auto;
      display: block;
      width: 100%;
      max-height: 700px;
    }

    a {
      color: var(--color-accent);
      text-decoration: none;
      text-underline-offset: 3px;
      transition: color 0.2s ease, opacity 0.2s ease;
    }

    a:hover {
      color: var(--color-accent-hover);
    }

    a:focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 3px;
      border-radius: 2px;
    }

    [data-content] {
    scroll-margin-top: 80px; 
  }

    /* ========================================
   2. GENERAL TYPOGRAPHY
   ======================================== */
    p {
      text-align: left;
      margin-bottom: 1.25rem;
    }

    h1 {
      font-family: var(--font-display);
      font-weight: 700;
      text-transform: uppercase;
      font-size: clamp(2rem, 5vw, 3.5rem);
      line-height: 1.1;
      letter-spacing: 0.06em;
      color: var(--color-text);
      text-align: center;
      margin: 3rem auto 2rem;
    }

    h2 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: clamp(1.5rem, 3vw, 2rem);
      line-height: 1.2;
      letter-spacing: 0.02em;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 1.5rem;
      scroll-margin-top: 7rem;
    }

    h3 {
      font-family: var(--font-body);
      font-weight: 600;
      font-size: 1.375rem;
      line-height: 1.35;
      color: var(--color-text);
      text-align: left;
      margin-bottom: 1rem;
      scroll-margin-top: 2rem;
    }
  
    ul,
    ol {
      text-align: left;
      padding-left: 1.5rem;
      margin-bottom: 1.25rem;
    }

    li {
      text-align: left;
      margin-bottom: 0.5rem;
    }

    blockquote {
      text-align: left;
      border-left: 3px solid var(--color-accent);
      padding-left: 1.5rem;
      margin: 2rem 0;
      font-style: italic;
      color: var(--color-text-secondary);
    }


/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}


table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; 
    font-family: 'Source Serif 4', serif;
}


th {
    background-color: #f8f9fa;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    color: var(--color-accent);
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--color-accent);
    white-space: nowrap; 
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-secondary);
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}


.table-container::-webkit-scrollbar {
    height: 6px;
}
.table-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

    figcaption {
      text-align: center;
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      margin-top: 0.75rem;
      font-style: italic;
    }

    hr {
      border: none;
      border-top: 1px solid var(--color-border);
      margin: 2rem 0;
    }

    /* ========================================
   3. LAYOUT — SECTIONS ([data-content])
   ======================================== */
    header {
      padding: 0;
      margin: 0;
    }

    main {
      width: 100%;
    }

    .container {
      max-width: var(--content-width);
      margin-left: auto;
      margin-right: auto;
      padding: 0 1rem;
     
    }

    .container figure {
      margin: 2rem auto;
      max-width: 100%;
    }

    .container figure img {
      border-radius: 4px;
    }

    /* ========================================
   4. COMPONENTS
   ======================================== */

    /* --- info-box --- */
    .info-box {
      background-color: var(--color-surface);
      border-left: 4px solid var(--color-accent);
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      border-radius: 0 var(--component-radius) var(--component-radius) 0;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .info-box p {
      text-align: left;
      font-family: var(--font-body);
      font-size: 1rem;
      line-height: 1.6;
      color: var(--color-text);
      margin-bottom: 0;
    }

    .info-box p strong {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    /* --- odds-example --- */
    .odds-example {
      background-color: var(--odds-bg);
      color: var(--odds-text);
      padding: 2rem;
      border-radius: var(--component-radius);
      margin: 2.5rem 0;
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.5rem;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .odds-example p {
      text-align: center;
      color: var(--odds-text);
      margin-bottom: 0;
      font-family: var(--font-body);
      font-size: 0.85rem;
    }

    .odds-example p strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1.1rem;
      text-transform: uppercase;
      color: var(--odds-text);
      margin-bottom: 0.25rem;
    }

    .odds-example .odds-value {
      font-family: var(--font-mono);
      font-size: 2rem;
      font-weight: 700;
      color: var(--odds-accent);
      display: block;
      margin: 0.5rem 0;
    }

    .odds-example .odds-summary {
      flex-basis: 100%;
      text-align: center;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: var(--odds-sub);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding-top: 1rem;
      margin-top: 0.5rem;
    }

    .odds-example .odds-summary strong {
      display: inline;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      text-transform: none;
      color: var(--odds-sub);
    }

    @media (prefers-color-scheme: dark) {
      .odds-example {
        background-color: var(--odds-bg);
        color: var(--odds-text);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      }

      .odds-example p {
        color: var(--odds-text);
      }

      .odds-example p strong {
        color: var(--odds-text);
      }

      .odds-example .odds-summary {
        border-top-color: rgba(255, 255, 255, 0.08);
      }
    }

    /* --- callout --- */
    .callout {
      background-color: transparent;
      border: 2px solid var(--color-accent);
      border-radius: var(--component-radius);
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .callout p {
      text-align: left;
      font-family: var(--font-body);
      font-size: 1rem;
      font-weight: 600;
      color: var(--color-text);
      margin-bottom: 0;
    }

    /* --- card-grid --- */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
      margin: 2rem 0;
    }

    .card-grid>div {
      background-color: var(--color-surface);
      padding: 1.5rem;
      border-radius: 4px;
      border-bottom: 3px solid var(--color-accent);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .card-grid>div:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .card-grid>div p {
      text-align: left;
      margin-bottom: 0.5rem;
      color: var(--color-text);
    }

    .card-grid>div p:last-child {
      margin-bottom: 0;
    }

    .card-grid>div p strong {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1rem;
      text-transform: uppercase;
      color: var(--color-text);
    }

    .card-grid>div p:not(:first-child) {
      font-size: 0.95rem;
      color: var(--color-text-secondary);
    }

    @media (max-width: 600px) {
      .card-grid {
        grid-template-columns: 1fr;
      }
    }

    /* --- comparison --- */
    .comparison {
      margin: 2.5rem 0;
      border-radius: var(--component-radius);
      overflow: hidden;
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    }

    .comparison table {
      margin: 0;
    }

    .comparison th {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 1.2rem;
      text-transform: uppercase;
      text-align: center;
      color: var(--color-text);
      padding: 1rem;
      background-color: var(--color-surface);
      border-bottom: 2px solid var(--color-border);
    }

    .comparison td {
      text-align: center;
      padding: 0.75rem 1rem;
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: var(--color-text);
    }

    .comparison tr:nth-child(even) td {
      background-color: var(--color-surface);
    }

    .comparison tr:nth-child(odd) td {
      background-color: var(--color-bg);
    }

    .comparison thead+tbody tr:first-child td {
      border-top: none;
    }

    /* --- key-takeaway --- */
    .key-takeaway {
      border-top: 3px solid var(--color-text);
      margin: 3rem 0 2rem;
      padding-top: 1.25rem;
    }

    .key-takeaway p {
      text-align: left;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: clamp(1.25rem, 2.5vw, 1.5rem);
      line-height: 1.4;
      color: var(--color-text);
      margin-bottom: 0;
    }

    /* --- fun-fact --- */
    .fun-fact {
      position: relative;
      padding-left: 1.5rem;
      margin: 1.5rem 0;
    }

    .fun-fact::before {
      content: '\2014';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--color-accent);
      font-weight: 700;
    }

    .fun-fact p {
      text-align: left;
      font-style: italic;
      color: var(--color-text-secondary);
      margin-bottom: 0;
    }

    /* --- glossary-term --- */
    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 1rem 0;
    }

    .glossary-term strong {
      font-family: var(--font-mono);
      color: var(--color-accent);
      text-decoration: underline;
      text-underline-offset: 4px;
      white-space: nowrap;
    }

    .glossary-term span {
      font-family: var(--font-body);
      color: var(--color-text-secondary);
    }

    @media (max-width: 600px) {
      .glossary-term {
        flex-direction: column;
        gap: 4px;
      }
    }

    /* --- dos-donts --- */
    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      margin: 2rem 0;
      border-radius: var(--component-radius);
      overflow: hidden;
      box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    }

    .dos-donts>div {
      padding: 1.5rem;
    }

    .dos-donts>div:first-child {
      background-color: var(--color-surface);
      border-right: 2px solid var(--color-border);
    }

    .dos-donts>div:last-child {
      background-color: var(--color-surface);
    }

    .dos-donts>div p {
      text-align: left;
      margin-bottom: 0.75rem;
      color: var(--color-text);
    }

    .dos-donts>div:first-child p strong {
      color: var(--color-success);
      font-family: var(--font-display);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .dos-donts>div:last-child p strong {
      color: var(--color-danger);
      font-family: var(--font-display);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .dos-donts ul {
      padding-left: 1.25rem;
    }

    .dos-donts li {
      text-align: left;
      color: var(--color-text);
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }

    @media (max-width: 600px) {
      .dos-donts {
        grid-template-columns: 1fr;
      }

      .dos-donts>div:first-child {
        border-right: none;
        border-bottom: 2px solid var(--color-border);
      }
    }

    /* --- pre-bet-checklist --- */
    .pre-bet-checklist {
      margin: 2.5rem 0;
    }

    .pre-bet-checklist>p {
      text-align: left;
      font-family: var(--font-display);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-size: 0.85rem;
      color: var(--color-accent);
      margin-bottom: 1rem;
    }

    .pre-bet-checklist ul {
      list-style: none;
      padding-left: 2rem;
      border-left: 2px solid var(--color-border);
      margin-bottom: 0;
    }

    .pre-bet-checklist li {
      text-align: left;
      position: relative;
      padding-left: 0.5rem;
      margin-bottom: 1rem;
      font-size: 1rem;
      color: var(--color-text);
    }

    .pre-bet-checklist li::before {
      content: '\2610';
      position: absolute;
      left: -1.75rem;
      color: var(--color-accent);
      font-size: 1.1rem;
      background-color: var(--color-bg);
      padding: 0 2px;
    }

    .pre-bet-checklist li:last-child {
      margin-bottom: 0;
    }

    /* --- at-a-glance --- */
    .at-a-glance {
      display: flex;
      flex-direction: row;
      background-color: var(--color-surface);
      border-radius: var(--component-radius);
      margin: 2rem 0;
      overflow: hidden;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .at-a-glance>div {
      flex: 1;
      padding: 1.25rem;
      border-right: 1px solid var(--color-border);
    }

    .at-a-glance>div:last-child {
      border-right: none;
    }

    .at-a-glance>div p {
      text-align: center;
      color: var(--color-text);
      margin-bottom: 0.5rem;
      font-size: 0.95rem;
    }

    .at-a-glance>div p:last-child {
      margin-bottom: 0;
    }

    .at-a-glance>div p strong {
      display: block;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      color: var(--color-accent);
      margin-bottom: 0.5rem;
      letter-spacing: 0.05em;
    }

    @media (max-width: 600px) {
      .at-a-glance {
        flex-direction: column;
      }

      .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: 2rem 2.5rem;
      margin: 2.5rem 0;
      border-radius: var(--component-radius);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .worked-example p {
      text-align: left;
      font-family: var(--font-mono);
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--color-text);
      margin-bottom: 1rem;
    }

    .worked-example p:last-child {
      margin-bottom: 0;
    }

    .worked-example hr {
      border-top: 1px dashed var(--color-border);
      margin: 1.25rem 0;
    }

    .worked-example .result {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--color-accent);
    }

    /* --- section-bridge --- */
    .section-bridge {
      text-align: center;
      margin: 3rem 0;
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

    .section-bridge::before,
    .section-bridge::after {
      content: '';
      flex: 1;
      height: 1px;
      background-color: var(--color-border);
    }

    .section-bridge p {
      text-align: center;
      font-family: var(--font-body);
      font-style: italic;
      font-size: 1.1rem;
      color: var(--color-text-secondary);
      margin-bottom: 0;
      white-space: nowrap;
    }

    @media (max-width: 600px) {
      .section-bridge p {
        white-space: normal;
        font-size: 1rem;
      }
    }

    /* ========================================
   5. HERO SECTION
   ======================================== */
    [data-content="hero"] {
      max-width: 100%;
      padding: 0;
      margin-bottom: var(--section-gap);
      text-align: center;
    }

    .hero-inner {
      max-width: var(--content-width);
      margin: 0 auto;
      padding: 5rem 1.5rem 2rem;
    }

    .rubric {
     
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.75rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--color-accent);
     margin: 7rem auto 0;
    display: flex;
    justify-content: center;
    }

    [data-content="hero"] h1 {
      margin-bottom: 1.25rem;
    }

    .subtitle {
      font-family: var(--font-body);
      font-style: italic;
      font-weight: 400;
      font-size: 1.25rem;
      color: var(--color-text-secondary);
      margin-bottom: 1.5rem;
      text-align: center;
    max-width: 734px;
    margin: 0 auto 1rem;
    }

    .hero-divider {
      width: 60px;
      height: 3px;
      background-color: var(--color-accent);
      border: none;
      margin: 0 auto 1.5rem;
    }

    .meta {
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-text-secondary);
      margin-bottom: 2.5rem;
    }

    [data-content="hero"] figure {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    [data-content="hero"] figure img {
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      aspect-ratio: 1200 / 630;
      object-fit: cover;
      display: block;
    }

    /* ========================================
   5b. TOC — Vertical list
   ======================================== */
    [data-content="toc"] {
      margin-bottom: var(--section-gap);
      margin-top: 3rem;
    }

    .toc-nav {
      border: 1px solid var(--color-border);
      border-radius: var(--component-radius);
      padding: 1rem;
      background-color: var(--color-surface);
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }

    .toc-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--color-text-secondary);
      margin-bottom: 1.25rem;
    }

    .toc-nav ol {
      list-style: none;
      padding-left: 0;
      margin-bottom: 0;
    }

    .toc-nav>ol>li {
      margin-bottom: 0.75rem;
    }

    .toc-nav>ol>li>a {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1rem;
      color: var(--color-text);
      text-decoration: none;
      letter-spacing: 0.02em;
      transition: color 0.2s ease;
    }

    .toc-nav>ol>li>a:hover {
      color: var(--color-accent);
    }

    .toc-nav ol ol {
      padding-left: 1.25rem;
      margin-top: 0.4rem;
      margin-bottom: 0;
    }

    .toc-nav ol ol li {
      margin-bottom: 0.35rem;
    }

    .toc-nav ol ol li 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;
    }

    .toc-nav ol ol li a:hover {
      color: var(--color-accent);
    }

    /* Start Reading / Back to Top buttons */
    .btn-anchor {
      display: inline-block;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--color-accent);
      text-decoration: none;
      border: 2px solid var(--color-accent);
      padding: 0.6rem 1.5rem;
      border-radius: 4px;
      transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .btn-anchor:hover {
      background-color: var(--color-accent);
      color: var(--color-bg);
      transform: translateY(-1px);
    }

    .btn-anchor:focus-visible {
      outline: 2px solid var(--color-accent);
      outline-offset: 3px;
    }

    .start-reading-wrap {
      text-align: center;
      margin-top: 1.5rem;
    }

    .back-to-top-wrap {
      text-align: center;
      margin-top: 2rem;
      margin-bottom: 2rem;
    }

    /* ========================================
   6. FAQ — details/summary accordion
   ======================================== */
    details {
      border-bottom: 1px solid var(--color-border);
      interpolate-size: allow-keywords;
    }

    summary {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 1.1rem;
      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-size: 1.4rem;
      font-weight: 700;
      color: var(--color-accent);
      transition: transform 0.3s ease;
    }

    details[open] summary::after {
      content: '\2212';
      transform: translateY(-50%) rotate(0deg);
    }

    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 {
      opacity: 0;
      block-size: 0;
      overflow: hidden;
      transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
    }

    details[open]::details-content {
      opacity: 1;
      block-size: auto;
    }

    details div {
      padding-bottom: 1.25rem;
    }

    details div p {
      text-align: left;
      color: var(--color-text);
      font-size: 1rem;
      line-height: 1.7;
    }

    /* Fallback for older browsers */
    @supports not selector(::details-content) {
      @keyframes fade-in {
        from {
          opacity: 0;
          transform: translateY(-4px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      details[open]>*:not(summary) {
        animation: fade-in 0.3s ease forwards;
      }
    }

    /* ========================================
   7. FOOTER
   ======================================== */
    footer {
   
      padding: 2rem 1.5rem;
      border-top: 1px solid var(--color-border);
      font-size: 0.8rem;
      color: var(--color-text-secondary);
      line-height: 1.5;
    }

    /* ========================================
   8. MEDIA QUERIES
   ======================================== */
    @media (max-width: 768px) {
      :root {
        --section-gap: 3rem;
      }

     

      .hero-inner {
        padding: 3.5rem 1rem 1.5rem;
      }

      [data-content="hero"] figure {
        padding: 0 1rem;
      }

      .subtitle {
        font-size: 1.1rem;
      }

      .toc-nav {
        padding: 1.5rem;
      }

      .odds-example {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
      }

      .comparison th {
        font-size: 1rem;
      }

      .section-bridge {
        gap: 1rem;
      }
    }

    @media (max-width: 480px) {
      h1 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
      }
    }

/* ========================================
   IMAGES STYLES — Apuestas de Fútbol
   ======================================== */

/* Hero image */
[data-content="hero"] figure {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

[data-content="hero"] figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
}

[data-content="hero"] figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Article images within sections */
[data-content] figure {
  margin: 2rem auto;
  max-width: 100%;
}

[data-content] figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

[data-content] figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  [data-content="hero"] figure {
    padding: 0 1rem;
  }

  [data-content] figure {
    margin: 1.5rem auto;
  }

  [data-content] figcaption {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}


/* ====================== */


.back-to-top {
            position: fixed;
            bottom: 2rem;
            right:2rem;
            width: 44px;
            height: 44px;
           background: var(--color-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);
        }

      /*  */
        
   
        .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;
            margin: 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: #1E1E1B;
    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: 63px;
    width: 63px;
    flex-shrink: 0;
    border-radius: 50%;
}

.logo-text {
    color: var(--color-accent);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: capitalize;
    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: var(--color-accent);
    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-surface);
    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: grid;
    gap: 20px;
    align-items: center;
}



.main-menu a {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 500;
    transition: color 0.2s;
}

.main-menu a:hover { color:var(--color-accent); }




body.has-overlay {
    overflow: hidden;
}


.btn-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 1;
    color: var(--color-accent);
}


.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;
    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 t;
    font-weight: 700 ;
}


.main-menu li.menu-item-has-children.is-open > a {
    color: #f1e253 ;
}


.main-menu li.active > a {
    color: #f1e253 ;
    font-weight: 700 ;
    border-bottom: 1px solid var(--color-accent);;
}


.main-navigation.active .main-menu .current-menu-item > a {
    color: #f1e253 ;
}



/* end menu */
.content {
    margin-top: 2.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: 6rem 0 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) {
      
        .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 3rem;
}

.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; 
}


.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: 20px;
    text-transform: uppercase;
    margin-bottom: 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;
}
