* {
  box-sizing: border-box;
}

/* Story card image placeholder (shown when featuredImage is missing or broken) */
.story-img-placeholder {
  background: linear-gradient(135deg, #004d40 0%, #0a7a65 60%, #b8860b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  user-select: none;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.cta-dark-glass {
  background: rgba(0, 52, 43, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.cta-dark-glass:hover {
  background: rgba(0, 77, 64, 0.94);
  color: #fff !important;
}

a.hover\:bg-primary:hover,
button.hover\:bg-primary:not(:disabled):hover,
a.hover\:bg-primary-container:hover,
button.hover\:bg-primary-container:not(:disabled):hover,
a.hover\:bg-secondary:hover,
button.hover\:bg-secondary:not(:disabled):hover,
a.hover\:bg-tertiary:hover,
button.hover\:bg-tertiary:not(:disabled):hover {
  color: #fff !important;
}

a.hover\:bg-white:hover,
button.hover\:bg-white:not(:disabled):hover,
a.hover\:bg-surface-container:hover,
button.hover\:bg-surface-container:not(:disabled):hover,
a.hover\:bg-surface-container-high:hover,
button.hover\:bg-surface-container-high:not(:disabled):hover,
a.hover\:bg-surface-container-highest:hover,
button.hover\:bg-surface-container-highest:not(:disabled):hover,
a.hover\:bg-surface-container-low:hover,
button.hover\:bg-surface-container-low:not(:disabled):hover,
a.hover\:bg-stone-50:hover,
button.hover\:bg-stone-50:not(:disabled):hover,
a.hover\:bg-stone-100:hover,
button.hover\:bg-stone-100:not(:disabled):hover,
a.hover\:bg-stone-200:hover,
button.hover\:bg-stone-200:not(:disabled):hover,
a.hover\:bg-slate-50:hover,
button.hover\:bg-slate-50:not(:disabled):hover,
a.hover\:bg-slate-100:hover,
button.hover\:bg-slate-100:not(:disabled):hover,
a.hover\:bg-slate-200:hover,
button.hover\:bg-slate-200:not(:disabled):hover {
  color: #00342b !important;
}

a.hover\:bg-secondary-container:hover,
button.hover\:bg-secondary-container:not(:disabled):hover,
a.hover\:bg-primary-fixed:hover,
button.hover\:bg-primary-fixed:not(:disabled):hover,
a.hover\:bg-tertiary-fixed:hover,
button.hover\:bg-tertiary-fixed:not(:disabled):hover {
  color: #00342b !important;
}

body > nav.fixed > div,
body > nav > div {
  width: min(100%, 80rem);
  flex-wrap: wrap;
  gap: 1rem;
}

body > main,
body > header,
body > section,
body > footer {
  width: 100%;
  max-width: 100%;
}

body > div.ml-72,
body > div.ml-80 {
  width: 100%;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  body > div.ml-72,
  body > div.ml-80 {
    margin-left: 0 !important;
  }

  body > div.ml-72 > header > div,
  body > div.ml-80 > header > div {
    flex-wrap: wrap;
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  body > aside {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }

  body > div.ml-72 > main,
  body > div.ml-80 > main {
    padding: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  body > nav.fixed > div,
  body > nav > div {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body > nav .hidden.md\:flex {
    display: none !important;
  }

  body > main,
  body > header,
  body > section,
  body > footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body main > section,
  body main > header,
  body main > .grid,
  body main > .flex {
    width: 100%;
  }

  body main h1,
  body main h2,
  body main h3,
  body main h4 {
    text-wrap: balance;
  }

  body main h1 {
    font-size: clamp(2.25rem, 10vw, 4rem) !important;
    line-height: 1.05 !important;
  }

  body main .grid {
    grid-template-columns: 1fr !important;
  }

  body main .flex {
    flex-wrap: wrap;
  }

  body main #category-filters {
    flex-wrap: nowrap;
  }

  body main .gap-8,
  body main .gap-12,
  body main .gap-16 {
    gap: 1.25rem !important;
  }

  body main .p-8,
  body main .p-10,
  body main .p-12,
  body main .py-20,
  body main .py-24,
  body main .py-32 {
    padding: 1rem !important;
  }

  body main .px-8,
  body main .px-10,
  body main .px-12 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body main .text-5xl,
  body main .text-6xl,
  body main .text-7xl,
  body main .text-\[5rem\],
  body main .text-\[4\.5rem\],
  body main .text-\[3\.5rem\],
  body main .text-\[4rem\] {
    font-size: clamp(2.25rem, 8vw, 3.5rem) !important;
    line-height: 1.08 !important;
  }

  body main .text-4xl,
  body main .text-\[3rem\],
  body main .text-\[2\.5rem\] {
    font-size: clamp(1.875rem, 7vw, 2.75rem) !important;
    line-height: 1.12 !important;
  }

  body main .text-3xl,
  body main .text-\[1\.75rem\] {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  body main h2.text-xs,
  body main h3.text-xs,
  body main [class*="tracking-"].text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
    letter-spacing: 0.12em !important;
  }

  body main .h-\[500px\],
  body main .min-h-\[90vh\] {
    height: auto !important;
    min-height: auto !important;
  }

  body main .aspect-square,
  body main .aspect-video {
    aspect-ratio: 16 / 10;
  }

  body > div.ml-72,
  body > div.ml-80 {
    margin-left: 0 !important;
  }

  body > div.ml-72 footer,
  body > div.ml-80 footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
