/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/dm-sans-v17-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-800 - 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: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/dm-sans-v17-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/dm-sans-v17-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* dm-sans-800 - 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: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/dm-sans-v17-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ========================================
   1. CSS Variables & Reset
   ======================================== */
:root {
  --color-primary: #0B1D3A;
  --color-primary-light: #162B50;
  --color-accent: #00C853;
  --color-accent-dim: rgba(0, 200, 83, 0.12);
  --color-neutral: #F4F5F7;
  --color-text: #1A1A2E;
  --color-text-secondary: #5A5E6B;
  --color-gold: #FFB300;
  --color-gold-dim: rgba(255, 179, 0, 0.10);
  --color-bg: #FFFFFF;
  --color-surface: #F4F5F7;
  --color-border: #E2E4E9;
  --color-success: #2E7D32;
  --color-danger: #C62828;
  --color-danger-bg: rgba(198, 40, 40, 0.06);
  --color-success-bg: rgba(46, 125, 50, 0.06);

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --h1-size: clamp(2rem, 4vw, 3.25rem);
  --h2-size: clamp(1.5rem, 3vw, 2.25rem);
  --h3-size: clamp(1.2rem, 2.5vw, 1.75rem);
  --body-size: clamp(1rem, 1.5vw, 1.125rem);
  --caption-size: 0.875rem;
  --small-size: 0.8125rem;

  --content-width: 1000px;
  --section-gap: clamp(3.5rem, 6vw, 5.5rem);
  --component-radius: 6px;
  --sidebar-width: 220px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #0B1D3A;
    --color-primary-light: #162B50;
    --color-accent: #4ADE80;
    --color-accent-dim: rgba(74, 222, 128, 0.10);
    --color-neutral: #1E2030;
    --color-text: #E4E6EB;
    --color-text-secondary: #9CA0AE;
    --color-gold: #FFD54F;
    --color-gold-dim: rgba(255, 213, 79, 0.10);
    --color-bg: #12141D;
    --color-surface: #1A1D2B;
    --color-border: #2A2D3E;
    --color-success: #66BB6A;
    --color-danger: #EF5350;
    --color-danger-bg: rgba(239, 83, 80, 0.08);
    --color-success-bg: rgba(102, 187, 106, 0.08);
  }
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  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-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25em;
}

p:last-child { margin-bottom: 0; }

ul, ol {

  margin-bottom: 1.25em;
  text-align: left;
}

li { margin-bottom: 0.4em; }

strong { font-weight: 600; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: left;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.8; }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

figure {
  margin: 2em auto;
  max-width: 100%;
}

figcaption {
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.75em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--caption-size);
  text-align: left;
}

th, td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

th {
  font-weight: 600;
  background: var(--color-surface);
}

tr:nth-child(even) td { background: var(--color-surface); }

/* ========================================
   3. Layout — Main with sidebar grid
   ======================================== */
header {
  padding: 0;
  margin: 0;
}

/* .container {
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 0 2.5rem;
} */

.container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;    
    
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 0 2.5rem;
    align-items: start; 
}


.container > [data-content] {
  grid-column: 2;
  max-width: var(--content-width);
  /* padding: 0 1.5rem; */
  margin-bottom: 2.5rem;
}

.container > [data-content="hero"] {
  grid-column: 1 / -1;
  max-width: none;
  padding: 0;
  margin-bottom: 0;
}

.container > [data-content="toc"] {
  grid-column: 1;
  grid-row: 1 / 100;
  padding: 0 15px;
  max-width: none;
  margin-bottom: 0;
  padding-top: 2rem;
}
.container-page{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.content {
  margin-top: 2.5rem;
}
h2 + p, h2 + .info-box, h2 + .callout, h2 + .key-takeaway, h2 + .fun-fact,
h2 + ul, h2 + ol, h2 + table, h2 + .odds-example, h2 + .card-grid,
h2 + .comparison, h2 + .glossary-term, h2 + .dos-donts, h2 + .pre-bet-checklist,
h2 + .at-a-glance, h2 + .worked-example { margin-top: 1.25em; }

h3 + p { margin-top: 0.75em; }

/* ========================================
   4. Components
   ======================================== */

/* --- info-box --- */
.info-box {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
}

.info-box p:last-child { margin-bottom: 0; }

.info-box strong {
  color: var(--color-text);
}

/* --- odds-example --- */
.odds-example {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 1.75em 2em;
  border-radius: var(--component-radius);
  margin: 1.5em 0;
  box-shadow: 0 2px 8px rgba(11,29,58,0.18);
  text-align: center;
}

.odds-example p {
  text-align: center;
  color: var(--color-bg);
  margin-bottom: 0.75em;
}

.odds-example p:last-child { margin-bottom: 0; }

.odds-example strong {
  color: var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0B1D3A;
    color: #E4E6EB;
  }
  .odds-example p { color: #E4E6EB; }
  .odds-example strong { color: var(--color-accent); }
}

/* --- callout --- */
.callout {
  background: var(--color-primary);
  color: #F4F5F7;
  padding: 1.5em 1.75em;
  border-radius: var(--component-radius);
  margin: 1.5em 0;
  box-shadow: 0 2px 6px rgba(11,29,58,0.15);
  border-left: 3px solid var(--color-accent);
}

.callout p {
  text-align: left;
  color: #F4F5F7;
  margin-bottom: 0.75em;
}

.callout p:last-child { margin-bottom: 0; }

.callout strong { color: var(--color-accent); }

@media (prefers-color-scheme: dark) {
  .callout {
    background: #0F2244;
    color: #E4E6EB;
  }
  .callout p { color: #E4E6EB; }
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25em;
  margin: 1.5em 0;
}

.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5em;
  border-radius: var(--component-radius);
  box-shadow: 0 1px 3px 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 p {
  text-align: left;
  color: var(--color-text);
}

.card-grid h3 {
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25em;
  margin: 1.5em 0;
}

.comparison > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 1.5em;
  border-radius: var(--component-radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison > div:first-child {
  border-top: 3px solid var(--color-accent);
}

.comparison > div:last-child {
  border-top: 3px solid var(--color-gold);
}

.comparison p {
  text-align: left;
  color: var(--color-text);
}

.comparison h3 {
  font-size: 1.05em;
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
}

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 1.75em 2em;
  border-radius: 0 var(--component-radius) var(--component-radius) 0;
}

.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.75em;
  letter-spacing: -0.01em;
}

.tldr ul {
  text-align: left;
  padding-left: 1.25em;
  margin-bottom: 0;
}

.tldr li {
  color: var(--color-text);
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.tldr li:last-child { margin-bottom: 0; }

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1em;
  margin: 2em 0 1.5em;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text);
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5em;
  margin: 1.5em 0;
}

.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-weight: 700;
}

.fun-fact p {
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.glossary-term span {
  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: 1.25em;
  margin: 1.5em 0;
}

.dos-donts > div {
  padding: 1.25em;
  border-radius: var(--component-radius);
}

.dos-donts > div:first-child {
  background: var(--color-success-bg);
  border-top: 3px solid var(--color-success);
}

.dos-donts > div:last-child {
  background: var(--color-danger-bg);
  border-top: 3px solid var(--color-danger);
}

.dos-donts h4 {
  font-weight: 700;
  margin-bottom: 0.75em;
  font-size: 0.95em;
}

.dos-donts > div:first-child h4 { color: var(--color-success); }
.dos-donts > div:last-child h4 { color: var(--color-danger); }

.dos-donts p {
  text-align: left;
  color: var(--color-text);
}

.dos-donts ul {
  text-align: left;
  padding-left: 1.25em;
}

.dos-donts li {
  color: var(--color-text);
  margin-bottom: 0.4em;
}

@media (max-width: 600px) {
  .dos-donts { grid-template-columns: 1fr; }
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 2em 0;
}

.pre-bet-checklist h4 {
  font-family: var(--font-display);
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 1em;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.75em;
  border-left: 2px solid var(--color-border);
  text-align: left;
}

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.25em;
  margin-bottom: 0.75em;
  color: var(--color-text);
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.75em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
  font-size: 1em;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--component-radius);
  overflow: hidden;
}

.at-a-glance > div {
  padding: 1.25em;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.at-a-glance > div:last-child { border-right: none; }

.at-a-glance p {
  text-align: center;
  color: var(--color-text);
}

.at-a-glance strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.25em;
  color: var(--color-text);
}

.at-a-glance span {
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .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: var(--color-surface);
  padding: 2em;
  border-radius: var(--component-radius);
  margin: 1.5em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
}

.worked-example code,
.worked-example .mono {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}

.worked-example .result {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 0.75em;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-display);
  margin: 1.5em 0;
  font-size: 1.05em;
  position: relative;
  padding: 0 2em;
}

.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-border);
  font-style: normal;
}

.section-bridge::before { left: 0; }
.section-bridge::after { right: 0; }

/* ========================================
   5. Hero Section
   ======================================== */
[data-content="hero"] {
  background: linear-gradient(170deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  position: relative;
  padding: 1.2rem 15px 2rem;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.05) 0px,
      rgba(255,255,255,0.05) 1px,
      transparent 1px,
      transparent 120px
    );
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

[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;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25em;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: var(--small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}

.hero-badge time {
  color: rgba(255,255,255,0.6);
}

.hero-trust {
  font-size: var(--small-size);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  padding-top: 1.7rem;
}

[data-content="hero"] h1 {
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 0.6em;
  text-align: center;
}

.hero-subtitle {
  font-size: var(--caption-size);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 2em;
}

[data-content="hero"] figure {
  margin: 0 auto;
 
}

[data-content="hero"] .hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
}

[data-content="hero"] figcaption {
  color: rgba(255,255,255,0.5);
  margin-top: 0.75em;
}

/* ========================================
   6. TOC — Sidebar variant
   ======================================== */
[data-content="toc"] {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.5rem 1rem 1.5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

[data-content="toc"]::-webkit-scrollbar { width: 4px; }
[data-content="toc"]::-webkit-scrollbar-track { background: transparent; }
[data-content="toc"]::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

[data-content="toc"] h2 {
  font-size: var(--small-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 1em;
}

[data-content="toc"] nav ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

[data-content="toc"] nav > ul > li {
  margin-bottom: 0.6em;
}

[data-content="toc"] nav > ul > li > a {
  font-size: var(--caption-size);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 0.2em 0;
  transition: color 0.2s ease;
}

[data-content="toc"] nav > ul > li > a:hover {
  color: var(--color-accent);
  opacity: 1;
}

[data-content="toc"] nav ul ul {

  margin-top: 0.3em;
  margin-bottom: 0;
}

[data-content="toc"] nav ul ul li {
  margin-bottom: 0.25em;
}

[data-content="toc"] nav ul ul a {
  font-size: var(--small-size);
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.15em 0;
  transition: color 0.2s ease;
}

[data-content="toc"] nav ul ul a:hover {
  color: var(--color-accent);
  opacity: 1;
}

/* ========================================
   7. FAQ Accordion
   ======================================== */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

summary {
  cursor: pointer;
  padding: 1.15em 2em 1.15em 0;
  font-weight: 600;
  font-size: 1.05em;
  list-style: none;
  position: relative;
  user-select: none;
  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: 1.25em;
  font-weight: 400;
  color: var(--color-text-secondary);
  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;
  border-radius: 2px;
}

details {
  interpolate-size: allow-keywords;
}

details::details-content {
  opacity: 0;
  block-size: 0;
  content-visibility: hidden;
  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;
  content-visibility: visible;
}

@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;
  }
}

details > div {
  padding: 0 0 1.25em;
}

details > div p {
  text-align: left;
  color: var(--color-text);
}

/* ========================================
   8. Images
   ======================================== */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--component-radius);
}

/* ========================================
   9. Footer
   ======================================== */
footer {

  margin: 0 auto;
  padding: 2em 1.5rem 3em;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   10. Back to Top
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(11,29,58,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary-light);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .back-to-top {
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
  .back-to-top:hover { background: var(--color-border); }
}

/* ========================================
   11. Media Queries
   ======================================== */
@media (max-width: 900px) {
  main {
    display: block;
  }

  main > [data-content="toc"] {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding: 1.5rem;
    margin-bottom: var(--section-gap);
    max-width: var(--content-width);
  }

  main > [data-content] {
    max-width: none;
   
  }

 
}

@media (max-width: 600px) {
  :root {
    --section-gap: 3rem;
  }

.container > [data-content="toc"] {

    padding: 0;
   
}

  .hero-meta {
    flex-direction: column;
    gap: 0.5em;
  }

  .at-a-glance {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   images-styles.css — Image styles for pillar page
   ======================================== */

/* --- Article images (non-hero) --- */
figure {
  margin: 2em auto;
  max-width: 100%;
}

figure .article-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--component-radius, 6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

figure .article-image:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

figcaption {
  font-size: var(--caption-size, 0.875rem);
  color: var(--color-text-secondary, #5A5E6B);
  text-align: center;
  margin-top: 0.75em;
  line-height: 1.5;
}

/* --- Hero image --- */
[data-content="hero"] figure {
  margin: 0 auto;
 
}

[data-content="hero"] .hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius, 6px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-content="hero"] figcaption {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.75em;
}

/* --- Dark mode adjustments --- */
@media (prefers-color-scheme: dark) {
  figure .article-image {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }

  figure .article-image:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  [data-content="hero"] .hero-image {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  }
}
@media (max-width: 765px) {
 
    .container {
        display: flex !important;
        flex-direction: column !important; 
        width: 100% !important;
        padding: 0 15px !important;
        gap: 20px !important;
    }

  
    aside, .sidebar { 
        order: -1 !important; 
        position: relative !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
      
        float: none !important;
        display: block !important;
        
        overflow: visible !important;
    }

    main, .content-area, #primary {
        order: 1 !important; 
        width: 100% !important;
        display: block !important;
    }
}



/* --- Responsive --- */
@media (max-width: 600px) {
  figure {
    margin: 1.5em auto;
  }

  figure .article-image {
    border-radius: 4px;
  }
}

img{
  width: 100%;
  object-fit: cover;
  max-height: 700px;
}

.hero-figure{
  margin: 2.5rem auto;
}
/*  */

.wp-block-image img {
  margin-bottom: 2rem;
}

.footer-menu {
  list-style: none;
}

.container-casa {

  text-align: center;
  /* padding-top: 2rem; */
}

.container-casa p {
  margin: 0 auto 2.5rem;
  text-align: center;
  max-width: 800px;
}

.main-logo a {
  color: #fff;
  font-size: 1.5rem;
}

/* --- 1. menu --- */
.header-top {
  background: var(--color-accent);

  min-height: var(--space-xl);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;

  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: 52px;
  flex-shrink: 0;
  border-radius: 5%;
}

.logo-text {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;

  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: 0;
  right: 0;
  width: 500px;
  height: auto;
  max-height: 100vh;
  background: var(--color-accent);
  z-index: 9999;

  transition:
    visibility 0.6s ease-out,
    transform 0.6s ease-out,
    border-radius 0.6s ease-out;

  padding: 80px 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  overflow-y: auto;
  display: block;
  transform-origin: top right;
  transform: scale(0);
  border-radius: 50%;
}

.main-navigation.active {
  visibility: visible;
  transform: scale(1);
  border-radius: 0 0 15px 15px;
}

@keyframes menuItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.main-menu li {
  opacity: 0;
  animation: menuItemFadeIn 0.3s ease-out forwards;
  animation-play-state: paused;
}

.main-navigation.active .main-menu li {
  animation-play-state: running;
}

.main-navigation.active .main-menu li:nth-child(1) {
  animation-delay: 0.2s;
}
.main-navigation.active .main-menu li:nth-child(2) {
  animation-delay: 0.3s;
}
.main-navigation.active .main-menu li:nth-child(3) {
  animation-delay: 0.4s;
}
.main-navigation.active .main-menu li:nth-child(4) {
  animation-delay: 0.5s;
}
.main-navigation.active .main-menu li:nth-child(5) {
  animation-delay: 0.6s;
}
.main-navigation.active .main-menu li:nth-child(6) {
  animation-delay: 0.7s;
}
.main-navigation.active .main-menu li:nth-child(7) {
  animation-delay: 0.8s;
}
.main-navigation.active .main-menu li:nth-child(8) {
  animation-delay: 0.9s;
}
.main-navigation.active .main-menu li:nth-child(9) {
  animation-delay: 1s;
}
.main-navigation.active .main-menu li:nth-child(10) {
  animation-delay: 1.1s;
}

.main-navigation.active .main-menu {
  opacity: 1;
}

.main-menu a {
  text-decoration: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-menu a:hover {
  color: var(--color-secondary);
}

body.has-overlay {
  overflow: hidden;
}

.btn-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2.5rem;
  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: var(--c-primary);
  font-weight: 700 !important;
}

.main-menu li.menu-item-has-children.is-open > a {
  color: var(--c-primary);
}

.main-menu li.active > a {
  color: var(--color-secondary);
  font-weight: 700 !important;
}

.main-navigation.active .main-menu .current-menu-item > a {
  color: var(--c-primary);
}

/* 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;
}
.post-thumbnail{
  margin-top: 2.5rem;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 2rem;
  gap: 0.5rem;
  padding-top: 3rem;
}
.breadcrumbs-content {
  display: contents;
}
@media (max-width: 1024px) {
  .sitemap-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 992px) {
  .header-top {
    padding: 0 1rem;
  }
}
@media (max-width: 768px) {
  .sitemap-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  nav[aria-label="Hauptnavigation"] {
    display: none !important;
  }

  .main-navigation {
    width: 100%;
  }
}

.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;
}

@media (max-width: 768px) {
  .sitemap-section {
    padding: 15px;
  }

  .tag {
    font-size: 12px;
    padding: 3px 8px;
  }

  .container-casa p {
    margin: 0 auto;
    text-align: center;
  }
}

@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;
}

.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;
}
.sitemap-grid{
  margin: 2.5rem 0;
}
@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;
}

.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;
}
.separator, .current{
  color: #fff;
}
.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-size: 17px;
    text-transform: uppercase;
    margin:0 0 15px;
    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-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-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: 50px;
    border-radius: 5%;
    
}

.footer-logo-text {

    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Контейнер для скролла */
.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;
}

/* Добавляет маленькую стрелочку после внешних ссылок */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}
