/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/oswald-v57-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* oswald-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: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/oswald-v57-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-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 Sans 3';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/source-sans-3-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-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 Sans 3';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/source-sans-3-v19-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* source-sans-3-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 Sans 3';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/source-sans-3-v19-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* jetbrains-mono-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-accent: #2D8C4E;
  --color-accent-hover: #1E6B38;
  --color-bg: #FFFFFF;
  --color-surface: #F8F7F5;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B7280;
  --color-border: #E5E5E5;
  --color-hero-bg: #F0F5EF;
  --color-danger: #DC2626;
  --color-success: #16A34A;
  --color-callout-warning-bg: #FFFBEB;
  --color-callout-warning-border: #D97706;
  --color-callout-tip-bg: #F0F5EF;

  --content-width: 1200px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --content-padding: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #141414;
    --color-surface: #1E1E1E;
    --color-text: #E8E8E8;
    --color-text-secondary: #9CA3AF;
    --color-border: #333333;
    --color-hero-bg: #1A2A1F;
    --color-callout-warning-bg: #2A2418;
    --color-callout-tip-bg: #1A2A1F;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================
   2. General Typography
   ============================================ */
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;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25em;
  color: var(--color-text);
}



a {
  color: var(--color-accent);
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

ul, ol {
  text-align: left;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

li {
  text-align: left;
  margin-bottom: 0.5em;
  line-height: 1.7;
}

blockquote {
  text-align: left;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 16px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

th {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

figcaption {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.75em;
  font-family: var(--font-body);
}

/* ============================================
   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;
}

h2 {
  margin-bottom: 1.25em;
}

h3 {
  margin-bottom: 1em;
}

/* ============================================
   4. Components
   ============================================ */

/* --- info-box --- */
.info-box {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  padding: 24px 28px;
  margin: 1.75em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-box p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 0.75em;
  background-color: var(--color-surface);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box p strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

/* --- odds-example --- */
.odds-example {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px;
  margin: 1.75em 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.odds-example p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  background-color: var(--color-surface);
}

.odds-example p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

.odds-example table {
  margin: 1em 0;
}

.odds-example th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background-color: var(--color-surface);
}

.odds-example td {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-accent);
  background-color: var(--color-surface);
}

.odds-example td:first-child {
  font-family: var(--font-body);
  color: var(--color-text);
}

/* --- callout --- */
.callout {
  border-left: 4px solid var(--color-callout-warning-border);
  background-color: var(--color-callout-warning-bg);
  padding: 20px 24px;
  margin: 1.75em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.callout p {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--color-text);
  text-align: left;
  background-color: var(--color-callout-warning-bg);
}

.callout--tip {
  border-left-color: var(--color-accent);
  background-color: var(--color-callout-tip-bg);
}

.callout--tip p {
  background-color: var(--color-callout-tip-bg);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 1.75em 0;
}

.card-grid > div {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 2px 6px 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 {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  background-color: var(--color-bg);
}

.card-grid > div p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 1.75em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comparison > div {
  background-color: var(--color-surface);
  padding: 24px;
}

.comparison > div p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: center;
  background-color: var(--color-surface);
}

.comparison > div p strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
}

.comparison > div ul {
  list-style: disc;
  padding-left: 1.25em;
}

.comparison > div li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  background-color: var(--color-surface);
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1em;
  margin: 1.75em 0;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
}

/* --- fun-fact --- */
.fun-fact {
  position: relative;
  padding-left: 24px;
  margin: 1.75em 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-size: 17px;
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.5em 0;
}

.glossary-term p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
}

.glossary-term p strong {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-accent);
  text-decoration: underline dotted var(--color-accent);
  text-underline-offset: 3px;
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 1.75em 0;
}

.dos-donts > div {
  padding: 20px;
}

.dos-donts > div:first-child {
  border-top: 3px solid var(--color-success);
}

.dos-donts > div:last-child {
  border-top: 3px solid var(--color-danger);
}

.dos-donts > div p {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 0.75em;
}

.dos-donts > div:first-child p strong {
  color: var(--color-success);
}

.dos-donts > div:last-child p strong {
  color: var(--color-danger);
}

.dos-donts > div ul {
  list-style: none;
  padding-left: 0;
}

.dos-donts > div li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  padding-left: 1.5em;
  position: relative;
  margin-bottom: 0.6em;
}

.dos-donts > div:first-child li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.dos-donts > div:last-child li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-weight: 700;
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.75em 0;
}

.pre-bet-checklist p strong {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.pre-bet-checklist p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  margin-bottom: 1em;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 24px;
  border-left: 2px solid var(--color-border);
}

.pre-bet-checklist li {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 12px;
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -12px;
  color: var(--color-accent);
  font-size: 16px;
  background-color: var(--color-bg);
  padding: 0 2px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 1.75em 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.at-a-glance > div {
  padding: 20px 24px;
  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);
  font-family: var(--font-body);
  font-size: 16px;
}

.at-a-glance > div p strong {
  font-family: var(--font-display);
  font-size: 22px;
  display: block;
  margin-bottom: 0.25em;
  color: var(--color-text);
}

/* --- worked-example --- */
.worked-example {
  background-color: var(--color-surface);
  padding: 32px;
  margin: 1.75em 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.worked-example p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  background-color: var(--color-surface);
}

.worked-example p strong {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-text);
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}

.worked-example .result {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 2em 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
}

.section-bridge::before,
.section-bridge::after {
  content: '\2014\2014';
  display: inline-block;
  margin: 0 0.75em;
  color: var(--color-border);
}

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: var(--color-hero-bg);
  padding: 12px 0 80px ;
  text-align: center;
  position: relative;
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-hero-bg), var(--color-bg));
  pointer-events: none;
}

.hero-rubrique {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  display: block;
  margin: 1.6rem 0;
}

[data-content="hero"] h1 {
  max-width: 900px;
  margin: 0 auto 1em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5em;
  text-align: center;
  line-height: 1.6;
}

.hero-divider {
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
  border: none;
  margin: 0 auto 1.5em;
}

.hero-meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 2em;
}

.hero-meta .badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 0.75em;
}

[data-content="hero"] figure {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

[data-content] figure {
  margin: 1.75em auto;
  max-width: 100%;
}

/* ============================================
   6. TOC (2-column grid)
   ============================================ */
[data-content="toc"] {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 30px;
}

.toc-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 1.25em;
}

.toc-list {
  column-count: 2;
  column-gap: 2.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list > li {
  break-inside: avoid;
  margin-bottom: 1em;
}

.toc-list > li > a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.toc-list > li > a:hover {
  color: var(--color-accent);
}

.toc-sublist {
  list-style: none;
  padding: 0.35em 0 0 1em;
  margin: 0;
}

.toc-sublist li {
  margin-bottom: 0.3em;
}

.toc-sublist a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-sublist a:hover {
  color: var(--color-accent);
}

/* ============================================
   7. FAQ Accordion
   ============================================ */
details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  padding: 1.25em 2em 1.25em 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  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: 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-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 p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  text-align: left;
  padding-bottom: 1.25em;
}

@supports not selector(::details-content) {
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
}

/* ============================================
   8. Start Reading Button
   ============================================ */
.btn-start {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-bg);
  background-color: var(--color-accent);
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-start:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn-start:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}




/* ============================================
   10. Media Queries
   ============================================ */
@media (max-width: 768px) {
  .toc-list {
    column-count: 1;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}



/* ============================================
   Images Styles — Bookmaker Foot Pillar
   ============================================ */

/* Hero image */
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Article images */
.article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.article-image:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Figure containers inside data-content sections */
[data-content] figure {
  margin: 2em auto;
  max-width: 100%;
}

/* Figcaption styling */
[data-content] figcaption {
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 14px;
  color: var(--color-text-secondary, #6B7280);
  text-align: center;
  margin-top: 0.75em;
  line-height: 1.5;
}

/* Hero figure — no extra margin */
[data-content="hero"] figure {
  margin-top: 0;
  margin-bottom: 0;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .hero-image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }

  .article-image {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  .article-image:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-image {
    border-radius: 4px;
  }

  .article-image {
    border-radius: 4px;
  }

  [data-content] figure {
    margin: 1.5em auto;
  }
}


/* =========================== */

.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);
}

/*  */

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;
}






.burger-logo {
	margin: 0;
	padding: 0;
}



.logo-wrapper {
	flex-wrap: nowrap !important;
	;
	display: flex !important;
	align-items: center !important;

	text-decoration: none;
}



.main-logo-img {

	max-height: 45px;
	width: auto;
	flex-shrink: 0;
}


.logo-text {
	color: inherit;
	white-space: nowrap;
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: capitalize;

}


.logo-wrapper {
	display: flex !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	column-gap: 0.5rem !important;
}

/* --- HEADER & LOGO --- */
.header-top {
    position: relative;
    display: grid;
    padding: 0 20px;
    min-height: 70px;
    background: var(--color-accent);
    z-index: 1001;
    color: #fff;
}

.logo-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    text-decoration: none !important;
    color: #fff !important;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
}

/* --- DESKTOP MENU (993px+) --- */
@media (min-width: 993px) {
    .js-burger { display: none ; }

    .main-navigation { display: block ; }
    .main-navigation ul{
      margin-bottom: 0;
    }
    .main-navigation li{
      margin-bottom: 0;
    }
    .main-menu {
        display: flex;
        gap: 20px;
        list-style: none;
    }

    .main-menu a {
        color: #fff ;
        font-weight: 600;
        text-decoration: none t;
        
    }
    .main-menu a:hover {
        color: var(--color-callout-warning-border);
     
        
    }

    .menu-item-has-children { position: relative; }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
         background: var(--color-accent);
        min-width: 220px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none;
        padding: 10px 0;
        border-radius: 4px;
        list-style: none;
    }

    .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .sub-menu a {
        color: #fff;
        display: block;
        padding: 8px 20px;
        font-size: 14px;
    }

    .sub-menu a:hover { background: #f5f5f5; }

    .menu-item__inner {
      display: flex;
      align-items: center;
    }
}

/* --- MOBILE MENU (до 992px) --- */
@media (max-width: 992px) {
    .js-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }

    .burger-line {
        width: 30px;
        height: 3px;
        background-color: #fff;
        transition: 0.3s;
    }

    /* Мобильная навигация */
    .main-navigation {
        position: fixed !important;
        top: 0;
        right: -100% !important; 
        width: 300px;
        height: 100vh;
        background: var(--color-accent);
        padding: 80px 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        display: block !important;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0 !important; /* Показываем */
    }

    .main-menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .main-menu a {
        color: #fff !important;
        font-size: 1.2rem;
        font-weight: 600;
        display: block;
    }

    /* Выпадающее меню в мобилке */
    .sub-menu {
        display: none !important; /* Скрыто по умолчанию */
        padding-left: 20px;
        margin-top: 10px;
        border-left: 2px solid var(--color-primary);
    }

    /* Когда открыто через JS класс .is-open */
    .menu-item-has-children.is-open > .sub-menu {
        display: block !important;
    }
}

.header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Оверлей (затемнение фона) */
body.has-overlay::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.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: 1rem 0 2.5rem;
	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;
	}


}

.sitemap-list li {
	margin-bottom: 8px;
	padding-left: 15px;
	position: relative;
}



.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;
	}
}



@media (max-width: 1100px) {
	.site-titlecontainer-casa {
		/* margin-top: 3rem; */
	}

	.wide-image-container {
		margin-left: calc(-2 * var(--space-xl));
		margin-right: calc(-2 * var(--space-xl));
		border-radius: var(--img-radius);
	}


	.site-branding nav {

		background: none;
		border-radius: var(--radius);

		margin-bottom: calc(var(--gap) * 1.5);
		box-shadow: none;
		border: none;
	}



}


header p {
	font-size: var(--font-md);

}

.toc-wrap {
	padding: 1rem;

}



.back-to-top {
	bottom: 1rem;
	right: 1rem;
	width: 45px;
	height: 45px;
}




/* articulos */
.articulos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 32px;
	padding-top: 30px;

	max-width: var(--max-width);
	margin: 0 auto;
}

.articulos-card {
	background: #ffffff;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	border: 1px solid rgba(0, 0, 0, 0.03);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	padding: 0;
}

.articulos-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}


.articulos-card__image-link img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
	transform: scale(1.08);
}

/* Контент */


.articulos-card__content {
	padding: 0 17px 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;

}

.articulos-card__title {
	margin-top: 10px;
	font-size: 1rem;
	line-height: 1.3;
	font-weight: 700;

	display: -webkit-box;
	-webkit-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-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 --- */
footer {

  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--color-border, #E0DDD5);
}

footer p {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--color-text-secondary, #6B6B6B);
 
}


.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: 'Source Serif 4', serif; 
    margin-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 2px;
}

.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: 68px;
   
    
}

.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-bottom: 1rem;
}


.table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px; 
}

.table-container th, 
.table-container td {
    padding: 10px;
    border: 1px solid #747474;
    text-align: center;
    white-space: nowrap; 
}

.table-container th {
    background-color: #f8f9fa;
    font-weight: bold;
}
