@charset "UTF-8";
/* MyADHDTips.com — Global Styles (V3 Friendly Community) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --purple: #7C5CFC;
  --purple-dark: #5A3FD6;
  --pink: #FF6B9D;
  --pink-dark: #E84D80;
  --teal: #2DD4BF;
  --amber: #F59E0B;
  --blue: #3B82F6;
  --rose: #F43F5E;
  --bg: #F8F6FF;
  --bg-card: #FFFFFF;
  --text: #1E1E2E;
  --text-muted: #666;
  --text-light: #767676;
  --border: #E8E0FF;
  --border-light: #F0ECFF;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(124, 92, 252, 0.08);
  --max-w: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }
img { max-width: 100%; }

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* Navigation */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: var(--max-w); margin: 0 auto; position: sticky; top: 0; background: rgba(248, 246, 255, 0.95); backdrop-filter: blur(12px); z-index: 100; }
.logo { font-size: 1.5rem; font-weight: 800; }
.logo .my { color: var(--purple); }
.logo .adhd { color: var(--text); }
.logo .tips { color: var(--pink); }
.logo a { color: inherit; text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
nav ul a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
nav ul a:hover { color: var(--purple); }
.nav-cta { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 24px; font-weight: 700 !important; }

/* Buttons */
.btn-grad { display: inline-block; padding: 0.85rem 2rem; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-grad:hover { opacity: 0.9; color: #fff; }
.btn-outline { display: inline-block; padding: 0.85rem 2rem; background: var(--bg-card); color: var(--purple); border: 2px solid var(--border); border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-outline:hover { border-color: var(--purple); }

/* Cards */
.card { background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius); padding: 2rem; transition: all 0.2s; }
.card:hover { border-color: var(--purple); box-shadow: var(--shadow); }

/* Tags */
.tag { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.tag-purple { background: #F0ECFF; color: var(--purple); }
.tag-pink { background: #FFE0EC; color: var(--pink-dark); }
.tag-teal { background: #E0FFF8; color: #0EA5A5; }
.tag-amber { background: #FFF5E0; color: #D97706; }

/* Article content */
.article-content { max-width: 740px; margin: 0 auto; }
.article-content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.article-content h2 { font-size: 1.75rem; font-weight: 800; margin: 2.5rem 0 1rem; color: var(--text); }
.article-content h3 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.article-content p { margin-bottom: 1.25rem; color: #444; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; color: #444; }
.article-content li { margin-bottom: 0.5rem; }
.article-content blockquote { border-left: 4px solid var(--purple); background: #F0ECFF; padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: #555; }
.article-content .callout { background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.article-content .callout-title { font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.article-content .callout p { margin-bottom: 0.5rem; }
.article-content .callout p:last-child { margin-bottom: 0; }
.article-content .source { font-size: 0.85rem; color: var(--text-light); font-style: italic; }

/* Article hero */
.article-hero { text-align: center; padding: 3rem 2rem 2rem; max-width: 800px; margin: 0 auto; }
.article-hero .tag { margin-bottom: 1rem; }
.article-hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.article-hero .subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 1.5rem; }
.article-meta { display: flex; justify-content: center; gap: 2rem; font-size: 0.9rem; color: var(--text-light); }

/* Table of contents */
.toc { background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius); padding: 1.5rem 2rem; margin: 2rem auto; max-width: 740px; }
.toc h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 0.75rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { padding: 0.3rem 0; }
.toc a { color: var(--purple); font-weight: 500; }

/* CTA box inline */
.cta-box { background: linear-gradient(135deg, var(--purple), var(--pink)); border-radius: var(--radius-lg); padding: 2.5rem; color: #fff; text-align: center; margin: 2.5rem 0; }
.cta-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.25rem; }
.cta-box input { padding: 0.8rem 1.25rem; border: none; border-radius: 10px; font-size: 1rem; width: 300px; margin-right: 0.5rem; }
.cta-box button { padding: 0.8rem 1.5rem; background: var(--text); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* Sidebar */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-card { background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 0.4rem 0; }
.sidebar-card li a { color: var(--text-muted); font-size: 0.9rem; }
.sidebar-card li a:hover { color: var(--purple); }

/* Product review card */
.product-card { background: var(--bg-card); border: 2px solid var(--border-light); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; display: flex; gap: 1.5rem; align-items: center; }
.product-card:hover { border-color: var(--purple); }
.product-emoji { font-size: 3rem; flex-shrink: 0; }
.product-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.product-info .stars { color: var(--amber); margin-bottom: 0.25rem; }
.product-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.product-link { color: var(--purple); font-weight: 600; font-size: 0.9rem; }

/* Footer base — overridden by .site-footer */
footer { max-width: var(--max-w); margin: 3rem auto 0; padding: 2.5rem 2rem; border-top: 2px solid var(--border); color: var(--text-light); font-size: 0.85rem; }
footer a { color: var(--purple); }

/* Responsive */
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-hero h1 { font-size: 2rem; }
  .article-content h1 { font-size: 2rem; }
  nav ul { gap: 0.75rem; }
  .cta-box input { width: 100%; margin: 0 0 0.5rem 0; }
}


/* ═══════════════════════════════════════════════════════════════
   WAVE 1 ADDITIONS — Topic Hubs, Quiz, Reading Progress, Print
   ═══════════════════════════════════════════════════════════════ */

/* ── Topic Hub Pages ── */

.topic-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 0;
}
.topic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  z-index: 1;
}
.topic-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}
.topic-hero-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
.topic-breadcrumb {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.topic-breadcrumb a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.topic-breadcrumb a:hover { color: #fff; }
.topic-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.topic-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}
.topic-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  flex-wrap: wrap;
}

/* Topic section layout */
.topic-section {
  padding: 3rem 0 4rem;
}
.topic-section-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.topic-section-intro h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.topic-section-intro p {
  color: var(--text-muted);
  font-size: 1rem;
}
.topic-subsection-label {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.5rem;
}
.topic-subsection-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Article card grid */
.topic-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Article card */
.topic-article-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.topic-article-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.12);
  transform: translateY(-2px);
  color: inherit;
}
.topic-article-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  align-items: start;
  background: linear-gradient(135deg, #F0ECFF 0%, #FFE8F0 100%);
  border-color: var(--border);
}
@media (max-width: 600px) {
  .topic-article-card.featured {
    grid-template-columns: 1fr;
  }
}
.topic-article-card.featured .tac-header {
  grid-row: 1 / 4;
}
.tac-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tac-emoji {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 0.25rem;
}
.tac-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.topic-article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.topic-article-card.featured h3 {
  font-size: 1.2rem;
}
.tac-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.tac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tac-readtime {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Coming soon card */
.coming-soon-card {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}
.coming-soon-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-light);
}

/* Coming soon badge */
.coming-soon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--amber), #D97706);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Affiliate disclosure */
.topic-disclosure {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.83rem;
  color: var(--text-light);
  margin: 1.5rem 0;
  line-height: 1.6;
}

/* Bottom CTA */
.topic-bottom-cta {
  margin-top: 2.5rem;
}


/* ── Article Header Images (gradient) ── */

.article-header-img {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}
.article-header-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  border-radius: inherit;
}

/* Category-specific gradient backgrounds */
.article-header-img.cat-understanding {
  background: linear-gradient(135deg, #7C5CFC 0%, #5A3FD6 60%, #9B72FF 100%);
}
.article-header-img.cat-strategies {
  background: linear-gradient(135deg, #FF6B9D 0%, #E84D80 60%, #FF9CC4 100%);
}
.article-header-img.cat-parenting {
  background: linear-gradient(135deg, #2DD4BF 0%, #0EA5A5 60%, #67E8D9 100%);
}
.article-header-img.cat-reviews {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 60%, #FCD34D 100%);
}
.article-header-img.cat-medication {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 60%, #93C5FD 100%);
}
.article-header-img.cat-emotions {
  background: linear-gradient(135deg, #F43F5E 0%, #DC2626 60%, #FDA4AF 100%);
}
.article-header-img.cat-neuroscience {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 60%, #C4B5FD 100%);
}


/* ── Reading Progress Bar ── */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* Add this script snippet to articles to activate:
<div class="reading-progress" id="readingProgress"></div>
<script>
window.addEventListener('scroll', () => {
  const el = document.getElementById('readingProgress');
  const docH = document.documentElement.scrollHeight - window.innerHeight;
  const pct = (window.scrollY / docH) * 100;
  el.style.width = Math.min(pct, 100) + '%';
});
</script>
*/


/* ── Quiz Page (base styles referenced from quiz.html inline block) ── */

/* Shared quiz utility classes used outside quiz.html */
.quiz-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F0ECFF;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  text-decoration: none;
}
.quiz-tag:hover {
  background: var(--purple);
  color: #fff;
}


/* ── Print Styles ── */

@media print {
  /* Hide interactive / nav elements */
  nav,
  footer,
  .nav-cta,
  .cta-box,
  .lead,
  .sidebar,
  .toc,
  .quiz-wrap,
  .quiz-hero,
  .topic-hero-meta,
  .topic-bottom-cta,
  .coming-soon-card,
  .quiz-retake,
  .result-ctas,
  .about-section,
  .community,
  .how-section,
  .hero-actions,
  .hero-proof {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
    font-family: Georgia, serif;
  }

  a { color: #000; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  a[href^="#"]::after { content: ''; }

  h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    page-break-after: avoid;
    color: #000;
  }

  .article-content {
    max-width: 100%;
    font-size: 11pt;
  }

  .article-content p { orphans: 3; widows: 3; }

  .article-hero h1 { font-size: 22pt; }
  .article-hero .subtitle { font-size: 12pt; color: #444; }
  .article-meta { color: #666; font-size: 10pt; }

  .article-header-img {
    height: 120px;
    font-size: 3rem;
    border-radius: 8px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .callout, blockquote {
    border-color: #999 !important;
    background: #f5f5f5 !important;
    print-color-adjust: exact;
  }

  .tag {
    border: 1px solid #ccc;
    background: #f5f5f5 !important;
    color: #333 !important;
  }

  .topic-article-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
    box-shadow: none;
    transform: none;
  }

  .coming-soon-badge {
    background: #ccc !important;
    color: #333 !important;
    print-color-adjust: exact;
  }

  .reading-progress { display: none !important; }

}

/* Print page layout */
@page {
  margin: 1.5cm 2cm;
  size: A4;
}


/* ── Responsive additions for hub pages ── */

@media (max-width: 900px) {
  .topic-hero h1 { font-size: 2.2rem; }
  .topic-grid-full { grid-template-columns: 1fr; }
  .topic-article-card.featured { grid-template-columns: 1fr; }
  .topic-article-card.featured .tac-header { grid-row: auto; }
}

@media (max-width: 600px) {
  .topic-hero h1 { font-size: 1.8rem; }
  .topic-hero p { font-size: 0.95rem; }
  .topic-hero-inner { padding: 2.5rem 1.25rem 2rem; }
  .topic-hero-meta { flex-direction: column; gap: 0.5rem; }
  .article-header-img { height: 200px; font-size: 4rem; }
}


/* ═══════════════════════════════════════════════════════════════
   NAV — Clean dropdown navigation (injected by nav.js)
   ═══════════════════════════════════════════════════════════════ */

/* ── Announcement Bar ── */
.ann-bar {
  background: linear-gradient(90deg, var(--purple) 0%, #9B72FF 50%, var(--pink) 100%);
  color: #fff;
  text-align: center;
  padding: 0.6rem 3rem;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1001;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.ann-inner { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.ann-badge {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ann-text { opacity: 0.95; }
.ann-link {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff !important;
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
}
.ann-link:hover { background: rgba(255,255,255,0.35); }
.ann-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0.25rem;
}
.ann-close:hover { color: #fff; }

/* ── Site Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248,246,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(124,92,252,0.10); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  position: relative;
}

/* ── Logo ── */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-my { color: var(--text); }
.logo-adhd { color: var(--purple); }
.logo-tips { color: var(--pink); }

/* ── Nav links (desktop) ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-link:hover,
.nav-item:hover > .nav-link { background: #F0ECFF; color: var(--purple); }
.nav-caret { font-size: 0.6rem; opacity: 0.5; margin-top: 1px; pointer-events: none; }

/* ── Dropdown ── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 0.6rem;
  min-width: 240px;
  box-shadow: 0 16px 48px rgba(124,92,252,0.14);
  z-index: 1100;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown-link:hover { background: #F0ECFF; color: var(--purple); }
.ndl-emoji { font-size: 1rem; width: 1.4rem; flex-shrink: 0; }

/* ── Nav actions (right side) ── */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-quiz-btn {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff !important;
  padding: 0.45rem 1.15rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-quiz-btn:hover { opacity: 0.88; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  height: 2px; width: 22px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Nav ── */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-quiz-btn { display: none; }
  .nav-links {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-top: 1.5px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { max-height: 85vh; overflow-y: auto; }
  .nav-link { padding: 0.75rem 1.5rem; border-radius: 0; }
  .nav-caret { display: none; }
  /* Mobile dropdowns: hidden, show when parent has .open */
  .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    padding: 0.25rem 1rem 0.75rem 2rem;
    min-width: auto;
    width: 100%;
    display: none;
  }
  .nav-item:hover .nav-dropdown { display: none; }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown-link { padding: 0.45rem 0.75rem; border-radius: 8px; }
}
@media (max-width: 600px) {
  .ann-bar { font-size: 0.78rem; padding: 0.55rem 2.5rem; }
  .ann-text { display: none; }
}

/* ── Reading Progress Bar ── */
.reading-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  z-index: 9999;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Article Hero Enhancement ── */
.article-hero-wrap {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.article-hero-gradient {
  border-radius: var(--radius-lg);
  padding: 3rem 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.article-hero-gradient.cat-understanding {
  background: linear-gradient(135deg, #7C5CFC 0%, #5A3FD6 60%, #9B72FF 100%);
  color: #fff;
}
.article-hero-gradient.cat-strategies,
.article-hero-gradient.cat-emotions {
  background: linear-gradient(135deg, #FF6B9D 0%, #E84D80 60%, #F59E0B 100%);
  color: #fff;
}
.article-hero-gradient.cat-parenting {
  background: linear-gradient(135deg, #2DD4BF 0%, #0EA5A5 60%, #67E8D9 100%);
  color: #fff;
}
.article-hero-gradient.cat-reviews {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 60%, #FCD34D 100%);
  color: #fff;
}
.article-hero-gradient.cat-medication {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 60%, #93C5FD 100%);
  color: #fff;
}
.article-hero-gradient.cat-neuroscience {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 60%, #C4B5FD 100%);
  color: #fff;
}
/* Decorative blob in hero */
.article-hero-gradient::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px; right: -80px;
  pointer-events: none;
}
.article-hero-gradient::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -60px; left: -40px;
  pointer-events: none;
}
.agh-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.2rem 0.8rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.article-hero-gradient h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.article-hero-gradient .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 580px;
  line-height: 1.6;
  position: relative; z-index: 1;
}
.article-hero-gradient .article-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 1.5rem;
  position: relative; z-index: 1;
  justify-content: flex-start;
}
@media (max-width: 600px) {
  .article-hero-gradient { padding: 2rem 1.5rem; }
  .article-hero-gradient h1 { font-size: 1.85rem; }
}

/* ── Share Buttons ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 2px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  margin: 2rem 0;
  flex-wrap: wrap;
}
.share-label { font-size: 0.85rem; font-weight: 700; color: var(--text-light); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.share-btn-twitter { background: #EFF8FF; color: #0C8BD6; border-color: #C3E4F8; }
.share-btn-twitter:hover { background: #0C8BD6; color: #fff; }
.share-btn-facebook { background: #EFF0FF; color: #1775E0; border-color: #C5CEFF; }
.share-btn-facebook:hover { background: #1775E0; color: #fff; }
.share-btn-copy { background: #F0ECFF; color: var(--purple); border-color: var(--border); }
.share-btn-copy:hover { background: var(--purple); color: #fff; }

/* ── Author Bio Card ── */
.author-bio {
  background: linear-gradient(135deg, #F8F6FF 0%, #FFF0F6 100%);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 3rem 0 2rem;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0.15rem; }
.author-role { font-size: 0.82rem; color: var(--purple); font-weight: 600; margin-bottom: 0.6rem; }
.author-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
@media (max-width: 600px) {
  .author-bio { flex-direction: column; gap: 1rem; }
}

/* ── Related Articles ── */
.related-articles { margin: 3rem 0; }
.related-articles h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(124,92,252,0.1);
  transform: translateY(-2px);
  color: inherit;
}
.rc-emoji { font-size: 1.75rem; }
.rc-title { font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.4; }
.rc-time { font-size: 0.78rem; color: var(--text-light); font-weight: 600; }
@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,92,252,0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { opacity: 0.9; transform: translateY(-2px); color: #fff; }

/* ── Fade-In Animation ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* fade-in handled by nav.js intersection observer — no hidden default */

/* ── FAQ Accordion ── */
.faq-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
}
.faq-header { text-align: center; margin-bottom: 2.5rem; }
.faq-header h2 { font-size: 2rem; font-weight: 800; }
.faq-header p { color: var(--text-muted); margin-top: 0.5rem; }
.faq-item {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--purple); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  gap: 1rem;
  user-select: none;
}
.faq-question:hover { color: var(--purple); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #F0ECFF;
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.25s;
}
.faq-item.open .faq-icon { background: var(--purple); color: #fff; transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.93rem;
  color: #555;
  line-height: 1.7;
}
.faq-answer p { margin-bottom: 0; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 1.5rem 1.25rem; }

/* ── Homepage: Featured Article Hero ── */
.featured-hero {
  max-width: var(--max-w);
  margin: 0 auto 0;
  padding: 1rem 2rem 3rem;
}
.featured-hero-inner {
  background: linear-gradient(135deg, #7C5CFC 0%, #5A3FD6 55%, #9B72FF 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.featured-hero-inner::before {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -100px; right: -100px;
  pointer-events: none;
}
.fh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}
.fh-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 520px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative; z-index: 1;
}
.fh-desc { font-size: 1rem; opacity: 0.88; line-height: 1.6; max-width: 480px; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.fh-meta { display: flex; gap: 1.25rem; font-size: 0.82rem; font-weight: 600; opacity: 0.75; margin-bottom: 1.25rem; position: relative; z-index: 1; }
.fh-btn {
  display: inline-block;
  background: #fff;
  color: var(--purple) !important;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  position: relative; z-index: 1;
}
.fh-btn:hover { background: #F0ECFF; transform: translateY(-1px); }
.fh-visual {
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2rem;
  font-size: 5rem;
  display: flex; align-items: center; justify-content: center;
  min-width: 140px; min-height: 140px;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
@media (max-width: 768px) {
  .featured-hero-inner { grid-template-columns: 1fr; }
  .fh-visual { display: none; }
  .fh-title { font-size: 1.6rem; }
}

/* ── Popular Right Now Strip ── */
.trending-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
}
.trending-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.85rem;
}
.trending-label::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  animation: pulseDot 1.5s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.trending-items {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.trending-items::-webkit-scrollbar { display: none; }
.trending-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: 99px;
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s;
}
.trending-item:hover { border-color: var(--purple); color: var(--purple); background: #F8F6FF; }
.trending-num {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Topic Cards Enhanced ── */
.topic-card-count-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}
.topic-card-preview {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.78rem;
  opacity: 0.75;
  font-weight: 600;
}

/* ── CSS Category Icons ── */
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.cat-icon-understanding { background: linear-gradient(135deg, #F0ECFF, #E8DEFF); }
.cat-icon-strategies { background: linear-gradient(135deg, #FFE0EC, #FFCCE0); }
.cat-icon-parenting { background: linear-gradient(135deg, #E0FFF8, #CCFBF1); }
.cat-icon-reviews { background: linear-gradient(135deg, #FFF5E0, #FEF3C7); }

/* ── Testimonials Enhanced ── */
.testimonial-enhanced {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s;
}
.testimonial-enhanced:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.testimonial-enhanced::before {
  content: '"';
  position: absolute;
  top: -0.25rem;
  left: 1.25rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--purple);
  opacity: 0.15;
  font-family: Georgia, serif;
  font-weight: 800;
}
.test-stars { color: var(--amber); margin-bottom: 0.6rem; font-size: 0.9rem; }
.test-quote-enhanced {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}
.test-author-row { display: flex; align-items: center; gap: 0.75rem; }
.test-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.test-author-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.test-author-detail { font-size: 0.78rem; color: var(--text-light); }

/* ── Social Proof Counter Strip ── */
.proof-strip {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 2rem;
}
.proof-strip-inner {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.proof-stat { padding: 0.5rem; }
.proof-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
  display: block;
}
.proof-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.4; }
@media (max-width: 700px) {
  .proof-strip-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .proof-strip-inner { grid-template-columns: 1fr; }
}

/* ── Homepage Blob Decorations ── */
.hero-blob-wrap {
  position: relative;
  overflow: hidden;
}
.hero-blob-wrap::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 60% 40% 70% 30% / 40% 60% 40% 60%;
  background: rgba(124,92,252,0.05);
  top: -150px; right: -100px;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-wrap::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%;
  background: rgba(255,107,157,0.05);
  bottom: -100px; left: -80px;
  pointer-events: none;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(10px,-15px) rotate(3deg); }
  66% { transform: translate(-8px,8px) rotate(-2deg); }
}

/* ── Enhanced card hover effects ── */
.post-row {
  transition: all 0.25s ease;
}
.post-row:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 32px rgba(124,92,252,0.12);
  transform: translateX(4px);
}
.how-step {
  transition: all 0.25s ease;
}
.how-step:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.topic-card {
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

/* ── Footer (injected by nav.js) ── */
.site-footer {
  background: var(--bg-card);
  border-top: 2px solid var(--border);
  margin-top: 4rem;
  padding: 0;
}
.site-footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-logo { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0 0.25rem; line-height: 1.5; }
.footer-copy { font-size: 0.78rem; color: var(--text-light); margin-top: 0.25rem; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; min-width: 110px; }
.footer-col-title {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 0.25rem;
}
.footer-col a { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 1rem 2rem;
  text-align: center;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-light); max-width: var(--max-w); margin: 0 auto; }
@media (max-width: 768px) {
  .site-footer .footer-inner { flex-direction: column; }
  .footer-brand { max-width: 100%; }
  .footer-cols { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-col { min-width: calc(50% - 0.75rem); }
}


/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY & PERFORMANCE
   ═══════════════════════════════════════════════════════════════ */

/* Skip to content link (visually hidden until focused) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -999;
}
.skip-to-content:focus {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  overflow: visible;
  z-index: 9999;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Visible focus outlines for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default outline only when focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Minimum touch target sizes for mobile */
@media (max-width: 768px) {
  a,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  .nav-link,
  .nav-dropdown-link,
  .btn-grad,
  .btn-outline,
  .share-btn,
  .trending-item,
  .back-to-top,
  .faq-question {
    min-height: 44px;
    min-width: 44px;
  }
  /* For inline links, ensure comfortable tap area */
  .nav-link,
  .nav-dropdown-link {
    display: flex;
    align-items: center;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Performance: GPU-accelerate transformed elements */
.topic-article-card,
.related-card,
.how-step,
.post-row,
.back-to-top,
.featured-hero-inner::before {
  will-change: transform;
}

/* Image best practices — add loading="lazy" to all <img> tags below the fold */
/* Usage: <img src="..." alt="..." loading="lazy" width="..." height="..."> */

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Additional Coverage
   ═══════════════════════════════════════════════════════════════ */

/* Prevent horizontal overflow site-wide */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Emoji / content overflow prevention */
.tac-emoji,
.topic-hero-icon,
.article-header-img,
.fh-visual,
.how-emoji,
.rc-emoji,
.author-avatar {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Hero text scales down */
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-grad,
  .hero-actions .btn-outline { width: 100%; max-width: 320px; text-align: center; }

  /* Topic cards: 1 column on mobile */
  .topic-grid { grid-template-columns: 1fr; }

  /* How-it-works: 2-column on tablet, 1 on phone */
  .how-path { grid-template-columns: repeat(2, 1fr); }

  /* Product cards: stack vertically */
  .product-card { flex-direction: column; gap: 1rem; }
  .product-emoji { font-size: 2.5rem; }

  /* CTA box: full width */
  .cta-box { padding: 1.75rem 1.25rem; }
  .cta-box input { width: 100%; margin-bottom: 0.5rem; }
  .cta-box button { width: 100%; }

  /* Article layout: single column */
  .article-layout { grid-template-columns: 1fr; padding: 0 1.25rem; }
  .article-hero { padding: 2rem 1.25rem 1.5rem; }
  .article-hero h1 { font-size: 1.9rem; }
  .article-content { padding: 0; }
  .article-content h2 { font-size: 1.45rem; }
  .article-content h3 { font-size: 1.15rem; }

  /* Article hero gradient */
  .article-hero-wrap { padding: 0 1.25rem; }

  /* Share bar wraps */
  .share-bar { gap: 0.5rem; }
  .share-btn { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

  /* Related articles: single column */
  .related-grid { grid-template-columns: 1fr; }

  /* Featured hero: single column */
  .featured-hero { padding: 0.5rem 1.25rem 2rem; }
  .featured-hero-inner { padding: 2rem 1.5rem; }
  .fh-title { font-size: 1.5rem; }

  /* Proof strip: 2 columns */
  .proof-strip-inner { grid-template-columns: repeat(2, 1fr); }

  /* Trending: full scroll */
  .trending-strip { padding: 0 1.25rem 2rem; }

  /* Footer: stack */
  .site-footer .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-brand { max-width: 100%; }
  .footer-cols { gap: 1.5rem; }

  /* Container padding */
  .container { padding: 0 1.25rem; }
  .faq-section { padding: 2rem 1.25rem; }
  .topic-section { padding: 2rem 0 3rem; }
  .topics { padding: 1.5rem 1.25rem; }
  .how-section { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
  /* Smallest screens */
  .hero h1 { font-size: 1.8rem; }
  .how-path { grid-template-columns: 1fr; }
  .proof-strip-inner { grid-template-columns: 1fr; }
  .article-meta { flex-direction: column; gap: 0.35rem; text-align: center; }
  .article-hero-gradient h1 { font-size: 1.6rem; }
  .author-bio { padding: 1.25rem; }
  .toc { padding: 1.25rem; }
  .featured-hero-inner { padding: 1.5rem 1.25rem; }
  .fh-title { font-size: 1.3rem; }
}
