/* ==========================================================================
   WealthPulseDaily — Design System
   Module 3 (UI/UX) implementation. Original tokens & components.
   Palette: teal-ink + growth emerald + signal amber on soft green-white paper.
   Type: Fraunces (display) · Public Sans (UI/body) · IBM Plex Mono (data).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colour */
  --ink:        #0B3B36;   /* primary teal-ink */
  --ink-700:    #0E4A43;
  --growth:     #0FA968;   /* emerald — growth / links / CTAs */
  --growth-600: #0C8A55;
  --signal:     #E0A43B;   /* amber — tips / highlights (used sparingly) */
  --danger:     #C24A38;   /* warnings */

  /* Neutrals (light) */
  --paper:      #F7FAF8;   /* page background */
  --surface:    #FFFFFF;   /* cards, header */
  --surface-2:  #EFF5F2;   /* subtle fills */
  --text:       #14201E;   /* body text */
  --muted:      #566863;   /* secondary text */
  --border:     #DDE7E3;   /* hairlines */
  --border-2:   #C7D6D0;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.55rem + 1.25vw, 2.75rem);
  --step-4:  clamp(2.20rem, 1.75rem + 2.25vw, 3.80rem);

  /* Spacing scale (4pt base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;

  /* Radius / shadow */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11,59,54,.05), 0 2px 8px rgba(11,59,54,.05);
  --shadow-2: 0 8px 30px rgba(11,59,54,.10);

  /* Layout */
  --wrap: 1120px;
  --measure: 68ch;      /* long-form reading width */
  --header-h: 68px;

  color-scheme: light;
}

/* ==========================================================================
   REFRESHED PALETTE — richer, warmer, more alive (keeps brand identity)
   ========================================================================== */
:root{
  --ink:#08312C;
  --growth:#12C77E;
  --growth-600:#0A9A5E;
  --growth-glow:#5BF0B4;
  --signal:#F5A524;
  --danger:#E5484D;
  --violet:#6D5AE6;        /* NEW secondary accent — used sparingly for energy */
  --coral:#FF7A5C;         /* NEW tertiary — highlights, badges */
  --paper:#F6FBF8;
  --surface:#FFFFFF;
  --surface-2:#EAF5EF;
  --text:#0F1E1B;
  --muted:#4E625C;
  --border:#D6E7DF;

  /* Gradients — the main visual upgrade */
  --grad-hero:linear-gradient(135deg,#12C77E 0%,#0A9A5E 45%,#6D5AE6 120%);
  --grad-warm:linear-gradient(135deg,#F5A524 0%,#FF7A5C 100%);
  --grad-cool:linear-gradient(135deg,#12C77E 0%,#6D5AE6 100%);
  --grad-surface:linear-gradient(160deg,#FFFFFF 0%,#EAF5EF 100%);
  --grad-ink:linear-gradient(150deg,#08312C 0%,#0C4A3E 60%,#123F5C 100%);
  --glow-growth:0 0 0 1px rgba(18,199,126,.25),0 8px 30px -6px rgba(18,199,126,.35);
}
[data-theme="dark"]{
  --ink:#04100E;
  --paper:#070F0D;
  --surface:#0D1A17;
  --surface-2:#132320;
  --text:#E8F4EF;
  --muted:#93ABA4;
  --border:#1E332E;
  --growth-600:#3EE39B;
  --grad-surface:linear-gradient(160deg,#0D1A17 0%,#132320 100%);
  --grad-ink:linear-gradient(150deg,#04100E 0%,#0A2A24 60%,#0B2438 100%);
}


[data-theme="dark"] {
  --ink:        #7FE9C4;
  --ink-700:    #A6F0D6;
  --growth:     #35D08A;
  --growth-600: #55DFA0;
  --signal:     #F0C069;
  --danger:     #F08872;

  --paper:      #0B1413;
  --surface:    #101C1A;
  --surface-2:  #16241F;
  --text:       #E7EEEB;
  --muted:      #9DB1AB;
  --border:     #21322D;
  --border-2:   #2C4038;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 10px 34px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-ui);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 560; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); margin-top: var(--sp-7); }
h3 { font-size: var(--step-1); margin-top: var(--sp-6); font-weight: 600; }
p { margin-block: 0.9em; }
a { color: var(--growth-600); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--growth); }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--growth); outline-offset: 2px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--growth) 30%, transparent); }

.skip-link {
  position: absolute; left: var(--sp-3); top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm); transition: top .15s;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-8); }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .12em;
  text-transform: uppercase; color: var(--growth-600); font-weight: 500;
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }

/* Pulse divider — the brand signature */
.pulse-rule { width: 100%; height: 22px; color: var(--growth); opacity: .8; }
.pulse-rule path { fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 0.7em 1.2em; border-radius: var(--r-pill);
  border: 1.5px solid transparent; text-decoration: none; line-height: 1;
  transition: transform .12s ease, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--growth); color: #04211A; border-color: var(--growth); }
[data-theme="dark"] .btn-primary { color: #04211A; }
.btn-primary:hover { background: var(--growth-600); color: #04211A; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand .word { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; letter-spacing: -0.02em; }
.brand .word b { color: var(--growth-600); font-weight: 600; }
.nav-links { display: flex; gap: var(--sp-2); margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.96rem;
  padding: 0.5em 0.75em; border-radius: var(--r-sm);
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--border-2); background: var(--surface); color: var(--text);
  border-radius: var(--r-sm); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-3); box-shadow: var(--shadow-2);
    transform: translateY(-120%); transition: transform .2s ease; margin-left: 0;
  }
  .nav-links[data-open="true"] { transform: translateY(0); }
  .nav-links a { padding: 0.85em 0.75em; border-radius: var(--r-sm); }
  .nav-utility { margin-left: auto; display: flex; gap: var(--sp-2); }
  .nav-toggle { display: inline-grid; }
}

/* ---------- Category / article cards ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-1); text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--border-2); color: var(--text); }
.card .cat-ico { width: 40px; height: 40px; color: var(--growth-600); }
.card h3 { margin: 0; font-size: var(--step-1); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card .meta { margin-top: auto; display: flex; gap: var(--sp-3); font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.card .tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--growth-600);
  background: color-mix(in srgb, var(--growth) 12%, transparent);
  padding: 3px 9px; border-radius: var(--r-pill);
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--sp-8) var(--sp-7); }
.hero .eyebrow { margin-bottom: var(--sp-3); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: var(--sp-4); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero-pulse { margin-top: var(--sp-6); color: var(--growth); }
.hero-pulse svg { width: 100%; height: 70px; }
.hero-pulse path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-pulse .draw {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: draw 2.6s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-pulse .draw { stroke-dashoffset: 0; animation: none; } }

/* ---------- Search ---------- */
.search { position: relative; max-width: 560px; }
.search input {
  width: 100%; font: inherit; padding: 0.8em 1em 0.8em 2.8em;
  border: 1.5px solid var(--border-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text);
}
.search input:focus-visible { border-color: var(--growth); }
.search .s-ico { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: var(--sp-2); }
.search-results li a { display: block; padding: 0.6em 0.8em; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.search-results li a:hover { border-color: var(--growth); }
.search-results small { color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: var(--sp-5); }
.trust-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.trust-item svg { width: 26px; height: 26px; color: var(--growth-600); flex: none; margin-top: 2px; }
.trust-item h3 { margin: 0 0 2px; font-size: 1.02rem; font-family: var(--font-ui); font-weight: 700; color: var(--text); }
.trust-item p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-block: var(--sp-4) 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4em; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.4em; color: var(--border-2); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--growth-600); text-decoration: underline; }

/* ---------- Article layout ---------- */
.article-shell { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--sp-7); align-items: start; }
@media (min-width: 1000px) { .article-shell { grid-template-columns: 260px minmax(0,1fr); } }

.article-head h1 { margin-top: var(--sp-3); max-width: 22ch; }
.article-summary { font-size: var(--step-1); color: var(--muted); margin-top: var(--sp-4); max-width: var(--measure); }

.byline { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; margin-top: var(--sp-5); padding-block: var(--sp-4); border-block: 1px solid var(--border); font-size: 0.92rem; }
.byline .who { display: flex; align-items: center; gap: var(--sp-3); }
.byline .avatar { width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--surface-2); display: grid; place-items: center; color: var(--growth-600); font-weight: 700; border: 1px solid var(--border); }
.byline .who b { color: var(--text); }
.byline .who span { color: var(--muted); display: block; font-size: 0.85rem; }
.byline .facts { margin-left: auto; display: flex; gap: var(--sp-5); font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.byline .facts b { color: var(--text); font-weight: 500; }

/* prose */
.prose { max-width: var(--measure); }
.prose > * { scroll-margin-top: calc(var(--header-h) + 12px); }
.prose h2 { margin-top: var(--sp-8); padding-top: var(--sp-2); }
.prose h2::before {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 2px;
  background: var(--growth); margin-bottom: var(--sp-4);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-block: 0.4em; }
.prose li::marker { color: var(--growth-600); }

.learn-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.learn-list li { padding-left: 1.9em; position: relative; }
.learn-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--growth-600);
  font-weight: 700; background: color-mix(in srgb, var(--growth) 14%, transparent);
  width: 1.35em; height: 1.35em; display: grid; place-items: center; border-radius: 50%; font-size: 0.8em;
}

/* Steps */
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); margin-block: var(--sp-6); }
.step .n {
  font-family: var(--font-mono); font-weight: 600; color: var(--growth-600);
  background: color-mix(in srgb, var(--growth) 12%, transparent);
  width: 2.4em; height: 2.4em; border-radius: var(--r-md); display: grid; place-items: center;
  font-size: 1.05rem; align-self: start;
}
.step h3 { margin-top: 0.15em; }
.step .body > :first-child { margin-top: 0; }

/* Callouts */
.callout { border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); margin-block: var(--sp-5); border: 1px solid var(--border); background: var(--surface-2); }
.callout .c-head { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-family: var(--font-ui); color: var(--text); margin-bottom: var(--sp-1); }
.callout svg { width: 20px; height: 20px; flex: none; }
.callout p:last-child { margin-bottom: 0; }
.callout.tip { border-left: 4px solid var(--growth); }
.callout.tip .c-head { color: var(--growth-600); }
.callout.mistake { border-left: 4px solid var(--signal); background: color-mix(in srgb, var(--signal) 9%, var(--surface)); }
.callout.mistake .c-head { color: color-mix(in srgb, var(--signal) 78%, var(--text)); }
.callout.warning { border-left: 4px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.callout.warning .c-head { color: var(--danger); }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-block: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75em 1em; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--surface-2); font-family: var(--font-ui); color: var(--ink); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
caption { text-align: left; color: var(--muted); font-size: var(--step--1); padding: 0.6em 1em; }

/* Figure */
figure { margin-block: var(--sp-6); }
figure svg { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--sp-2); }

/* FAQ accordion */
.faq { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.faq details { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: var(--sp-4) var(--sp-5); font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--growth-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--muted); }
.faq .faq-body > :first-child { margin-top: 0; }

/* Related / resources */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: var(--sp-4); }
.res-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.res-list a { display: flex; gap: var(--sp-2); align-items: baseline; text-decoration: none; padding: 0.6em 0; border-bottom: 1px dashed var(--border); }
.res-list a:hover { color: var(--growth); }
.res-list .region { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); border: 1px solid var(--border-2); border-radius: var(--r-pill); padding: 1px 7px; }

/* Glossary chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { font-size: 0.85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px 12px; color: var(--text); text-decoration: none; }
.chip:hover { border-color: var(--growth); color: var(--growth-600); }

/* Share */
.share { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; margin-block: var(--sp-6); }
.share span { color: var(--muted); font-size: 0.9rem; margin-right: var(--sp-2); }

/* ---------- Sidebar TOC + reading progress ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--growth); z-index: 150; transition: width .1s linear; }
.toc { position: sticky; top: calc(var(--header-h) + var(--sp-5)); font-size: 0.92rem; }
.toc h2 { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-3); }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 0.35em 0 0.35em var(--sp-4); margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a[aria-current="true"] { color: var(--growth-600); border-left-color: var(--growth); font-weight: 600; }
@media (max-width: 999px) { .toc { display: none; } }

/* ---------- Disclaimer banner in-article ---------- */
.disclaimer-note {
  font-size: var(--step--1); color: var(--muted); background: var(--surface-2);
  border: 1px dashed var(--border-2); border-radius: var(--r-md);
  padding: var(--sp-4); margin-block: var(--sp-6);
}
.disclaimer-note b { color: var(--text); }

/* ---------- Generic page (legal/trust) ---------- */
.page-prose { max-width: var(--measure); }
.page-prose h2 { margin-top: var(--sp-7); }
.page-prose ul { padding-left: 1.3em; }
.updated { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }

/* ---------- Ad slots (Module 6) — placeholders, non-intrusive ---------- */
.ad-slot {
  border: 1px dashed var(--border-2); border-radius: var(--r-md);
  color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
  padding: var(--sp-5); background: repeating-linear-gradient(45deg, transparent, transparent 10px, color-mix(in srgb, var(--border) 40%, transparent) 10px, color-mix(in srgb, var(--border) 40%, transparent) 11px);
  margin-block: var(--sp-6);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: var(--sp-9); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-6); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-3); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer-grid a { color: var(--text); text-decoration: none; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--growth-600); }
.footer-about p { color: var(--muted); font-size: 0.94rem; max-width: 34ch; margin-top: var(--sp-3); }
.footer-legal { border-top: 1px solid var(--border); padding-block: var(--sp-5); font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; }
.footer-legal p { margin: 0; max-width: 70ch; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .share, .ad-slot, .nav-utility, .progress-bar, .hero-pulse { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-shell { grid-template-columns: 1fr; }
  a { color: #000; text-decoration: underline; }
  .callout, .card, .faq details { border: 1px solid #999; box-shadow: none; }
  h1,h2,h3 { color: #000; }
}

/* ==========================================================================
   Homepage hub components (wikiHow-style structure, original WPD styling)
   ========================================================================== */

.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--sp-5); }
@media (max-width:720px){ .grid-2 { grid-template-columns:1fr; } }

/* Section header with a right-aligned "see all" */
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:var(--sp-4); flex-wrap:wrap; margin-bottom:var(--sp-6); }
.section-head > div { min-width:0; }
.section-head h2 { margin-top:var(--sp-2); }
.section-head .see-all { font-family:var(--font-mono); font-size:var(--step--1); white-space:nowrap; text-decoration:none; }
.section-head .see-all:hover { text-decoration:underline; }

/* Alternating tinted section */
.section.tint { background:var(--surface-2); }

/* ---------- Trending ranking ---------- */
.trending { display:grid; grid-template-columns:1fr 1fr; gap:0 var(--sp-8); }
@media (max-width:640px){ .trending { grid-template-columns:1fr; } }
.trend-item { display:flex; align-items:baseline; gap:var(--sp-4); padding:var(--sp-4) 0; border-bottom:1px solid var(--border); }
.trend-item .rank { font-family:var(--font-mono); font-size:var(--step-2); font-weight:500; color:var(--growth-600); min-width:1.8ch; line-height:1; flex:none; }
.trend-item .t-body { min-width:0; }
.trend-item a { color:var(--text); text-decoration:none; font-weight:600; line-height:1.35; }
.trend-item a:hover { color:var(--growth); }
.trend-item .tag-mini { display:block; font-family:var(--font-mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:4px; }

/* ---------- Full browse-by-category grid ---------- */
.browse-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:var(--sp-3); }
@media (max-width:900px){ .browse-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .browse-grid { grid-template-columns:repeat(2,1fr); } }
.browse-item { display:flex; align-items:center; gap:var(--sp-3); padding:var(--sp-4); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md); text-decoration:none; color:var(--text); transition:border-color .15s, transform .15s, box-shadow .15s; }
.browse-item:hover { border-color:var(--growth); transform:translateY(-2px); box-shadow:var(--shadow-1); color:var(--text); }
.browse-item svg { width:24px; height:24px; color:var(--growth-600); flex:none; }
.browse-item b { font-weight:600; font-size:var(--step-0); display:block; line-height:1.2; }
.browse-item .count { font-family:var(--font-mono); font-size:.66rem; color:var(--muted); letter-spacing:.04em; }

/* ---------- Learning paths ---------- */
.path-card .path-kind { font-family:var(--font-mono); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:var(--growth-600); font-weight:600; }
.path-card .rail { display:flex; gap:5px; margin-top:var(--sp-4); }
.path-card .rail i { height:6px; flex:1; border-radius:3px; background:var(--surface-2); border:1px solid var(--border); }
.path-card .rail i.on { background:var(--growth); border-color:var(--growth); }
.path-card .path-meta { display:block; margin-top:var(--sp-3); font-family:var(--font-mono); font-size:var(--step--1); color:var(--muted); }

/* ---------- Quizzes & calculators ---------- */
.tool-card .kind { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; font-weight:700; color:var(--signal); }
.tool-card.calc .kind { color:var(--growth-600); }
.tool-card .kind svg { width:14px; height:14px; }

/* ---------- Fresh guides compact list ---------- */
.fresh { display:grid; grid-template-columns:1fr 1fr; gap:0 var(--sp-8); }
@media (max-width:640px){ .fresh { grid-template-columns:1fr; } }
.fresh a { display:flex; gap:var(--sp-4); align-items:baseline; justify-content:space-between; padding:var(--sp-4) 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); }
.fresh a:hover { color:var(--growth); }
.fresh .f-title { font-weight:600; line-height:1.35; }
.fresh .f-cat { display:block; font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:3px; }
.fresh .date { font-family:var(--font-mono); font-size:.7rem; color:var(--muted); white-space:nowrap; flex:none; }

/* ---------- Newsletter band ---------- */
.newsletter { background:var(--ink); color:#EAF6F1; border-radius:var(--r-lg); padding:clamp(1.5rem,4vw,3rem); position:relative; overflow:hidden; box-shadow:var(--shadow-2); }
.newsletter .eyebrow { color:var(--growth); }
.newsletter h2 { color:#fff; margin-top:var(--sp-2); }
.newsletter p { color:#C4E3D8; max-width:52ch; }
[data-theme="dark"] .newsletter { border:1px solid var(--border-2); }
[data-theme="dark"] .newsletter h2 { color:var(--text); }
[data-theme="dark"] .newsletter p { color:var(--muted); }
.nl-form { display:flex; gap:var(--sp-3); flex-wrap:wrap; margin-top:var(--sp-5); max-width:520px; }
.nl-form input { flex:1 1 240px; padding:.85rem 1.1rem; border-radius:var(--r-pill); border:1px solid #0A302C; font:inherit; background:#0A302C; color:#fff; }
.nl-form input::placeholder { color:#7FB5A6; }
.nl-form input:focus-visible { outline:3px solid var(--growth); outline-offset:2px; }
[data-theme="dark"] .nl-form input { background:var(--surface-2); border-color:var(--border); color:var(--text); }
.newsletter .fine { font-size:var(--step--1); color:#8FBEB1; margin-top:var(--sp-4); }
.nl-pulse { position:absolute; left:0; right:0; bottom:-2px; height:60px; opacity:.22; color:var(--growth); pointer-events:none; }
.nl-pulse svg { width:100%; height:100%; }
.nl-pulse path { fill:none; stroke:currentColor; stroke-width:2; }

/* ---------- Article hero illustration ---------- */
.article-hero { margin: 1.25rem 0 2rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1rem,3vw,2rem); }
.article-hero svg { width: 100%; height: auto; max-height: 260px; display: block; }
.article-hero figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--muted); text-align: center; }

/* Non-clickable "in progress" category tiles — honest placeholders, not dead links */
.browse-item.is-soon { opacity:.55; cursor:default; pointer-events:none; }
.browse-item.is-soon .count { font-style:italic; }

/* ---------- Calculators ---------- */
.calc-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:clamp(1.25rem,3vw,2rem); margin-bottom:var(--sp-6); }
.calc-card h2 { margin-top:0; }
.calc-row { display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-4); margin-top:var(--sp-4); }
@media (max-width:640px){ .calc-row { grid-template-columns:1fr; } }
.calc-field label { display:block; font-size:var(--step--1); font-weight:600; margin-bottom:6px; }
.calc-field input, .calc-field select { width:100%; padding:.7rem .9rem; border:1px solid var(--border); border-radius:var(--r-md); font:inherit; background:var(--surface-2); color:var(--text); }
.calc-field input:focus-visible, .calc-field select:focus-visible { outline:3px solid var(--growth); outline-offset:2px; }
.calc-out { margin-top:var(--sp-5); padding:var(--sp-5); border-radius:var(--r-md); background:color-mix(in srgb, var(--growth) 10%, transparent); border:1px solid color-mix(in srgb, var(--growth) 35%, transparent); }
.calc-out .big { font-family:var(--font-mono); font-size:var(--step-3); font-weight:500; color:var(--growth-600); display:block; line-height:1.2; }
.calc-out .note { display:block; margin-top:var(--sp-3); font-size:var(--step--1); color:var(--muted); }

/* ---------- Author box (end of article) ---------- */
.author-box { display:flex; gap:var(--sp-5); align-items:flex-start; margin:var(--sp-8) 0 var(--sp-6); padding:clamp(1.1rem,3vw,1.75rem); background:var(--surface-2); border:1px solid var(--border); border-radius:var(--r-lg); }
.author-box .ab-avatar { flex:none; width:56px; height:56px; border-radius:50%; background:var(--growth); color:#fff; display:grid; place-items:center; font-family:var(--font-mono); font-weight:500; font-size:1.05rem; letter-spacing:.02em; }
.author-box h3 { margin:0 0 4px; font-size:var(--step-0); }
.author-box .ab-role { display:block; font-family:var(--font-mono); font-size:.7rem; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:var(--sp-3); }
.author-box p { margin:0 0 var(--sp-3); font-size:var(--step--1); color:var(--muted); }
.author-box p:last-child { margin-bottom:0; }
.author-box a { color:var(--growth-600); }
@media (max-width:560px){ .author-box { flex-direction:column; gap:var(--sp-4); } }

/* ---------- Glossary ---------- */
.glossary { margin:var(--sp-6) 0 0; }
.gloss-item { padding:var(--sp-5) 0; border-bottom:1px solid var(--border); scroll-margin-top:90px; }
.gloss-item dt { font-weight:700; font-size:var(--step-0); display:flex; align-items:baseline; gap:var(--sp-3); flex-wrap:wrap; margin:0 0 6px; }
.gloss-item .gloss-cat { font-family:var(--font-mono); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; font-weight:500; color:var(--growth-600); background:color-mix(in srgb, var(--growth) 10%, transparent); padding:2px 8px; border-radius:999px; text-decoration:none; }
.gloss-item .gloss-cat:hover { background:color-mix(in srgb, var(--growth) 20%, transparent); }
.gloss-item dd { margin:0; color:var(--muted); }

/* ---------- Cookie consent ---------- */
.cc-banner { position:fixed; left:0; right:0; bottom:0; z-index:9999; background:var(--ink); color:#EAF6F1; padding:var(--sp-5) var(--sp-5); box-shadow:0 -6px 30px rgba(0,0,0,.22); transform:translateY(100%); transition:transform .3s ease; }
.cc-banner.show { transform:translateY(0); }
@media (prefers-reduced-motion:reduce){ .cc-banner { transition:none; } }
.cc-inner { max-width:var(--wrap); margin:0 auto; display:flex; gap:var(--sp-5); align-items:center; flex-wrap:wrap; }
.cc-text { flex:1 1 320px; font-size:var(--step--1); line-height:1.55; color:#C4E3D8; }
.cc-text b { color:#fff; display:block; margin-bottom:4px; font-size:var(--step-0); }
.cc-text a { color:var(--growth); }
.cc-actions { display:flex; gap:var(--sp-3); flex-wrap:wrap; }
.cc-actions button { font:inherit; font-weight:600; padding:.6rem 1.1rem; border-radius:var(--r-pill); cursor:pointer; border:1px solid transparent; }
.cc-accept { background:var(--growth); color:#04241f; }
.cc-accept:hover { background:#12c07a; }
.cc-reject { background:transparent; color:#EAF6F1; border-color:#3C6F63; }
.cc-reject:hover { border-color:#EAF6F1; }
.cc-banner button:focus-visible { outline:3px solid var(--growth); outline-offset:2px; }

/* ---------- Ad slots (Module 6): reserved space, never above the fold ----- */
.ad-slot { margin:var(--sp-8) 0; min-height:1px; }
.ad-slot[data-empty]::before { content:"Advertisement"; display:block; font-family:var(--font-mono); font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); opacity:.5; text-align:center; }
@media print { .ad-slot, .cc-banner { display:none !important; } }


/* ==========================================================================
   MOTION SYSTEM — scroll reveals, hover life, ambient movement
   All of it disabled under prefers-reduced-motion (WCAG 2.2 AA)
   ========================================================================== */

/* Scroll reveal */
[data-reveal]{opacity:0;transform:translateY(24px);
  transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1);will-change:opacity,transform;}
[data-reveal].is-in{opacity:1;transform:none;}
[data-reveal][data-reveal="left"]{transform:translateX(-28px);}
[data-reveal][data-reveal="right"]{transform:translateX(28px);}
[data-reveal][data-reveal="scale"]{transform:scale(.94);}
[data-reveal].is-in[data-reveal]{transform:none;}
[data-reveal-delay="1"]{transition-delay:.08s}[data-reveal-delay="2"]{transition-delay:.16s}
[data-reveal-delay="3"]{transition-delay:.24s}[data-reveal-delay="4"]{transition-delay:.32s}
[data-reveal-delay="5"]{transition-delay:.4s}[data-reveal-delay="6"]{transition-delay:.48s}

/* Ambient gradient drift */
@keyframes wpd-drift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.grad-animate{background-size:220% 220%;animation:wpd-drift 14s ease-in-out infinite;}

/* Floating orbs behind hero */
@keyframes wpd-float{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(18px,-22px) scale(1.06)}66%{transform:translate(-14px,14px) scale(.96)}}
.orb{position:absolute;border-radius:50%;filter:blur(48px);opacity:.5;pointer-events:none;z-index:0;}
.orb--a{width:340px;height:340px;background:var(--growth);top:-90px;right:-60px;animation:wpd-float 18s ease-in-out infinite;}
.orb--b{width:260px;height:260px;background:var(--violet);bottom:-80px;left:-50px;animation:wpd-float 22s ease-in-out infinite reverse;}
.orb--c{width:200px;height:200px;background:var(--signal);top:40%;left:55%;opacity:.28;animation:wpd-float 26s ease-in-out infinite;}
[data-theme="dark"] .orb{opacity:.3;}

/* Pulse line draw */
@keyframes wpd-draw{to{stroke-dashoffset:0}}
.draw{stroke-dasharray:2400;stroke-dashoffset:2400;animation:wpd-draw 2.6s cubic-bezier(.16,1,.3,1) .3s forwards;}

/* Live ticker */
@keyframes wpd-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.ticker{overflow:hidden;position:relative;}
.ticker__track{display:flex;gap:2.5rem;width:max-content;animation:wpd-ticker 38s linear infinite;}
.ticker:hover .ticker__track{animation-play-state:paused;}

/* Count-up numbers */
.counter{font-family:var(--font-mono);font-variant-numeric:tabular-nums;}

/* Shimmer on hover for cards */
.card,.browse-item{position:relative;overflow:hidden;}
.card::after,.browse-item::after{content:"";position:absolute;inset:0;
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 70%);
  transform:translateX(-120%);transition:transform .8s ease;pointer-events:none;}
.card:hover::after,.browse-item:hover::after{transform:translateX(120%);}
[data-theme="dark"] .card::after,[data-theme="dark"] .browse-item::after{
  background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.07) 50%,transparent 70%);}

/* Gradient text */
.grad-text{background:var(--grad-cool);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;}

/* Lift interactions */
.lift{transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s;}
.lift:hover{transform:translateY(-4px);box-shadow:var(--shadow-2);}

/* Icon pop */
@keyframes wpd-pop{0%{transform:scale(1)}50%{transform:scale(1.18) rotate(-6deg)}100%{transform:scale(1)}}
.browse-item:hover svg{animation:wpd-pop .45s ease;}

@media (prefers-reduced-motion:reduce){
  [data-reveal]{opacity:1!important;transform:none!important;transition:none!important;}
  .grad-animate,.orb,.draw,.ticker__track{animation:none!important;}
  .card::after,.browse-item::after{display:none;}
  .lift:hover{transform:none;}
}

/* ==========================================================================
   NEW COMPONENTS — ticker, app section, feature cards, hero art
   ========================================================================== */

/* ---------- Hero upgrade ---------- */
.hero{position:relative;overflow:hidden;}
.hero .wrap{position:relative;z-index:1;}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center;}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr;}.hero-art{order:-1;}}
.hero-art{position:relative;}
.hero-art svg{width:100%;height:auto;display:block;filter:drop-shadow(0 18px 40px rgba(8,49,44,.16));}
[data-theme="dark"] .hero-art svg{filter:drop-shadow(0 18px 40px rgba(0,0,0,.5));}

/* ---------- Live ticker strip ---------- */
.ticker-strip{background:var(--grad-ink);color:#DFF3EA;padding:.6rem 0;position:relative;overflow:hidden;}
.ticker-strip::before,.ticker-strip::after{content:"";position:absolute;top:0;bottom:0;width:70px;z-index:2;pointer-events:none;}
.ticker-strip::before{left:0;background:linear-gradient(90deg,var(--ink),transparent);}
.ticker-strip::after{right:0;background:linear-gradient(270deg,var(--ink),transparent);}
.tick{display:inline-flex;align-items:baseline;gap:.5rem;font-size:var(--step--1);white-space:nowrap;}
.tick b{font-family:var(--font-mono);color:#fff;letter-spacing:.03em;}
.tick__label{opacity:.62;}
.tick__val{font-family:var(--font-mono);color:var(--growth-glow);}
.tick__chg.is-up{color:var(--growth-glow);}
.tick__chg.is-down{color:#FF9A8F;}
.ticker-note{font-family:var(--font-mono);font-size:.62rem;letter-spacing:.1em;
  text-transform:uppercase;opacity:.55;text-align:center;padding-top:.35rem;}

/* ---------- Section heading flourish ---------- */
.section-flag{display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-mono);
  font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--growth-600);
  background:color-mix(in srgb,var(--growth) 12%,transparent);
  padding:.35rem .8rem;border-radius:var(--r-pill);margin-bottom:.9rem;}
.section-flag::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--growth);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--growth) 25%,transparent);}

/* ---------- App download section ---------- */
.app-band{position:relative;overflow:hidden;background:var(--grad-ink);color:#E7F6EF;
  border-radius:var(--r-lg);padding:clamp(1.75rem,5vw,3.5rem);box-shadow:var(--shadow-2);}
.app-band h2{color:#fff;margin-top:.4rem;}
[data-theme="dark"] .app-band h2{color:var(--text);}
.app-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3rem);align-items:center;
  position:relative;z-index:1;}
@media(max-width:820px){.app-grid{grid-template-columns:1fr;}}
.app-band p{color:#BEE2D4;max-width:52ch;}
.app-feats{list-style:none;padding:0;margin:1.5rem 0 0;display:grid;gap:.7rem;}
.app-feats li{display:flex;gap:.7rem;align-items:flex-start;font-size:var(--step--1);color:#DFF3EA;}
.app-feats svg{width:18px;height:18px;color:var(--growth-glow);flex:none;margin-top:3px;}
.app-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.6rem;}
.btn-app{display:inline-flex;align-items:center;gap:.6rem;padding:.85rem 1.5rem;border-radius:var(--r-pill);
  background:var(--growth);color:#04241F;font-weight:700;text-decoration:none;border:none;cursor:pointer;
  transition:transform .2s,box-shadow .2s;}
.btn-app:hover{transform:translateY(-2px);box-shadow:var(--glow-growth);}
.btn-app svg{width:18px;height:18px;}
.install-status{display:block;margin-top:.9rem;font-size:var(--step--1);color:#9FCFBD;min-height:1.2em;}

/* Phone mockup */
.phone{width:min(240px,72vw);margin-inline:auto;background:#0A1B18;border-radius:34px;
  padding:10px;box-shadow:0 30px 70px -20px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.07);}
.phone__screen{background:var(--paper);border-radius:26px;overflow:hidden;aspect-ratio:9/17.5;
  display:flex;flex-direction:column;}
.phone__bar{height:26px;background:var(--ink);display:flex;align-items:center;justify-content:center;}
.phone__notch{width:56px;height:5px;border-radius:99px;background:rgba(255,255,255,.28);}
.phone__body{padding:12px;display:grid;gap:8px;}
.phone__line{height:7px;border-radius:99px;background:var(--border);}
.phone__line--w70{width:70%}.phone__line--w50{width:50%}.phone__line--w85{width:85%}
.phone__card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:9px;display:grid;gap:6px;}
.phone__pill{height:14px;width:52px;border-radius:99px;background:var(--grad-cool);}

/* ---------- Feature / value cards ---------- */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;}
@media(max-width:900px){.feature-grid{grid-template-columns:1fr;}}
.feature{position:relative;padding:1.75rem;border-radius:var(--r-lg);background:var(--grad-surface);
  border:1px solid var(--border);overflow:hidden;}
.feature__icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--growth) 14%,transparent);color:var(--growth-600);margin-bottom:1rem;}
.feature__icon svg{width:26px;height:26px;}
.feature h3{margin:0 0 .5rem;}
.feature p{color:var(--muted);font-size:var(--step--1);margin:0;}
.feature--violet .feature__icon{background:color-mix(in srgb,var(--violet) 14%,transparent);color:var(--violet);}
.feature--warm .feature__icon{background:color-mix(in srgb,var(--signal) 18%,transparent);color:#A9700C;}

/* ---------- Stat band ---------- */
.stat-band{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:2rem;}
@media(max-width:760px){.stat-band{grid-template-columns:repeat(2,1fr);}}
.stat{text-align:center;padding:1.25rem 1rem;border-radius:var(--r-md);
  background:var(--surface);border:1px solid var(--border);}
.stat__n{display:block;font-family:var(--font-mono);font-size:var(--step-3);
  font-weight:500;line-height:1;background:var(--grad-cool);-webkit-background-clip:text;
  background-clip:text;-webkit-text-fill-color:transparent;}
.stat__l{display:block;margin-top:.5rem;font-size:var(--step--1);color:var(--muted);}

/* ---------- Header scrolled state ---------- */
.site-header.is-scrolled{box-shadow:0 4px 24px -8px rgba(8,49,44,.18);}
[data-theme="dark"] .site-header.is-scrolled{box-shadow:0 4px 24px -8px rgba(0,0,0,.6);}

/* ---------- Category illustration tiles ---------- */
.browse-item svg{transition:transform .3s cubic-bezier(.16,1,.3,1);}
.browse-item{background:var(--grad-surface);}

/* ---------- Article hero art ---------- */
.article-hero{background:var(--grad-surface);}

/* ==========================================================================
   IMAGE CARDS — thumbnails on every card, richer browse tiles
   ========================================================================== */
.card{padding:0;overflow:hidden;display:flex;flex-direction:column;}
.card__img{display:block;width:100%;aspect-ratio:400/260;object-fit:cover;background:var(--surface-2);}
.card__body{padding:1.35rem 1.5rem 1.6rem;display:flex;flex-direction:column;gap:.4rem;flex:1;}
.card__body .tag{align-self:flex-start;}
.card h3{margin:.2rem 0 .1rem;}

/* Browse tiles become picture tiles */
.browse-grid{gap:1rem;}
.browse-item{flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;}
.browse-item__img{width:100%;aspect-ratio:400/260;object-fit:cover;display:block;
  transition:transform .45s cubic-bezier(.16,1,.3,1);}
.browse-item:hover .browse-item__img{transform:scale(1.06);}
.browse-item__cap{padding:.85rem 1rem 1rem;display:flex;flex-direction:column;gap:2px;}
.browse-item.is-soon{opacity:.5;}

/* Article hero images sized for impact */
.article-hero svg,.article-hero img{max-height:300px;}

/* Section 01/02 feature cards get imagery */
.feature{padding:0;overflow:hidden;}
.feature__img{width:100%;aspect-ratio:400/200;object-fit:cover;display:block;}
.feature__inner{padding:1.75rem;}
.feature .feature__icon{margin-top:-46px;position:relative;z-index:1;border:4px solid var(--surface);}

/* ==========================================================================
   EDITORIAL / NEWSROOM LAYOUT (BBC-style)
   ========================================================================== */

/* ---------- Lead story ---------- */
.lead{display:grid;grid-template-columns:1.35fr 1fr;gap:clamp(1.25rem,3vw,2.5rem);align-items:center;
  padding-block:clamp(1.5rem,3vw,2.5rem);}
@media(max-width:860px){.lead{grid-template-columns:1fr;}}
.lead__media{position:relative;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-2);}
.lead__media img{width:100%;height:auto;display:block;aspect-ratio:16/10;object-fit:cover;
  transition:transform .6s cubic-bezier(.16,1,.3,1);}
.lead:hover .lead__media img{transform:scale(1.03);}
.lead__badge{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;gap:6px;
  background:var(--danger);color:#fff;font-family:var(--font-mono);font-size:.64rem;letter-spacing:.12em;
  text-transform:uppercase;font-weight:700;padding:5px 11px;border-radius:var(--r-pill);}
.lead__badge::before{content:"";width:6px;height:6px;border-radius:50%;background:#fff;
  animation:wpd-blink 1.6s ease-in-out infinite;}
@keyframes wpd-blink{0%,100%{opacity:1}50%{opacity:.25}}
.lead__kicker{font-family:var(--font-mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--growth-600);font-weight:600;}
.lead h2{font-size:var(--step-3);margin:.6rem 0 .75rem;line-height:1.1;}
.lead h2 a{color:inherit;text-decoration:none;}
.lead h2 a:hover{color:var(--growth-600);}
.lead p{color:var(--muted);font-size:var(--step-1);margin:0;}
.lead__meta{display:flex;gap:.9rem;align-items:center;margin-top:1rem;
  font-family:var(--font-mono);font-size:.72rem;color:var(--muted);}

/* ---------- Story grid (image-led cards) ---------- */
.story-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;}
@media(max-width:1000px){.story-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.story-grid{grid-template-columns:1fr;}}
.story{display:flex;flex-direction:column;text-decoration:none;color:var(--text);}
.story__media{border-radius:var(--r-md);overflow:hidden;margin-bottom:.75rem;background:var(--surface-2);}
.story__media img{width:100%;display:block;aspect-ratio:16/10;object-fit:cover;
  transition:transform .5s cubic-bezier(.16,1,.3,1);}
.story:hover .story__media img{transform:scale(1.06);}
.story__kicker{font-family:var(--font-mono);font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--growth-600);font-weight:600;margin-bottom:.35rem;}
.story h3{font-size:var(--step-0);line-height:1.28;margin:0 0 .35rem;}
.story:hover h3{color:var(--growth-600);}
.story p{font-size:var(--step--1);color:var(--muted);margin:0;}
.story__time{margin-top:.5rem;font-family:var(--font-mono);font-size:.66rem;color:var(--muted);}

/* ---------- Section block: lead + list ---------- */
.block{display:grid;grid-template-columns:1fr 1fr;gap:clamp(1.25rem,3vw,2.5rem);}
@media(max-width:860px){.block{grid-template-columns:1fr;}}
.block__lead img{width:100%;border-radius:var(--r-md);display:block;aspect-ratio:16/10;object-fit:cover;}
.block__lead h3{font-size:var(--step-1);margin:.75rem 0 .4rem;}
.block__lead p{color:var(--muted);font-size:var(--step--1);margin:0;}
.block__list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;}
.block__list li{border-bottom:1px solid var(--border);}
.block__list li:first-child{border-top:1px solid var(--border);}
.block__list a{display:flex;gap:.9rem;align-items:flex-start;padding:.85rem 0;
  text-decoration:none;color:var(--text);font-weight:600;line-height:1.35;}
.block__list a:hover{color:var(--growth-600);}
.block__list img{width:76px;height:52px;object-fit:cover;border-radius:8px;flex:none;background:var(--surface-2);}
.block__list .bl-kicker{display:block;font-family:var(--font-mono);font-size:.62rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);font-weight:500;margin-top:3px;}

/* ---------- Section rule with title ---------- */
.sec-rule{display:flex;align-items:center;gap:1rem;margin:0 0 1.5rem;}
.sec-rule h2{margin:0;font-size:var(--step-2);white-space:nowrap;}
.sec-rule::after{content:"";flex:1;height:3px;border-radius:2px;background:var(--grad-cool);opacity:.35;}
.sec-rule .see-all{white-space:nowrap;}

/* ---------- Editorial top strip ---------- */
.topbar{background:var(--ink);color:#BEE2D4;font-size:.74rem;}
.topbar__inner{max-width:var(--wrap);margin-inline:auto;padding:.45rem clamp(1rem,4vw,2rem);
  display:flex;gap:1.25rem;align-items:center;justify-content:space-between;flex-wrap:wrap;}
.topbar a{color:#BEE2D4;text-decoration:none;}
.topbar a:hover{color:var(--growth-glow);}
.topbar__date{font-family:var(--font-mono);letter-spacing:.06em;opacity:.75;}
.topbar__links{display:flex;gap:1rem;flex-wrap:wrap;}
