/* ================================================================
   THE NURSING DIRECTORY — PREMIUM EDITORIAL DESIGN SYSTEM
   Inspired by The Atlantic × Vita Clinic × Slothui
   Typography: Newsreader (Atlantic-style editorial serif) + Inter
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm Palette */
  --bg: #FAF8F5;
  --bg-alt: #F3F0EB;
  --surface: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #3D3D50;
  --text-muted: #4E4E62;
  --text-light: #6B6B7B;

  /* Brand */
  --accent: #0E7490;
  --accent-hover: #0891B2;
  --accent-light: rgba(14,116,144,0.08);
  --accent-bg: #E8F6F8;

  /* Warm Accents */
  --peach: #FFF0E8;
  --peach-border: #FFD9C5;
  --mint: #ECFAEC;
  --mint-border: #C3EDCA;
  --cream: #FFF9F0;
  --lavender: #F0ECF9;
  --gold: #B38728;
  --gold-light: #F8F0D8;

  /* Borders & Shadows */
  --border: #E6E2DC;
  --border-light: #F0EDE8;
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.04);
  --shadow-md: 0 4px 20px rgba(26,26,46,0.06);
  --shadow-lg: 0 12px 40px rgba(26,26,46,0.08);
  --shadow-card: 0 2px 12px rgba(26,26,46,0.05);

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --content-max: 720px;
  --layout-max: 1120px;

  /* Typography */
  --font-headline: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Tool pages use their own dark background — don't override */
body.tool-page {
  background: var(--surface-base, #0f172a);
  color: var(--text-primary, #fff);
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════ */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #22D3EE);
  z-index: 9999; width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(14,116,144,0.4);
}

/* ═══════════════════════════════════
   NAV (kept dark for brand contrast)
   ═══════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,22,43,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 1.5rem;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #0E7490);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(14,116,144,0.4);
}
.nav-back {
  display: flex; align-items: center; gap: 0.375rem;
  color: rgba(255,255,255,0.5); font-size: 0.875rem; font-weight: 500;
  padding: 0.375rem 0.875rem; border-radius: 8px; transition: all .2s;
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-back:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-share {
  background: linear-gradient(135deg, var(--accent), #0E7490);
  color: #fff; font-size: 0.8125rem; font-weight: 700;
  padding: 0.4rem 1rem; border-radius: 8px; transition: all .2s;
  cursor: pointer; border: none; font-family: inherit;
  box-shadow: 0 2px 8px rgba(14,116,144,0.35);
}
.nav-share:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,116,144,0.45); }

/* ═══════════════════════════════════
   HERO — WSJ Immersive Full-Bleed
   ═══════════════════════════════════ */
.article-hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center center;
  background-color: #0a1628;
  /* Stack content at bottom via grid */
  display: grid;
  align-items: end;
  overflow: hidden;
}
/* Two-layer overlay: uniform dark base + bottom-weighted gradient */
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.38) 0%,
      rgba(0,0,0,0.42) 30%,
      rgba(0,0,0,0.72) 60%,
      rgba(0,0,0,0.92) 85%,
      rgba(0,0,0,0.96) 100%
    );
  z-index: 1;
}
/* Thin teal accent line at bottom */
.article-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(14,116,144,0.2) 60%, transparent 100%);
  z-index: 3;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.hero-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.775rem; color: rgba(255,255,255,0.45); margin-bottom: 1.25rem;
}
.hero-breadcrumb a { color: rgba(255,255,255,0.55); transition: color .2s; }
.hero-breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.hero-breadcrumb span { color: rgba(255,255,255,0.45); }
.hero-cat-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.68rem; font-weight: 700;
  padding: 0.28rem 0.8rem; border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}
.hero-cat-dot {
  width: 5px; height: 5px; border-radius: 50%;
  display: inline-block;
}
.article-hero h1 {
  font-family: var(--font-headline) !important;
  font-size: clamp(1.85rem, 4.5vw, 3.25rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-family: var(--font-headline) !important;
  font-style: italic;
  font-size: clamp(0.9375rem, 1.6vw, 1.1rem) !important;
  color: rgba(255,255,255,0.78) !important;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 620px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  align-items: center;
}
.hero-meta-item {
  font-family: var(--font-body);
  font-size: 0.775rem; color: rgba(255,255,255,0.55); font-weight: 500;
  display: flex; align-items: center; gap: 0.3rem;
}
.hero-source-badge {
  background: rgba(14,116,144,0.28);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(110,231,183,0.3);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.6rem; border-radius: 100px;
  letter-spacing: 0.04em;
}

/* Legacy .hero-image hidden — image is now CSS background */
.hero-image { display: none !important; }

/* ═══════════════════════════════════
   AUTHOR BYLINE — SEO + editorial
   ═══════════════════════════════════ */
.article-byline {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0C4A6E);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.8125rem; flex-shrink: 0;
  box-shadow: 0 1px 6px rgba(14,116,144,0.2);
}
.byline-text { flex: 1; min-width: 0; }
.byline-name {
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 0.4rem;
}
.byline-credentials {
  font-family: var(--font-body);
  font-size: 0.775rem; color: var(--text-muted);
  margin-top: 0.05rem;
}
.byline-date {
  font-family: var(--font-body);
  font-size: 0.775rem; color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════════
   LAYOUT — Sidebar + Content
   ═══════════════════════════════════ */
.article-layout {
  max-width: var(--layout-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  padding: 2rem 1.5rem 4rem;
  align-items: start;
}

/* ═══════════════════════════════════
   TOC SIDEBAR
   ═══════════════════════════════════ */
.toc-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.toc-sidebar::-webkit-scrollbar { width: 3px; }
.toc-sidebar::-webkit-scrollbar-track { background: transparent; }
.toc-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.toc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}
.toc-label {
  font-family: var(--font-headline);
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-light);
}
#toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.125rem; }
#toc-list a {
  display: block; font-size: 0.8125rem; color: var(--text-muted); font-weight: 500;
  padding: 0.35rem 0.6rem; border-radius: 6px; transition: all .2s;
  line-height: 1.45; border-left: 2px solid transparent;
}
#toc-list a:hover {
  color: var(--accent); background: var(--accent-light);
  border-left-color: var(--accent); padding-left: 0.85rem;
}
#toc-list a.active {
  color: var(--accent); background: var(--accent-light);
  border-left-color: var(--accent); font-weight: 700; padding-left: 0.85rem;
}

.share-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.share-label {
  font-family: var(--font-headline);
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.875rem;
}
.share-buttons { display: flex; flex-direction: column; gap: 0.5rem; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: all .2s; border: none; font-family: inherit;
}
.share-btn-twitter {
  background: var(--bg-alt); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.share-btn-twitter:hover { background: var(--border-light); color: var(--text); }
.share-btn-reddit {
  background: var(--bg-alt); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.share-btn-reddit:hover { background: var(--border-light); color: var(--text); }
.share-btn-copy {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
}
.share-btn-copy:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ═══════════════════════════════════
   ARTICLE BODY & TYPOGRAPHY
   Atlantic-inspired editorial type
   ═══════════════════════════════════ */
.article-body { min-width: 0; }
.article-content {}

.article-content h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.article-content h2::before {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 3rem; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.article-content h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-content h4 {
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-secondary);
  margin-top: 1.75rem; margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.article-content p {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-feature-settings: 'liga' 1, 'kern' 1, 'onum' 1;
}

/* Drop cap — disabled (causes spacing issues with quick-answer-box) */
/* .article-content > p:first-of-type::first-letter { ... } */

.article-content ul, .article-content ol {
  padding-left: 1.5rem; margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.article-content li {
  font-family: var(--font-headline);
  font-size: 1.0625rem; line-height: 1.8; color: var(--text-secondary);
}
.article-content ul li::marker { color: var(--accent); font-size: 1.1em; }
.article-content ol li::marker { color: var(--accent); font-weight: 700; }
.article-content strong { color: var(--text); font-weight: 650; } /* 650 — slightly lighter bold in Newsreader variable font */
.article-content em { font-style: italic; color: var(--text-muted); }
.article-content code {
  background: var(--bg-alt); color: var(--accent); padding: 0.15rem 0.45rem;
  border-radius: 4px; font-size: 0.88em; font-family: 'Courier New', monospace;
  border: 1px solid var(--border-light);
}
.article-content a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(14,116,144,0.35);
  transition: all .2s;
}
.article-content a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}
.article-content hr.article-divider {
  border: none; border-top: 1px solid var(--border-light); margin: 3rem 0;
}
.article-caption {
  font-family: var(--font-body) !important;
  font-size: 0.8125rem !important; color: var(--text-light) !important;
  font-style: italic; text-align: center; margin: 1.5rem 0 !important;
  letter-spacing: 0.01em;
}

/* ─── WSJ Pull Quote ─────────────────── */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--text);
  background: transparent;
}
.pull-quote p {
  font-family: var(--font-headline) !important;
  font-style: italic;
  font-size: 1.3rem !important;
  line-height: 1.6 !important;
  color: var(--text) !important;
  margin: 0 !important;
}
.pull-quote p::first-letter { float: none; font-size: inherit; } /* no drop cap on pull quotes */
.pull-quote cite {
  display: block; margin-top: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.775rem; font-style: normal;
  font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}

/* Section Images — inline article image */
.section-image {
  width: 100%;
  margin: 0.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}
.section-image img {
  width: 100%; height: 300px;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.section-image:hover img { transform: scale(1.015); }
.section-image-caption {
  font-family: var(--font-body);
  font-size: 0.775rem; color: var(--text-light);
  font-style: italic; padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

/* ═══════════════════════════════════
   TABLES — Warm editorial
   ═══════════════════════════════════ */
.table-wrap {
  overflow-x: auto; margin: 2rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th {
  background: var(--text);
  color: #fff; padding: 0.9rem 1rem;
  text-align: left; font-size: 0.775rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--font-body);
}
.table-wrap td {
  padding: 0.8rem 1rem; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light); vertical-align: top;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--cream); }
.table-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════════════════════════
   CALLOUT BOXES — Warm & elegant
   ═══════════════════════════════════ */
.wisdom-callout {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(14,116,144,0.12);
  border-top: 3px solid var(--accent);
  position: relative;
  box-shadow: 0 2px 16px rgba(26,26,46,0.06);
}
.wisdom-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem;
}
.wisdom-icon { font-size: 1.5rem; }
.wisdom-callout h2 {
  font-family: var(--font-headline) !important;
  font-size: 1.25rem !important; font-weight: 700 !important;
  color: var(--text) !important; margin: 0 !important;
  padding: 0 !important; border: none !important;
}
.wisdom-callout h2::before { display: none !important; }
.wisdom-callout h2::after { display: none !important; }
.wisdom-callout h3 {
  font-family: var(--font-headline) !important;
  color: var(--accent) !important;
  font-size: 1rem !important;
  margin: 1.25rem 0 0.5rem !important;
}
.wisdom-callout p { color: var(--text-secondary) !important; font-size: 0.9375rem !important; line-height: 1.8 !important; }
.wisdom-callout li { color: var(--text-secondary) !important; font-size: 0.9375rem !important; line-height: 1.75 !important; }
.wisdom-callout strong { color: var(--text) !important; }
.wisdom-callout ul, .wisdom-callout ol { margin-left: 1rem; }

.tip-box {
  background: rgba(236,250,236,0.85);
  border: 1px solid var(--mint-border);
  border-top: 3px solid #059669;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.tip-box p { color: #064E3B !important; margin: 0 !important; font-size: 0.9375rem !important; line-height: 1.8 !important; font-family: var(--font-body) !important; }

.warning-box {
  background: rgba(248,240,216,0.85);
  border: 1px solid #E8D5A0;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.warning-box p { color: #5C4813 !important; margin: 0 !important; font-size: 0.9375rem !important; line-height: 1.8 !important; font-family: var(--font-body) !important; }

.danger-box {
  background: rgba(255,245,245,0.9);
  border: 1px solid #FED7D7;
  border-top: 3px solid #E53E3E;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.danger-box p { color: #742A2A !important; margin: 0 !important; font-size: 0.9375rem !important; line-height: 1.8 !important; font-family: var(--font-body) !important; }

/* ═══════════════════════════════════
   NEWSLETTER CTA — Warm gradient
   ═══════════════════════════════════ */
.newsletter-cta {
  background: linear-gradient(135deg, #0C4A6E 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  margin: 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.newsletter-cta::before {
  content: '';
  position: absolute; top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter-cta h3 {
  font-family: var(--font-headline) !important;
  color: #fff !important; font-size: 1.5rem; font-weight: 700;
  margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.newsletter-cta p { color: rgba(255,255,255,0.8) !important; font-size: 1rem; margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; position: relative; }
.newsletter-form input {
  flex: 1; min-width: 200px; padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm); border: 2px solid transparent; font-size: 0.9375rem;
  outline: none; font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.newsletter-form input:focus-visible {
  border-color: var(--accent, #0891B2);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.25);
}
.newsletter-form button {
  background: var(--text); color: #fff; font-weight: 800; font-size: 0.9375rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-family: inherit; transition: all .2s;
}
.newsletter-form button:hover { background: #252540; transform: translateY(-1px); }

/* ═══════════════════════════════════
   QUICK ANSWER BOX — Glassmorphism
   ═══════════════════════════════════ */
.quick-answer-box {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14,116,144,0.14);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 16px rgba(26,26,46,0.07), inset 0 1px 0 rgba(255,255,255,0.8);
}
.qa-header {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.qa-icon { font-size: 1.35rem; line-height: 1; }
.qa-label {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.qa-headline {
  font-family: var(--font-headline);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); line-height: 1.3;
}
.qa-content { font-size: 1rem; color: var(--text-secondary); line-height: 1.85; }
.qa-content strong { color: var(--text); font-weight: 700; }
/* Single-column list — no 2-col grid (causes bad text wrapping) */
.qa-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}
.qa-fact {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.975rem; color: var(--text-secondary); line-height: 1.75;
  padding: 0.7rem 0.875rem;
  background: rgba(14,116,144,0.04);
  border-radius: 0.5rem;
}
.qa-fact:last-child {
  margin-bottom: 0.125rem;
}
.qa-fact::before {
  content: "✓";
  color: #059669; font-weight: 800; flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 0.15rem;
  line-height: 1.7;
}
.qa-fact strong { color: var(--text); font-weight: 700; margin-right: 0.15em; }

/* ═══════════════════════════════════
   RELATED ARTICLES — Clean cards
   ═══════════════════════════════════ */
.related-section h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  margin-bottom: 1.25rem;
}
.related-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.related-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.related-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.related-emoji { font-size: 1.5rem; flex-shrink: 0; }
.related-body { flex: 1; min-width: 0; }
.related-cat {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent);
}
.related-title {
  font-family: var(--font-headline);
  font-size: 0.95rem; font-weight: 600; color: var(--text); margin-top: 0.15rem;
}
.related-arrow { color: var(--text-light); font-size: 1rem; flex-shrink: 0; transition: all .2s; }
.related-card:hover .related-arrow { color: var(--accent); transform: translateX(3px); }

/* ═══════════════════════════════════
   AUTHOR BIO — Warm elegant card
   ═══════════════════════════════════ */
.author-bio {
  margin: 3.5rem 0 2rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border);
}
.author-bio .author-flex {
  display: flex; gap: 1.15rem; align-items: flex-start;
}
.author-bio .author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0C4A6E);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14,116,144,0.25);
}
.author-bio .author-name {
  font-family: var(--font-headline);
  font-weight: 700; font-size: 1rem; color: var(--text);
  margin-bottom: 0.15rem;
}
.author-bio .author-title {
  font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.6rem;
}
.author-bio .author-desc {
  font-size: 0.875rem; line-height: 1.65; color: var(--text-muted); margin: 0;
}

/* ═══════════════════════════════════
   FAQ SECTION — Premium Accordion
   ═══════════════════════════════════ */
.faq-section { margin-top: 3.5rem; }
.faq-section-title {
  font-family: var(--font-headline);
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.faq-section-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 3rem; height: 2px; background: var(--accent);
}
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}
.faq-item:hover {
  border-color: rgba(14,116,144,0.3);
  box-shadow: 0 4px 20px rgba(14,116,144,0.08);
  transform: translateY(-1px);
}
.faq-item.open {
  border-color: rgba(14,116,144,0.4);
  box-shadow: 0 2px 16px rgba(14,116,144,0.1);
}
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.125rem 1.25rem; cursor: pointer; font-family: var(--font-body);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.4;
  transition: color .2s, background .18s;
}
.faq-question:hover { color: var(--accent); background: var(--accent-light); }
.faq-chevron {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(14,116,144,0.1); border: 1.5px solid rgba(14,116,144,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.85rem; flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), background 0.2s, border-color 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(14,116,144,0.18);
  border-color: rgba(14,116,144,0.45);
}
.faq-answer {
  max-height: 0; overflow: hidden;
  padding: 0 1.25rem;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), padding 0.28s ease;
  font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.85;
  border-top: 1px solid transparent;
}
.faq-answer p + p { margin-top: 0.6rem; }
.faq-answer strong { color: var(--text); font-weight: 700; }
.faq-answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--accent-hover); }
.faq-item.open .faq-answer {
  max-height: 1000px;
  padding: 1rem 1.25rem 1.375rem;
  border-top-color: var(--border-light);
}

/* ═══════════════════════════════════
   FOOTER — Kept dark for contrast
   ═══════════════════════════════════ */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: none;
  margin-top: 0;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 1.0625rem; font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), #0C4A6E);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem;
}
.footer-copy { font-size: 0.8125rem; color: rgba(255,255,255,0.35); margin-top: 0.5rem; }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-sidebar { position: static; display: none; }
}
@media (max-width: 768px) {
  .article-hero { min-height: 420px; }
  .hero-inner { padding: 0 1.25rem 2.5rem; }
  .article-byline { padding: 0.875rem 1.25rem; }
  .article-layout { padding: 1.5rem 1.25rem 3rem; }
}
@media (max-width: 600px) {
  .article-hero { min-height: 360px; }
  .hero-inner { padding: 0 1rem 2rem; }
  .article-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem) !important; letter-spacing: -0.02em; }
  .hero-subtitle { font-size: 0.875rem !important; margin-bottom: 1rem; }
  .hero-meta { gap: 0.5rem 0.875rem; }
  .article-byline { padding: 0.75rem 1rem; }
  .article-layout { padding: 1.25rem 1rem 2.5rem; gap: 2.5rem; }
  .newsletter-cta { padding: 2rem 1.25rem; }
  .wisdom-callout { padding: 1.25rem 1.25rem; }
  .quick-answer-box { padding: 1.5rem 1.25rem; }
  .section-image img { height: 200px; }
  .pull-quote { padding: 1rem 1.25rem; }
  .pull-quote p { font-size: 1.0625rem !important; }
}

/* ═══════════════════════════════════
   NAV LOGO WORDMARK
   ═══════════════════════════════════ */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  transition: opacity 0.2s ease;
  line-height: 1;
  position: relative;
}
.nav-logo::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.75; }

/* Keep goldShimmer for any legacy usage */
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Quick Answer box — featured snippet trigger */
.quick-answer {
  background: var(--cream-light, #FFF8F0);
  border-left: 4px solid var(--gold, #D4A66E);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif, 'Newsreader', Georgia, serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark, #2C1810);
}
.quick-answer strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold, #D4A66E);
}
