/* =========================================================
   EL ESPEJO DEL FUEGO - STYLE SYSTEM
   Estructura:
   1) Base / Reset
   2) Tipografía
   3) Layout general
   4) Navbar y dropdowns
   5) Hero sections
   6) Secciones intro
   7) Cards y grids
   8) Páginas editoriales
   9) Artículos (historia, claves del riesgo, síntesis)
   10) Related content
   11) Footer
   12) Responsive
   ========================================================= */

/* =========================
   1) BASE / RESET
   ========================= */

:root {
  --color-bg-page: #f5f5f5;
  --color-bg-soft: #f8f6f2;
  --color-bg-soft-alt: #f0ece6;
  --color-bg-panel: #ffffff;
  --color-bg-dark: #1a1a1a;

  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-text-on-dark: #f4f4f4;
  --color-accent: #c65a1e;
  --color-accent-hover: #a64616;

  --color-border-soft: #ddd;

  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-panel: 0 12px 28px rgba(0, 0, 0, 0.22);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --container-xl: 1100px;
  --container-lg: 900px;
  --container-md: 860px;
  --container-article: 800px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 28px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg-page);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   2) TIPOGRAFÍA
   ========================= */

h1,
h2,
h3 {
  margin-top: 0;
  font-family: 'Libre Baskerville', serif;
  line-height: 1.2;
}

h1 {
  font-size: 52px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 26px;
}

p {
  margin-top: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* =========================
   3) LAYOUT GENERAL
   ========================= */

.content {
  padding: 40px 48px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  background: #faf8f4;
}

.content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  width: 6px;
  background: var(--color-accent);
  border-radius: 3px;
}

.content h2 {
  margin-top: 48px;
  margin-bottom: 12px;
}

.content h2:first-of-type {
  margin-top: 0;
}

.content h2:not(:first-of-type) {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 24px;
}

.content p {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
}

.content p:last-child {
  margin-bottom: 0;
}

.articles-section,
.section-heading,
.sections,
.intro-grid,
.featured-card,
.featured-story h2,
.editorial-flow .flow-content {
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
}

.articles-section {
  padding: var(--space-10) var(--space-7);
}

.articles-section.compact-spacing {
  padding-top: 20px;
}

.alt-section {
  max-width: none;
  background: var(--color-bg-soft);
}

.section-heading {
  margin-bottom: var(--space-5);
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p {
  max-width: 980px;
  font-size: 17px;
}

/* =========================
   4) NAVBAR Y DROPDOWNS
   ========================= */

.nav {
  position: relative;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 40px;
  background: var(--color-bg-dark);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 72px;
}

.nav nav {
  display: flex;
  row-gap: var(--space-2);
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > li,
.has-dropdown {
  position: relative;
}

.has-dropdown {
  margin-bottom: -8px;
  padding-bottom: 8px;
}

.nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

.nav .brand {
  padding: 0;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon {
  position: relative;
  display: block;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav.is-menu-open .nav-toggle-icon {
  background: transparent;
}

.nav.is-menu-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-menu-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.submenu-toggle::before {
  content: '+';
}

.has-dropdown.is-submenu-open > .submenu-toggle::before {
  content: '−';
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  z-index: 999;
  display: block;
  width: max-content;
  min-width: 196px;
  max-width: 240px;
  margin: 0;
  padding: 5px;
  list-style: none;

  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dropdown-menu li + li {
  margin-top: 2px;
}

.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-on-dark);
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: #fff8f3;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.is-dropdown-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* =========================
   5) HERO SECTIONS
   ========================= */

.hero,
.page-hero,
.note-hero,
.synthesis-hero,
.report-hero {
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  padding: 140px 40px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('images/hero.png');
}

.hero-content {
  max-width: var(--container-lg);
  margin: 0 auto;
}

.hero h2 {
  max-width: var(--container-lg);
  margin: 0 auto 20px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: clamp(17px, 2.3vw, 19px);
  color: var(--color-text-on-dark);
}

.hero .button,
.hero-content .button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero .button:hover,
.hero-content .button:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.page-hero {
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.56)), url('images/hero.png');
}

.small-hero {
  padding: 72px 32px 64px;
}

.page-hero .hero-content {
  max-width: 820px;
}

.page-hero .hero-content h2 {
  margin-bottom: var(--space-3);
  font-size: 38px;
}

.page-hero .hero-content p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text-on-dark);
}

.note-hero,
.synthesis-hero {
  padding: 96px 32px 76px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.54)), url('images/hero.png');
}

.report-hero {
  padding: 110px 32px 90px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.54)), url('images/hero.png');
}

.note-hero-content,
.synthesis-hero-content,
.report-hero-content {
  max-width: var(--container-lg);
  margin: 0 auto;
}

.note-meta,
.synthesis-meta,
.report-meta {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e6e1d8;
}

.note-hero h1,
.synthesis-hero h1 {
  margin: 0 0 18px;
  max-width: var(--container-lg);
  font-size: 46px;
  line-height: 1.18;
}

.report-hero h1 {
  margin-bottom: 18px;
  max-width: var(--container-lg);
  font-size: 52px;
  line-height: 1.15;
}

.note-deck,
.synthesis-deck,
.report-deck {
  max-width: 820px;
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: #f4f1ea;
}

/* =========================
   6) SECCIONES INTRO
   ========================= */

.intro {
  padding: 60px 32px;
  background: var(--color-bg-soft);
}

.historias-intro {
  padding-bottom: 44px;
  margin-bottom: 0;
}

.historias-intro + .articles-section {
  padding-top: 44px;
  margin-top: 0;
}

.intro.compact-intro {
  padding-top: 40px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.intro-text h2 {
  margin-bottom: var(--space-4);
  font-size: 32px;
}

.historias-intro .intro-text h2 {
  line-height: 1.2;
  max-width: 720px;
}

.intro-text p {
  margin-bottom: var(--space-3);
  font-size: 16.5px;
  line-height: 1.6;
}

.intro-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.story-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 1100px;
  margin: 26px auto 0;
}

.story-type-box {
  padding: 30px 32px;
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-bg-soft-alt);
}

.story-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: 14px;
  font-size: 22px;
}

.story-title img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.story-type-box a {
  color: var(--color-accent);
  font-weight: 700;
}

.story-type-box a:hover {
  color: var(--color-bg-dark);
}

/* =========================
   7) CARDS Y GRIDS
   ========================= */

.sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 40px 32px 56px;
}

.knowledge-grid {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 0;
}

.card,
.article-card {
  border-radius: var(--radius-lg);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.card .icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  object-fit: contain;
}

/* Ajuste específico de iconos en cards */
.card img[alt*="historias"] {
  transform: scale(1.2);
}

.card img[alt*="conocimiento"] {
  transform: scale(0.85);
}

.card h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.card p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.55;
}

.card a,
.featured-text a,
.article-body a {
  color: var(--color-accent);
}

.card a {
  margin-top: auto;
  font-weight: 600;
}

.card a:hover,
.featured-text a:hover,
.article-body a:hover {
  color: var(--color-bg-dark);
}

.featured-story {
  padding: 44px 32px 52px;
  background: var(--color-bg-soft-alt);
}

.featured-story h2 {
  margin-bottom: var(--space-4);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-panel);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-image {
  min-height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/destacada.png');
}

.featured-image.mariano {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('images/mariano.jpg');
}

.featured-text {
  padding: var(--space-8);
}

.featured-text h3 {
  margin-bottom: 18px;
  font-size: 32px;
  line-height: 1.22;
}

.featured-text p {
  margin-bottom: 22px;
  font-size: 17px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.articles-grid:has(.article-card:only-child) {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
}

.article-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.direct-1,
.indirect-1 {
  background-image: url('images/destacada.png');
}

.direct-2,
.indirect-2 {
  background-image: url('images/hero.png');
}

.mariano-card,
.article-image.mariano-card {
  background-image: url('images/mariano.jpg');
}

.article-image.mariano-card {
  background-image: url('images/mariano-tambor.jpg');
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.article-meta {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2e7d32;
}

.article-body h3 {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.3;
}

.article-body p {
  margin-bottom: 18px;
  font-size: 17px;
}

.article-body p:last-of-type {
  margin-bottom: auto;
}

.article-body a {
  font-weight: 700;
}

/* =========================
   8) PÁGINAS EDITORIALES
   ========================= */

.editorial-flow {
  padding: 26px 32px 54px;
  background: var(--color-bg-soft);
}

.flow-content {
  padding: 28px 30px;
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-lg);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-card);
}

.flow-chain {
  font-family: 'Libre Baskerville', serif;
  font-size: 26px;
  line-height: 1.35;
}

.flow-chain span {
  color: var(--color-accent);
  font-weight: 700;
}

.flow-content blockquote {
  margin: 22px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--color-accent);
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
}

.editorial-content h2,
.contact-block h2 {
  margin-top: var(--space-3);
}

.editorial-content {
  border-left: 6px solid var(--color-accent);
  padding-left: 32px;
}

.project-content {
  max-width: 1100px;
  padding: 44px 24px 52px;
  background: #f4f1ea;
}

.project-content::before {
  display: none;
}

.project-content.editorial-content {
  border-left: 0;
  padding-left: 24px;
}

.project-card-grid {
  display: flex;
  flex-direction: column;
}

.project-info-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 34px;
}

.project-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1.5px solid rgba(198, 90, 30, 0.25);
  background: rgba(198, 90, 30, 0.06);

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.project-icon-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.project-icon-circle img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: 0.9;
}

.project-info-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 1.35rem + 0.8vw, 2rem);
}

.project-info-text p {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.72;
}

.project-info-item + .project-info-item {
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.project-closing {
  margin: 46px auto 0;
  width: min(100%, 760px);
  text-align: center;
}

@media (max-width: 900px) {
  .project-content {
    padding: 38px 20px 44px;
  }

  .project-content.editorial-content {
    padding-left: 20px;
  }
}

@media (max-width: 640px) {
  .project-info-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =========================
   9) ARTÍCULOS (HISTORIA, CLAVES, SÍNTESIS)
   ========================= */

.report-main,
.note-main,
.synthesis-main {
  padding: 56px 24px 24px;
  background: var(--color-bg-dark);
}

.report-article,
.note-article,
.synthesis-article {
  width: min(95%, var(--container-md));
  max-width: var(--container-article);
  margin: 0 auto;
  padding: 48px 56px;
  border-radius: var(--radius-md);
  background: var(--color-bg-panel);
  box-shadow: var(--shadow-panel);
  overflow-wrap: break-word;
}

.report-article p,
.note-article p,
.synthesis-article p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text);
}

.report-lead,
.note-lead,
.report-closing,
.note-closing,
.synthesis-closing {
  font-size: 21px;
  line-height: 1.8;
  color: var(--color-text);
}

.report-article h2,
.note-article h2,
.synthesis-article h2 {
  margin: 52px 0 20px;
  font-size: 34px;
  line-height: 1.25;
  color: var(--color-text);
}

.report-image-block,
.note-image-block,
.synthesis-image-block {
  margin: 36px 0 40px;
}

.report-image-block img,
.note-image-block img,
.synthesis-image-block img {
  width: 100%;
  border-radius: var(--radius-md);
}

.report-caption,
.note-caption,
.synthesis-caption {
  max-width: 96%;
  margin: 14px 0 0;
  padding: 12px 16px 10px 18px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-bg-soft);
  font-size: 14.5px;
  line-height: 1.6;
  color: #4f4a42;
}

.caption-meta {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent);
}

.nut-graf {
  padding: 22px 24px;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft-alt);
}


aside.report-crosslink {
  margin: 1.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
  border-left: 3px solid currentColor;
  font-style: italic;
}

aside.report-crosslink p {
  margin: 0 0 0.5rem;
}

aside.report-crosslink a {
  font-style: normal;
  font-weight: 500;
  text-decoration: underline;
}

.synthesis-box {
  margin: 0 0 22px;
  padding: 22px 24px;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}

.synthesis-box h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.synthesis-box p,
.synthesis-highlight p {
  margin: 0;
}

.synthesis-highlight {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: #f1ede6;
}

.synthesis-highlight h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e6e1d8;
  font-size: 12px;
  text-align: center;
}

.icon-item img {
  width: 30px;
  margin-bottom: 6px;
}

/* =========================
   10) RELATED CONTENT
   ========================= */

.related-content {
  margin: 48px 0 12px;
  padding: 22px 24px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: #f7f7f7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.related-content h3 {
  margin: 0 0 12px;
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  line-height: 1.35;
  color: #222;
}

.related-content ul {
  margin: 0;
  padding-left: 20px;
}

.related-content li {
  margin: 0 0 10px;
  color: #333;
  line-height: 1.65;
}

.related-content li:last-child {
  margin-bottom: 0;
}

.related-content a {
  color: #2f2f2f;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9a9a9a;
  text-underline-offset: 2px;
}

.related-content a:hover {
  color: #111;
}

/* =========================
   11) FOOTER
   ========================= */

.footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-8);
  padding: 0 0 32px;
  text-align: center;
  color: #fff;
  background: var(--color-bg-dark);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, #f5f5f5 0%, rgba(245, 245, 245, 0) 100%);
}

.footer-illustration {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}

.footer p {
  position: relative;
  z-index: 2;
  margin: 6px 0;
  padding: 0 20px;
  font-size: 15px;
}

.footer p:first-of-type {
  margin-top: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================
   12) RESPONSIVE
   ========================= */

@media (max-width: 980px) {
  .story-types,
  .intro-grid,
  .featured-card,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 34px;
  }

  .featured-text h3 {
    font-size: 28px;
  }

  .flow-chain {
    font-size: 22px;
  }
}

@media (max-width: 1120px) {
  .sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 18px 24px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav nav {
    display: none;
    order: 3;
    width: 100%;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 2px;
  }

  .nav.is-menu-open nav {
    display: block;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .has-dropdown {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .has-dropdown > a {
    padding-right: 10px;
  }

  .submenu-toggle {
    display: inline-flex;
    margin-right: 2px;
  }

  .dropdown-menu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    padding: 2px 0 6px;
    border: 0;
    border-radius: var(--radius-sm);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-dropdown.is-submenu-open > .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding: 10px 14px;
    font-size: 14.5px;
  }

  .hero {
    padding: 96px 24px;
  }

  .hero p {
    font-size: 17px;
  }

  .small-hero {
    padding: 60px 24px 54px;
  }

  .page-hero .hero-content h2 {
    font-size: 34px;
  }

  .page-hero .hero-content p {
    font-size: 16px;
  }

  .intro,
  .articles-section,
  .featured-story,
  .sections,
  .editorial-flow {
    padding-left: 20px;
    padding-right: 20px;
  }

  .featured-image {
    min-height: 260px;
  }

  .article-card {
    min-height: 0;
  }

  .report-hero,
  .note-hero,
  .synthesis-hero {
    padding: 84px 24px 66px;
  }

  .report-hero h1 {
    font-size: 40px;
  }

  .note-hero h1,
  .synthesis-hero h1 {
    font-size: 38px;
  }

  .report-deck,
  .note-deck,
  .synthesis-deck {
    font-size: 17px;
  }

  .report-main,
  .note-main,
  .synthesis-main {
    padding: 40px 16px 16px;
  }

  .report-article,
  .note-article,
  .synthesis-article {
    width: min(94%, var(--container-md));
    padding: 36px 26px;
  }

  .report-article h2,
  .note-article h2,
  .synthesis-article h2 {
    font-size: 28px;
  }

  .articles-section.compact-spacing {
    padding-top: 16px;
  }

  .intro.compact-intro {
    padding-top: 28px;
  }

  .synthesis-box h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .sections {
    grid-template-columns: 1fr;
  }

  .card .icon {
    width: 40px;
    height: 40px;
  }

  .article-body h3 {
    font-size: 22px;
  }

  .story-title {
    font-size: 20px;
  }

  .story-title img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 16px 16px;
  }

  .brand img {
    height: 58px;
  }

  .hero {
    padding: 84px 18px;
  }

  .small-hero {
    padding: 52px 18px 46px;
  }

  .report-hero h1,
  .note-hero h1,
  .synthesis-hero h1 {
    font-size: 33px;
  }

  .report-article,
  .note-article,
  .synthesis-article {
    width: 100%;
    padding: 22px 18px;
  }

  .report-article p,
  .note-article p,
  .synthesis-article p {
    font-size: 17px;
    line-height: 1.75;
  }

  .report-lead,
  .note-lead,
  .report-closing,
  .note-closing,
  .synthesis-closing {
    font-size: 19px;
  }

  .report-article h2,
  .note-article h2,
  .synthesis-article h2 {
    font-size: 25px;
  }

  .nut-graf,
  .synthesis-box,
  .related-content {
    padding: 18px;
  }

  .report-caption,
  .note-caption,
  .synthesis-caption {
    max-width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
  }

  .caption-meta {
    font-size: 10.8px;
  }

  .synthesis-highlight h3 {
    font-size: 22px;
  }

  .related-content h3 {
    font-size: 20px;
  }

  .button {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }
}

.placeholder-card {
  border: 1px solid rgba(25, 45, 35, 0.12);
  background: #f8faf8;
}

.placeholder-image {
  background-image: linear-gradient(135deg, #eef3ee, #e5ebe5);
}

.coming-soon-text {
  display: inline-block;
  font-weight: 700;
  color: #5f7466;
}

.historias-intro .intro-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.historias-intro .section-heading {
  max-width: 1040px;
}

.historias-intro h2 {
  white-space: nowrap;
}

.historias-intro p {
  max-width: 980px;
}

.historias-intro .intro-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-top: 4px;
  opacity: 0.9;
}

.historias-intro .intro-text {
  flex: 1;
  max-width: 100%;
}

@media (max-width: 900px) {
  .historias-intro h2 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .historias-intro .intro-with-icon {
    flex-direction: column;
    gap: 10px;
  }

  .historias-intro .intro-icon {
    width: 48px;
    height: 48px;
  }
}

.note-crosslink {
  font-style: italic;
  border-left: 3px solid currentColor;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.note-crosslink a {
  text-decoration: underline;
}

.synthesis-crosslink {
  font-style: italic;
  border-left: 3px solid currentColor;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.synthesis-crosslink a {
  text-decoration: underline;
}

.references {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid currentColor;
  font-size: 0.875rem;
}

.references h3 {
  margin-bottom: 1rem;
}

.references ul {
  list-style: none;
  padding: 0;
}

.references li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
