/*
  ADHDose — shared.css
  ─────────────────────────────────────────────
  Applies to every page on adhdose.com.

  WHAT THIS FILE OWNS:
  - Design tokens (dark + light mode)
  - CSS reset
  - Body / html base
  - Noise grain overlay
  - Nav (fixed, transparent → solid on scroll)
  - Mobile menu
  - Footer
  - Scroll reveal utility (.reveal / .reveal.up)
  - Common layout: .wrap, .s-label, h2.s-head
  - FAQ accordion
  - Reading progress bar
  - Store badge links

  WHAT STAYS PAGE-SPECIFIC:
  - Hero sections
  - Section-level layout (outcomes, how-it-works, etc.)
  - Medication page components
  - Article / content page components
  - Responsive overrides specific to a page layout

  HOW TO ADD TO A PAGE:
  1. Remove the inline :root { } variables block from <style>
  2. Remove the inline nav CSS from <style>
  3. Remove the inline footer CSS from <style>
  4. Remove the inline .reveal CSS from <style>
  5. Add in <head> (after font link, before page-specific <style>):
       <link rel="stylesheet" href="shared.css"/>
  6. Remove the inline nav HTML and replace with nav.html snippet
  7. Remove the inline footer HTML and replace with footer.html snippet
  8. Remove the inline shared.js block and replace with:
       <script src="shared.js"></script>
  ─────────────────────────────────────────────
*/

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ─────────────────────────── */
:root {
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono:    'DM Mono', monospace;
  --serif:   'Fraunces', Georgia, serif;
  --radius:  16px;
  --ease:    cubic-bezier(0.22,1,0.36,1);
}

/* ── BASELINE FALLBACK (dark mode as default, flash-safe) ── */
:root {
  --bg:           #08090E;
  --ink:          #0D0E17;
  --surface:      #111320;
  --border:       rgba(255,255,255,0.07);
  --line:         rgba(255,255,255,0.05);
  --text:         #E8ECF4;
  --mid:          #8896B3;
  --muted:        #4C5872;
  --teal:         #00C9A7;
  --teal-lo:      rgba(0,201,167,0.08);
  --teal-md:      rgba(0,201,167,0.18);
  --amber:        #F5A623;
  --red:          #E04040;
  --nav-bg:       rgba(8,9,14,0.55);
  --nav-scrolled: rgba(8,9,14,0.96);
}


/* LIGHT MODE */
[data-theme="light"] {
  --bg:           #EDECE8;
  --ink:          #F4F3EF;
  --surface:      #FFFFFF;
  --border:       rgba(0,0,0,0.07);
  --line:         rgba(0,0,0,0.05);
  --text:         #0D0E17;
  --mid:          #3D4459;
  --muted:        #566078;
  --teal:         #08697A;
  --teal-lo:      rgba(8,105,122,0.08);
  --teal-md:      rgba(8,105,122,0.18);
  --amber:        #C8870A;
  --red:          #E04040;
  --nav-bg:       rgba(237,236,232,0.72);
  --nav-scrolled: rgba(237,236,232,0.97);
}

/* ── BASE ───────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.28s ease, color 0.28s ease;
  cursor: default;
}

a { color: var(--teal); text-decoration: none; transition: opacity .18s; }
a:hover { opacity: 0.80; }

/* ── GRAIN ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.016; pointer-events: none; z-index: 1;
}
[data-theme="light"] body::after { opacity: 0.008; }

/* ── LAYOUT ─────────────────────────────────── */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────── */
.s-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.28s;
}
.s-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--teal);
  transition: background 0.28s;
}

h2.s-head {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.06;
  color: var(--text);
  transition: color 0.28s;
}
h2.s-head .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
}

/* ── NAV ────────────────────────────────────── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 60px;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}
nav.scrolled {
  background: var(--nav-scrolled);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 1;
}
.nav-logo:hover { opacity: 1; }
.nav-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-wordmark {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.28s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 10px;
  transition: color .18s, background .18s;
  opacity: 1;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--border);
  opacity: 1;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme toggle button */
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color .18s, border-color .18s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--teal); border-color: rgba(0,201,167,0.5); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Primary CTA pill */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: #08090E !important;
  font-family: var(--display);
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 100px !important;
  text-decoration: none;
  border: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 1px 0 rgba(255,255,255,0.12) inset;
  position: relative;
  overflow: hidden;
  transition: opacity .18s, transform .15s, box-shadow .18s;
  opacity: 1;
}
.nav-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow:
    0 4px 20px rgba(0,201,167,0.26),
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 1px 0 rgba(255,255,255,0.12) inset;
}
.nav-cta:active { transform: scale(0.97); }

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: background 0.28s;
}

/* Mobile menu drawer */
.mob-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 90;
  background: var(--nav-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  transition: background 0.28s;
}
.mob-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  opacity: 1;
  transition: color 0.28s, border-color 0.28s;
}
.mob-menu a:hover { opacity: 1; color: var(--teal); }
.mob-menu .mob-dl {
  border: none;
  margin-top: 14px;
  background: var(--teal);
  color: #08090E !important;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  opacity: 1;
}
.mob-menu.open { display: flex; }

/* Content pages: nav is sticky not fixed (no hero overlap needed) */
nav.sticky-nav {
  position: sticky;
  top: 0;
  background: var(--nav-scrolled);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
nav.sticky-nav .mob-menu {
  top: 60px;
}

/* ── READING PROGRESS BAR (content pages) ──── */
.read-progress-wrap {
  position: fixed;
  top: 60px; left: 0; right: 0;
  height: 2px;
  z-index: 99;
  background: var(--border);
  transition: top 0.28s;
}
.read-progress-fill {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: background 0.28s;
}

/* ── FOOTER ─────────────────────────────────── */
footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  transition: border-color 0.28s;
}
.footer-row {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.28s;
  opacity: 1;
}
.footer-logo:hover { opacity: 1; color: var(--teal); }
.footer-copy {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  transition: color 0.28s;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s;
  opacity: 1;
}
.footer-links a:hover { color: var(--text); opacity: 1; }

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.up { opacity: 1; transform: none; }

/* ── FAQ ACCORDION ───────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.28s;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .18s;
}
.faq-q:hover { color: var(--teal); }
.faq-q:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.faq-ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s, border-color .25s, color .25s;
  line-height: 1;
}
.faq-item.open .faq-ico {
  transform: rotate(45deg);
  border-color: var(--teal);
  color: var(--teal);
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-body {
  padding: 0 0 22px;
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.75;
  transition: color 0.28s;
}
.faq-a-body strong { color: var(--text); font-weight: 600; }
.faq-a-body a {
  color: var(--mid);
  text-decoration: underline;
  text-decoration-color: rgba(0,201,167,.25);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s;
  opacity: 1;
}
.faq-a-body a:hover {
  text-decoration-color: rgba(0,201,167,.6);
  color: var(--text);
  opacity: 1;
}

/* ── STORE BADGE LINKS ───────────────────────── */
.store-badge-link { display: inline-block; opacity: 1; transition: opacity .18s; }
.store-badge-link:hover { opacity: 0.80; }
.store-badge-link svg { display: block; height: 48px; width: auto; }

/* ── MARQUEE ─────────────────────────────────── */
.marquee-wrap {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.012);
  transition: border-color 0.28s, background 0.28s;
}
[data-theme="light"] .marquee-wrap { background: rgba(0,0,0,0.012); }
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-25%)} }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color 0.28s;
}
.marquee-item::after { content: '·'; color: var(--teal); font-size: 1rem; }
.marquee-item a { color: inherit; text-decoration: none; transition: color .18s; opacity: 1; }
.marquee-item a:hover { color: var(--teal); opacity: 1; }

/* ── DOWNLOAD BUTTON (global) ────────────────── */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal);
  color: #08090E;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 0 40px rgba(0,201,167,0.20);
  position: relative;
  overflow: hidden;
  transition: opacity .18s, transform .15s, box-shadow .2s;
  opacity: 1;
}
.dl-btn::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.10), transparent);
  pointer-events: none;
  border-radius: 100px 100px 0 0;
}
.dl-btn:hover {
  opacity: 0.90;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 6px 28px rgba(0,201,167,0.30);
}
.dl-btn:active { transform: scale(0.98); }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  nav { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .wrap { padding: 0 22px; }
  footer { padding: 24px 22px; }
  .footer-row { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .dl-btn { padding: 14px 28px; font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
   Orientation chrome — almost invisible by design.
   DM Mono, flush with content column, recedes naturally.
═══════════════════════════════════════════════════════ */
.breadcrumb {
  padding: 48px 0 0;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Full-width pages (med hub, learn hub) */
.breadcrumb.breadcrumb--wide {
  max-width: 1080px;
  padding-left: 32px;
  padding-right: 32px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
  opacity: 1;
  transition: color 0.15s ease;
}
.breadcrumb__link:hover {
  color: var(--text);
  opacity: 1;
}

/* Chevron separator — SVG, thinner and more refined than / */
.breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  margin: 0 7px;
  color: var(--border);
  flex-shrink: 0;
}
.breadcrumb__sep svg {
  width: 10px;
  height: 10px;
  display: block;
}

/* Current page — slightly brighter, not a link */
.breadcrumb__current {
  color: var(--mid);
  font-weight: 400;
  /* Truncate long titles gracefully */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

@media (max-width: 960px) {
  .breadcrumb {
    padding-left: 22px;
    padding-right: 22px;
  }
  .breadcrumb--wide {
    padding-left: 22px;
    padding-right: 22px;
  }
  /* On mobile, hide the middle crumb if 3 levels deep — only show root + current */
  .breadcrumb__item.breadcrumb__item--mid {
    display: none;
  }
  .breadcrumb__sep.breadcrumb__sep--mid {
    display: none;
  }
}

@media (max-width: 520px) {
  .breadcrumb {
    padding-top: 32px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .breadcrumb__current {
    max-width: 180px;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER — multi-column, substantive
   Brand left. Medications, Learn, Product, Legal columns.
   Medical disclaimer below the fold.
═══════════════════════════════════════════════════════ */

/* Override the simple footer from earlier in this file */
footer {
  padding: 72px 48px 0;
  border-top: 1px solid var(--border);
  background: var(--ink);
  transition: background 0.28s, border-color 0.28s;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.28s;
}

/* Brand column */
.footer-brand {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 14px;
  opacity: 1;
}
.footer-logo:hover { opacity: 1; }
.footer-logo-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-logo-name {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color 0.28s;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 220px;
  transition: color 0.28s;
}

.footer-badge-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--mid);
  letter-spacing: 0.02em;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  opacity: 1;
  width: fit-content;
}
.footer-store-badge:hover {
  color: var(--text);
  border-color: var(--teal);
  opacity: 1;
}
.footer-store-badge svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.18s;
}
.footer-store-badge:hover svg {
  color: var(--teal);
}
.footer-store-badge .badge-status {
  font-size: 0.5625rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Link columns */
.footer-col {}

.footer-col-head {
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  transition: color 0.28s;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-col-links a {
  font-size: 0.875rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
  opacity: 1;
  line-height: 1.3;
}
.footer-col-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* Bottom bar */
.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 0 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  transition: color 0.28s;
}

.footer-disclaimer {
  font-family: var(--mono);
  font-size: 0.5625rem;
  color: var(--muted);
  opacity: 0.45;
  line-height: 1.65;
  max-width: 520px;
  transition: color 0.28s;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}
.footer-bottom-links a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  opacity: 1;
}
.footer-bottom-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  footer { padding: 56px 22px 0; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-tagline { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  footer { padding: 44px 18px 0; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-links { flex-wrap: wrap; gap: 12px; }
}


/* ══ NEW UTILITY CLASSES (v2 design system) ══════════════════════ */

/* Tags */
.tag {
  display: inline-block; font-family: var(--mono, 'DM Mono', monospace);
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); background: rgba(0,201,167,0.08);
  border: 1px solid rgba(0,201,167,0.18); border-radius: 100px; padding: 3px 10px;
}
.tag-amber { color: var(--amber, #F5A623); background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.18); }
.tag-neutral { color: var(--muted); background: transparent; border-color: var(--border); }

/* Callout blocks */
.callout {
  background: rgba(0,201,167,0.06); border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 16px 20px;
  font-size: 0.9375rem; color: var(--mid); line-height: 1.72; margin: 24px 0;
}
.callout-amber { background: rgba(245,166,35,0.06); border-left-color: var(--amber, #F5A623); }
.callout-warning { background: rgba(224,64,64,0.06); border-left-color: #E04040; }
[data-theme="light"] .callout { background: rgba(0,201,167,0.05); }

/* Card hover effect */
.card-hover {
  transition: transform 0.25s ease, border-color 0.2s, box-shadow 0.2s;
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(0,201,167,0.22) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}

/* Data rows */
.data-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.9375rem;
}
.data-row:last-child { border-bottom: none; }
.data-lbl { color: var(--muted); font-size: 0.875rem; }
.data-val { color: var(--text); font-weight: 600; }
.data-val.teal { color: var(--teal); }
.data-val.amber { color: var(--amber, #F5A623); }

/* Improved related reading cards */
.related-card-v2 {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px 22px; display: block;
  transition: border-color .18s, background .18s, transform .22s;
}
.related-card-v2:hover {
  border-color: rgba(0,201,167,0.25); background: var(--ink); transform: translateY(-2px);
}
.related-card-v2 .type { font-family: var(--mono,'DM Mono',monospace); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 6px; }
.related-card-v2 .title { font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.related-card-v2 .body { font-size: 0.8rem; color: var(--mid); line-height: 1.6; }
[data-theme="light"] .related-card-v2 { background: rgba(255,255,255,0.7); }
[data-theme="light"] .related-card-v2:hover { background: rgba(255,255,255,0.9); }

/* Monospace eyebrow (matches homepage) */
.s-eye, .t-eye {
  font-family: var(--mono,'DM Mono',monospace); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--teal); margin-bottom: 14px;
}

/* Serif italic accent */
.it {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-style: italic; font-weight: 300; color: var(--teal);
}

/* ─── RELATED READING GRID ────────────────────────────────────────────── */
/* auto-fit handles 3 or 4 cards in one row without wrapping.
   155px min fits 4 cards inside med pages (680px main-inner).
   Falls to 2-col below 640px, 1-col below 420px. */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
@media (max-width: 420px) { .related-grid { grid-template-columns: 1fr; } }

/* ─── LIGHT MODE COMPREHENSIVE OVERRIDES ──────────────────────────────── */

/* Article hero — replace dark gradient with subtle warm tint */
[data-theme="light"] .art-hero::before {
  background:
    radial-gradient(ellipse 70% 80% at 12% 60%, rgba(0,150,140,0.06) 0%, transparent 58%),
    radial-gradient(ellipse 50% 60% at 88% 20%, rgba(80,60,180,0.04) 0%, transparent 55%);
}

/* Meta band — was dark glass, now warm neutral */
[data-theme="light"] .meta-band {
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .meta-label { color: var(--muted); }
[data-theme="light"] .meta-val   { color: var(--mid);   }
[data-theme="light"] .meta-sep   { background: var(--border); }

/* Rail on medication pages */
[data-theme="light"] .rail {
  background: var(--bg);
  border-right-color: var(--border);
}
[data-theme="light"] .rf-val  { color: var(--mid); }
[data-theme="light"] .rf-label{ color: var(--muted); }
[data-theme="light"] .ri-name { color: var(--text); }

/* Week/track cards */
[data-theme="light"] .week-card,
[data-theme="light"] .track-card {
  background: #FFFFFF;
  border-color: var(--border);
}

/* Art CTA section */
[data-theme="light"] .art-cta {
  background: #FFFFFF;
  border-color: var(--border);
}
[data-theme="light"] .art-cta::before {
  background: radial-gradient(ellipse, rgba(0,150,140,0.06) 0%, transparent 60%);
}

/* Comparison tables */
[data-theme="light"] .comp-table th { color: var(--muted); }
[data-theme="light"] .comp-table td { color: var(--mid); border-color: var(--border); }
[data-theme="light"] .comp-table { background: #FFFFFF; border-radius: 12px; }

/* Navigation */
[data-theme="light"] .sticky-nav {
  background: var(--nav-scrolled);
}
[data-theme="light"] .nav-logo  { color: var(--text); }
[data-theme="light"] .nav-links a { color: var(--mid); }
[data-theme="light"] .nav-links a:hover { color: var(--text); }

/* Callout blocks */
[data-theme="light"] .callout {
  background: rgba(0,150,140,0.05);
  border-left-color: var(--teal);
}
[data-theme="light"] .callout-amber { background: rgba(180,120,0,0.05); }

/* Hero overlays on article pages — remove dark gradient that shows in light */
[data-theme="light"] .art-hero::after {
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* Mobile facts strip */
[data-theme="light"] .mobile-facts {
  background: var(--surface);
  border-color: var(--border);
}
[data-theme="light"] .mf-label { color: var(--muted); }
[data-theme="light"] .mf-val   { color: var(--text);  }
[data-theme="light"] .mf-val.hi{ color: var(--teal);  }

/* Page hero area */
[data-theme="light"] .page-hero { background: transparent; }
[data-theme="light"] .page-lead { color: var(--mid); }
[data-theme="light"] .also-known{ color: var(--muted); }

/* Mob menu */
[data-theme="light"] .mob-menu { background: var(--nav-scrolled); }

/* Related card borders in light */
[data-theme="light"] .related-card-v2 {
  background: #FFFFFF;
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .related-card-v2:hover {
  background: #F8F7F3;
  border-color: rgba(0,150,140,0.3);
}
[data-theme="light"] .related-card-v2 .type  { color: var(--teal); }
[data-theme="light"] .related-card-v2 .title { color: var(--text); }
[data-theme="light"] .related-card-v2 .arrow { color: var(--teal); }

/* FAQ accordion */
[data-theme="light"] .faq-item  { border-color: var(--border); }
[data-theme="light"] .faq-q     { color: var(--text); }
[data-theme="light"] .faq-a-body{ color: var(--mid);  }

/* Layout wrap for med pages */
[data-theme="light"] .layout-wrap { background: var(--bg); }
[data-theme="light"] .main-col    { background: var(--bg); }

/* Progress bar */
[data-theme="light"] .rail-progress-fill { background: var(--teal); }

/* ─── BOTTOM SECTION BREATHING ROOM ───────────────────────────────────── */
.art-related {
  margin-top: 56px;
  padding-top: 36px;
}
.art-disclaimer {
  margin-top: 40px;
  padding-top: 28px;
  padding-bottom: 20px;
}
/* Ensure art-wrap has enough bottom padding */
.art-wrap {
  padding-bottom: 80px;
}
/* Footer top separation */
footer {
  margin-top: 0;
}
/* CTA section on article pages */
.art-cta {
  margin-top: 72px;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════
   PAGE CTA — unified "Track with ADHDose" call-to-action block.
   Replaces all inline .art-cta and .med-cta definitions.
   Use class="page-cta" on any page.
══════════════════════════════════════════════════════════════════ */
.page-cta {
  margin-top: 64px;
  padding: 48px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px; height: 280px;
  background: radial-gradient(ellipse, rgba(0,201,167,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-cta h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text);
  position: relative;
  z-index: 2;
  border: none;
  padding-top: 0;
}
.page-cta p {
  font-size: 0.9375rem;
  color: var(--mid);
  max-width: 400px;
  margin: 0 auto 22px;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}
.page-cta .cta-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  opacity: 0.55;
  position: relative;
  z-index: 2;
}
[data-theme="light"] .page-cta {
  background: #FFFFFF;
  border-color: var(--border);
}
[data-theme="light"] .page-cta::before {
  background: radial-gradient(ellipse, rgba(0,150,140,0.05) 0%, transparent 60%);
}
@media (max-width: 600px) {
  .page-cta { padding: 28px 20px; }
}

/* ── ARTICLE BODY STRONG TEXT ─────────────────────────────────────
   .art-body p uses --mid for body text. <strong> should step up
   to --text so bolded phrases are visually distinct.
─────────────────────────────────────────────────────────────────── */
.art-body strong,
.art-body b {
  color: var(--text);
  font-weight: 700;
}

/* ── RELATED GRID — auto-fit, handles 3 or 4 cards in one row ────


/* ── TIP LIST ─────────────────────────────────────────────────────
   Numbered action/tip groups. Replaces bold-opener paragraphs
   where items are parallel and self-contained.
   Usage: <ol class="tip-list"> with .tip-num / .tip-title / .tip-body
─────────────────────────────────────────────────────────────────── */
.tip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
}
.tip-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
}
.tip-num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--teal);
  padding-top: 3px;
  transition: color 0.28s;
}
.tip-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.28s;
}
.tip-body {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.85;
  transition: color 0.28s;
}

/* ═══════════════════════════════════════════════════════
   GLOBAL RESPONSIVE — cross-page fixes
   Covers: site-footer-grid, nav toggles, content pages
═══════════════════════════════════════════════════════ */

/* Site footer grid — used on every page */
.site-footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 960px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
  /* Brand column spans full width on tablet */
  .site-footer-grid > *:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  /* Footer outer padding */
  footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Content pages: nav hamburger at narrow widths ─────── */
/* shared.css already handles 960px; add tighter override */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* Article hero title scaling ─────────────────────────── */
@media (max-width: 600px) {
  .art-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.05;
  }
  h2.s-head {
    font-size: clamp(1.7rem, 6.5vw, 2.4rem);
  }
  /* Hub page headings */
  .hub-h1 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }
  /* Med page hero */
  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }
  /* Body text padding on article pages */
  .art-hero-inner,
  .art-wrap,
  .meta-inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  /* Tighten hero top spacing */
  .art-hero {
    padding-top: 60px;
  }
  .art-hero-inner {
    padding-top: 36px !important;
  }
}

/* Progress bar section on article pages ─────────────── */
@media (max-width: 520px) {
  .art-section,
  .faq-block-head,
  .faq-list-wrap {
    grid-template-columns: 1fr;
  }
  .faq-block-num { display: none; }
}

/* ═══════════════════════════════════════════════════════
   ACCESSIBILITY — FOCUS, MOTION, KEYBOARD
═══════════════════════════════════════════════════════ */

/* ── FOCUS VISIBLE ─────────────────────────────────── */
/* Global keyboard focus ring — covers all interactive elements */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
/* Slightly more offset for pill CTAs */
.nav-cta:focus-visible,
.dl-btn:focus-visible { outline-offset: 4px; }

/* Footer links: override the inline style="color:var(--mid)" set by
   onmouseover/onmouseout handlers. !important beats inline style on
   :focus-visible, giving keyboard users a visible teal highlight
   without touching any HTML file. */
footer a:focus-visible {
  color: var(--teal) !important;
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── LIGHT MODE TEXT FIXES ──────────────────────────── */
/* breadcrumb "current page" label — hardcoded near-white in article inline styles */
[data-theme="light"] .art-path .cur { color: var(--muted); }

/* ── REDUCED MOTION ────────────────────────────────── */
@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;
  }
  /* Scroll-reveal elements: show immediately, no transform */
  .rev, .rev-l, .rev-r {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Marquee: pause */
  .marquee-track { animation-play-state: paused !important; }
}

/* ─── CONTENT PAGE MOBILE FIXES ───────────────────────── */

/* Medication list pages — main content block (.art-main).
   The UK/US med list pages use <main class="art-main" style="padding:0 48px 96px">.
   On narrow screens the inline padding would leave almost no reading width,
   so we override left/right padding here.
   Note: .breadcrumb and .page-cta already have mobile padding rules above. */
@media (max-width: 640px) {
  .art-main {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ─── BLOG HUB (learn.html) ─────────────────────────────
   Searchable, filterable, animated index of every article.
   Articles are sourced from /articles.json (built by build_articles_manifest.py).
   Motion is provided by Motion One; CSS keeps the grid usable without JS.
*/

.bh-hero {
  padding: 84px 0 32px;
  position: relative;
  overflow: hidden;
}
.bh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 12% 60%, rgba(0,201,167,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 88% 20%, rgba(102,66,212,0.05) 0%, transparent 55%);
  pointer-events: none;
}
.bh-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 44px;
}
.bh-eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bh-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--teal);
}
.bh-h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 0.98;
  color: var(--text);
  margin-bottom: 16px;
}
.bh-h1 .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--teal);
}
.bh-lead {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 540px;
}

/* Sticky control bar */
.bh-controls {
  position: sticky;
  top: 60px;
  z-index: 50;
  padding: 16px 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.bh-controls.bh-stuck {
  background: var(--nav-scrolled);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.bh-controls-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bh-search {
  position: relative;
  width: 100%;
}
.bh-search-input {
  width: 100%;
  font-family: var(--display);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px 13px 44px;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.bh-search-input::placeholder { color: var(--muted); }
.bh-search-input:focus {
  border-color: rgba(0,201,167,0.32);
  background: var(--ink);
}
.bh-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.bh-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s, color 0.18s;
}
.bh-search-clear.bh-show { opacity: 1; }
.bh-search-clear:hover { color: var(--text); }

.bh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bh-filters::-webkit-scrollbar { display: none; }
.bh-chip {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mid);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.bh-chip:hover {
  color: var(--text);
  border-color: rgba(0,201,167,0.22);
}
.bh-chip[aria-pressed="true"] {
  color: #07080D;
  background: var(--teal);
  border-color: var(--teal);
}
[data-theme="light"] .bh-chip[aria-pressed="true"] { color: #FFFFFF; }
.bh-chip-count {
  margin-left: 6px;
  opacity: 0.5;
  font-size: 0.92em;
}

.bh-meta {
  max-width: 1100px;
  margin: 18px auto 24px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Article grid */
.bh-grid-wrap { padding: 0 0 80px; }
.bh-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .bh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bh-grid { grid-template-columns: 1fr; } }

.bh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.18s;
  will-change: transform, opacity;
}
.bh-card:hover {
  border-color: rgba(0,201,167,0.24);
  background: var(--ink);
}
[data-theme="light"] .bh-card:hover { background: rgba(255,255,255,0.7); }

.bh-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.bh-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bh-card-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.65;
}
.bh-card-tag.bh-us { color: var(--amber); }
.bh-card-tag.bh-us::before { background: var(--amber); }
.bh-card-date {
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.bh-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.32;
  margin: 0;
}
.bh-card-desc {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bh-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.bh-card-read {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.bh-card-arrow {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--teal);
  letter-spacing: 0.06em;
  transition: transform 0.22s var(--ease);
}
.bh-card:hover .bh-card-arrow { transform: translateX(3px); }

/* Empty state */
.bh-empty {
  max-width: 580px;
  margin: 32px auto;
  padding: 36px 32px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.bh-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.bh-empty-body {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.6;
}
.bh-empty-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .bh-hero-inner,
  .bh-controls-inner,
  .bh-meta,
  .bh-grid { padding-left: 20px; padding-right: 20px; }
  .bh-hero { padding: 68px 0 24px; }
  .bh-controls { padding: 12px 0; }
  .bh-meta { margin: 12px auto 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
}
