/* ==========================================================================
   FIELD NEWS · SỐ 06 (THÁNG 10/2026) — BÁO CÁO VĨ MÔ BÌNH DÂN HỌC VỤ
   Giao diện Nền Sáng Biên Tập (Warm Light Editorial) · Hồ Văn Lợi / SWC
   ========================================================================== */

:root {
  interpolate-size: allow-keywords;
  color-scheme: light;

  /* Bảng màu Nền Sáng Tạp Chí (Warm Daylight Paper + SWC Emerald) */
  --bg-paper: #faf8f3;
  --bg-sand: #f3efe6;
  --bg-white: #ffffff;
  --bg-mint: #eef6f2;
  --bg-amber: #fffbeb;
  --bg-rose: #fef2f2;
  --bg-sky: #f0f9ff;

  --ink-strong: #13221b;
  --ink-body: #2a3932;
  --ink-muted: #5b6b63;
  --ink-soft: #7c8b83;

  --swc-green: #0d4a38;
  --swc-green-mid: #14634c;
  --swc-green-light: #d7ebe3;
  --amber-accent: #b45309;
  --amber-border: #fcd34d;
  --up-green: #057a55;
  --down-red: #c81e1e;
  --blue-accent: #0369a1;

  --line-soft: #e5e0d4;
  --line-strong: #cfc8b8;

  --shadow-card: 0 8px 28px rgba(19, 34, 27, 0.05), 0 1px 3px rgba(19, 34, 27, 0.04);
  --shadow-float: 0 18px 44px rgba(19, 34, 27, 0.11);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-serif: "Newsreader", "Literata", Georgia, serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-paper);
  color: var(--ink-body);
}

body {
  margin: 0;
  background: var(--bg-paper);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

/* Thanh tiến độ đọc trang ở trên cùng (CSS Scroll-Driven Animation + Fallback) */
#scrollProgress {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--swc-green), #10b981, #f59e0b);
  z-index: 10050;
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-reading-progress {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    #scrollProgress {
      animation: grow-reading-progress auto linear;
      animation-timeline: scroll(root block);
    }
  }
}

/* Thanh điều hướng ghim sáng sủa */
.top-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 248, 243, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.top-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--swc-green);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(13, 74, 56, 0.22);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--swc-green);
}

.brand-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-strong);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-switch {
  display: inline-flex;
  background: var(--bg-sand);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.mode-btn.is-active {
  background: var(--bg-white);
  color: var(--swc-green);
  box-shadow: 0 2px 6px rgba(19, 34, 27, 0.08);
}

.iq-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-mint);
  border: 1px solid var(--swc-green-light);
  color: var(--swc-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.dict-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-amber);
  border: 1px solid var(--amber-border);
  color: var(--amber-accent);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dict-open-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.14);
}

/* Chế độ chỉ xem nguyên bản: ẩn lớp bình dân học vụ khi người đọc muốn đối chiếu nhanh */
body.mode-original-only .bdhv-layer {
  display: none;
}

/* HERO BÌA BÁO CÁO SỐ 06 */
.hero-cover {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 0 20px;
}

.hero-grid {
  background: linear-gradient(135deg, #ffffff 0%, #f5f1e6 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  gap: 36px;
  align-items: center;
}

.issue-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-mint);
  color: var(--swc-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.issue-tag::before {
  content: "■";
  font-size: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  line-height: 1.14;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-title span.hl {
  color: var(--swc-green);
}

.hero-welcome-box {
  background: var(--bg-amber);
  border: 1px solid var(--amber-border);
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0 22px;
}

.hero-welcome-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--amber-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-welcome-box p {
  margin: 0;
  font-size: 14.8px;
  color: #5c3409;
  line-height: 1.62;
}

.hero-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hq-card {
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}

.hq-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.hq-num.down { color: var(--down-red); }
.hq-num.up { color: var(--up-green); }
.hq-num.neutral { color: var(--swc-green); }

.hq-lbl {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.cover-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 38px rgba(13, 74, 56, 0.14);
  background: #e9e2d2;
  max-width: 380px;
  margin: 0 auto;
}

.cover-card img {
  display: block;
  width: 100%;
  height: auto;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 18px;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.88) 0%, rgba(250, 248, 243, 0.55) 65%, transparent 100%);
  text-align: center;
}

.cover-swc-top {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--swc-green);
  color: var(--swc-green);
  background: rgba(255, 255, 255, 0.85);
}

.cover-overlay-title {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0e2e22;
  margin: 14px 0 2px;
}

.cover-overlay-title span {
  color: #4f674f;
}

.cover-overlay-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0e2e22;
}

/* BỐ CỤC 2 CỘT: SIDEBAR MỤC LỤC + DÒNG BÀI ĐỌC */
.page-shell {
  max-width: 1280px;
  margin: 32px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 128px;
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  max-height: calc(100vh - 144px);
  overflow-y: auto;
}

.toc-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--swc-green);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc-link:hover {
  background: var(--bg-sand);
  color: var(--ink-strong);
}

.toc-link.is-active {
  background: var(--bg-mint);
  color: var(--swc-green);
  font-weight: 700;
}

.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--swc-green);
  flex: none;
  min-width: 22px;
  padding-top: 1px;
}

.toc-done-dot {
  margin-left: auto;
  color: var(--up-green);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.toc-link.is-learned .toc-done-dot {
  opacity: 1;
}

/* DÒNG NỘI DUNG CHÍNH */
.report-stream {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* KHỐI BÀI BÁO CÁO (MỖI TRANG PDF LÀ 1 REPORT-CARD RÕ RÀNG) */
.report-card {
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 148px;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.swc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--swc-green);
}

.swc-kicker::before {
  content: "■";
  font-size: 10px;
}

.page-ref-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-page-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-sand);
  padding: 4px 10px;
  border-radius: 999px;
}

.learn-check-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-white);
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.learn-check-btn:hover {
  border-color: var(--swc-green);
  color: var(--swc-green);
}

.learn-check-btn.is-done {
  background: var(--bg-mint);
  border-color: var(--swc-green);
  color: var(--swc-green);
  font-weight: 700;
}

.article-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 22px;
  letter-spacing: -0.015em;
}

/* KHỐI NGUYÊN BẢN BÁO CÁO SWC (100% VERBATIM) */
.verbatim-block {
  position: relative;
  background: #fdfcf9;
  border: 1px solid #e8e3d7;
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.verbatim-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--swc-green);
  background: var(--bg-mint);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.verbatim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 26px;
  align-items: start;
}

.verbatim-grid.photo-left {
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
}

.verbatim-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.verbatim-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.verbatim-block p {
  margin: 0 0 14px;
  color: var(--ink-body);
  font-size: 16px;
  line-height: 1.75;
}

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

.swc-bullet-list {
  list-style: none;
  margin: 10px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swc-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.8px;
  line-height: 1.65;
  color: var(--ink-strong);
}

.swc-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--swc-green);
  font-weight: 800;
}

.editorial-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-sand);
}

.editorial-figure.wide-banner {
  margin-bottom: 20px;
}

.editorial-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.editorial-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--bg-sand);
  border-top: 1px solid var(--line-soft);
}

/* CÁC Ô SỐ LIỆU GỐC TRONG BÁO CÁO (STAT STRIP) */
.swc-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0;
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.swc-stat-row.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swc-stat-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--line-soft);
}

.swc-stat-cell:last-child {
  border-right: none;
}

.swc-stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 800;
  color: var(--swc-green);
  line-height: 1.15;
  margin-bottom: 5px;
}

.swc-stat-lbl {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* KHUNG KẾT LUẬN MÀU XANH ĐẶC TRƯNG CỦA FIELD NEWS ("ĐIỀU NÀY CÓ NGHĨA GÌ VỚI BẠN") */
.swc-green-takeaway {
  margin-top: 20px;
  background: linear-gradient(90deg, #eaf4ef 0%, #f5faf7 100%);
  border: 1px solid #c5dfd3;
  border-left: 5px solid var(--swc-green);
  border-radius: 12px;
  padding: 18px 22px;
}

.swc-green-takeaway.solid-dark {
  background: var(--swc-green);
  border-color: var(--swc-green);
  color: #ffffff;
  border-radius: 16px;
  padding: 22px 26px;
}

.swc-takeaway-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--swc-green);
  margin-bottom: 7px;
}

.swc-green-takeaway.solid-dark .swc-takeaway-label {
  color: #a7f3d0;
}

.swc-green-takeaway p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #133328;
}

.swc-green-takeaway.solid-dark p {
  color: #f4fbf8;
  font-size: 16.5px;
}

/* THUẬT NGỮ BẤM ĐƯỢC NGAY TRONG VĂN BẢN (JARGON BUTTON) */
.jargon-btn {
  display: inline;
  background: linear-gradient(180deg, transparent 65%, rgba(245, 158, 11, 0.26) 65%);
  border: none;
  border-bottom: 1.5px dashed #d97706;
  padding: 0 2px;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s ease;
}

.jargon-btn:hover,
.jargon-btn:focus-visible {
  background: rgba(245, 158, 11, 0.28);
  outline: none;
}

/* ==========================================================================
   LỚP "BÌNH DÂN HỌC VỤ" & MÔ HÌNH ĐỒ HỌA TƯƠNG TÁC CHO NGƯỜI MỚI
   ========================================================================== */
.bdhv-layer {
  margin-top: 24px;
  background: linear-gradient(160deg, #fffdf7 0%, #fef8e8 100%);
  border: 1.5px solid #f3d796;
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.bdhv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.bdhv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.bdhv-analogy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analogy-card {
  background: var(--bg-white);
  border: 1px solid #ece3cd;
  border-radius: 12px;
  padding: 15px 17px;
}

.analogy-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-strong);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.analogy-card p {
  margin: 0;
  font-size: 14.4px;
  line-height: 1.62;
  color: var(--ink-body);
}

/* HỘP MÔ PHỎNG / ĐỒ HỌA CHẠY TƯƠNG TÁC */
.interactive-widget {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(19, 34, 27, 0.04);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--swc-green);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 14px;
}

.pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-sand);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill-btn:hover {
  border-color: var(--swc-green);
}

.pill-btn.is-active {
  background: var(--swc-green);
  border-color: var(--swc-green);
  color: #ffffff;
}

/* Đồ họa cột so sánh ngang */
.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 86px;
  gap: 12px;
  align-items: center;
}

.bar-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-strong);
}

.bar-track {
  position: relative;
  height: 26px;
  background: var(--bg-sand);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.bar-zero-center {
  position: relative;
  height: 26px;
  background: var(--bg-sand);
  border-radius: 8px;
  overflow: hidden;
}

.bar-zero-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #9ca3af;
  z-index: 2;
}

.bar-fill-bi {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  transition: width 0.45s ease, left 0.45s ease;
}

.bar-fill-bi.pos {
  left: 50%;
  background: linear-gradient(90deg, #10b981, #059669);
}

.bar-fill-bi.neg {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.bar-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  text-align: right;
}

.bar-val.pos { color: var(--up-green); }
.bar-val.neg { color: var(--down-red); }

/* Mô hình Bình Thông Nhau Dòng Tiền */
.rotation-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background: var(--bg-paper);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.tank-box {
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.tank-water-wrap {
  height: 110px;
  width: 100%;
  background: #f1f5f9;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  margin: 10px 0;
  display: flex;
  align-items: flex-end;
}

.tank-water {
  width: 100%;
  transition: height 0.6s ease, background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
}

.pipe-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--swc-green);
}

.pipe-stream {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-mint);
  border: 1px solid var(--swc-green);
}

/* Sơ đồ Chuỗi Nhân - Quả Domino */
.domino-chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.domino-step {
  background: var(--bg-paper);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--swc-green);
  border-radius: 10px;
  padding: 12px 13px;
  position: relative;
}

.domino-step .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--amber-accent);
  display: block;
  margin-bottom: 4px;
}

.domino-step strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.domino-step span {
  font-size: 12.8px;
  color: var(--ink-muted);
  line-height: 1.45;
  display: block;
}

/* Sơ đồ 12 Ghế Bỏ Phiếu FED (10 : 2) */
.fomc-seats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.fomc-seat {
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  border: 1.5px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.fomc-seat.pause-vote {
  background: var(--bg-mint);
  border-color: #86efac;
  color: var(--swc-green);
}

.fomc-seat.hike-vote {
  background: var(--bg-rose);
  border-color: #fca5a5;
  color: var(--down-red);
}

.fomc-seat .seat-ico {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}

/* Mô hình Chiếc Bập Bênh Trái Phiếu (Bond Seesaw) */
.seesaw-stage {
  background: var(--bg-paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px;
  margin-top: 12px;
}

.seesaw-beam-wrap {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 6px;
}

.seesaw-beam {
  width: min(480px, 92%);
  height: 10px;
  background: var(--swc-green);
  border-radius: 999px;
  position: relative;
  transition: transform 0.35s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seesaw-pan {
  width: 150px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-white);
  border: 2px solid var(--swc-green);
  text-align: center;
  transform: translateY(-38px);
  box-shadow: var(--shadow-card);
}

.seesaw-pan .pan-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  display: block;
}

.seesaw-pan .pan-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-strong);
}

.seesaw-fulcrum {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 34px solid #b45309;
}

.slider-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.slider-control input[type="range"] {
  width: 100%;
  accent-color: var(--swc-green);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* BẢY CON SỐ CỦA THÁNG (TRANG 12) */
.seven-numbers-hero {
  background: var(--bg-sand);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 18px;
}

.seven-big-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--swc-green);
  line-height: 1.05;
  margin-bottom: 8px;
}

.seven-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seven-item {
  background: var(--bg-paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
}

.seven-item .s-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--swc-green);
  margin-bottom: 6px;
}

.seven-item .s-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* CÂU HỎI CỦA THÁNG & MÁY QUÉT RỦI RO CÂU CHUYỆN (TRANG 13) */
.question-banner {
  background: #f1eadc;
  border: 1px solid #dfd4be;
  border-radius: 20px;
  padding: 38px 34px;
  margin-bottom: 20px;
}

.question-banner blockquote {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--swc-green);
}

.portfolio-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.pf-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) minmax(170px, 1.3fr) 110px 40px;
  gap: 10px;
  align-items: center;
}

.pf-input,
.pf-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-white);
  color: var(--ink-strong);
  font-family: var(--font-sans);
  font-size: 14px;
}

.pf-del-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: var(--bg-rose);
  color: var(--down-red);
  font-weight: 800;
  cursor: pointer;
}

.pf-result-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-paper);
}

.pf-result-panel.danger {
  background: var(--bg-rose);
  border-color: #f87171;
}

.pf-result-panel.safe {
  background: var(--bg-mint);
  border-color: #34d399;
}

/* TỪ ĐIỂN TÍCH LŨY (TRANG 14) */
.dict-search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}

.dict-search-input {
  flex: 1;
  min-width: 240px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-white);
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--ink-strong);
}

.dict-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dict-entry-card {
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
}

.dict-entry-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-strong);
}

.dict-issue-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-sand);
  color: var(--swc-green);
  margin-bottom: 6px;
}

.dict-bdhv-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-size: 13.8px;
  color: #78350f;
}

/* Native <details> chuẩn Accessibility + Searchable */
details.bdhv-details {
  margin-top: 14px;
  background: var(--bg-white);
  border: 1px solid #ebd59d;
  border-radius: 12px;
  overflow: hidden;
}

details.bdhv-details summary {
  list-style: none;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--amber-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

details.bdhv-details summary::-webkit-details-marker {
  display: none;
}

details.bdhv-details summary::after {
  content: "▾";
  font-size: 14px;
  transition: transform 0.2s ease;
}

details.bdhv-details[open] summary::after {
  transform: rotate(180deg);
}

details.bdhv-details .details-body {
  padding: 0 18px 16px;
  font-size: 14.5px;
  color: var(--ink-body);
  border-top: 1px solid #f5e8c7;
  padding-top: 12px;
}

/* QUIZ CỦNG CỐ NHẬN THỨC TÀI CHÍNH */
.quiz-item {
  background: var(--bg-paper);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.quiz-q {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink-strong);
  margin: 0 0 12px;
}

.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-opt-btn {
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-white);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 14.2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quiz-opt-btn:hover {
  border-color: var(--swc-green);
  background: var(--bg-mint);
}

.quiz-opt-btn.correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  font-weight: 700;
}

.quiz-opt-btn.wrong {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
}

.quiz-feedback {
  margin-top: 10px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--bg-mint);
  color: #133328;
  display: none;
}

.quiz-feedback.show {
  display: block;
}

/* Hộp thoại giải nghĩa nhanh (<dialog>) */
dialog#termDialog {
  max-width: 520px;
  width: calc(100% - 32px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 0;
  background: var(--bg-white);
  color: var(--ink-body);
  box-shadow: var(--shadow-float);
}

dialog#termDialog::backdrop {
  background: rgba(19, 34, 27, 0.42);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  padding: 24px 26px;
}

.dialog-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-accent);
  margin-bottom: 6px;
}

.dialog-term-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink-strong);
  margin: 0 0 12px;
}

.dialog-close-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.dialog-close-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: var(--swc-green);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* CHÂN TRANG BÁO CÁO */
.report-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 13.5px;
}

/* Tôn trọng người dùng nhạy cảm chuyển động */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ĐÁP ỨNG MÀN HÌNH TABLET & ĐIỆN THOẠI */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .page-shell {
    grid-template-columns: 1fr;
  }
  .toc-sidebar {
    position: static;
    max-height: none;
  }
  .toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .toc-link {
    background: var(--bg-sand);
    border-radius: 999px;
    padding: 6px 12px;
  }
}

@media (max-width: 720px) {
  .report-card {
    padding: 22px 18px;
  }
  .verbatim-block,
  .bdhv-layer {
    padding: 18px 16px;
  }
  .verbatim-grid,
  .verbatim-grid.photo-left,
  .verbatim-two-col,
  .verbatim-three-col,
  .dict-cards-grid,
  .seven-grid-6,
  .hero-quick-stats {
    grid-template-columns: 1fr;
  }
  .swc-stat-row,
  .swc-stat-row.cols-2 {
    grid-template-columns: 1fr;
  }
  .swc-stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .swc-stat-cell:last-child {
    border-bottom: none;
  }
  .bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bar-val {
    text-align: left;
  }
  .rotation-stage {
    grid-template-columns: 1fr;
  }
  .fomc-seats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pf-row {
    grid-template-columns: 1fr;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line-soft);
  }
}
