/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

/* 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+ */
}
/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - 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: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-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: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
 
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-bg: #FAFAFA;
  --color-bg-hero: #FAFAFA;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-text-meta: #888888;
  --color-accent: #2E7D32;
  --color-accent-hover: #1B5E20;
  --color-component-bg: #F0F4F0;
  --color-border: #E0E0E0;
  --color-table-header: #F5F5F5;
  --color-surface: #F5F5F5;
  --color-success: #2E7D32;
  --color-danger: #C62828;

  --section-gap: clamp(64px, 8vw, 120px);
  --content-width: 1100px;
  --wide-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-bg-hero: #121212;
    --color-text: #E0E0E0;
    --color-text-secondary: #A0A0A0;
    --color-text-meta: #777777;
    --color-accent: #4CAF50;
    --color-accent-hover: #66BB6A;
    --color-component-bg: #1E2A1E;
    --color-border: #333333;
    --color-table-header: #1A1A1A;
    --color-surface: #1A1A1A;
    --color-success: #4CAF50;
    --color-danger: #EF5350;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  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;
}

/* ========================================
   2. General Typography
   ======================================== */
h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--color-text);
      max-width: 1000px;
    margin: 0 auto;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.2em;
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
  text-align: left;
}

li {
  margin-bottom: 0.4em;
  text-align: left;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 12px 20px;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: left;
}

figure {
  margin: 2em auto;
}

figcaption {
  font-size: 14px;
  color: var(--color-text-meta);
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 16px;
  text-align: left;
}

th {
  font-weight: 700;
  background-color: var(--color-table-header);
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  color: var(--color-text);
}

tr:last-child td {
  border-bottom: none;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin: 2em 0;
}

/* ========================================
   3. Layout — Sections
   ======================================== */
header {
  padding: 0;
  margin: 0;
}

main {
  width: 100%;
}

.container {
  max-width: var(--content-width);
 margin: 0 auto;
  padding: 0 15px;
}


[data-content] h2 {
  margin: 1.2em auto;
}

[data-content] h3 {
  margin-top: 2em;
  margin-bottom: 0.8em;
}

[data-content] table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* ========================================
   4. Components
   ======================================== */

/* --- info-box --- */
.info-box {
  background-color: var(--color-component-bg);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  border-radius: 0;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.info-box p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  background-color: transparent;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  font-weight: 500;
  color: var(--color-text);
}

/* --- odds-example --- */
.odds-example {
  background-color: #1A1A1A;
  color: #FAFAFA;
  padding: 32px;
  border-radius: 4px;
  margin: 2em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.odds-example p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #FAFAFA;
  background-color: transparent;
  text-align: left;
  margin-bottom: 0.8em;
}

.odds-example p:last-child {
  margin-bottom: 0;
}

.odds-example strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: #FAFAFA;
}

.odds-example .odds-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #FAFAFA;
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background-color: #1A1A1A;
    color: #FAFAFA;
  }
  .odds-example p,
  .odds-example strong,
  .odds-example .odds-value {
    color: #FAFAFA;
  }
}

/* --- callout --- */
.callout {
  background-color: transparent;
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  margin: 2em 0;
}

.callout p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.8em;
  background-color: transparent;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--content-width);
  margin: 2em 0;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.comparison > div:first-child {
  background-color: var(--color-bg);
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.comparison > div:last-child {
  background-color: var(--color-surface);
  padding: 24px;
}

.comparison p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  background-color: transparent;
}

.comparison strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--color-text);
}

.comparison ul {
  padding-left: 1.2em;
  margin-bottom: 0;
  text-align: left;
}

.comparison li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.4em;
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.card-grid > div {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  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.1);
}

.card-grid p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  background-color: transparent;
}

.card-grid strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding: 32px 0;
  margin: 2em 0;
}

.key-takeaway p {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  background-color: transparent;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  margin: 1.5em 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: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: left;
  background-color: transparent;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}

.glossary-term strong {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.glossary-term span {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dos-donts > div:first-child {
  border-top: 3px solid var(--color-success);
  padding: 24px;
  background-color: var(--color-bg);
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--color-danger);
  padding: 24px;
  background-color: var(--color-bg);
}

.dos-donts p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.6em;
  background-color: transparent;
}

.dos-donts > div:first-child strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-success);
}

.dos-donts > div:last-child strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-danger);
}

.dos-donts ul {
  padding-left: 1.2em;
  text-align: left;
}

.dos-donts li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.5em;
}

/* --- section-bridge --- */
.section-bridge {
  max-width: 600px;
  margin: 48px auto;
  text-align: center;
  position: relative;
  padding: 20px 0;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  display: block;
  height: 1px;
  background-color: var(--color-border);
}

.section-bridge::before {
  margin-bottom: 20px;
}

.section-bridge::after {
  margin-top: 20px;
}

.section-bridge p {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 0;
  background-color: transparent;
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 2em 0;
}

.pre-bet-checklist > p:first-child {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
  text-align: left;
  background-color: transparent;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 28px;
  border-left: 2px solid var(--color-border);
  margin: 0;
  text-align: left;
}

.pre-bet-checklist li {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  padding: 6px 0;
  margin-bottom: 0;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 20px;
  text-align: center;
  color: var(--color-accent);
  font-size: 16px;
  background-color: var(--color-bg);
  line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
  .pre-bet-checklist li::before {
    background-color: var(--color-bg);
  }
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: var(--color-surface);
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.at-a-glance > div {
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance p:first-child {
  text-align: center;
  margin-bottom: 0.4em;
  background-color: transparent;
}

.at-a-glance p:first-child strong {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.at-a-glance p:not(:first-child) {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: center;
  background-color: transparent;
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  padding: 32px;
  margin: 2em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.worked-example p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  background-color: transparent;
  margin-bottom: 0.8em;
}

.worked-example p:last-child {
  margin-bottom: 0;
}

.worked-example strong {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
}

.worked-example .step-value {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-text);
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.worked-example hr {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin: 16px 0;
}

/* ========================================
   5. Hero Section
   ======================================== */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;

  background-color: var(--color-bg-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}


/* Track oval SVG pattern */
[data-content="hero"]::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -30%;
  width: 80%;
  height: 140%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400'%3E%3Cellipse cx='300' cy='200' rx='260' ry='150' fill='none' stroke='%232E7D32' stroke-width='1.5' opacity='0.06'/%3E%3Cellipse cx='300' cy='200' rx='220' ry='120' fill='none' stroke='%232E7D32' stroke-width='1' opacity='0.04'/%3E%3Cellipse cx='300' cy='200' rx='180' ry='90' fill='none' stroke='%232E7D32' stroke-width='0.8' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Fade mask so pattern dissolves toward center */
[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, var(--color-bg-hero) 30%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

[data-content="hero"] > * {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

[data-content="hero"] h1 {
  margin-bottom: 20px;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.5;
  text-align: center;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0 auto 24px;
  border: none;
}

.hero-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-meta);
  margin-bottom: 32px;
  text-align: center;
}

.hero-meta time {
  color: var(--color-text-meta);
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 3px 10px;
  margin-left: 12px;
  vertical-align: middle;
}

[data-content="hero"] figure {
  max-width: var(--wide-width);
  margin: 0 auto;
}

[data-content="hero"] figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

.btn-start-reading {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-bg);
  background-color: var(--color-accent);
  padding: 12px 28px;
  margin-top: 28px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-start-reading:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  color: var(--color-bg);
}

.btn-start-reading:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ========================================
   5b. TOC — Horizontal Strip
   ======================================== */
[data-content="toc"] {
  max-width: var(--wide-width);
  padding: 24px 20px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
}

.toc-nav a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.toc-nav a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.toc-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   6. FAQ Accordion
   ======================================== */
details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

summary {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  padding: 20px 40px 20px 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-size: 22px;
  font-weight: 300;
  color: var(--color-text-meta);
  transition: transform 0.3s ease;
}

details[open] > summary::after {
  transform: translateY(-50%) rotate(45deg);
}

summary:hover {
  color: var(--color-accent);
}

summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

::details-content {
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  opacity: 0;
  block-size: 0;
  overflow: clip;
  content-visibility: hidden;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
  content-visibility: visible;
}

@supports not selector(::details-content) {
  details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
  @keyframes faq-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

[data-content="faq"] details > div {
  padding: 0 0 20px;
}

[data-content="faq"] details > div p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
}

/* ========================================
   7. Back to Top
   ======================================== */
.btn-back-to-top {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 8px 0;
  margin-top: 40px;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-back-to-top:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}



/* ========================================
   9. Media Queries
   ======================================== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .comparison > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .dos-donts > div:first-child {
    border-bottom: 1px solid var(--color-border);
  }

  .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;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  .toc-nav {
    gap: 4px 8px;
  }

  .toc-nav a {
    font-size: 12px;
    padding: 5px 8px;
  }

  
  .hero-meta .badge {
    display: block;
    margin: 8px auto 0;
    width: fit-content;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   Images — Hero & Article
   ======================================== */

/* Hero image */
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* Article images inside sections */
.article-image {
  margin: 2em auto;
  max-width: 100%;
}

.article-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.article-image figcaption {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #888888;
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .article-image figcaption {
    color: #777777;
  }

  .hero-image,
  .article-image img {
    opacity: 0.92;
  }
}

@media (max-width: 768px) {
  .article-image {
    margin: 1.5em auto;
  }

  .article-image figcaption {
    font-size: 13px;
    padding: 0 8px;
  }
}


/*  */

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%;
 
  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: 10px;
}

.logo-text {
  color:#fff;
  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: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-menu a:hover {
  color: #f1e253;
}

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: #fff;
}

.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-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: 0 0 3rem ;
  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: #007cba;
}

.sitemap-list a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.sitemap-list a:hover {
  color: #007cba;
}

.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;
  }
  .container-casa {
  margin-top: 3rem;
}
.breadcrumbs {
    margin: 2rem 0 0;
    
}
  .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;
}

footer p{
  color: #ccc;
}
.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;

    margin-top: 2.5rem;
}
.sitemap-grid{
  padding: 2rem 0;
  margin: 3rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
   font-size: 1.1rem;
    text-transform: uppercase;
    margin:0 0 15px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}


.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-size: 20px;
    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-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: 62px;
    border-radius: 10px;
    
    
}
.footer-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-about p{
  font-size: 14px;
}
.footer-logo-text {

    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-disclaimer p{
  text-align: center;
  margin: 1.5rem 0;
}

/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
section,
h2[id], 
h3[id], 
[data-content] {
    scroll-margin-top: 80px;
}

.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;
}

/* Добавляет маленькую стрелочку после внешних ссылок */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}
