/* Krovea — shared stylesheet */
/* Fraunces variable serif for the wordmark — modern editorial typeface with old-style warmth */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,400..900,0..100,0..1&display=swap');

:root {
  /* Surfaces */
  --ink: #0a0e1a;
  --ink-2: #1e293b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f1f5f9;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --muted: #64748b;
  --muted-2: #94a3b8;

  /* Brand */
  --navy: #0a0e1a;
  --navy-2: #0f172a;
  --navy-3: #1e293b;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-darker: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-tint: #eff6ff;
  --accent: #fbbf24;
  --accent-2: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;

  /* Legacy aliases (kept so older selectors still resolve) */
  --green: var(--primary);
  --green-dark: var(--navy);
  --green-light: var(--primary-tint);
  --gold: var(--accent);

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow: 0 4px 16px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 40px -10px rgba(15,23,42,.15), 0 8px 16px -8px rgba(15,23,42,.1);
  --maxw: 1240px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary-light); color: var(--navy); }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.col { flex: 1 1 0; min-width: 0; }

/* ======== Modern Fixed Header ======== */

/* Reserve top space for the fixed header */
body { padding-top: var(--header-h, 76px); }
:root { --header-h: 76px; --header-h-scrolled: 60px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, height .25s ease;
  will-change: background-color, height;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(15,23,42,0.06) 20%, rgba(15,23,42,0.06) 80%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 8px 24px -12px rgba(15,23,42,0.1);
}
.site-header.scrolled::after { opacity: 1; }

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 32px;
  height: var(--header-h);
  transition: height .25s ease;
}
.site-header.scrolled .header-inner {
  height: var(--header-h-scrolled);
}

/* Logo */
/* ============================================
   KROVEA WORDMARK
   Bigger badge + Fraunces serif wordmark with
   brass keyline that animates in on hover.
   ============================================ */
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  text-decoration: none !important;
  transition: opacity .2s;
  /* Fraunces is the wordmark typeface */
  font-family: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1;
  /* Fraunces variable axes: optical size, soft terminals, no wonky letterforms */
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  font-feature-settings: "liga" 1, "calt" 1;
}
.logo:hover { color: var(--navy); opacity: 1; }

/* The wordmark text — animated brass keyline beneath on hover */
.logo > span:not(.logo-mark) {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}
.logo > span:not(.logo-mark)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #c8954a 0%, #f4c878 60%, #c8954a 100%);
  border-radius: 1px;
  transition: right .5s cubic-bezier(.2, .8, .2, 1);
  opacity: 0.85;
}
.logo:hover > span:not(.logo-mark)::after { right: 0; }

/* The icon badge — same gradient as before, but larger */
.logo-mark {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
  border-radius: 11px;
  color: #fff;
  box-shadow:
    0 8px 22px -6px rgba(37, 99, 235, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(244, 200, 120, 0.06);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  border-radius: 14px;
  opacity: 0;
  filter: blur(10px);
  z-index: -1;
  transition: opacity .35s;
}
.logo:hover .logo-mark {
  transform: rotate(-4deg) scale(1.05);
  box-shadow:
    0 12px 28px -6px rgba(37, 99, 235, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 0 0 1px rgba(244, 200, 120, 0.18);
}
.logo:hover .logo-mark::before { opacity: 0.6; }
.logo-mark svg { width: 24px; height: 24px; }

/* Compact size on small viewports */
@media (max-width: 640px) {
  .logo { font-size: 22px; gap: 11px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 10px; }
  .logo-mark svg { width: 20px; height: 20px; }
}
@media (max-width: 420px) {
  .logo { font-size: 20px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-mark svg { width: 18px; height: 18px; }
}

/* Dark-background variant (footer) */
.logo.logo-on-dark { color: #fff; }
.logo.logo-on-dark:hover { color: #fff; }
.logo.logo-on-dark .logo-mark {
  background: linear-gradient(135deg, #1e293b 0%, #0a0e1a 100%);
  box-shadow:
    0 6px 16px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(244, 200, 120, 0.12);
}

.logo-tld {
  color: var(--primary);
  font-weight: 600;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link, .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 9px 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  position: relative;
  text-decoration: none;
  letter-spacing: -0.1px;
}
.nav-link::before, .nav-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(59,130,246,0.02));
  opacity: 0;
  transition: opacity .2s ease;
  z-index: -1;
}
.nav-link:hover, .nav-trigger:hover {
  color: var(--navy);
  text-decoration: none;
}
.nav-link:hover::before, .nav-trigger:hover::before { opacity: 1; }
.nav-link.active { color: var(--primary-dark); font-weight: 600; }
.nav-link.active::after, .nav-item.active .nav-trigger::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-darker));
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(37,99,235,0.4);
}
.site-header.scrolled .nav-link.active::after,
.site-header.scrolled .nav-item.active .nav-trigger::after { bottom: -11px; }
.nav-trigger .caret {
  font-size: 10px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  color: var(--muted-2);
}
.nav-item.open .nav-trigger .caret { transform: rotate(180deg); }
.nav-item.open .nav-trigger { color: var(--navy); }
.nav-item.open .nav-trigger::before { opacity: 1; }

/* Mega dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-10px) scale(0.98);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 60px -20px rgba(15,23,42,0.25), 0 8px 24px -12px rgba(15,23,42,0.15);
  padding: 22px;
  min-width: 580px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.2,.8,.2,1), transform .22s cubic-bezier(.2,.8,.2,1);
  z-index: 50;
}
.nav-item.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-grid.three { grid-template-columns: 1fr 1fr 1fr; min-width: 640px; }
.mega-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background .15s;
  color: var(--ink);
}
.mega-item:hover { background: var(--bg-tint); text-decoration: none; color: var(--ink); }
.mega-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary-dark);
}
.mega-item:hover .mega-icon { background: linear-gradient(135deg, var(--primary), var(--primary-darker)); color: #fff; }
.mega-content { min-width: 0; }
.mega-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin: 0 0 2px;
}
.mega-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  min-width: 220px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.search-trigger:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--ink-2);
}
.search-trigger svg { width: 14px; height: 14px; color: var(--muted-2); transition: color .2s; }
.search-trigger:hover svg { color: var(--primary); }
.search-trigger kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff !important;
  border: 0;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
  letter-spacing: -0.1px;
  box-shadow: 0 4px 12px -3px rgba(10, 14, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 0;
}
.cta-btn > * { position: relative; z-index: 1; }
.cta-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.cta-btn:hover::before { opacity: 1; }
.cta-btn svg { width: 13px; height: 13px; }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menu-toggle svg { width: 18px; height: 18px; color: var(--ink-2); }

/* Command palette overlay */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  z-index: 1000;
}
.cmdk-overlay.open { display: flex; }
.cmdk {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmdk-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.cmdk-input-wrap svg { color: var(--muted); width: 18px; height: 18px; }
.cmdk-input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  background: transparent;
  color: var(--ink);
}
.cmdk-results { max-height: 420px; overflow: auto; padding: 8px; }
.cmdk-row {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  align-items: baseline;
}
.cmdk-row:hover, .cmdk-row.active { background: var(--primary-tint); color: var(--ink); }
.cmdk-row .cmdk-term { font-weight: 600; color: var(--navy); }
.cmdk-row .cmdk-snippet { color: var(--muted); font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-row .cmdk-kind { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }
.cmdk-empty { padding: 32px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { padding: 10px 16px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 14px; }
.cmdk-foot kbd { font-family: var(--font-mono); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; font-size: 11px; }

@media (max-width: 980px) {
  :root { --header-h: 64px; --header-h-scrolled: 56px; }
  .nav, .search-trigger { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 12px; }
  .cta-btn { padding: 8px 14px; }
}

/* Mobile slide-down */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow);
}
.mobile-nav.open { display: block; }
.mobile-nav h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 16px 0 8px; }
.mobile-nav a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 15px; }
.mobile-nav a:hover { background: var(--bg-tint); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero.with-image {
  background: var(--navy) url("/images/hero-home.svg") center/cover no-repeat;
  padding: 110px 20px;
}
.hero.with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.45) 0%, rgba(10,14,26,0.78) 100%);
  z-index: 0;
}
.hero.with-image > * { position: relative; z-index: 1; }
.hero h1 {
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .eyebrow {
  display: inline-block;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
  font-weight: 600;
}

/* Topic banner */
.topic-banner {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  position: relative;
  margin-bottom: -80px;
}
.topic-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,14,26,0.82) 0%, rgba(10,14,26,0.55) 60%, rgba(10,14,26,0.3) 100%);
  z-index: 0;
}
.topic-banner-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.topic-banner-inner h1 {
  font-size: 48px;
  margin: 0 0 10px;
  letter-spacing: -1.5px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.topic-banner-inner .eyebrow {
  display: inline-block;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.35);
  color: #93c5fd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.topic-banner-inner p {
  font-size: 18px;
  max-width: 640px;
  margin: 0;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.topic-banner + .container > section,
.topic-banner + section { padding-top: 100px; }
.topic-banner + .container > .breadcrumb {
  position: relative;
  z-index: 2;
  background: #fff;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

@media (max-width: 760px) {
  .topic-banner { height: 180px; margin-bottom: -50px; }
  .topic-banner-inner h1 { font-size: 30px; }
  .topic-banner-inner p { font-size: 15px; }
}
.hero h1 { font-size: 44px; margin: 0 0 12px; letter-spacing: -1px; }
.hero p { font-size: 19px; max-width: 720px; margin: 0 auto 24px; opacity: .92; }
.hero .search-hero {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}
.hero .search-hero input {
  flex: 1;
  border: 0;
  padding: 14px 18px;
  font-size: 15px;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.hero .search-hero button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  color: #fff;
  border: 0;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s;
}
.hero .search-hero button:hover { transform: translateY(-1px); }

@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .hero { padding: 40px 16px; }
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
.section-title {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.8px;
  color: var(--navy);
  font-weight: 700;
}
.section-subtitle {
  color: var(--muted);
  margin: 0 0 32px;
  font-size: 17px;
  max-width: 660px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

/* Guide grid (homepage featured + latest sections) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1100px) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 520px)  { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -14px rgba(15,23,42,0.22);
  border-color: var(--primary);
  text-decoration: none;
}
.guide-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0e1a;
  overflow: hidden;
}
.guide-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}
.guide-card:hover .guide-card-image img { transform: scale(1.05); }
.guide-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card-body .tag {
  align-self: flex-start;
  display: inline-block;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.guide-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 2px 0 0;
  letter-spacing: -0.3px;
}
.guide-card-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(15,23,42,0.18); text-decoration: none; border-color: var(--line-2); }
.card .icon { font-size: 28px; margin-bottom: 10px; display: inline-block; }
.card .card-glyph {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-light));
  color: var(--primary-darker);
  border-radius: 10px;
  margin-bottom: 14px;
  transition: background .2s, color .2s;
}
.card .card-glyph svg { width: 20px; height: 20px; }
.card:hover .card-glyph { background: linear-gradient(135deg, var(--primary), var(--primary-darker)); color: #fff; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card.with-image {
  padding: 0;
}
.card.with-image .card-image {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tint);
  position: relative;
}
.card.with-image .card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,14,26,0.25));
}
.card.with-image .card-body { padding: 18px 20px 22px; }
.card .card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10,14,26,0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Article hero image */
.article-hero {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin: 0 0 24px;
  position: relative;
}
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,26,22,0.4), transparent 50%);
  border-radius: var(--radius);
}
@media (max-width: 760px) {
  .article-hero { height: 200px; }
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.stat .stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1.5px;
  line-height: 1;
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Topic grid */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.topic-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.topic-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-tint), transparent 50%);
  opacity: 0;
  transition: opacity .2s;
}
.topic-tile:hover { border-color: var(--primary); color: var(--navy); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-tile:hover::before { opacity: 1; }
.topic-tile > * { position: relative; z-index: 1; }
.topic-tile .emoji { display: block; font-size: 32px; margin-bottom: 10px; }
.topic-tile .tile-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-light));
  border-radius: 10px;
  color: var(--primary-darker);
  transition: background .2s, color .2s, transform .2s;
}
.topic-tile .tile-icon svg { width: 22px; height: 22px; }
.topic-tile:hover .tile-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: #fff;
  transform: scale(1.06);
}
.topic-tile small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; font-size: 13px; }

/* Article layout */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  padding: 40px 0;
}
@media (max-width: 880px) {
  .article-wrap { grid-template-columns: 1fr; }
}
.article {
  max-width: 760px;
}
.article h1 { font-size: 36px; margin: 0 0 10px; letter-spacing: -0.5px; line-height: 1.2; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 26px; margin: 36px 0 12px; color: var(--navy); letter-spacing: -0.3px; font-weight: 700; }
.article h3 { font-size: 20px; margin: 24px 0 8px; }
.article p { font-size: 17px; margin: 0 0 16px; }
.article ul, .article ol { font-size: 17px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 4px solid var(--primary);
  margin: 24px 0;
  padding: 12px 22px;
  background: var(--primary-tint);
  color: var(--ink);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 18px;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.article table th, .article table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.article table th { background: var(--bg-soft); font-weight: 600; }
.article .callout {
  background: var(--primary-tint);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  border-left: 4px solid var(--primary);
}
.article .callout strong { color: var(--navy); }

/* Sidebar */
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar .widget {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
}
.sidebar .widget h4 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sidebar .widget li:last-child { border-bottom: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 14.5px;
  transition: background .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { background: var(--primary-darker); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-darker)); }
.btn.primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker)); }
.btn.secondary { background: #fff; color: var(--navy) !important; border: 1px solid var(--line-2); }
.btn.secondary:hover { background: var(--bg-tint); border-color: var(--primary); color: var(--primary-darker) !important; }

/* Calculator */
.calc-wrap {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 32px;
  margin: 24px 0;
}
@media (max-width: 880px) {
  .calc-wrap { grid-template-columns: 1fr; }
}
.calc-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.calc-form .field { margin-bottom: 14px; }
.calc-form label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--ink);
}
.calc-form label small { color: var(--muted); font-weight: 400; }
.calc-form input, .calc-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  background: #fff;
}
.calc-form input:focus, .calc-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.calc-form .input-prefix {
  position: relative;
}
.calc-form .input-prefix span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.calc-form .input-prefix input { padding-left: 26px; }
.calc-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.result-big {
  font-size: 40px;
  color: var(--navy);
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: -1.5px;
  font-feature-settings: "tnum";
}
.result-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.result-row:last-child { border-bottom: 0; }
.result-row strong { color: var(--navy); font-weight: 600; font-feature-settings: "tnum"; }

/* === Calculator PDF download === */
.calc-pdf-wrap {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.calc-pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2, #0f172a) 100%);
  color: #fff;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.42);
}
.calc-pdf-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.5);
}
.calc-pdf-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}
.calc-pdf-btn svg { width: 16px; height: 16px; }
.calc-pdf-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 760px) {
  .calc-pdf-btn { width: 100%; }
}

/* Dictionary */
.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0 28px;
}
.alphabet a {
  display: inline-block;
  width: 36px;
  height: 36px;
  text-align: center;
  line-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
  color: var(--ink);
}
.alphabet a:hover { background: var(--navy); color: #fff; text-decoration: none; border-color: var(--navy); }
.term-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.term-list a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.term-list a:hover { color: var(--primary); text-decoration: none; }
.term-section h3 {
  color: var(--navy);
  font-size: 32px;
  margin: 32px 0 8px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
  letter-spacing: -0.5px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 64px 20px 28px;
  margin-top: 80px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
.site-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; margin: 0 0 14px; letter-spacing: 1px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: #b8c4be; }
.site-footer a:hover { color: #fff; }
.footer-brand .logo { color: #fff; font-size: 24px; }
.footer-brand p { font-size: 14px; margin-top: 10px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* ============================================
   HOMEPAGE HERO V2 (audience-focused + live search)
   ============================================ */
.hero-v2 {
  position: relative;
  background: radial-gradient(ellipse at top, #0f172a 0%, #0a0e1a 70%);
  color: #fff;
  padding: 96px 20px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* Animated gradient grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  z-index: -2;
}
.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.35) 0%, rgba(59,130,246,0.05) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.hero-v2 .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: #93c5fd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 7px 16px;
  border-radius: 30px;
  margin-bottom: 28px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-headline {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2.2px;
  line-height: 1.05;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-headline-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 auto 36px;
  max-width: 780px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .hero-v2 { padding: 56px 16px 56px; }
  .hero-headline { font-size: 38px; letter-spacing: -1.2px; }
  .hero-sub { font-size: 16px; }
}

/* Search bar */
.hero-search-wrap {
  position: relative;
  max-width: 780px;
  margin: 0 auto 24px;
}
.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-radius: 14px;
  padding: 4px 6px 4px 18px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.hero-search:focus-within {
  background: rgba(255,255,255,0.1);
  border-color: rgba(96,165,250,0.5);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18), 0 12px 32px -8px rgba(0,0,0,0.4);
}
.hero-search-icon {
  width: 20px; height: 20px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: color .2s;
}
.hero-search:focus-within .hero-search-icon { color: #60a5fa; }
.hero-search input[type=search] {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  padding: 16px 0;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 8px;
}

/* Dropdown */
.hero-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(15,23,42,0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  max-height: 440px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 90;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 8px 24px -12px rgba(0,0,0,0.4);
  text-align: left;
}
.hero-search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.hero-search-group {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-search-group:last-child { border-bottom: 0; }
.hero-search-group-label {
  padding: 6px 16px 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}
.hero-search-result {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  text-decoration: none;
  color: inherit;
  transition: background .12s;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.hero-search-result:hover, .hero-search-result.active {
  background: rgba(59,130,246,0.18);
  text-decoration: none;
}
.hero-search-result-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: #93c5fd;
}
.hero-search-result:hover .hero-search-result-icon, .hero-search-result.active .hero-search-result-icon {
  background: rgba(59,130,246,0.3);
  color: #fff;
}
.hero-search-result-icon svg { width: 14px; height: 14px; }
.hero-search-result-body { min-width: 0; }
.hero-search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-result-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-result-kind {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  flex-shrink: 0;
}
.hero-search-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.hero-search-empty strong { color: #fff; }
.hero-search-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.hero-search-footer kbd {
  font-family: var(--font-mono);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.7);
}
.hero-search-see-all {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}
.hero-search-see-all:hover { color: #93c5fd; text-decoration: underline; }

/* Highlighted match */
.hero-search-result mark {
  background: rgba(96,165,250,0.25);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* Trending pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px auto 32px;
  max-width: 760px;
}
.hero-pills-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-right: 4px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85) !important;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s ease;
  backdrop-filter: blur(6px);
}
.hero-pill:hover {
  background: rgba(59,130,246,0.2);
  border-color: rgba(96,165,250,0.5);
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Trust signals */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.hero-trust-item svg {
  width: 14px; height: 14px;
  color: #10b981;
}

/* ============================================
   BENTO TOPIC GRID
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  margin-top: 8px;
}
.bento-tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--ink);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .15s;
  text-decoration: none;
  isolation: isolate;
}
.bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-tint) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  z-index: -1;
}
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(15,23,42,0.18);
  border-color: var(--primary);
  text-decoration: none;
  color: var(--ink);
}
.bento-tile:hover::before { opacity: 1; }
.bento-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: auto;
}
.bento-tile h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin: 0 0 6px;
}
.bento-tile p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.bento-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: transform .2s, background .2s, color .2s;
  z-index: 2;
}
.bento-tile:hover .bento-arrow {
  background: var(--navy);
  color: #fff;
  transform: translate(2px, -2px);
}
.bento-arrow svg { width: 16px; height: 16px; }

/* Tile sizes */
.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.span-tall { grid-row: span 2; }
.bento-tile.span-wide { grid-column: span 4; min-height: 160px; }

/* Decorative full-bleed visual (SVG or img) — used as the hero tile background */
.bento-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.85;
  transition: opacity .35s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.bento-tile:hover .bento-visual { opacity: 0.95; transform: scale(1.04); }
.bento-visual svg,
.bento-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Hero (featured) tile — dark with chart */
.bento-tile.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-color: transparent;
  color: #fff;
  min-height: 416px;
  justify-content: space-between;
}
.bento-tile.hero h3 { color: #fff; font-size: 32px; }
.bento-tile.hero p { color: rgba(255,255,255,0.75); font-size: 15px; }
.bento-tile.hero .bento-eyebrow { color: #93c5fd; }
.bento-tile.hero .bento-arrow { background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(8px); }
.bento-tile.hero:hover .bento-arrow { background: var(--primary); }
.bento-tile.hero:hover { color: #fff; border-color: transparent; box-shadow: 0 30px 60px -20px rgba(37,99,235,0.45); }
.bento-tile.hero::before { background: linear-gradient(180deg, rgba(10,5,3,0) 0%, rgba(10,5,3,0.35) 55%, rgba(10,5,3,0.85) 100%); opacity: 1; z-index: 0; }
.bento-tile.hero > *:not(.bento-visual) { position: relative; z-index: 1; }
.bento-tile.hero .bento-visual,
.bento-tile.cta .bento-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* CTA tile (Guides) — gold accent */
.bento-tile.cta {
  background: linear-gradient(135deg, #1e293b 0%, var(--navy) 100%);
  color: #fff;
  border-color: transparent;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.bento-tile.cta h3 { color: #fff; }
.bento-tile.cta p { color: rgba(255,255,255,0.7); }
.bento-tile.cta .bento-eyebrow { color: var(--accent); }
.bento-tile.cta .bento-arrow { background: var(--accent); color: var(--navy); }
.bento-tile.cta:hover { color: #fff; border-color: transparent; box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4); }
.bento-tile.cta:hover .bento-arrow { background: #fff; color: var(--navy); transform: translate(2px, -2px); }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-light));
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background .2s, color .2s;
}
.bento-icon svg { width: 22px; height: 22px; }
.bento-tile:hover .bento-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: #fff;
}

/* Photographic thumb stamp — replaces flat icon on topic tiles */
.bento-thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #0a0503;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(15, 23, 42, 0.06);
  position: relative;
  flex: 0 0 auto;
}
.bento-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.bento-tile:hover .bento-thumb img { transform: scale(1.08); }
.bento-thumb::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(244, 200, 120, 0.08);
  border-radius: 12px;
  pointer-events: none;
}
@media (max-width: 980px) {
  .bento-thumb { width: 80px; height: 80px; }
}
@media (max-width: 540px) {
  .bento-thumb { width: 72px; height: 72px; }
}
.bento-tile.hero .bento-icon, .bento-tile.cta .bento-icon {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-tile.span-2 { grid-column: span 2; }
  .bento-tile.span-tall { grid-row: span 2; }
  .bento-tile.span-wide { grid-column: span 2; }
  .bento-tile.hero { min-height: 360px; }
  .bento-tile.hero h3 { font-size: 26px; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-tile, .bento-tile.span-2, .bento-tile.span-wide, .bento-tile.span-tall { grid-column: auto; grid-row: auto; min-height: 180px; }
  .bento-tile.cta { grid-template-columns: 1fr; }
}

/* ============================================
   CALCULATOR SHOWCASE
   ============================================ */
.calc-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  position: relative;
  isolation: isolate;
}
.calc-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59,130,246,0.25) 0%, transparent 50%);
  z-index: 0;
}
.calc-showcase-content {
  padding: 40px;
  color: #fff;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-showcase-content .eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #93c5fd;
  font-weight: 700;
  margin-bottom: 12px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 5px 12px;
  border-radius: 30px;
  align-self: flex-start;
}
.calc-showcase-content h3 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.1;
}
.calc-showcase-content p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  margin: 0 0 24px;
}
.calc-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.calc-stat {
  border-left: 2px solid var(--primary);
  padding-left: 14px;
}
.calc-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  font-feature-settings: "tnum";
}
.calc-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.calc-showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #fff;
  color: var(--navy) !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.calc-showcase-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -8px rgba(255,255,255,0.3);
  text-decoration: none;
}
.calc-showcase-cta svg { width: 14px; height: 14px; }

.calc-showcase-visual {
  position: relative;
  z-index: 1;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-showcase-visual svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@media (max-width: 860px) {
  .calc-showcase { grid-template-columns: 1fr; }
  .calc-showcase-content { padding: 32px; }
  .calc-showcase-content h3 { font-size: 28px; }
  .calc-showcase-visual { padding: 0 20px 30px; }
}

/* Calculator tabs + list */
.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.calc-tab {
  background: none;
  border: 0;
  padding: 12px 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .15s;
  border-radius: 0;
}
.calc-tab:hover { color: var(--ink); }
.calc-tab.active { color: var(--navy); font-weight: 600; }
.calc-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.calc-tab-count {
  margin-left: 4px;
  background: var(--bg-tint);
  color: var(--muted);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.calc-tab.active .calc-tab-count { background: var(--primary-tint); color: var(--primary-darker); }

.calc-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 880px) {
  .calc-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .calc-list { grid-template-columns: 1fr; }
}
.calc-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .15s;
  position: relative;
}
.calc-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(15,23,42,0.12);
  border-color: var(--primary);
  text-decoration: none;
  color: var(--ink);
}
.calc-item.hidden { display: none; }
.calc-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-tint), var(--primary-light));
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.calc-item-icon svg { width: 20px; height: 20px; }
.calc-item:hover .calc-item-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-darker));
  color: #fff;
}
.calc-item-body { min-width: 0; }
.calc-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 2px;
}
.calc-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}
.calc-item-arrow {
  color: var(--muted-2);
  transition: color .15s, transform .15s;
}
.calc-item-arrow svg { width: 16px; height: 16px; display: block; }
.calc-item:hover .calc-item-arrow { color: var(--primary); transform: translateX(2px); }
.calc-item-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-2);
  font-weight: 700;
}

/* ============================================
   CATEGORY LANDING PAGES (magazine-style cards)
   ============================================ */
.cat-section {
  padding: 56px 0 80px;
}
.cat-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.cat-section-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin: 0;
}

/* Featured (first article gets a big wide card) */
.cat-featured-wrap {
  margin-bottom: 32px;
}
.cat-card-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  min-height: 360px;
}
.cat-card-featured .cat-card-image {
  height: auto;
  border-radius: 16px 0 0 16px;
  position: relative;
  overflow: hidden;
}
.cat-card-featured .cat-card-body {
  padding: 40px;
  justify-content: center;
}
.cat-card-featured .cat-card-title {
  font-size: 30px;
  letter-spacing: -0.8px;
}
.cat-card-featured .cat-card-tagline {
  font-size: 16px;
}
@media (max-width: 760px) {
  .cat-card-featured { grid-template-columns: 1fr; min-height: auto; }
  .cat-card-featured .cat-card-image { height: 240px; border-radius: 16px 16px 0 0; }
  .cat-card-featured .cat-card-body { padding: 24px; }
  .cat-card-featured .cat-card-title { font-size: 24px; }
}

/* Grid of remaining cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Base card style */
.cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .15s;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(15,23,42,0.18);
  border-color: var(--primary);
  color: inherit;
  text-decoration: none;
}

.cat-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cat-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.25));
  pointer-events: none;
}
.cat-card-glyph {
  width: 80px;
  height: 80px;
  opacity: 0.5;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.cat-card:hover .cat-card-glyph { opacity: 0.9; transform: scale(1.05) rotate(-3deg); }

.cat-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  padding: 5px 11px;
  border-radius: 30px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.15);
}

.cat-card-body {
  flex: 1;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cat-card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
}
.cat-card:hover .cat-card-title { color: var(--primary-darker); }
.cat-card-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.cat-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 500;
}
.cat-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cat-card-meta svg { width: 13px; height: 13px; color: var(--muted-2); }
.cat-card-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--line-2);
  border-radius: 50%;
}
.cat-card-arrow {
  position: absolute;
  bottom: 22px;
  right: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform .2s, background .2s, color .2s;
  flex-shrink: 0;
}
.cat-card-arrow svg { width: 14px; height: 14px; }
.cat-card:hover .cat-card-arrow {
  background: var(--primary);
  color: #fff;
  transform: translate(2px, -2px);
}
.cat-card-featured .cat-card-arrow {
  position: static;
  margin-top: 18px;
  width: 40px;
  height: 40px;
}
.cat-card-featured .cat-card-arrow svg { width: 16px; height: 16px; }

/* ============================================
   MODERN ARTICLE PAGE LAYOUT
   ============================================ */

/* Reading progress bar — anchored at bottom of viewport */
.reading-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 6px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 -2px 12px rgba(37, 99, 235, 0.35);
  z-index: 99;
  transition: width 0.05s ease-out;
  pointer-events: none;
  border-top-right-radius: 3px;
}

/* Hero header */
.article-page-hero {
  background: linear-gradient(180deg, var(--primary-tint) 0%, #ffffff 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.article-page-hero.has-image { padding-bottom: 64px; }

.article-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.article-hero-text { min-width: 0; }
.article-hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35),
              0 12px 28px -8px rgba(15, 23, 42, 0.18);
  aspect-ratio: 1 / 1;
  background: #0a0e1a;
}
.article-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 960px) {
  .article-hero-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On tablet/mobile, image goes ABOVE the text (more visual at top) */
  .article-hero-image {
    order: -1;
    max-width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  .article-hero-image { aspect-ratio: 5 / 3; border-radius: 14px; }
}
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
@media (max-width: 560px) {
  .article-meta-row { gap: 8px; }
  .article-meta-divider { display: none; }
  .article-meta-row .article-meta-item { font-size: 12px; }
}

/* ===========================================
   LISTEN-TO-ARTICLE WIDGET (Web Speech API)
   =========================================== */
.article-listen {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  max-width: 520px;
}
.article-listen:hover { border-color: var(--primary); box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.22); }
.article-listen.is-playing { border-color: var(--primary); box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.28); }

.article-listen-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.article-listen-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.45);
  transition: transform .15s;
}
.article-listen-btn:hover .article-listen-icon { transform: scale(1.05); }
.article-listen-icon svg { width: 18px; height: 18px; }
.article-listen-icon .icon-pause { display: none; }
.article-listen.is-playing .article-listen-icon .icon-play { display: none; }
.article-listen.is-playing .article-listen-icon .icon-pause { display: block; }

.article-listen-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.article-listen-title { font-weight: 700; font-size: 15px; color: var(--navy); }
.article-listen-duration {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-listen-duration::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

.article-listen-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.article-listen-progress {
  flex: 1;
  height: 6px;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
  cursor: default;
}
.article-listen-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 3px;
  transition: width 0.2s linear;
}
.article-listen-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.article-listen-speed select {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 8px;
  padding: 5px 24px 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23475569' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.article-listen-speed select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  .article-listen { max-width: 100%; }
  .article-listen-btn { padding: 12px 14px; gap: 10px; }
  .article-listen-icon { width: 38px; height: 38px; }
  .article-listen-icon svg { width: 16px; height: 16px; }
  .article-listen-title { font-size: 14px; }
  .article-listen-duration { font-size: 12px; }
  .article-listen-controls {
    flex-wrap: wrap;
    padding: 10px 14px 12px;
    gap: 10px;
  }
  .article-listen-progress { flex: 1 1 100%; order: 1; }
  .article-listen-time { order: 2; }
  .article-listen-speed { order: 3; margin-left: auto; }
}

/* ===========================================
   HERO SHARE ROW (compact inline icons)
   =========================================== */
.article-hero-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.article-hero-share-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 700;
  color: var(--muted-2);
  margin-right: 4px;
}
.article-hero-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  padding: 0;
}
.article-hero-share-btn svg { width: 15px; height: 15px; }
.article-hero-share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.article-hero-share-btn.is-copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* ============================================================
   END-OF-ARTICLE SHARE PANEL (brand-colored CTA buttons)
   High specificity selectors are intentional — they override the
   article-page-content link styles that wrap this section.
   ============================================================ */
.article-end-share {
  margin: 64px 0 30px;
  padding: 36px 32px;
  background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 60%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.article-end-share::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.article-end-share-text { position: relative; margin-bottom: 24px; }
.article-end-share-text h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.2;
}
.article-end-share-text p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.article-end-share-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  position: relative;
}
@media (min-width: 560px) { .article-end-share-actions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .article-end-share-actions { grid-template-columns: repeat(5, 1fr); } }

/* ---- Base button (override article-content link rules with high specificity) ---- */
.article-end-share .end-share-btn,
.article-end-share a.end-share-btn,
.article-end-share button.end-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  color: #fff !important;
  border-bottom: 0 !important;
  line-height: 1;
}
.article-end-share .end-share-btn:hover,
.article-end-share a.end-share-btn:hover,
.article-end-share button.end-share-btn:hover {
  transform: translateY(-2px);
  text-decoration: none !important;
  filter: brightness(1.08);
  color: #fff !important;
  border-bottom-color: transparent !important;
}
.article-end-share .end-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.article-end-share .end-share-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.article-end-share .end-share-text {
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* ---- Brand colors (each network's official background) ---- */
.article-end-share .end-share-fb { background: #1877F2; box-shadow: 0 6px 14px -4px rgba(24, 119, 242, 0.40); }
.article-end-share .end-share-fb:hover { background: #166FE5; box-shadow: 0 12px 26px -6px rgba(24, 119, 242, 0.55); }

.article-end-share .end-share-tw { background: #000000; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.40); }
.article-end-share .end-share-tw:hover { background: #1a1a1a; box-shadow: 0 12px 26px -6px rgba(0, 0, 0, 0.55); }

.article-end-share .end-share-li { background: #0A66C2; box-shadow: 0 6px 14px -4px rgba(10, 102, 194, 0.40); }
.article-end-share .end-share-li:hover { background: #095BAE; box-shadow: 0 12px 26px -6px rgba(10, 102, 194, 0.55); }

.article-end-share .end-share-em { background: #DC2626; box-shadow: 0 6px 14px -4px rgba(220, 38, 38, 0.40); }
.article-end-share .end-share-em:hover { background: #B91C1C; box-shadow: 0 12px 26px -6px rgba(220, 38, 38, 0.55); }

.article-end-share .end-share-cp { background: #475569; box-shadow: 0 6px 14px -4px rgba(71, 85, 105, 0.40); }
.article-end-share .end-share-cp:hover { background: #334155; box-shadow: 0 12px 26px -6px rgba(71, 85, 105, 0.55); }
.article-end-share .end-share-cp.is-copied,
.article-end-share .end-share-cp.is-copied:hover {
  background: #10B981;
  box-shadow: 0 6px 14px -4px rgba(16, 185, 129, 0.45);
  filter: none;
}
.article-page-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at top right, rgba(59,130,246,0.18) 0%, transparent 55%);
  z-index: -1;
}
.article-page-hero::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(251,191,36,0.08) 0%, transparent 60%);
  z-index: -1;
}

.article-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.article-breadcrumb a:hover { color: var(--primary-dark); }
.article-breadcrumb-sep {
  color: var(--line-2);
  margin: 0 4px;
  user-select: none;
}
.article-breadcrumb-current {
  color: var(--ink-2);
  font-weight: 500;
}

.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.article-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-darker) 100%);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 6px 16px -4px rgba(37,99,235,0.5);
  text-decoration: none;
}
.article-tag-pill svg { width: 13px; height: 13px; }
.article-meta-divider {
  width: 1px;
  height: 14px;
  background: var(--line-2);
}
.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.article-meta-item svg { width: 14px; height: 14px; color: var(--muted-2); }

.article-page-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin: 18px 0 16px;
  line-height: 1.12;
}
.article-page-tagline {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

@media (max-width: 760px) {
  .article-page-hero { padding: 32px 0 40px; }
  .article-page-title { font-size: 32px; letter-spacing: -1px; margin-top: 14px; }
  .article-page-tagline { font-size: 16px; }
}

/* Feature image (optional, full-bleed under hero header) */
.article-feature-image {
  height: 360px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tint);
  position: relative;
  margin-bottom: 0;
}
.article-feature-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,14,26,0.15));
}
@media (max-width: 760px) {
  .article-feature-image { height: 220px; }
}

/* Main content grid (article body + sidebar) */
.article-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  padding: 56px 0 80px;
}
@media (max-width: 980px) {
  .article-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 0 60px;
  }
}

.article-page-content {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
}
/* Mobile content sizing */
@media (max-width: 600px) {
  .article-page-content { font-size: 16px; line-height: 1.7; }
  .article-page-content > p:first-of-type { font-size: 17px; }
  .article-page-content > h2 { font-size: 24px !important; margin: 32px 0 10px !important; }
  .article-page-content > h3 { font-size: 19px !important; }
}
/* Make any wide tables and pre blocks scroll horizontally rather than break layout */
.article-page-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse;
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .article-page-content table {
    display: table;
    white-space: normal;
  }
}
.article-page-content pre,
.article-page-content code {
  overflow-x: auto;
  max-width: 100%;
}
.article-page-content img,
.article-page-content svg,
.article-page-content figure {
  max-width: 100%;
  height: auto;
}
.article-page-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article-page-content > p { margin: 0 0 18px; }
.article-page-content > h2 {
  font-size: 28px;
  margin: 44px 0 14px;
  color: var(--navy);
  letter-spacing: -0.5px;
  font-weight: 700;
  scroll-margin-top: 100px;
}
.article-page-content > h2:first-child { margin-top: 8px; }
.article-page-content > h3 {
  font-size: 21px;
  margin: 28px 0 10px;
  color: var(--navy);
}
.article-page-content > ul,
.article-page-content > ol {
  font-size: 17px;
  padding-left: 24px;
  margin: 0 0 20px;
}
.article-page-content > ul li,
.article-page-content > ol li { margin-bottom: 10px; }
.article-page-content > table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.article-page-content > table th,
.article-page-content > table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-page-content > table thead {
  background: var(--bg-soft);
}
.article-page-content > table thead th {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.article-page-content > table tbody tr:hover { background: var(--bg-soft); }
.article-page-content > table tbody tr:last-child td { border-bottom: 0; }
.article-page-content .callout {
  background: linear-gradient(135deg, var(--primary-tint) 0%, #fff 100%);
  border: 1px solid var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  line-height: 1.65;
}
.article-page-content .callout strong { color: var(--navy); font-weight: 700; }
.article-page-content blockquote {
  border-left: 4px solid var(--primary);
  margin: 24px 0;
  padding: 12px 22px;
  background: var(--primary-tint);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--navy);
}
.article-page-content a {
  color: var(--primary-dark);
  font-weight: 500;
  border-bottom: 1px solid rgba(37,99,235,0.25);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.article-page-content a:hover {
  color: var(--primary-darker);
  border-bottom-color: var(--primary);
}

/* Sidebar — outer column stretches to match the article height (so no empty
   space at bottom of page). Inner wrapper is sticky so cards follow the reader
   as they scroll, no separate scrollbar. */
.article-page-sidebar {
  align-self: stretch;
  position: relative;
}
.article-page-sidebar-inner {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.sidebar-card:hover { border-color: var(--line-2); box-shadow: 0 4px 12px -4px rgba(15,23,42,0.08); }
.sidebar-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.sidebar-card-eyebrow svg { width: 12px; height: 12px; }
.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-card li {
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--bg-tint);
}
.sidebar-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.sidebar-card li:first-child { padding-top: 0; }
.sidebar-card a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, transform .15s;
}
.sidebar-card a:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}
.sidebar-card a::before {
  content: "›";
  color: var(--muted-2);
  flex-shrink: 0;
  font-weight: 700;
  transition: color .15s;
}
.sidebar-card a:hover::before { color: var(--primary); }

/* TOC sidebar with active section highlight */
.sidebar-toc-card { padding: 20px 16px 20px 20px; }
.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.sidebar-toc::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.sidebar-toc li {
  padding: 6px 0 6px 16px;
  border-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}
.sidebar-toc li::before {
  content: none;
}
.sidebar-toc li a {
  color: var(--muted);
  display: block;
  font-weight: 400;
}
.sidebar-toc li a::before { content: none; }
.sidebar-toc li.active {
  position: relative;
}
.sidebar-toc li.active::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.sidebar-toc li.active a {
  color: var(--primary-darker);
  font-weight: 600;
}
.sidebar-toc li a:hover {
  color: var(--ink);
  transform: translateX(2px);
}

/* Newsletter mini in sidebar (dark variant) */
.sidebar-newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.sidebar-newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59,130,246,0.25), transparent 60%);
}
.sidebar-newsletter > * { position: relative; z-index: 1; }
.sidebar-newsletter:hover { border-color: transparent; box-shadow: 0 12px 24px -8px rgba(15,23,42,0.4); }
.sidebar-newsletter .sidebar-card-eyebrow {
  color: #93c5fd;
  border-bottom-color: rgba(255,255,255,0.1);
}
.sidebar-newsletter h4 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.sidebar-newsletter p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0 0 14px;
  line-height: 1.5;
}
.sidebar-newsletter form { display: flex; flex-direction: column; gap: 8px; }
.sidebar-newsletter input[type=email] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.sidebar-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.sidebar-newsletter input[type=email]:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.sidebar-newsletter button {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s;
}
.sidebar-newsletter button:hover { background: var(--primary-darker); }
.sidebar-newsletter .success-msg {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #6ee7b7;
}

/* Share buttons in sidebar */
.sidebar-share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sidebar-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-tint);
  color: var(--ink-2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all .15s;
}
.sidebar-share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.sidebar-share-btn svg { width: 16px; height: 16px; }

/* ============================================
   ARTICLE LEDE (intro paragraph)
   ============================================ */
.article-lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 400;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ============================================
   LEAD CTA blocks
   ============================================ */
.lead-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lead-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(59,130,246,0.25), transparent 50%);
  z-index: 0;
}
.lead-cta > * { position: relative; z-index: 1; }
.lead-cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #93c5fd;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
  font-weight: 700;
}
.lead-cta-headline {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff !important;
  letter-spacing: -0.5px;
}
.lead-cta-body { color: rgba(255,255,255,0.78); font-size: 15px; margin: 0 0 18px; }
.lead-cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 600px) {
  .lead-cta-form { grid-template-columns: 1fr; }
}
.lead-cta-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  outline: none;
}
.lead-cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.lead-cta-form input:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.lead-cta-form button {
  background: #fff;
  color: var(--navy);
  border: 0;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.lead-cta-form button:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(255,255,255,0.3); }
.lead-cta-note { font-size: 12px; color: rgba(255,255,255,0.45); margin: 12px 0 0; }
.lead-cta.success-state .lead-cta-form { display: none; }
.lead-cta.success-state .lead-cta-success { display: block; }
.lead-cta-success {
  display: none;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  border-radius: 10px;
  padding: 16px 20px;
  color: #fff;
}
.lead-cta-success strong { color: #34d399; }

/* ============================================
   FAQs (per-article)
   ============================================ */
.article-faqs {
  margin: 36px 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.article-faqs h2 { color: var(--navy); font-size: 26px; margin: 0 0 16px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 0;
  margin-bottom: 10px;
  background: #fff;
  transition: border-color .15s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::before { content: "−"; background: var(--primary); color: #fff; }
.faq-answer {
  padding: 0 20px 16px 54px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.faq-answer p:first-child { margin-top: 0; }

/* ============================================
   Newsletter inline (in-article)
   ============================================ */
.newsletter-inline {
  background: linear-gradient(135deg, var(--primary-tint) 0%, #fff 100%);
  border: 1px solid var(--primary-light);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: center;
}
@media (max-width: 720px) {
  .newsletter-inline { grid-template-columns: 1fr; }
}
.newsletter-inline-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-weight: 700;
}
.newsletter-inline-headline {
  font-size: 22px;
  margin: 4px 0 6px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.newsletter-inline-body { margin: 0; color: var(--muted); font-size: 14px; }
.newsletter-inline-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter-inline-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  background: #fff;
  outline: none;
}
.newsletter-inline-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.newsletter-inline-form button {
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}
.newsletter-inline-form button:hover { background: var(--primary-darker); }
.newsletter-inline.success-state .newsletter-inline-form { display: none; }
.newsletter-inline.success-state .newsletter-inline-success { display: block; }
.newsletter-inline-success {
  display: none;
  font-size: 14px;
  color: var(--primary-darker);
  font-weight: 600;
}

/* ============================================
   Q&A section
   ============================================ */
.qa-section {
  margin: 40px 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.qa-section h2 { color: var(--navy); font-size: 26px; margin: 0 0 16px; }
.qa-empty { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.qa-question {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.qa-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.qa-meta strong { color: var(--navy); font-weight: 600; }
.qa-meta time { color: var(--muted-2); }
.qa-body { color: var(--ink); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.qa-answer {
  background: var(--bg-soft);
  border-left: 3px solid var(--line-2);
  padding: 14px 18px;
  margin: 10px 0 10px 24px;
  border-radius: 0 8px 8px 0;
}
.qa-answer.qa-admin { border-left-color: var(--primary); background: var(--primary-tint); }
.qa-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: 1px;
}
.qa-reply-toggle {
  background: none;
  border: 0;
  color: var(--primary-dark);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.qa-reply-toggle:hover { color: var(--primary); text-decoration: underline; }
.qa-reply-form {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qa-reply-form input, .qa-reply-form textarea {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  outline: none;
  font-family: inherit;
}
.qa-reply-form input:focus, .qa-reply-form textarea:focus { border-color: var(--primary); }
.qa-note { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.qa-ask {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 26px;
  margin-top: 24px;
}
.qa-ask h3 { font-size: 19px; margin: 0 0 6px; color: var(--navy); }
.qa-intro { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.qa-ask-form { display: flex; flex-direction: column; gap: 10px; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .qa-grid { grid-template-columns: 1fr; } }
.qa-ask-form input, .qa-ask-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  outline: none;
  background: #fff;
  font-family: inherit;
}
.qa-ask-form input:focus, .qa-ask-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.qa-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
}

/* Utility */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.tag { display: inline-block; background: var(--primary-tint); color: var(--primary-darker); padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
.disclaimer {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 14px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  margin: 20px 0;
  color: #78350f;
}
