/* ============================================================
   HappyGutFuel — components not in style.css
   Loaded AFTER style.css on every page.

   Uses the real tokens from style.css (--accent, --bg-card,
   --text-muted, --border, --radius-*, --shadow-*) with no literal
   fallbacks, so dark mode is inherited rather than re-specified.
   ============================================================ */

/* ── UTILITIES ────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -64px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

:is(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── MOBILE NAV ───────────────────────────────────────────────
   style.css hides .nav-links at 900px with no way to reopen it.
   The toggle appears at the same breakpoint so there is never a
   width with no navigation at all.
   ─────────────────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  order: 3;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-actions { order: 2; }

  .primary-nav { display: none; flex-basis: 100%; order: 4; }
  .primary-nav.is-open { display: block; }

  /* Beats `.nav-links { display: none }` in style.css */
  .primary-nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 0 4px;
  }
  .primary-nav.is-open .nav-links a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav.is-open .nav-links li:last-child a { border-bottom: none; }
}

/* ── BREADCRUMB ───────────────────────────────────────────── */

.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ── HERO ─────────────────────────────────────────────────── */

.site-hero-inner { max-width: 760px; }

.site-hero-lede {
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-accent);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.text-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

.site-hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 32px;
  list-style: none;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.site-hero-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.site-hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── PICKS ────────────────────────────────────────────────── */

.section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

.section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 62ch;
  margin: -8px 0 28px;
}

/* Replace with <img> once you have product photography. Amazon's terms
   don't permit hotlinking their listing images. */

.affiliate-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.affiliate-note strong { color: var(--text); }
.affiliate-note a { color: var(--accent); }

.price-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ── EMPTY STATE ──────────────────────────────────────────── */

/* ── RELATED POSTS ────────────────────────────────────────── */

.related-posts {
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 32px 20px 0;
  border-top: 1px solid var(--border);
}
.related-posts h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.related-posts ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  list-style: none;
  margin-bottom: 18px;
}
.related-posts li a {
  display: block;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.related-posts li a:hover { border-color: var(--accent); color: var(--accent); }
.related-shop { font-size: 0.88rem; color: var(--text-muted); }
.related-shop a { color: var(--accent); font-weight: 600; }

/* ── STATIC PAGES (about, contact, privacy, disclosure) ───── */

.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 32px 20px 40px;
}
.page-hero-inner { max-width: 760px; margin: 0 auto; }

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 14px;
}
.page-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 56ch;
}

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}
.page-body h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 36px 0 12px;
  color: var(--text);
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.page-body p { margin-bottom: 16px; color: var(--text-muted); }
.page-body a { color: var(--accent); font-weight: 500; }
.page-body a:hover { text-decoration: underline; }
.page-body code {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.86em;
}

.page-list { list-style: none; margin-bottom: 20px; }
.page-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--text-muted);
}
.page-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-address {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  padding: 22px 24px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  word-break: break-word;
}
.contact-address a { color: var(--accent); }

/* ── SHOP PAGE ────────────────────────────────────────────── */

.shop-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}
.shop-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.shop-group-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 8px 0 20px;
  color: var(--text);
}
.shop-empty-group {
  padding: 24px;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.shop-empty-group .shop-group-title { margin-top: 0; margin-bottom: 10px; font-size: 1.1rem; }
.shop-empty-group p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }
.shop-empty-group a { color: var(--accent); font-weight: 600; }

/* ── SIGNUP SECTION ───────────────────────────────────────── */

.signup-section {
  background: var(--accent-light);
  border-top: 1px solid var(--border);
  padding: 60px 20px;
}
.signup-inner { max-width: 520px; margin: 0 auto; text-align: center; }

.signup-section h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.signup-lede {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
}

.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.signup-form input[type="email"]:focus { border-color: var(--accent); }
.signup-form button {
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.signup-form button:hover { background: var(--accent-hover); }

.form-status {
  flex: 1 0 100%;
  min-height: 1.2em;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}
.form-status[data-state="error"] { color: var(--con); }

.signup-footnote {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-faint);
}

/* ── GUT CHECK ────────────────────────────────────────────── */

.quiz-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 72px;
}

.quiz-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 5vw, 40px);
}
.quiz-panel[hidden] { display: none; }

.quiz-panel h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  color: var(--text);
}
.quiz-lede { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.quiz-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 24px;
}
.quiz-note a { color: var(--accent); }

.quiz-progress { margin-bottom: 26px; }
.quiz-progress-bar {
  height: 5px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.quiz-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.quiz-progress-text { font-size: 0.78rem; color: var(--text-faint); font-weight: 600; }

.quiz-step { border: 0; }
.quiz-step[hidden] { display: none; }
.quiz-step legend {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 20px;
}

.quiz-options { list-style: none; display: grid; gap: 10px; }
.quiz-options button {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.45;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-options button:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.quiz-back {
  margin-top: 22px;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.quiz-back:hover { color: var(--accent); border-color: var(--accent); }
.quiz-back[hidden] { display: none; }

.quiz-result-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  margin-bottom: 8px;
}
.quiz-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}
.quiz-result-summary { color: var(--text-muted); line-height: 1.7; margin-bottom: 26px; }

.quiz-actions-box {
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}
.quiz-actions-box h3 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.quiz-actions-box ol { padding-left: 20px; display: grid; gap: 10px; }
.quiz-actions-box li { color: var(--text); font-size: 0.94rem; line-height: 1.6; }

.quiz-links { margin-bottom: 28px; font-size: 0.92rem; }
.quiz-links p { margin-bottom: 8px; color: var(--text-muted); }
.quiz-links strong { color: var(--text); }
.quiz-links a { color: var(--accent); font-weight: 600; }
.quiz-links a:hover { text-decoration: underline; }

.quiz-capture {
  padding: 26px 24px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
}
.quiz-capture h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.quiz-capture > p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.quiz-capture .signup-form { margin-bottom: 14px; }
.quiz-capture .quiz-note { margin-bottom: 0; }

/* ── 404 ──────────────────────────────────────────────────── */

.error-page { max-width: 560px; margin: 0 auto; padding: 80px 20px 88px; text-align: center; }
.error-code {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
.error-page h1 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: var(--text);
}
.error-page p { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.error-links a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.error-links a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ── FOOTER ───────────────────────────────────────────────── */

.footer-brand { max-width: 240px; }
.footer-brand .logo { font-size: 1.15rem; display: inline-block; margin-bottom: 8px; }
.footer-brand p { font-size: 0.82rem; line-height: 1.6; color: var(--text-muted); }

.footer-links { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.footer-links div { display: flex; flex-direction: column; gap: 7px; }
.footer-links h2 {
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.footer-links a { font-size: 0.84rem; }

.footer-disclaimer {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  line-height: 1.65;
  color: var(--text-faint);
}

.footer-bottom {
  max-width: 1100px;
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero-actions .btn-primary { width: 100%; text-align: center; }
  .signup-form { flex-direction: column; }
  .signup-form input[type="email"],
  .signup-form button { width: 100%; }
  .related-posts ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── OWN PRODUCT: HAPPYGUTFUEL DAILY ──────────────────────────
   Visually distinct from the affiliate picks on purpose. The picks
   are cards in a grid; this is a single banded section, so a reader
   can tell at a glance that it is a different kind of thing and not
   another product we are sending them away to buy.
   ─────────────────────────────────────────────────────────── */

.daily-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px;
}

.daily-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.daily-status {
  display: inline-block;
  padding: 5px 13px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.daily-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--text);
  margin-bottom: 14px;
}

.daily-lede {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: 20px;
}

.daily-points { list-style: none; margin-bottom: 22px; }
.daily-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}
.daily-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.daily-honest {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 54ch;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.daily-honest a { color: var(--accent); font-weight: 600; }

.daily-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  text-align: center;
}

/* Typographic placeholder, not a mocked-up product shot. Replace with
   a real photograph once the product exists — a fake render of an
   unreleased product is the kind of thing that costs trust. */
.daily-pack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 128px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 22px;
  padding: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-accent);
}
.daily-pack span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.08em;
}
.daily-pack strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.daily-pack small { font-size: 0.6rem; letter-spacing: 0.22em; opacity: 0.85; }

.daily-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.daily-card > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.daily-card .signup-form { text-align: left; }

.daily-footnote {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
}

@media (max-width: 860px) {
  .daily-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ── GUIDES LIST ──────────────────────────────────────────────
   A list, not a card grid. Five articles don't need five filter
   pills and a featured hero card — that was interface for its own
   sake and it was the longest thing on the homepage. Switch back
   to .post-grid when the library is big enough to need browsing.
   ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
}


/* ═══════════════════════════════════════════════════════════════
   MONEY PAGES  (probiotics / fibre / bloating / after-antibiotics)
   ═══════════════════════════════════════════════════════════════ */

.money-hero {
  border-bottom: 1px solid var(--border);
  padding: 32px 20px 36px;
}
.money-hero-inner { max-width: 760px; margin: 0 auto; }

.money-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 12px;
}
.money-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 24px;
}

/* Above-the-fold commercial element. The first thing a visitor can act on. */
.top-pick {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 20px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  transition: transform 0.15s, box-shadow 0.15s;
}
.top-pick:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.top-pick-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.top-pick-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.3;
}
.top-pick-go { font-size: 0.85rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

.money-body { max-width: 820px; margin: 0 auto; padding: 32px 20px 8px; }

/* Example-listing flag. Delete the span in the HTML when the product is real. */
.example-flag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 11px;
  background: #fff8e1;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
}
[data-theme="dark"] .example-flag { background: #2a1f00; border-color: #b45309; color: #fbbf24; }

.product-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 3px;
}

/* Medical redirect note — deliberately not styled as a scary warning */
.med-note {
  padding: 16px 20px;
  margin-bottom: 28px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.med-note strong { color: var(--text); display: block; margin-bottom: 2px; }

.helper { margin: 8px 0 32px; }
.helper h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
  color: var(--text);
}
.helper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.helper-item h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.helper-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.next-up { margin: 28px 0 8px; padding-top: 24px; border-top: 1px solid var(--border); }
.next-up h2 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.next-up ul { list-style: none; display: grid; gap: 10px; }
.next-up a {
  display: block;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}
.next-up a:hover { border-color: var(--accent); color: var(--accent); }


/* ── MOBILE BUY BAR ───────────────────────────────────────────
   Appears once the first product has scrolled past. Desktop keeps
   the buy button in view already, so it stays hidden there.
   ─────────────────────────────────────────────────────────── */

.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.22s ease;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.buy-bar.is-visible { transform: translateY(0); }
.buy-bar[hidden] { display: none; }

.buy-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.buy-bar-name {
  flex: 1;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.buy-bar-btn {
  flex: 0 0 auto;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.buy-bar-btn:hover { background: var(--accent-hover); }

@media (min-width: 821px) { .buy-bar { display: none !important; } }


/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — four routes, nothing to read
   ═══════════════════════════════════════════════════════════════ */

.routes-section { max-width: 1100px; margin: 0 auto; padding: 44px 20px 16px; }

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.route-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.route-q {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-faint);
}
.route-h {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
}
.route-p {
  font-size: 0.89rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 6px;
}
.route-go { font-size: 0.82rem; font-weight: 700; color: var(--accent); }

.articles-section { max-width: 1100px; margin: 0 auto; padding: 44px 20px 64px; }
.article-list { list-style: none; border-top: 1px solid var(--border); }
.article-list li { border-bottom: 1px solid var(--border); }
.article-list a {
  display: block;
  padding: 16px 4px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s, padding 0.15s;
}
.article-list a:hover { color: var(--accent); padding-left: 10px; }


/* ── SHOP GROUPS ──────────────────────────────────────────── */

.shop-group { margin-bottom: 16px; }
.group-note {
  margin: -8px 0 20px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-muted);
}


@media (max-width: 600px) {
  .top-pick { grid-template-columns: 1fr; gap: 6px; }
  .top-pick-label { justify-self: start; }
  .helper-grid { grid-template-columns: 1fr; }
}


/* ── ARTICLE ROUTE-OUT ────────────────────────────────────────
   Supporting articles can't be monetised honestly (fermented food
   is bought in a supermarket; gut-brain evidence is too thin to
   recommend a product on). So they say so, and route to a page
   that can.
   ─────────────────────────────────────────────────────────── */

.route-out {
  padding: 24px;
  margin: 32px 0;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
}
.route-out p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.route-out-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.route-out-btn:hover { background: var(--accent-hover); }
