/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */
/* playfair-display-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: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/playfair-display-v40-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* playfair-display-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: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/playfair-display-v40-latin-700.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+ */
}
:root {
  --color-primary: #1B4332;
  --color-primary-dark: #0D2818;
  --color-accent: #D4A843;
  --color-bg: #FAFAF5;
  --color-surface: #F0EDE8;
  --color-text: #2D2D2D;
  --color-text-secondary: #6B7280;
  --color-border: #E0DDD8;
  --color-success: #2D6A4F;
  --color-danger: #9B2C2C;
  --color-white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --h1-size: clamp(2rem, 4vw, 3.5rem);
  --h2-size: clamp(1.5rem, 3vw, 2.25rem);
  --h3-size: clamp(1.2rem, 2.5vw, 1.5rem);
  --body-size: clamp(1rem, 1.5vw, 1.125rem);
  --caption-size: 0.875rem;

  --content-width: 740px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --sidebar-width: 220px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #52B788;
    --color-primary-dark: #1B4332;
    --color-accent: #D4A843;
    --color-bg: #1A1A1A;
    --color-surface: #252525;
    --color-text: #E5E5E5;
    --color-text-secondary: #9CA3AF;
    --color-border: #333333;
    --color-success: #52B788;
    --color-danger: #FC8181;
    --color-white: #FFFFFF;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block;
max-height: 650px; }

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { opacity: 0.8; }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==========================================================================
   2. General Typography
   ========================================================================== */
h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-top: 1.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
  text-align: left;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-body);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  text-align: left;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25em;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}
li { margin-bottom: 0.4em; }

strong { font-weight: 600; }
em { font-style: italic; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75em 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: var(--caption-size);
}
th, td {
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--color-border);
}
th {
  font-weight: 600;
  background-color: var(--color-surface);
}
tr:hover td { background-color: color-mix(in srgb, var(--color-surface) 50%, transparent); }

figure {
  margin: 2em auto;
  max-width: 100%;
}
figcaption {
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.5em;
}

/* ==========================================================================
   3. Layout — Sidebar TOC Grid on Main
   ========================================================================== */
header {
  position: relative;
  z-index: 10;
}


.container {
    width: 100%; 
    max-width: 1200px; 
    margin: 2rem auto 0; 
    padding: 0 15px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 0 clamp(1.5rem, 3vw, 3rem);
}

.container > [data-content="toc"] {
  grid-column: 1;
  grid-row: 1 / -1;
}

.container > *:not([data-content="toc"]) {
  grid-column: 2;
}

/* Content sections */
[data-content] {
 
  margin-bottom: 2.5rem;
}

[data-content] h2 { margin-bottom: 1em; }
[data-content] h3 { margin: 2em 0 0.75em; }
[data-content] h2 + h3 { margin-top: 1.25em; }

/* Parent sections that contain subsections */
[data-content="uk-racing-landscape"],
[data-content="how-betting-works"],
[data-content="where-to-bet"],
[data-content="betting-strategies-overview"],
[data-content="regulation-and-safety"] {
  margin-bottom: 0;
}

/* Subsections inside parent wrappers */
[data-content="uk-racing-landscape"] [data-content],
[data-content="how-betting-works"] [data-content],
[data-content="where-to-bet"] [data-content],
[data-content="betting-strategies-overview"] [data-content],
[data-content="regulation-and-safety"] [data-content] {
  max-width: none;
  padding: 0;
}

/* ==========================================================================
   4. Components
   ========================================================================== */

/* --- TL;DR --- */
.tldr {
  background-color: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5em 2em;
}
.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75em;
}
.tldr ul { margin-bottom: 0; }
.tldr li {
  font-size: var(--caption-size);
  line-height: 1.6;
  color: var(--color-text);
}

/* --- Info Box --- */
.info-box {
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.info-box p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
.info-box p:last-child { margin-bottom: 0; }

/* --- Callout --- */
.callout {
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  background-color: color-mix(in srgb, var(--color-accent) 6%, var(--color-bg));
  box-shadow: var(--shadow-sm);
}
.callout p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
.callout p:last-child { margin-bottom: 0; }

/* --- Key Takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--color-accent);
  padding-top: 1em;
  margin: 2em 0;
}
.key-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
  text-align: left;
  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 {
  font-style: italic;
  color: var(--color-text-secondary);
  text-align: left;
  margin-bottom: 0;
}

/* --- Glossary Term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 1em 0;
}
.glossary-term strong {
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.glossary-term p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- Dos & Don'ts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin: 1.5em 0;
}
.dos-donts > div:first-child p strong { color: var(--color-success); }
.dos-donts > div:last-child p strong { color: var(--color-danger); }
.dos-donts p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}
.dos-donts ul { margin-bottom: 0; }
.dos-donts li {
  color: var(--color-text);
  font-size: var(--caption-size);
}

/* --- Pre-Bet Checklist --- */
.pre-bet-checklist {
  margin: 1.5em 0;
}
.pre-bet-checklist > p strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--caption-size);
  color: var(--color-accent);
}
.pre-bet-checklist ul {
  border-left: 2px solid var(--color-border);
  padding-left: 2em;
  list-style: none;
}
.pre-bet-checklist li {
  position: relative;
  color: var(--color-text);
  padding: 0.25em 0;
}
.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.75em;
  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(160px, 1fr));
  gap: 0;
  margin: 1.5em 0;
}
.at-a-glance > div {
  padding: 1em 1.25em;
  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 strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  display: block;
  margin-bottom: 0.25em;
}

/* --- Worked Example --- */
.worked-example {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5em 2em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}
.worked-example p {
  text-align: left;
  color: var(--color-text);
  font-family: 'Courier New', var(--font-body);
  font-size: var(--caption-size);
  margin-bottom: 0.5em;
}
.worked-example p:first-child {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.75em;
}
.worked-example p:last-child { margin-bottom: 0; }

/* --- Section Bridge --- */
.section-bridge {
  text-align: center;
  margin: 1.5em 0;
  position: relative;
  padding: 0.5em 2em;
}
.section-bridge::before,
.section-bridge::after {
  content: "\2014\2014";
  color: var(--color-border);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: -0.15em;
}
.section-bridge::before { left: 0; }
.section-bridge::after { right: 0; }
.section-bridge p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 0;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin: 1.5em 0;
}
.card-grid > div {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25em;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-grid > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-grid p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.25em;
}

/* --- Comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin: 1.5em 0;
}
.comparison > div {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25em;
  box-shadow: var(--shadow-sm);
}
.comparison p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

/* --- Odds Example --- */
.odds-example {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.5em 2em;
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
}
.odds-example p {
  text-align: center;
  color: var(--color-bg);
  margin-bottom: 0.5em;
}
.odds-example p:last-child { margin-bottom: 0; }
.odds-example strong { color: var(--color-accent); }

@media (prefers-color-scheme: dark) {
  .odds-example {
    background-color: #1B4332;
    color: #E5E5E5;
  }
  .odds-example p { color: #E5E5E5; }
  .odds-example strong { color: var(--color-accent); }

  .key-takeaway p { color: var(--color-primary); }
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.container-page {
 
  max-width: 1100px;
  padding: 0 15px;

margin: 0 auto;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 38px,
      rgba(255,255,255,0.02) 38px,
      rgba(255,255,255,0.02) 40px
    );
  pointer-events: none;
  opacity: 0.6;
}

[data-content="hero"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 55%, rgba(212,168,67,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
      text-align: center;
    margin: 0 auto;
 
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
}

.hero-badge {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  padding: 0.3em 0.8em;
  border-radius: 3px;
}

.hero-trust {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(212,168,67,0.8);
}

h1 {

  margin-bottom: 0.5em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--caption-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(212,168,67,0.85);
 text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background-color: var(--color-accent);
  padding: 0.65em 1.8em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,168,67,0.3);
  opacity: 1;
}
.hero-cta:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* Hero image */
.hero-image {
  margin: 0 auto;
  max-width: 100%;
}
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Article images */
.article-image {
  margin: 2em auto;
}
.article-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ==========================================================================
   6. TOC — Sticky Sidebar
   ========================================================================== */
[data-content="toc"] {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 1.5rem 1rem 1.5rem 1.5rem;
  margin-bottom: 0;
  max-width: none;
  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-color: var(--color-border); border-radius: 2px; }

.toc-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  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: 500;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 0.15em 0;
  transition: color 0.15s ease;
}
[data-content="toc"] nav > ul > li > a:hover { color: var(--color-primary); }

[data-content="toc"] nav ul ul {
  padding-left: 0.9em;
  margin-top: 0.3em;
  border-left: 1px solid var(--color-border);
}

[data-content="toc"] nav ul ul li { margin-bottom: 0.25em; }

[data-content="toc"] nav ul ul a {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.15em 0 0.15em 0.5em;
  transition: color 0.15s ease;
}
[data-content="toc"] nav ul ul a:hover { color: var(--color-primary); }

/* ==========================================================================
   7. FAQ Accordion
   ========================================================================== */
[data-content="faq"] details {
  border-bottom: 1px solid var(--color-border);
  interpolate-size: allow-keywords;
}

[data-content="faq"] summary {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: 1em 2em 1em 0;
  position: relative;
  list-style: none;
}
[data-content="faq"] summary::-webkit-details-marker { display: none; }
[data-content="faq"] summary::marker { display: none; content: ""; }

[data-content="faq"] summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform 0.25s ease;
}
[data-content="faq"] details[open] summary::after {
  content: "\2212";
  transform: translateY(-50%);
}

[data-content="faq"] details::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;
}
[data-content="faq"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

[data-content="faq"] details div p {
  padding-bottom: 1em;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@supports not selector(::details-content) {
  @keyframes faq-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  [data-content="faq"] details[open] > *:not(summary) {
    animation: faq-fade-in 0.3s ease forwards;
  }
}



/* ==========================================================================
   9. Media Queries
   ========================================================================== */
@media (max-width: 900px) {
  main {
    display: block;
  }

  main > [data-content="toc"] {
    position: static;
    max-height: none;
    overflow-y: visible;
    max-width: var(--content-width);
    padding: 1.5rem;
    margin-bottom: var(--section-gap);
  }

  [data-content="hero"] {
    min-height: clamp(280px, 45vh, 400px);
  }

  .dos-donts { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .glossary-term { flex-direction: column; gap: 4px; }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .at-a-glance > div:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
 

  .hero-inner {
    padding: 2.5rem 1rem 2rem;
  }

  .tldr { padding: 1.25em 1.25em; }
  .worked-example { padding: 1.25em 1.25em; }
}
  
/* ==========================================================================
   Image Styles — UK Betting on Horse Racing Pillar
   ========================================================================== */

/* Hero image */
.hero-image {
  margin: 1.5em auto 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-image figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.75em;
  font-style: italic;
}

/* Article images */
.article-image {
  margin: 2em auto;
  max-width: 100%;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.article-image img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-image figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary, #6B7280);
  margin-top: 0.6em;
  line-height: 1.5;
  font-style: italic;
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
  .hero-image img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .article-image img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0.92;
  }

  .article-image img:hover {
    opacity: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .hero-image {
    margin-top: 1em;
  }

  .hero-image img,
  .article-image img {
    border-radius: 4px;
  }

  .article-image {
    margin: 1.5em auto;
  }
}

@media (max-width: 700px) {
    .container {
        grid-template-columns: 1fr;
        margin-top: 1rem; 
        gap: 0;
    }

    aside {
        /* Полностью скрываем сайдбар */
        display: none;
    }
}

/*  */

.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;

}


.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: 10%;
}

.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 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 {
    margin-left: calc(-2 * var(--space-xl));
    margin-right: calc(-2 * var(--space-xl));
    border-radius: var(--img-radius);
  }

  .site-branding nav {
    background: none;
    border-radius: var(--radius);

    margin-bottom: calc(var(--gap) * 1.5);
    box-shadow: none;
    border: none;
  }
}

header p {
  font-size: var(--font-md);
}
.toc-wrap {
  padding: 1rem;
}

/* .back-to-top {
  bottom: 1rem;
  right: 1rem;
  width: 45px;
  height: 45px;
} */

/* articulos */
.articulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  padding-top: 30px;

  max-width: var(--max-width);
  margin: 0 auto;
}

.articulos-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 0;
}

.articulos-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.articulos-card__image-link img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
  transform: scale(1.08);
}

.articulos-card__content {
  padding: 0 17px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.articulos-card__title {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.6rem;
}
.articulos-card__title a {
  text-decoration: none;
}

.articulos-card__excerpt {
  margin-top: auto;

  margin-bottom: 0;
  color: #6e6e73;
  font-size: 0.95rem;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.articulos-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.articulos-card__link svg {
  transition: transform 0.3s;
}

.articulos-card__link:hover {
  color: #0073aa;
  gap: 12px;
}

.articulos-card__image-link {
  display: block;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  height: 170px;
}

.articulos-card__image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.articulos-card:hover .articulos-card__image-link img {
  transform: scale(1.08);
}

.articulos-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-more-wrapper {
  text-align: center;
  margin: 40px 0;
}

.btn-load-more {
  background-color: #0073aa;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-load-more:hover {
  background-color: #005177;
}

@media (max-width: 559px) {
  .articulos-grid {
    gap: 17px;
  }
  .articulos-card__image-link {
    height: 17rem;
  }
}

@media (max-width: 768px) {
  .sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 5px;
    list-style: none;
    padding: 0;
  }
}

#site-navigation a,
.menu-item a {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.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-col h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    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;
}

.footer-about p{
  font-size: 1rem;
}
