/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

 /* jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/jetbrains-mono-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

 /* bebas-neue-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: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/bebas-neue-v16-latin-regular.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+ */
}
/* 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-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: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ============================================
   1. CSS Variables & Reset
   ============================================ */
:root {
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --color-bg: #FAFAFA;
  --color-text: #1A1A1A;
  --color-text-secondary: #666666;
  --color-accent: #00A86B;
  --color-border: #E0E0E0;
  --color-surface: #F5F5F5;

  --color-info-bg: #F0F7F4;
  --color-callout-bg: #FFF8E6;
  --color-callout-border: #F5D062;
  --color-success: #00A86B;
  --color-danger: #DC3545;

  --content-width: 1000px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --body-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --h1-size: clamp(2.8rem, 2rem + 4vw, 5rem);
  --h2-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --h3-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text: #E8E8E8;
    --color-text-secondary: #A0A0A0;
    --color-accent: #2BD88A;
    --color-border: #333333;
    --color-surface: #1E1E1E;
    --color-info-bg: #1A2E24;
    --color-callout-bg: #2A2618;
    --color-callout-border: #8A7A30;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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;
}

/* ============================================
   2. General Typography
   ============================================ */
p {
  text-align: left;
  margin-bottom: 1.25em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: left;
  margin-bottom: 0.6em;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  margin-bottom: 0.5em;
  scroll-margin-top: 2rem;
}

ul, ol {

  margin-bottom: 1.25em;
  text-align: left;
}

li {
  margin-bottom: 0.4em;
  text-align: left;
}

strong {
  font-weight: 600;
}

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;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: left;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95em;
}

th, td {
  padding: 0.6em 0.8em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

hr {
  border: none;
  border-top: 1px solid 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;

}

figure {
  margin: 1.5em 0;
  text-align: center;
}

figcaption {
  font-size: 0.85em;
  color: var(--color-text-secondary);
  margin-top: 0.5em;
  text-align: center;
}

.hero-image,
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.article-image {
  border-radius: 4px;
}

/* ============================================
   4. Components
   ============================================ */

/* --- info-box --- */
.info-box {
  background: var(--color-info-bg);
  border-left: 4px solid var(--color-accent);
  padding: 20px 24px;
  border-radius: 0;
  margin: 1.5em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.info-box p {
  text-align: left;
  font-size: 1.0625rem;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--color-text);
}

/* --- odds-example --- */
.odds-example {
  background: #1A1A1A;
  color: #E8E8E8;
  padding: 24px 32px;
  border-radius: 8px;
  margin: 1.5em 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.odds-example p {
  text-align: center;
  color: #E8E8E8;
  margin-bottom: 0.6em;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.odds-example p:first-child {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
}

.odds-example p:nth-child(2) {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.odds-example p:last-child {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #A0A0A0;
  text-align: center;
}

.odds-example strong {
  color: #E8E8E8;
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0A0A0A;
    color: #E8E8E8;
  }
  .odds-example p {
    color: #E8E8E8;
  }
  .odds-example p:last-child {
    color: #888888;
  }
  .odds-example strong {
    color: #E8E8E8;
  }
}

/* --- callout --- */
.callout {
  background: var(--color-callout-bg);
  border: 1px solid var(--color-callout-border);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 1.5em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.callout p {
  text-align: left;
  font-size: 0.9375rem;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--color-text);
}

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 1.5em 0;
}

.card-grid > div {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  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);
  margin-bottom: 0.5em;
}

.card-grid p:last-child {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.card-grid strong {
  color: var(--color-text);
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.5em 0;
}

.comparison > div {
  background: var(--color-surface);
  padding: 20px;
  border-radius: 8px;
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.comparison strong {
  color: var(--color-text);
}

@media (max-width: 600px) {
  .comparison {
    grid-template-columns: 1fr;
  }
}

/* --- key-takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-text);
  padding-top: 16px;
  margin: 2em 0;
  max-width: 80%;
}

.key-takeaway p {
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 0;
}

/* --- 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-accent);
  font-weight: 700;
}

.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- glossary-term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1.5em 0;
}

.glossary-term p {
  text-align: left;
  margin-bottom: 0;
  color: var(--color-text);
}

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 1.5em 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.dos-donts > div:first-child {
  background: color-mix(in srgb, var(--color-success) 8%, var(--color-bg));
  padding: 20px;
  border-right: 1px solid var(--color-border);
}

.dos-donts > div:last-child {
  background: color-mix(in srgb, var(--color-danger) 8%, var(--color-bg));
  padding: 20px;
}

.dos-donts p {
  text-align: left;
  margin-bottom: 0.75em;
  color: var(--color-text);
}

.dos-donts > div:first-child > p > strong {
  color: var(--color-success);
}

.dos-donts > div:last-child > p > strong {
  color: var(--color-danger);
}

.dos-donts ul {
  list-style: none;
  padding-left: 1.5em;
}

.dos-donts > div:first-child li {
  text-align: left;
  color: var(--color-text);
}

.dos-donts > div:first-child li::before {
  content: '\2713 ';
  color: var(--color-success);
  font-weight: 700;
  margin-left: -1.5em;
  display: inline-block;
  width: 1.5em;
}

.dos-donts > div:last-child li {
  text-align: left;
  color: var(--color-text);
}

.dos-donts > div:last-child li::before {
  content: '\2717 ';
  color: var(--color-danger);
  font-weight: 700;
  margin-left: -1.5em;
  display: inline-block;
  width: 1.5em;
}

@media (max-width: 600px) {
  .dos-donts {
    grid-template-columns: 1fr;
  }
  .dos-donts > div:first-child {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 1.5em 0;
}

.pre-bet-checklist > p {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75em;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.75em;
  border-left: 2px solid var(--color-border);
  margin-bottom: 0;
}

.pre-bet-checklist li {
  position: relative;
  text-align: left;
  padding: 0.4em 0;
  color: var(--color-text);
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.6em;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 4px 4px;
  margin: 1.5em 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.at-a-glance > div {
  padding: 16px;
  border-right: 1px solid var(--color-border);
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance p {
  text-align: center;
  color: var(--color-text);
  margin-bottom: 0.25em;
}

.at-a-glance p:first-child {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.at-a-glance p:last-child {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }
  .at-a-glance > div:nth-child(2) {
    border-right: none;
  }
  .at-a-glance > div {
    border-bottom: 1px solid var(--color-border);
  }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 8px;
  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);
  margin-bottom: 0.75em;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.worked-example p:first-child {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-align: left;
}

.worked-example p:last-child {
  margin-bottom: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.worked-example strong {
  color: var(--color-text);
}

.worked-example hr {
  border-top-style: dashed;
  margin: 1em 0;
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  margin: 48px 0;
}

.section-bridge p {
  text-align: center;
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
  display: inline-block;
}

.section-bridge p::before {
  content: '\2014\00a0';
  color: var(--color-border);
}

.section-bridge p::after {
  content: '\00a0\2014';
  color: var(--color-border);
}

/* ============================================
   5. Hero Section
   ============================================ */
[data-content="hero"] {
  max-width: 100%;
  width: 100vw;


  text-align: center;
  background-color: #FAFAFA;
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(0, 168, 107, 0.12) 0%, transparent 50%),
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(0, 0, 0, 0.02) 40px,
      rgba(0, 0, 0, 0.02) 42px
    );
  position: relative;
}

[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;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] {
    background-color: #121212;
    background-image:
      radial-gradient(ellipse at 70% 30%, rgba(43, 216, 138, 0.08) 0%, transparent 50%),
      repeating-linear-gradient(
        135deg,
        transparent,
        transparent 40px,
        rgba(255, 255, 255, 0.02) 40px,
        rgba(255, 255, 255, 0.02) 42px
      );
  }
  [data-content="hero"]::after {
    background: linear-gradient(to bottom, transparent, #121212);
  }
}

.hero-rubric {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

[data-content="hero"] h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--color-text);
  max-width: 1000px;
  margin: 1rem auto ;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 760px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.hero-meta {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-meta time {
  display: inline;
}

.updated-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 3px;
  padding: 2px 8px;
}

[data-content="hero"] figure {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

[data-content="hero"] figcaption {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  text-align: center;
}

/* ============================================
   6. TOC — Compact Horizontal Strip
   ============================================ */
[data-content="toc"] {
  max-width: 100%;
  width: 100vw;

  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--section-gap);
  background: var(--color-surface);
}

[data-content="toc"] nav {
  max-width: var(--content-width);
  margin: 0 auto;
}

[data-content="toc"] .toc-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  text-align: left;
}

[data-content="toc"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

[data-content="toc"] li {
  margin: 0;
}

[data-content="toc"] a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.3em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

[data-content="toc"] a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  opacity: 1;
}

[data-content="toc"] a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* ============================================
   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: 1rem;
  padding: 1em 2em 1em 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--color-text);
  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: 1.2em;
  font-weight: 400;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: '\2212';
}

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 {
  text-align: left;
  color: var(--color-text);
  padding-bottom: 1em;
}

@supports not selector(::details-content) {
  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease;
  }
}



/* ============================================
   9. Media Queries
   ============================================ */
@media (max-width: 768px) {
 

  [data-content="toc"] ul {
    gap: 0.3rem;
  }

  [data-content="toc"] a {
    font-size: 0.75rem;
    
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   Images Styles — Greyhound Odds Checker
   ============================================ */

/* Hero image */
.hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;

 
}

/* Body images */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;

  object-fit: cover;
}

/* Figure wrapper */
figure {
  margin: 1.5em 0;
  text-align: center;
}

figcaption {
  font-size: 0.85em;
  color: var(--color-text-secondary, #666666);
  margin-top: 0.5em;
  text-align: center;
  line-height: 1.4;
}

/* Hero section figure override */
[data-content="hero"] figure {

  margin: 0 auto;
  position: relative;
  z-index: 1;
}

[data-content="hero"] figcaption {
  font-size: 0.8rem;
  color: var(--color-text-secondary, #666666);
  margin-top: 0.75rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-image {
    border-radius: 8px;
  }

  .article-image {
    border-radius: 2px;
  }
}


/*  */

.wp-block-image img {
  margin-bottom: 2rem;
}

.footer-menu {
  list-style: none;
}

.container-casa {

  text-align: center;
  padding-top: 3rem;
}
.home .container-casa {
padding-top: 6rem;

}
.container-casa p {
  margin: 2.5rem auto;
  text-align: center;
}

.main-logo a {
  color: var(--color-text);
  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: 50%;
}

.logo-text {
  color: var(--color-text);
  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: var(--color-text);
  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: var(--color-text);
  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: var(--c-primary);
}

.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;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem 0;
  gap: 0.8rem;
}
.breadcrumbs-content {
  display: contents;
}
@media (max-width: 1024px) {
  .sitemap-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 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 {
 
    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;
}

.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;
}

.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-about p{
  line-height: 1.4;
}
.footer-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    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 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: 50px;
    border-radius: 50%;
    
}

.footer-logo-text {

    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
h2[id], 
h3[id], 
[data-content] {
    scroll-margin-top: 80px;
}

/* ========================================
   Images Styles for Tennis Wedden Pillar
   ======================================== */

/* Hero Image */
.hero-image {
  width: 100%;
  
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image figcaption {
  font-size: 0.875rem;
  color: var(--color-text-secondary, #4A4A4A);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Article Images */
.article-image {
  margin: 2rem auto;
  max-width: 100%;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-image figcaption {
  font-size: 0.8125rem;
  color: var(--color-text-secondary, #4A4A4A);
  text-align: center;
  margin-top: 0.625rem;
  font-style: italic;
  line-height: 1.5;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .hero-image img,
  .article-image img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .hero-image figcaption,
  .article-image figcaption {
    color: var(--color-text-secondary, #B0B0B0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-image {
    
    max-width: calc(100% + 2 * var(--content-padding, 1rem));
  }
  
  .hero-image img {
    border-radius: 0;
  }
  
  .article-image {
    margin: 1.5rem 0;
  }
  
  .article-image figcaption,
  .hero-image figcaption {
    padding: 0 var(--content-padding, 1rem);
  }
}




/* Loading state placeholder */
.hero-image img,
.article-image img {
  background-color: var(--color-bg-alt, #F0F0F0);
}

@media (prefers-color-scheme: dark) {
  .hero-image img,
  .article-image img {
    background-color: var(--color-bg-alt, #252525);
  }
}
