/* ==========================================================
   BudgetNest — design system v2
   Editorial magazine look, light + dark themes, tasteful 3D.
   Rules that keep it fast:
     - animate transform/opacity only (compositor-friendly)
     - no layout-shifting effects near ad slots
     - everything behind prefers-reduced-motion
   ========================================================== */

/* ---------- Tokens: light ---------- */
:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --bg-sunk: #eaf0ed;
  --bg-deep: #10233f;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .78);

  --text: #0b1a16;
  --text-muted: #55655f;
  --text-faint: #84968f;
  --text-invert: #eaf4ef;

  --brand: #17845a;
  --brand-hi: #2fae77;
  --brand-dark: #0f6344;
  --brand-soft: #e2f3ea;
  --brand-ring: rgba(47, 174, 119, .28);

  --accent: #d9a441;
  --accent-hi: #f0c26a;
  --accent-soft: #fbf1dc;

  --violet: #2d6fc9;
  --sky: #1b3a6b;
  --clay: #a9741d;

  /* Chart series — validated (light): lightness band, chroma,
     CVD separation and contrast all pass. See js/dashboard.js. */
  --c-needs: #3070cf;
  --c-wants: #b06a10;
  --c-save:  #1a8f62;

  --border: #e2eae6;
  --border-strong: #c9d8d2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-xs: 0 1px 2px rgba(7, 32, 26, .06);
  --shadow-sm: 0 2px 6px rgba(7, 32, 26, .06), 0 8px 20px -14px rgba(7, 32, 26, .3);
  --shadow: 0 6px 18px -8px rgba(7, 32, 26, .18), 0 24px 50px -30px rgba(7, 32, 26, .35);
  --shadow-lg: 0 20px 45px -20px rgba(7, 32, 26, .32), 0 50px 90px -60px rgba(7, 32, 26, .5);
  --shadow-brand: 0 12px 30px -12px rgba(23, 132, 90, .55);

  --mesh-1: rgba(47, 174, 119, .14);
  --mesh-2: rgba(217, 164, 65, .15);
  --mesh-3: rgba(45, 111, 201, .13);

  --max: 1200px;
  --read: 700px;

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Tokens: dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0a1210;
  --bg-soft: #101b18;
  --bg-sunk: #0c1613;
  --bg-deep: #07162a;
  --surface: #111d19;
  --surface-glass: rgba(10, 18, 16, .8);

  --text: #e8f1ed;
  --text-muted: #9bada6;
  --text-faint: #708079;
  --text-invert: #e8f1ed;

  --brand: #3fd0a0;
  --brand-hi: #58e0b3;
  --brand-dark: #2bb388;
  --brand-soft: #10332a;
  --brand-ring: rgba(63, 208, 160, .28);

  --accent: #e8bb63;
  --accent-hi: #ffcd82;
  --accent-soft: #2c2415;

  --violet: #6ea4f0;
  --sky: #7aa6e8;
  --clay: #e0b46a;

  /* Chart series — dark steps re-validated against #111d19 */
  --c-needs: #5390e2;
  --c-wants: #bb8a24;
  --c-save:  #27ac82;

  --border: #1e2d28;
  --border-strong: #2e433b;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .45), 0 8px 20px -14px rgba(0, 0, 0, .8);
  --shadow: 0 6px 18px -8px rgba(0, 0, 0, .6), 0 24px 50px -30px rgba(0, 0, 0, .9);
  --shadow-lg: 0 20px 45px -20px rgba(0, 0, 0, .7), 0 50px 90px -60px rgba(0, 0, 0, 1);
  --shadow-brand: 0 12px 30px -12px rgba(63, 208, 160, .45);

  --mesh-1: rgba(63, 208, 160, .16);
  --mesh-2: rgba(217, 164, 65, .12);
  --mesh-3: rgba(155, 147, 232, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--brand-dark); }
:root[data-theme="dark"] a:hover { color: var(--brand-hi); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand);
}

/* ==========================================================
   Scroll reveal (JS adds .in when the element enters view)
   ========================================================== */
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ==========================================================
   Header
   ========================================================== */
.topbar { background: var(--bg-deep); color: var(--text-invert); font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: rgba(234, 244, 239, .82); }
.topbar a:hover { color: #fff; }
.topbar .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-right: 9px;
  box-shadow: 0 0 0 0 rgba(217, 164, 65, .6); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 65, .55); }
  70% { box-shadow: 0 0 0 9px rgba(217, 164, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
}

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 14px; }

/* ---------- Logo (inline SVG, 3D on hover) ---------- */
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 42px; height: 42px; flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(23, 132, 90, .35));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotateY(24deg) rotateX(-8deg) translateZ(6px); }
.logo-type { display: flex; flex-direction: column; line-height: 1; }
.logo-type b { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.025em; }
.logo-type b .accent { color: var(--brand); }
.logo-type small { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }

.header-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; color: var(--text); font-weight: 500; font-size: .93rem;
  padding: 9px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.main-nav a:hover { background: var(--bg-soft); color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
  color: #fff; font-weight: 600; margin-left: 8px; box-shadow: var(--shadow-brand);
}
/* The generic a:hover above sets a pale background — the CTA must keep its
   own gradient on hover or the white label disappears into it. */
.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(23, 132, 90, .75);
}
:root[data-theme="dark"] .main-nav .nav-cta { color: #05231b; }
:root[data-theme="dark"] .main-nav .nav-cta:hover { color: #05231b; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); padding: 0;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--brand-soft); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .topbar .hide-sm { display: none; }
  .topbar .container { font-size: .74rem; }
  .logo-type small { display: none; }
  .logo { gap: 9px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-type b { font-size: 1.12rem; }
  .header-inner { height: 64px; gap: 10px; }
  .main-nav { top: 64px; }
  .icon-btn { width: 38px; height: 38px; border-radius: 11px; }
  .hero { padding: 48px 0 44px; }
  .section { padding: 48px 0; }
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-cap { padding: 44px 18px 22px; }
  .carousel-cap h3 { font-size: 1.08rem; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0; display: none;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; animation: dropIn .22s var(--ease-out); }
  .main-nav { max-height: calc(100vh - 64px); overflow-y: auto; }
  .main-nav ul li { border-bottom: 1px solid var(--border); }
  .main-nav ul li:last-child { border-bottom: 0; }
  .main-nav a { display: flex; align-items: center; justify-content: space-between; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; }
  .main-nav a { border-radius: 10px; padding: 13px 12px; }
  .main-nav .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Admin door ----------
   Navy from the logo, so it reads as a real control without competing with
   the green Contact CTA beside it. */
.admin-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 13px; border-radius: 999px;
  background: linear-gradient(135deg, #24508f, var(--sky));
  color: #fff; font-size: .85rem; line-height: 1.15; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 20px -10px rgba(27, 58, 107, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.admin-link:hover {
  color: #fff; transform: translateY(-2px); filter: brightness(1.08);
  box-shadow: 0 14px 28px -10px rgba(27, 58, 107, .9), 0 0 0 3px rgba(217, 164, 65, .35);
}
.admin-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-hi); }
.admin-link span { display: flex; flex-direction: column; color: inherit; }
.admin-link small {
  font-size: .64rem; letter-spacing: .13em; text-transform: uppercase;
  color: #ffd79a; font-weight: 700; margin-top: 1px;
}

:root[data-theme="dark"] .admin-link {
  background: linear-gradient(135deg, #2c5ea6, #1b3a6b);
  border-color: rgba(255, 255, 255, .18);
}

.nav-admin { display: none; }

@media (max-width: 900px) {
  .admin-link { display: none; }
  /* In the drawer it becomes a normal row, separated from the reader's links */
  .nav-admin { display: block; margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
  .nav-admin a {
    background: linear-gradient(135deg, #24508f, var(--sky)); color: #fff;
    font-weight: 600; justify-content: flex-start; gap: 8px;
    box-shadow: 0 8px 20px -12px rgba(27, 58, 107, .9);
  }
  .nav-admin a:hover { background: linear-gradient(135deg, #2c5ea6, var(--sky)); color: #fff; }
  .nav-admin small {
    font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
    color: #ffd79a; font-weight: 700; margin-left: 4px;
  }
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, var(--brand-hi), var(--brand) 60%, var(--brand-dark));
  color: #fff; font-weight: 600; font-size: .97rem;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: var(--shadow-brand);
  transform: translateZ(0);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease-out);
}
/* Hover must darken the fill, not just move it: the hero sits on a
   green-tinted mesh, so a button that keeps the same green disappears. */
.btn:hover {
  background: linear-gradient(135deg, var(--brand-dark), #06412f);
  color: #fff;
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 38px -14px rgba(23,132,90,.7), 0 0 0 3px var(--brand-ring);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-strong); box-shadow: none;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-soft); border-color: var(--brand); box-shadow: none; }
.btn-ghost::after { display: none; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ==========================================================
   Hero + 3D scene
   ========================================================== */
.hero { position: relative; overflow: hidden; padding: 78px 0 68px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background:
    radial-gradient(760px 420px at 12% 12%, var(--mesh-1), transparent 62%),
    radial-gradient(640px 400px at 88% 4%, var(--mesh-2), transparent 60%),
    radial-gradient(700px 500px at 60% 90%, var(--mesh-3), transparent 65%);
  animation: drift 24s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.35rem, 5.2vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em;
  margin: 16px 0 18px;
}
.hero h1 em {
  font-style: italic; position: relative; white-space: nowrap;
  background: linear-gradient(120deg, var(--brand-hi), var(--brand) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.trust-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.trust-row div {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 18px; font-size: .82rem; color: var(--text-muted); box-shadow: var(--shadow-xs);
}
.trust-row strong {
  display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--text); line-height: 1.1;
}

/* ---- 3D stage ---- */
.stage { perspective: 1200px; perspective-origin: 50% 40%; }
.tilt {
  position: relative; transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.tilt .layer { transform-style: preserve-3d; }

.feature-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.feature-card .thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(145deg, #1c9668 0%, #12704c 48%, #0a4632 100%);
}
:root[data-theme="dark"] .feature-card .thumb { background: linear-gradient(145deg, #166a4c 0%, #0d4632 50%, #07281d 100%); }
.feature-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 220px at 78% 12%, rgba(217,164,65,.4), transparent 68%);
}
.feature-card .body { padding: 24px 26px 28px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.36rem; line-height: 1.24; margin: 12px 0 9px; letter-spacing: -.025em; }
.feature-card h3 a { color: var(--text); }
.feature-card h3 a:hover { color: var(--brand); }
.feature-card p { color: var(--text-muted); font-size: .95rem; margin: 0 0 16px; }
.feature-card .glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.22), transparent 45%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.tilt:hover .glare { opacity: 1; }

/* Floating 3D coin stack inside the thumb */
.coins { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.coin {
  position: absolute; width: 104px; height: 104px; border-radius: 50%;
  background: conic-gradient(from 210deg, #ffd88a, #e39a2b 28%, #b06f12 52%, #ffe3a8 76%, #e39a2b);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.55), inset 0 0 0 5px rgba(255,255,255,.22);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #6b3f05;
  animation: float 6s ease-in-out infinite;
}
.coin.c2 { width: 74px; height: 74px; font-size: 1.4rem; transform: translate3d(-84px, 38px, -60px); animation-delay: -1.6s; opacity: .92; }
.coin.c3 { width: 56px; height: 56px; font-size: 1.05rem; transform: translate3d(86px, -34px, -90px); animation-delay: -3.2s; opacity: .85; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: y 0deg; }
  50%      { translate: 0 -16px; rotate: y 22deg; }
}

/* ==========================================================
   Sections, cards
   ========================================================== */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.section-title h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.1vw, 2.2rem); letter-spacing: -.035em; margin: 8px 0 0; font-weight: 700; }
.section-title p { margin: 8px 0 0; color: var(--text-muted); max-width: 56ch; }
.link-more { font-weight: 600; font-size: .95rem; white-space: nowrap; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transform-style: preserve-3d;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-7px) rotateX(2.5deg); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card-thumb {
  position: relative; aspect-ratio: 16/9; display: grid; place-items: center;
  font-size: 2.9rem; color: #fff; overflow: hidden;
  background: linear-gradient(145deg, #1c9668, #0f5f42);
}
.card-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(260px 160px at 80% 0%, rgba(255,255,255,.25), transparent 70%);
}
.card-thumb span { position: relative; z-index: 1; transition: transform .45s var(--ease-out); display: block; }
.card:hover .card-thumb span { transform: translateZ(30px) scale(1.12) rotate(-6deg); }
.card-thumb.t2 { background: linear-gradient(145deg, #1b3a6b, #0d2242); }
.card-thumb.t3 { background: linear-gradient(145deg, #a9741d, #5d3f0c); }
.card-thumb.t4 { background: linear-gradient(145deg, #2d6fc9, #17386b); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-family: var(--font-display); font-size: 1.19rem; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { margin: 0; color: var(--text-muted); font-size: .93rem; }
.card-body .meta { margin-top: auto; padding-top: 6px; }

.tag {
  display: inline-block; align-self: flex-start;
  font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px;
}
.tag.alt { color: var(--clay); background: var(--accent-soft); }

.meta { font-size: .81rem; color: var(--text-faint); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta .sep { opacity: .5; }

/* Category tiles */
.categories { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.cat {
  position: relative; display: block; overflow: hidden; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px 24px; box-shadow: var(--shadow-xs);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out), border-color .2s var(--ease);
}
.cat::before {
  content: ""; position: absolute; inset: auto auto 0 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--brand-hi), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); border-color: var(--border-strong); }
.cat:hover::before { transform: scaleX(1); }
.cat .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); font-size: 1.45rem; margin-bottom: 14px;
  transition: transform .35s var(--ease-out);
}
.cat:hover .ico { transform: translateY(-3px) rotate(-7deg) scale(1.06); }
.cat strong { display: block; font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -.015em; }
.cat span.desc { font-size: .9rem; color: var(--text-muted); display: block; }
.cat .count { font-size: .77rem; color: var(--brand); font-weight: 700; margin-top: 12px; display: block; letter-spacing: .04em; }

/* Steps / value props */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px 24px; box-shadow: var(--shadow-xs);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand); display: block; margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 1.06rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .94rem; }

/* ==========================================================
   Ad slots — fixed height, never animated (protects CLS)
   ========================================================== */
.ad-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  margin: 30px auto; width: 100%; min-height: 100px;
  background: var(--bg-soft); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text-faint); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
}
.ad-slot.leaderboard { max-width: 728px; min-height: 100px; }
.ad-slot.rectangle   { max-width: 300px; min-height: 250px; }
.ad-slot.in-article  { max-width: 336px; min-height: 280px; }
.ad-slot.live { background: none; border: 0; min-height: 0; }

/* ==========================================================
   Article
   ========================================================== */
.reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 120; width: 0;
  background: linear-gradient(90deg, var(--brand-hi), var(--accent));
  transition: width .1s linear;
}

.article-hero { position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 42px 0 38px; }
.article-hero::before {
  content: ""; position: absolute; inset: -50% -20% auto auto; width: 620px; height: 620px;
  background: radial-gradient(circle, var(--mesh-1), transparent 62%); pointer-events: none;
}
.article-hero .container { position: relative; }
.breadcrumbs { font-size: .83rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 58px; padding: 46px 20px 76px; max-width: var(--max); margin: 0 auto; }
@media (max-width: 1020px) { .article-layout { grid-template-columns: 1fr; gap: 42px; } }

.article { max-width: var(--read); min-width: 0; }
.article h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.3vw, 2.95rem); line-height: 1.11; letter-spacing: -.04em; margin: 10px 0 16px; }
.article .lede { font-size: 1.21rem; color: var(--text-muted); margin: 0 0 22px; line-height: 1.55; }

.byline {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted); margin-bottom: 32px;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--brand-hi), var(--brand-dark)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-brand);
}
.byline strong { color: var(--text); display: block; font-size: .95rem; }
.byline a { color: var(--text); }

.prose { font-family: var(--font-body); font-size: 1.16rem; line-height: 1.78; }
.prose > h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.62rem; margin: 2.15em 0 .6em; letter-spacing: -.03em; scroll-margin-top: 110px; }
.prose > h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.14rem; margin: 1.75em 0 .5em; }
.prose p { margin: 0 0 1.25em; }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.6rem; line-height: .82;
  padding: .06em .09em 0 0; color: var(--brand); font-weight: 700;
}
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.35em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-style: italic; color: var(--text-muted); }

.table-wrap {
  overflow-x: auto; margin: 1.6em 0 1.9em; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-xs); background: var(--surface);
}
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .93rem; }
.prose th, .prose td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { background: var(--bg-soft); font-weight: 600; font-size: .84rem; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }
.prose tbody tr { transition: background .15s var(--ease); }
.prose tbody tr:hover { background: var(--bg-soft); }
.prose tbody tr:last-child td { border-bottom: 0; }

.callout {
  position: relative; font-family: var(--font-ui); font-size: 1rem; line-height: 1.6;
  background: var(--brand-soft); border-left: 4px solid var(--brand);
  padding: 19px 23px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.8em 0;
}
.callout strong { display: block; margin-bottom: 5px; color: var(--text); }
.callout.warn { background: var(--accent-soft); border-left-color: var(--accent); }

.toc {
  font-family: var(--font-ui); font-size: .95rem; background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 26px; margin: 0 0 32px;
}
.toc strong { display: block; margin-bottom: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 7px; }
.toc a.active { color: var(--brand); font-weight: 600; }

.share { display: flex; gap: 10px; align-items: center; margin: 38px 0 0; font-size: .87rem; color: var(--text-muted); flex-wrap: wrap; }
.share a { border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px; color: var(--text); font-size: .85rem; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.share a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.author-box { display: flex; gap: 18px; padding: 26px; margin-top: 46px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box .avatar { width: 60px; height: 60px; font-size: 1.15rem; }
.author-box h4 { margin: 0 0 4px; font-size: 1rem; }
.author-box p { margin: 0; font-size: .93rem; color: var(--text-muted); }

.disclaimer-note { font-size: .84rem; color: var(--text-faint); border-top: 1px solid var(--border); padding-top: 18px; margin-top: 36px; }
.related { margin-top: 58px; }
.related h2 { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.03em; margin: 0 0 22px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.sidebar .sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 26px; }
.widget { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); box-shadow: var(--shadow-xs); }
.widget h3 { margin: 0 0 14px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .93rem; line-height: 1.4; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li a { color: var(--text); font-weight: 500; }
.widget li a:hover { color: var(--brand); }
.widget .num { color: var(--brand); font-weight: 700; margin-right: 9px; font-family: var(--font-display); }

/* ==========================================================
   Static pages
   ========================================================== */
.page-hero { position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 60px 0 52px; }
.page-hero::before {
  content: ""; position: absolute; inset: -60% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--mesh-1), transparent 60%); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 2.95rem); letter-spacing: -.04em; margin: 12px 0 14px; font-weight: 700; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }

.page { max-width: var(--read); margin: 0 auto; padding: 50px 20px 76px; }
.page.wide { max-width: 1000px; }
.page .updated { color: var(--text-faint); font-size: .87rem; margin: 0 0 30px; }
.page h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; margin: 2em 0 .5em; }
.page h3 { font-size: 1.07rem; margin: 1.6em 0 .4em; }
.page li { margin-bottom: .45em; }
.page li::marker { color: var(--brand); }

.team { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 30px 0; }
.member {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member .avatar { margin-bottom: 14px; }
.member h3 { margin: 0 0 3px; font-size: 1.06rem; }
.member .role { color: var(--brand); font-size: .84rem; font-weight: 600; margin: 0 0 9px; }
.member p { font-size: .92rem; color: var(--text-muted); margin: 0; }

form.contact { display: grid; gap: 16px; margin-top: 26px; }
form.contact .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { form.contact .row { grid-template-columns: 1fr; } }
form.contact label { font-weight: 600; font-size: .89rem; display: block; margin-bottom: 7px; }
input, textarea, select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: .96rem; background: var(--bg); color: var(--text);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact button { justify-self: start; }

.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 17px 21px;
  margin-bottom: 12px; background: var(--surface); transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 13px 0 0; color: var(--text-muted); font-size: .96rem; }

/* Calculator */
.calc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow); margin: 30px 0;
}
.calc .field { margin-bottom: 18px; }
.calc label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 7px; }
.calc .hint { font-size: .82rem; color: var(--text-faint); margin: 6px 0 0; }
.calc-out { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 24px; }
.calc-out .box {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center;
  background: var(--bg-soft);
}
.calc-out .box span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 8px; }
.calc-out .box strong { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -.02em; }
.calc-out .box.needs strong { color: var(--sky); }
.calc-out .box.wants strong { color: var(--clay); }
.calc-out .box.save strong { color: var(--brand); }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 22px; border: 1px solid var(--border); }
.bar i { display: block; height: 100%; transition: width .5s var(--ease-out); }
.bar .b-needs { background: var(--sky); }
.bar .b-wants { background: var(--clay); }
.bar .b-save { background: var(--brand); }

/* Glossary */
.glossary dl { margin: 0; }
.glossary dt { font-weight: 700; margin-top: 26px; font-size: 1.05rem; }
.glossary dd { margin: 6px 0 0; color: var(--text-muted); }
.alpha-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.alpha-nav a { border: 1px solid var(--border); border-radius: 9px; padding: 6px 12px; font-size: .86rem; color: var(--text); font-weight: 600; }
.alpha-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* ==========================================================
   Newsletter + footer
   ========================================================== */
.newsletter {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1c9668 0%, #0f6344 55%, #0a4632 100%);
  border-radius: var(--radius-lg); padding: 50px 42px;
  display: grid; gap: 26px; grid-template-columns: 1.1fr .9fr; align-items: center;
  box-shadow: var(--shadow-lg);
}
.newsletter::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -130px; top: -180px;
  background: radial-gradient(circle, rgba(217,164,65,.4), transparent 66%);
  animation: drift 18s ease-in-out infinite alternate;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -.03em; margin: 0 0 8px; }
.newsletter p { margin: 0; opacity: .9; font-size: .98rem; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 200px; min-width: 0; height: 52px; padding: 0 20px;
  border-radius: 999px; border: 0;
  background: #fff; color: #10231d;
}
.newsletter input::placeholder { color: #6b7b75; }
.newsletter input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.newsletter form > .btn { flex: 0 0 auto; }
@media (max-width: 520px) {
  .newsletter form { flex-direction: column; align-items: stretch; }
  /* basis would apply to height in a column — pin the field back to its
     natural size and let width do the stretching instead */
  .newsletter input { flex: 0 0 auto; width: 100%; height: 52px; }
  .newsletter form > .btn { width: 100%; }
}
.newsletter button { background: linear-gradient(135deg, var(--accent-hi), var(--accent)); color: #2b1d03; box-shadow: none; }
.newsletter button:hover { color: #2b1d03; }
.newsletter .fine { font-size: .79rem; opacity: .78; margin-top: 10px; width: 100%; }
.newsletter .fine a { color: #ffd79a; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; padding: 34px 24px; } }

.site-footer { background: var(--bg-deep); color: var(--text-invert); padding: 64px 0 26px; margin-top: 76px; font-size: .92rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-type b .accent { color: var(--accent); }
.site-footer .logo-type small { color: rgba(234,244,239,.5); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.site-footer h4 { margin: 0 0 14px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(234,244,239,.5); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(234,244,239,.78); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(234,244,239,.6); margin: 16px 0 0; max-width: 42ch; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(234,244,239,.12); margin-top: 46px; padding-top: 22px;
  color: rgba(234,244,239,.55); font-size: .83rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(234,244,239,.72); }

/* ==========================================================
   Consent banner
   ========================================================== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 620px; margin: 0 auto; display: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg); font-size: .92rem;
}
.cookie-banner.show { display: block; animation: slideUp .35s var(--ease-out); }
@keyframes slideUp { from { transform: translate3d(0, 24px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-banner p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.55; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-banner button { border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; font-size: .92rem; }
.cookie-banner .accept { background: linear-gradient(135deg, var(--brand-hi), var(--brand)); color: #fff; }
.cookie-banner .reject { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border-strong); }

.not-found { text-align: center; padding: 110px 20px 90px; }
.not-found h1 {
  font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 8rem); margin: 0; letter-spacing: -.05em;
  background: linear-gradient(120deg, var(--brand-hi), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}


/* ==========================================================
   Polish pass
   Small, deliberate refinements: sharper hierarchy, clearer
   affordances, calmer surfaces. Nothing here animates layout.
   ========================================================== */

::selection { background: var(--brand-soft); color: var(--text); }

/* Thin gradient hairline under the sticky header while scrolled */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}
.site-header.scrolled::after { opacity: .85; }

/* Section headings get a short accent rule — cheap, but it reads as
   deliberate typesetting rather than default spacing. */
.section-title h2::before {
  content: ""; display: block; width: 46px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin-bottom: 14px;
}

/* ---------- Cards ---------- */
.card { position: relative; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow .3s var(--ease);
}
.card:hover::after { box-shadow: inset 0 0 0 1.5px var(--brand-ring); }
.card-body h3 a { background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s var(--ease-out), color .2s var(--ease); }
.card-body h3 a:hover { background-size: 100% 1.5px; }
.card-more {
  margin-top: 4px; font-size: .84rem; font-weight: 700; color: var(--brand);
  letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px;
}
.card:hover .card-more span { transform: translateX(3px); }
.card-more span { transition: transform .25s var(--ease-out); display: inline-block; }

/* ---------- Prose refinements ---------- */
.prose > h2 { position: relative; padding-top: 6px; }
.prose > h2::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 2px;
  background: var(--brand); opacity: .55; margin-bottom: 14px;
}
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
.prose tbody tr:hover { background: var(--bg-soft); }
.prose a { background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 1px; }
.prose a:hover { background-size: 100% 2px; }

/* "In short" answer box at the top of every guide */
.in-short {
  font-family: var(--font-ui); font-size: .98rem; line-height: 1.6;
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 0 0 30px;
}
.in-short h2 {
  font-family: var(--font-ui); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px;
}
.in-short ul { margin: 0; padding-left: 1.15em; }
.in-short li { margin-bottom: .55em; }
.in-short li:last-child { margin-bottom: 0; }
.in-short li::marker { color: var(--accent); }

/* Byline chips */
.byline .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.byline .chip {
  font-size: .76rem; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted);
}

/* ---------- Forms ---------- */
.form-status {
  margin: 14px 0 0; font-size: .92rem; padding: 12px 16px; border-radius: var(--radius-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--brand-soft); color: var(--text); border: 1px solid var(--brand); }
.form-status.err { background: var(--accent-soft); color: var(--text); border: 1px solid var(--accent); }
.newsletter .form-status { width: 100%; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
button[data-busy="true"] { opacity: .72; pointer-events: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease-out), border-color .2s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 620px) { .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; } }

/* ---------- Sidebar + widgets ---------- */
.widget { position: relative; overflow: hidden; }
.widget::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .8;
}
.widget li a { display: block; }

/* ---------- Category tiles ---------- */
.cat .ico { border: 1px solid var(--border); }

/* ---------- Trust row ---------- */
.trust-row div { position: relative; overflow: hidden; }
.trust-row div::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); opacity: .6;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--violet));
}

/* ---------- Dashboard ---------- */
.panel-card { position: relative; }
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--brand); opacity: .35;
}
.dash-tabs { position: sticky; top: 74px; z-index: 40; background: var(--bg); padding-top: 10px; }
@media (max-width: 900px) { .dash-tabs { top: 64px; } }

/* ---------- Guides index: alternating section tint ---------- */
.section:nth-of-type(even) .grid { --stagger: 1; }

/* ---------- Scrollbar (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
  *::-webkit-scrollbar { width: 10px; height: 10px; }
  *::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid var(--bg); }
  *::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
}

/* ==========================================================
   Responsive layer
   Tested mentally against the real device spread:
     320  iPhone SE 1 / small Androids
     360  Galaxy A-series, most budget Androids
     390  iPhone 14/15
     430  iPhone Pro Max
     768  tablets portrait
     1024 tablets landscape / small laptops
   Rules: nothing may overflow horizontally, every tappable
   target stays >= 44px, and heavy 3D is dropped on touch.
   ========================================================== */

/* Fluid gutters so 320px screens keep breathing room without
   wasting space on a 1200px one. */
.container { padding-inline: clamp(14px, 4vw, 20px); }

/* ---------- Tablet / small laptop ---------- */
@media (max-width: 1024px) {
  body { font-size: 16.5px; }
  .section { padding: 56px 0; }
  .newsletter { padding: 40px 30px; }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 768px) {
  .hero { padding: 40px 0 38px; }
  .hero-sub { font-size: 1.05rem; }
  .section { padding: 44px 0; }
  .section-title { margin-bottom: 24px; }
  .grid { gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .steps { gap: 16px; }
  .step { padding: 22px 20px; }
  .article-layout { padding: 30px clamp(14px, 4vw, 20px) 56px; gap: 34px; }
  .prose { font-size: 1.1rem; line-height: 1.72; }
  .page { padding: 36px clamp(14px, 4vw, 20px) 56px; }
  .page-hero { padding: 40px 0 36px; }
  .author-box { padding: 20px; }
  .marquee figure { width: 210px; }
}

/* ---------- Large phones ---------- */
@media (max-width: 620px) {
  body { font-size: 16px; }

  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.4rem); letter-spacing: -.03em; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

  .trust-row { gap: 10px; margin-top: 26px; }
  .trust-row div { flex: 1 1 calc(33.333% - 10px); padding: 10px 12px; text-align: center; font-size: .72rem; }
  .trust-row strong { font-size: 1.2rem; }

  .carousel-slide img { aspect-ratio: 4/3; }
  .carousel-cap { padding: 40px 16px 26px; }
  .carousel-cap h3 { font-size: 1.02rem; line-height: 1.3; }
  .carousel-cap p { font-size: .84rem; }
  .carousel-dots { bottom: 10px; }

  .grid { grid-template-columns: 1fr; gap: 18px; }
  .categories { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { padding: 18px 14px; }
  .cat .ico { width: 38px; height: 38px; font-size: 1.2rem; margin-bottom: 10px; }
  .cat strong { font-size: 1rem; }
  .cat span.desc { font-size: .84rem; }

  .section-title h2::before { width: 36px; margin-bottom: 10px; }
  .link-more { font-size: .9rem; }

  .article h1 { font-size: clamp(1.65rem, 7.6vw, 2.1rem); }
  .article .lede { font-size: 1.05rem; }
  .prose { font-size: 1.06rem; }
  .prose > h2 { font-size: 1.32rem; }
  .prose > p:first-of-type::first-letter { font-size: 2.9rem; }
  .prose th, .prose td { padding: 10px 11px; font-size: .88rem; }
  .callout, .in-short { padding: 15px 17px; font-size: .95rem; }
  .toc { padding: 16px 18px; }
  .byline { gap: 11px; }
  .avatar { width: 40px; height: 40px; font-size: .85rem; }
  .author-box { flex-direction: column; gap: 12px; }
  .share { gap: 8px; }
  .share a { padding: 8px 13px; }

  .page h2 { font-size: 1.28rem; }
  .team { grid-template-columns: 1fr; gap: 14px; }
  .faq details { padding: 15px 17px; }

  .newsletter { padding: 26px 20px; border-radius: 20px; }
  .newsletter h2 { font-size: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding: 44px 0 20px; margin-top: 52px; }
  .footer-bottom { margin-top: 30px; flex-direction: column; gap: 8px; }

  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 18px; font-size: .88rem; }
  .cookie-banner .actions button { flex: 1 1 auto; }

  /* Dashboard: rows stack into labelled pairs rather than squeezing */
  .dash { padding: 30px clamp(14px, 4vw, 20px) 60px; }
  .dash-grid { gap: 18px; }
  .panel-card { padding: 18px; border-radius: 14px; }
  .dash-tabs { gap: 6px; padding-bottom: 12px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dash-tabs button { white-space: nowrap; padding: 10px 14px; font-size: .88rem; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 1.35rem; }
  .legend { gap: 10px; font-size: .84rem; }
  .legend span { flex: 1 1 100%; }
  .dash table { font-size: .84rem; }
  .dash th, .dash td { padding: 8px 9px; }
}

/* ---------- Standard phones ---------- */
@media (max-width: 430px) {
  .topbar .container { min-height: 34px; }
  .topbar span:first-child { font-size: .72rem; }
  .header-inner { height: 60px; }
  .main-nav { top: 60px; }
  .logo-mark { width: 31px; height: 31px; }
  .logo-type b { font-size: 1.04rem; }

  .eyebrow { font-size: .68rem; letter-spacing: .12em; }
  .carousel { border-radius: 18px; }
  .card { border-radius: 14px; }
  .btn { padding: 12px 20px; font-size: .93rem; }

  .row-item { grid-template-columns: 1fr; gap: 8px; }
  .row-item .del { justify-self: end; width: 44px; height: 44px; }
  .row-item input, .row-item select { padding: 11px 12px; }
}

/* ---------- Small phones (320–360) ---------- */
@media (max-width: 380px) {
  body { font-size: 15.5px; }
  .container { padding-inline: 13px; }

  .logo-type b { font-size: .98rem; }
  .icon-btn { width: 36px; height: 36px; }
  .header-actions { gap: 7px; }

  .hero h1 { font-size: 1.72rem; }
  .hero-sub { font-size: .98rem; }
  .trust-row div { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; justify-content: center; }
  .trust-row strong { display: inline; font-size: 1.05rem; }

  .categories { grid-template-columns: 1fr; }
  .carousel-cap h3 { font-size: .96rem; }
  .stat-row { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .prose > p:first-of-type::first-letter { font-size: 2.5rem; }
  .not-found { padding: 70px 14px 60px; }
}

/* ---------- Touch devices: no hover-only affordances, no heavy 3D ----------
   Tilt already checks for a fine pointer in JS; this is the CSS half. */
@media (hover: none) {
  .card:hover { transform: none; }
  .card:hover .card-thumb img { transform: none; }
  .cat:hover { transform: none; }
  .member:hover { transform: none; }
  .tilt { transform: none !important; }
  .feature-card:hover { transform: none; }
  .marquee-lane { animation-duration: 58s; }
  .btn:hover { transform: none; }
  /* Comfortable tap targets everywhere */
  .main-nav a, .btn, .dash-tabs button, .carousel-btn, .icon-btn, .del { min-height: 44px; }
  input[type="email"], input[type="text"], input[type="number"], select { min-height: 44px; }
  .carousel-dots button { width: 10px; height: 10px; }
  .carousel-dots button.on { width: 26px; }
}

/* ---------- Landscape phones: stop the hero eating the screen ---------- */
@media (max-height: 460px) and (orientation: landscape) {
  .hero { padding: 26px 0 24px; }
  .site-header { position: static; }
  .dash-tabs { position: static; }
}

/* ---------- Anything that could ever overflow ---------- */
.table-wrap, .dash table, pre, code { max-width: 100%; }
.prose img, .page img { border-radius: var(--radius-sm); }


/* Dashboard input rows: two columns that collapse, with min-width 0 so a
   long select can never push the card wider than the phone. */
.dash-row { display: grid; gap: 14px; }
.dash-row.two { grid-template-columns: 1fr 140px; }
.dash-row > div { min-width: 0; }
.dash-grid > * { min-width: 0; }
.panel-card { min-width: 0; overflow-wrap: anywhere; }
.row-item { min-width: 0; }
.row-item > * { min-width: 0; }
@media (max-width: 520px) {
  .dash-row.two { grid-template-columns: 1fr; }
}

/* ==========================================================
   3D layer
   Real depth, not decoration: each surface gets its own
   perspective parent so the rotation reads as the card
   turning rather than the page skewing. Compositor-only
   properties, and everything is switched off on touch and
   under prefers-reduced-motion.
   ========================================================== */

.steps, .categories, .team, .marquee-lane, .grid { perspective: 1200px; }

.step {
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .25s var(--ease);
}
.step:hover {
  transform: translateY(-6px) rotateX(7deg) rotateY(-5deg);
  box-shadow: var(--shadow); border-color: var(--border-strong);
}
.step::before { transition: transform .35s var(--ease-out); }
.step:hover::before { transform: translateZ(26px); }
.step h3 { transition: transform .35s var(--ease-out); }
.step:hover h3 { transform: translateZ(16px); }

.cat { transform-style: preserve-3d; }
.cat:hover { transform: translateY(-5px) rotateX(6deg) rotateY(4deg); }
.cat:hover .ico { transform: translateZ(28px) rotate(-8deg) scale(1.08); }
.cat strong, .cat .count { transition: transform .35s var(--ease-out); }
.cat:hover strong { transform: translateZ(14px); }

.member { transform-style: preserve-3d; }
.member:hover { transform: translateY(-5px) rotateY(5deg) rotateX(3deg); }
.member:hover .avatar { transform: translateZ(24px); }
.member .avatar { transition: transform .35s var(--ease-out); }

.marquee figure {
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.marquee figure:hover { transform: rotateY(9deg) translateZ(20px) scale(1.03); box-shadow: var(--shadow); }

/* Floating coin above the hero — the logo mark, given depth */
.hero-badge {
  position: absolute; z-index: 2; pointer-events: none;
  width: 92px; height: 92px; right: 4%; top: 12%;
  filter: drop-shadow(0 22px 26px rgba(7, 32, 26, .35));
  animation: coinFloat 9s ease-in-out infinite;
  transform-style: preserve-3d;
}
.hero-badge.two { width: 54px; height: 54px; right: auto; left: 46%; top: auto; bottom: 8%; animation-delay: -4.5s; opacity: .85; }
@keyframes coinFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0deg) rotateZ(-4deg); }
  50%      { transform: translate3d(0, -22px, 40px) rotateY(180deg) rotateZ(4deg); }
}
@media (max-width: 980px) { .hero-badge { display: none; } }

/* Article hero photo gets a gentle 3D lift too */
.article-figure { transform-style: preserve-3d; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.article-figure:hover { transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow); }

/* Buttons press inward rather than just shrinking */
.btn:active { transform: translateY(1px) scale(.985) rotateX(8deg); }

@media (hover: none) {
  .step:hover, .cat:hover, .member:hover, .marquee figure:hover, .article-figure:hover { transform: none; }
  .hero-badge { display: none; }
}

/* ==========================================================
   Motion preferences — everything above degrades safely
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print: no ads, no chrome */
@media print {
  .site-header, .topbar, .site-footer, .ad-slot, .cookie-banner, .sidebar, .share, .newsletter { display: none !important; }
  body { font-size: 12pt; }
  .article-layout { display: block; padding: 0; }
}

/* ==========================================================
   Carousel + marquee (real photography, auto-advancing)
   ========================================================== */
.carousel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--bg-sunk);
}
.carousel-track { display: flex; transition: transform .75s var(--ease-out); will-change: transform; }
.carousel-slide { position: relative; flex: 0 0 100%; }
.carousel-slide img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.carousel-cap {
  position: absolute; inset: auto 0 0 0; padding: 60px 26px 26px; color: #fff;
  background: linear-gradient(to top, rgba(7,16,14,.9), rgba(7,16,14,.2) 70%, transparent);
}
.carousel-cap .tag { background: rgba(255,255,255,.18); color: #fff; }
.carousel-cap h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 10px 0 4px; letter-spacing: -.02em; }
.carousel-cap h3 a { color: #fff; }
.carousel-cap p { margin: 0; font-size: .9rem; opacity: .86; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #0b1a16; display: grid; place-items: center;
  font-size: 1.1rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease);
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.09); }
.carousel-btn[data-prev] { left: 14px; }
.carousel-btn[data-next] { right: 14px; }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.45); transition: width .25s var(--ease), background .25s var(--ease);
}
.carousel-dots button.on { width: 24px; border-radius: 999px; background: #fff; }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-lane { display: flex; gap: 18px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-lane { animation-play-state: paused; }
@keyframes slide { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.marquee figure {
  margin: 0; width: 248px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-xs); background: var(--surface);
}
.marquee img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.marquee figcaption { padding: 11px 14px; font-size: .84rem; color: var(--text-muted); }

/* Photography inside cards and articles */
.article-figure { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-figure figcaption { padding: 10px 14px; font-size: .8rem; color: var(--text-faint); background: var(--bg-soft); }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-thumb img { transform: scale(1.06); }
.feature-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   Money Dashboard (tools page)
   Everything is stored in the reader browser only: no account,
   no server, nothing transmitted.
   ========================================================== */
.dash { max-width: 1060px; margin: 0 auto; padding: 44px 20px 80px; }
.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.dash-tabs button {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 10px 18px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.dash-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.dash-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
:root[data-theme="dark"] .dash-tabs button[aria-selected="true"] { color: #05231b; }

.panel { display: none; }
.panel.on { display: block; animation: fadeUp .35s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0,10px,0); } to { opacity: 1; transform: none; } }

.dash-grid { display: grid; gap: 26px; grid-template-columns: 1.1fr .9fr; align-items: start; }
@media (max-width: 920px) { .dash-grid { grid-template-columns: 1fr; } }

.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); }
.panel-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.panel-card .sub { margin: 0 0 18px; font-size: .9rem; color: var(--text-muted); }

.rows { display: grid; gap: 10px; }
.row-item { display: grid; grid-template-columns: 1fr 128px 112px 38px; gap: 10px; align-items: center; }
@media (max-width: 640px) { .row-item { grid-template-columns: 1fr 1fr; } }
.row-item input, .row-item select { padding: 10px 12px; font-size: .92rem; }
.del {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0;
}
.del:hover { border-color: #c0392b; color: #c0392b; }

.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); margin-bottom: 22px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--bg-soft); }
.stat span { display: block; font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 7px; }
.stat strong { font-family: var(--font-display); font-size: 1.62rem; letter-spacing: -.02em; display: block; line-height: 1.1; }
.stat small { color: var(--text-muted); font-size: .82rem; }

/* Charts: colour rides on the mark, text keeps ink tokens */
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: .88rem; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: -1px; }
.legend span { color: var(--text-muted); }
.legend b { color: var(--text); font-weight: 600; }

.stack { display: flex; height: 28px; border-radius: 9px; overflow: hidden; background: var(--bg-sunk); gap: 2px; }
.stack i { display: block; height: 100%; transition: width .55s var(--ease-out); }
.meter { height: 12px; border-radius: 999px; background: var(--bg-sunk); overflow: hidden; margin: 12px 0 6px; }
.meter i { display: block; height: 100%; background: var(--c-save); transition: width .6s var(--ease-out); }

.donut { display: block; margin: 0 auto; max-width: 240px; }
.donut circle { transition: stroke-dasharray .6s var(--ease-out); }

.goal { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--surface); }
.goal-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.goal-head strong { font-size: 1rem; }
.goal-head span { font-size: .85rem; color: var(--text-muted); }

.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.privacy-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--brand-soft); font-size: .9rem;
}
.dash table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 18px; }
.dash th, .dash td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.dash th { font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.dash td.num, .dash th.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
