:root {
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.14);
  --card-scale: 1;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px; vertical-align: middle; line-height: 1;
}
.icon-sm { font-size: 18px; }
.icon-lg { font-size: 24px; }
.icon-xl { font-size: 28px; }

[data-theme="sage"] {
  --bg-primary: #F7F6F3; --bg-secondary: #FFFFFF; --bg-tertiary: #EDE9E3;
  --bg-accent-subtle: #E8F0E8; --text-primary: #1A2E1A; --text-secondary: #4A6B4A;
  --text-muted: #7A8F7A; --accent: #3D7A4A; --accent-hover: #2D5E38;
  --accent-light: #D4E8D4; --border: #D8D2C8; --border-light: #EBE7E0;
  --card-bg: #FFFFFF; --tag-bg: #E8F0E8; --tag-text: #3D7A4A;
  --hero-gradient: linear-gradient(135deg, #F7F6F3 0%, #E8F0E8 50%, #D4E8D4 100%);
  --nav-bg: rgba(247, 246, 243, 0.92); --tooltip-bg: #1A2E1A; --tooltip-text: #F7F6F3;
  --expansion-bg: #F2F0EB; --footer-bg: #1A2E1A; --footer-text: #C4D4C4;
  --divider: #C8C2B8; --star-color: #E8A832;
}

[data-theme="minimal"] {
  --bg-primary: #FAFAFA; --bg-secondary: #FFFFFF; --bg-tertiary: #F0F0F0;
  --bg-accent-subtle: #F5F5F5; --text-primary: #111111; --text-secondary: #444444;
  --text-muted: #888888; --accent: #111111; --accent-hover: #333333;
  --accent-light: #E5E5E5; --border: #E0E0E0; --border-light: #EEEEEE;
  --card-bg: #FFFFFF; --tag-bg: #F0F0F0; --tag-text: #444444;
  --hero-gradient: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 50%, #E5E5E5 100%);
  --nav-bg: rgba(250, 250, 250, 0.92); --tooltip-bg: #111111; --tooltip-text: #FAFAFA;
  --expansion-bg: #F5F5F5; --footer-bg: #111111; --footer-text: #999999;
  --divider: #CCCCCC; --star-color: #E8A832;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes pulseGlow { 0%,100% { box-shadow:0 0 0 0 rgba(61,122,74,0.2); } 50% { box-shadow:0 0 0 8px rgba(61,122,74,0); } }
@keyframes ensureVisible { to { opacity:1; transform:translateY(0); } }

.animate-in { opacity:0; transform:translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; animation: ensureVisible 0s 0.8s forwards; }
.animate-in.visible { opacity:1; transform:translateY(0); }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100; background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light); transition: background var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 700; font-size: 18px; color: var(--text-primary); text-decoration: none;
}
.nav-logo-icon {
  width: 34px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-logo-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12)); }
.nav-center { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-center a {
  padding: 20px 12px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition); position: relative; border-bottom: 2.5px solid transparent;
}
.nav-center a:hover { color: var(--text-primary); }
.nav-center a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-social { display: flex; align-items: center; gap: 6px; }
.nav-social-icon {
  width: 30px; height: 30px; border-radius: 6px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  color: #ffffff; transition: all var(--transition); text-decoration: none;
}
.nav-social-icon:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99; background: var(--bg-primary);
  padding: 80px 24px 24px; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 16px; border-radius: var(--radius); font-size: 16px; font-weight: 500; color: var(--text-secondary); }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px 0;
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }

/* ===== HERO (Compact/Page Level) ===== */
.hero, .page-hero {
  background: var(--hero-gradient); padding: 32px 24px 40px;
  position: relative; overflow: hidden; transition: background var(--transition); text-align: center;
}
.page-hero { text-align: left; }
.hero::before, .page-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%); opacity: 0.4; pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

.hero-breadcrumb {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted);
  margin-bottom: 12px; animation: fadeInUp 0.5s ease;
}
.hero-breadcrumb a { color: var(--text-muted); font-weight: 500; }
.hero-breadcrumb a:hover { color: var(--accent); }

.hero-badge, .page-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 100px;
  background: var(--card-bg); border: 1px solid var(--border-light); font-size: 13px;
  font-weight: 500; color: var(--text-secondary); margin-bottom: 20px; animation: fadeInUp 0.6s ease;
}
.page-hero-badge { padding: 5px 14px; font-size: 12px; margin-bottom: 16px; }
.hero-badge-dot, .page-hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulseGlow 2s infinite; }

.hero h1, .page-hero h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  line-height: 1.2; color: var(--text-primary); margin-bottom: 16px; animation: fadeInUp 0.6s ease 0.1s both;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); margin-bottom: 12px; }

.hero p, .page-hero p {
  font-family: 'Josefin Sans', sans-serif; font-size: 1.05rem; font-weight: 400;
  color: var(--text-secondary); max-width: 700px; margin: 0 auto 28px; line-height: 1.7; animation: fadeInUp 0.6s ease 0.2s both;
}
.page-hero p { font-size: 1rem; margin: 0 0 20px 0; max-width: 640px; }

.hero-actions, .page-hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s both; }
.page-hero-actions { justify-content: flex-start; gap: 10px; margin-top: 20px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--card-bg); border-bottom: 1px solid var(--border-light);
  padding: 0; transition: background var(--transition);
}
.stats-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch;
}
.stat-item {
  padding: 16px 24px; display: flex; align-items: center; gap: 10px;
  border-right: 1px solid var(--border-light); flex: 1;
}
.stat-item:last-child { border-right: none; }
.stat-icon { color: var(--accent); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--text-muted); display: block; }
.stat-value { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-primary); }

.main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== SECTIONS ===== */
.section { padding: 48px 0; }
.section-header { margin-bottom: 32px; }
.section-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 8px; }
.section-label-line { width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; max-width: 560px; }
.divider { border: none; border-top: 1.5px solid var(--divider); margin: 8px 0; }

/* ===== RESOURCE CARDS ===== */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.resource-card {
  background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 16px 20px; transition: all var(--transition); text-decoration: none; display: flex;
  align-items: flex-start; gap: 14px;
}
.resource-card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource-card-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--bg-accent-subtle);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--transition); color: var(--text-secondary);
}
.resource-card:hover .resource-card-icon { background: var(--accent); color: white; }
.resource-card-text h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.resource-card-text p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.resource-card-tag {
  margin-top: 6px; display: inline-block; padding: 2px 8px; border-radius: 100px;
  background: var(--tag-bg); color: var(--tag-text); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ===== EVIDENCE CARDS ===== */
.evidence-category { margin-bottom: 48px; }
.evidence-category-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: var(--bg-tertiary); border-radius: var(--radius-lg); margin-bottom: 16px; }
.evidence-category-header h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.evidence-category-header .material-symbols-outlined { font-size: 24px; color: var(--accent); }

.evidence-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: all var(--transition); }
.evidence-card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-md); }
.evidence-card-header { padding: 16px 20px; display: flex; align-items: flex-start; gap: 16px; cursor: pointer; user-select: none; transition: background var(--transition); }
.evidence-card-header:hover { background: var(--expansion-bg); }

.evidence-meta { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 70px; flex-shrink: 0; }
.evidence-year { font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 4px 10px; background: var(--bg-tertiary); border-radius: 6px; }
.evidence-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; background: var(--accent); color: white; }
.evidence-badge.new { background: #0891b2; }
.evidence-badge.hot { background: #dc2626; }

.star-rating { display: flex; gap: 2px; }
.star-rating .star { width: 14px; height: 14px; color: var(--star-color); }
.star-rating .star svg { width: 100%; height: 100%; fill: currentColor; }

.evidence-content { flex: 1; }
.evidence-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.4; }
.evidence-title a { color: var(--accent); }
.evidence-title a:hover { text-decoration: underline; }
.evidence-authors { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.evidence-source { font-size: 12px; color: var(--text-muted); font-style: italic; }

.evidence-expand-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tertiary); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all var(--transition); color: var(--text-muted); align-self: center; }
.evidence-expand-btn:hover { background: var(--accent); color: white; }
.evidence-expand-btn .material-symbols-outlined { font-size: 16px; transition: transform 0.3s; }
.evidence-card.expanded .evidence-expand-btn .material-symbols-outlined { transform: rotate(180deg); }

.evidence-abstract { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.evidence-card.expanded .evidence-abstract { max-height: 500px; }
.evidence-abstract-inner { padding: 0 20px 20px 106px; font-size: 13px; color: var(--text-secondary); line-height: 1.7; }

/* ===== VIDEO GRID ===== */
.videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.video-card {
  background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  overflow: hidden; transition: all var(--transition); text-decoration: none; display: block;
}
.video-card:hover { border-color: var(--accent-light); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.video-thumb {
  position: relative; background: var(--bg-tertiary); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform 0.4s ease, filter 0.3s ease; filter: brightness(0.7) blur(1.5px);
}
.video-card:hover .video-thumb img { transform: scale(1.05); filter: brightness(0.55) blur(0.5px); }
.video-thumb .play-btn {
  position: relative; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: all var(--transition);
}
.video-thumb .play-btn .material-symbols-outlined { font-size: 22px; color: var(--accent); margin-left: 2px; }
.video-card:hover .play-btn { transform: scale(1.1); }
.video-info { padding: 12px 16px; }
.video-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--text-primary); line-height: 1.4; }
.video-info p { font-size: 11px; color: var(--text-muted); }

/* ===== PDF RESOURCES ===== */
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.pdf-card {
  background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 16px 18px; transition: all var(--transition); display: flex; align-items: flex-start; gap: 14px; text-decoration: none;
}
.pdf-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateX(4px); }
.pdf-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--tag-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--accent); transition: all var(--transition);
}
.pdf-card:hover .pdf-icon { background: var(--accent); color: white; }
.pdf-info h5 { font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; line-height: 1.4; }
.pdf-info p { font-size: 12px; color: var(--text-muted); }
.pdf-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--expansion-bg); color: var(--text-muted); font-size: 10px; font-weight: 600; text-transform: uppercase; margin-top: 5px; }

/* ===== EXPANSION BOXES ===== */
.expansion-box { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; transition: all var(--transition); }
.expansion-box:hover { border-color: var(--accent-light); }
.expansion-header { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; transition: background var(--transition); }
.expansion-header:hover { background: var(--expansion-bg); }
.expansion-header h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.expansion-header h4 .material-symbols-outlined { font-size: 20px; color: var(--accent); }
.expansion-header-left { display: flex; align-items: center; gap: 12px; }
.expansion-header small { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 1px; display: block; }
.exp-topic-badge { padding: 3px 10px; border-radius: 100px; background: var(--tag-bg); color: var(--tag-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.expansion-chevron { transition: transform 0.3s ease; color: var(--text-muted); font-size: 20px !important; flex-shrink: 0; }
.expansion-box.open .expansion-chevron { transform: rotate(180deg); }
.expansion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.expansion-box.open .expansion-content { max-height: 1200px; }
.expansion-inner { padding: 0 24px 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.expansion-inner a { color: var(--accent); font-weight: 500; }
.expansion-inner ul { margin-top: 8px; padding-left: 20px; }
.expansion-inner li { margin-bottom: 6px; }
.expansion-inner p { margin-bottom: 8px; }

/* ===== NARRATIVE GRID ===== */
.narrative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.narrative-card {
  background: var(--card-bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: all var(--transition); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.narrative-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.narrative-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg-accent-subtle);
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
  color: var(--accent);
}
.narrative-card:hover .narrative-icon { background: var(--accent); color: white; }
.narrative-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); }
.narrative-card p { font-size: 12px; color: var(--text-muted); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--hero-gradient); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px 32px; margin: 24px 0; transition: all var(--transition);
}
.highlight-box h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  margin-bottom: 10px; color: var(--text-primary); display: flex; align-items: center; gap: 8px;
}
.highlight-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; }
.highlight-links { display: flex; gap: 10px; flex-wrap: wrap; }
.highlight-links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px;
  background: var(--card-bg); border: 1px solid var(--border); font-size: 13px; font-weight: 600;
  color: var(--accent); transition: all var(--transition);
}
.highlight-links a:hover { border-color: var(--accent); background: var(--bg-accent-subtle); }

/* ===== QUICK LINKS / TOPIC TABS ===== */
.quick-links { display: flex; gap: 8px; flex-wrap: wrap; padding: 24px 0; border-bottom: 1.5px solid var(--divider); }
.quick-link {
  padding: 8px 16px; border-radius: 100px; background: var(--card-bg); border: 1px solid var(--border-light);
  font-size: 13px; font-weight: 500; color: var(--text-secondary); transition: all var(--transition);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.quick-link:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-accent-subtle); }

.topic-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.topic-tab {
  padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--border-light); background: var(--card-bg); color: var(--text-muted);
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.topic-tab:hover { border-color: var(--accent); color: var(--accent); }
.topic-tab.active { background: var(--accent); border-color: var(--accent); color: white; }

.lang-links { display: flex; gap: 6px; flex-wrap: wrap; }
.lang-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 8px;
  background: var(--bg-accent-subtle); font-size: 12.5px; font-weight: 600; color: var(--accent);
  transition: all var(--transition); border: 1px solid transparent;
}
.lang-link:hover { background: var(--accent); color: white; }
.lang-link.dead { background: #FCE4EC !important; color: #D81B60 !important; border-color: #F8BBD0 !important; }
.lang-link.dead:hover { background: #D81B60 !important; color: white !important; border-color: #D81B60 !important; }

.topic-group-heading {
  display: flex; align-items: center; gap: 12px; padding: 20px 0 10px;
  border-bottom: 2px solid var(--accent-light); margin-bottom: 10px;
}
.topic-group-heading h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-primary); }
.topic-group-heading .material-symbols-outlined { color: var(--accent); font-size: 22px; }

/* ===== ABBREVIATIONS ===== */
.abbrev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; }
.abbrev-item { font-size: 12.5px; color: var(--text-muted); padding: 4px 0; border-bottom: 1px solid var(--border-light); display: flex; gap: 6px; }
.abbrev-item strong { color: var(--accent); font-size: 12px; flex-shrink: 0; }

/* ===== TOOLTIPS ===== */
[data-tooltip] { position: relative; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--tooltip-bg); color: var(--tooltip-text); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s ease; z-index: 50; }
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== WATERMARK ===== */
.watermark {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56vw; height: 56vw; max-width: 90vh; max-height: 90vh;
  pointer-events: none; z-index: 0; opacity: 0.03;
}
.watermark svg { width: 100%; height: 100%; }

/* ===== THEME PICKER ===== */
.theme-picker-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000; width: 48px; height: 48px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--border); box-shadow: var(--shadow-md); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.theme-picker-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-hover); }
.theme-dropdown {
  position: fixed; bottom: 82px; right: 24px; z-index: 1000; background: var(--card-bg);
  border: 1.5px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; display: none; flex-direction: column; gap: 4px;
}
.theme-dropdown.open { display: flex; }
.theme-option {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; font-family: var(--font-body); font-size: 13px;
  color: var(--text-secondary); transition: all var(--transition); white-space: nowrap;
}
.theme-option:hover { background: var(--bg-tertiary); }
.theme-option.active { background: var(--bg-accent-subtle); color: var(--accent); font-weight: 600; }
.theme-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); }

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 28px 24px 20px; margin-top: 48px; transition: background var(--transition), color var(--transition);
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.footer h5 { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: #FFFFFF; margin-bottom: 10px; }
.footer p { font-size: 11px; line-height: 1.6; }
.footer a { color: var(--footer-text); font-size: 11px; transition: color var(--transition); display: block; margin-bottom: 4px; }
.footer a:hover { color: #FFFFFF; }

.back-to-top {
  position: fixed; bottom: 82px; right: 82px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: all var(--transition); z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== BTN ===== */
.btn { padding: 12px 24px; border-radius: 10px; font-family: var(--font-body); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--card-bg); color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-center, .nav-social { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero, .page-hero { padding: 24px 20px 40px; }
  .hero h1 { font-size: 1.6rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .narrative-grid { grid-template-columns: repeat(2, 1fr); }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner { flex-wrap: wrap; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); flex: 1 0 45%; }
  .section { padding: 40px 0; }
  .evidence-abstract-inner { padding-left: 20px; }
  .evidence-card-header { flex-direction: column; }
  .evidence-meta { flex-direction: row; width: 100%; justify-content: flex-start; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-center a { padding: 20px 8px; font-size: 12px; }
}