/* ==========================================================================
   EMAGAZINE DATA JOURNALISM - DESIGN SYSTEM & STYLES
   Tỉnh Phú Thọ - Kinh tế Hợp tác xã & Chuỗi giá trị
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette: Editorial Forest & Earthy Emerald */
  --bg-primary: #fbfbf9;
  --bg-surface: #ffffff;
  --bg-subtle: #f2f5f1;
  --bg-card: #ffffff;
  --bg-card-highlight: #eef6f0;
  
  --text-main: #142017;
  --text-body: #253329;
  --text-muted: #526357;
  --text-light: #76887c;

  --emerald-950: #042514;
  --emerald-900: #063820;
  --emerald-800: #0b4f2e;
  --emerald-700: #10663c;
  --emerald-600: #19814d;
  --emerald-500: #259d60;
  --emerald-100: #e1f4e8;
  --emerald-50: #eef9f2;

  --accent-gold: #c27803;
  --accent-gold-bg: #fff8ea;
  --accent-amber: #d97706;
  --accent-blue: #1e3a8a;
  
  --border-light: rgba(16, 102, 60, 0.14);
  --border-subtle: #e2e8e4;
  --border-strong: #c4d2c8;

  /* Typography Tokens */
  --font-article: "Encode Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Encode Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;

  /* Base Spacing & Sizing */
  --text-body-size: 1.25rem; /* 20px for luxurious, comfortable editorial reading */
  --text-info-min: 1.125rem; /* 18px minimum required for all infographic labels & texts */

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 102, 60, 0.08);
  --shadow-lg: 0 16px 44px rgba(16, 102, 60, 0.12);
  --shadow-xl: 0 28px 64px rgba(0, 0, 0, 0.16);

  /* Layout Containers */
  --container-reading: 780px;
  --container-wide: 1160px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Palette */
[data-theme="dark"] {
  --bg-primary: #0a130e;
  --bg-surface: #101c14;
  --bg-subtle: #17271d;
  --bg-card: #132218;
  --bg-card-highlight: #192e21;

  --text-main: #f0f7f2;
  --text-body: #d5e2d8;
  --text-muted: #95ab9e;
  --text-light: #71887b;

  --emerald-100: #163625;
  --emerald-50: #10261a;
  --border-light: rgba(74, 222, 128, 0.18);
  --border-subtle: #24382c;
  --border-strong: #334e3e;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.6);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-article);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.88;
  font-size: var(--text-body-size);
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* --- Reading Progress Bar --- */
.reading-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 9999;
}

.reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10663c, #259d60, #f59e0b);
  transition: width 0.1s linear;
}

/* --- Floating Header Navigation Bar --- */
.site-nav {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(251, 251, 249, 0.88);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

[data-theme="dark"] .site-nav {
  background: rgba(10, 19, 14, 0.9);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-badge {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--emerald-800);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
}

.nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.read-time-indicator {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.theme-toggle-btn {
  background: var(--bg-card-highlight);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  background: var(--emerald-100);
  color: var(--emerald-800);
  border-color: var(--emerald-500);
}

/* ==========================================================================
   HERO / COVER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 28px 84px 28px;
  background: #061a10;
  color: #ffffff;
  overflow: hidden;
}

.hero-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 115%;
  z-index: 1;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: brightness(0.85) contrast(1.08);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 37, 20, 0.45) 0%,
    rgba(6, 26, 16, 0.76) 55%,
    rgba(5, 18, 12, 0.96) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  animation: heroFadeIn 1.2s var(--ease-spring);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #55e69e;
  margin-bottom: 22px;
  background: rgba(16, 102, 60, 0.45);
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid rgba(85, 230, 158, 0.4);
  backdrop-filter: blur(8px);
}

.hero-category::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #55e69e;
  box-shadow: 0 0 10px #55e69e;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-tag-location {
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  color: #d1fae5;
}

/* ==========================================================================
   ARTICLE LAYOUT CONTAINERS
   ========================================================================== */
.article-wrapper {
  position: relative;
  z-index: 10;
  padding: 60px 24px 120px 24px;
}

.content-column {
  max-width: var(--container-reading);
  margin-left: auto;
  margin-right: auto;
}

.wide-column {
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
}

/* --- SAPÔ / LEDE INTRO --- */
.sapo-box {
  max-width: var(--container-reading);
  margin: -40px auto 64px auto;
  position: relative;
  z-index: 20;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 6px solid var(--emerald-600);
  border-radius: 14px;
  padding: 38px 44px;
  box-shadow: var(--shadow-lg);
}

.sapo-text {
  font-family: var(--font-serif);
  font-size: clamp(1.24rem, 1.8vw, 1.44rem);
  font-weight: 500;
  line-height: 1.82;
  color: var(--text-main);
  margin-bottom: 18px;
}

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

/* --- SECTION BREAKS & HEADINGS --- */
.story-section {
  margin-bottom: 104px;
  position: relative;
}

.section-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--emerald-600);
  background: var(--emerald-100);
  padding: 5px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 34px;
  letter-spacing: -0.015em;
}

/* --- EDITORIAL PARAGRAPHS & DROP CAP --- */
.editorial-paragraph {
  font-family: var(--font-serif);
  font-size: var(--text-body-size);
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 30px;
  font-weight: 400;
}

.editorial-paragraph strong {
  font-weight: 700;
  color: var(--text-main);
}

/* Drop Cap */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.8rem;
  line-height: 0.78;
  padding-top: 6px;
  padding-right: 14px;
  padding-bottom: 4px;
  color: var(--emerald-700);
  font-weight: 800;
}

[data-theme="dark"] .drop-cap::first-letter {
  color: #4ade80;
}

/* --- QUOTE CALLOUTS --- */
.quote-callout {
  margin: 44px auto;
  background: linear-gradient(135deg, var(--bg-card-highlight) 0%, var(--bg-surface) 100%);
  border-left: 5px solid var(--accent-gold);
  border-radius: 0 16px 16px 0;
  padding: 34px 38px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-symbol {
  position: absolute;
  top: 12px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1;
  color: var(--accent-gold);
  opacity: 0.25;
  user-select: none;
}

.quote-content {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* --- EDITORIAL IMAGE BREAKOUT CONTAINERS --- */
.editorial-image-container {
  margin: 56px 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.editorial-img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-spring);
}

.editorial-image-container:hover .editorial-img {
  transform: scale(1.02);
}

.image-credit-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  padding: 24px 30px 18px 30px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 16px;
}

.image-caption {
  font-family: var(--font-article);
  font-size: 16px;
  color: #e5e7eb;
}

/* ==========================================================================
   DATA-DRIVEN INFOGRAPHICS SYSTEM
   Strict Rules:
   1. All labels & text in infographics >= 18px!
   2. Purely data, SVG, icons, metrics, comparison.
   3. No outside data added.
   ========================================================================== */

.infographic-wrapper,
.infographic-wrapper * {
  font-family: var(--font-sans);
}

.infographic-wrapper .bar-metric-header .value {
  font-family: var(--font-mono);
}

.infographic-wrapper {
  margin: 64px 0 76px 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.infographic-header {
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  color: #ffffff;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 2px solid var(--emerald-700);
}

.infographic-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a7f3d0;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 14px;
  border-radius: 4px;
}

.infographic-title {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.infographic-source {
  font-size: 15px;
  color: #d1fae5;
  opacity: 0.9;
}

.infographic-body {
  padding: 40px 36px;
  background: var(--bg-card);
}

/* --- Infographic 1: Scale & Structure Grid --- */
.kpi-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.kpi-card {
  background: var(--bg-card-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-500);
}

.kpi-card.highlighted {
  border-left: 6px solid var(--emerald-600);
}

.kpi-card.gold-border {
  border-left: 6px solid var(--accent-amber);
}

.kpi-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.kpi-badge {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--emerald-100);
  color: var(--emerald-800);
}

.kpi-value {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.kpi-unit {
  font-size: 1.25rem; /* 20px >= 18px */
  font-weight: 600;
  color: var(--emerald-700);
  margin-left: 4px;
}

[data-theme="dark"] .kpi-unit {
  color: #6ee7b7;
}

.kpi-label {
  font-size: 1.15rem; /* ~18.4px - Minimum 18px enforced! */
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.45;
}

.kpi-desc {
  font-size: 1.125rem; /* 18px - Minimum 18px enforced! */
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
}

/* Visualization Row inside Infographic 1 */
.data-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  align-items: center;
}

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

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}

.chart-card-title {
  font-size: 1.25rem; /* 20px >= 18px */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Interactive Donut SVG */
.donut-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.donut-svg-wrap {
  position: relative;
  width: 170px;
  height: 170px;
}

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.donut-center-sub {
  font-size: 18px; /* >= 18px */
  font-weight: 600;
  color: var(--text-muted);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.125rem; /* 18px >= 18px */
  color: var(--text-body);
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-top: 4px;
  flex-shrink: 0;
}

.legend-dot.green { background: #10663c; }
.legend-dot.gray { background: #94a3b8; }
.legend-dot.amber { background: #d97706; }

/* Horizontal Bar Comparisons */
.bar-metric-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.bar-metric-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem; /* ~18.4px >= 18px */
  font-weight: 600;
  color: var(--text-main);
}

.bar-metric-header .value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--emerald-700);
}

[data-theme="dark"] .bar-metric-header .value {
  color: #4ade80;
}

.bar-track {
  height: 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--emerald-600), var(--emerald-500));
  width: 0;
  transition: width 1.4s var(--ease-spring);
}

.bar-fill.amber {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

/* Transformation Comparison Grid (Truyền thống vs HTX) */
.transformation-comparison {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.compare-box {
  border-radius: 14px;
  padding: 24px;
  font-size: 1.125rem; /* 18px >= 18px */
  line-height: 1.6;
}

.compare-box.old-way {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.compare-box.new-way {
  background: rgba(16, 102, 60, 0.08);
  border: 1px solid rgba(16, 102, 60, 0.25);
}

.compare-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-box.old-way .compare-title {
  color: #dc2626;
}

.compare-box.new-way .compare-title {
  color: var(--emerald-700);
}

[data-theme="dark"] .compare-box.new-way .compare-title {
  color: #4ade80;
}

/* ==========================================================================
   INFOGRAPHIC 2: CASE STUDIES (CẨM MỸ & NẤM TAM ĐẢO)
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  width: fit-content;
}

.case-badge-pill.tea {
  background: var(--emerald-100);
  color: var(--emerald-800);
}

.case-badge-pill.mushroom {
  background: var(--accent-gold-bg);
  color: #92400e;
}

.case-title {
  font-size: 1.45rem; /* ~23px >= 18px */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}

.case-stat-highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-chip {
  background: var(--bg-card-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.stat-chip-num {
  font-size: 2rem; /* 32px */
  font-weight: 800;
  color: var(--emerald-700);
  line-height: 1.1;
  display: block;
}

[data-theme="dark"] .stat-chip-num {
  color: #4ade80;
}

.stat-chip-label {
  font-size: 1.125rem; /* 18px >= 18px */
  font-weight: 600;
  color: var(--text-body);
  margin-top: 6px;
  display: block;
}

/* Multiplier Badges (2x, 3x) */
.multiplier-banner {
  background: linear-gradient(135deg, #0b4f2e, #10663c);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.multiplier-tag {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: -0.02em;
}

.multiplier-text {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 600;
  line-height: 1.35;
  max-width: 72%;
}

/* Step-by-Step Flow Chart for Circular Agriculture (HTX Nấm Tam Đảo) */
.circular-chain {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.chain-step {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 600;
  color: var(--text-main);
  transition: transform 0.2s ease;
}

.chain-step:hover {
  transform: translateX(4px);
  background: var(--bg-card-highlight);
  border-color: var(--emerald-500);
}

.chain-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--emerald-700);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.chain-step-text {
  flex-grow: 1;
}

/* 4 Working Stages Tag Cloud */
.stages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stage-badge {
  font-size: 1.125rem; /* 18px >= 18px */
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--bg-card-highlight);
  border: 1px solid var(--border-light);
  color: var(--emerald-800);
}

[data-theme="dark"] .stage-badge {
  color: #86efac;
}

/* ==========================================================================
   INFOGRAPHIC 3: POLICIES & VALUE TRIANGLE
   ========================================================================== */
.policy-metrics-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.policy-metric-box {
  background: var(--bg-card-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.policy-metric-val {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--emerald-700);
  line-height: 1.1;
  margin-bottom: 8px;
}

[data-theme="dark"] .policy-metric-val {
  color: #4ade80;
}

.policy-metric-label {
  font-size: 1.125rem; /* 18px >= 18px */
  font-weight: 600;
  color: var(--text-body);
}

/* 4 Standards Grid */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

@media (max-width: 860px) {
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.standard-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.standard-card:hover {
  border-color: var(--emerald-600);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.standard-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.standard-name {
  font-size: 1.15rem; /* 18.4px >= 18px */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.standard-sub {
  font-size: 1.125rem; /* 18px >= 18px */
  color: var(--text-muted);
}

/* Sustainable Triangle Visualization */
.triangle-wrapper {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 36px 32px;
  margin-top: 36px;
}

.triangle-title {
  text-align: center;
  font-size: 1.35rem; /* ~22px >= 18px */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 28px;
}

.triangle-nodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

@media (max-width: 860px) {
  .triangle-nodes-grid {
    grid-template-columns: 1fr;
  }
}

.triangle-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.triangle-node:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-500);
}

.triangle-node-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.triangle-node-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--emerald-700);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.triangle-node-name {
  font-size: 1.25rem; /* 20px >= 18px */
  font-weight: 800;
  color: var(--text-main);
}

.triangle-node-body {
  font-size: 1.125rem; /* 18px >= 18px */
  color: var(--text-body);
  line-height: 1.55;
}

/* ==========================================================================
   ARTICLE FOOTER & AUTHOR SIGNATURE
   ========================================================================== */
.article-footer {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.author-block {
  text-align: right;
  margin-bottom: 40px;
}

.author-label {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.author-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.author-badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald-700);
  margin-top: 4px;
}

/* Colophon / Publication metadata box */
.publication-colophon {
  width: 100%;
  background: var(--bg-card-highlight);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.colophon-title {
  font-weight: 700;
  color: var(--text-main);
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-700);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 800;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--emerald-800);
  transform: translateY(-3px);
}

/* ==========================================================================
   ANIMATIONS & SCROLL-TRIGGER UTILITIES
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET TWEAKS)
   ========================================================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  body {
    font-size: 1.15rem; /* ~17.25px on mobile, comfortably above 16px minimum */
    line-height: 1.8;
  }

  .site-nav {
    padding: 12px 18px;
  }

  .nav-title {
    display: none;
  }

  .hero-section {
    min-height: 84vh;
    padding: 110px 18px 52px 18px;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.22;
  }

  .sapo-box {
    padding: 24px 20px;
    margin: -24px 12px 48px 12px;
  }

  .sapo-text {
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .editorial-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
  }

  .drop-cap::first-letter {
    font-size: 3.8rem;
    padding-right: 10px;
  }

  .infographic-wrapper {
    margin: 48px -12px;
    border-radius: 12px;
  }

  .infographic-header {
    padding: 20px;
  }

  .infographic-body {
    padding: 24px 18px;
  }

  .quote-callout {
    padding: 24px 20px;
    margin: 36px 0;
  }

  .quote-content {
    font-size: 1.2rem;
  }

  .case-stat-highlight-row {
    grid-template-columns: 1fr;
  }

  .multiplier-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .multiplier-text {
    max-width: 100%;
  }

  .standards-grid {
    grid-template-columns: 1fr;
  }

  .triangle-wrapper {
    padding: 24px 16px;
  }
}
