/* ==========================================================================
   LONGFORM DATA JOURNALISM STYLESHEET
   Dành cho bài báo: Công dân số, xã hội số tại Hà Nội
   Quy chuẩn: Cỡ chữ toàn trang >= 16px, Cỡ chữ infographic >= 18px
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette - Tương phản cao, chuẩn báo chí dữ liệu */
  --bg-primary: #0b111e;
  --bg-secondary: #131c2e;
  --bg-card: #182338;
  --bg-card-hover: #1e2c45;
  --bg-surface: #0f172a;
  
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  
  --brand-blue: #0284c7;
  --brand-cyan: #38bdf8;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-purple: #8b5cf6;
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-active: rgba(56, 189, 248, 0.35);
  
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  
  --max-width-text: 740px;
  --max-width-wide: 1160px;
  --max-width-ultra: 1280px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-accent: #0369a1;
  
  --brand-blue: #0284c7;
  --brand-cyan: #0284c7;
  --brand-emerald: #059669;
  --brand-amber: #d97706;
  --brand-purple: #7c3aed;
  
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-active: rgba(2, 132, 199, 0.4);
}

/* Base Reset & Typography Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Cỡ chữ tối thiểu toàn trang: 16px */
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 19px; /* Cỡ chữ đọc chính: 19px */
  line-height: 1.82;
  font-weight: 400;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* --- Reading Progress Indicator --- */
.reading-progress-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-emerald));
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  transition: width 0.1s linear;
}

.progress-milestones {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 8px;
  pointer-events: none;
}

.milestone-dot {
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.milestone-dot:hover {
  transform: translateX(-50%) scale(1.6);
  background: var(--brand-cyan);
}

.milestone-dot:nth-child(1) { left: 20%; }
.milestone-dot:nth-child(2) { left: 52%; }
.milestone-dot:nth-child(3) { left: 80%; }

.milestone-tooltip {
  display: none;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

.milestone-dot:hover .milestone-tooltip {
  display: block;
}

/* --- Editorial Topbar --- */
.editorial-topbar {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 990;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 17, 30, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, background-color 0.4s ease;
}

[data-theme="light"] .editorial-topbar {
  background: rgba(255, 255, 255, 0.92);
}

.topbar-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.publication-tag {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  text-transform: uppercase;
}

.reading-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.control-btn:hover {
  background: var(--bg-card);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: translateY(-1px);
}

.theme-icon.sun { display: block; }
.theme-icon.moon { display: none; }

[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="light"] .theme-icon.moon { display: block; }

/* --- HERO COVER SECTION (Parallax) --- */
.hero-cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

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

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) contrast(1.15);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(11, 17, 30, 0.5) 0%, 
    rgba(11, 17, 30, 0.75) 60%, 
    var(--bg-primary) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.4) 0%, 
    rgba(15, 23, 42, 0.8) 60%, 
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  text-align: center;
  margin: 0 auto;
}

.kicker-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  backdrop-filter: blur(8px);
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 36px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.article-meta-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 28px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.meta-label {
  display: block;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-author {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.meta-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-cyan);
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
}

.scroll-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.scroll-prompt:hover {
  color: var(--brand-cyan);
}

.scroll-text {
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.scroll-arrow {
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* --- MAIN ARTICLE STRUCTURE --- */
.article-main-wrapper {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* --- LEAD / SAPO SECTION --- */
.article-lead-container {
  max-width: var(--max-width-text);
  margin: 0 auto 56px;
  padding: 32px 36px;
  border-left: 4px solid var(--brand-cyan);
  background: var(--bg-card);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-cyan);
}

.lead-paragraph {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.lead-paragraph.secondary-lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- PARTS NAVIGATION RIBBON --- */
.parts-nav-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 auto 72px;
  max-width: var(--max-width-wide);
}

.ribbon-item {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.ribbon-item:hover {
  background: var(--bg-card);
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ribbon-index {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ribbon-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* --- ARTICLE PART SECTIONS --- */
.article-part-section {
  margin-bottom: 110px;
  position: relative;
}

.part-header-wrapper {
  max-width: var(--max-width-text);
  margin: 0 auto 40px;
  text-align: left;
}

.part-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.part-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-cyan), transparent);
  border-radius: 2px;
}

/* Prose Paragraphs */
.prose-content {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.prose-p {
  font-size: 19px;
  line-height: 1.84;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-align: justify;
}

/* --- EDITORIAL PULLQUOTES --- */
.editorial-pullquote {
  position: relative;
  margin: 40px 0 44px;
  padding: 30px 36px 28px 48px;
  background: var(--bg-card);
  border-left: 5px solid var(--brand-amber);
  border-radius: 0 16px 16px 0;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.quote-mark {
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 64px;
  line-height: 1;
  font-family: var(--font-serif);
  color: var(--brand-amber);
  opacity: 0.4;
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.65;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.quote-author {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand-amber);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* --- EDITORIAL IMAGES --- */
.editorial-photo-full {
  max-width: var(--max-width-wide);
  margin: 54px auto;
}

.photo-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.editorial-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-wrapper:hover .editorial-img {
  transform: scale(1.02);
}

.photo-caption {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 14px;
  padding: 0 12px;
  border-left: 3px solid var(--border-subtle);
  font-style: italic;
}


/* ==========================================================================
   INFOGRAPHICS SYSTEM - BÁO CHÍ DỮ LIỆU
   Quy tắc nghiêm ngặt: Toàn bộ chữ trong infographic >= 18px!
   ========================================================================== */
.infographic-container {
  max-width: var(--max-width-wide);
  margin: 64px auto;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
}

.infographic-header {
  padding: 36px 40px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.infographic-tag {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px theo yêu cầu */
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.infographic-heading {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.infographic-subheading {
  font-size: 18px; /* Tối thiểu 18px */
  color: var(--text-secondary);
  line-height: 1.5;
}

.infographic-body {
  padding: 36px 40px 40px;
}

.infographic-footer {
  padding: 18px 40px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.footer-source {
  font-size: 18px; /* Tối thiểu 18px */
  color: var(--text-muted);
  font-style: italic;
}


/* --- INFOGRAPHIC 01: TÁI CẤU TRÚC VÀ ĐIỀU HÀNH --- */
.data-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 30px;
}

.block-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.block-title {
  font-family: var(--font-heading);
  font-size: 20px; /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
}

.block-badge-highlight {
  font-size: 18px; /* >= 18px */
  font-weight: 700;
  color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.reorg-visual-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

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

.reorg-node.new-state {
  border-color: var(--border-active);
  background: rgba(56, 189, 248, 0.05);
}

.node-label {
  display: block;
  font-size: 18px; /* >= 18px */
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.node-big-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.node-big-number.highlight-accent {
  color: var(--brand-cyan);
}

.node-unit {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-secondary);
  font-weight: 500;
}

.reorg-arrow-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--brand-cyan);
}

.arrow-svg {
  width: 44px;
  height: 44px;
}

.arrow-text {
  font-size: 18px; /* >= 18px */
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ratio-bar-wrapper {
  margin-top: 16px;
}

.ratio-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ratio-text-left, .ratio-text-right {
  font-size: 18px; /* >= 18px */
  font-weight: 600;
  color: var(--text-secondary);
}

.ratio-text-right {
  color: var(--brand-amber);
}

.ratio-track {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.ratio-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Grid 2 cột cho Quy trình & Thủ tục số */
.data-block-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

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

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--brand-cyan);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 20px; /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
}

.metrics-pair {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.metric-item {
  border-left: 4px solid var(--brand-blue);
  padding-left: 16px;
}

.metric-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
}

.metric-num.highlight-cyan {
  color: var(--brand-cyan);
}

.metric-desc {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

.stacked-bar-container {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.stacked-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.stacked-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px; /* >= 18px */
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-color-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-color-box.active {
  background: var(--brand-cyan);
}

.legend-color-box.other {
  background: #64748b;
}

.stacked-bar-track {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  overflow: hidden;
}

.stacked-bar-segment.segment-primary {
  background: var(--brand-cyan);
  transition: width 1.2s ease-out;
}

.stacked-bar-segment.segment-secondary {
  background: #64748b;
  transition: width 1.2s ease-out;
}

/* Records Grid */
.records-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.record-stat-box {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.record-stat-box.accent-box {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.04);
}

.stat-badge {
  display: inline-block;
  font-size: 18px; /* >= 18px */
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 10px;
}

.stat-badge.special {
  color: var(--brand-amber);
}

.stat-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.stat-huge-num {
  font-family: var(--font-heading);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-huge-num.highlight-amber {
  color: var(--brand-amber);
}

.stat-suffix {
  font-size: 20px; /* >= 18px */
  font-weight: 700;
  color: var(--text-secondary);
}

.stat-note {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-muted);
  line-height: 1.45;
}


/* --- INFOGRAPHIC 02: TỪ CÔNG DÂN ĐẾN XÃ HỘI SỐ --- */
.infographic-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.data-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px;
}

.panel-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.panel-location {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px; /* >= 18px */
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.panel-theme {
  font-size: 19px; /* >= 18px */
  font-weight: 600;
  color: var(--text-primary);
}

.gauge-display-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 30px;
}

.svg-radial-container {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.radial-gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-bg {
  stroke: rgba(255, 255, 255, 0.08);
}

.gauge-progress {
  stroke: var(--brand-emerald);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.radial-prefix {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-muted);
  font-weight: 600;
}

.radial-percent {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--brand-emerald);
  line-height: 1;
}

.gauge-desc {
  display: block;
  font-size: 19px; /* >= 18px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

.single-stat-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-card);
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.big-metric-val {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1;
}

.stat-headline {
  display: block;
  font-size: 19px; /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-detail {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-muted);
  line-height: 1.45;
}

/* Ecosystem List */
.digital-ecosystem-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  transition: var(--transition-smooth);
}

.eco-item:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
}

.eco-badge {
  display: inline-block;
  font-size: 18px; /* >= 18px */
  font-weight: 700;
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.eco-badge.app-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
}

.eco-badge.culture-badge {
  color: var(--brand-amber);
  background: rgba(245, 158, 11, 0.14);
}

.eco-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 19px; /* >= 18px */
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.eco-desc {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-secondary);
  line-height: 1.45;
}


/* --- INFOGRAPHIC 03: ĐỐI SÁNH THỰC TIỄN 3 ĐỊA PHƯƠNG --- */
.locality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.locality-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.locality-header {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

.locality-badge {
  font-family: var(--font-heading);
  font-size: 18px; /* >= 18px */
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  margin-bottom: 6px;
}

.locality-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.locality-sub {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-muted);
  line-height: 1.4;
}

.locality-stats-list {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
}

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

.loc-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.loc-stat-label {
  font-size: 18px; /* >= 18px */
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
}

.loc-stat-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.loc-stat-val.highlight-green { color: var(--brand-emerald); }
.loc-stat-val.highlight-cyan { color: var(--brand-cyan); }
.loc-stat-val.highlight-amber { color: var(--brand-amber); }
.loc-stat-val.highlight-blue { color: var(--brand-blue); }

.loc-stat-caption {
  display: block;
  font-size: 18px; /* >= 18px */
  color: var(--text-muted);
  line-height: 1.4;
}

.progress-line-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-line-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-line-fill.green { background: var(--brand-emerald); }
.progress-line-fill.cyan { background: var(--brand-cyan); }
.progress-line-fill.blue { background: var(--brand-blue); }

.highlight-box-item {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.04);
}

.village-device-row {
  margin-top: 8px;
}

.device-tag {
  display: inline-block;
  font-size: 18px; /* >= 18px */
  font-weight: 800;
  color: var(--brand-cyan);
  margin-right: 8px;
}

.device-desc {
  font-size: 18px; /* >= 18px */
  color: var(--text-secondary);
}


/* --- AUTHOR SIGNATURE BLOCK --- */
.author-signature-block {
  margin-top: 60px;
  padding-top: 24px;
  text-align: right;
}

.signature-line {
  width: 120px;
  height: 2px;
  background: var(--border-subtle);
  margin-left: auto;
  margin-bottom: 16px;
}

.byline-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.byline-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-cyan);
}


/* --- EDITORIAL FOOTER --- */
.editorial-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  display: block;
  margin-bottom: 8px;
}

.brand-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.back-to-top-btn:hover {
  background: var(--brand-cyan);
  color: #0b111e;
  transform: translateY(-2px);
}


/* --- ANIMATION & SCROLL-TRIGGER SYSTEM --- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.kicker-tag.animate-in { animation-delay: 0.1s; }
.main-title.animate-in { animation-delay: 0.25s; }
.article-meta-card.animate-in { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-element {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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


/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .parts-nav-ribbon {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .data-block-grid-two {
    grid-template-columns: 1fr;
  }
  
  .locality-grid {
    grid-template-columns: 1fr;
  }
  
  .infographic-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  body {
    font-size: 18px; /* Vẫn đảm bảo >= 16px */
    line-height: 1.75;
  }

  .hero-cover {
    min-height: 82vh;
    padding: 80px 18px 40px;
  }

  .main-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .article-meta-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    width: 100%;
  }

  .meta-divider {
    display: none;
  }

  .article-lead-container {
    padding: 24px 20px;
    margin-bottom: 40px;
  }

  .lead-paragraph {
    font-size: 20px;
  }

  .lead-paragraph.secondary-lead {
    font-size: 18px;
  }

  .reorg-visual-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reorg-arrow-indicator {
    transform: rotate(90deg);
    margin: 8px 0;
  }

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

  .gauge-display-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .infographic-header, .infographic-body, .infographic-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .data-block {
    padding: 20px 18px;
  }

  .data-panel {
    padding: 20px 18px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top-btn {
    width: 100%;
    justify-content: center;
  }

  /* Đảm bảo cỡ chữ infographic luôn >= 18px ngay cả trên mobile */
  .block-title,
  .node-label,
  .node-unit,
  .ratio-text-left,
  .ratio-text-right,
  .card-title,
  .metric-desc,
  .stacked-legend-item,
  .stat-badge,
  .stat-suffix,
  .stat-note,
  .panel-location,
  .panel-theme,
  .gauge-desc,
  .stat-headline,
  .stat-detail,
  .eco-badge,
  .eco-title,
  .eco-desc,
  .locality-badge,
  .locality-sub,
  .loc-stat-label,
  .loc-stat-caption,
  .device-tag,
  .device-desc,
  .footer-source,
  .infographic-tag,
  .infographic-subheading {
    font-size: 18px !important;
  }
}
