/**
 * Theme Name: sportnieuws
 * Version: 1.0
 */

 /* 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-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+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =============================================
   1. CSS Variables & Reset
   ============================================= */
:root {
  --color-bg: #F4F5F7;
  --color-text: #1A1F2E;
  --color-text-secondary: #6B7280;
  --color-accent: #00D26A;
  --color-accent-amber: #FFB800;
  --color-surface: #FFFFFF;
  --color-border: #D1D5DB;
  --color-hero-start: #1A1F2E;
  --color-hero-end: #0F1420;
  --color-hero-text: #FFFFFF;
  --color-hero-meta: rgba(255,255,255,0.6);
  --color-success: #00D26A;
  --color-danger: #EF4444;
  --color-fun-fact: #7C3AED;
  --color-info-bg: #E8F4FD;
  --color-info-border: #90CAF9;

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --h1-size: clamp(2rem, 4vw, 3.25rem);
  --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: 1100px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-padding: clamp(1.25rem, 3vw, 2rem);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F1420;
    --color-text: #E5E7EB;
    --color-text-secondary: #9CA3AF;
    --color-surface: #1A1F2E;
    --color-border: #374151;
    --color-hero-start: #0B0E18;
    --color-hero-end: #060810;
    --color-info-bg: #1A2332;
    --color-info-border: #2D4A6F;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  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; object-fit: cover;}

/* =============================================
   2. General Typography
   ============================================= */
p {
  text-align: left;
  margin-bottom: 1.25em;
}

h2 {
  font-family: var(--font-primary);
  font-size: var(--h2-size);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  color: var(--color-text);
  margin-bottom: 1em;
  scroll-margin-top: 2rem;
}

h3 {
  font-family: var(--font-primary);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--color-text);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  scroll-margin-top: 2rem;
}

ul, ol {
  text-align: left;

  
}



strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  text-align: left;
  border-left: 3px solid var(--color-accent);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  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;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--caption-size);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--color-hero-start);
  color: var(--color-hero-text);
}

th {
  padding: 0.75em 1em;
  font-weight: 600;
  text-align: left;
  font-size: var(--caption-size);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

td {
  padding: 0.75em 1em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.02);
}

@media (prefers-color-scheme: dark) {
  tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
  }
}

/* =============================================
   3. Layout — data-content sections
   ============================================= */
main {
  width: 100%;
}

.container{
  max-width: var(--content-width);
 margin: 0 auto;
  padding: 0 15px;
  
}

figure {
  margin: 1.5em auto;
  max-width: 100%;
}

figcaption {
  text-align: center;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  margin-top: 0.5em;
}

.hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

/* =============================================
   4. Components
   ============================================= */

/* --- info-box --- */
.info-box {
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius-md);
  padding: var(--component-padding);
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
}

.info-box p:last-child { margin-bottom: 0; }

/* --- odds-example --- */
.odds-example {
  background: var(--color-hero-start);
  color: var(--color-hero-text);
  border-radius: var(--radius-md);
  padding: var(--component-padding);
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.odds-example p {
  text-align: center;
  color: var(--color-hero-text);
  margin-bottom: 0.75em;
}

.odds-example p:last-child { margin-bottom: 0; }

.odds-example strong {
  color: var(--color-accent);
}

@media (prefers-color-scheme: dark) {
  .odds-example {
    background: #0B0E18;
    color: #E5E7EB;
  }
  .odds-example p { color: #E5E7EB; }
  .odds-example strong { color: var(--color-accent); }
}

/* --- callout --- */
.callout {
  border-left: 4px solid var(--color-accent-amber);
  background: var(--color-surface);
  padding: var(--component-padding);
  margin: 1.5em 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.callout p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
}

.callout p:last-child { margin-bottom: 0; }

/* --- card-grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5em 0;
}

.card-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--component-padding);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-grid p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.card-grid h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5em;
}

/* --- comparison --- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5em 0;
}

.comparison > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--component-padding);
  box-shadow: var(--shadow-sm);
}

.comparison p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.comparison h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

@media (max-width: 600px) {
  .comparison { grid-template-columns: 1fr; }
}

/* --- tldr --- */
.tldr {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--component-padding);
  margin: 1.5em auto;
  box-shadow: var(--shadow-sm);
}

.tldr h2 {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.75em;
  color: var(--color-text);
}

.tldr ul {
  text-align: left;
  padding-left: 1.25em;
  margin-bottom: 0;
}

.tldr li {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.6em;
}

.tldr li: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 {
  text-align: left;
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  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-fun-fact);
  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: 1em 0;
}

.glossary-term dt {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  font-size: var(--body-size);
}

.glossary-term dd {
  font-family: var(--font-primary);
  color: var(--color-text-secondary);
  font-size: var(--body-size);
}

@media (max-width: 600px) {
  .glossary-term { flex-direction: column; gap: 4px; }
}

/* --- dos-donts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5em 0;
}

.dos-donts > div {
  padding: var(--component-padding);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.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 h3 {
  margin-top: 0;
  font-size: 1rem;
}

.dos-donts > div:first-child h3 { color: var(--color-success); }
.dos-donts > div:last-child h3 { color: var(--color-danger); }

.dos-donts p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.5em;
}

.dos-donts ul {
  text-align: left;
  padding-left: 1.25em;
}

.dos-donts li {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.4em;
}

@media (max-width: 600px) {
  .dos-donts { grid-template-columns: 1fr; }
}

/* --- pre-bet-checklist --- */
.pre-bet-checklist {
  margin: 2em 0;
}

.pre-bet-checklist h3 {
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--caption-size);
  color: var(--color-accent);
  margin-top: 0;
  margin-bottom: 1em;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.5em;
  border-left: 2px solid var(--color-border);
  text-align: left;
}

.pre-bet-checklist li {
  position: relative;
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  text-align: left;
  color: var(--color-text);
}

.pre-bet-checklist li::before {
  content: "\2610";
  position: absolute;
  left: -1.5em;
  top: 0;
  color: var(--color-accent);
  background: var(--color-bg);
  padding: 0 2px;
  font-size: 1em;
}

/* --- at-a-glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 1.5em 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.at-a-glance > div {
  padding: var(--component-padding);
  text-align: center;
  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;
  font-size: var(--caption-size);
}

.at-a-glance p:first-child {
  text-align: center;
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25em;
}

@media (max-width: 700px) {
  .at-a-glance {
    grid-template-columns: 1fr 1fr;
  }
  .at-a-glance > div:nth-child(2) { border-right: none; }
  .at-a-glance > div:nth-child(1),
  .at-a-glance > div:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 420px) {
  .at-a-glance { grid-template-columns: 1fr; }
  .at-a-glance > div { border-right: none; border-bottom: 1px solid var(--color-border); }
  .at-a-glance > div:last-child { border-bottom: none; }
}

/* --- worked-example --- */
.worked-example {
  background: var(--color-surface);
  padding: calc(var(--component-padding) * 1.25);
  border-radius: var(--radius-md);
  margin: 1.5em 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.worked-example p {
  text-align: left;
  color: var(--color-text);
  margin-bottom: 0.75em;
  font-family: var(--font-mono);
  font-size: var(--caption-size);
}

.worked-example hr {
  border: none;
  border-top: 1px dashed var(--color-border);
  margin: 1em 0;
}

.worked-example .result {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-primary);
}

/* --- section-bridge --- */
.section-bridge {
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-primary);
  font-size: var(--body-size);
  margin: 1.5em 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
}

.section-bridge::before,
.section-bridge::after {
  content: "";
  display: block;
  width: 2em;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
}

/* --- quote-stat --- */
.quote-stat {
  text-align: center;
  margin: 2em 0;
  padding: 1.5em 0;
}

.quote-stat p:first-child {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.25em;
}

.quote-stat p:last-child {
  text-align: center;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* =============================================
   5. Hero Section
   ============================================= */
[data-content="hero"] {
  max-width: none;
  padding: 0 0 1rem;

  background: linear-gradient(170deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  position: relative;
  overflow: hidden;
}

[data-content="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 0 0;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.hero-date {
  font-size: var(--caption-size);
  color: var(--color-hero-meta);
  background: rgba(255,255,255,0.08);
  padding: 0.3em 0.75em;
  border-radius: var(--radius-sm);
  font-weight: 400;
}

.hero-trust {
  font-size: 0.75rem;
  color: var(--color-hero-meta);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

[data-content="hero"] h1 {
  font-family: var(--font-primary);
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-hero-text);
  text-align: center;
  margin-bottom: 1em;
}

[data-content="hero"] figure {
  margin: 0 auto;
  max-width: 100%;
}

[data-content="hero"] .hero-image {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

[data-content="hero"] figcaption {
  color: var(--color-hero-meta);
  margin-top: 0.75em;
}

.hero-start-reading {
  display: inline-block;
  margin-top: 2em;
  padding: 0.75em 1.75em;
  background: var(--color-accent);
  color: var(--color-hero-start);
  font-weight: 700;
  font-size: var(--caption-size);
  text-decoration: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-align: center;
}

.hero-start-reading:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* =============================================
   6. TOC — Compact Horizontal Strip
   ============================================= */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

.toc-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  font-weight: 600;
  margin-bottom: 0.75em;
}

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-strip li { margin: 0; }

.toc-strip a {
  display: inline-block;
  padding: 0.4em 0.9em;
  font-size: var(--caption-size);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.toc-strip a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-hero-start);
}

/* =============================================
   7. FAQ Accordion
   ============================================= */
details {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--body-size);
  color: var(--color-text);
  list-style: none;
  transition: color 0.2s ease;
}

summary::-webkit-details-marker { display: none; }
summary::marker { display: none; content: ""; }

summary::after {
  content: "+";
  font-size: 1.25em;
  font-weight: 300;
  color: var(--color-text-secondary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1em;
}

details[open] summary::after {
  transform: rotate(45deg);
}

summary:hover { color: var(--color-accent); }

summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modern accordion animation */
details {
  interpolate-size: allow-keywords;
}

::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease;
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  @keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  details[open] > *:not(summary) {
    animation: fade-in 0.3s ease forwards;
  }
}

details > div > p {
  text-align: left;
  color: var(--color-text);
  padding-bottom: 1em;
}

/* =============================================
   8. Header & Footer
   ============================================= */

footer {
 
  margin: 0 auto;
  padding: 2rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

/* =============================================
   9. Back to Top
   ============================================= */
.back-to-top {
  display: inline-block;
  font-size: var(--caption-size);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  padding: 0.5em 0;
}

.back-to-top:hover { color: var(--color-accent); }

/* =============================================
   10. Media Queries
   ============================================= */
@media (max-width: 768px) {


  table {
    font-size: 0.8rem;
  }


}

@media (max-width: 480px) {
  :root {
    --section-gap: 2.5rem;
  }
}
/* =============================================
   Images Styles — Handball WM 2027 Pillar
   ============================================= */

/* --- Hero Image --- */
[data-content="hero"] figure {
  margin: 0 auto;
  max-width: 100%;
}

[data-content="hero"] .hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

[data-content="hero"] figcaption {
  text-align: center;
  font-size: var(--caption-size, 0.875rem);
  color: var(--color-hero-meta, rgba(255, 255, 255, 0.6));
  margin-top: 0.75em;
}

/* --- Article Images --- */
figure {
  margin: 2em auto;
  max-width: 100%;
}

.article-image {
  width: 100%;

  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04));
  aspect-ratio: 800 / 450;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

figcaption {
  text-align: center;
  font-size: var(--caption-size, 0.875rem);
  color: var(--color-text-secondary, #6B7280);
  margin-top: 0.6em;
  line-height: 1.4;

  margin-left: auto;
  margin-right: auto;
}

/* --- Dark Mode Adjustments --- */
@media (prefers-color-scheme: dark) {
  .article-image {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15);
  }

  .article-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  [data-content="hero"] .hero-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  figure {
    margin: 1.5em auto;
  }

  .article-image {
    border-radius: var(--radius-sm, 4px);
  }

  figcaption {
    font-size: 0.8rem;
   
  }
}

@media (max-width: 480px) {
  [data-content="hero"] .hero-image {
    border-radius: var(--radius-md, 8px);
  }
}

/*  */

img {
	width: 100%;
	object-fit: cover;
	max-height: 700px;
}

.wp-block-image img {

	margin-bottom: 2rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 3rem;
	list-style: none;
	font-size: 1.1rem;
}


.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;
  
    padding: 12px 20px;
    min-height: 70px;
    background: #0F1420;
    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 !important; }

    .main-navigation { display: block !important; }

    .main-menu {
        display: flex;
        gap: 20px;
        list-style: none;
    }

    .main-menu a {
        color: #fff !important;
        font-weight: 600;
        text-decoration: none !important;
  
    }

    .menu-item-has-children { position: relative; }

    .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 220px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        display: none;
        padding: 10px 0;
        border-radius: 4px;
    }

    .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .sub-menu a {
        color: #333 !important;
        display: block;
        padding: 8px 20px;
        font-size: 14px;
    }

    .sub-menu a:hover { background: #f5f5f5; }
}

    .post-thumbnail {
      margin: 2rem auto 1rem;
    }
/* --- 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: #1e293b !important; /* Темный фон для мобилки */
        padding: 80px 44px;
        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;
}
.entry-content{
  margin-top: 2rem;
}
.container-casa p {
	text-align: center;
color: #fff;
	max-width: 700px;
	margin: 0 auto 1rem;
}
.separator, .current {
  color: #fff;
}
.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;
  flex-wrap: wrap;
	align-items: center;
  margin: 2rem 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: 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) {
	

	.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;
	}
   .main-navigation {
        width: 100%;
      
    }

}

@media (max-width: 768px) {
	.sitemap-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 5px;
		list-style: none;
		padding: 0;
	}
}

#site-navigation a,
.menu-item a {
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}



footer p{
  color: #ccc;
}
.site-footer {
    background: linear-gradient(170deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
    color: #ffffff;
    padding: 60px 0 30px;

    margin-top: 2.5rem;
}
.sitemap-grid{
  padding: 2rem 0;
  margin: 3rem 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
   font-size: 17px;
    text-transform: uppercase;
    margin:0 0 15px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-logo {
 
    font-size: 20px;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.safety-icons {
    display: flex;
    gap: 15px;
   
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo-container img {
   
    height: auto;
    display: block;
    margin-bottom: 20px;
   max-width: 65px;
    border-radius: 10px;
    
    
}
.footer-grid{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-logo-text {

    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    color: #0073aa; 
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.footer-disclaimer p{
  text-align: center;
  margin: 1.5rem 0;
}

/* Контейнер для скролла */
.table-container {
    width: 100%;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
section,
h2[id], 
h3[id], 
[data-content] {
    scroll-margin-top: 80px;
}

.back-to-top {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 44px;
	height: 44px;
	background: var(--color-accent);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition), transform var(--transition);
	z-index: 100;
}

.back-to-top.visible {
	opacity: 1;
	visibility: visible;
}

.back-to-top:hover {
	transform: translateY(-3px);
	background: var(--c-primary);
}

.back-to-top svg {
	width: 20px;
	height: 20px;
}

/* Добавляет маленькую стрелочку после внешних ссылок */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}