/* ==========================================================================
   E-MAGAZINE LONGFORM: HÀ NỘI TĂNG TỐC NGUỒN CUNG NHÀ Ở
   Typography: Plus Jakarta Sans & Inter (Tiêu đề, Nhãn, Body)
   Numbers & Data: Space Grotesk & Outfit (Đậm, Tương phản cao, Đọc tức thì)
   Infographics: Giàu tính dữ liệu, biểu đồ, sơ đồ luồng, ít chữ, font >= 18px
   Tối ưu màu chữ siêu sắc nét & Responsive hoàn hảo cho Mobile / Iframe
   ========================================================================== */

/* --- RESET & DESIGN TOKENS --- */
:root {
  /* Color Palette - Tương phản cao, sắc nét */
  --color-primary: #044434;          /* Deep Forest Emerald */
  --color-primary-light: #0d9488;    /* Teal Green */
  --color-primary-dark: #022019;     /* Midnight Emerald */
  --color-accent-lane: #059669;      /* Strong Lane Green */
  --color-accent-cyan: #0284c7;      /* Vivid Data Cyan */
  --color-accent-amber: #d97706;     /* Regulatory Amber */
  --color-accent-gold: #f59e0b;      /* Data Gold */
  
  --color-bg: #f8fafc;              /* Slate light background */
  --color-card-bg: #ffffff;         /* Pure white cards */
  --color-card-dark: #071a17;       /* Data dashboard dark */
  
  /* Màu chữ siêu sắc nét (Crystal Clear & Ultra High Contrast) */
  --color-text-main: #020617;       /* Rich Deep Black (Slate 950) */
  --color-text-body: #1e293b;       /* Crisp Deep Slate (Slate 800) */
  --color-text-muted: #334155;      /* Dark Secondary Text (Slate 700) */
  --color-text-light: #f8fafc;      /* Pure Light Text */
  
  --color-border: #cbd5e1;          /* Sharper visible border */
  --color-border-dark: #1e3a35;     /* Dark container border */
  
  /* Modern Typography Tokens */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-data: 'Space Grotesk', 'Outfit', sans-serif;
  --font-number: 'Outfit', 'Space Grotesk', sans-serif;
  
  /* Sizing & Spacing */
  --content-max-width: 820px;
  --infographic-max-width: 1160px;
  --reading-font-size: 19px;
  --reading-line-height: 1.85;
  
  /* Shadows & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 20px 45px rgba(4, 68, 52, 0.14);
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: var(--reading-line-height);
  font-size: var(--reading-font-size);
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
}

/* --- READING PROGRESS BAR --- */
#reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(203, 213, 225, 0.7);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

#reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0d9488, #10b981, #34d399, #f59e0b);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
}

/* Minimal Top Masthead */
.magazine-masthead {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  color: #ffffff;
}

.masthead-tag {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

.masthead-date {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- HERO COVER --- */
.hero-cover {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 32px 75px;
  background-image: linear-gradient(
    to bottom,
    rgba(2, 44, 34, 0.25) 0%,
    rgba(2, 44, 34, 0.65) 45%,
    rgba(2, 44, 34, 0.95) 85%,
    #022c22 100%
  ), url('hero-hanoi.jpg');
  background-size: cover;
  background-position: center 38%;
  background-attachment: fixed;
  color: #ffffff;
  overflow: hidden;
}

.hero-inner {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-badge-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 26px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight-lane {
  color: #ffffff;
  font-weight: 800;
}

.hero-title .highlight-number {
  font-family: var(--font-number);
  color: #fcd34d;
  font-weight: 900;
}

.hero-meta-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 20px;
  flex-wrap: wrap;
}

.hero-author {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.hero-reading-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #f1f5f9;
}

/* --- SAPO SECTION (LEAD) --- */
.sapo-wrapper {
  background: #022c22;
  color: #ffffff;
  padding: 20px 24px 70px;
  position: relative;
}

.sapo-box {
  max-width: var(--content-max-width);
  margin: 0 auto;
  border-left: 4px solid var(--color-accent-lane);
  padding-left: 28px;
}

.sapo-lead-1 {
  font-family: var(--font-heading);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.65;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sapo-lead-2 {
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.75;
  color: #e2e8f0;
  font-weight: 400;
}

/* Quick Stats Strip with Outfit / Space Grotesk */
.sapo-stat-strip {
  max-width: 1060px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.strip-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 20px 16px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: var(--transition-smooth);
}

.strip-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: #34d399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.strip-num {
  font-family: var(--font-number);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 900;
  color: #34d399;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.strip-label {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #f8fafc;
  line-height: 1.35;
  font-weight: 700;
}

/* --- MAIN ARTICLE CONTAINER --- */
.article-main {
  position: relative;
  z-index: 10;
}

.story-section {
  padding: 70px 24px;
}

.story-section:nth-of-type(even) {
  background-color: #ffffff;
}

.story-section:nth-of-type(odd) {
  background-color: var(--color-bg);
}

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

/* --- SECTION HEADERS --- */
.section-header-block {
  margin-bottom: 40px;
  position: relative;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-headline {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  color: var(--color-text-main);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* --- EDITORIAL PARAGRAPHS & DROPCAP (SIÊU SẮC NÉT) --- */
.story-p {
  font-size: var(--reading-font-size);
  line-height: var(--reading-line-height);
  color: var(--color-text-body);
  margin-bottom: 26px;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.drop-cap::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 78px;
  line-height: 64px;
  padding-top: 4px;
  padding-right: 14px;
  padding-bottom: 2px;
  color: var(--color-primary);
  font-weight: 800;
}

/* Editorial Quotes */
.editorial-quote-box {
  margin: 40px 0;
  padding: 28px 32px;
  background: #f0fdf4;
  border-left: 5px solid var(--color-accent-lane);
  border-radius: 0 14px 14px 0;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.6;
  color: #022c22;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.quote-author {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #334155;
}

/* ==========================================================================
   3 INFOGRAPHICS GIÀU TÍNH DỮ LIỆU & BIỂU ĐỒ - CỠ CHỮ TỐI THIỂU 18px!
   ========================================================================== */

.infographic-wrapper {
  max-width: var(--infographic-max-width);
  margin: 50px auto 60px;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  position: relative;
}

.infographic-header {
  padding: 26px 34px 20px;
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 3.5px solid var(--color-accent-lane);
}

.infographic-title-wrap {
  flex: 1;
  min-width: 260px;
}

.infographic-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.infographic-title {
  font-family: var(--font-heading);
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.25;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.infographic-source {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 7px 18px;
  border-radius: 30px;
  white-space: nowrap;
}

.infographic-body {
  padding: 34px;
}

/* ==========================================================================
   INFOGRAPHIC 1: BIỂU ĐỒ TIẾN TRÌNH & SƠ ĐỒ LUỒNG ĐỒ HỌA
   ========================================================================== */
.chart-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.chart-gauge-card {
  background: #f8fafc;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.chart-gauge-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-lane);
  box-shadow: var(--shadow-md);
}

.chart-metric-num {
  font-family: var(--font-number);
  font-size: clamp(42px, 4.2vw, 56px);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.chart-metric-num.amber {
  color: #b45309;
}

.chart-metric-num.cyan {
  color: #0369a1;
}

.chart-metric-label {
  font-family: var(--font-heading);
  font-size: 19px; /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.chart-visual-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px auto;
  max-width: 90%;
}

.chart-visual-fill {
  height: 100%;
  border-radius: 8px;
  background: var(--color-accent-lane);
}

.fill-50 { width: 50%; }
.fill-20 { width: 40%; background: #f59e0b; }
.fill-10 { width: 20%; background: #0284c7; }

.chart-metric-sub {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Timeline Horizontal Bar Visuals */
.visual-pipeline-box {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 30px;
}

.pipeline-header-label {
  font-family: var(--font-heading);
  font-size: 20px; /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pipeline-compare-row {
  margin-bottom: 22px;
}

.pipeline-compare-row:last-child {
  margin-bottom: 0;
}

.compare-row-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.compare-title {
  font-family: var(--font-heading);
  font-size: 19px; /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--color-text-main);
}

.compare-badge {
  font-family: var(--font-data);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 6px;
}

.badge-slow {
  background: #fee2e2;
  color: #991b1b;
}

.badge-fast {
  background: #dcfce7;
  color: #166534;
}

.pipeline-bar-wrapper {
  height: 52px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.pipeline-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  color: #ffffff;
  border-radius: 12px;
  white-space: nowrap;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-slow {
  width: 90%;
  background: linear-gradient(90deg, #dc2626, #991b1b);
}

.bar-fast {
  width: 42%;
  background: linear-gradient(90deg, #059669, #047857);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.45);
}

/* Sơ đồ Node Flow Đồ họa */
.flow-nodes-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.node-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 22px 24px;
}

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

.node-box-title {
  font-family: var(--font-heading);
  font-size: 20px; /* Tối thiểu 18px */
  font-weight: 800;
  color: #022c22;
}

.node-flow-diagram {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.flow-pill {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.pill-step1 {
  background: #dcfce7;
  color: #14532d;
}

.pill-step2 {
  background: #e0f2fe;
  color: #0369a1;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: #047857;
}

/* ==========================================================================
   INFOGRAPHIC 2: HỆ THỐNG ĐIỀU HÀNH & TAM GIÁC AN CƯ BỀN VỮNG
   ========================================================================== */
.data-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.dashboard-panel-left, .dashboard-panel-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Panel Phân luồng Hệ thống */
.system-filter-card {
  background: #f8fafc;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 26px 28px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 20px; /* Tối thiểu 18px */
  font-weight: 800;
  color: #022c22;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-badge-cadence {
  font-family: var(--font-data);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #fde68a;
}

.stream-splitter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stream-node {
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.node-green {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
}

.node-amber {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
}

.stream-info-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stream-status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.dot-green { background: #059669; box-shadow: 0 0 8px #059669; }
.dot-amber { background: #d97706; box-shadow: 0 0 8px #d97706; }

.stream-name {
  font-family: var(--font-heading);
  font-size: 19px; /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--color-text-main);
}

.stream-action-pill {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.action-green {
  background: #059669;
  color: #ffffff;
}

.action-amber {
  background: #b45309;
  color: #ffffff;
}

.authority-matrix-box {
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.authority-level {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--color-text-main);
}

/* Tam Giác 3 Trụ Cột Đồ Họa Cao Cấp */
.triangle-panel {
  background: linear-gradient(145deg, #051a16 0%, #03120f 100%);
  border: 1.5px solid #134e43;
  border-radius: 16px;
  padding: 26px 24px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.triangle-panel-title {
  font-family: var(--font-heading);
  font-size: 21px; /* Tối thiểu 18px */
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.svg-triangle-wrap {
  margin: 10px auto 16px;
  max-width: 320px;
}

.pillar-meter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meter-card {
  background: rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--color-accent-lane);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meter-card.gold {
  border-left-color: #f59e0b;
}

.meter-card.cyan {
  border-left-color: #06b6d4;
}

.meter-name {
  font-family: var(--font-heading);
  font-size: 19px; /* Tối thiểu 18px */
  font-weight: 800;
  color: #ffffff;
}

.meter-tag {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 600;
  color: #e2e8f0;
}

/* ==========================================================================
   INFOGRAPHIC 3: CHIẾN DỊCH 114 DỰ ÁN & MA TRẬN ĐỐI ỨNG HAI CHIỀU
   ========================================================================== */
.goal-kpi-banner {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.kpi-block-num {
  font-family: var(--font-number);
  font-size: clamp(44px, 4.5vw, 62px);
  font-weight: 900;
  color: #34d399;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.kpi-block-label {
  font-family: var(--font-heading);
  font-size: 19px; /* Tối thiểu 18px */
  font-weight: 700;
  color: #ffffff;
}

.kpi-divider-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fcd34d;
}

/* Accountability Dual Grid (Checklist & Stat Badge) */
.accountability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.acc-card {
  border-radius: 16px;
  padding: 26px;
  border: 1.5px solid;
}

.acc-gov {
  background: #f8fafc;
  border-color: var(--color-border);
}

.acc-biz {
  background: #fefce8;
  border-color: #fde047;
}

.acc-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
}

.acc-gov .acc-card-header { border-color: #64748b; }
.acc-biz .acc-card-header { border-color: #d97706; }

.acc-role-title {
  font-family: var(--font-heading);
  font-size: 21px; /* Tối thiểu 18px */
  font-weight: 800;
  color: var(--color-text-main);
}

.acc-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
}

.acc-item-name {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-badge-value {
  font-family: var(--font-data);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-green-val {
  background: #dcfce7;
  color: #14532d;
}

.badge-gold-val {
  background: #fef3c7;
  color: #92400e;
}

/* Chuyển dịch Tư duy Dashboard Ticker */
.mindset-toggle-banner {
  background: #0f172a;
  border-radius: 14px;
  padding: 24px 30px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mindset-side {
  flex: 1;
  min-width: 240px;
}

.mindset-tag {
  font-family: var(--font-heading);
  font-size: 18px; /* Tối thiểu 18px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.tag-old { color: #94a3b8; }
.tag-new { color: #34d399; }

.mindset-val {
  font-family: var(--font-heading);
  font-size: 20px; /* Tối thiểu 18px */
  font-weight: 800;
  line-height: 1.35;
}

.val-old {
  color: #cbd5e1;
  text-decoration: line-through;
  opacity: 0.8;
}

.val-new {
  color: #ffffff;
}

.mindset-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
}

/* --- ARTICLE FOOTER & AUTHOR SIGNATURE --- */
.article-footer {
  background: #022c22;
  color: #ffffff;
  padding: 80px 24px 60px;
  position: relative;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.author-signature-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.author-role {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #cbd5e1;
  font-weight: 600;
}

.copyright-note {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
}

/* --- SCROLL REVEAL ANIMATION --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Phục vụ iframe: khi được gắn class .in-iframe, hiển thị mượt mà không bị kẹt ẩn */
body.in-iframe .reveal-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN CHO TABLET & MOBILE (TỐI ƯU CHO MÀN HÌNH NHỎ & IFRAME)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --reading-font-size: 18px;
  }
  .data-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .chart-comparison-grid {
    grid-template-columns: 1fr;
  }
  .sapo-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .goal-kpi-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .kpi-divider-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --reading-font-size: 17px;
    --reading-line-height: 1.75;
  }

  body {
    font-size: 17px;
    line-height: 1.75;
  }

  .magazine-masthead {
    padding: 14px 16px;
  }

  .masthead-date {
    font-size: 14px;
  }

  .hero-cover {
    min-height: auto;
    padding: 70px 16px 40px;
    background-attachment: scroll;
    background-position: center center;
  }

  .hero-title {
    font-size: clamp(25px, 6.6vw, 36px);
    line-height: 1.25;
    margin-bottom: 20px;
  }

  .hero-meta-bar {
    gap: 12px;
    font-size: 14.5px;
    padding-top: 16px;
  }

  .sapo-wrapper {
    padding: 16px 14px 40px;
  }

  .sapo-box {
    padding-left: 14px;
    border-left-width: 3.5px;
  }

  .sapo-lead-1 {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .sapo-lead-2 {
    font-size: 16.5px;
    line-height: 1.65;
  }

  .sapo-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
  }

  .strip-card {
    padding: 14px 10px;
    border-radius: 10px;
  }

  .strip-num {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .strip-label {
    font-size: 14px;
    line-height: 1.3;
  }

  .story-section {
    padding: 40px 16px;
  }

  .section-header-block {
    margin-bottom: 25px;
  }

  .section-headline {
    font-size: 24px;
    line-height: 1.3;
  }

  .story-p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .drop-cap::first-letter {
    font-size: 56px;
    line-height: 48px;
    padding-right: 10px;
  }

  .editorial-quote-box {
    margin: 26px 0;
    padding: 18px 16px;
    border-left-width: 4px;
  }

  .quote-text {
    font-size: 18px;
    line-height: 1.55;
  }

  .quote-author {
    font-size: 15.5px;
  }

  /* Infographic Mobile General */
  .infographic-wrapper {
    margin: 30px 0 40px;
    border-radius: 14px;
    border-width: 1px;
  }

  .infographic-header {
    padding: 18px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .infographic-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .infographic-source {
    font-size: 14px;
    padding: 4px 12px;
    align-self: flex-start;
  }

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

  /* Infographic 1 Mobile */
  .chart-comparison-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chart-gauge-card {
    padding: 16px 14px;
  }

  .chart-metric-num {
    font-size: 38px;
  }

  .chart-metric-label {
    font-size: 18px;
  }

  .chart-metric-sub {
    font-size: 16px;
  }

  .visual-pipeline-box {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .pipeline-header-label {
    font-size: 18px;
  }

  .compare-row-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }

  .compare-title {
    font-size: 16.5px;
  }

  .compare-badge {
    font-size: 14px;
    padding: 3px 8px;
    align-self: flex-start;
  }

  .pipeline-bar-wrapper {
    height: auto;
    min-height: 46px;
  }

  .pipeline-bar-fill {
    width: 100% !important;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
  }

  .flow-nodes-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .node-box {
    padding: 16px 14px;
  }

  .node-box-title {
    font-size: 18px;
  }

  .node-flow-diagram {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: center;
  }

  .flow-pill {
    font-size: 15.5px;
    padding: 7px 10px;
    white-space: normal;
    text-align: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-content: center;
    margin: 2px 0;
  }

  /* Infographic 2 Mobile */
  .data-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .system-filter-card {
    padding: 16px 14px;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .panel-title {
    font-size: 18px;
  }

  .panel-badge-cadence {
    font-size: 14.5px;
    padding: 4px 10px;
    align-self: flex-start;
  }

  .stream-node {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px;
  }

  .stream-name {
    font-size: 17px;
  }

  .stream-action-pill {
    font-size: 14.5px;
    padding: 5px 12px;
    align-self: flex-start;
  }

  .authority-matrix-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px;
  }

  .authority-level {
    font-size: 14.5px;
    line-height: 1.35;
  }

  .triangle-panel {
    padding: 18px 14px;
  }

  .triangle-panel-title {
    font-size: 19px;
  }

  .meter-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }

  .meter-name {
    font-size: 16.5px;
  }

  .meter-tag {
    font-size: 14px;
  }

  /* Infographic 3 Mobile */
  .goal-kpi-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 14px;
  }

  .kpi-block-num {
    font-size: 38px;
  }

  .kpi-block-label {
    font-size: 15.5px;
  }

  .kpi-divider-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
    width: 40px;
    height: 40px;
  }

  .accountability-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .acc-card {
    padding: 18px 14px;
  }

  .acc-role-title {
    font-size: 19px;
  }

  .acc-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }

  .acc-item-name {
    font-size: 16px;
  }

  .acc-badge-value {
    font-size: 14px;
    padding: 3px 10px;
    align-self: flex-start;
  }

  .mindset-toggle-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 18px 14px;
  }

  .mindset-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
    width: 40px;
    height: 40px;
  }

  .mindset-val {
    font-size: 16.5px;
    line-height: 1.35;
  }

  .article-footer {
    padding: 50px 16px 36px;
  }

  .author-signature-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .sapo-stat-strip {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 24px;
  }
}
