/* ==========================================================================
   Financial Education Research — Design System
   Aesthetic: Warm Minimalist Editorial
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Tokens --- */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F2EFEA;
  --bg-dark: #1C1C1A;
  --text: #1C1C1A;
  --text-secondary: #6B6860;
  --text-tertiary: #9B978F;
  --accent: #5B8A72;
  --accent-light: #E8F0EB;
  --accent-dark: #3D6B55;
  --highlight: #E07A5F;
  --highlight-light: #FBF0ED;
  --gold: #F2CC8F;
  --gold-light: #FBF6ED;
  --border: #E5E1DA;
  --surface: #FFFFFF;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1280px;
  --content-width: 720px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(28,28,26,0.04), 0 1px 2px rgba(28,28,26,0.06);
  --shadow-md: 0 4px 16px rgba(28,28,26,0.06), 0 2px 4px rgba(28,28,26,0.04);
  --shadow-lg: 0 12px 40px rgba(28,28,26,0.08), 0 4px 12px rgba(28,28,26,0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* subtle dot grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 3.5rem; margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 2.5rem; margin-bottom: 0.8rem; font-weight: 600; }
h4 { font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.6rem; font-weight: 600; }

p { margin-bottom: 1.2rem; }

a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 3px;
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

strong { font-weight: 600; }
em { font-style: italic; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }
.nav-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero (Landing) --- */
.hero {
  padding: 6rem 0 4rem;
  position: relative;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.hero h1 {
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Stat Banner --- */
.stat-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 3rem 0;
}
.stat-banner--4col {
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  background: var(--surface);
  padding: 2rem;
  text-align: center;
}
.stat-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.stat-card:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-number.highlight-num { color: var(--highlight); }
.stat-number.gold-num { color: #C9A84C; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* --- Report Cards (Landing) --- */
.report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.report-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}
.report-card-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.06;
  position: absolute;
  top: -10px;
  right: 16px;
}
.report-card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1.2rem;
  width: fit-content;
}
.report-card-tag.research {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.report-card-tag.strategy {
  background: var(--highlight-light);
  color: var(--highlight);
}
.report-card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.8rem;
  font-weight: 700;
}
.report-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}
.report-card-sections {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.report-card-sections span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  background: var(--bg-alt);
  padding: 3px 8px;
  border-radius: 4px;
}
.report-card-arrow {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.report-card:hover .report-card-arrow { gap: 12px; }

/* --- Key Findings Grid (Landing) --- */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0 4rem;
}
.finding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: var(--transition);
}
.finding-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.finding-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.finding-icon.sage { background: var(--accent-light); }
.finding-icon.coral { background: var(--highlight-light); }
.finding-icon.gold { background: var(--gold-light); }
.finding-card h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.finding-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* --- Report Page Layout --- */
.report-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  padding: 3rem 0 6rem;
  align-items: start;
}

/* --- Sidebar TOC --- */
.sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.toc {
  list-style: none;
}
.toc li {
  margin-bottom: 2px;
}
.toc a {
  display: block;
  padding: 6px 12px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: var(--transition);
  line-height: 1.4;
}
.toc a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.toc a.active {
  color: var(--accent-dark);
  background: var(--accent-light);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* --- Report Header --- */
.report-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.report-header-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1.2rem;
}
.report-header-tag.research { background: var(--accent-light); color: var(--accent-dark); }
.report-header-tag.strategy { background: var(--highlight-light); color: var(--highlight); }
.report-header h1 {
  margin-bottom: 1rem;
}
.report-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* --- Content Styles --- */
.content {
  max-width: var(--content-width);
  min-width: 0;
}

.content section {
  scroll-margin-top: 80px;
  padding-bottom: 2rem;
  margin-bottom: 1rem;
}

.content section + section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* Section numbering */
.section-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.3rem;
}

/* --- Callout Blocks --- */
.callout {
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.callout.note {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}
.callout.warning {
  background: var(--highlight-light);
  border-left: 3px solid var(--highlight);
}
.callout.info {
  background: var(--gold-light);
  border-left: 3px solid var(--gold);
}
.callout p:last-child { margin-bottom: 0; }
.callout em { color: var(--text-secondary); }

/* --- Stat Highlight (inline) --- */
.stat-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.5rem;
  margin: 1rem 0;
}
.stat-highlight .big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-highlight .desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- Comparison Bar --- */
.comparison-bars {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}
.bar-track {
  width: 100%;
  height: 32px;
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: white;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.sage { background: var(--accent); }
.bar-fill.coral { background: var(--highlight); }
.bar-fill.gold { background: #C9A84C; }
.bar-fill.muted { background: var(--text-tertiary); }

/* --- Wealth Allocation Chart --- */
.wealth-chart {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.wealth-chart-col {
  flex: 1;
  min-width: 200px;
}
.wealth-chart-col h4 {
  font-size: 0.88rem;
  margin: 0 0 0.8rem;
  font-weight: 600;
}
.wealth-stack {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 240px;
}
.wealth-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  position: relative;
}
.wealth-block small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-top: 2px;
}

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead {
  background: var(--bg-alt);
}
th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(91, 138, 114, 0.03); }
td strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Lists --- */
.content ul, .content ol {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}
.content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.content li::marker {
  color: var(--accent);
}

/* --- Blockquote --- */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}
blockquote p:last-child { margin-bottom: 0; }

/* --- Source citations --- */
.sources {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 1rem;
}

/* --- Creator Cards --- */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.creator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.creator-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.8rem;
}
.creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}
.creator-card-header h4 {
  margin: 0;
  font-size: 1rem;
}
.creator-card-header .creator-platform {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-tertiary);
}
.creator-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}
.creator-stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Pillar Cards --- */
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1.2rem 0;
}
.pillar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.pillar-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}
.pillar-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
}
.pillar-card-header span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* --- Platform Priority --- */
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.platform-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  transition: var(--transition);
}
.platform-item:hover { border-color: var(--accent); }
.platform-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.4;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.platform-info { flex: 1; }
.platform-info h4 {
  margin: 0;
  font-size: 1rem;
}
.platform-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.platform-stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-align: right;
  white-space: nowrap;
}

/* --- Revenue Stage Cards --- */
.stage-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.2rem 0;
  overflow: hidden;
}
.stage-card-header {
  background: var(--bg-alt);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.stage-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent-dark);
}
.stage-card-header h4 { margin: 0; font-size: 1rem; }
.stage-card-body { padding: 1.2rem 1.5rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* Counter animation */
.count-up {
  transition: all 0.8s ease;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .report-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 0 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
  }
  .toc {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .toc a {
    border-left: none;
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 1.2rem; }
  .hero { padding: 3rem 0 2rem; }
  .stat-banner { grid-template-columns: repeat(2, 1fr); }
  .stat-card:first-child { border-radius: var(--radius-lg) 0 0 0; }
  .stat-card:nth-child(2) { border-radius: 0 var(--radius-lg) 0 0; }
  .stat-card:nth-child(3) { border-radius: 0 0 0 var(--radius-lg); }
  .stat-card:last-child { border-radius: 0 0 var(--radius-lg) 0; }
  .report-cards { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: 1fr; }
  .creator-grid { grid-template-columns: 1fr; }
  .wealth-chart { flex-direction: column; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
  .hero-meta { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .stat-banner { grid-template-columns: 1fr; }
  .stat-card:first-child,
  .stat-card:nth-child(2),
  .stat-card:nth-child(3),
  .stat-card:last-child { border-radius: 0; }
  .stat-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .stat-card:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}

/* --- Print --- */
@media print {
  .nav, .sidebar, body::before { display: none; }
  .report-layout { grid-template-columns: 1fr; }
  .content { max-width: 100%; }
}
