/* ============================================================
   KIGELDVERDIENEN.DE — MAIN STYLESHEET
   AdSense CLS-safe · Dark mode · DSGVO-ready
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-code: #0f172a;
  --text: #0f172a;
  --text-muted: #475569;
  --text-code: #e2e8f0;
  --border: #e2e8f0;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #ecfdf5;
  --warn: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  /* Category tags */
  --tag-fl: #d1fae5;
  --tag-fl-text: #065f46;
  --tag-pa: #fef3c7;
  --tag-pa-text: #92400e;
  --tag-to: #ede9fe;
  --tag-to-text: #5b21b6;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-content: 720px;
  --max-site: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-subtle: #1e293b;
    --bg-code: #020617;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #34d399;
    --accent-hover: #6ee7b7;
    --accent-light: #064e3b;
    --tag-fl: #064e3b;
    --tag-fl-text: #6ee7b7;
    --tag-pa: #451a03;
    --tag-pa-text: #fde68a;
    --tag-to: #2e1065;
    --tag-to-text: #c4b5fd;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
ul, ol { padding-left: 1.5rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.25; font-weight: 700; color: var(--text);
  margin-top: 2rem; margin-bottom: .75rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0; }
/* Global h2: no border. Section-level h2 and cat-header h2 get borders via their own rules below. */
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1.1rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 600; }

/* Section-level h2 (outside article body) keeps a subtle bottom border */
.section > .site-wrap > h2,
.section h2.section-title,
.cat-header h2 {
  border-bottom: 2px solid var(--border);
  padding-bottom: .4rem;
}

/* ---------- Layout ---------- */
.site-wrap { max-width: var(--max-site); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; height: 60px;
}
.site-logo {
  font-weight: 800; font-size: 1.1rem; color: var(--text);
  letter-spacing: -.5px; text-decoration: none;
  display: flex; align-items: center; gap: .4rem; flex-shrink: 0;
}
.site-logo:hover { color: var(--accent); text-decoration: none; }
.logo-icon {
  width: 36px; height: 28px;
  background-color: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  background-image: url('/img/logo-mark.svg') !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
}
.site-nav {
  display: flex; align-items: center; gap: .2rem;
  list-style: none; padding: 0; margin: 0;
}
.site-nav a {
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
  padding: .35rem .65rem; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  text-decoration: none; display: flex; align-items: center; gap: .3rem; white-space: nowrap;
  letter-spacing: -.01em;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg-subtle); }
/* Category color dot — minimal indicator, no pill */
.site-nav .pill {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; font-size: 0; line-height: 0;
}
.pill-fl { background: var(--tag-fl-text); }
.pill-pa { background: var(--tag-pa-text); }
.pill-to { background: var(--tag-to-text); }
.mobile-menu-btn {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--text); padding: .4rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--text-muted);
  padding: .9rem 0; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .5; }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 3.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.hero .site-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
/* Editorial eyebrow — simple inline label, no pill border */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: none; border: none; padding: 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%; flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.04em; font-weight: 800;
  margin: 0 0 1rem;
}
.hero p.lead,
p.hero-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 460px; margin: 0 0 2rem; line-height: 1.65;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  transition: all .18s ease; cursor: pointer;
  border: 2px solid transparent; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  text-decoration: none; color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-sm { padding: .35rem .9rem; font-size: .82rem; }

/* ---------- Earnings Dashboard Mockup ---------- */
.hero-dashboard {
  background: #0f172a;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.07);
  user-select: none;
}
.dash-header {
  background: #161b22; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dash-dots { display: flex; gap: .4rem; }
.dd { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dd-red { background: #ff5f57; }
.dd-yellow { background: #ffbd2e; }
.dd-green { background: #28c840; }
.dash-title {
  margin: 0 auto; font-size: .72rem; color: #484f58; font-family: var(--font-mono);
}
.dash-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex; flex-direction: column; gap: .9rem;
}
.dash-row {
  display: grid; grid-template-columns: 8.5rem 1fr 4rem;
  gap: .75rem; align-items: center;
}
.dash-label { font-size: .77rem; color: #8b949e; font-family: var(--font-mono); }
.dash-bar {
  background: rgba(255,255,255,.07);
  border-radius: 999px; height: 7px; overflow: hidden;
}
.dash-bar-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, #34d399, #059669);
  border-radius: 999px;
  transform: scaleX(0); transform-origin: left;
  animation: bar-grow 1s cubic-bezier(.25,.46,.45,.94) var(--delay, .8s) both;
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.dash-val {
  font-size: .82rem; color: #34d399; font-family: var(--font-mono);
  font-weight: 700; text-align: right;
}
.dash-divider { height: 1px; background: rgba(255,255,255,.08); margin: .1rem 0; }
.dash-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: .25rem;
}
.dash-total-label { font-size: .78rem; color: #64748b; font-family: var(--font-mono); }
.dash-total-val {
  font-size: 1.35rem; font-weight: 800; color: #34d399; font-family: var(--font-mono);
}
.dash-growth {
  font-size: .72rem; color: #34d399; font-family: var(--font-mono);
  display: flex; align-items: center; gap: .3rem; margin-top: .3rem;
}

/* ---------- Hero Animations ---------- */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left .hero-eyebrow { animation: hero-in .45s ease .05s both; }
.hero-left h1             { animation: hero-in .5s  ease .15s both; }
.hero-left .lead          { animation: hero-in .5s  ease .25s both; }
.hero-left .hero-actions  { animation: hero-in .5s  ease .35s both; }
.hero-dashboard           { animation: hero-in .5s  ease .42s both; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 2rem 0;
}
.stat-item { background: var(--bg); padding: 1.2rem 1.5rem; text-align: center; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.stat-item:hover .stat-value { color: var(--text); transition: color .3s; }

/* ---------- Cards ---------- */
.section { padding: 3rem 0; }
/* Alternating section backgrounds for visual rhythm */
.section:nth-child(even) {
  background: var(--bg-subtle);
  margin: 0 -1.25rem;
  padding: 3rem 1.25rem;
}
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .4rem; margin-top: 0; }
.section-subtitle { color: var(--text-muted); font-size: .95rem; margin-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-left: 3px solid rgba(5, 150, 105, 0.15);
  border-radius: var(--radius); padding: 1.4rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, transform .2s ease, border-left-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-left-color: var(--accent);
  box-shadow: 0 8px 20px rgba(0,0,0,.09);
}
/* Category-specific permanent left accent tones */
.card:has(.card-tag.fl) { border-left-color: rgba(6, 95, 70, 0.2); }
.card:has(.card-tag.pa) { border-left-color: rgba(146, 64, 14, 0.2); }
.card:has(.card-tag.to) { border-left-color: rgba(91, 33, 182, 0.2); }
/* Category-specific full color on hover */
.card:has(.card-tag.fl):hover { border-left-color: var(--tag-fl-text); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.card:has(.card-tag.pa):hover { border-left-color: var(--tag-pa-text); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.card:has(.card-tag.to):hover { border-left-color: var(--tag-to-text); box-shadow: 0 8px 20px rgba(0,0,0,.09); }
.card-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: .6rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.card-tag.fl { color: var(--tag-fl-text); }
.card-tag.pa { color: var(--tag-pa-text); }
.card-tag.to { color: var(--tag-to-text); }
.card h3 { font-size: 1rem; margin: 0 0 .5rem; line-height: 1.35; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; line-height: 1.5; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-muted);
  margin-top: auto; border-top: 1px solid var(--border); padding-top: .8rem;
}
.card-difficulty { display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; }
.diff-easy   { color: var(--success); }
.diff-medium { color: var(--warn); }
.diff-hard   { color: var(--danger); }

/* ---------- Silo Cards ---------- */
.silo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.silo-card {
  border: 2px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem; text-decoration: none; display: block;
  transition: border-color .2s, border-top-color .2s, box-shadow .2s, transform .2s;
}
.silo-card:hover {
  border-color: var(--accent); box-shadow: 0 8px 24px rgba(5,150,105,.1);
  transform: translateY(-3px); text-decoration: none;
}
/* Category-specific top accent on hover */
.silo-card:has(.silo-icon-fl):hover { border-top-color: var(--tag-fl-text); border-color: var(--border); }
.silo-card:has(.silo-icon-pa):hover { border-top-color: var(--tag-pa-text); border-color: var(--border); }
.silo-card:has(.silo-icon-to):hover { border-top-color: var(--tag-to-text); border-color: var(--border); }
.silo-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 0;
}
.silo-icon svg { width: 22px; height: 22px; display: block; flex-shrink: 0; }
.silo-icon-fl { background: var(--tag-fl); color: var(--tag-fl-text); }
.silo-icon-pa { background: var(--tag-pa); color: var(--tag-pa-text); }
.silo-icon-to { background: var(--tag-to); color: var(--tag-to-text); }
.silo-card h3 { font-size: 1.15rem; color: var(--text); margin: 0 0 .5rem; }
.silo-card p { font-size: .88rem; color: var(--text-muted); margin: 0 0 1rem; }
.silo-link { font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .3rem; }
.silo-articles { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }

/* ---------- Featured Article ---------- */
.featured-article {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; margin-bottom: 2rem;
  background: var(--bg-subtle);
  transition: border-color .2s, box-shadow .2s;
}
.featured-article:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.featured-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: .5rem; }
.featured-article h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
.featured-article h3 a { color: var(--text); }
.featured-article h3 a:hover { color: var(--accent); text-decoration: none; }
.featured-article p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- Article Layout ---------- */
/* Single-column, centered — no broken 2-column grid */
.article-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 2rem 0 4rem;
}
.article-main { min-width: 0; }

/* Editorial article header */
.article-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag {
  font-size: .75rem; font-weight: 600; padding: .25rem .65rem;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.tag-fl { background: var(--tag-fl); color: var(--tag-fl-text); }
.tag-pa { background: var(--tag-pa); color: var(--tag-pa-text); }
.tag-to { background: var(--tag-to); color: var(--tag-to-text); }
.tag-howto { background: #f1f5f9; color: #475569; }
.article-meta {
  display: flex; align-items: center; gap: 1.2rem;
  font-size: .84rem; color: var(--text-muted);
  margin-top: .75rem; flex-wrap: wrap;
}
.article-meta-item { display: flex; align-items: center; gap: .3rem; }
.article-difficulty { font-weight: 600; }

/* Article h1 — strong editorial statement */
.article-header h1,
.article-body h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 1rem;
}

/* Article lead paragraph */
.article-lead,
.article-header .article-lead {
  font-size: 1.1rem; line-height: 1.7;
  color: var(--text-muted); margin-top: 1rem;
}

/* Article body base */
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Article body h2 — accent bar, no border-bottom */
.article-body h2 {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.02em; margin-top: 2.5rem;
  border-bottom: none; padding-bottom: 0;
  position: relative; padding-left: .95rem;
}
.article-body h2::before {
  content: '';
  position: absolute; left: 0; top: .15em;
  width: 3px; height: .85em;
  background: var(--accent); border-radius: 2px;
}

/* TL;DR */
.tldr {
  background: var(--accent-light); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 1.5rem 0 2rem;
}
.tldr-label {
  font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.tldr ul { margin: 0; padding-left: 1.25rem; }
.tldr li { font-size: .92rem; margin-bottom: .3rem; }

/* Alert boxes */
.alert {
  display: flex; gap: .75rem; padding: 1rem 1.25rem;
  border-radius: var(--radius); margin: 1.5rem 0; font-size: .9rem;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.alert-warn  { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.alert-info  { background: var(--accent-light); border: 1px solid var(--accent); color: var(--tag-fl-text); }
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
@media (prefers-color-scheme: dark) {
  .alert-warn    { background: #451a03; border-color: #92400e; color: #fde68a; }
  .alert-info    { background: var(--accent-light); color: #6ee7b7; }
  .alert-success { background: #022c22; border-color: #065f46; color: #6ee7b7; }
}

/* Code blocks */
pre {
  background: var(--bg-code); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; overflow-x: auto; margin: 1.5rem 0;
  position: relative; font-size: .88rem; line-height: 1.6;
  border: 1px solid rgba(255,255,255,.06);
}
pre code { font-family: var(--font-mono); color: var(--text-code); background: none; padding: 0; font-size: inherit; }
code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--bg-subtle); color: var(--accent);
  padding: .15em .4em; border-radius: var(--radius-sm); border: 1px solid var(--border);
}
pre code { border: none; }
.code-block { margin: 1.5rem 0; }
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #1e293b; padding: .5rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: .78rem; color: #94a3b8; font-family: var(--font-mono);
}
.code-header + pre { border-radius: 0 0 var(--radius) var(--radius); margin-top: 0; }
.code-lang { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: #e2e8f0; }
.copy-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: #94a3b8; padding: .2rem .6rem; border-radius: var(--radius-sm);
  font-size: .75rem; cursor: pointer; transition: all .15s; font-family: var(--font-mono);
}
.copy-btn:hover { background: rgba(255,255,255,.14); color: #e2e8f0; }
.copy-btn.copied { color: #6ee7b7; border-color: #6ee7b7; }

/* Syntax highlighting */
.kw  { color: #c084fc; }
.str { color: #86efac; }
.num { color: #fb923c; }
.cmt { color: #64748b; font-style: italic; }
.fn  { color: #60a5fa; }
.err { color: #f87171; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead tr { background: var(--bg-subtle); border-bottom: 2px solid var(--border); }
th { font-weight: 600; text-align: left; padding: .6rem .9rem; font-size: .85rem; white-space: nowrap; }
td { padding: .55rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: var(--bg-subtle); }

/* Steps */
.steps { margin: 1.5rem 0; }
.step { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.step-num {
  width: 2rem; height: 2rem; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0; margin-top: .15rem;
}
.step-body { flex: 1; }
.step-body h4 { margin-top: 0; }

/* FAQ */
.faq { margin: 1.5rem 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; font-weight: 600; font-size: .95rem;
  cursor: pointer; user-select: none; gap: 1rem;
}
.faq-q:hover { background: var(--bg-subtle); }
.faq-chevron { flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.25rem; max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .2s;
  font-size: .93rem; color: var(--text-muted);
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 1.25rem 1.1rem; }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.2rem; background: var(--bg-subtle);
  transition: border-color .2s;
}
.sidebar-box:hover { border-color: var(--accent); }
.sidebar-box h4 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); font-weight: 700; margin: 0 0 .9rem;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { font-size: .88rem; padding: .3rem 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { color: var(--text-muted); text-decoration: none; display: block; padding-left: 0; transition: color .15s, padding-left .15s; }
.toc-list a:hover, .toc-list a.active { color: var(--accent); padding-left: 5px; }
.related-list { list-style: none; padding: 0; }
.related-list li { font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }

/* ---------- AdSense Slots (CLS-safe) ---------- */
.ad-slot {
  min-height: 90px; background: var(--bg-subtle);
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem;
  overflow: hidden; margin: 1.5rem 0; text-align: center;
}
.ad-slot-banner  { min-height: 90px; }
.ad-slot-rect    { min-height: 250px; }
.ad-slot-sidebar { min-height: 600px; }
.ad-slot-article { min-height: 280px; }
.ad-loading-text { color: var(--border); font-size: .7rem; }

/* ---------- Category Page Header ---------- */
.cat-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); }
.cat-eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.cat-header h1 { margin: 0 0 .6rem; }
.cat-header p { color: var(--text-muted); font-size: 1rem; max-width: 600px; }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1.25rem 0; }
/* Proper tag-style filter buttons, not generic pill buttons */
.filter-btn {
  padding: .3rem .75rem; border: 1px solid var(--border);
  border-radius: 4px; font-size: .82rem; font-weight: 500;
  cursor: pointer; background: var(--bg); color: var(--text-muted);
  transition: all .15s;
}
.filter-btn:not(.active):hover { background: var(--bg-subtle); color: var(--text); }
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-subtle); border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem; margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem; margin-bottom: 2rem;
}
.footer-brand p { font-size: .88rem; color: var(--text-muted); margin-top: .5rem; }
.footer-col h4 { font-size: .85rem; font-weight: 700; margin-bottom: .75rem; margin-top: 0; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { font-size: .85rem; margin-bottom: .4rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-muted); flex-wrap: wrap; gap: .5rem;
}
.footer-legal { display: flex; gap: 1.25rem; flex-shrink: 0; }
.footer-legal a { color: var(--text-muted); font-size: .8rem; text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 1rem 1.25rem; z-index: 500;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  animation: cookie-slide-in .3s ease;
}
.cookie-banner.hidden { display: none; }
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-inner {
  max-width: var(--max-site); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: .88rem; color: var(--text-muted); }
.cookie-inner p a { color: var(--accent); }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Motion Safety ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Mobile Nav ---------- */
@keyframes mobile-nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-nav.open { animation: mobile-nav-in .18s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .site-wrap { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero p.lead,
  p.hero-lead { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-dashboard { display: none; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .site-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .75rem 1.25rem 1.25rem; z-index: 99; gap: .25rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utilities ---------- */
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .88rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Homepage: Hero lead text ---------- */
/* Covers both .hero p.lead and <p class="hero-lead"> */
.hero-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 460px; margin: 0 0 2rem; line-height: 1.65;
}

/* ---------- Homepage: Dashboard extras ---------- */
.dash-rows { padding: 1.25rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.dash-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .6rem 1.4rem .9rem; border-top: 1px solid rgba(255,255,255,.08);
}
.dash-total span:first-child { font-size: .78rem; color: #64748b; font-family: var(--font-mono); }
.dash-badge {
  font-size: .68rem; font-weight: 700; color: #34d399;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25);
  padding: .15rem .5rem; border-radius: 999px; font-family: var(--font-mono);
  margin-left: auto;
}

/* ---------- Homepage: Section header with more link ---------- */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.section-header h2 { margin: 0; border-bottom: none; padding-bottom: 0; }
.section-header p { color: var(--text-muted); font-size: .95rem; margin: 0; flex-basis: 100%; }
.section-more { font-size: .85rem; font-weight: 600; color: var(--accent); white-space: nowrap; text-decoration: none; }
.section-more:hover { text-decoration: underline; }

/* ---------- Homepage: Silo card meta ---------- */
.silo-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--text-muted); margin-top: 1rem;
  padding-top: .75rem; border-top: 1px solid var(--border);
}
.silo-cta { font-weight: 600; color: var(--accent); }

/* ---------- Homepage: Featured card ---------- */
.featured-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 2rem; background: var(--bg-subtle);
  transition: border-color .2s, box-shadow .2s;
}
.featured-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(5,150,105,.08); }
.featured-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 768px) { .featured-inner { grid-template-columns: 1fr; } }
.featured-left h3 { font-size: 1.25rem; margin: .5rem 0 .75rem; }
.featured-left h3 a { color: var(--text); text-decoration: none; }
.featured-left h3 a:hover { color: var(--accent); }
.featured-right { }
.featured-checklist {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.checklist-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem; }
.featured-checklist ul { list-style: none; padding: 0; margin: 0; }
.featured-checklist li { font-size: .9rem; padding: .4rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
.featured-checklist li:last-child { border-bottom: none; }

/* ---------- Article: Info/warn boxes ---------- */
.info-box {
  background: var(--accent-light); border: 1px solid var(--accent);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .93rem;
}
.warn-box {
  background: #fffbeb; border: 1px solid #fcd34d;
  border-left: 3px solid #f59e0b; border-radius: var(--radius);
  padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .93rem; color: #78350f;
}
@media (prefers-color-scheme: dark) {
  .warn-box { background: #451a03; border-color: #92400e; color: #fde68a; }
}
.steps-list { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: steps; }
.steps-list li {
  counter-increment: steps; padding: 1rem 1rem 1rem 3.5rem;
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: .75rem; background: var(--bg);
}
.steps-list li::before {
  content: counter(steps); position: absolute; left: .9rem; top: 1rem;
  width: 1.75rem; height: 1.75rem; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .82rem; line-height: 1.75rem; text-align: center;
}

/* ---------- Article: ToC as inline nav — editorial style ---------- */
.toc {
  border-left: 3px solid var(--accent);
  background: none;
  border-radius: 0;
  padding: .75rem 0 .75rem 1.25rem;
  margin: 1.5rem 0;
}
.toc-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .6rem; }

/* ---------- Article: Related articles section ---------- */
.related-articles { border-top: 2px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
.related-articles h3 { font-size: 1.1rem; margin: 0 0 1.25rem; border-bottom: none; }

/* ---------- Comparison table ---------- */
.comparison-table th { background: var(--bg-subtle); }
.comparison-table td:first-child { font-weight: 600; }

/* ---------- FAQ list (article variant) ---------- */
.faq-list { margin: 1rem 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; font-weight: 600; font-size: .95rem;
  cursor: pointer; user-select: none; gap: 1rem; color: var(--text);
}
.faq-q:hover { background: var(--bg-subtle); }
.faq-icon { font-size: 1.25rem; color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 1.25rem; max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .2s;
  font-size: .93rem; color: var(--text-muted);
}
.faq-item.open .faq-a { max-height: 800px; padding: 0 1.25rem 1.1rem; }
.faq-item.open .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Article lead ---------- */
.article-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0; }

/* ---------- Hero eyebrow (editorial override — simple inline label) ---------- */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: none; border: none; padding: 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ============================================================
   MODERN 2026 REFRESH — targeted overrides
   ============================================================ */

/* Warmer, sharper tokens */
:root {
  --bg-subtle: #fafaf9;
  --border: #e8e8e3;
  --radius: 6px;
  --radius-sm: 3px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg-subtle: #18202e; --border: #2d3f56; }
}

/* Hero — full-bleed tinted bg, bigger type */
.hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(170deg, #ecfdf8 0%, #ffffff 60%);
}
@media (prefers-color-scheme: dark) {
  .hero { background: linear-gradient(170deg, rgba(6,78,59,.2) 0%, var(--bg) 60%); }
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.0;
  margin: 0 0 1.25rem;
}
.hero-lead, p.hero-lead, .hero p.lead {
  font-size: 1.08rem; line-height: 1.72; max-width: 440px; margin: 0 0 2rem;
}

/* Buttons — sharper, heavier */
.btn { padding: .65rem 1.3rem; border-radius: 6px; font-weight: 700; letter-spacing: -.01em; }
.btn-primary { box-shadow: 0 1px 3px rgba(5,150,105,.3); }

/* Stats bar — editorial flat strip */
.stats-bar {
  display: flex;
  background: none; border: none; border-radius: 0; overflow: visible;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  gap: 0; margin: 2.5rem 0;
}
.stat-item {
  flex: 1; background: none; border-radius: 0;
  padding: 1.5rem 2rem; text-align: left;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2.4rem; font-weight: 900; color: var(--text);
  letter-spacing: -.05em; line-height: 1;
}
.stat-label { font-size: .78rem; margin-top: .35rem; letter-spacing: .01em; }
.stat-item:hover .stat-value { color: var(--accent); transition: color .2s; }

/* Section — more breathing room */
.section { padding: 3.5rem 0; }
.section-header h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; }

/* Cards — flat border, no translateY */
.card {
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none; padding: 1.5rem;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { transform: none; box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--accent); border-left-color: var(--accent); }
.card:has(.card-tag.fl) { border-left-color: var(--border); }
.card:has(.card-tag.pa) { border-left-color: var(--border); }
.card:has(.card-tag.to) { border-left-color: var(--border); }
.card:has(.card-tag.fl):hover { border-color: var(--tag-fl-text); border-left-color: var(--tag-fl-text); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card:has(.card-tag.pa):hover { border-color: var(--tag-pa-text); border-left-color: var(--tag-pa-text); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card:has(.card-tag.to):hover { border-color: var(--tag-to-text); border-left-color: var(--tag-to-text); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }

/* Silo cards — ring highlight on hover */
.silo-card {
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .15s, border-color .15s;
}
.silo-card:hover {
  transform: none; border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), 0 4px 20px rgba(5,150,105,.1);
}
.silo-card:has(.silo-icon-fl):hover { box-shadow: 0 0 0 2px var(--tag-fl-text), 0 4px 16px rgba(0,0,0,.07); }
.silo-card:has(.silo-icon-pa):hover { box-shadow: 0 0 0 2px var(--tag-pa-text), 0 4px 16px rgba(0,0,0,.07); }
.silo-card:has(.silo-icon-to):hover { box-shadow: 0 0 0 2px var(--tag-to-text), 0 4px 16px rgba(0,0,0,.07); }
.silo-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .4rem; }

/* Nav — taller, bolder */
.header-inner { height: 64px; }
.site-logo { font-weight: 900; font-size: 1rem; letter-spacing: -.03em; }
.site-nav a { font-size: .875rem; font-weight: 600; }

/* Featured card */
.featured-card { border: 1px solid var(--border); border-radius: var(--radius); }
.featured-left h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }

/* Footer */
.site-footer { margin-top: 5rem; }

/* Articles — bigger, bolder headings */
.article-header { padding: 3rem 0 2rem; }
.article-header h1, .article-body h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.04em;
}
.article-body h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; }

/* Category pages */
.cat-header { padding: 3rem 0 2rem; }
.cat-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 900;
  letter-spacing: -.04em; margin: 0 0 .75rem;
}

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .stat-item { padding: 1.25rem 1.25rem; }
  .stat-value { font-size: 1.9rem; }
}
@media (max-width: 480px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
}

/* TL;DR box */
.tldr-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-left: 4px solid #059669;
  border-radius: 6px;
  padding: 1.1rem 1.4rem 1rem;
  margin: 1.5rem 0 1.8rem;
}
.tldr-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #059669;
  margin-bottom: .6rem;
}
.tldr-box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.tldr-box ul li {
  font-size: .93rem;
  color: #374151;
  line-height: 1.55;
  margin-bottom: .35rem;
}
.tldr-box ul li:last-child { margin-bottom: 0; }
