/* ==========================================================================
   Keuangan Masa Depan — Design System
   Portal edukasi keuangan pribadi berbahasa Indonesia
   ========================================================================== */

:root {
  /* Brand palette — emerald (pertumbuhan/uang) + amber (kemakmuran) */
  --brand-900: #064e3b;
  --brand-800: #065f46;
  --brand-700: #047857;
  --brand-600: #059669;
  --brand-500: #10b981;
  --brand-100: #d1fae5;
  --brand-50:  #ecfdf5;

  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-100: #fef3c7;

  /* Neutrals */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50:  #f8fafc;

  --white: #ffffff;
  --danger: #dc2626;
  --success: #16a34a;

  /* Semantic tokens (light) */
  --bg: var(--ink-50);
  --bg-elev: var(--white);
  --bg-soft: var(--ink-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --text-subtle: var(--ink-500);
  --border: var(--ink-200);
  --border-strong: var(--ink-300);
  --primary: var(--brand-700);
  --primary-hover: var(--brand-800);
  --link: var(--brand-700);

  /* Typography */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  /* Radii & shadows */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14);

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --bg-elev: #131c31;
    --bg-soft: #1a2440;
    --text: #e8edf7;
    --text-muted: #aab6cc;
    --text-subtle: #8695af;
    --border: #24304d;
    --border-strong: #33405f;
    --primary: var(--brand-500);
    --primary-hover: var(--brand-600);
    --link: var(--brand-500);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 6px 16px rgba(0,0,0,0.45);
    --shadow-lg: 0 20px 44px rgba(0,0,0,0.55);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1120;
  --bg-elev: #131c31;
  --bg-soft: #1a2440;
  --text: #e8edf7;
  --text-muted: #aab6cc;
  --text-subtle: #8695af;
  --border: #24304d;
  --border-strong: #33405f;
  --primary: var(--brand-500);
  --primary-hover: var(--brand-600);
  --link: var(--brand-500);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 6px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 44px rgba(0,0,0,0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.3rem; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
}
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; color: var(--text); }
h2.section-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.lead { font-size: 1.12rem; color: var(--text-muted); }
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; transition: .18s ease;
  cursor: pointer; text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-light:hover { background: rgba(255,255,255,0.24); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--text-muted); font-weight: 600; font-size: 0.95rem; padding: 8px 13px; border-radius: 8px; transition: .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--bg-soft); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-muted);
}
.icon-btn:hover { color: var(--primary); border-color: var(--border-strong); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun,
.nav-toggle { display: inline-flex; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: inline-flex; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .25s ease; z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #eafff6;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(16,185,129,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 12% 88%, rgba(217,119,6,0.20) 0%, transparent 55%),
    linear-gradient(160deg, #053b2c 0%, #064e3b 45%, #043024 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-inner { position: relative; z-index: 2; padding: 84px 0 88px; max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.35rem); line-height: 1.12; margin-bottom: 20px; }
.hero h1 .hl { color: #fcd34d; }
.hero p { font-size: 1.18rem; color: #c7ead9; margin-bottom: 30px; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px; position: relative; z-index: 2; }
.hero-stats .stat b { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stats .stat span { font-size: 0.9rem; color: #a7d7c2; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .2s ease; display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.card-thumb svg { width: 100%; height: 100%; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.16rem; font-weight: 800; line-height: 1.32; margin: 10px 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); text-decoration: none; }
.card-excerpt { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 16px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--text-subtle); margin-top: auto; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* Category badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
:root[data-theme="dark"] .badge,
:root:not([data-theme="light"]) .badge { background: rgba(16,185,129,0.12); color: var(--brand-500); border-color: rgba(16,185,129,0.25); }
.badge.amber { background: var(--accent-100); color: var(--accent-600); border-color: #fde68a; }

/* Featured card (large) */
.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.featured .featured-media { min-height: 320px; }
.featured .featured-media svg { width: 100%; height: 100%; }
.featured .featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured .featured-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 14px 0 14px; line-height: 1.2; }
.featured .featured-body h3 a { color: var(--text); }
.featured .featured-body p { color: var(--text-muted); margin-bottom: 22px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile {
  display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border); transition: .2s ease; color: var(--text);
}
.cat-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.cat-ico {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700);
}
:root[data-theme="dark"] .cat-ico, :root:not([data-theme="light"]) .cat-ico { background: rgba(16,185,129,0.12); color: var(--brand-500); }
.cat-tile h3 { font-size: 1.08rem; }
.cat-tile p { font-size: 0.9rem; color: var(--text-muted); }
.cat-tile .cat-count { font-size: 0.8rem; color: var(--text-subtle); font-weight: 600; margin-top: auto; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-subtle); padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { color: var(--border-strong); }

/* ---------- Article (prose) ---------- */
.article-header { padding: 26px 0 14px; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.15; margin: 14px 0 18px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--text-subtle); font-size: 0.9rem; }
.author-chip { display: inline-flex; align-items: center; gap: 9px; }
.author-chip .avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.95rem;
}
.author-chip b { color: var(--text); font-weight: 700; }

.article-hero-img { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; margin: 22px 0 8px; border: 1px solid var(--border); }
.article-hero-img svg { width: 100%; height: 100%; }

.prose { font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.85; color: var(--ink-800); }
:root[data-theme="dark"] .prose, :root:not([data-theme="light"]) .prose { color: #d6deec; }
.prose p { margin: 0 0 1.4em; }
.prose h2 { font-family: var(--font-sans); font-size: 1.62rem; margin: 1.9em 0 0.7em; padding-top: 0.3em; scroll-margin-top: 90px; }
.prose h3 { font-family: var(--font-sans); font-size: 1.28rem; margin: 1.6em 0 0.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-100); }
.prose strong { color: var(--text); font-weight: 700; }
.prose blockquote {
  border-left: 4px solid var(--primary); background: var(--bg-soft); margin: 1.6em 0; padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--text-muted);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; border: 1px solid var(--border); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-subtle); text-align: center; margin-top: 8px; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--bg-soft); padding: 2px 7px; border-radius: 6px; color: var(--accent-600);
}

/* Tables inside prose */
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.96rem; }
.prose thead { background: var(--bg-soft); }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; color: var(--text); white-space: nowrap; }
.prose tr:last-child td { border-bottom: none; }

/* Callout / info box */
.callout {
  font-family: var(--font-sans); display: flex; gap: 14px; margin: 1.8em 0; padding: 18px 20px;
  border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); font-size: 1rem; line-height: 1.6;
}
:root[data-theme="dark"] .callout, :root:not([data-theme="light"]) .callout { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.22); }
.callout .callout-ico { flex: 0 0 auto; color: var(--primary); }
.callout b { color: var(--text); }
.callout.tip { background: var(--brand-50); }
.callout.warn { background: #fff7ed; border-color: #fed7aa; }
:root[data-theme="dark"] .callout.warn, :root:not([data-theme="light"]) .callout.warn { background: rgba(217,119,6,0.09); border-color: rgba(217,119,6,0.25); }
.callout.warn .callout-ico { color: var(--accent-600); }

/* Key takeaways box */
.keytakeaways {
  font-family: var(--font-sans); background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin: 1.8em 0;
}
.keytakeaways h4 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.keytakeaways ul { margin: 0; padding-left: 1.2em; }
.keytakeaways li { margin-bottom: 8px; color: var(--text-muted); }

/* ---------- Article layout with sidebar ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; padding: 34px 0 60px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-family: var(--font-sans); }
.toc-box { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.toc-box h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: 12px; }
.toc-box ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-box li { margin-bottom: 4px; }
.toc-box a { display: block; font-size: 0.9rem; color: var(--text-muted); padding: 5px 10px; border-radius: 8px; border-left: 2px solid transparent; }
.toc-box a:hover, .toc-box a.active { color: var(--primary); background: var(--bg-soft); text-decoration: none; border-left-color: var(--primary); }
.toc-box a.sub { padding-left: 22px; font-size: 0.85rem; }

.share-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; flex-wrap: wrap; font-family: var(--font-sans); }
.share-row span { font-size: 0.85rem; color: var(--text-subtle); font-weight: 600; }
.share-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.share-btn:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; font-family: var(--font-sans); }
.tag { font-size: 0.82rem; color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; }
.tag:hover { color: var(--primary); border-color: var(--primary); text-decoration: none; }

/* Author bio */
.author-bio { display: flex; gap: 18px; padding: 26px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 34px 0; font-family: var(--font-sans); }
.author-bio .avatar-lg { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size: 1.4rem; }
.author-bio h4 { font-size: 1.1rem; }
.author-bio p { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }

/* Related posts */
.related { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 20px; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(150deg, var(--brand-800), var(--brand-900)); border-radius: var(--radius-lg); padding: 48px 44px; color: #eafff6; position: relative; overflow: hidden; }
.newsletter::after { content:""; position:absolute; right:-40px; top:-40px; width: 220px; height: 220px; border-radius:50%; background: rgba(252,211,77,0.14); }
.newsletter-inner { position: relative; z-index: 2; max-width: 560px; }
.newsletter h2 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.newsletter p { color: #bfe6d4; margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1); color: #fff; font-size: 1rem; font-family: inherit;
}
.newsletter-form input::placeholder { color: #a7d7c2; }
.newsletter-form input:focus { outline: 2px solid #fcd34d; }
.newsletter small { display:block; margin-top: 12px; color: #98cbb5; font-size: 0.8rem; }

/* ---------- Pagination / filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { font-size: 0.9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-muted); }
.chip:hover, .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Page header (category / static) ---------- */
.page-hero { background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 40px 0 44px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 10px 0 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: #071d16; color: #b7cdc2; padding: 56px 0 28px; margin-top: 40px; }
:root[data-theme="light"] .site-footer { background: #071d16; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8fb0a3; font-size: 0.94rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #a7c2b7; font-size: 0.92rem; }
.footer-col a:hover { color: #fcd34d; text-decoration: none; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #cfe3da; display:inline-flex; align-items:center; justify-content:center; }
.footer-social a:hover { background: var(--brand-600); color: #fff; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 0.86rem; color: #7fa093; }
.footer-bottom a { color: #a7c2b7; }

/* ---------- Misc ---------- */
.disclaimer-strip { background: var(--accent-100); color: var(--accent-600); font-family: var(--font-sans); font-size: 0.85rem; text-align: center; padding: 9px 16px; border-bottom: 1px solid #fde68a; }
:root[data-theme="dark"] .disclaimer-strip, :root:not([data-theme="light"]) .disclaimer-strip { background: rgba(217,119,6,0.1); border-color: rgba(217,119,6,0.22); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--primary); color:#fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--brand-500), var(--accent-500)); width: 0; z-index: 200; transition: width .1s linear; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color:#fff; border:none; display:none; align-items:center; justify-content:center; box-shadow: var(--shadow-lg); z-index: 90; }
.back-to-top.show { display: inline-flex; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-size: 1.08rem; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--font-sans); }
.faq-a { color: var(--text-muted); padding: 0 0 18px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-q .chev { transition: .2s; color: var(--primary); flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 46px 0; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .featured-media { min-height: 200px; }
  .featured .featured-body { padding: 26px; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-inner { padding: 56px 0 60px; }
  .hero-stats { gap: 24px; }
  .newsletter { padding: 34px 24px; }
  .prose { font-size: 1.08rem; }
}
