/* ==========================================================================
   LONGFORM EMAGAZINE - DATA JOURNALISM STYLESHEET
   Story: Vừ Pát Ly và câu chuyện dựng sinh kế mới trên miền đất của người Mông
   Design: Modern Editorial, High Contrast, Responsive, Pure CSS
   ========================================================================== */

:root {
  /* Editorial Color Palette */
  --bg-primary: #0d1712;
  --bg-surface: #14221b;
  --bg-card: #1b2d24;
  --bg-card-hover: #223a2f;
  --bg-elevated: #264336;
  
  --text-main: #f0f4f1;
  --text-body: #d3dfd7;
  --text-muted: #95ab9e;
  --text-accent: #6ee7b7;
  
  --emerald-primary: #10b981;
  --emerald-light: #34d399;
  --emerald-dark: #065f46;
  --gold-accent: #fbbf24;
  --copper-accent: #f59e0b;
  
  --border-subtle: rgba(110, 231, 183, 0.15);
  --border-prominent: rgba(110, 231, 183, 0.35);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.2);

  /* Typography Scale */
  --font-serif: 'Lora', 'Merriweather', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Global minimum sizing constraints from requirements */
  --min-body-font: 18px;
  --min-infographic-font: 18px;
}

/* Light / Warm Paper Mode (Optional Toggle) */
[data-theme="light"] {
  --bg-primary: #fbf9f4;
  --bg-surface: #f3efe6;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f5ed;
  --bg-elevated: #eae4d5;
  
  --text-main: #141f18;
  --text-body: #28372e;
  --text-muted: #576b5f;
  --text-accent: #047857;
  
  --emerald-primary: #059669;
  --emerald-light: #047857;
  --emerald-dark: #064e3b;
  --gold-accent: #d97706;
  --copper-accent: #b45309;
  
  --border-subtle: rgba(5, 150, 105, 0.2);
  --border-prominent: rgba(5, 150, 105, 0.4);
  
  --shadow-sm: 0 4px 12px rgba(20, 31, 24, 0.06);
  --shadow-md: 0 10px 25px rgba(20, 31, 24, 0.1);
  --shadow-lg: 0 20px 40px rgba(20, 31, 24, 0.15);
  --shadow-glow: 0 0 30px rgba(5, 150, 105, 0.15);
}

/* Box Sizing & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* Baseline 18px */
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-serif);
  font-size: 1.125rem; /* 20.25px for supreme longform readability */
  line-height: 1.85;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Reading Progress Bar */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#reading-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-primary), var(--gold-accent));
  box-shadow: 0 0 10px var(--emerald-primary);
  transition: width 0.1s cubic-bezier(0.1, 0.5, 0.5, 1);
}

/* Subtle Fixed Top Navigation / Reader Header */
.reader-topbar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(13, 23, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 990;
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

[data-theme="light"] .reader-topbar {
  background: rgba(251, 249, 244, 0.85);
}

.topbar-badge {
  font-family: var(--font-sans);
  font-size: 0.95rem; /* ~17px */
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald-primary);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-indicator {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.indicator-item {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.indicator-item:hover, .indicator-item.active {
  color: var(--text-main);
  background: var(--border-subtle);
  font-weight: 700;
}

.theme-toggle-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--emerald-primary);
}

/* ==========================================================================
   HERO / COVER SECTION (EMAGAZINE OPENING)
   ========================================================================== */
.hero-emagazine {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2rem 5rem 2rem;
  overflow: hidden;
}

.hero-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  transition: transform 0.8s ease-out;
  filter: brightness(0.65) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(13, 23, 18, 0.4) 0%,
    rgba(13, 23, 18, 0.6) 50%,
    rgba(13, 23, 18, 0.98) 100%
  );
  z-index: 2;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(251, 249, 244, 0.2) 0%,
    rgba(251, 249, 244, 0.6) 45%,
    rgba(251, 249, 244, 0.98) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-primary);
  border-radius: 999px;
  color: var(--emerald-light);
  font-family: var(--font-sans);
  font-size: 1rem; /* >= 18px context */
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 2rem;
  text-wrap: balance;
}

.hero-sapo-box {
  background: rgba(20, 34, 27, 0.65);
  border-left: 4px solid var(--emerald-primary);
  padding: 1.75rem 2rem;
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(12px);
  max-width: 900px;
  margin-bottom: 2rem;
}

[data-theme="light"] .hero-sapo-box {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

.hero-sapo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem; /* 22.5px */
  font-weight: 500;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-sapo-text:last-child {
  margin-bottom: 0;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.meta-author {
  font-weight: 700;
  color: var(--emerald-light);
}

.meta-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   ARTICLE WRAPPER & EDITORIAL BODY LAYOUT
   ========================================================================== */
.article-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.editorial-section {
  position: relative;
  margin-bottom: 6rem;
  padding-top: 2rem;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-num {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--emerald-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-prominent);
  padding: 0.35rem 1rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.section-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-prominent), transparent);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  letter-spacing: -0.015em;
}

/* Reading Column: Strictly focused & ergonomic */
.reading-column {
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.reading-column p {
  font-family: var(--font-serif);
  font-size: 1.125rem; /* ~20px */
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 1.75rem;
  text-align: justify;
}

/* Editorial Drop Cap on first paragraph of sections */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4.2rem;
  float: left;
  line-height: 0.85;
  margin-right: 0.85rem;
  margin-top: 0.15rem;
  color: var(--emerald-light);
  font-weight: 800;
  text-shadow: 2px 2px 0 var(--emerald-dark);
}

/* Large Editorial Pull Quote */
.quote-highlight-container {
  max-width: 900px;
  margin: 3.5rem auto;
  position: relative;
}

.quote-highlight-box {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border-left: 5px solid var(--gold-accent);
  border-radius: 0 16px 16px 0;
  padding: 2.5rem 3rem;
  position: relative;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

.quote-icon-svg {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 48px;
  height: 48px;
  fill: rgba(251, 191, 36, 0.15);
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.35rem; /* 24px */
  font-style: italic;
  font-weight: 600;
  line-height: 1.75;
  color: var(--text-main);
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* ==========================================================================
   EDITORIAL PHOTO SHOWCASES (Clean, No Text, Atmospheric)
   ========================================================================== */
.editorial-photo-card {
  max-width: 1040px;
  margin: 3.5rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
}

.editorial-img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.editorial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.editorial-photo-card:hover .editorial-img {
  transform: scale(1.03);
}

.editorial-img-caption {
  font-family: var(--font-sans);
  font-size: 1.05rem; /* > 18px */
  color: var(--text-muted);
  padding: 1rem 1.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   INFOGRAPHIC COMMON CONTAINER & MANDATORY CRITERIA
   1. Pure data, SVG, icons, charts and numbers
   2. Minimal text
   3. Minimum font size: >= 18px (Strictly enforced on both desktop and mobile)
   4. Harmonious insertion between text
   ========================================================================== */
.infographic-wrapper {
  max-width: 1060px;
  margin: 4.5rem auto;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-prominent);
  border-radius: 20px;
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

/* Enforce >= 18px font size across ALL text elements inside infographic */
.infographic-wrapper,
.infographic-wrapper p,
.infographic-wrapper span,
.infographic-wrapper div,
.infographic-wrapper li,
.infographic-wrapper label,
.infographic-wrapper figcaption {
  font-size: 18px; /* Strict baseline floor */
}

/* Subtle corner ambient glow */
.infographic-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.infographic-header {
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.infographic-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-light);
}

.infographic-tag-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.infographic-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem) !important;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.infographic-subtitle {
  font-family: var(--font-sans);
  font-size: 18px !important;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Grid of Metrics / Counters */
.data-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.data-metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.data-metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-primary);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18);
}

.metric-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--emerald-light);
}

.metric-icon-wrap svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.metric-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.metric-counter {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.8vw, 3.2rem) !important;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-unit {
  font-family: var(--font-sans);
  font-size: 20px !important;
  font-weight: 700;
  color: var(--emerald-light);
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ==========================================================================
   SPECIFIC INFOGRAPHIC VISUALIZATIONS (Pure Data & SVG)
   ========================================================================== */

/* --- INFOGRAPHIC 01: SẢN VẬT BẢN ĐỊA & KHOẢNG CÁCH THỊ TRƯỜNG --- */
.native-produce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.produce-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: default;
}

.produce-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--emerald-light);
  transform: translateY(-2px);
}

.produce-pill-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.produce-pill-name {
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.produce-pill-status {
  font-family: var(--font-sans);
  font-size: 18px !important;
  color: var(--gold-accent);
  display: block;
}

.gap-comparison-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.75rem;
}

.gap-side {
  text-align: center;
  padding: 1rem;
}

.gap-side-title {
  font-family: var(--font-sans);
  font-size: 20px !important;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.gap-side-desc {
  font-family: var(--font-sans);
  font-size: 18px !important;
  color: var(--text-muted);
  line-height: 1.6;
}

.gap-arrow {
  color: var(--emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-arrow svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
}

/* --- INFOGRAPHIC 02: BẢN ĐỒ LIÊN KẾT 5 TỈNH & 2 TRỤ CỘT CÔNG NGHỆ --- */
.infographic-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-subpanel {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem;
}

.subpanel-title {
  font-family: var(--font-sans);
  font-size: 20px !important;
  font-weight: 700;
  color: var(--emerald-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subpanel-title svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

/* 5 Provinces Tags */
.provinces-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.province-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-prominent);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.province-tag-badge {
  color: var(--emerald-primary);
  font-weight: 800;
}

/* Technology Pillars SVG / Card */
.tech-pillar-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.tech-pillar-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.pillar-icon-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--gold-accent);
}

.pillar-content-title {
  font-family: var(--font-sans);
  font-size: 19px !important;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pillar-content-desc {
  font-family: var(--font-sans);
  font-size: 18px !important;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- INFOGRAPHIC 03: MÔ HÌNH HỆ SINH THÁI 30 HA & HTX --- */
.growth-comparison-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(251, 191, 36, 0.12) 100%);
  border: 1px solid var(--border-prominent);
  border-radius: 16px;
  padding: 2.25rem;
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.growth-stage {
  text-align: center;
}

.growth-year {
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.growth-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem) !important;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.growth-caption {
  font-family: var(--font-sans);
  font-size: 18px !important;
  color: var(--emerald-light);
  font-weight: 600;
}

.growth-multiplier {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.45rem;
  background: var(--bg-surface);
  border: 2px dashed var(--gold-accent);
  border-radius: 999px;
}

.multiplier-num {
  font-family: var(--font-display);
  font-size: 1.75rem !important;
  font-weight: 800;
  color: var(--gold-accent);
}

.multiplier-text {
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 700;
  color: var(--text-muted);
}

/* 3-Tier Synergy Architecture */
.synergy-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.synergy-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
}

.synergy-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-primary);
}

.synergy-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.synergy-icon svg {
  width: 26px;
  height: 26px;
}

.synergy-title {
  font-family: var(--font-sans);
  font-size: 20px !important;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.synergy-desc {
  font-family: var(--font-sans);
  font-size: 18px !important;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Products in HTX */
.htx-produce-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.htx-produce-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 18px !important;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   ARTICLE FOOTER & AUTHOR BYLINE
   ========================================================================== */
.article-footer {
  max-width: 780px;
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-prominent);
}

.author-byline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem 2rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--emerald-dark);
  border: 2px solid var(--emerald-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.author-name-text {
  font-family: var(--font-sans);
  font-size: 1.25rem; /* > 18px */
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.author-role-text {
  font-family: var(--font-sans);
  font-size: 1.02rem; /* > 18px */
  color: var(--text-muted);
}

.article-copyright {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 2.5rem;
}

/* Back to Top Floating Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-primary);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s;
  z-index: 900;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--emerald-dark);
}

/* ==========================================================================
   ANIMATIONS & SCROLL-TRIGGER REVEALS
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-emagazine {
    padding-top: 6rem;
  }
  
  .infographic-two-columns {
    grid-template-columns: 1fr;
  }
  
  .synergy-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px; /* High legibility on mobile */
  }
  
  body {
    font-size: 1.125rem; /* ~18px for body reading */
  }

  .reader-topbar {
    padding: 0 1rem;
  }

  .topbar-nav .section-indicator {
    display: none; /* Keep clean on small screen */
  }

  .hero-emagazine {
    min-height: 85vh;
    padding: 5rem 1rem 3rem 1rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-sapo-box {
    padding: 1.25rem 1.25rem;
  }

  .hero-sapo-text {
    font-size: 1.15rem; /* >= 18px */
  }

  .article-wrapper {
    padding: 2.5rem 1rem 4rem 1rem;
  }

  .reading-column {
    margin-bottom: 2rem;
  }

  .reading-column p {
    text-align: left;
    font-size: 1.125rem; /* >= 18px */
  }

  .quote-highlight-box {
    padding: 1.75rem 1.5rem;
  }

  .quote-text {
    font-size: 1.2rem; /* >= 18px */
  }

  .infographic-wrapper {
    padding: 1.75rem 1.25rem;
    margin: 3rem 0;
    border-radius: 16px;
  }

  /* Infographic font requirements: minimum 18px */
  .infographic-title {
    font-size: 1.35rem;
  }

  .infographic-subtitle,
  .metric-label,
  .produce-pill-name,
  .province-tag,
  .pillar-content-title,
  .pillar-content-desc,
  .synergy-title,
  .synergy-desc,
  .htx-produce-chip {
    font-size: 1.125rem; /* >= 18px */
  }

  .gap-comparison-box {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gap-arrow {
    transform: rotate(90deg);
  }

  .data-metrics-grid {
    grid-template-columns: 1fr;
  }

  .growth-comparison-banner {
    flex-direction: column;
    gap: 1.25rem;
  }
}
