﻿/* Navaro core design system.
   Elegant, high-end: neutral black/white graphite grounds with role-based accents.
   Blue handles interaction/info, red handles urgent warnings, green is reserved for verified/positive certainty. */

:root {
  --bg: #090909;
  --bg-deep: #030303;
  --surface: #121212;
  --surface-2: #1b1b1b;
  --surface-3: #242424;
  --ink: #f7f5ef;
  --ink-soft: #d5d1c8;
  --muted: #96938d;
  --border: #2a2a2a;
  --border-strong: #3d3d3d;

  --accent: #5f8fdc;
  --accent-bright: #9bbcff;
  --accent-deep: #20365a;
  --accent-soft: #111827;
  --gold: #d8d2c4;

  --verified: #4aa06e;
  --verified-soft: rgba(74, 160, 110, 0.09);
  --trial: #8fb8ff;
  --trial-soft: #121a28;
  --warning: #f08d8d;
  --warning-soft: #251314;
  --danger: #ff6f7d;
  --danger-soft: #2a1115;
  --unverified: #aaa6a0;
  --unverified-soft: #1b1b1b;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1180px;
}

/* Single dark theme. A lighter mode is offered but the brand lives in the dark. */
:root[data-theme="light"] {
  --bg: #f5f5f3;
  --bg-deep: #ececea;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #eeeeec;
  --ink: #101010;
  --ink-soft: #3c3c3a;
  --muted: #6b6862;
  --border: #ddddda;
  --border-strong: #bdbdb8;
  --accent: #2f5f9f;
  --accent-bright: #1f4f90;
  --accent-deep: #17365f;
  --accent-soft: #e8effa;
  --gold: #625f58;
  --verified: #2d7650;
  --verified-soft: rgba(45, 118, 80, 0.08);
  --trial: #235a9f;
  --trial-soft: #e8f0fb;
  --warning: #a7333d;
  --warning-soft: #f9e8ea;
  --danger: #9f1d2f;
  --danger-soft: #f8e4e7;
  --unverified: #5f5d58;
  --unverified-soft: #eeeeec;
  --shadow: 0 1px 3px rgba(16, 16, 16, 0.08), 0 1px 20px rgba(16, 16, 16, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155, 188, 255, 0.07), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 19px;
  letter-spacing: 0.005em;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--gold); text-decoration: none; }
code, .mono { font-family: var(--font-mono); font-size: 0.82em; letter-spacing: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-weight: 900; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(9, 9, 9, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .site-header { background: rgba(245, 245, 243, 0.88); }
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; gap: 18px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7f5ef, #a7a5a0 45%, #1a1a1a 100%);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #050505; font-family: var(--font-display); font-weight: 900; font-size: 0.9rem;
  box-shadow: 0 0 24px rgba(155, 188, 255, 0.18);
}
.brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; font-style: italic; }
.main-nav { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft); font-family: var(--font-body); font-size: 1.02rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius); letter-spacing: 0.02em;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a.active { color: var(--accent-bright); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; width: 100%; order: 3; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
}

/* Disclaimer banner */
.disclaimer-banner {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.disclaimer-banner .container { padding: 9px 24px; display: flex; gap: 8px; align-items: center; }
.disclaimer-banner strong { color: var(--ink-soft); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius); font-family: var(--font-body);
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.03em;
  border: 1px solid transparent; cursor: pointer;
  background: var(--accent); color: var(--bg-deep);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--accent-bright); color: var(--bg-deep); box-shadow: 0 0 30px rgba(155, 188, 255, 0.22); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); box-shadow: none; }
.btn.block { width: 100%; }

/* Sections */
.section { padding: 76px 0; }
.section.tight { padding: 44px 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.7rem; font-weight: 600;
  color: var(--accent-bright); font-family: var(--font-body);
}
.lede { color: var(--ink-soft); font-size: 1.22rem; max-width: 60ch; line-height: 1.55; }
.muted { color: var(--muted); }

/* Tool tiles */
.tool-tile { display: flex; flex-direction: column; gap: 12px; height: 100%; position: relative; overflow: hidden; }
.tool-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  border: 1px solid transparent; pointer-events: none; transition: border-color 0.2s ease;
}
.tool-tile:hover::after { border-color: var(--accent); }
.tool-tile .icon { font-size: 1.7rem; opacity: 0.9; }
.tool-tile h3 { margin: 0; font-size: 1.3rem; }
.tool-tile p { margin: 0; color: var(--muted); font-size: 1rem; flex: 1; line-height: 1.5; }
.tool-tile .go { font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--accent-bright); letter-spacing: 0.03em; }

/* Badges (evidence strength) */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  white-space: nowrap; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent;
}
.badge.verified { background: var(--verified-soft); color: var(--verified); border-color: rgba(74, 160, 110, 0.28); }
.badge.trial { background: var(--trial-soft); color: var(--trial); border-color: rgba(143, 184, 255, 0.28); }
.badge.warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(240, 141, 141, 0.28); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 111, 125, 0.28); }
.badge.unverified { background: var(--unverified-soft); color: var(--unverified); border-color: var(--border-strong); }

/* Forms */
label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink-soft); letter-spacing: 0.02em; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--bg-deep); color: var(--ink);
  font-size: 1rem; font-family: var(--font-body);
}
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hint { font-size: 0.86rem; color: var(--muted); margin-top: 5px; font-style: italic; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.table-wrap table { margin: 0; }

/* Alerts */
.alert {
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: 0.98rem; line-height: 1.5;
}
.alert.warn { background: var(--warning-soft); border-color: rgba(240, 141, 141, 0.24); color: var(--warning); }
.alert.danger { background: var(--danger-soft); border-color: rgba(255, 111, 125, 0.26); color: var(--danger); }
.alert.info { background: var(--accent-soft); border-color: rgba(155, 188, 255, 0.22); color: var(--accent-bright); }

/* Result panel (calculators) */
.result-panel {
  background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 24px;
}
.result-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
.result-stat:last-child { border-bottom: none; }
.result-stat .value { font-family: var(--font-mono); font-weight: 400; color: var(--accent-bright); font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-deep); margin-top: 80px; }
.site-footer .container { padding: 52px 24px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--ink-soft); font-size: 1rem; }
.site-footer a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 22px 24px; font-size: 0.86rem; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; max-width: var(--container); margin: 0 auto;
}

/* Hero */
.hero { padding: 96px 0 56px; }
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin: 20px 0 22px; max-width: 16ch; line-height: 1.04; }
.hero .lede { font-size: 1.32rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--border); }
.stat-strip .stat b { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat-strip .stat span { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.03em; margin-top: 6px; display: block; }

/* Search / filters (codex) */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--border-strong); background: transparent; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 999px; font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 500; cursor: pointer; letter-spacing: 0.02em; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.compound-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 17px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 9px; transition: border-color 0.15s ease, background 0.15s ease;
}
.compound-row:hover { border-color: var(--accent); background: var(--surface-2); }
.compound-row .name { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; }
.compound-row .cat { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* Utility */
.flex { display: flex; gap: 12px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Cloudflare visual repair pass.
   Adds a stronger editorial interface layer so pages never read as plain text,
   while keeping green reserved for verified/positive states. */
:root {
  --bg: #080807;
  --bg-deep: #020202;
  --surface: #141312;
  --surface-2: #1e1d1b;
  --surface-3: #2a2825;
  --ink: #faf7ef;
  --ink-soft: #ddd7ca;
  --muted: #a8a096;
  --border: rgba(250, 247, 239, 0.12);
  --border-strong: rgba(250, 247, 239, 0.22);
  --accent: #6f9fe8;
  --accent-bright: #b8d1ff;
  --accent-deep: #1c3150;
  --accent-soft: rgba(111, 159, 232, 0.13);
  --gold: #d7c9aa;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
  --bg: #efede8;
  --bg-deep: #e2ded6;
  --surface: #fffdfa;
  --surface-2: #f6f2ea;
  --surface-3: #ece5da;
  --ink: #151411;
  --ink-soft: #3f3930;
  --muted: #716a60;
  --border: rgba(35, 31, 26, 0.12);
  --border-strong: rgba(35, 31, 26, 0.24);
  --accent: #275b94;
  --accent-bright: #164a82;
  --accent-deep: #12345c;
  --accent-soft: rgba(39, 91, 148, 0.12);
  --gold: #74654c;
  --shadow: 0 18px 45px rgba(61, 50, 34, 0.13);
}

html { background: var(--bg-deep); }
body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(111, 159, 232, 0.09), transparent 34%),
    linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 340px, var(--bg) 100%);
  color: var(--ink);
  letter-spacing: 0;
}

:root[data-theme="light"] body {
  background:
    linear-gradient(120deg, rgba(39, 91, 148, 0.12), transparent 34%),
    linear-gradient(180deg, #e4ded2 0, var(--bg) 340px, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 247, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 247, 239, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(35, 31, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 26, 0.035) 1px, transparent 1px);
}

h1, h2, h3, h4 { letter-spacing: 0; }
h1 { font-size: 4.25rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.38rem; }
h4 { font-size: 1.08rem; }

.site-header {
  background: rgba(8, 8, 7, 0.91);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
:root[data-theme="light"] .site-header { background: rgba(239, 237, 232, 0.92); }
.site-header .bar { padding-top: 14px; padding-bottom: 14px; }
.main-nav a { border: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active {
  background: var(--surface-2);
  border-color: var(--border);
}

.disclaimer-banner {
  background: linear-gradient(90deg, var(--bg-deep), var(--surface));
  border-bottom-color: rgba(255, 111, 125, 0.32);
}

.hero {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  position: relative;
  padding-top: 22px;
  padding-bottom: 28px;
}

.hero .container::before {
  content: "";
  position: absolute;
  inset: 0 24px;
  z-index: -1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(250, 247, 239, 0.08), rgba(250, 247, 239, 0.02)),
    linear-gradient(90deg, rgba(111, 159, 232, 0.12), transparent 58%);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .hero .container::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.36)),
    linear-gradient(90deg, rgba(39, 91, 148, 0.13), transparent 58%);
}

.hero h1 {
  max-width: 18ch;
  margin: 20px 0;
  font-size: 4.25rem;
  line-height: 1.02;
}

.hero .lede { max-width: 62ch; color: var(--ink-soft); }
.hero-actions .btn { min-height: 50px; }
.stat-strip {
  gap: 16px;
  border-top: 0;
  padding-top: 12px;
}
.stat-strip .stat {
  min-width: 170px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(250, 247, 239, 0.045);
}
:root[data-theme="light"] .stat-strip .stat { background: rgba(255, 255, 255, 0.55); }

.section {
  position: relative;
  padding: 70px 0;
  border-bottom: 1px solid rgba(250, 247, 239, 0.06);
}
:root[data-theme="light"] .section { border-bottom-color: rgba(35, 31, 26, 0.08); }
.section.tight { padding: 44px 0 62px; }

.section.tight > .container {
  padding-top: 28px;
  padding-bottom: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(250, 247, 239, 0.04), rgba(250, 247, 239, 0.015));
}
:root[data-theme="light"] .section.tight > .container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
}

.section h1,
.section h2 {
  margin-top: 10px;
  text-wrap: balance;
}

.lede {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.card,
.compound-row,
.table-wrap,
.result-panel,
.alert {
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 247, 239, 0.055), rgba(250, 247, 239, 0.02)),
    var(--surface);
}

:root[data-theme="light"] .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

.card::before,
.tool-tile::before,
.myth::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.9;
}

.card:hover,
.compound-row:hover {
  transform: translateY(-1px);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.card-grid { gap: 18px; }
.compound-row {
  background:
    linear-gradient(90deg, rgba(111, 159, 232, 0.08), transparent 45%),
    var(--surface);
}
:root[data-theme="light"] .compound-row {
  background:
    linear-gradient(90deg, rgba(39, 91, 148, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.78);
}

.table-wrap {
  background: var(--surface);
  border-color: var(--border-strong);
}
th {
  background: var(--surface-2);
  color: var(--ink-soft);
}
tbody tr:nth-child(even) td { background: rgba(250, 247, 239, 0.025); }
:root[data-theme="light"] tbody tr:nth-child(even) td { background: rgba(39, 91, 148, 0.035); }
td { vertical-align: top; }

.alert {
  border-left-width: 4px;
  background: var(--surface-2);
}
.alert.info { color: var(--ink-soft); }
.alert.info strong { color: var(--accent-bright); }
.alert.danger strong { color: var(--danger); }
.alert.warn strong { color: var(--warning); }

.badge.verified { box-shadow: 0 0 0 1px rgba(74, 160, 110, 0.1) inset; }
.badge.trial { box-shadow: 0 0 0 1px rgba(143, 184, 255, 0.12) inset; }
.badge.danger, .badge.warning { box-shadow: 0 0 0 1px rgba(255, 111, 125, 0.12) inset; }

.chip {
  background: rgba(250, 247, 239, 0.035);
  box-shadow: 0 1px 0 rgba(250, 247, 239, 0.03) inset;
}
:root[data-theme="light"] .chip { background: rgba(255, 255, 255, 0.58); }

input, select, textarea {
  background: rgba(2, 2, 2, 0.72);
  box-shadow: 0 1px 0 rgba(250, 247, 239, 0.06) inset;
}
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.84);
}

.site-footer {
  margin-top: 0;
  background:
    linear-gradient(180deg, var(--surface), var(--bg-deep));
}

@media (max-width: 900px) {
  h1, .hero h1 { font-size: 3rem; }
  h2 { font-size: 1.85rem; }
  .hero { padding-top: 44px; }
  .hero .container::before { inset: 0 16px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .container { padding-left: 16px; padding-right: 16px; }
  h1, .hero h1 { font-size: 2.45rem; }
  .section { padding: 48px 0; }
  .section.tight > .container { padding-top: 22px; padding-bottom: 26px; }
  .card { padding: 22px; }
  .stat-strip .stat { width: 100%; min-width: 0; }
  .footer-bottom { display: block; }
}

/* Semantic color correction pass.
   The base interface is neutral graphite/white. Blue is reserved for calm
   information and interaction, red for urgent/important warnings, and green
   only for verified or positive certainty states. */
:root {
  --bg: #080808;
  --bg-deep: #010101;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --surface-3: #242424;
  --ink: #f8f8f6;
  --ink-soft: #d7d7d2;
  --muted: #9b9b95;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --accent: #3f7fca;
  --accent-bright: #8fb9f4;
  --accent-deep: #142840;
  --accent-soft: rgba(63, 127, 202, 0.14);
  --gold: #c7c3b8;
  --verified: #4aa06e;
  --verified-soft: rgba(74, 160, 110, 0.09);
  --trial: #6fa4e8;
  --trial-soft: rgba(111, 164, 232, 0.12);
  --warning: #e05763;
  --warning-soft: rgba(224, 87, 99, 0.12);
  --danger: #ff6b78;
  --danger-soft: rgba(255, 107, 120, 0.14);
  --unverified: #aaa9a5;
  --unverified-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  --bg: #f4f4f3;
  --bg-deep: #e7e7e5;
  --surface: #ffffff;
  --surface-2: #f1f1ef;
  --surface-3: #e7e7e4;
  --ink: #111111;
  --ink-soft: #363634;
  --muted: #696965;
  --border: rgba(17, 17, 17, 0.12);
  --border-strong: rgba(17, 17, 17, 0.22);
  --accent: #245a9d;
  --accent-bright: #164a87;
  --accent-deep: #102f55;
  --accent-soft: rgba(36, 90, 157, 0.11);
  --gold: #5f5d58;
  --verified: #2d7650;
  --verified-soft: rgba(45, 118, 80, 0.08);
  --trial: #285f9f;
  --trial-soft: rgba(40, 95, 159, 0.1);
  --warning: #b82f3f;
  --warning-soft: rgba(184, 47, 63, 0.1);
  --danger: #9f1d2f;
  --danger-soft: rgba(159, 29, 47, 0.11);
  --unverified: #62615d;
  --unverified-soft: rgba(17, 17, 17, 0.05);
  --shadow: 0 16px 44px rgba(17, 17, 17, 0.11);
}

body {
  background:
    linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 320px, var(--bg) 100%);
}

:root[data-theme="light"] body {
  background:
    linear-gradient(180deg, #ebebea 0, var(--bg) 320px, var(--bg) 100%);
}

.brand .mark {
  border-color: var(--border-strong);
  box-shadow: 0 0 20px rgba(143, 185, 244, 0.1);
}

.main-nav a.active {
  color: var(--ink);
  border-color: var(--border-strong);
}

.disclaimer-banner {
  background: var(--bg-deep);
  border-bottom-color: rgba(255, 107, 120, 0.38);
}

.hero .container::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

:root[data-theme="light"] .hero .container::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.52)),
    var(--surface);
}

.eyebrow {
  color: var(--muted);
}

.lede {
  border-left-color: var(--border-strong);
}

.section.tight > .container,
:root[data-theme="light"] .section.tight > .container {
  background: transparent;
}

.card::before,
.tool-tile::before,
.myth::before {
  background: var(--border-strong);
  opacity: 0.7;
}

.card:hover::before,
.tool-tile:hover::before,
.compound-row:hover::before {
  background: var(--accent);
}

.compound-row {
  background: var(--surface);
}

:root[data-theme="light"] .compound-row {
  background: rgba(255, 255, 255, 0.82);
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.022);
}

:root[data-theme="light"] tbody tr:nth-child(even) td {
  background: rgba(17, 17, 17, 0.026);
}

.badge.verified {
  background: var(--verified-soft);
  color: var(--verified);
  border-color: rgba(74, 160, 110, 0.34);
  box-shadow: none;
}

.badge.trial,
.badge.recommendation {
  background: var(--trial-soft);
  color: var(--trial);
  border-color: rgba(111, 164, 232, 0.3);
  box-shadow: none;
}

.badge.warning,
.badge.danger {
  box-shadow: none;
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: rgba(224, 87, 99, 0.32);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(255, 107, 120, 0.34);
}

.badge.unverified {
  background: var(--unverified-soft);
  color: var(--unverified);
  border-color: var(--border-strong);
}

.alert {
  background: var(--surface-2);
}

.alert.info {
  background: var(--accent-soft);
  border-color: rgba(63, 127, 202, 0.32);
  color: var(--ink-soft);
}

.alert.warn {
  background: var(--warning-soft);
  border-color: rgba(224, 87, 99, 0.38);
  color: var(--ink-soft);
}

.alert.danger {
  background: var(--danger-soft);
  border-color: rgba(255, 107, 120, 0.42);
  color: var(--ink-soft);
}

.home-page .hero .container {
  text-align: center;
}

.home-page .hero h1,
.home-page .hero .lede {
  margin-left: auto;
  margin-right: auto;
}

.home-page .hero .lede,
.home-page .section > .container > .lede,
.home-page .section-intro .lede {
  padding-left: 0;
  border-left: 0;
}

.home-page .hero-actions,
.home-page .stat-strip,
.home-page .section-intro .flex {
  justify-content: center;
}

.home-page .section > .container > .eyebrow,
.home-page .section > .container > h1,
.home-page .section > .container > h2,
.home-page .section > .container > .lede,
.home-page .section-intro .eyebrow,
.home-page .section-intro h2,
.home-page .section-intro .lede {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.home-page .section-intro {
  text-align: center;
}

.home-page .section > .container > .grid-2 {
  margin-top: 28px;
}

.home-page .evidence-card {
  max-width: 760px;
  margin: 28px auto 0;
}

.philosophy-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.source-step {
  min-height: 245px;
}

.source-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .home-page .section > .container > .lede,
  .home-page .section-intro .lede {
    max-width: 34ch;
  }
}

/* Resource reference visual pass */
:root {
  --bg: #f3eee6;
  --bg-deep: #06171a;
  --surface: #fffaf3;
  --surface-2: #f8f1e8;
  --surface-3: #ede3d5;
  --ink: #111716;
  --ink-soft: #373a35;
  --muted: #756d62;
  --border: rgba(17, 23, 22, 0.13);
  --border-strong: rgba(17, 23, 22, 0.24);
  --accent: #071c20;
  --accent-bright: #123842;
  --accent-deep: #041114;
  --accent-soft: rgba(30, 84, 125, 0.12);
  --gold: #846640;
  --verified: #2f7a52;
  --verified-soft: rgba(47, 122, 82, 0.1);
  --trial: #2a628f;
  --trial-soft: rgba(42, 98, 143, 0.11);
  --warning: #b6403d;
  --warning-soft: rgba(182, 64, 61, 0.12);
  --danger: #9f2834;
  --danger-soft: rgba(159, 40, 52, 0.12);
  --unverified: #625c53;
  --unverified-soft: rgba(17, 23, 22, 0.06);
  --shadow: 0 18px 48px rgba(52, 42, 30, 0.12);
  --radius: 4px;
  --radius-lg: 8px;
}

:root[data-theme="dark"] {
  --bg: #081012;
  --bg-deep: #020809;
  --surface: #101718;
  --surface-2: #172021;
  --surface-3: #1f2b2d;
  --ink: #f7f1e7;
  --ink-soft: #ddd3c5;
  --muted: #a79989;
  --border: rgba(247, 241, 231, 0.13);
  --border-strong: rgba(247, 241, 231, 0.24);
  --accent: #d8c7a7;
  --accent-bright: #f2e0bd;
  --accent-deep: #071c20;
  --accent-soft: rgba(216, 199, 167, 0.12);
  --gold: #d0b17a;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

html { background: var(--bg); }
body {
  background: var(--bg);
  background-image: linear-gradient(180deg, #faf6ef 0, var(--bg) 410px, #f8f3eb 100%);
  background-attachment: scroll;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

:root[data-theme="dark"] body {
  background-image: linear-gradient(180deg, #101819 0, var(--bg) 410px, #081012 100%);
}

body::before { display: none; }
h1, h2, h3, h4, .btn, .badge, .eyebrow, .main-nav a { letter-spacing: 0; }
a { color: var(--accent-bright); }
a:hover { color: var(--gold); }

.disclaimer-banner {
  background: #06171a;
  color: #eee4d7;
  border: 0;
  text-align: center;
  font-size: 0.78rem;
}

.disclaimer-banner .container {
  justify-content: center;
  padding-top: 7px;
  padding-bottom: 7px;
}

.disclaimer-banner strong,
.disclaimer-banner a { color: #fff7ea; }

.site-header {
  background: rgba(250, 247, 240, 0.94);
  border-bottom: 1px solid rgba(17, 23, 22, 0.1);
  box-shadow: 0 12px 34px rgba(34, 27, 18, 0.08);
}

:root[data-theme="dark"] .site-header {
  background: rgba(8, 16, 18, 0.92);
  border-bottom-color: rgba(247, 241, 231, 0.12);
}

.site-header .bar {
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand .mark {
  position: relative;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
}

.brand .mark::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 13px;
  top: 13px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    -10px 0 0 var(--accent),
    10px 0 0 var(--accent),
    0 -10px 0 var(--accent),
    0 10px 0 var(--accent),
    -7px -7px 0 var(--accent),
    7px -7px 0 var(--accent),
    -7px 7px 0 var(--accent),
    7px 7px 0 var(--accent);
}

.brand .brand-name {
  font-size: 1.14rem;
  line-height: 1;
}

.brand small { display: none; }
.main-nav { gap: 10px; }
.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  padding: 8px 10px;
}

.main-nav a:hover,
.main-nav a.active {
  background: transparent;
  border-color: transparent;
  color: var(--accent-bright);
}

.btn {
  background: #06171a;
  color: #fff7ea;
  border-color: #06171a;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(6, 23, 26, 0.18);
}

.btn:hover {
  background: #0d3037;
  color: #fff7ea;
  box-shadow: 0 12px 28px rgba(6, 23, 26, 0.22);
}

.btn.secondary {
  background: rgba(255, 250, 243, 0.76);
  color: var(--ink);
  border-color: rgba(17, 23, 22, 0.26);
  box-shadow: none;
}

.btn.secondary:hover {
  background: #fffaf3;
  border-color: var(--accent);
  color: var(--accent);
}

.hero.resource-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.96) 39%, rgba(247, 241, 231, 0.62) 56%, rgba(247, 241, 231, 0.08) 76%),
    url("../images/generated-detail-wellness-research.png") center right / cover no-repeat;
}

:root[data-theme="dark"] .hero.resource-hero {
  background:
    linear-gradient(90deg, rgba(8, 16, 18, 0.98) 0%, rgba(8, 16, 18, 0.94) 42%, rgba(8, 16, 18, 0.62) 62%, rgba(8, 16, 18, 0.16) 78%),
    url("../images/generated-detail-wellness-research.png") center right / cover no-repeat;
}

.hero.resource-hero .container {
  position: relative;
  padding-top: 70px;
  padding-bottom: 52px;
}

.hero.resource-hero .container::before { content: none; }
.home-page .resource-hero .container { text-align: left; }
.resource-hero .hero-copy { max-width: 590px; }

.home-page .resource-hero h1,
.home-page .resource-hero .lede {
  margin-left: 0;
  margin-right: 0;
}

.resource-hero h1 {
  max-width: 10ch;
  margin: 18px 0 24px;
  font-size: clamp(3.3rem, 7vw, 5.8rem);
  line-height: 0.94;
}

.resource-hero h1 em {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

.resource-hero .lede {
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.28rem;
  line-height: 1.5;
  padding: 0;
  border: 0;
}

.home-page .resource-hero .hero-actions {
  justify-content: flex-start;
}

.hero-proof-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 76px;
  max-width: 650px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  color: var(--ink);
  font-size: 0.95rem;
}

.proof-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(132, 102, 64, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.62);
}

.section {
  border-bottom: 0;
  padding: 66px 0;
}

.section.tight {
  padding: 30px 0 28px;
}

.section.tight > .container {
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-page .section > .container > .eyebrow,
.home-page .section > .container > h1,
.home-page .section > .container > h2,
.home-page .section > .container > .lede,
.home-page .section-intro .eyebrow,
.home-page .section-intro h2,
.home-page .section-intro .lede {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.1);
  color: #6e5838;
  font-size: 0.72rem;
  font-weight: 700;
}

:root[data-theme="dark"] .eyebrow {
  background: rgba(208, 177, 122, 0.12);
  color: #d8c7a7;
}

.home-page .section > .container > .eyebrow,
.home-page .section-intro .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.card,
.compound-row,
.table-wrap,
.result-panel {
  background: rgba(255, 250, 243, 0.86);
  border-color: rgba(17, 23, 22, 0.11);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.09);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .compound-row,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .result-panel {
  background: rgba(16, 23, 24, 0.92);
  border-color: rgba(247, 241, 231, 0.12);
}

.card::before,
.tool-tile::before,
.myth::before { background: rgba(17, 23, 22, 0.18); }

.source-step {
  min-height: 0;
  padding: 26px;
}

.source-step .step-index {
  color: var(--gold);
  border-color: rgba(132, 102, 64, 0.28);
  background: rgba(132, 102, 64, 0.08);
}

.featured-grid,
.article-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card,
.article-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 8px;
  color: #fff7ea;
  background-color: #07171b;
  box-shadow: 0 18px 42px rgba(35, 25, 15, 0.18);
  isolation: isolate;
}

.article-card { min-height: 170px; }

.featured-card::before,
.article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 13, 16, 0.08), rgba(4, 13, 16, 0.88));
}

.featured-card::after,
.article-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.28s ease;
}

.featured-card:hover::after,
.article-card:hover::after { transform: scale(1.045); }

.featured-card:hover,
.article-card:hover { color: #fff7ea; }

.card-bpc,
.article-molecule { background-image: url("../images/molecule-card.jpg"); }
.card-nad { background-image: url("../images/generated-home-nad-plus-landscape.jpg"); }
.card-selank,
.article-brain { background-image: url("../images/brain-card.jpg"); }
.card-tb { background-image: url("../images/fiber-card.jpg"); }
.article-pipette { background-image: url("../images/pipette-card.jpg"); }

.featured-tag {
  align-self: flex-start;
  padding: 6px 10px;
  border: 1px solid rgba(255, 247, 234, 0.28);
  border-radius: 999px;
  background: rgba(6, 23, 26, 0.58);
  color: #fff7ea;
  font-size: 0.78rem;
}

.featured-card h3,
.article-card h3 {
  margin: 18px 0 8px;
  color: #fff7ea;
  font-size: 1.65rem;
}

.article-card h3 { font-size: 1.25rem; }
.featured-card p {
  margin: 0 0 18px;
  max-width: 22ch;
  color: rgba(255, 247, 234, 0.86);
  line-height: 1.35;
}

.featured-link {
  color: #fff7ea;
  font-weight: 700;
  font-size: 0.92rem;
}

.tool-showcase { padding-top: 24px; }
.tool-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 330px;
  padding: 48px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(237, 243, 244, 0.98) 0%, rgba(237, 243, 244, 0.92) 47%, rgba(237, 243, 244, 0.58) 69%, rgba(237, 243, 244, 0.34) 100%),
    url("../images/pipette-card.jpg") center right / cover no-repeat;
  box-shadow: 0 22px 52px rgba(44, 34, 21, 0.1);
}

:root[data-theme="dark"] .tool-feature {
  background:
    linear-gradient(90deg, rgba(10, 24, 27, 0.98) 0%, rgba(10, 24, 27, 0.9) 48%, rgba(10, 24, 27, 0.62) 74%, rgba(10, 24, 27, 0.36) 100%),
    url("../images/pipette-card.jpg") center right / cover no-repeat;
}

.tool-feature-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.tool-feature-copy p {
  max-width: 34ch;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.calculator-mockup {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin-left: auto;
  padding: 24px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 38px rgba(30, 42, 46, 0.16);
}

:root[data-theme="dark"] .calculator-mockup {
  background: rgba(16, 23, 24, 0.9);
  border-color: rgba(247, 241, 231, 0.12);
}

.mock-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-field,
.mock-result {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="dark"] .mock-field,
:root[data-theme="dark"] .mock-result {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(247, 241, 231, 0.12);
}

.mock-field span,
.mock-result span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-field strong { font-size: 1rem; }
.mock-result strong {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.mock-result small {
  color: var(--muted);
  font-size: 0.9rem;
}

.alert.warn {
  background: rgba(182, 64, 61, 0.09);
  border-color: rgba(182, 64, 61, 0.28);
}

.alert.info {
  background: rgba(42, 98, 143, 0.1);
  border-color: rgba(42, 98, 143, 0.28);
}

.badge.verified {
  background: var(--verified-soft);
  color: var(--verified);
  border-color: rgba(47, 122, 82, 0.3);
}

.badge.trial,
.badge.recommendation {
  background: var(--trial-soft);
  color: var(--trial);
  border-color: rgba(42, 98, 143, 0.28);
}

.lede {
  padding-left: 0;
  border-left: 0;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border-color: rgba(17, 23, 22, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: rgba(2, 8, 9, 0.7);
  color: var(--ink);
  border-color: rgba(247, 241, 231, 0.22);
  box-shadow: 0 1px 0 rgba(247, 241, 231, 0.06) inset;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--trial);
  box-shadow: 0 0 0 3px rgba(42, 98, 143, 0.12);
}

.chip {
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink-soft);
  box-shadow: none;
}

:root[data-theme="dark"] .chip {
  background: rgba(247, 241, 231, 0.05);
}

tbody tr:nth-child(even) td {
  background: rgba(17, 23, 22, 0.026);
}

:root[data-theme="dark"] tbody tr:nth-child(even) td {
  background: rgba(247, 241, 231, 0.035);
}

.site-footer {
  margin-top: 0;
  background: #06171a;
  color: #eee4d7;
}

.site-footer h4,
.site-footer .muted,
.site-footer a,
.footer-bottom {
  color: rgba(238, 228, 215, 0.78);
}

.site-footer a:hover { color: #fff7ea; }
.footer-bottom { border-top-color: rgba(238, 228, 215, 0.13); }

@media (max-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-feature { grid-template-columns: 1fr; }
  .calculator-mockup { margin-left: 0; }
}

@media (max-width: 760px) {
  .site-header .bar { gap: 12px; }
  .hero.resource-hero {
    min-height: 680px;
    align-items: flex-start;
    background:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.94) 53%, rgba(247, 241, 231, 0.34) 100%),
      url("../images/hero-lab-vial.jpg") bottom center / cover no-repeat;
  }

  :root[data-theme="dark"] .hero.resource-hero {
    background:
      linear-gradient(180deg, rgba(8, 16, 18, 0.99) 0%, rgba(8, 16, 18, 0.94) 55%, rgba(8, 16, 18, 0.3) 100%),
      url("../images/hero-lab-vial.jpg") bottom center / cover no-repeat;
  }

  .hero.resource-hero .container {
    padding-top: 46px;
  }

  .resource-hero h1 { max-width: 8.5ch; }
  .hero-proof-row {
    gap: 14px;
    margin-top: 42px;
  }

  .featured-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .tool-feature {
    padding: 26px;
  }

  .mock-row { grid-template-columns: 1fr; }
}

/* Screenshot-led page system */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#themeToggle { display: none; }

.site-header .bar {
  max-width: 1320px;
}

.main-nav {
  flex: 1;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  font-size: 0.86rem;
  padding: 7px 9px;
  white-space: nowrap;
}

.main-nav .nav-cta {
  margin-left: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #06171a;
  color: #fff7ea;
  border: 1px solid #06171a;
  box-shadow: 0 10px 24px rgba(6, 23, 26, 0.18);
}

.main-nav .nav-cta:hover {
  background: #0d3037;
  color: #fff7ea;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background-color: #f5efe6;
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid rgba(17, 23, 22, 0.08);
}

.page-hero .container {
  width: 100%;
  padding-top: 56px;
  padding-bottom: 58px;
}

.page-hero-copy {
  max-width: 640px;
}

.page-hero h1 {
  margin: 18px 0 18px;
  max-width: 12ch;
  font-size: clamp(3rem, 5.7vw, 5.1rem);
  line-height: 0.96;
}

.page-hero h1 em {
  display: inline;
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

.page-hero .lede {
  max-width: 45ch;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.tools-hero,
.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.45) 66%, rgba(247, 241, 231, 0.06) 86%),
    url("../images/hero-lab-vial.jpg");
}

.myths-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 41%, rgba(247, 241, 231, 0.3) 68%, rgba(247, 241, 231, 0.02) 88%),
    url("../images/myths-hero-scale.jpg");
}

.about-hero {
  min-height: 390px;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.88) 34%, rgba(247, 241, 231, 0.22) 66%, rgba(247, 241, 231, 0.02) 100%),
    url("../images/about-hero-wellness.jpg");
}

.library-hero {
  min-height: 330px;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.25) 70%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/generated-category-longevity-cellular-v2-landscape.jpg");
}

.contact-hero {
  min-height: 300px;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.92) 45%, rgba(247, 241, 231, 0.22) 80%),
    url("../images/blog-feature-petri.jpg");
}

.page-panel-section {
  padding-top: 0;
  margin-top: -32px;
}

.page-panel {
  position: relative;
  z-index: 2;
  padding: 32px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: 0 24px 70px rgba(44, 34, 21, 0.12);
}

.page-panel > h2,
.page-panel .process-section h2 {
  margin: 0 0 18px;
  font-size: 1.75rem;
  text-align: left;
}

.page-panel > h2:not(:first-child) {
  margin-top: 34px;
}

.tool-card-grid,
.guide-feature-grid,
.secondary-guide-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.tool-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.secondary-guide-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(240, 234, 225, 0.84)),
    var(--surface);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(44, 34, 21, 0.07);
}

.tool-card::before { display: none; }
.tool-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(6, 23, 26, 0.22);
}

.line-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(132, 102, 64, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 250, 243, 0.68);
  font-size: 1.1rem;
}

.tool-card h3,
.guide-feature h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.tool-card p,
.guide-feature p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.tool-card .go,
.guide-feature .go {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.image-card {
  min-height: 210px;
  color: #fff7ea;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 17, 20, 0.88), rgba(4, 17, 20, 0.28));
}

.image-card h3,
.image-card p,
.image-card .go {
  color: #fff7ea;
}

.nutrition-card { background-image: url("../images/about-hero-wellness.jpg"); }
.body-card { background-image: url("../images/molecule-card.jpg"); }

.trust-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(120px, 0.7fr));
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(237, 232, 224, 0.88), rgba(255, 250, 243, 0.86));
  border: 1px solid rgba(17, 23, 22, 0.08);
}

.trust-strip h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.trust-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-strip > span {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.guide-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-feature {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background-size: cover;
  background-position: center right;
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(44, 34, 21, 0.08);
  isolation: isolate;
}

.guide-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.58), rgba(255, 250, 243, 0.08));
}

.guide-symptom-card { background-image: url("../images/guide-symptom.jpg"); }
.guide-coach-card { background-image: url("../images/guide-coach.jpg"); }
.guide-blood-card { background-image: url("../images/guide-bloodwork.jpg"); }

.btn.mini {
  align-self: flex-start;
  min-height: 0;
  padding: 9px 13px;
  font-size: 0.82rem;
  margin: 4px 0 18px;
}

.guide-feature ul {
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.process-section {
  padding-top: 38px;
  margin-top: 34px;
  border-top: 1px solid rgba(17, 23, 22, 0.09);
}

.process-section > div:first-child p {
  margin-top: -10px;
  color: var(--muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.process-steps div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink-soft);
}

.process-steps b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.12);
  color: var(--gold);
}

.wide-cta {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  color: #fff7ea;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.94), rgba(4, 17, 20, 0.5)),
    url("../images/blog-feature-petri.jpg") center / cover no-repeat;
}

.wide-cta:hover { color: #fff7ea; }

.privacy-note {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(42, 98, 143, 0.08);
  border: 1px solid rgba(42, 98, 143, 0.18);
  color: var(--ink-soft);
}

.library-section {
  padding-top: 28px;
}

.library-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.library-search-row input {
  min-height: 54px;
  border-radius: 8px;
}

.library-view-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.78);
  color: var(--muted);
  font-size: 0.9rem;
}

.library-browser {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
}

.library-sidebar {
  align-self: start;
  position: sticky;
  top: 98px;
}

.library-sidebar h2 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.library-sidebar .filter-bar {
  display: grid;
  gap: 6px;
}

.library-sidebar .chip {
  justify-content: space-between;
  width: 100%;
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 250, 243, 0.86);
  text-align: left;
}

.library-sidebar .chip.active {
  background: #06171a;
  color: #fff7ea;
  border-color: #06171a;
}

.library-note,
.newsletter-card,
.popular-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(17, 23, 22, 0.09);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.78);
}

.library-note h3,
.newsletter-card h3,
.popular-card h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.library-note p,
.newsletter-card p,
.popular-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.library-page #compoundList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

.compound-card {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
}

.compound-card .compound-thumb {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.compound-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.compound-card .name {
  font-size: 1.28rem;
  line-height: 1.05;
}

.compound-card .cat {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: normal;
}

.compound-card .dose {
  display: grid;
  margin-top: auto;
  color: var(--ink);
  font-weight: 700;
}

.compound-card .dose small {
  color: var(--muted);
  font-weight: 500;
}

.myth-proof-row,
.about-proof-row,
.mini-proof-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.myth-proof-row span,
.about-proof-row span,
.mini-proof-row span {
  padding: 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(255, 250, 243, 0.64);
  border: 1px solid rgba(17, 23, 22, 0.08);
  font-size: 0.9rem;
}

.myth-toolbar,
.section-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.myth-toolbar .field {
  margin: 0;
  min-width: min(100%, 320px);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.myths-page #mythList {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.myths-page .myth {
  margin-bottom: 0 !important;
  min-height: 210px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.08);
}

.myths-page .myth h3 {
  font-size: 1.24rem;
}

.myths-page .myth p {
  font-size: 0.94rem;
  line-height: 1.38;
}

.myth-closing-strip {
  margin-top: 22px;
}

.blog-hero-section {
  padding: 56px 0 26px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(420px, 1.25fr);
  gap: 48px;
  align-items: center;
}

.blog-intro h1 {
  max-width: 11ch;
  margin: 16px 0;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  line-height: 0.96;
}

.blog-intro h1 em {
  display: block;
  color: #385743;
  font-style: italic;
  font-weight: 600;
}

.featured-blog-card,
.blog-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: 30px;
  border-radius: 8px;
  color: #fff7ea;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.9), rgba(4, 17, 20, 0.28)),
    url("../images/blog-feature-petri.jpg") center / cover no-repeat;
}

.featured-blog-card h2,
.blog-card h3 {
  color: #fff7ea;
}

.featured-blog-card p,
.blog-card p,
.blog-card small {
  color: rgba(255, 247, 234, 0.86);
}

.blog-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 36px;
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-card {
  min-height: 300px;
  padding: 22px;
}

.blog-sidebar {
  align-self: start;
  position: sticky;
  top: 98px;
}

.newsletter-card input {
  margin: 8px 0 12px;
}

.popular-card {
  display: grid;
  gap: 10px;
}

.popular-card a {
  color: var(--ink);
  font-weight: 700;
}

.about-section {
  padding-top: 34px;
}

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 18px;
}

.about-image-card,
.about-beliefs {
  min-height: 260px;
  padding: 30px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.08);
}

.about-image-card {
  color: #fff7ea;
  background-size: cover;
  background-position: center;
}

.mission-card {
  background-image:
    linear-gradient(90deg, rgba(4, 17, 20, 0.9), rgba(4, 17, 20, 0.35)),
    url("../images/molecule-card.jpg");
}

.vision-card {
  color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.44)),
    url("../images/about-hero-wellness.jpg");
}

.mission-card h2,
.mission-card p { color: #fff7ea; }

.about-beliefs {
  display: grid;
  gap: 16px;
}

.about-beliefs h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.about-beliefs p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-grid .card {
  min-height: 220px;
}

.contact-note {
  margin-top: 22px;
}

.compound-page .section.tight {
  --compound-image: url("../images/generated-detail-library-research.png");
  padding-top: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.42), rgba(247, 241, 231, 0) 410px),
    var(--bg);
}

.compound-page .section.tight .container {
  max-width: 1240px !important;
  padding-top: 40px;
}

.compound-layout-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.compound-side-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.08);
}

.compound-side-panel .back-link {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.compound-side-thumb {
  min-height: 150px;
  border-radius: 6px;
  background:
    linear-gradient(0deg, rgba(255, 250, 243, 0.2), rgba(255, 250, 243, 0.2)),
    var(--compound-image) center / cover no-repeat;
}

.compound-side-panel small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.compound-side-panel strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.05;
}

.side-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.1);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.jump-nav {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 23, 22, 0.09);
}

.jump-nav span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.jump-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: rgba(17, 23, 22, 0.035);
  font-size: 0.9rem;
}

.jump-nav a:hover {
  color: var(--accent);
  background: rgba(42, 98, 143, 0.08);
}

.research-note {
  padding: 14px;
  border-radius: 6px;
  background: rgba(42, 98, 143, 0.08);
  color: var(--ink-soft);
}

.research-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.research-note p {
  margin: 0;
  font-size: 0.88rem;
}

.compound-page .section.tight .container > .eyebrow,
.compound-page .compound-content > .eyebrow {
  margin-bottom: 14px;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  min-height: 250px;
  align-items: flex-start;
  padding: 34px;
  margin: 0 0 26px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(255, 250, 243, 0.78), rgba(255, 250, 243, 0.78)),
    var(--compound-image) center right / cover no-repeat;
  box-shadow: 0 20px 50px rgba(44, 34, 21, 0.11);
}

.compound-page h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.compound-page .alert.warn {
  border-radius: 8px;
  box-shadow: none;
}

.compound-page .card,
.compound-page .table-wrap,
.tool-detail-page .card,
.guide-detail-page .card,
.blog-post-page .card {
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
}

.compound-page h3 {
  margin-top: 36px;
}

.tool-detail-page .section.tight .container,
.guide-detail-page .section.tight .container,
.blog-post-page .section.tight .container {
  max-width: 1120px !important;
  padding-top: 36px;
}

.tool-detail-page h1,
.guide-detail-page h1,
.blog-post-page h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}

@media (max-width: 1180px) {
  .tool-card-grid,
  .myths-page #mythList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card-grid,
  .guide-feature-grid,
  .about-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .main-nav {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .blog-hero-grid,
  .blog-content-grid,
  .library-browser,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .library-sidebar,
  .blog-sidebar {
    position: static;
  }

  .process-steps,
  .myth-proof-row,
  .about-proof-row,
  .mini-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-hero {
    min-height: 520px;
    align-items: flex-start;
    background-position: bottom center;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  .tools-hero,
  .guides-hero,
  .myths-hero,
  .about-hero,
  .library-hero,
  .contact-hero {
    background-image:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.92) 56%, rgba(247, 241, 231, 0.26) 100%),
      var(--mobile-hero-image);
  }

  .tools-hero,
  .guides-hero { --mobile-hero-image: url("../images/hero-lab-vial.jpg"); }
  .myths-hero { --mobile-hero-image: url("../images/myths-hero-scale.jpg"); }
  .about-hero { --mobile-hero-image: url("../images/about-hero-wellness.jpg"); }
  .library-hero { --mobile-hero-image: url("../images/generated-category-longevity-cellular-v2-landscape.jpg"); }
  .contact-hero { --mobile-hero-image: url("../images/blog-feature-petri.jpg"); }

  .page-panel {
    padding: 20px;
  }

  .tool-card-grid,
  .secondary-guide-grid,
  .contact-grid,
  .myths-page #mythList,
  .process-steps,
  .myth-proof-row,
  .about-proof-row,
  .mini-proof-row,
  .article-card-grid {
    grid-template-columns: 1fr;
  }

  .library-search-row,
  .compound-card {
    grid-template-columns: 1fr;
  }

  .compound-card .compound-thumb {
    min-height: 150px;
  }

  .compound-page .section.tight .container > .flex-between {
    padding: 24px;
    background:
      linear-gradient(0deg, rgba(255, 250, 243, 0.86), rgba(255, 250, 243, 0.86)),
      var(--compound-image) center / cover no-repeat;
  }

  .compound-layout-shell {
    grid-template-columns: 1fr;
  }

  .compound-side-panel {
    position: static;
  }

  .compound-page .compound-content > .flex-between {
    padding: 24px;
    background:
      linear-gradient(0deg, rgba(255, 250, 243, 0.86), rgba(255, 250, 243, 0.86)),
      var(--compound-image) center / cover no-repeat;
  }
}

/* Screenshot reference repair pass */
.tools-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 43%, rgba(247, 241, 231, 0.38) 67%, rgba(247, 241, 231, 0.03) 90%),
    url("../images/generated-tools-workspace.jpg");
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.38) 68%, rgba(247, 241, 231, 0.03) 90%),
    url("../images/navaro-dosage-guides-editorial.png");
}

.myths-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 38%, rgba(247, 241, 231, 0.24) 66%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/ref-myths-hero.jpg");
}

.about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.9) 35%, rgba(247, 241, 231, 0.22) 66%, rgba(247, 241, 231, 0.02) 100%),
    url("../images/ref-about-hero.jpg");
}

.library-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 40%, rgba(247, 241, 231, 0.24) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/generated-category-longevity-cellular-v2-landscape.jpg");
}

.page-hero {
  min-height: 315px;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-panel {
  box-shadow: 0 22px 58px rgba(42, 32, 22, 0.1);
}

.guide-symptom-card { background-image: url("../images/generated-guide-symptom.jpg"); }
.guide-coach-card { background-image: url("../images/generated-guide-coach.jpg"); }
.guide-blood-card { background-image: url("../images/generated-guide-bloodwork.jpg"); }

.library-page .container {
  max-width: 1260px;
}

.library-page #compoundList {
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 16px;
}

.compound-card {
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 184px;
  border: 1px solid rgba(17, 23, 22, 0.11);
  box-shadow: 0 12px 28px rgba(42, 32, 22, 0.06);
  color: var(--ink);
}

.compound-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 23, 26, 0.24);
  box-shadow: 0 18px 36px rgba(42, 32, 22, 0.1);
  color: var(--ink);
}

.compound-card-body {
  gap: 7px;
  padding: 13px;
}

.compound-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.category-pill,
.compound-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.category-pill {
  background: rgba(6, 23, 26, 0.08);
  color: #06171a;
}

.compound-tag {
  background: rgba(42, 98, 143, 0.09);
  color: #2a628f;
}

.compound-card .name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.06;
}

.compound-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.28;
}

.compound-card .dose {
  font-size: 0.86rem;
  line-height: 1.2;
}

.compound-card .dose small {
  margin-bottom: 2px;
  font-size: 0.68rem;
  text-transform: none;
}

.compound-card .go {
  margin-top: 2px;
  color: #06171a;
  font-size: 0.78rem;
  font-weight: 800;
}

.myth-proof-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -4px 0 24px;
}

.myth-proof-row span,
.mini-proof-row span {
  background: transparent;
  border: 0;
  padding: 8px 4px;
}

.myth-toolbar {
  padding: 14px 0;
  border-top: 1px solid rgba(17, 23, 22, 0.08);
  border-bottom: 1px solid rgba(17, 23, 22, 0.08);
}

.myths-page .myth {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid rgba(17, 23, 22, 0.09);
  background: rgba(255, 250, 243, 0.86);
}

.myths-page .myth::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border: 1px solid rgba(132, 102, 64, 0.22);
  border-radius: 999px;
  background: rgba(132, 102, 64, 0.08);
}

.myths-page .myth .badge {
  order: 2;
}

.myths-page .myth h3 {
  font-size: 1.2rem;
}

.featured-blog-card {
  min-height: 300px;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.88), rgba(4, 17, 20, 0.25)),
    url("../images/ref-blog-feature.jpg") center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(42, 32, 22, 0.12);
}

.blog-card {
  justify-content: flex-start;
  min-height: 0;
  padding: 0 0 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  background: rgba(255, 250, 243, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(42, 32, 22, 0.06);
}

.blog-card::before {
  content: "";
  display: block;
  height: 150px;
  margin-bottom: 16px;
  background: url("../images/ref-library-card-molecule.jpg") center / cover no-repeat;
}

.blog-card.article-pipette::before {
  background-image: url("../images/ref-blog-feature.jpg");
}

.blog-card.article-brain::before {
  background-image: url("../images/brain-card.jpg");
}

.blog-card h3,
.blog-card p,
.blog-card small,
.blog-card .featured-tag {
  margin-left: 18px;
  margin-right: 18px;
}

.blog-card h3 {
  color: var(--ink);
  font-size: 1.28rem;
}

.blog-card p,
.blog-card small {
  color: var(--ink-soft);
}

.blog-card .featured-tag {
  color: var(--muted);
  border-color: rgba(17, 23, 22, 0.1);
  background: rgba(17, 23, 22, 0.04);
}

.compound-side-thumb {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.05), rgba(4, 17, 20, 0.22)),
    url("../images/generated-detail-library-research.png") center / cover no-repeat;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.97), rgba(255, 250, 243, 0.72) 45%, rgba(255, 250, 243, 0.14) 80%),
    url("../images/generated-detail-library-research.png") center right / cover no-repeat;
}

.upload-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px dashed rgba(42, 98, 143, 0.35);
  border-radius: 8px;
  background: rgba(42, 98, 143, 0.06);
}

.blood-entry-choice {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
}

.blood-entry-choice button {
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.blood-entry-choice button.active {
  background: #06171a;
  color: #fffaf3;
}

.upload-panel input[type="file"] {
  min-height: 0;
  padding: 12px;
  background: rgba(255, 250, 243, 0.9);
}

.upload-preview {
  display: grid;
  gap: 10px;
}

.upload-preview img {
  max-height: 220px;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(17, 23, 22, 0.12);
}

.ocr-text {
  padding: 12px 14px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
}

.ocr-text summary {
  cursor: pointer;
  font-weight: 700;
}

.ocr-text pre {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .tools-hero,
  .guides-hero,
  .myths-hero,
  .about-hero,
  .library-hero,
  .contact-hero {
    background-image:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.92) 56%, rgba(247, 241, 231, 0.26) 100%),
      var(--mobile-hero-image);
  }

  .tools-hero { --mobile-hero-image: url("../images/generated-tools-workspace.jpg"); }
  .guides-hero { --mobile-hero-image: url("../images/navaro-dosage-guides-editorial.png"); }
  .myths-hero { --mobile-hero-image: url("../images/ref-myths-hero.jpg"); }
  .about-hero { --mobile-hero-image: url("../images/ref-about-hero.jpg"); }
  .library-hero { --mobile-hero-image: url("../images/generated-category-longevity-cellular-v2-landscape.jpg"); }
}

/* Centered-title and library cleanup pass */
.page-hero-copy {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero h1,
.page-hero .lede,
.blog-intro h1,
.blog-intro .lede,
main .section > .container > h1,
main .section > .container > h2,
main .section > .container > .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

main .section > .container > .eyebrow,
.page-hero .eyebrow {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-panel > h2,
.page-panel .process-section h2,
.process-section > div:first-child,
.section-intro,
.section-row,
.blog-intro {
  text-align: center;
}

.section-row,
.myth-toolbar,
.blog-hero-grid .mini-proof-row {
  justify-content: center;
}

.blog-intro .btn {
  margin-left: auto;
  margin-right: auto;
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.94) 42%, rgba(247, 241, 231, 0.38) 68%, rgba(247, 241, 231, 0.03) 90%),
    url("../images/navaro-dosage-guides-editorial.png");
}

.guide-symptom-card { background-image: url("../images/generated-guide-symptom.jpg"); }
.guide-coach-card { background-image: url("../images/generated-guide-coach.jpg"); }
.guide-blood-card { background-image: url("../images/generated-guide-bloodwork.jpg"); }

.library-sidebar .chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  justify-content: start;
  align-items: center;
  width: 100%;
  min-height: 58px;
  gap: 10px;
  border-radius: 6px;
  padding: 8px;
  background: rgba(255, 250, 243, 0.86);
  text-align: left;
}

.library-sidebar .chip b {
  display: none !important;
}

.category-chip-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: rgba(6, 23, 26, 0.08) center / cover no-repeat;
}

.category-chip-thumb.all-thumb {
  background-image: url("../images/generated-category-longevity-cellular-v2-landscape.jpg");
}

.library-page #compoundList {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.compound-card {
  grid-template-columns: 1fr !important;
  min-height: 172px;
}

.compound-card .compound-thumb {
  display: none !important;
}

.myth::before,
.myths-page .myth::before {
  content: none !important;
  display: none !important;
}

@media (max-width: 640px) {
  .guides-hero {
    --mobile-hero-image: url("../images/navaro-dosage-guides-editorial.png");
  }
}

/* Homepage + tool polish pass */
.center-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.nav-toggle.btn {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle.btn {
    display: inline-flex;
  }
}

.home-start-section,
.home-guides-section,
.home-tools-section,
.home-library-section,
.home-standard-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(246, 239, 229, 0.86)),
    var(--surface);
  box-shadow: 0 22px 54px rgba(44, 34, 21, 0.1);
}

.home-start-copy {
  display: grid;
  align-content: center;
  padding: clamp(22px, 4vw, 44px);
}

.home-start-copy .eyebrow,
.home-start-copy h2,
.home-start-copy .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-start-copy h2,
.home-guides-section h2,
.home-tools-section h2,
.home-library-section h2,
.home-standard-section h2 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
}

.home-symptom-box {
  max-width: 680px;
  width: 100%;
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid rgba(17, 23, 22, 0.11);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.92);
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.08);
}

.home-symptom-box label {
  text-align: left;
}

.home-symptom-box select {
  background: rgba(255, 250, 243, 0.98);
}

.home-symptom-box .chip {
  margin-top: 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fffaf3;
}

.home-symptom-output {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.home-output-card {
  padding: 16px;
  border: 1px solid rgba(42, 98, 143, 0.16);
  border-radius: 8px;
  background: rgba(42, 98, 143, 0.06);
}

.home-output-card h3 {
  margin: 0 0 10px;
  text-align: left;
  font-size: 1.35rem;
}

.home-output-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-output-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.home-output-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(17, 23, 22, 0.14);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.home-output-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.25;
}

.home-output-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.38;
}

.home-start-image {
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 23, 26, 0.12), rgba(6, 23, 26, 0.02)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
}

.home-feature-grid,
.home-library-grid,
.home-mini-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.home-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-image-card,
.home-mini-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.08);
  isolation: isolate;
}

.home-image-card {
  justify-content: flex-end;
  color: #fffaf3;
  background-size: cover;
  background-position: center;
}

.home-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 17, 20, 0.08), rgba(4, 17, 20, 0.86));
}

.home-image-card .line-icon,
.home-image-card h3,
.home-image-card p,
.home-image-card .go {
  color: #fffaf3;
}

.home-image-card h3,
.home-mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.home-image-card p,
.home-mini-card p {
  margin: 0 0 18px;
  color: inherit;
  line-height: 1.4;
}

.home-image-card .go,
.home-mini-card .go {
  margin-top: auto;
  font-weight: 800;
}

.home-section-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(239, 232, 222, 0.82)),
    var(--surface);
  box-shadow: 0 20px 48px rgba(44, 34, 21, 0.09);
}

.home-section-visual > div:first-child {
  text-align: center;
}

.home-section-visual .lede {
  margin-left: auto;
  margin-right: auto;
}

.home-tool-art {
  min-height: 280px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 23, 26, 0.1), rgba(6, 23, 26, 0.02)),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(17, 23, 22, 0.08);
}

.home-section-visual.home-tools-hero {
  display: flex;
  min-height: 320px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 34px;
  color: #fffaf3;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.03) 0%, rgba(4, 17, 20, 0.3) 44%, rgba(4, 17, 20, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.22), rgba(4, 17, 20, 0.02)),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat;
}

.home-section-visual.home-tools-hero > div:first-child {
  max-width: 760px;
}

.home-section-visual.home-tools-hero h2,
.home-section-visual.home-tools-hero .eyebrow,
.home-section-visual.home-tools-hero .lede {
  color: #fffaf3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36);
}

.home-section-visual.home-tools-hero .lede {
  max-width: 620px;
  color: rgba(255, 250, 243, 0.88);
}

.home-mini-card {
  min-height: 200px;
}

.home-mini-card:hover,
.home-image-card:hover {
  color: inherit;
  transform: translateY(-2px);
  border-color: rgba(6, 23, 26, 0.22);
  box-shadow: 0 22px 44px rgba(44, 34, 21, 0.12);
}

.library-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.home-standard-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(232, 225, 216, 0.72), rgba(255, 250, 243, 0));
}

.home-standard-section .lede {
  max-width: 760px;
}

.home-standard-section .source-step {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(247, 241, 231, 0.84)),
    var(--surface);
}

.home-standard-section .source-step::after {
  content: "";
  position: absolute;
  inset: auto 20px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--gold), rgba(42, 98, 143, 0.75));
}

.home-standard-section .source-step:nth-child(3)::after,
.home-standard-section .source-step:nth-child(4)::after {
  background: linear-gradient(90deg, rgba(42, 98, 143, 0.75), rgba(159, 40, 52, 0.65));
}

.library-results {
  scroll-margin-top: 110px;
  border-radius: 8px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.library-results.filter-pulse {
  background: rgba(42, 98, 143, 0.06);
  box-shadow: 0 0 0 3px rgba(42, 98, 143, 0.16), 0 18px 40px rgba(44, 34, 21, 0.08);
}

.library-sidebar .chip {
  min-height: 64px;
}

.category-chip-thumb {
  box-shadow: inset 0 0 0 1px rgba(255, 250, 243, 0.38);
}

.compound-card {
  padding: 0;
}

.tool-detail-page > .section.tight:first-child {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.98) 0%, rgba(247, 241, 231, 0.9) 42%, rgba(247, 241, 231, 0.34) 72%, rgba(247, 241, 231, 0.08) 100%),
    url("../images/generated-tools-workspace.jpg") center right / cover no-repeat;
  border-bottom: 1px solid rgba(17, 23, 22, 0.08);
}

.tool-detail-page > .section.tight:first-child .container {
  max-width: 980px !important;
  text-align: center;
}

.tool-detail-page > .section.tight:first-child .eyebrow,
.tool-detail-page > .section.tight:first-child h1,
.tool-detail-page > .section.tight:first-child .lede {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tool-detail-page > .section.tight:nth-child(2) {
  padding-top: 36px;
}

.tool-detail-page > .section.tight:nth-child(2) .container {
  max-width: 1120px !important;
}

.tool-detail-page .grid-2 {
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(17, 23, 22, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.82), rgba(238, 232, 224, 0.62));
  box-shadow: 0 22px 52px rgba(44, 34, 21, 0.08);
}

.tool-detail-page .card,
.tool-detail-page .result-panel,
.tool-detail-page .table-wrap {
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.94);
}

.tool-detail-page .card h3,
.tool-detail-page .result-panel h3,
.tool-detail-page #budgetOutput h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-detail-page .card h3::before,
.tool-detail-page .result-panel h3::before,
.tool-detail-page #budgetOutput h3::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(132, 102, 64, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(132, 102, 64, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 35%, rgba(42, 98, 143, 0.26) 0 2px, transparent 3px),
    rgba(255, 250, 243, 0.76);
}

.tool-detail-page input,
.tool-detail-page select,
.tool-detail-page textarea {
  border-color: rgba(17, 23, 22, 0.18);
  background: #fffdfa;
}

.tool-detail-page .result-panel {
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(44, 34, 21, 0.08);
}

.tool-detail-page .result-stat .value {
  color: var(--trial);
}

.tool-detail-page svg {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(238, 232, 224, 0.9)) !important;
  border-color: rgba(17, 23, 22, 0.12) !important;
  box-shadow: 0 14px 30px rgba(44, 34, 21, 0.08);
}

.tool-detail-page .alert.warn {
  border-color: rgba(159, 40, 52, 0.22);
  background: rgba(159, 40, 52, 0.08);
  color: #73313a;
}

@media (max-width: 980px) {
  .home-start-grid,
  .home-section-visual,
  .home-feature-grid,
  .home-library-grid,
  .home-mini-grid {
    grid-template-columns: 1fr;
  }

  .home-start-image,
  .home-tool-art {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .home-start-section,
  .home-guides-section,
  .home-tools-section,
  .home-library-section,
  .home-standard-section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-start-grid,
  .home-section-visual,
  .tool-detail-page .grid-2 {
    padding: 12px;
  }

  .home-start-copy {
    padding: 18px;
  }

  .home-symptom-box {
    padding: 16px;
  }

  .home-image-card,
  .home-mini-card {
    min-height: 220px;
  }

  .tool-detail-page > .section.tight:first-child {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(247, 241, 231, 0.99) 0%, rgba(247, 241, 231, 0.9) 58%, rgba(247, 241, 231, 0.32) 100%),
      url("../images/generated-tools-workspace.jpg") center bottom / cover no-repeat;
  }
}

/* Site-wide hero and editorial polish pass */
.chip.active,
.pill-row .chip.active,
.myth-toolbar .chip.active,
.blog-page .chip.active {
  background: #06171a !important;
  border-color: #06171a !important;
  color: #fffaf3 !important;
}

.hero.resource-hero {
  min-height: clamp(620px, 78vh, 820px);
}

.home-page .resource-hero .container,
.hero.resource-hero .container {
  display: grid;
  place-items: center;
  text-align: center;
}

.resource-hero .hero-copy {
  max-width: min(1040px, 100%);
  margin: 0 auto;
}

.home-page .resource-hero h1,
.home-page .resource-hero .lede,
.home-page .resource-hero .hero-actions {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.resource-hero h1 {
  max-width: 15ch;
  font-size: clamp(4rem, 8.6vw, 7.4rem);
  line-height: 0.96;
}

.resource-hero h1 em {
  display: inline;
}

.resource-hero .lede {
  max-width: 58ch;
}

.home-page .resource-hero .hero-actions,
.home-page .resource-hero .hero-proof-row {
  justify-content: center;
}

.page-hero {
  min-height: clamp(380px, 44vw, 520px);
}

.page-hero-copy {
  max-width: min(1040px, 100%);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(3.8rem, 7.4vw, 6.9rem);
  line-height: 0.96;
}

.page-hero .lede {
  max-width: 62ch;
}

.blog-intro {
  max-width: 720px;
  margin: 0 auto;
}

.blog-intro h1 {
  max-width: 15ch;
  font-size: clamp(3.7rem, 6.6vw, 6.4rem);
  line-height: 0.96;
}

.blog-intro h1 em {
  display: inline;
  color: var(--gold);
}

.tool-detail-page > .section.tight:first-child h1 {
  max-width: 18ch;
  font-size: clamp(3.7rem, 7.2vw, 6.7rem);
  line-height: 0.96;
}

.home-feature-grid .home-image-card {
  min-height: 340px;
  justify-content: flex-end;
  padding: 28px;
  background-size: cover;
  background-position: center;
}

.home-feature-grid .guide-symptom-card {
  background-image: url("../images/generated-guide-symptom.jpg") !important;
}

.home-feature-grid .guide-coach-card {
  background-image: url("../images/generated-guide-coach.jpg") !important;
}

.home-feature-grid .guide-tdee-card {
  background-image: url("../images/generated-tool-tdee.png") !important;
}

.home-feature-grid .guide-blood-card {
  background-image: url("../images/generated-guide-bloodwork.jpg") !important;
}

.home-feature-grid .home-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  backdrop-filter: saturate(1.03);
}

.home-feature-grid .home-image-card::after {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.26) 46%, rgba(4, 17, 20, 0.9) 100%),
    linear-gradient(90deg, rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0));
}

.home-feature-grid .home-image-card h3 {
  max-width: 13ch;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.home-feature-grid .home-image-card p {
  max-width: 28ch;
  opacity: 0.92;
}

.home-feature-grid .home-image-card .go {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 243, 0.32);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
}

.myths-list-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(236, 229, 219, 0.58), rgba(255, 250, 243, 0));
}

.myth-proof-row,
.mini-proof-row {
  gap: 12px;
}

.myth-proof-row span,
.mini-proof-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 16px !important;
  border: 1px solid rgba(17, 23, 22, 0.1) !important;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.78) !important;
  color: var(--ink-soft);
  box-shadow: 0 10px 24px rgba(44, 34, 21, 0.05);
}

.myth-proof-row span::before,
.mini-proof-row span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--trial);
  box-shadow: 0 0 0 4px rgba(42, 98, 143, 0.1);
}

.myth-proof-row span:first-child::before,
.mini-proof-row span:first-child::before {
  background: var(--verified);
  box-shadow: 0 0 0 4px rgba(47, 122, 82, 0.1);
}

.myth-proof-row span:last-child::before,
.mini-proof-row span:last-child::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(132, 102, 64, 0.12);
}

.myth-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin: 30px 0;
}

.myth-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  color: #fffaf3;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 50px rgba(44, 34, 21, 0.12);
  isolation: isolate;
}

.myth-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.03), rgba(4, 17, 20, 0.82)),
    linear-gradient(90deg, rgba(4, 17, 20, 0.72), rgba(4, 17, 20, 0.12));
}

.myth-common-feature {
  background-image: url("../images/ref-myths-hero.jpg");
}

.myth-unbelievable-feature {
  background-image: url("../images/ref-library-card-purple.jpg");
}

.feature-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.14);
  color: #fffaf3;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.myth-feature-card h2 {
  max-width: 12ch;
  margin: 0 0 12px;
  color: #fffaf3;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.myth-feature-card p {
  max-width: 42ch;
  margin: 0 0 18px;
  color: rgba(255, 250, 243, 0.9);
}

.feature-link {
  font-weight: 800;
  color: #fffaf3;
}

.myth-toolbar {
  align-items: center;
  gap: 16px;
  margin: 26px 0 18px;
  padding: 18px !important;
  border: 1px solid rgba(17, 23, 22, 0.1) !important;
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.76);
  box-shadow: 0 14px 34px rgba(44, 34, 21, 0.06);
}

.myths-page #mythList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.myths-page #mythList .myth {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  margin-bottom: 0 !important;
  padding: 24px !important;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 250, 243, 0.96), rgba(246, 239, 229, 0.86)),
    var(--surface);
  box-shadow: 0 15px 34px rgba(44, 34, 21, 0.08);
}

.myths-page #mythList .myth::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 148px;
  height: 112px;
  border-radius: 8px 0 0 0;
  opacity: 0.18;
  background: url("../images/ref-myths-hero.jpg") center / cover no-repeat;
  filter: grayscale(0.15);
  pointer-events: none;
}

.myths-page #mythList .myth:nth-child(3n + 2)::after {
  background-image: url("../images/ref-library-card-molecule.jpg");
}

.myths-page #mythList .myth:nth-child(3n + 3)::after {
  background-image: url("../images/ref-blog-feature.jpg");
}

.myths-page #mythList .myth .flex {
  display: grid !important;
  gap: 12px !important;
}

.myths-page #mythList .myth h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  line-height: 1.08;
}

.myths-page #mythList .myth p {
  position: relative;
  z-index: 1;
  color: var(--ink-soft) !important;
  font-size: 1rem;
  line-height: 1.46;
}

.blog-hero-section {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(244, 238, 229, 0.84));
}

.blog-hero-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 34px;
}

.blog-page .mini-proof-row {
  margin-top: 28px;
}

.blog-page .blog-intro {
  max-width: min(1040px, 100%);
}

.blog-page .blog-intro h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.blog-page .featured-blog-card {
  width: min(920px, 100%);
  min-height: 380px;
  margin: 0 auto;
}

.blog-page .section-row {
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.74);
}

@media (max-width: 1100px) {
  .myths-page #mythList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .resource-hero h1,
  .page-hero h1,
  .blog-intro h1,
  .tool-detail-page > .section.tight:first-child h1 {
    max-width: 12ch;
    font-size: clamp(3.1rem, 13vw, 4.7rem);
  }

  .myth-feature-grid,
  .myths-page #mythList {
    grid-template-columns: 1fr;
  }

  .myth-toolbar {
    align-items: stretch;
  }
}

/* Scoped final fixes: blog/tools imagery, 2x2 standard grid, and cleaner heading breaks */
h1,
h2,
h3,
.lede,
.page-hero-copy,
.blog-intro {
  text-wrap: balance;
}

p,
.tool-card p,
.blog-card p,
.myth p {
  text-wrap: pretty;
}

.myths-hero h1 span,
.myths-hero h1 em {
  display: block;
}

.myths-hero h1 em {
  white-space: nowrap;
}

.home-standard-section .philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.blog-hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.95) 0%, rgba(255, 250, 243, 0.82) 48%, rgba(255, 250, 243, 0.98) 100%),
    url("../images/generated-blog-hero.png") center top / cover no-repeat;
}

.blog-hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0), rgba(255, 250, 243, 1));
  pointer-events: none;
}

.blog-hero-section > .container {
  position: relative;
  z-index: 1;
}

.featured-blog-card {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.9), rgba(4, 17, 20, 0.28)),
    url("../images/generated-blog-evidence.png") center / cover no-repeat !important;
}

.blog-card::before {
  background: url("../images/generated-blog-evidence.png") center / cover no-repeat !important;
}

.blog-card.article-pipette::before {
  background-image: url("../images/generated-blog-safety.png") !important;
}

.blog-card.article-brain::before {
  background-image: url("../images/generated-blog-protocols.png") !important;
}

.popular-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 34px;
}

.popular-tool-card {
  min-height: 340px;
  padding: 34px;
  justify-content: flex-end;
}

.popular-tool-card h3 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.popular-tool-card p {
  max-width: 34ch;
}

.tdee-popular-card,
.nutrition-card {
  background-image: url("../images/generated-tool-tdee.png") !important;
  background-position: center;
}

.dosage-popular-card {
  background-image: url("../images/generated-tool-dosage.png") !important;
  background-position: center;
}

.body-card {
  background-image: url("../images/generated-tool-tdee.png") !important;
  background-position: left center;
}

@media (max-width: 760px) {
  .home-standard-section .philosophy-grid,
  .popular-tool-grid {
    grid-template-columns: 1fr;
  }

  .myths-hero h1 em {
    white-space: normal;
  }
}

/* Final targeted polish: title rag, card imagery, myth rows, and centered proof chips */
.no-break {
  white-space: nowrap;
}

.library-page .page-hero-copy {
  max-width: min(1120px, 100%);
}

.library-page .page-hero h1 {
  max-width: min(1120px, 100%);
}

.library-page .page-hero h1 em {
  display: block;
  white-space: normal;
}

.blog-hero-section {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.12), rgba(4, 17, 20, 0.28)),
    linear-gradient(180deg, rgba(255, 250, 243, 0.7) 0%, rgba(244, 238, 229, 0.52) 48%, rgba(255, 250, 243, 0.96) 100%),
    url("../images/generated-blog-hero.png") center top / cover no-repeat !important;
}

.blog-page .mini-proof-row {
  grid-template-columns: repeat(3, minmax(170px, 230px));
  justify-content: center;
  justify-items: center;
}

.blog-page .mini-proof-row span {
  width: 100%;
  text-align: center;
}

.guide-more-heading {
  margin: 34px 0 16px;
  text-align: center;
}

.guides-page .secondary-guide-grid {
  margin-top: 0;
}

.guides-page .secondary-guide-grid .tool-card,
.tools-page .tool-card:not(.popular-tool-card),
.home-tools-section .home-mini-card {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 220px;
  color: #fffaf3 !important;
  background-size: cover;
  background-position: center;
  border-color: rgba(255, 250, 243, 0.18);
  isolation: isolate;
}

.tools-page .tool-card:not(.popular-tool-card) {
  padding: 22px;
}

.guides-page .secondary-guide-grid .tool-card::after,
.tools-page .tool-card:not(.popular-tool-card)::after,
.home-tools-section .home-mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08));
}

.guides-page .secondary-guide-grid .tool-card > *,
.tools-page .tool-card:not(.popular-tool-card) > *,
.home-tools-section .home-mini-card > * {
  position: relative;
  z-index: 1;
}

.guides-page .secondary-guide-grid .tool-card h3,
.guides-page .secondary-guide-grid .tool-card p,
.guides-page .secondary-guide-grid .tool-card .go,
.guides-page .secondary-guide-grid .tool-card .line-icon,
.tools-page .tool-card:not(.popular-tool-card) h3,
.tools-page .tool-card:not(.popular-tool-card) p,
.tools-page .tool-card:not(.popular-tool-card) .go,
.tools-page .tool-card:not(.popular-tool-card) .line-icon,
.home-tools-section .home-mini-card h3,
.home-tools-section .home-mini-card p,
.home-tools-section .home-mini-card .line-icon {
  color: #fffaf3 !important;
}

.guides-page .secondary-guide-grid .tool-card .go,
.tools-page .tool-card:not(.popular-tool-card) .go {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
}

.guides-page .secondary-guide-grid .tool-card[href$="stack-builder.html"] {
  background-image: url("../images/generated-guide-protocol.png");
}

.guides-page .secondary-guide-grid .tool-card[href$="stack-optimizer.html"] {
  background-image: url("../images/generated-guide-stack.png");
}

.guides-page .secondary-guide-grid .tool-card[href$="peptide-qa.html"] {
  background-image: url("../images/generated-guide-qa.png");
}

.tools-page .tool-card[href$="titration-planner.html"] {
  background-image: url("../images/generated-tool-titration.png");
}

.tools-page .tool-card[href$="dosing-calculator.html"],
.home-tools-section .home-mini-card[href*="dosing-calculator.html"] {
  background-image: url("../images/generated-tool-dosage.png");
}

.tools-page .tool-card[href$="half-life-visualizer.html"] {
  background-image: url("../images/generated-tool-halflife.png");
}

.tools-page .tool-card[href$="consumables-forecaster.html"] {
  background-image: url("../images/generated-tool-supplies.png");
}

.tools-page .tool-card[href$="vendor-value-analyzer.html"] {
  background-image: url("../images/generated-tool-cost.png");
}

.tools-page .tool-card[href$="budget-planner.html"],
.home-tools-section .home-mini-card[href*="budget-planner.html"] {
  background-image: url("../images/generated-tool-budget.png");
}

.tools-page .tool-card[href$="compatibility-matrix.html"],
.home-tools-section .home-mini-card[href*="compatibility-matrix.html"] {
  background-image: url("../images/generated-tool-compatibility.png");
}

.tools-page .tool-card[href$="tdee-macro-calculator.html"],
.home-tools-section .home-mini-card[href*="tdee-macro-calculator.html"] {
  background-image: url("../images/generated-tool-tdee.png");
}

.home-tools-section .home-mini-card[href*="titration-planner.html"] {
  background-image: url("../images/generated-tool-titration.png");
}

.home-tools-section .home-mini-card[href*="body-fat-calculator.html"] {
  background-image: url("../images/generated-tool-bodyfat.png");
}

.tools-page .body-card {
  background-image: url("../images/generated-tool-bodyfat.png") !important;
}

.myths-page #mythList {
  grid-template-columns: 1fr !important;
  max-width: 1080px;
  margin: 18px auto 0;
}

.myths-page #mythList .myth {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px 28px;
  min-height: 0;
  padding: 24px !important;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(246, 239, 229, 0.9)),
    var(--surface) !important;
}

.myths-page #mythList .myth::after,
.myths-page #mythList .myth:nth-child(3n + 2)::after,
.myths-page #mythList .myth:nth-child(3n + 3)::after {
  content: none !important;
  display: none !important;
}

.myths-page #mythList .myth .flex {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
  align-content: start;
}

.myths-page #mythList .myth .badge {
  width: fit-content;
  justify-self: start;
}

.myths-page #mythList .myth h3 {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.06;
}

.myths-page #mythList .myth p {
  margin: 0 !important;
  max-width: 78ch;
  align-self: start;
  font-size: 1.03rem;
}

.myths-page #mythList .myth.is-collapsed p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.myth-toggle {
  grid-column: 2;
  width: fit-content;
  margin-top: -4px;
  padding: 8px 13px;
  border: 1px solid rgba(6, 23, 26, 0.14);
  border-radius: 999px;
  color: #fffaf3;
  background: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.myth-toggle:hover {
  background: var(--accent-strong);
}

@media (max-width: 900px) {
  .blog-page .mini-proof-row {
    grid-template-columns: 1fr;
  }

  .myths-page #mythList .myth {
    grid-template-columns: 1fr;
  }

  .myth-toggle {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .library-page .page-hero h1 {
    font-size: clamp(2.75rem, 11.5vw, 3.55rem);
    max-width: calc(100vw - 32px);
  }

  .library-page .page-hero h1 .no-break {
    display: block;
  }

  .myths-page .myth-proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .myths-page .myth-proof-row span {
    width: 100%;
    min-height: 58px;
    padding: 12px 10px !important;
    border-radius: 8px;
    text-align: center;
  }
}

/* Additive image pass for individual tool and guide pages */
.detail-image-pass > .section.tight:nth-child(2) .container::before,
.blog-post-page.detail-image-pass > .section:first-child .container::before {
  content: "";
  display: block;
  height: clamp(170px, 22vw, 270px);
  margin: 0 0 24px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.5), rgba(4, 17, 20, 0.08)),
    linear-gradient(180deg, rgba(255, 250, 243, 0.02), rgba(255, 250, 243, 0.22)),
    var(--detail-image) center / cover no-repeat;
  box-shadow: 0 22px 48px rgba(44, 34, 21, 0.1);
}

.detail-wellness {
  --detail-image: url("../images/generated-detail-wellness-research.png");
}

.detail-bloodwork {
  --detail-image: url("../images/generated-detail-bloodwork.png");
}

.detail-calculator {
  --detail-image: url("../images/generated-detail-calculator-bench.png");
}

.detail-planning {
  --detail-image: url("../images/generated-detail-planning.png");
}

.detail-qa {
  --detail-image: url("../images/generated-detail-qa.png");
}

.detail-metabolic {
  --detail-image: url("../images/generated-detail-metabolic.png");
}

.detail-library-research {
  --detail-image: url("../images/generated-detail-library-research.png");
}

@media (max-width: 760px) {
  .detail-image-pass > .section.tight:nth-child(2) .container::before,
  .blog-post-page.detail-image-pass > .section:first-child .container::before {
    height: 180px;
    margin-bottom: 18px;
    background-position: center;
  }
}

/* Navaro brand assets */
.brand .mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 10px;
  background: url("../images/navaro-icon.png") center / cover no-repeat;
  box-shadow: 0 10px 24px rgba(34, 27, 18, 0.14);
  color: transparent;
  font-size: 0;
}

.brand .mark::before {
  content: none;
}

.site-footer .container > div:first-child h4 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .container > div:first-child h4::before {
  content: "";
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: url("../images/navaro-icon.png") center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.navaro-story {
  margin-top: 24px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(244, 239, 230, 0.86)),
    var(--surface);
  box-shadow: 0 22px 48px rgba(44, 34, 21, 0.08);
}

.navaro-story-logo {
  width: min(360px, 100%);
  margin: 0 auto 22px;
  border-radius: 8px;
}

.navaro-story h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.navaro-story p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.navaro-story p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 600;
}

.navaro-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.navaro-pillars div {
  min-height: 104px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.navaro-pillars strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.navaro-pillars span {
  font-weight: 700;
  color: var(--ink);
}

:root[data-theme="dark"] .navaro-story {
  background:
    linear-gradient(135deg, rgba(19, 19, 18, 0.96), rgba(30, 29, 27, 0.88)),
    var(--surface);
  border-color: rgba(247, 241, 231, 0.12);
}

:root[data-theme="dark"] .navaro-pillars div {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(247, 241, 231, 0.12);
}

@media (max-width: 860px) {
  .navaro-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand .mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .navaro-pillars {
    grid-template-columns: 1fr;
  }
}

/* Hero readability pass */
.hero.resource-hero,
.tools-hero,
.guides-hero,
.myths-hero,
.about-hero,
.library-hero,
.contact-hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero.resource-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.84), rgba(247, 241, 231, 0.84)),
    url("../images/hero-lab-vial.jpg") !important;
}

.tools-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.85), rgba(247, 241, 231, 0.85)),
    url("../images/generated-detail-calculator-bench.png") !important;
}

.guides-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.86), rgba(247, 241, 231, 0.86)),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

.myths-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.83), rgba(247, 241, 231, 0.83)),
    url("../images/ref-myths-hero.jpg") !important;
}

.about-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.84), rgba(247, 241, 231, 0.84)),
    url("../images/generated-detail-wellness-research.png") !important;
}

.library-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.86), rgba(247, 241, 231, 0.86)),
    url("../images/generated-detail-library-research.png") !important;
}

.contact-hero {
  background-image:
    linear-gradient(rgba(247, 241, 231, 0.85), rgba(247, 241, 231, 0.85)),
    url("../images/blog-feature-petri.jpg") !important;
}

.page-hero-copy,
.hero.resource-hero .hero-copy,
.blog-intro {
  color: var(--ink);
  text-shadow: none;
}

.page-hero h1,
.page-hero .lede,
.page-hero .eyebrow,
.hero.resource-hero h1,
.hero.resource-hero .lede,
.hero.resource-hero .eyebrow,
.blog-intro h1,
.blog-intro .lede,
.blog-intro .eyebrow {
  text-shadow: none;
}

.page-hero .lede,
.hero.resource-hero .lede,
.blog-intro .lede {
  color: #253033;
}

.blog-hero-section {
  background:
    linear-gradient(rgba(247, 241, 231, 0.86), rgba(247, 241, 231, 0.86)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

.blog-hero-section::after {
  content: none !important;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  background:
    linear-gradient(rgba(255, 250, 243, 0.88), rgba(255, 250, 243, 0.88)),
    url("../images/generated-detail-library-research.png") center / cover no-repeat !important;
}

@media (max-width: 760px) {
  .hero.resource-hero,
  .tools-hero,
  .guides-hero,
  .myths-hero,
  .about-hero,
  .library-hero,
  .contact-hero,
  .blog-hero-section {
    background-position: center !important;
  }
}

body.modal-open {
  overflow: hidden;
}

.first-visit-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 22, 0.58);
  backdrop-filter: blur(8px);
}

.first-visit-modal {
  width: min(620px, 100%);
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(17, 23, 22, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0.96)),
    var(--surface);
  box-shadow: 0 30px 90px rgba(4, 12, 14, 0.28);
  color: var(--ink);
}

.first-visit-brand {
  display: flex;
  justify-content: center;
}

.first-visit-brand img {
  width: min(220px, 70%);
  height: auto;
  border-radius: 8px;
}

.first-visit-modal h2 {
  margin: 4px 0 0;
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.first-visit-intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.first-visit-note {
  margin: 2px 0 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.first-visit-scroll {
  min-height: 190px;
  max-height: min(34vh, 300px);
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid rgba(17, 23, 22, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 -16px 28px rgba(123, 93, 58, 0.08);
}

.first-visit-scroll ul {
  margin: 0;
  padding-left: 19px;
}

.first-visit-scroll li {
  margin-bottom: 12px;
  line-height: 1.48;
}

.first-visit-scroll p {
  margin: 14px 0 0;
  line-height: 1.5;
}

.first-visit-doc-links {
  margin-top: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.72);
}

.first-visit-doc-links strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.first-visit-doc-links a {
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.first-visit-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(244, 239, 230, 0.7);
  font-weight: 700;
}

.first-visit-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.first-visit-continue {
  width: 100%;
  justify-content: center;
}

.first-visit-continue:disabled,
.first-visit-check input:disabled + span {
  opacity: 0.48;
  cursor: not-allowed;
}

.context-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.9);
  color: var(--ink-soft);
  box-shadow: 0 14px 36px rgba(44, 34, 21, 0.06);
}

.context-banner::before {
  content: "";
  width: 34px;
  height: 34px;
  grid-row: span 2;
  border-radius: 999px;
  background: var(--verified);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.7);
}

.context-banner.calculator::before {
  background: var(--accent);
}

.context-banner.protocol::before {
  background: var(--warning);
}

.context-banner strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.context-banner span {
  line-height: 1.45;
}

.evidence-scale {
  margin: 16px 0 18px;
  padding: 14px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(17, 23, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
}

.evidence-scale strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
}

.evidence-scale span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.evidence-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.evidence-dot.strong {
  background: #2f7d4f;
}

.evidence-dot.moderate {
  background: #c9a43c;
}

.evidence-dot.limited {
  background: #c77d36;
}

.evidence-dot.very-limited {
  background: #b94b4b;
}

@media (max-width: 640px) {
  .first-visit-overlay {
    padding: 12px;
  }

  .first-visit-modal {
    max-height: 88vh;
  }

  .first-visit-scroll {
    max-height: 32vh;
  }

  .context-banner {
    grid-template-columns: 1fr;
  }
}

/* Final readability and first-visit modal correction */
.first-visit-overlay {
  padding: 16px !important;
  align-items: center !important;
}

.first-visit-modal {
  width: min(500px, calc(100vw - 32px)) !important;
  max-height: min(600px, calc(100vh - 48px)) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  gap: 9px !important;
  padding: 18px !important;
  font-size: 16px !important;
  line-height: 1.42 !important;
}

.first-visit-brand img {
  width: min(150px, 54vw) !important;
  max-height: 74px !important;
  object-fit: contain !important;
}

.first-visit-modal h2 {
  margin: 2px 0 4px !important;
  font-size: 30px !important;
  line-height: 1.04 !important;
}

.first-visit-intro {
  font-size: 16px !important;
  line-height: 1.42 !important;
}

.first-visit-note {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.first-visit-scroll {
  flex: 1 1 auto !important;
  min-height: 136px !important;
  max-height: min(180px, 28vh) !important;
  padding: 13px 15px !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.first-visit-scroll li {
  margin-bottom: 9px !important;
}

.first-visit-doc-links {
  padding: 12px !important;
  gap: 6px !important;
}

.first-visit-check {
  padding: 10px 12px !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.first-visit-continue {
  min-height: 44px !important;
  font-size: 14px !important;
}

.hero.resource-hero,
.tools-hero,
.guides-hero,
.myths-hero,
.about-hero,
.library-hero,
.contact-hero,
.blog-hero-section {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero.resource-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.92), rgba(250, 247, 241, 0.92)),
    url("../images/hero-lab-vial.jpg") !important;
}

.tools-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.93), rgba(250, 247, 241, 0.93)),
    url("../images/generated-detail-calculator-bench.png") !important;
}

.guides-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.93), rgba(250, 247, 241, 0.93)),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

.myths-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.92), rgba(250, 247, 241, 0.92)),
    url("../images/ref-myths-hero.jpg") !important;
}

.about-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.93), rgba(250, 247, 241, 0.93)),
    url("../images/generated-detail-wellness-research.png") !important;
}

.library-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.93), rgba(250, 247, 241, 0.93)),
    url("../images/generated-detail-library-research.png") !important;
}

.contact-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.93), rgba(250, 247, 241, 0.93)),
    url("../images/blog-feature-petri.jpg") !important;
}

.blog-hero-section {
  background:
    linear-gradient(rgba(250, 247, 241, 0.93), rgba(250, 247, 241, 0.93)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  background:
    linear-gradient(rgba(255, 250, 243, 0.94), rgba(255, 250, 243, 0.94)),
    url("../images/generated-detail-library-research.png") center / cover no-repeat !important;
}

.page-hero-copy,
.hero.resource-hero .hero-copy,
.blog-intro {
  color: #101615 !important;
  text-shadow: none !important;
}

.page-hero h1,
.page-hero .lede,
.page-hero .eyebrow,
.hero.resource-hero h1,
.hero.resource-hero .lede,
.hero.resource-hero .eyebrow,
.blog-intro h1,
.blog-intro .lede,
.blog-intro .eyebrow {
  color: #101615 !important;
  text-shadow: none !important;
}

.page-hero .lede,
.hero.resource-hero .lede,
.blog-intro .lede {
  color: #26312f !important;
}

@media (max-width: 640px) {
  .first-visit-modal {
    width: min(430px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 24px) !important;
    padding: 16px !important;
  }

  .first-visit-brand img {
    width: 138px !important;
    max-height: 70px !important;
  }

  .first-visit-modal h2 {
    font-size: 28px !important;
  }

  .first-visit-intro {
    font-size: 15px !important;
  }

  .first-visit-scroll {
    min-height: 140px !important;
    max-height: 32vh !important;
    font-size: 14px !important;
  }
}

/* Library evidence placement */
.evidence-library-note h3 {
  margin-bottom: 12px !important;
}

.library-evidence-scale {
  display: grid;
  gap: 10px;
}

.library-evidence-scale span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.25;
}

.compound-card {
  position: relative;
}

.compound-evidence-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #c77d36;
  box-shadow: 0 0 0 5px rgba(255, 250, 243, 0.88), 0 6px 16px rgba(17, 23, 22, 0.16);
  z-index: 2;
}

.compound-evidence-dot.evidence-strong { background: #2f7d4f; }
.compound-evidence-dot.evidence-moderate { background: #c9a43c; }
.compound-evidence-dot.evidence-limited { background: #c77d36; }
.compound-evidence-dot.evidence-very-limited { background: #b94b4b; }

.badge.verified {
  background: rgba(47, 125, 79, 0.1) !important;
  color: #2f7d4f !important;
  border-color: rgba(47, 125, 79, 0.26) !important;
}

.badge.trial {
  background: rgba(201, 164, 60, 0.14) !important;
  color: #8a6c17 !important;
  border-color: rgba(201, 164, 60, 0.3) !important;
}

.badge.warning {
  background: rgba(199, 125, 54, 0.14) !important;
  color: #9d5a20 !important;
  border-color: rgba(199, 125, 54, 0.28) !important;
}

.badge.unverified,
.badge.danger {
  background: rgba(185, 75, 75, 0.12) !important;
  color: #9b3131 !important;
  border-color: rgba(185, 75, 75, 0.3) !important;
}

.compound-side-thumb {
  background:
    linear-gradient(rgba(255, 250, 243, 0.16), rgba(255, 250, 243, 0.16)),
    var(--compound-image) center / cover no-repeat !important;
}

.compound-page .section.tight .container > .flex-between,
.compound-page .compound-content > .flex-between {
  background:
    linear-gradient(rgba(255, 250, 243, 0.86), rgba(255, 250, 243, 0.86)),
    var(--compound-image) center / cover no-repeat !important;
}

/* Hero image visibility pass */
.hero.resource-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/hero-lab-vial.jpg") !important;
}

.tools-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/generated-detail-calculator-bench.png") !important;
}

.guides-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

.myths-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/ref-myths-hero.jpg") !important;
}

.about-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/generated-detail-wellness-research.png") !important;
}

.library-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/generated-detail-library-research.png") !important;
}

.contact-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/blog-feature-petri.jpg") !important;
}

.blog-hero-section {
  background:
    linear-gradient(rgba(250, 247, 241, 0.86), rgba(250, 247, 241, 0.86)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

/* Requested preview-only visual corrections */
.hero.resource-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.68), rgba(250, 247, 241, 0.68)),
    url("../images/about-hero-wellness.jpg") !important;
  background-position: center right !important;
}

.tools-hero,
.guides-hero,
.myths-hero,
.about-hero,
.library-hero,
.contact-hero,
.blog-hero-section {
  background-color: #faf7f1 !important;
}

.tools-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/generated-detail-calculator-bench.png") !important;
}

.guides-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

.myths-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/ref-myths-hero.jpg") !important;
}

.about-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/generated-detail-wellness-research.png") !important;
}

.library-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/generated-detail-library-research.png") !important;
}

.contact-hero {
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/blog-feature-petri.jpg") !important;
}

.blog-hero-section {
  background:
    linear-gradient(rgba(250, 247, 241, 0.76), rgba(250, 247, 241, 0.76)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

.first-visit-modal {
  max-height: calc(100vh - 28px) !important;
  overflow-y: auto !important;
  padding-bottom: 18px !important;
}

.first-visit-scroll {
  flex: 0 1 auto !important;
  max-height: min(150px, 22vh) !important;
}

.first-visit-continue {
  flex: 0 0 auto !important;
  width: 100% !important;
  margin-bottom: 0 !important;
}

.library-browser {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
}

.library-sidebar {
  position: static !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px) !important;
  gap: 16px 20px !important;
  align-items: start !important;
}

.library-sidebar h2 {
  grid-column: 1 / -1 !important;
  margin-bottom: 0 !important;
}

.library-sidebar .filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.library-sidebar .chip {
  width: auto !important;
  max-width: 100% !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}

.library-sidebar .library-note {
  margin-top: 0 !important;
}

.compound-card-top {
  padding-right: 34px !important;
}

.compound-card .category-pill,
.compound-card .compound-tag {
  width: fit-content !important;
  max-width: calc(100% - 34px) !important;
}

/* Compound overview redesign */
.compound-overview-card {
  width: 100%;
  margin-left: 0;
  transform: none;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 252, 247, 0.94), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.96), rgba(250, 247, 241, 0.9));
}

.compound-overview-card:hover {
  transform: none !important;
  border-color: var(--border) !important;
}

.compound-overview-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 10px;
}

.compound-overview-lede {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.55;
  max-width: 72ch;
  margin: 0 0 24px;
}

.compound-overview-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.68);
}

.overview-stat {
  min-height: 144px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.overview-stat + .overview-stat {
  border-left: 1px solid var(--border);
}

.overview-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 62, 166, 0.1);
}

.overview-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.overview-stat strong,
.overview-know-item strong,
.overview-row strong {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 800;
}

.overview-stat span:last-child {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.35;
}

.overview-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-top: 30px;
  padding: 0;
}

.overview-section + .overview-section {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.overview-section h4 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  margin: 0 0 20px;
  color: var(--ink);
}

.overview-research-summary {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.overview-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.overview-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.overview-row p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.overview-row .overview-icon {
  width: 44px;
  height: 44px;
}

.overview-evidence-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid currentColor;
  color: #2f7d4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 800;
}

.overview-evidence-icon::before {
  content: "ÃƒÂ¢Ã…â€œÃ¢â‚¬Å“";
}

.overview-evidence-icon.evidence-moderate { color: #c9a43c; }
.overview-evidence-icon.evidence-limited { color: #c77d36; }
.overview-evidence-icon.evidence-very-limited { color: #b94b4b; }

.overview-evidence-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.overview-evidence-level {
  display: block;
  margin-top: 4px;
  font-weight: 800;
  color: #2f7d4f;
}

.overview-evidence-level.evidence-moderate { color: #c9a43c; }
.overview-evidence-level.evidence-limited { color: #c77d36; }
.overview-evidence-level.evidence-very-limited { color: #b94b4b; }

.overview-evidence-meter {
  display: grid;
  grid-template-columns: repeat(10, 22px);
  gap: 6px;
}

.overview-evidence-meter i {
  display: block;
  height: 18px;
  border-radius: 5px;
  background: rgba(37, 35, 31, 0.1);
}

.overview-evidence-meter.evidence-strong i:nth-child(-n+8) { background: #2f7d4f; }
.overview-evidence-meter.evidence-moderate i:nth-child(-n+6) { background: #c9a43c; }
.overview-evidence-meter.evidence-limited i:nth-child(-n+4) { background: #c77d36; }
.overview-evidence-meter.evidence-very-limited i:nth-child(-n+2) { background: #b94b4b; }

.overview-know-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.overview-what-we-know {
  border-color: var(--border);
  background: transparent;
}

.overview-know-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 24px;
  min-height: 132px;
  align-items: start;
}

.overview-know-item + .overview-know-item {
  border-left: 1px solid var(--border);
}

.overview-know-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.overview-know-item .overview-icon {
  width: 46px;
  height: 46px;
}

@media (max-width: 980px) {
  .compound-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .overview-stat + .overview-stat {
    border-left: 0;
  }
  .overview-stat:nth-child(3n+2),
  .overview-stat:nth-child(3n+3) {
    border-left: 1px solid var(--border);
  }
  .overview-stat:nth-child(n+4) {
    border-top: 1px solid var(--border);
  }
  .overview-know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-know-item:nth-child(odd) {
    border-left: 0;
  }
  .overview-know-item:nth-child(n+3) {
    border-top: 1px solid var(--border);
    padding-top: 22px;
  }
}

@media (max-width: 640px) {
  .compound-overview-card {
    width: 100%;
    margin-left: 0;
    transform: none;
    padding: 22px;
  }
  .compound-overview-stats,
  .overview-know-grid {
    grid-template-columns: 1fr;
  }
  .overview-stat,
  .overview-know-item {
    border-left: 0 !important;
  }
  .overview-stat + .overview-stat,
  .overview-know-item + .overview-know-item {
    border-top: 1px solid var(--border);
  }
  .overview-evidence-line {
    grid-template-columns: 1fr;
  }
  .overview-evidence-meter {
    grid-template-columns: repeat(10, minmax(10px, 1fr));
  }
  .overview-section {
    padding: 0;
  }
  .overview-section + .overview-section {
    padding-top: 22px;
  }
}

@media (max-width: 820px) {
  .library-sidebar {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .library-sidebar .chip {
    width: 100% !important;
    white-space: normal !important;
  }
}

.overview-evidence-icon::before {
  content: "\2713" !important;
}

/* Compact compound overview: one original-width card, reference-style proportions */
.compound-overview-card {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.42 !important;
  padding: 24px !important;
}

.compound-overview-card h3 {
  font-family: var(--font-display) !important;
  font-size: clamp(2.05rem, 3.2vw, 2.65rem) !important;
  line-height: 1 !important;
  margin: 0 0 10px !important;
}

.compound-overview-lede {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.42 !important;
  max-width: 78ch !important;
  margin: 0 0 22px !important;
}

.compound-overview-stats {
  border-radius: 14px !important;
}

.overview-stat {
  min-height: 118px !important;
  padding: 14px 10px !important;
  gap: 7px !important;
}

.overview-icon-bubble {
  width: 48px !important;
  height: 48px !important;
}

.overview-icon {
  width: 30px !important;
  height: 30px !important;
}

.overview-stat strong,
.overview-row strong,
.overview-know-item strong {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
}

.overview-stat span:last-child {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

.overview-section {
  margin-top: 22px !important;
}

.overview-section h4 {
  font-family: var(--font-display) !important;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem) !important;
  line-height: 1.05 !important;
  margin: 0 0 14px !important;
}

.overview-row {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 10px 0 !important;
}

.overview-row .overview-icon,
.overview-evidence-icon {
  width: 34px !important;
  height: 34px !important;
}

.overview-evidence-icon {
  font-size: 1.05rem !important;
  border-width: 2px !important;
}

.overview-row p,
.overview-know-item p {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 14px !important;
  line-height: 1.34 !important;
}

.overview-evidence-level {
  font-family: Arial, "Helvetica Neue", sans-serif !important;
  font-size: 15px !important;
}

.overview-evidence-meter {
  grid-template-columns: repeat(10, 16px) !important;
  gap: 5px !important;
}

.overview-evidence-meter i {
  height: 13px !important;
  border-radius: 4px !important;
}

.overview-know-item {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 88px !important;
  padding: 6px 16px !important;
}

.overview-know-item .overview-icon {
  width: 32px !important;
  height: 32px !important;
}

@media (min-width: 620px) {
  .overview-research-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 30px !important;
    align-items: start !important;
  }
  .overview-research-summary h4,
  .overview-research-summary .overview-row:first-of-type,
  .overview-research-summary .overview-row:last-child {
    grid-column: 1 / -1 !important;
  }
  .overview-research-summary .overview-row {
    min-height: 68px !important;
  }
}

@media (max-width: 700px) {
  .compound-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .overview-stat {
    border-left: 0 !important;
    border-top: 0 !important;
  }
  .overview-stat:nth-child(even) {
    border-left: 1px solid var(--border) !important;
  }
  .overview-stat:nth-child(n+3) {
    border-top: 1px solid var(--border) !important;
  }
  .overview-know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .overview-know-item {
    border-left: 0 !important;
    border-top: 0 !important;
  }
  .overview-know-item:nth-child(even) {
    border-left: 1px solid var(--border) !important;
  }
  .overview-know-item:nth-child(n+3) {
    border-top: 1px solid var(--border) !important;
    padding-top: 12px !important;
  }
}

@media (max-width: 430px) {
  .compound-overview-stats,
  .overview-know-grid {
    grid-template-columns: 1fr !important;
  }
  .overview-stat,
  .overview-know-item {
    border-left: 0 !important;
  }
  .overview-stat + .overview-stat,
  .overview-know-item + .overview-know-item {
    border-top: 1px solid var(--border) !important;
  }
}

/* Final overview scale lock: keeps the redesigned block compact like the reference. */
.compound-overview-card {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 20px 22px !important;
  border-radius: 12px !important;
  transform: none !important;
}

.compound-overview-card:hover {
  transform: none !important;
}

.compound-overview-card h3 {
  font-size: clamp(2rem, 2.5vw, 2.35rem) !important;
  margin-bottom: 8px !important;
}

.compound-overview-lede {
  font-size: 14px !important;
  line-height: 1.38 !important;
  margin-bottom: 16px !important;
}

.compound-overview-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  border-radius: 12px !important;
}

.overview-stat {
  min-height: 94px !important;
  padding: 10px 8px !important;
  gap: 5px !important;
}

.overview-icon-bubble {
  width: 36px !important;
  height: 36px !important;
}

.overview-icon,
.overview-row .overview-icon,
.overview-know-item .overview-icon {
  width: 24px !important;
  height: 24px !important;
}

.overview-stat strong,
.overview-row strong,
.overview-know-item strong {
  font-size: 13px !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
}

.overview-stat span:last-child {
  font-size: 12.5px !important;
  line-height: 1.24 !important;
}

.overview-section {
  margin-top: 16px !important;
}

.overview-section + .overview-section {
  padding-top: 16px !important;
}

.overview-section h4 {
  font-size: clamp(1.35rem, 1.8vw, 1.55rem) !important;
  margin-bottom: 10px !important;
}

.overview-research-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 28px !important;
  row-gap: 0 !important;
}

.overview-research-summary h4,
.overview-research-summary .overview-row:first-of-type,
.overview-research-summary .overview-row:last-child {
  grid-column: 1 / -1 !important;
}

.overview-row {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 7px 0 !important;
}

.overview-row p,
.overview-know-item p {
  font-size: 12.5px !important;
  line-height: 1.28 !important;
  margin-top: 3px !important;
}

.overview-evidence-icon {
  width: 26px !important;
  height: 26px !important;
  border-width: 2px !important;
  font-size: 0.86rem !important;
}

.overview-evidence-line {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
}

.overview-evidence-level {
  font-size: 13px !important;
  margin-top: 2px !important;
}

.overview-evidence-meter {
  grid-template-columns: repeat(10, 12px) !important;
  gap: 4px !important;
}

.overview-evidence-meter i {
  height: 10px !important;
  border-radius: 3px !important;
}

.overview-know-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.overview-know-item {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  gap: 8px !important;
  min-height: 66px !important;
  padding: 5px 12px !important;
}

@media (max-width: 900px) {
  .compound-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .overview-stat:nth-child(even),
  .overview-stat:nth-child(3n+2),
  .overview-stat:nth-child(3n+3) {
    border-left: 1px solid var(--border) !important;
  }

  .overview-stat:nth-child(3n+1) {
    border-left: 0 !important;
  }

  .overview-stat:nth-child(n+4) {
    border-top: 1px solid var(--border) !important;
  }

  .overview-know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .overview-research-summary {
    grid-template-columns: 1fr !important;
  }

  .overview-evidence-line {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 901px) {
  .compound-overview-card {
    max-width: 980px !important;
    padding: 24px !important;
    border-radius: 14px !important;
  }

  .compound-overview-card h3 {
    font-size: clamp(2.1rem, 2.7vw, 2.55rem) !important;
    margin-bottom: 10px !important;
  }

  .compound-overview-lede {
    font-size: 15.5px !important;
    line-height: 1.42 !important;
    margin-bottom: 20px !important;
  }

  .compound-overview-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .overview-stat {
    min-height: 112px !important;
    padding: 12px 8px !important;
    gap: 7px !important;
  }

  .overview-icon-bubble {
    width: 44px !important;
    height: 44px !important;
  }

  .overview-icon,
  .overview-row .overview-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .overview-stat strong,
  .overview-row strong {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }

  .overview-stat span:last-child {
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .overview-section {
    margin-top: 22px !important;
  }

  .overview-section h4 {
    font-size: clamp(1.55rem, 2vw, 1.9rem) !important;
    margin-bottom: 14px !important;
  }

  .overview-research-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 30px !important;
  }

  .overview-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 10px 0 !important;
  }

  .overview-row p {
    font-size: 13.5px !important;
    line-height: 1.32 !important;
  }

  .overview-evidence-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }

  .overview-evidence-meter {
    grid-template-columns: repeat(10, 15px) !important;
    gap: 5px !important;
  }

  .overview-evidence-meter i {
    height: 12px !important;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .compound-overview-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .overview-stat {
    min-height: 88px !important;
    padding: 8px 4px !important;
  }

  .overview-stat,
  .overview-stat:nth-child(even),
  .overview-stat:nth-child(3n+1),
  .overview-stat:nth-child(3n+2),
  .overview-stat:nth-child(3n+3),
  .overview-stat:nth-child(n+4) {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  .overview-stat + .overview-stat {
    border-left: 1px solid var(--border) !important;
  }

  .overview-stat strong {
    font-size: 11.5px !important;
  }

  .overview-stat span:last-child {
    font-size: 11px !important;
  }

  .overview-icon-bubble {
    width: 30px !important;
    height: 30px !important;
  }

  .overview-icon,
  .overview-row .overview-icon,
  .overview-know-item .overview-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .overview-know-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .overview-know-item,
  .overview-know-item:nth-child(even),
  .overview-know-item:nth-child(n+3) {
    border-top: 0 !important;
    border-left: 0 !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 6px !important;
    min-height: 96px !important;
    padding: 4px 8px !important;
  }

  .overview-know-item + .overview-know-item {
    border-left: 1px solid var(--border) !important;
  }

  .overview-know-item strong {
    font-size: 11.5px !important;
  }

  .overview-know-item p {
    font-size: 11px !important;
  }
}

/* Restore the earlier mobile overview behavior. Desktop cleanup starts at 901px. */
@media (max-width: 900px) {
  .compound-overview-card {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 22px !important;
  }

  .compound-overview-card h3 {
    font-size: clamp(2rem, 7vw, 2.5rem) !important;
    margin-bottom: 10px !important;
  }

  .compound-overview-lede {
    font-size: 16px !important;
    line-height: 1.42 !important;
    margin-bottom: 22px !important;
  }

  .compound-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    border-radius: 14px !important;
  }

  .overview-stat {
    min-height: 118px !important;
    padding: 14px 10px !important;
    gap: 7px !important;
  }

  .overview-stat,
  .overview-stat:nth-child(even),
  .overview-stat:nth-child(3n+1),
  .overview-stat:nth-child(3n+2),
  .overview-stat:nth-child(3n+3),
  .overview-stat:nth-child(n+4) {
    border-top: 0 !important;
    border-left: 0 !important;
  }

  .overview-stat:nth-child(3n+2),
  .overview-stat:nth-child(3n+3) {
    border-left: 1px solid var(--border) !important;
  }

  .overview-stat:nth-child(n+4) {
    border-top: 1px solid var(--border) !important;
  }

  .overview-icon-bubble {
    width: 48px !important;
    height: 48px !important;
  }

  .overview-icon,
  .overview-row .overview-icon {
    width: 30px !important;
    height: 30px !important;
  }

  .overview-stat strong,
  .overview-row strong {
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  .overview-stat span:last-child,
  .overview-row p {
    font-size: 14px !important;
    line-height: 1.34 !important;
  }

  .overview-section {
    margin-top: 22px !important;
  }

  .overview-section + .overview-section {
    padding-top: 22px !important;
  }

  .overview-section h4 {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
    margin-bottom: 14px !important;
  }

  .overview-row {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 10px 0 !important;
  }

  .overview-evidence-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.05rem !important;
  }

  .overview-evidence-meter {
    grid-template-columns: repeat(10, 16px) !important;
    gap: 5px !important;
  }

  .overview-evidence-meter i {
    height: 13px !important;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .overview-research-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 30px !important;
  }
}

@media (max-width: 620px) {
  .overview-research-summary {
    display: block !important;
  }

  .overview-evidence-line {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .compound-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .overview-stat,
  .overview-stat:nth-child(3n+2),
  .overview-stat:nth-child(3n+3),
  .overview-stat:nth-child(n+4) {
    border-left: 0 !important;
    border-top: 0 !important;
  }

  .overview-stat:nth-child(even) {
    border-left: 1px solid var(--border) !important;
  }

  .overview-stat:nth-child(n+3) {
    border-top: 1px solid var(--border) !important;
  }
}

@media (max-width: 430px) {
  .compound-overview-stats {
    grid-template-columns: 1fr !important;
  }

  .overview-stat,
  .overview-stat:nth-child(even),
  .overview-stat:nth-child(n+3) {
    border-left: 0 !important;
    border-top: 0 !important;
  }

  .overview-stat + .overview-stat {
    border-top: 1px solid var(--border) !important;
  }
}

/* Scoped navigation/search/theme and compound-page cleanup */
#themeToggle {
  display: inline-flex !important;
}

.site-header .bar {
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  cursor: pointer;
  font: 700 1rem/1 var(--font-body);
}

.nav-icon-btn:hover,
.nav-icon-btn:focus-visible {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

:root[data-theme="dark"] .nav-icon-btn {
  background: rgba(246, 239, 228, 0.08);
  border-color: rgba(225, 211, 190, 0.26);
  color: var(--ink);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .disclaimer-banner,
:root[data-theme="dark"] .site-footer {
  background: rgba(10, 28, 28, 0.94);
}

:root[data-theme="dark"] {
  --bg: #1d2422;
  --surface: #262c29;
  --surface-2: #202724;
  --ink: #f4eee6;
  --ink-soft: #d8cec0;
  --muted: #baae9f;
  --border: rgba(231, 216, 195, 0.18);
  --border-strong: rgba(231, 216, 195, 0.32);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% 8%, rgba(151, 118, 79, 0.16), transparent 32%),
    radial-gradient(circle at 86% 20%, rgba(92, 125, 132, 0.12), transparent 34%),
    linear-gradient(180deg, #222926 0%, #1b2322 48%, #171f1f 100%) !important;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .compound-overview-card,
:root[data-theme="dark"] .site-search-results,
:root[data-theme="dark"] .nav-dropdown-menu,
:root[data-theme="dark"] .compound-jump-nav {
  background: rgba(35, 42, 39, 0.94);
}

.search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: block;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -4px;
  transform: rotate(45deg);
  border-radius: 999px;
  background: currentColor;
}

.site-search {
  display: none;
  position: relative;
  flex: 1 1 420px;
  max-width: 620px;
  min-width: 220px;
}

.site-header.search-active .site-search {
  display: block;
}

.site-header.search-active .main-nav:not(.open) {
  display: none !important;
}

.site-header.search-active .nav-toggle,
.site-header.search-active .nav-toggle.btn {
  display: inline-flex !important;
}

.site-search input {
  width: 100%;
  height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.94);
}

:root[data-theme="dark"] .site-search input {
  background: rgba(246, 239, 228, 0.1);
}

.site-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(34, 27, 18, 0.18);
}

.site-search-results.open {
  display: block;
}

.site-search-results a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.site-search-results a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.site-search-results small,
.site-search-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-search-empty {
  padding: 11px 14px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  padding: 7px 9px;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--accent-bright);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 75;
  min-width: 150px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(34, 27, 18, 0.15);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 10px !important;
}

.compound-side-panel .jump-nav,
.compound-side-panel .research-note {
  display: none !important;
}

.compound-jump-nav {
  position: sticky;
  top: 86px;
  z-index: 18;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  margin: 0 0 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(34, 27, 18, 0.08);
}

.compound-jump-nav span {
  flex: 0 0 auto;
  margin-right: 4px;
}

.compound-jump-nav a {
  background: rgba(17, 23, 22, 0.045);
}

.compound-overview-card,
.compound-overview-card p,
.compound-overview-card span,
.compound-overview-card strong,
.compound-overview-card small {
  font-family: var(--font-body) !important;
}

.compound-overview-card h3,
.compound-overview-card h4 {
  font-family: var(--font-display) !important;
}

.library-browser.has-query .library-results {
  order: -1;
}

.library-browser.has-query .library-sidebar {
  order: 0;
}

@media (max-width: 900px) {
  .site-header .bar {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }

  .main-nav {
    order: 4;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
  }

  .compound-jump-nav {
    position: static;
  }
}

/* Final dark-mode/search/jump-section correction pass */
:root[data-theme="dark"] {
  --bg: #111111;
  --bg-deep: #080808;
  --surface: #181818;
  --surface-2: #202020;
  --surface-3: #292929;
  --ink: #f3f0eb;
  --ink-soft: #d7d1c8;
  --muted: #aaa199;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.26);
  --accent: #c8a875;
  --accent-bright: #ead2a7;
  --accent-deep: #0d0d0d;
  --accent-soft: rgba(200, 168, 117, 0.16);
  --gold: #d7b47a;
  --verified: #8fb9e8;
  --verified-soft: rgba(143, 185, 232, 0.14);
  --trial: #b9a0e8;
  --trial-soft: rgba(185, 160, 232, 0.14);
  --warning: #f0aa61;
  --warning-soft: rgba(240, 170, 97, 0.15);
  --danger: #ff7a86;
  --danger-soft: rgba(255, 122, 134, 0.14);
  --unverified: #b9b2aa;
  --unverified-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

:root[data-theme="dark"] body {
  background: #111111 !important;
  background-image: linear-gradient(180deg, #171717 0, #111111 360px, #0e0e0e 100%) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .disclaimer-banner,
:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .site-footer {
  background: #0b0b0b !important;
  color: var(--ink) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .tool-tile,
:root[data-theme="dark"] .myth,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .compound-row,
:root[data-theme="dark"] .compound-side-panel,
:root[data-theme="dark"] .compound-overview-card,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .result-panel,
:root[data-theme="dark"] .guide-feature,
:root[data-theme="dark"] .home-mini-card,
:root[data-theme="dark"] .home-image-card,
:root[data-theme="dark"] .home-standard-section .source-step,
:root[data-theme="dark"] .glp1-dx-panel,
:root[data-theme="dark"] .glp1-dx-aside,
:root[data-theme="dark"] .overview-stat,
:root[data-theme="dark"] .overview-section,
:root[data-theme="dark"] .site-search-results,
:root[data-theme="dark"] .nav-dropdown-menu,
:root[data-theme="dark"] .library-sidebar,
:root[data-theme="dark"] .context-banner {
  background-color: #181818 !important;
  color: var(--ink) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32) !important;
}

:root[data-theme="dark"] .section,
:root[data-theme="dark"] .section.tight > .container {
  background: transparent !important;
}

:root[data-theme="dark"] p,
:root[data-theme="dark"] .lede,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .hint,
:root[data-theme="dark"] .compound-description,
:root[data-theme="dark"] .glp1-dx-panel p,
:root[data-theme="dark"] .glp1-dx-intro,
:root[data-theme="dark"] .glp1-dx-note,
:root[data-theme="dark"] .overview-row p,
:root[data-theme="dark"] .overview-stat span:last-child,
:root[data-theme="dark"] td {
  color: var(--ink-soft) !important;
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] th,
:root[data-theme="dark"] strong,
:root[data-theme="dark"] .name,
:root[data-theme="dark"] .brand,
:root[data-theme="dark"] .main-nav a,
:root[data-theme="dark"] .nav-dropdown-toggle,
:root[data-theme="dark"] .page-hero h1,
:root[data-theme="dark"] .hero.resource-hero h1,
:root[data-theme="dark"] .blog-intro h1,
:root[data-theme="dark"] .page-hero .eyebrow,
:root[data-theme="dark"] .hero.resource-hero .eyebrow,
:root[data-theme="dark"] .blog-intro .eyebrow {
  color: var(--ink) !important;
}

:root[data-theme="dark"] .page-hero .lede,
:root[data-theme="dark"] .hero.resource-hero .lede,
:root[data-theme="dark"] .blog-intro .lede {
  color: var(--ink-soft) !important;
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .category-pill,
:root[data-theme="dark"] .compound-tag,
:root[data-theme="dark"] .chip {
  background: #242424 !important;
  color: #e7ddd0 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #151515 !important;
  color: var(--ink) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

:root[data-theme="dark"] input::placeholder {
  color: #8f8880 !important;
}

:root[data-theme="dark"] .btn {
  background: #f0dfc3 !important;
  color: #101010 !important;
  border-color: #f0dfc3 !important;
}

:root[data-theme="dark"] .btn.secondary,
:root[data-theme="dark"] .nav-cta {
  background: #1e1e1e !important;
  color: var(--ink) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

:root[data-theme="dark"] .badge.verified {
  background: rgba(143, 185, 232, 0.16) !important;
  color: #bad7f7 !important;
  border-color: rgba(143, 185, 232, 0.34) !important;
}

:root[data-theme="dark"] .badge.trial {
  background: rgba(185, 160, 232, 0.16) !important;
  color: #d5c4ff !important;
  border-color: rgba(185, 160, 232, 0.34) !important;
}

:root[data-theme="dark"] .badge.warning {
  background: rgba(240, 170, 97, 0.16) !important;
  color: #ffd09b !important;
  border-color: rgba(240, 170, 97, 0.34) !important;
}

:root[data-theme="dark"] .badge.danger,
:root[data-theme="dark"] .badge.unverified {
  background: rgba(255, 122, 134, 0.14) !important;
  color: #ffb6bd !important;
  border-color: rgba(255, 122, 134, 0.32) !important;
}

:root[data-theme="dark"] .compound-evidence-dot.evidence-strong,
:root[data-theme="dark"] .evidence-dot.strong,
:root[data-theme="dark"] .overview-evidence-meter.evidence-strong i:nth-child(-n+8) {
  background: #8fb9e8 !important;
}

:root[data-theme="dark"] .overview-evidence-icon.evidence-strong,
:root[data-theme="dark"] .overview-evidence-level.evidence-strong {
  color: #bad7f7 !important;
}

:root[data-theme="dark"] .hero.resource-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/about-hero-wellness.jpg") !important;
}

:root[data-theme="dark"] .tools-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/generated-detail-calculator-bench.png") !important;
}

:root[data-theme="dark"] .guides-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

:root[data-theme="dark"] .myths-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/ref-myths-hero.jpg") !important;
}

:root[data-theme="dark"] .about-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/generated-detail-wellness-research.png") !important;
}

:root[data-theme="dark"] .library-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/generated-detail-library-research.png") !important;
}

:root[data-theme="dark"] .contact-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/blog-feature-petri.jpg") !important;
}

:root[data-theme="dark"] .blog-hero-section {
  background:
    linear-gradient(rgba(17, 17, 17, 0.76), rgba(17, 17, 17, 0.76)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .compound-page .section.tight .container > .flex-between,
:root[data-theme="dark"] .compound-page .compound-content > .flex-between,
:root[data-theme="dark"] .compound-side-thumb {
  background:
    linear-gradient(rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.78)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .home-image-card,
:root[data-theme="dark"] .guide-feature,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .myth-feature-card,
:root[data-theme="dark"] .nutrition-card,
:root[data-theme="dark"] .body-card {
  background-blend-mode: multiply !important;
}

:root[data-theme="dark"] .home-image-card::after,
:root[data-theme="dark"] .guide-feature::before,
:root[data-theme="dark"] .blog-card::before,
:root[data-theme="dark"] .blog-card::after,
:root[data-theme="dark"] .myths-page #mythList .myth::after,
:root[data-theme="dark"] .tools-page .tool-card::after,
:root[data-theme="dark"] .home-tools-section .home-mini-card::after {
  filter: brightness(0.55) saturate(0.82) !important;
  opacity: 0.5 !important;
}

.header-search-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-search-toggle.nav-icon-btn {
  width: 25px;
  height: 25px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
}

.site-search-toggle.nav-icon-btn:hover,
.site-search-toggle.nav-icon-btn:focus-visible {
  color: var(--accent-bright);
}

.site-search-toggle .search-icon {
  width: 14px;
  height: 14px;
  border-width: 1.8px;
}

.site-search-toggle .search-icon::after {
  width: 6px;
  right: -5px;
  bottom: -3px;
}

.theme-toggle.nav-icon-btn {
  width: 32px;
  height: 32px;
  font-size: 0.88rem;
}

.site-search {
  flex: 0 1 320px;
  max-width: 340px;
  min-width: 210px;
}

.site-search input {
  height: 36px;
  padding: 7px 12px;
  font-size: 0.9rem;
}

.site-header.search-active .main-nav:not(.open) {
  display: none !important;
}

.compound-jump-nav {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 16px;
  margin: 0 0 24px;
  border-radius: 8px;
  background: var(--surface) !important;
  backdrop-filter: none;
}

.compound-jump-nav span {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compound-jump-nav a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  line-height: 1.2;
}

.compound-jump-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-bright) !important;
}

@media (max-width: 900px) {
  .header-search-cluster {
    order: 2;
    flex: 1 1 auto;
  }

  .site-search {
    flex: 1 1 230px;
    max-width: none;
    min-width: 0;
  }

  .header-actions {
    order: 3;
  }

  .main-nav {
    order: 4;
  }
}

@media (max-width: 640px) {
  .compound-jump-nav {
    grid-template-columns: 1fr;
  }
}

/* Final readability guard: text always follows the actual surface tone. */
:root:not([data-theme="dark"]) .card,
:root:not([data-theme="dark"]) .compound-overview-card,
:root:not([data-theme="dark"]) .compound-side-panel,
:root:not([data-theme="dark"]) .table-wrap,
:root:not([data-theme="dark"]) .result-panel,
:root:not([data-theme="dark"]) .library-sidebar,
:root:not([data-theme="dark"]) .site-search-results,
:root:not([data-theme="dark"]) .compound-jump-nav,
:root:not([data-theme="dark"]) .compound-jump-nav a {
  color: var(--ink) !important;
}

:root:not([data-theme="dark"]) .page-hero h1,
:root:not([data-theme="dark"]) .page-hero .lede,
:root:not([data-theme="dark"]) .page-hero .eyebrow,
:root:not([data-theme="dark"]) .hero.resource-hero h1,
:root:not([data-theme="dark"]) .hero.resource-hero .lede,
:root:not([data-theme="dark"]) .hero.resource-hero .eyebrow,
:root:not([data-theme="dark"]) .blog-intro h1,
:root:not([data-theme="dark"]) .blog-intro .lede,
:root:not([data-theme="dark"]) .blog-intro .eyebrow,
:root:not([data-theme="dark"]) .compound-page .compound-content > .flex-between h1,
:root:not([data-theme="dark"]) .compound-page .compound-content > .flex-between .btn.secondary {
  color: #101615 !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .compound-overview-card,
:root[data-theme="dark"] .compound-side-panel,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .result-panel,
:root[data-theme="dark"] .library-sidebar,
:root[data-theme="dark"] .site-search-results,
:root[data-theme="dark"] .compound-jump-nav,
:root[data-theme="dark"] .compound-jump-nav a,
:root[data-theme="dark"] .nav-dropdown-menu {
  color: var(--ink) !important;
}

:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .hero.resource-hero,
:root[data-theme="dark"] .blog-hero-section,
:root[data-theme="dark"] .blog-intro,
:root[data-theme="dark"] .compound-page .compound-content > .flex-between,
:root[data-theme="dark"] .featured-card,
:root[data-theme="dark"] .article-card,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .popular-tool-card,
:root[data-theme="dark"] .guide-feature,
:root[data-theme="dark"] .home-image-card,
:root[data-theme="dark"] .home-mini-card,
:root[data-theme="dark"] .myth-feature-card,
:root[data-theme="dark"] .image-card,
:root[data-theme="dark"] .nutrition-card,
:root[data-theme="dark"] .body-card {
  background-color: #111111 !important;
  background-blend-mode: multiply !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .page-hero *,
:root[data-theme="dark"] .hero.resource-hero *,
:root[data-theme="dark"] .blog-hero-section *,
:root[data-theme="dark"] .blog-intro *,
:root[data-theme="dark"] .compound-page .compound-content > .flex-between *,
:root[data-theme="dark"] .featured-card *,
:root[data-theme="dark"] .article-card *,
:root[data-theme="dark"] .blog-card *,
:root[data-theme="dark"] .tool-card *,
:root[data-theme="dark"] .popular-tool-card *,
:root[data-theme="dark"] .guide-feature *,
:root[data-theme="dark"] .home-image-card *,
:root[data-theme="dark"] .home-mini-card *,
:root[data-theme="dark"] .myth-feature-card *,
:root[data-theme="dark"] .image-card *,
:root[data-theme="dark"] .nutrition-card *,
:root[data-theme="dark"] .body-card * {
  color: var(--ink) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38) !important;
}

:root[data-theme="dark"] .page-hero .lede,
:root[data-theme="dark"] .hero.resource-hero .lede,
:root[data-theme="dark"] .blog-intro .lede,
:root[data-theme="dark"] .featured-card p,
:root[data-theme="dark"] .article-card p,
:root[data-theme="dark"] .blog-card p,
:root[data-theme="dark"] .tool-card p,
:root[data-theme="dark"] .guide-feature p,
:root[data-theme="dark"] .home-image-card p,
:root[data-theme="dark"] .home-mini-card p,
:root[data-theme="dark"] .myth-feature-card p,
:root[data-theme="dark"] .image-card p {
  color: var(--ink-soft) !important;
}

:root[data-theme="dark"] .featured-card::before,
:root[data-theme="dark"] .featured-card::after,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .article-card::after,
:root[data-theme="dark"] .blog-card::before,
:root[data-theme="dark"] .blog-card::after,
:root[data-theme="dark"] .tool-card::after,
:root[data-theme="dark"] .popular-tool-card::after,
:root[data-theme="dark"] .guide-feature::before,
:root[data-theme="dark"] .home-image-card::after,
:root[data-theme="dark"] .home-mini-card::after,
:root[data-theme="dark"] .myth-feature-card::after,
:root[data-theme="dark"] .image-card::after {
  filter: brightness(0.48) saturate(0.8) !important;
  opacity: 0.42 !important;
}

:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .btn *,
:root[data-theme="dark"] .nav-cta,
:root[data-theme="dark"] .nav-cta * {
  text-shadow: none !important;
}

/* Final image visibility match: use the homepage hero darkness everywhere. */
:root[data-theme="dark"] .tools-hero,
:root[data-theme="dark"] .guides-hero,
:root[data-theme="dark"] .myths-hero,
:root[data-theme="dark"] .about-hero,
:root[data-theme="dark"] .library-hero,
:root[data-theme="dark"] .contact-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    var(--mobile-hero-image) !important;
}

:root[data-theme="dark"] .tools-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/generated-detail-calculator-bench.png") !important;
}

:root[data-theme="dark"] .guides-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

:root[data-theme="dark"] .myths-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/ref-myths-hero.jpg") !important;
}

:root[data-theme="dark"] .about-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/generated-detail-wellness-research.png") !important;
}

:root[data-theme="dark"] .library-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/generated-detail-library-research.png") !important;
}

:root[data-theme="dark"] .contact-hero {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/blog-feature-petri.jpg") !important;
}

:root[data-theme="dark"] .blog-hero-section {
  background:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .compound-page .section.tight .container > .flex-between,
:root[data-theme="dark"] .compound-page .compound-content > .flex-between,
:root[data-theme="dark"] .compound-side-thumb {
  background:
    linear-gradient(rgba(17, 17, 17, 0.74), rgba(17, 17, 17, 0.74)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .featured-card,
:root[data-theme="dark"] .article-card,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .popular-tool-card,
:root[data-theme="dark"] .guide-feature,
:root[data-theme="dark"] .home-image-card,
:root[data-theme="dark"] .home-mini-card,
:root[data-theme="dark"] .myth-feature-card,
:root[data-theme="dark"] .image-card,
:root[data-theme="dark"] .nutrition-card,
:root[data-theme="dark"] .body-card {
  background-blend-mode: normal !important;
}

:root[data-theme="dark"] .featured-card::before,
:root[data-theme="dark"] .featured-card::after,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .article-card::after,
:root[data-theme="dark"] .blog-card::before,
:root[data-theme="dark"] .blog-card::after,
:root[data-theme="dark"] .tool-card::after,
:root[data-theme="dark"] .popular-tool-card::after,
:root[data-theme="dark"] .guide-feature::before,
:root[data-theme="dark"] .home-image-card::after,
:root[data-theme="dark"] .home-mini-card::after,
:root[data-theme="dark"] .myth-feature-card::after,
:root[data-theme="dark"] .image-card::after {
  filter: none !important;
  opacity: 0.74 !important;
}

:root[data-theme="dark"] .myths-page #mythList .myth::after,
:root[data-theme="dark"] .tools-page .tool-card::after,
:root[data-theme="dark"] .home-tools-section .home-mini-card::after {
  filter: none !important;
  opacity: 0.74 !important;
}

:root[data-theme="dark"] .page-panel {
  background: #181818 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .proof-icon,
:root[data-theme="dark"] .line-icon {
  background: rgba(17, 17, 17, 0.66) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #bad7f7 !important;
}

:root[data-theme="dark"] .btn {
  background: #f0dfc3 !important;
  border-color: #f0dfc3 !important;
  color: #101010 !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .hero.resource-hero .btn:not(.secondary),
:root[data-theme="dark"] .page-hero .btn:not(.secondary),
:root[data-theme="dark"] .blog-hero-section .btn:not(.secondary),
:root[data-theme="dark"] .featured-card .btn:not(.secondary),
:root[data-theme="dark"] .article-card .btn:not(.secondary),
:root[data-theme="dark"] .blog-card .btn:not(.secondary),
:root[data-theme="dark"] .tool-card .btn:not(.secondary),
:root[data-theme="dark"] .popular-tool-card .btn:not(.secondary),
:root[data-theme="dark"] .guide-feature .btn:not(.secondary),
:root[data-theme="dark"] .home-image-card .btn:not(.secondary),
:root[data-theme="dark"] .home-mini-card .btn:not(.secondary),
:root[data-theme="dark"] .myth-feature-card .btn:not(.secondary),
:root[data-theme="dark"] .image-card .btn:not(.secondary) {
  color: #101010 !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .btn.secondary,
:root[data-theme="dark"] .nav-cta {
  background: #1e1e1e !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .home-start-grid {
  background:
    linear-gradient(135deg, rgba(24, 24, 24, 0.96), rgba(31, 31, 31, 0.9)),
    var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] .home-symptom-box {
  background: #202020 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .home-symptom-box label {
  color: var(--ink) !important;
}

:root[data-theme="dark"] .home-symptom-box .muted {
  color: var(--ink-soft) !important;
}

:root:not([data-theme="dark"]) .compound-page .compound-content > .flex-between .btn.secondary {
  color: #101615 !important;
}

/* Dark mode image/readability correction: match the tools-page image treatment. */
:root[data-theme="dark"] .hero.resource-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/about-hero-wellness.jpg") center right / cover no-repeat !important;
}

:root[data-theme="dark"] .tools-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/generated-detail-calculator-bench.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .guides-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/navaro-dosage-guides-editorial.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .myths-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/ref-myths-hero.jpg") center / cover no-repeat !important;
}

:root[data-theme="dark"] .about-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/generated-detail-wellness-research.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .library-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/generated-detail-library-research.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .contact-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/blog-feature-petri.jpg") center / cover no-repeat !important;
}

:root[data-theme="dark"] .blog-hero-section {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .compound-page .section.tight .container > .flex-between,
:root[data-theme="dark"] .compound-page .compound-content > .flex-between,
:root[data-theme="dark"] .compound-side-thumb {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .guide-feature::before,
:root[data-theme="dark"] .home-image-card::after,
:root[data-theme="dark"] .home-mini-card::after,
:root[data-theme="dark"] .blog-card::before,
:root[data-theme="dark"] .blog-card::after,
:root[data-theme="dark"] .myth-feature-card::after,
:root[data-theme="dark"] .image-card::after,
:root[data-theme="dark"] .featured-card::before,
:root[data-theme="dark"] .featured-card::after,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .article-card::after {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)) !important;
  filter: none !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] .about-beliefs,
:root[data-theme="dark"] .trust-strip,
:root[data-theme="dark"] .evidence-library-note,
:root[data-theme="dark"] .evidence-scale {
  background: #181818 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28) !important;
}

:root[data-theme="dark"] .about-beliefs .eyebrow,
:root[data-theme="dark"] .about-beliefs h3,
:root[data-theme="dark"] .trust-strip h3,
:root[data-theme="dark"] .trust-strip > span,
:root[data-theme="dark"] .evidence-library-note h3,
:root[data-theme="dark"] .evidence-scale strong {
  color: var(--ink) !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .about-beliefs p,
:root[data-theme="dark"] .trust-strip p,
:root[data-theme="dark"] .library-evidence-scale span,
:root[data-theme="dark"] .evidence-scale span {
  color: var(--ink-soft) !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .vision-card {
  background-image:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    url("../images/about-hero-wellness.jpg") !important;
  color: #fffaf3 !important;
}

:root[data-theme="dark"] .vision-card h2,
:root[data-theme="dark"] .vision-card p,
:root[data-theme="dark"] .mission-card h2,
:root[data-theme="dark"] .mission-card p {
  color: #fffaf3 !important;
}

:root[data-theme="dark"] .trust-strip .line-icon,
:root[data-theme="dark"] .about-proof-row span,
:root[data-theme="dark"] .mini-proof-row span,
:root[data-theme="dark"] .evidence-dot,
:root[data-theme="dark"] .compound-evidence-dot {
  box-shadow: 0 0 0 5px rgba(24, 24, 24, 0.92), 0 8px 18px rgba(0, 0, 0, 0.24) !important;
}

:root[data-theme="dark"] .about-proof-row span,
:root[data-theme="dark"] .mini-proof-row span,
:root[data-theme="dark"] .myth-proof-row span {
  background: #202020 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink-soft) !important;
}

:root[data-theme="dark"] .library-view-controls {
  background: #202020 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink-soft) !important;
}

:root[data-theme="dark"] .library-view-controls span,
:root[data-theme="dark"] .compound-card .go {
  color: var(--accent-bright) !important;
}

/* Homepage dark mode only: preserve every light-mode image and fix local contrast. */
:root[data-theme="dark"] .home-page .home-section-visual {
  background:
    linear-gradient(135deg, rgba(24, 24, 24, 0.96), rgba(31, 31, 31, 0.9)),
    var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink) !important;
}

:root[data-theme="dark"] .home-page .home-section-visual h2,
:root[data-theme="dark"] .home-page .home-section-visual .eyebrow {
  color: var(--ink) !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .home-page .home-section-visual .lede {
  color: var(--ink-soft) !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .home-page .home-start-image {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.28), rgba(4, 17, 20, 0.04)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat !important;
}

:root[data-theme="dark"] .home-page .home-tool-art {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.28), rgba(4, 17, 20, 0.04)),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat !important;
}

:root[data-theme="dark"] .home-page .home-section-visual.home-tools-hero {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.28), rgba(4, 17, 20, 0.04)),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat !important;
  color: #fffaf3 !important;
}

:root[data-theme="dark"] .home-page .home-section-visual.home-tools-hero h2,
:root[data-theme="dark"] .home-page .home-section-visual.home-tools-hero .eyebrow,
:root[data-theme="dark"] .home-page .home-section-visual.home-tools-hero .lede {
  color: #fffaf3 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.36) !important;
}

:root[data-theme="dark"] .home-page .home-section-visual.home-tools-hero .lede {
  color: rgba(255, 250, 243, 0.88) !important;
}

:root[data-theme="dark"] .home-page .featured-card::after,
:root[data-theme="dark"] .home-page .article-card::after {
  background: inherit !important;
  background-size: cover !important;
  background-position: center !important;
  filter: none !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] .home-page .featured-card::before,
:root[data-theme="dark"] .home-page .article-card::before,
:root[data-theme="dark"] .home-page .home-image-card::after,
:root[data-theme="dark"] .home-page .home-mini-card::after {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)) !important;
  filter: none !important;
  opacity: 1 !important;
}

:root[data-theme="dark"] .home-page .featured-card,
:root[data-theme="dark"] .home-page .article-card,
:root[data-theme="dark"] .home-page .home-image-card,
:root[data-theme="dark"] .home-page .home-mini-card {
  background-blend-mode: normal !important;
}

:root[data-theme="dark"] .home-page .featured-card h3,
:root[data-theme="dark"] .home-page .featured-card p,
:root[data-theme="dark"] .home-page .featured-card .featured-link,
:root[data-theme="dark"] .home-page .article-card h3,
:root[data-theme="dark"] .home-page .article-card .featured-link,
:root[data-theme="dark"] .home-page .home-image-card h3,
:root[data-theme="dark"] .home-page .home-image-card p,
:root[data-theme="dark"] .home-page .home-image-card .go,
:root[data-theme="dark"] .home-page .home-mini-card h3,
:root[data-theme="dark"] .home-page .home-mini-card p,
:root[data-theme="dark"] .home-page .home-mini-card .line-icon {
  color: #fffaf3 !important;
}

/* Dark mode only: keep myth cards readable and restore detail-page image headers. */
:root[data-theme="dark"] .myths-page #mythList .myth {
  background:
    linear-gradient(135deg, rgba(24, 24, 24, 0.97), rgba(31, 31, 31, 0.93)),
    var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme="dark"] .myths-page #mythList .myth h3,
:root[data-theme="dark"] .myths-page #mythList .myth strong {
  color: var(--ink) !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .myths-page #mythList .myth p,
:root[data-theme="dark"] .myths-page #mythList .myth .muted {
  color: var(--ink-soft) !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .myths-page #mythList .myth .myth-toggle {
  background: #f0dfc3 !important;
  border-color: #f0dfc3 !important;
  color: #101010 !important;
}

:root[data-theme="dark"] .tool-detail-page.detail-image-pass > .section.tight:first-child,
:root[data-theme="dark"] .guide-detail-page.detail-image-pass > .section.tight:first-child {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    var(--detail-image) center / cover no-repeat !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

:root[data-theme="dark"] .detail-image-pass > .section.tight:nth-child(2) .container::before,
:root[data-theme="dark"] .blog-post-page.detail-image-pass > .section:first-child .container::before {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)),
    var(--detail-image) center / cover no-repeat !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34) !important;
}

/* Claude product pass: homepage rhythm, shared legal strip, library hierarchy, compound cleanup, and new tool shells. */
.home-product-page .section { padding: 84px 0; }
.home-hero-v2 .hero-actions { justify-content: flex-start; }
.home-start-feature .home-start-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: stretch;
}
.home-start-panel {
  min-height: 440px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.08), rgba(9, 9, 9, 0.46)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  align-items: flex-end;
}
:root[data-theme="light"] .home-start-panel {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.28), rgba(255, 250, 243, 0.58)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
}
.start-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.start-state-grid a {
  min-height: 116px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 9, 9, 0.58);
  color: #fff7ea;
  backdrop-filter: blur(10px);
}
:root[data-theme="light"] .start-state-grid a {
  background: rgba(255, 250, 243, 0.82);
  color: #111;
  border-color: rgba(20, 20, 20, 0.08);
}
.start-state-grid span,
.article-list span,
.compound-related-grid small {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-bright);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.start-state-grid strong {
  display: block;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.12;
}
.home-wide-experience {
  min-height: 430px;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: clamp(30px, 6vw, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  color: #fff7ea;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.home-wide-experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 3, 3, 0.72), rgba(3, 3, 3, 0.28));
  z-index: 0;
}
.home-wide-experience > * { position: relative; z-index: 1; }
.home-wide-experience h2,
.home-wide-experience .lede,
.home-wide-experience .eyebrow { color: #fff7ea; }
.home-wide-experience h2 {
  max-width: 11ch;
  margin: 0 0 14px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
}
.home-wide-experience .lede {
  max-width: 560px;
  margin-bottom: 0;
}
.anatomy-experience {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.7), rgba(3, 3, 3, 0.26)),
    url("../images/Body Illustration.png") center 18% / contain no-repeat,
    radial-gradient(circle at 72% 45%, rgba(155, 188, 255, 0.18), transparent 42%),
    var(--surface);
}
.blood-experience {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.7), rgba(3, 3, 3, 0.24)),
    url("../images/generated-detail-bloodwork.png") right center / cover no-repeat;
}
.experience-action {
  align-self: flex-end;
  color: #fff7ea;
  font-weight: 700;
  white-space: nowrap;
}
.section-split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-split-heading h2 { margin: 0; }
.compound-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}
.featured-compound-large { min-height: 520px; }
.featured-compound-large h3 {
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  line-height: 0.88;
}
.featured-compound-stack {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-compound-card {
  min-height: 190px;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  color: #fff7ea;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}
.compact-compound-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 3, 3, 0.72), rgba(3, 3, 3, 0.12));
}
.compact-compound-card > * { position: relative; z-index: 1; }
.compact-compound-card span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}
.compact-compound-card small {
  margin-top: 8px;
  color: rgba(255, 247, 234, 0.82);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.card-ghk { background-image: url("../images/compound-copper-peptide.jpg"); }
.card-sema { background-image: url("../images/generated-category-glp-weight-v3-landscape.jpg"); }
.rail-label {
  display: block;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}
.home-category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0 4px;
  margin-top: 18px;
}
.home-category-rail a {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.guides-articles-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: start;
}
.home-feature-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}
.article-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.article-list a {
  display: block;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.12;
}
.trust-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}
.trust-card { min-height: 240px; }
.trust-card .line-icon { color: var(--accent-bright); }
.site-legal-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin-top: 54px;
}
.site-legal-strip .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}
.site-legal-strip strong {
  color: var(--ink);
  white-space: nowrap;
}
.site-legal-strip a {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 700;
}
.library-page .compound-card .name {
  order: 1;
  font-size: clamp(1.85rem, 2.6vw, 2.65rem);
  line-height: 0.96;
  margin: 10px 42px 8px 0;
}
.library-page .compound-card .compound-card-top { order: 0; }
.library-page .compound-card .compound-description { order: 2; }
.library-page .compound-card .dose {
  order: 3;
  font-size: 0.94rem;
  color: var(--muted);
}
.library-page .compound-card .dose small { font-size: 0.68rem; }
.compound-layout-shell.compound-layout-single { display: block; }
.compound-layout-single .compound-content {
  max-width: 1080px;
  margin: 0 auto;
}
.compound-hero-card {
  position: relative;
  min-height: 360px !important;
  display: flex;
  align-items: end !important;
}
.compound-hero-card .btn.secondary {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 250, 243, 0.82);
}
:root[data-theme="dark"] .compound-hero-card .btn.secondary { background: rgba(18, 18, 18, 0.78); }
.compound-glance-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
  margin: 22px 0;
}
.compound-glance-card h2 {
  margin: 4px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.compound-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}
.compound-glance-grid div {
  min-height: 130px;
  padding: 18px;
  background: var(--surface-2);
}
.compound-glance-grid strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 10px;
}
.compound-glance-grid span {
  display: block;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.35;
}
.compound-layout-single .compound-jump-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  margin: 20px 0 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compound-layout-single .compound-jump-nav span {
  grid-column: 1 / -1;
  padding: 0 0 4px;
}
.compound-layout-single .compound-jump-nav a {
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.compound-related-web {
  margin-top: 44px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compound-related-web h3 { margin: 4px 0 20px; }
.compound-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.compound-related-grid a {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-2);
}
.compound-related-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.12;
}
.back-to-top-arrow {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 50;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
:root[data-theme="dark"] .back-to-top-arrow { color: #fff7ea; }
.coa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}
.tool-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}
.tool-mode-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}
.tool-mode-tabs button.active {
  background: var(--accent);
  color: var(--bg-deep);
}
.coa-panel { display: none; }
.coa-panel.active { display: block; }
.drop-zone {
  position: relative;
  min-height: 230px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(155, 188, 255, 0.08), transparent),
    var(--surface-2);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.drop-zone strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
}
.drop-zone span {
  display: block;
  color: var(--muted);
}
.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop-zone.is-dragging {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.coa-detected-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.coa-detected-list span {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.coa-detected-list strong {
  display: block;
  color: var(--accent-bright);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.coa-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.coa-explain-card { min-height: 220px; }
.compare-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compare-picker button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-body);
  cursor: pointer;
}
.compare-picker button.active {
  border-color: var(--accent-bright);
  background: var(--accent-soft);
}
.compare-picker small { color: var(--muted); }
.compare-table-wrap {
  margin-top: 22px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare-table { min-width: 860px; }
.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
}
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  color: var(--ink);
  min-width: 180px;
}
.compare-table td {
  min-width: 220px;
  vertical-align: top;
}
.compare-table td.diff { background: var(--accent-soft); }

.coa-reader-page.detail-image-pass > .section.tight:nth-child(2) .container::before,
.compound-compare-page.detail-image-pass > .section.tight:nth-child(2) .container::before {
  content: none !important;
  display: none !important;
}
.coa-reader-page .section.tight:nth-child(2),
.compound-compare-page .section.tight:nth-child(2) {
  padding-top: 44px;
}
.coa-entry-card,
.compare-control-card {
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(245, 240, 232, 0.86)),
    var(--surface);
}
:root[data-theme="dark"] .coa-entry-card,
:root[data-theme="dark"] .compare-control-card,
:root[data-theme="dark"] .coa-summary-panel,
:root[data-theme="dark"] .coa-explain-card {
  background:
    linear-gradient(135deg, rgba(24, 24, 24, 0.98), rgba(31, 31, 31, 0.94)),
    var(--surface) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.home-product-page .hero.resource-hero {
  min-height: min(760px, calc(100vh - 24px));
  align-items: center;
}
.home-product-page .hero.resource-hero .container {
  padding-top: clamp(116px, 12vh, 154px);
  padding-bottom: clamp(64px, 8vh, 92px);
}
.home-product-page .hero.resource-hero h1 {
  max-width: 12ch;
  font-size: clamp(4.6rem, 8.4vw, 7.2rem);
  line-height: 0.94;
}
@media (max-width: 760px) {
  .home-product-page .hero.resource-hero {
    min-height: 620px;
  }
  .home-product-page .hero.resource-hero .container {
    padding-top: 96px;
    padding-bottom: 56px;
  }
  .home-product-page .hero.resource-hero h1 {
    font-size: clamp(3.05rem, 14vw, 4.45rem);
    max-width: 9ch;
  }
}

@media (max-width: 980px) {
  .home-start-feature .home-start-grid,
  .compound-feature-layout,
  .guides-articles-layout,
  .coa-layout { grid-template-columns: 1fr; }
  .home-wide-experience {
    min-height: 360px;
    align-items: flex-end;
    flex-direction: column;
  }
  .home-wide-experience h2 { max-width: 10ch; }
  .featured-compound-large { min-height: 390px; }
  .trust-card-grid,
  .coa-results-grid,
  .compound-related-grid,
  .compound-glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .home-product-page .section { padding: 58px 0; }
  .start-state-grid,
  .featured-compound-stack,
  .home-feature-grid.compact,
  .trust-card-grid,
  .coa-results-grid,
  .compound-related-grid,
  .compound-glance-grid,
  .compound-layout-single .compound-jump-nav { grid-template-columns: 1fr; }
  .home-start-panel { min-height: 520px; }
  .home-wide-experience {
    min-height: 420px;
    padding: 28px;
  }
  .site-legal-strip .container {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-legal-strip a { margin-left: 0; }
  .compound-hero-card .btn.secondary {
    position: static;
    margin-bottom: auto;
  }
  .compound-hero-card {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

/* Final homepage hierarchy and interaction pass */
.home-hero-v2 .hero-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.home-hero-v2 .hero-proof-row {
  margin-top: clamp(30px, 5vw, 52px);
}

.home-start-feature .home-start-grid {
  position: relative;
  overflow: hidden;
}

.home-start-image-panel {
  background:
    linear-gradient(90deg, rgba(6, 23, 26, 0.04), rgba(6, 23, 26, 0.18)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
}

:root[data-theme="light"] .home-start-image-panel {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.12), rgba(255, 250, 243, 0.3)),
    url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
}

.home-symptom-cta {
  width: fit-content;
  margin: 18px auto 0;
}

.home-library-feature-card,
.why-navaro-card,
.home-tool-flagship,
.home-tool-card,
.home-editorial-feature,
.home-editorial-card {
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(20, 14, 8, 0.16);
}

.home-library-feature-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  min-height: clamp(460px, 50vw, 640px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 250, 243, 0.16);
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.86), rgba(5, 10, 11, 0.58)),
    url("../images/generated-detail-library-research.png") center / cover no-repeat;
  color: #fff7ea;
}

.home-library-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 52%, rgba(233, 210, 166, 0.18), transparent 34%);
}

.home-library-feature-copy,
.home-anatomy-panel {
  position: relative;
  z-index: 1;
}

.home-library-feature-card h2,
.home-library-feature-card .lede,
.home-library-feature-card .eyebrow,
.home-library-feature-card a {
  color: #fff7ea;
}

.home-library-feature-card h2 {
  max-width: 10ch;
  margin: 12px 0;
  font-size: clamp(3rem, 6.5vw, 6.2rem);
  line-height: 0.92;
}

.home-library-feature-card .lede {
  max-width: 42ch;
  color: rgba(255, 247, 234, 0.86);
}

.home-library-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 640px;
  margin-top: 24px;
}

.home-library-search input {
  min-height: 48px;
  border-color: rgba(255, 250, 243, 0.28);
  background: rgba(255, 250, 243, 0.94);
  color: #101615;
}

.home-inline-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  font-weight: 800;
}

.home-anatomy-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  align-self: stretch;
  align-content: center;
  min-height: 380px;
  text-align: center;
}

.home-anatomy-panel img {
  max-height: min(560px, 47vw);
  object-fit: contain;
  filter:
    drop-shadow(0 0 26px rgba(231, 208, 164, 0.28))
    drop-shadow(0 24px 42px rgba(0, 0, 0, 0.34));
}

.home-anatomy-panel span {
  display: inline-flex;
  width: fit-content;
  padding: 9px 13px;
  border: 1px solid rgba(255, 250, 243, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: #fff7ea;
  font-weight: 800;
}

.home-useful-tools-section .section-split-heading .lede {
  max-width: 54ch;
  margin: 8px 0 0;
  text-align: left;
}

.home-useful-tools-section .section-split-heading {
  position: relative;
  overflow: hidden;
  align-items: end;
  min-height: 260px;
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.78), rgba(4, 17, 20, 0.34)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.1), rgba(4, 17, 20, 0.74)),
    url("../images/generated-tool-dosage.png") center / cover no-repeat;
  color: #fff7ea;
  box-shadow: 0 24px 64px rgba(20, 14, 8, 0.16);
}

.home-useful-tools-section .section-split-heading .eyebrow,
.home-useful-tools-section .section-split-heading h2,
.home-useful-tools-section .section-split-heading .lede {
  color: #fff7ea;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.home-useful-tools-section .section-split-heading h2 {
  max-width: 11ch;
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 0.92;
}

.home-useful-tools-section .section-split-heading .btn.secondary {
  border-color: rgba(255, 250, 243, 0.34);
  background: rgba(255, 250, 243, 0.14);
  color: #fff7ea;
}

.home-tools-product-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

.home-tool-flagship {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 250, 243, 0.16);
  color: #fff7ea;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.05), rgba(4, 17, 20, 0.9)),
    linear-gradient(90deg, rgba(4, 17, 20, 0.48), rgba(4, 17, 20, 0.12)),
    url("../images/generated-detail-bloodwork.png") center / cover no-repeat;
}

.home-tool-flagship h3 {
  max-width: 11ch;
  margin: 10px 0 14px;
  color: #fff7ea;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 0.92;
}

.home-tool-flagship p {
  max-width: 38ch;
  margin: 0 0 22px;
  color: rgba(255, 247, 234, 0.88);
}

.home-tool-flagship .go,
.home-tool-card .go,
.home-editorial-feature .go {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 250, 243, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: #fff7ea;
  font-weight: 800;
}

.home-tool-carousel {
  position: relative;
  min-width: 0;
  padding: 0 28px 34px;
}

.home-tool-window {
  overflow: hidden;
  border-radius: 8px;
}

.home-tool-track {
  display: flex;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.home-tool-page {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 2px;
}

.home-tool-card,
.home-editorial-card,
.home-editorial-feature {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(255, 250, 243, 0.16);
  color: #fff7ea;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.home-tool-card::after,
.home-editorial-card::after,
.home-editorial-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.32) 42%, rgba(4, 17, 20, 0.9) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.52), rgba(4, 17, 20, 0.1));
}

.home-tool-card h3,
.home-editorial-card h3,
.home-editorial-feature h3 {
  max-width: 12ch;
  margin: 0 0 10px;
  color: #fff7ea;
  font-size: clamp(1.85rem, 2.9vw, 2.42rem);
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.52);
}

.home-tool-card p,
.home-editorial-card p,
.home-editorial-feature p {
  max-width: 28ch;
  margin: 0 0 18px;
  color: rgba(255, 247, 234, 0.88);
  line-height: 1.38;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.card-tdee-tool,
.guide-tdee-card { background-image: url("../images/generated-tool-tdee.png"); }
.card-coa-tool { background-image: url("../images/generated-home-coa-reader.png"); }
.card-compare-tool { background-image: url("../images/generated-home-compare-compounds.png"); }
.card-reconstitution-tool { background-image: url("../images/generated-tool-dosage.png"); }
.card-titration-tool { background-image: url("../images/generated-tool-titration.png"); }
.card-bodyfat-tool { background-image: url("../images/generated-tool-bodyfat.png"); }
.card-budget-tool { background-image: url("../images/generated-tool-budget.png"); }
.card-compatibility-tool { background-image: url("../images/generated-tool-compatibility.png"); }
.card-coach-tool,
.guide-coach-card { background-image: url("../images/generated-guide-coach.jpg"); }
.card-stack-tool { background-image: url("../images/generated-guide-stack.png"); }
.card-protocol-tool,
.article-protocol-card { background-image: url("../images/generated-guide-protocol.png"); }
.card-halflife-tool { background-image: url("../images/generated-tool-halflife.png"); }
.card-consumables-tool { background-image: url("../images/generated-tool-supplies.png"); }
.card-vendor-tool { background-image: url("../images/generated-tool-cost.png"); }
.card-qa-tool { background-image: url("../images/generated-guide-qa.png"); }
.guide-blood-card { background-image: url("../images/generated-guide-bloodwork.jpg"); }
.article-evidence-card { background-image: url("../images/generated-blog-evidence.png"); }

.home-carousel-arrow {
  position: absolute;
  top: calc(50% - 24px);
  z-index: 3;
  width: 34px;
  height: 54px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.home-carousel-arrow.prev { left: -4px; }
.home-carousel-arrow.next { right: -4px; }

:root[data-theme="dark"] .home-carousel-arrow {
  color: #fff7ea;
}

.home-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.home-carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
}

.home-carousel-dots button.active {
  width: 22px;
  background: var(--accent);
}

.featured-compound-facts {
  display: grid;
  gap: 8px;
  max-width: 360px;
  margin: 18px 0;
}

.featured-compound-facts span {
  display: block;
  padding: 9px 11px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 6px;
  background: rgba(255, 250, 243, 0.12);
  color: rgba(255, 247, 234, 0.9);
}

.featured-compound-facts strong {
  display: block;
  margin-bottom: 2px;
  color: #fff7ea;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why-navaro-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid rgba(255, 250, 243, 0.16);
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.88), rgba(5, 10, 11, 0.62)),
    url("../images/generated-home-why-navaro.png") center / cover no-repeat;
  color: #fff7ea;
}

.why-navaro-card h2,
.why-navaro-card h3,
.why-navaro-card .lede,
.why-navaro-card p,
.why-navaro-card .eyebrow {
  color: #fff7ea;
}

.why-navaro-card h2 {
  max-width: 13ch;
  margin: 12px 0;
  font-size: clamp(2.8rem, 5.4vw, 5.5rem);
  line-height: 0.94;
}

.why-navaro-card .lede {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.why-navaro-card p {
  color: rgba(255, 247, 234, 0.86);
}

.why-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.16);
}

.why-principles div {
  min-height: 190px;
  padding: 24px;
  background: rgba(5, 10, 11, 0.56);
  backdrop-filter: blur(10px);
}

.why-principles span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.why-principles h3 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
}

.why-principles p {
  margin: 0;
  line-height: 1.42;
}

.guides-articles-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.home-editorial-feature {
  min-height: 560px;
  margin-top: 24px;
}

.home-editorial-feature span,
.home-editorial-card span {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 250, 243, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: #fff7ea;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-editorial-card {
  min-height: 270px;
}

.home-editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .home-library-feature-card,
  .home-tools-product-layout,
  .why-navaro-card,
  .guides-articles-layout {
    grid-template-columns: 1fr;
  }

  .home-tool-flagship,
  .home-editorial-feature {
    min-height: 430px;
  }

  .home-anatomy-panel img {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .site-header.search-active .brand,
  .site-header.search-active .header-actions,
  .site-header.search-active .site-search-toggle {
    display: none !important;
  }

  .site-header.search-active .bar {
    flex-wrap: nowrap !important;
    min-height: 66px;
  }

  .site-header.search-active .header-search-cluster {
    flex: 1 1 100%;
    order: 1;
  }

  .site-header.search-active .site-search {
    display: block;
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }

  .home-start-feature .home-start-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
    background:
      linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(246, 239, 229, 0.86)),
      var(--surface);
  }

  .home-start-image-panel {
    display: block;
    min-height: 360px;
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(6, 23, 26, 0.08), rgba(6, 23, 26, 0.14)),
      url("../images/generated-guide-symptom.jpg") center / cover no-repeat;
  }

  .home-start-copy,
  .home-start-copy .eyebrow,
  .home-start-copy h2,
  .home-start-copy .lede {
    color: var(--ink) !important;
    text-align: center;
  }

  .home-symptom-box {
    background: rgba(255, 250, 243, 0.92);
  }

  .home-library-feature-card,
  .why-navaro-card {
    padding: 24px;
  }

  .home-library-feature-card h2,
  .why-navaro-card h2 {
    font-size: clamp(2.7rem, 12vw, 4.3rem);
  }

  .home-library-search {
    grid-template-columns: 1fr;
  }

  .home-tool-carousel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-tool-page,
  .home-editorial-grid,
  .why-principles {
    grid-template-columns: 1fr;
  }

  .home-tool-card,
  .home-editorial-card {
    min-height: 250px;
  }
}

@media (max-width: 520px) {
  .home-tool-page {
    grid-template-columns: 1fr;
  }
}

/* Homepage requested layout corrections */
.home-hero-v2 h1 {
  max-width: min(1120px, 100%) !important;
}

.home-hero-v2 h1 em {
  white-space: nowrap;
}

.home-library-feature-card {
  min-height: clamp(340px, 36vw, 480px);
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.91), rgba(5, 10, 11, 0.72)),
    url("../images/generated-detail-metabolic.png") center / cover no-repeat;
}

.home-library-feature-card h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: 0.94;
}

.home-anatomy-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 430px);
}

.home-anatomy-panel .home-anatomy-hotspot {
  position: absolute;
  left: 52%;
  top: 44%;
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: radial-gradient(circle, #fff7ce 0 20%, #d9a43f 24% 56%, rgba(217, 164, 63, 0.18) 60% 100%) !important;
  box-shadow:
    0 0 0 9px rgba(217, 164, 63, 0.18),
    0 0 32px rgba(255, 205, 103, 0.78) !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-anatomy-panel:hover .home-anatomy-hotspot {
  transform: scale(1.15);
  box-shadow:
    0 0 0 13px rgba(217, 164, 63, 0.24),
    0 0 48px rgba(255, 211, 113, 0.95) !important;
}

.home-useful-tools-section .section-split-heading {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.82), rgba(4, 17, 20, 0.36)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.12), rgba(4, 17, 20, 0.72)),
    url("../images/generated-detail-bloodwork.png") center / cover no-repeat;
}

.home-useful-tools-section .section-split-heading h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.94;
}

.home-tools-product-layout {
  display: block;
}

.home-tool-carousel {
  max-width: 1080px;
  margin: 24px auto 0;
}

.home-tool-page {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.home-tool-card {
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
}

.card-tirz {
  background-image: url("../images/generated-detail-metabolic.png");
}

.home-guides-articles-section .guide-coach-card {
  background-image: url("../images/generated-guide-coach-home-v2.png") !important;
}

.guides-articles-layout {
  align-items: stretch;
}

.home-editorial-heading {
  margin-bottom: 24px;
}

.home-editorial-feature {
  min-height: 556px;
  margin-top: 0;
}

@media (max-width: 980px) {
  .home-anatomy-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .home-hero-v2 h1 {
    max-width: min(100%, 12.5ch) !important;
    font-size: clamp(2.75rem, 12.2vw, 4.05rem) !important;
  }

  .home-tool-carousel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-tool-page {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .home-tool-card {
    padding: 10px;
  }

  .home-tool-card h3 {
    max-width: 100%;
    margin-bottom: 0;
    font-size: clamp(0.72rem, 2.55vw, 0.92rem);
    line-height: 1.05;
  }

  .home-tool-card p,
  .home-tool-card .go {
    display: none;
  }

  .home-carousel-arrow {
    width: 20px;
    font-size: 1rem;
  }

  .home-editorial-feature {
    min-height: 430px;
  }
}

/* =====================================================================
   HOMEPAGE HIERARCHY REVISION PASS (requested)
   Order matters: this block is intentionally last so it wins the cascade.
   ===================================================================== */

/* 8 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Tighter, still-editorial rhythm between sections */
.home-product-page .section { padding: 58px 0; }
.home-product-page .home-start-section,
.home-product-page .home-library-feature-section,
.home-product-page .home-useful-tools-section,
.home-product-page .home-trending-compounds-section,
.home-product-page .home-why-navaro-section,
.home-product-page .home-guides-articles-section {
  padding-top: 58px;
  padding-bottom: 58px;
}
.home-product-page .site-legal-strip { margin-top: 34px; }

/* 1 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Hero: centered and aligned */
.home-product-page .home-hero-v2 .hero-copy {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}
.home-product-page .home-hero-v2 .hero-copy h1,
.home-product-page .home-hero-v2 .hero-copy .lede {
  margin-left: auto;
  margin-right: auto;
}
.home-product-page .home-hero-v2 .hero-copy .lede { max-width: 52ch; }
.home-product-page .home-hero-v2 .hero-proof-row { justify-content: center; }

/* Shared: bigger eyebrow used as a section kicker/title */
.home-product-page .home-eyebrow-lg {
  font-size: clamp(1.15rem, 1.9vw, 1.65rem) !important;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Shared: framed buttons replaced by simple underlined links */
.home-underline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.home-underline-link:hover { color: var(--accent-bright); }
:root[data-theme="dark"] .home-underline-link { color: var(--ink); }

/* 2 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Start Here card pops off the background (both themes) */
.home-product-page .home-symptom-box {
  background: linear-gradient(180deg, #ffffff, #eef4f8);
  border: 1px solid rgba(42, 98, 143, 0.28);
  box-shadow: 0 20px 46px rgba(42, 98, 143, 0.16);
}
:root[data-theme="dark"] .home-product-page .home-symptom-box {
  background: #262a31 !important;
  border: 1px solid rgba(129, 161, 220, 0.34) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.46) !important;
}

/* Shared full-bleed card: spans the whole viewport width, content re-centered */
.home-bleed-section { overflow-x: clip; }
.home-bleed-card {
  width: 100%;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* 3 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Explore All Compounds: full-width, shorter, warm complementary image */
.home-library-feature-card.home-bleed-card {
  display: block;
  grid-template-columns: none;
  min-height: 0;
  padding: clamp(30px, 5vw, 56px) 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.86), rgba(5, 10, 11, 0.58)),
    url("../images/compound-copper-peptide.jpg") center / cover no-repeat;
}
.home-library-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}
.home-library-feature-card.home-bleed-card .home-anatomy-panel { min-height: 0; }
.home-library-feature-card.home-bleed-card .home-anatomy-panel img {
  max-height: min(320px, 26vw);
}

/* 4 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Useful Tools: bigger eyebrow above the title, everything centered in the image */
.home-useful-tools-section .section-split-heading.home-tools-heading-centered {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
}
.home-useful-tools-section .home-tools-heading-centered > div {
  display: grid;
  justify-items: center;
}
.home-useful-tools-section .home-tools-heading-centered .lede {
  max-width: 56ch;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.home-useful-tools-section .home-tools-heading-centered .btn.secondary {
  margin-top: 20px;
}

/* 5 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Trending Compounds: eyebrow-as-title, library link moved to bottom-right */
.home-trending-compounds-section .home-trending-heading {
  display: block;
  margin-bottom: 22px;
}
.home-trending-footer {
  margin-top: 20px;
  text-align: right;
}

/* 6 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Navaro, A Better Standard: full-width and a touch shorter */
.why-navaro-card.home-bleed-card {
  display: block;
  grid-template-columns: none;
  padding: clamp(30px, 4vw, 50px) 0;
}
.why-navaro-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.why-navaro-card .why-principles div { min-height: 150px; }

/* 7 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Guides & Articles: eyebrow-as-title, single underlined "Explore more" bottom-right */
.home-guides-articles-section .home-editorial-heading {
  display: block;
  margin-bottom: 20px;
}
.home-editorial-footer {
  margin-top: 22px;
  text-align: right;
}

/* Responsive: collapse the re-centered inner grids */
@media (max-width: 980px) {
  .home-library-feature-inner,
  .why-navaro-inner { grid-template-columns: 1fr; }
  .home-library-feature-card.home-bleed-card .home-anatomy-panel img { max-height: 380px; }
}

/* Homepage revision pass 2 (requested) */
/* Useful Tools: eyebrow kicker sits above the image card, not on it */
.home-useful-tools-section .home-section-kicker {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto 16px;
}
/* Anatomy caption much smaller */
.home-anatomy-panel span {
  font-size: 0.6rem;
  padding: 5px 10px;
  letter-spacing: 0.06em;
}

/* =====================================================================
   REVISION PASS 3 (requested): tools grid, about, guides, why-navaro,
   interactive homepage anatomy, and second-image removal on detail pages.
   ===================================================================== */

/* --- Remove the duplicate "second image" on tool & guide detail pages --- */
.tool-detail-page.detail-image-pass > .section.tight:nth-child(2) .container::before,
.guide-detail-page.detail-image-pass > .section.tight:nth-child(2) .container::before,
.coa-reader-page.detail-image-pass > .section.tight:nth-child(2) .container::before,
.compound-compare-page.detail-image-pass > .section.tight:nth-child(2) .container::before {
  content: none !important;
  display: none !important;
}

/* --- Tools page: COA + Compare image cards, 3-then-2 centered, fitness 2 centered --- */
.coa-index-card { background-image: url("../images/generated-home-coa-reader.png"); }
.compare-index-card { background-image: url("../images/generated-home-compare-compounds.png"); }
.tools-page .tools-grid-3-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.tools-page .tools-grid-3-2 > .tool-card {
  flex: 0 0 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
}
.tools-page .featured-tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.tools-page .featured-tools-row > .tool-card {
  flex: 0 0 calc(40% - 9px);
  max-width: calc(40% - 9px);
  min-height: 240px;
}
@media (max-width: 760px) {
  .tools-page .tools-grid-3-2 > .tool-card,
  .tools-page .featured-tools-row > .tool-card { flex-basis: 100%; max-width: 100%; }
}

/* --- Guides page: panel no longer overlaps the hero, distinct colour --- */
.guides-page .page-panel-section { margin-top: 0; padding-top: 26px; }
.guides-page .page-panel {
  background: #eef1f5;
  border-color: rgba(42, 98, 143, 0.16);
}
:root[data-theme="dark"] .guides-page .page-panel {
  background: #20242a;
  border-color: rgba(129, 161, 220, 0.2);
}

/* --- About page --- */
/* proof cards: centered text */
.about-page .about-proof-row span { text-align: center; }
/* Mission + Vision on one row (wider); "What we believe" full width below */
.about-page .about-card-grid { grid-template-columns: 1fr 1fr; }
.about-page .about-beliefs { grid-column: 1 / -1; }
/* Story block: logo, title and text centered; acronym pillars on one row */
.about-page .navaro-story {
  grid-template-columns: 1fr;
  text-align: center;
}
.about-page .navaro-story-copy { max-width: 860px; margin: 0 auto; }
.about-page .navaro-story-logo { margin: 0 auto 22px; display: block; }
.about-page .navaro-story .eyebrow { margin-left: auto; margin-right: auto; }
.about-page .navaro-pillars {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 6px;
}
.about-page .navaro-pillars div { text-align: center; align-items: center; }
@media (max-width: 720px) {
  .about-page .navaro-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-page .about-card-grid { grid-template-columns: 1fr; }
}

/* --- Homepage "Navaro, A Better Standard": title/text on top, 4 points on one row --- */
.why-navaro-card.home-bleed-card .why-navaro-inner {
  display: block;
  text-align: center;
}
.why-navaro-card .why-navaro-copy {
  max-width: 780px;
  margin: 0 auto 30px;
}
.why-navaro-card .why-navaro-copy h2,
.why-navaro-card .why-navaro-copy .lede {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.why-navaro-card .why-principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.why-navaro-card .why-principles div {
  text-align: left;
  border: 1px solid rgba(255, 250, 243, 0.16);
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-navaro-card .why-principles div:hover { transform: translateY(-5px); }
.why-navaro-card .why-principles div:nth-child(1):hover {
  background: rgba(95, 143, 220, 0.22); border-color: rgba(95, 143, 220, 0.62);
  box-shadow: 0 18px 40px rgba(95, 143, 220, 0.22);
}
.why-navaro-card .why-principles div:nth-child(2):hover {
  background: rgba(78, 190, 168, 0.22); border-color: rgba(78, 190, 168, 0.62);
  box-shadow: 0 18px 40px rgba(78, 190, 168, 0.22);
}
.why-navaro-card .why-principles div:nth-child(3):hover {
  background: rgba(217, 164, 63, 0.24); border-color: rgba(217, 164, 63, 0.66);
  box-shadow: 0 18px 40px rgba(217, 164, 63, 0.22);
}
.why-navaro-card .why-principles div:nth-child(4):hover {
  background: rgba(176, 126, 216, 0.24); border-color: rgba(176, 126, 216, 0.64);
  box-shadow: 0 18px 40px rgba(176, 126, 216, 0.22);
}
@media (max-width: 860px) {
  .why-navaro-card .why-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Homepage interactive anatomy: sits a bit right, proportional, glowing hotspots --- */
.home-library-feature-card.home-bleed-card .home-anatomy-panel {
  justify-items: end;
  text-align: right;
}
.home-library-feature-card.home-bleed-card .home-anatomy-visual {
  width: min(100%, 300px);
  margin-left: auto;
  margin-right: 6%;
}
.home-anatomy-hot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 13%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  z-index: 2;
}
.home-anatomy-hot::before {
  content: "";
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 248, 224, 0.96) 0%,
    rgba(255, 224, 148, 0.8) 24%,
    rgba(240, 194, 96, 0.42) 46%,
    transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.5;
  transform: scale(0.78);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.home-anatomy-hot:hover::before,
.home-anatomy-hot:focus-visible::before {
  opacity: 1;
  transform: scale(1.2);
}
.home-anatomy-hot:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) {
  .home-anatomy-hot::before { transition: none; }
}

/* --- Requested homepage-only touchups: supplied imagery, logo, and section alignment --- */
.home-brand-logo .mark {
  display: none;
}

.home-brand-logo .brand-logo-home {
  display: inline-grid;
  align-items: center;
  width: clamp(132px, 13vw, 190px);
  min-height: 40px;
}

.home-brand-logo .brand-logo-home img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.home-brand-logo .brand-logo-for-dark {
  display: none;
}

:root[data-theme="dark"] .home-brand-logo .brand-logo-for-light {
  display: none;
}

:root[data-theme="dark"] .home-brand-logo .brand-logo-for-dark {
  display: block;
}

:root:not([data-theme="dark"]) .home-brand-logo .brand-logo-for-light {
  display: block;
}

.home-page .home-start-feature .home-start-grid {
  grid-template-columns: 1fr !important;
  min-height: clamp(560px, 58vw, 760px);
  padding: clamp(24px, 5vw, 52px) !important;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.88), rgba(4, 17, 20, 0.38)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.08), rgba(4, 17, 20, 0.82)),
    url("../images/home-start-symptom-bg-requested.png") center / cover no-repeat !important;
  border-color: rgba(255, 250, 243, 0.16);
}

.home-page .home-start-feature .home-start-image-panel {
  display: none !important;
}

.home-page .home-start-feature .home-start-copy {
  max-width: 720px;
  margin: 0 auto;
  color: #fff7ea;
}

.home-page .home-start-feature .home-start-copy h2,
.home-page .home-start-feature .home-start-copy .lede {
  color: #fff7ea !important;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.home-page .home-start-feature .home-symptom-box {
  background: rgba(255, 250, 243, 0.94) !important;
  color: #101615;
}

.home-page .home-useful-tools-section .home-section-kicker {
  display: block;
  width: 100%;
  text-align: left !important;
  margin: 0 0 16px !important;
}

.home-page .compact-compound-card.card-tirz {
  background-image: url("../images/generated-category-glp-weight-v3-landscape.jpg") !important;
}

@media (max-width: 760px) {
  .home-brand-logo .brand-logo-home {
    width: 128px;
  }

  .home-page .home-start-feature .home-start-grid {
    min-height: 620px;
    padding: 18px !important;
    background:
      linear-gradient(180deg, rgba(4, 17, 20, 0.84), rgba(4, 17, 20, 0.38), rgba(4, 17, 20, 0.9)),
      url("../images/home-start-symptom-bg-requested.png") center / cover no-repeat !important;
  }
}

/* --- Visual pass: generated backgrounds, lighter image overlays, and compound polish --- */
.home-page .home-start-feature .home-start-grid {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.74), rgba(4, 17, 20, 0.26)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.02), rgba(4, 17, 20, 0.66)),
    url("../images/generated-home-start-symptoms-v2.png") center / cover no-repeat !important;
}

.why-navaro-card {
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.74), rgba(5, 10, 11, 0.42)),
    url("../images/generated-home-better-standard-v2.png") center / cover no-repeat !important;
}

.why-navaro-title {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: min(720px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  text-wrap: balance;
}

.why-navaro-title > span:last-child {
  display: block;
  white-space: nowrap;
}

.navaro-section-logo,
.navaro-story-logo-pair {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  width: min(100%, 430px);
}

.navaro-section-logo img,
.navaro-story-logo-pair img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.navaro-section-logo .navaro-logo-for-dark,
.navaro-story-logo-pair .navaro-logo-for-dark {
  display: none;
}

:root[data-theme="dark"] .navaro-section-logo .navaro-logo-for-light,
:root[data-theme="dark"] .navaro-story-logo-pair .navaro-logo-for-light {
  display: none;
}

:root[data-theme="dark"] .navaro-section-logo .navaro-logo-for-dark,
:root[data-theme="dark"] .navaro-story-logo-pair .navaro-logo-for-dark {
  display: block;
}

:root:not([data-theme="dark"]) .navaro-section-logo .navaro-logo-for-light,
:root:not([data-theme="dark"]) .navaro-story-logo-pair .navaro-logo-for-light {
  display: block;
}

.about-page .navaro-story-logo-pair {
  margin: 0 auto 22px;
  max-width: 440px;
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel {
  justify-items: center;
  text-align: center;
}

.home-library-feature-card.home-bleed-card .home-anatomy-visual {
  width: min(100%, 420px);
  margin: 0 auto;
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel img {
  max-height: min(680px, 55vw);
}

.home-anatomy-panel span {
  margin-top: 4px;
}

.why-navaro-card .why-principles div:hover {
  transform: none !important;
}

.hero.resource-hero {
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.8) 44%, rgba(247, 241, 231, 0.28) 68%, rgba(247, 241, 231, 0) 100%),
    url("../images/generated-detail-wellness-research.png") center right / cover no-repeat;
}

:root[data-theme="dark"] .hero.resource-hero {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.64) 0%, rgba(4, 17, 20, 0.48) 48%, rgba(4, 17, 20, 0.18) 74%, rgba(4, 17, 20, 0.08) 100%),
    url("../images/generated-detail-wellness-research.png") center right / cover no-repeat;
}

.tools-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.84) 43%, rgba(247, 241, 231, 0.24) 67%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/generated-tools-workspace.jpg") !important;
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.84) 42%, rgba(247, 241, 231, 0.24) 68%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

.myths-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.84) 38%, rgba(247, 241, 231, 0.16) 66%, rgba(247, 241, 231, 0.01) 90%),
    url("../images/ref-myths-hero.jpg") !important;
}

.about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.8) 35%, rgba(247, 241, 231, 0.14) 66%, rgba(247, 241, 231, 0.01) 100%),
    url("../images/ref-about-hero.jpg") !important;
}

.library-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.84) 40%, rgba(247, 241, 231, 0.16) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/generated-category-longevity-cellular-v2-landscape.jpg") !important;
}

.contact-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.78) 42%, rgba(247, 241, 231, 0.18) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/blog-feature-petri.jpg") !important;
}

:root[data-theme="dark"] .tools-hero,
:root[data-theme="dark"] .guides-hero,
:root[data-theme="dark"] .myths-hero,
:root[data-theme="dark"] .about-hero,
:root[data-theme="dark"] .library-hero,
:root[data-theme="dark"] .contact-hero {
  background-blend-mode: screen, normal;
}

:root[data-theme="dark"] .tools-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 43%, rgba(17, 17, 17, 0.24) 67%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/generated-tools-workspace.jpg") !important;
}

:root[data-theme="dark"] .guides-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 42%, rgba(17, 17, 17, 0.24) 68%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

:root[data-theme="dark"] .myths-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 38%, rgba(17, 17, 17, 0.18) 66%, rgba(17, 17, 17, 0.06) 90%),
    url("../images/ref-myths-hero.jpg") !important;
}

:root[data-theme="dark"] .about-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.54) 35%, rgba(17, 17, 17, 0.18) 66%, rgba(17, 17, 17, 0.06) 100%),
    url("../images/ref-about-hero.jpg") !important;
}

:root[data-theme="dark"] .library-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 40%, rgba(17, 17, 17, 0.18) 68%, rgba(17, 17, 17, 0.06) 92%),
    url("../images/generated-category-longevity-cellular-v2-landscape.jpg") !important;
}

:root[data-theme="dark"] .contact-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.54) 42%, rgba(17, 17, 17, 0.18) 68%, rgba(17, 17, 17, 0.06) 92%),
    url("../images/blog-feature-petri.jpg") !important;
}

.home-useful-tools-section .section-split-heading {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.64), rgba(4, 17, 20, 0.22)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.04), rgba(4, 17, 20, 0.62)),
    url("../images/generated-tool-dosage.png") center / cover no-repeat !important;
}

.featured-card::after,
.compact-compound-card::after,
.home-tool-card::after,
.home-editorial-card::after,
.home-editorial-feature::after,
.home-feature-grid .home-image-card::after,
.myth-feature-card::after,
.featured-blog-card::after,
.blog-card::after,
.guide-feature::after {
  opacity: 0.86;
}

.featured-card,
.compact-compound-card,
.home-tool-card,
.home-editorial-card,
.home-editorial-feature,
.home-feature-grid .home-image-card,
.myth-feature-card,
.featured-blog-card,
.blog-card,
.guide-feature {
  background-color: rgba(255, 250, 243, 0.06);
  background-blend-mode: screen, normal;
}

.home-library-feature-card.card-compound-warm {
  background-blend-mode: normal !important;
}

.home-library-feature-card.card-compound-warm::before,
.home-library-feature-card.card-compound-warm::after {
  opacity: 1;
}

h1, h2, h3,
.hero h1,
.page-hero h1,
.resource-hero h1,
.why-navaro-card h2,
.compound-glance-card h2 {
  text-wrap: balance;
}

.compound-glance-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.93), rgba(255, 250, 243, 0.86)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .compound-glance-card {
  background:
    linear-gradient(90deg, rgba(24, 24, 24, 0.9), rgba(24, 24, 24, 0.8)),
    var(--compound-image) center / cover no-repeat !important;
}

.compound-overview-card {
  background:
    linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(247, 241, 231, 0.9)) !important;
  border-color: rgba(200, 168, 117, 0.38) !important;
  box-shadow: 0 22px 56px rgba(34, 27, 18, 0.12) !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.compound-overview-card:hover {
  transform: none !important;
  border-color: rgba(200, 168, 117, 0.62) !important;
  box-shadow: 0 24px 64px rgba(34, 27, 18, 0.16) !important;
}

:root[data-theme="dark"] .compound-overview-card {
  background:
    linear-gradient(135deg, rgba(35, 32, 28, 0.98), rgba(24, 24, 24, 0.94)) !important;
  border-color: rgba(234, 210, 167, 0.28) !important;
}

.compound-layout-single .compound-jump-nav a {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.compound-layout-single .compound-jump-nav a:hover,
.compound-layout-single .compound-jump-nav a:focus-visible {
  background: rgba(200, 168, 117, 0.18) !important;
  border-color: rgba(200, 168, 117, 0.52) !important;
  color: var(--ink) !important;
  box-shadow: 0 10px 26px rgba(34, 27, 18, 0.1);
}

:root[data-theme="dark"] .compound-layout-single .compound-jump-nav a:hover,
:root[data-theme="dark"] .compound-layout-single .compound-jump-nav a:focus-visible {
  background: rgba(234, 210, 167, 0.16) !important;
  border-color: rgba(234, 210, 167, 0.42) !important;
}

.compound-hero-card {
  background:
    linear-gradient(0deg, rgba(255, 250, 243, 0.78), rgba(255, 250, 243, 0.78)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .compound-hero-card {
  background:
    linear-gradient(0deg, rgba(18, 18, 18, 0.62), rgba(18, 18, 18, 0.62)),
    var(--compound-image) center / cover no-repeat !important;
}

@media (max-width: 760px) {
  .home-page .home-start-feature .home-start-grid {
    background:
      linear-gradient(180deg, rgba(4, 17, 20, 0.72), rgba(4, 17, 20, 0.28), rgba(4, 17, 20, 0.78)),
      url("../images/generated-home-start-symptoms-v2.png") center / cover no-repeat !important;
  }

  .navaro-section-logo,
  .navaro-story-logo-pair {
    width: min(100%, 300px);
  }

  .why-navaro-title > span:last-child {
    white-space: normal;
  }
}

/* --- Preview correction: Better Standard logo + Explore All Compounds anatomy scale --- */
:root:not([data-theme="dark"]) .why-navaro-card .navaro-section-logo .navaro-logo-for-light {
  display: none;
}

:root:not([data-theme="dark"]) .why-navaro-card .navaro-section-logo .navaro-logo-for-dark {
  display: block;
}

.home-library-feature-card.home-bleed-card {
  min-height: clamp(390px, 38vw, 510px);
  padding: clamp(24px, 4vw, 46px);
}

.home-library-feature-card.home-bleed-card .home-library-feature-inner {
  align-items: center;
}

.home-library-feature-card.home-bleed-card .home-anatomy-visual {
  width: min(100%, 320px);
  margin: 0 auto;
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel img {
  max-height: min(440px, 40vw);
}

@media (max-width: 980px) {
  .home-library-feature-card.home-bleed-card {
    min-height: 0;
  }
}

/* --- Preview correction 2: reduce Explore All Compounds card height further --- */
.home-library-feature-card.home-bleed-card {
  min-height: clamp(320px, 31vw, 410px) !important;
  padding: clamp(20px, 3.3vw, 38px) !important;
}

.home-library-feature-card.home-bleed-card .home-anatomy-visual {
  width: min(100%, 250px) !important;
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel img {
  max-height: min(330px, 30vw) !important;
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel {
  min-height: 0 !important;
}

/* --- Preview correction 3: settle anatomy size and right alignment --- */
.home-library-feature-card.home-bleed-card {
  min-height: clamp(350px, 34vw, 450px) !important;
  padding: clamp(22px, 3.6vw, 42px) !important;
}

.home-library-feature-card.home-bleed-card .home-anatomy-visual {
  width: min(100%, 285px) !important;
  transform: translateX(clamp(12px, 2.1vw, 30px));
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel img {
  max-height: min(380px, 34vw) !important;
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel span {
  transform: translateX(clamp(12px, 2.1vw, 30px));
}

/* --- Preview correction 4: move anatomy right without changing size --- */
.home-library-feature-card.home-bleed-card .home-anatomy-visual {
  transform: translateX(clamp(34px, 4.2vw, 68px));
}

.home-library-feature-card.home-bleed-card .home-anatomy-panel span {
  transform: translateX(clamp(34px, 4.2vw, 68px));
}

/* --- About page refinement: hero, story, pillars, and final commitment card --- */
.about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.8) 43%, rgba(247, 241, 231, 0.24) 70%, rgba(247, 241, 231, 0.04) 100%),
    url("../images/generated-detail-wellness-research.png") !important;
  background-position: center !important;
  background-size: cover !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(18, 18, 18, 0.72) 0%, rgba(18, 18, 18, 0.56) 46%, rgba(18, 18, 18, 0.18) 76%, rgba(18, 18, 18, 0.08) 100%),
    url("../images/generated-detail-wellness-research.png") !important;
}

.about-page .about-proof-row span {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.about-page .about-proof-row span:hover {
  border-color: rgba(205, 149, 63, 0.7);
  background: rgba(205, 149, 63, 0.12);
  box-shadow: 0 0 0 1px rgba(205, 149, 63, 0.18), 0 18px 36px rgba(205, 149, 63, 0.18);
}

.about-page .about-navaro-kicker {
  display: block;
  width: fit-content;
  margin: clamp(26px, 4vw, 44px) 0 12px;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  letter-spacing: 0.16em;
  font-weight: 800;
}

.about-page .navaro-story {
  margin-top: 0;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0.84) 45%, rgba(255, 250, 243, 0.42)),
    url("../images/generated-home-why-navaro.png") center / cover no-repeat;
}

.about-page .navaro-story-copy {
  max-width: 900px;
}

.about-page .navaro-story-logo-pair {
  max-width: 340px;
  margin: 0 auto 6px;
}

.about-page .navaro-story h2 {
  margin: 0 0 14px;
}

.about-page .navaro-pillars {
  margin-top: clamp(16px, 2.5vw, 26px);
  gap: 10px;
}

.about-page .navaro-pillars div {
  min-height: 96px;
  padding: 14px 10px;
  justify-content: center;
  gap: 10px;
}

.about-page .navaro-pillars span {
  white-space: nowrap;
  font-size: clamp(0.84rem, 0.95vw, 0.96rem);
}

:root[data-theme="dark"] .about-page .navaro-story {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.76) 48%, rgba(18, 18, 18, 0.48)),
    url("../images/generated-home-why-navaro.png") center / cover no-repeat;
}

.about-final-card {
  margin-top: 24px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 149, 63, 0.12), transparent 34%),
    rgba(255, 250, 243, 0.94);
  box-shadow: 0 22px 48px rgba(44, 34, 21, 0.08);
  text-align: center;
}

.about-final-heading {
  max-width: 760px;
  margin: 0 auto 24px;
}

.about-final-heading h2 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.about-final-heading p,
.about-review-note p {
  margin: 0;
  color: var(--ink-soft);
}

.about-belief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.about-belief-grid article,
.about-review-note,
.about-commitment-row span {
  border: 1px solid rgba(17, 23, 22, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
}

.about-belief-grid article {
  padding: 20px 18px;
}

.about-belief-grid h3,
.about-review-note h3 {
  margin: 0 0 8px;
}

.about-belief-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.about-review-note {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 22px;
}

.about-commitment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-commitment-row span {
  padding: 16px;
  color: var(--ink);
  font-weight: 800;
}

:root[data-theme="dark"] .about-final-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 149, 63, 0.14), transparent 36%),
    rgba(26, 26, 25, 0.94);
  border-color: rgba(247, 241, 231, 0.12);
}

:root[data-theme="dark"] .about-belief-grid article,
:root[data-theme="dark"] .about-review-note,
:root[data-theme="dark"] .about-commitment-row span {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(247, 241, 231, 0.12);
}

@media (max-width: 900px) {
  .about-belief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .about-page .about-navaro-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .about-page .navaro-pillars span {
    white-space: normal;
  }

  .about-belief-grid,
  .about-commitment-row {
    grid-template-columns: 1fr;
  }
}

/* --- About page correction 2: cleaner images, matching kicker, visible hover glow --- */
.about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.94) 0%, rgba(247, 241, 231, 0.84) 42%, rgba(247, 241, 231, 0.34) 68%, rgba(247, 241, 231, 0.04) 100%),
    url("../images/about-hero-wellness.jpg") !important;
  background-position: center right !important;
  background-size: cover !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(18, 18, 18, 0.76) 0%, rgba(18, 18, 18, 0.58) 46%, rgba(18, 18, 18, 0.22) 76%, rgba(18, 18, 18, 0.08) 100%),
    url("../images/about-hero-wellness.jpg") !important;
}

.about-page .about-navaro-kicker {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  margin: clamp(34px, 5vw, 64px) 0 16px !important;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem) !important;
  letter-spacing: 0.16em !important;
  font-weight: 800 !important;
}

.about-page .navaro-story {
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.86), rgba(5, 10, 11, 0.66) 52%, rgba(5, 10, 11, 0.48)),
    url("../images/generated-home-better-standard-v2.png") center / cover no-repeat !important;
  color: #fff7ea;
}

.about-page .navaro-story h2,
.about-page .navaro-story p,
.about-page .navaro-pillars span {
  color: #fff7ea !important;
}

.about-page .navaro-story p {
  color: rgba(255, 247, 234, 0.86) !important;
}

.about-page .navaro-pillars div {
  background: rgba(5, 10, 11, 0.48) !important;
  border-color: rgba(255, 250, 243, 0.16) !important;
  backdrop-filter: blur(10px);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.about-page .about-image-card .eyebrow {
  font-size: clamp(0.9rem, 1.1vw, 1.06rem) !important;
  letter-spacing: 0.16em !important;
  font-weight: 800 !important;
}

.about-page .about-proof-row span:hover,
.about-page .navaro-pillars div:hover {
  border-color: rgba(219, 168, 82, 0.84) !important;
  background: rgba(219, 168, 82, 0.16) !important;
  box-shadow:
    0 0 0 1px rgba(219, 168, 82, 0.28),
    0 0 34px rgba(219, 168, 82, 0.24),
    0 18px 42px rgba(101, 66, 21, 0.18) !important;
}

:root[data-theme="dark"] .about-page .about-proof-row span:hover,
:root[data-theme="dark"] .about-page .navaro-pillars div:hover {
  background: rgba(219, 168, 82, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(219, 168, 82, 0.34),
    0 0 34px rgba(219, 168, 82, 0.3),
    0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

/* --- About page correction 3: generated hero banner and compact Why Navaro tag --- */
.about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.94) 0%, rgba(247, 241, 231, 0.82) 41%, rgba(247, 241, 231, 0.22) 68%, rgba(247, 241, 231, 0.02) 100%),
    url("../images/generated-about-hero-banner-v2.png") !important;
  background-position: center !important;
  background-size: cover !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(18, 18, 18, 0.76) 0%, rgba(18, 18, 18, 0.58) 44%, rgba(18, 18, 18, 0.18) 74%, rgba(18, 18, 18, 0.06) 100%),
    url("../images/generated-about-hero-banner-v2.png") !important;
}

.about-page .about-navaro-kicker {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  align-items: center;
  margin: clamp(34px, 5vw, 64px) 0 16px !important;
  padding: 0 !important;
}

/* --- About page correction 4: show the full hero image without cropping --- */
.about-page .about-hero {
  min-height: clamp(440px, 40vw, 620px) !important;
  background-color: #f3eee6 !important;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.94) 0%, rgba(247, 241, 231, 0.82) 40%, rgba(247, 241, 231, 0.3) 66%, rgba(247, 241, 231, 0.02) 100%),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center right !important;
  background-size: cover, contain !important;
  background-repeat: no-repeat, no-repeat !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-color: #151514 !important;
  background-image:
    linear-gradient(90deg, rgba(18, 18, 18, 0.78) 0%, rgba(18, 18, 18, 0.58) 42%, rgba(18, 18, 18, 0.2) 72%, rgba(18, 18, 18, 0.06) 100%),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center right !important;
  background-size: cover, contain !important;
  background-repeat: no-repeat, no-repeat !important;
}

.about-page .about-navaro-kicker {
  inline-size: fit-content !important;
}

/* --- Site-wide typography: reduce awkward sentence and heading breaks --- */
main p,
main li,
main dd,
main .lede,
main .muted {
  text-wrap: pretty;
}

main h1,
main h2,
main h3,
main h4,
main .eyebrow,
main .badge {
  text-wrap: balance;
}

.sentence-block {
  display: block;
  margin-top: 0.42em;
}

/* --- About hero correction: lighter image and centered copy --- */
.about-page .about-hero {
  min-height: clamp(420px, 36vw, 560px) !important;
  background-color: #f5efe7 !important;
  background-image:
    linear-gradient(180deg, rgba(247, 241, 231, 0.38), rgba(247, 241, 231, 0.38)),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center !important;
  background-size: cover, contain !important;
  background-repeat: no-repeat, no-repeat !important;
}

.about-page .about-hero .container {
  display: flex;
  justify-content: center;
}

.about-page .about-hero .page-hero-copy {
  max-width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.about-page .about-hero h1 {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.about-page .about-hero .lede {
  margin-left: auto;
  margin-right: auto;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-color: #171717 !important;
  background-image:
    linear-gradient(180deg, rgba(18, 18, 18, 0.26), rgba(18, 18, 18, 0.26)),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center !important;
  background-size: cover, contain !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* --- About hero correction 2: full-width bright hero, no narrow contain strip --- */
.about-page .about-hero {
  aspect-ratio: 1983 / 793;
  min-height: 0 !important;
  height: auto !important;
  background-color: #f5efe7 !important;
  background-image:
    linear-gradient(180deg, rgba(247, 241, 231, 0.66), rgba(247, 241, 231, 0.66)),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-color: #171717 !important;
  background-image:
    linear-gradient(180deg, rgba(18, 18, 18, 0.34), rgba(18, 18, 18, 0.34)),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
}

@media (max-width: 760px) {
  .about-page .about-hero {
    aspect-ratio: auto;
    min-height: 420px !important;
    background-position: center, center !important;
  }
}

/* --- About hero correction 3: lighten the generated image further --- */
.about-page .about-hero {
  background-image:
    linear-gradient(180deg, rgba(247, 241, 231, 0.8), rgba(247, 241, 231, 0.8)),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-image:
    linear-gradient(180deg, rgba(18, 18, 18, 0.2), rgba(18, 18, 18, 0.2)),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-size: cover, cover !important;
  background-position: center, center !important;
}

/* --- About hero correction 4: remove overlay filter completely --- */
.about-page .about-hero,
:root[data-theme="dark"] .about-page .about-hero {
  background-color: transparent !important;
  background-image: url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
}

/* --- Site-wide hover tone correction: gold to champagne --- */
:root {
  --champagne-hover-text: #a98f66;
  --champagne-hover: #eadfc9;
  --champagne-hover-soft: rgba(234, 223, 201, 0.18);
  --champagne-hover-border: rgba(234, 223, 201, 0.72);
  --champagne-hover-glow: rgba(234, 223, 201, 0.28);
  --champagne-hover-shadow: rgba(137, 111, 74, 0.16);
}

:root[data-theme="dark"] {
  --champagne-hover-text: #f0e4cf;
  --champagne-hover-soft: rgba(234, 223, 201, 0.16);
  --champagne-hover-border: rgba(234, 223, 201, 0.62);
  --champagne-hover-glow: rgba(234, 223, 201, 0.24);
  --champagne-hover-shadow: rgba(0, 0, 0, 0.3);
}

a:hover,
.home-underline-link:hover,
.site-footer a:hover {
  color: var(--champagne-hover-text) !important;
}

.about-page .about-proof-row span:hover,
.about-page .navaro-pillars div:hover,
.why-navaro-card .why-principles div:nth-child(3):hover,
.compound-overview-card:hover,
.compound-layout-single .compound-jump-nav a:hover,
.compound-layout-single .compound-jump-nav a:focus-visible {
  border-color: var(--champagne-hover-border) !important;
  background-color: var(--champagne-hover-soft) !important;
  box-shadow:
    0 0 0 1px rgba(234, 223, 201, 0.22),
    0 0 34px var(--champagne-hover-glow),
    0 18px 42px var(--champagne-hover-shadow) !important;
}

.why-navaro-card .why-principles div:nth-child(3):hover {
  background: var(--champagne-hover-soft) !important;
}

.home-anatomy-hot::before {
  background: radial-gradient(circle,
    rgba(255, 250, 238, 0.96) 0%,
    rgba(237, 224, 201, 0.82) 24%,
    rgba(216, 196, 160, 0.46) 46%,
    transparent 72%) !important;
}

.home-anatomy-panel .home-anatomy-hotspot {
  background: radial-gradient(circle, #fffaf0 0 20%, #eadfc9 24% 56%, rgba(234, 223, 201, 0.2) 60% 100%) !important;
  box-shadow:
    0 0 0 9px rgba(234, 223, 201, 0.2),
    0 0 32px rgba(234, 223, 201, 0.7) !important;
}

.home-anatomy-panel:hover .home-anatomy-hotspot {
  box-shadow:
    0 0 0 13px rgba(234, 223, 201, 0.26),
    0 0 48px rgba(234, 223, 201, 0.86) !important;
}

/* --- About hero correction 5: match the filtered hero image treatment site-wide --- */
.about-page .about-hero {
  background-color: #f5efe7 !important;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.92) 0%, rgba(247, 241, 231, 0.84) 42%, rgba(247, 241, 231, 0.24) 68%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  background-blend-mode: normal !important;
  filter: none !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-color: #171717 !important;
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 42%, rgba(17, 17, 17, 0.24) 68%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/generated-about-hero-banner-v3.png") !important;
  background-position: center, center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  background-blend-mode: normal !important;
  filter: none !important;
}

/* --- Requested visual correction: cream logo, stronger dark hero copy, softer light overlays --- */
.home-why-navaro-section .navaro-section-logo .navaro-logo-for-light,
.about-page .navaro-story-logo-pair .navaro-logo-for-light,
:root[data-theme="dark"] .home-why-navaro-section .navaro-section-logo .navaro-logo-for-light,
:root[data-theme="dark"] .about-page .navaro-story-logo-pair .navaro-logo-for-light {
  display: none !important;
}

.home-why-navaro-section .navaro-section-logo .navaro-logo-for-dark,
.about-page .navaro-story-logo-pair .navaro-logo-for-dark,
:root[data-theme="dark"] .home-why-navaro-section .navaro-section-logo .navaro-logo-for-dark,
:root[data-theme="dark"] .about-page .navaro-story-logo-pair .navaro-logo-for-dark {
  display: block !important;
}

:root[data-theme="dark"] .hero.resource-hero .lede,
:root[data-theme="dark"] .page-hero .lede,
:root[data-theme="dark"] .about-page .about-hero .lede,
:root[data-theme="dark"] .blog-hero-section .lede {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.82),
    0 8px 28px rgba(0, 0, 0, 0.62) !important;
}

:root:not([data-theme="dark"]) .hero.resource-hero,
:root:not([data-theme="dark"]) .page-hero,
:root:not([data-theme="dark"]) .blog-hero-section {
  position: relative;
  overflow: hidden;
}

:root:not([data-theme="dark"]) .hero.resource-hero::before,
:root:not([data-theme="dark"]) .page-hero::before,
:root:not([data-theme="dark"]) .blog-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(43, 34, 22, 0.08);
}

:root:not([data-theme="dark"]) .hero.resource-hero > .container,
:root:not([data-theme="dark"]) .page-hero > .container,
:root:not([data-theme="dark"]) .blog-hero-section > .container {
  position: relative;
  z-index: 1;
}

/* --- Image filter correction: a touch brighter, image sources unchanged --- */
:root:not([data-theme="dark"]) .hero.resource-hero::before,
:root:not([data-theme="dark"]) .page-hero::before,
:root:not([data-theme="dark"]) .blog-hero-section::before {
  background: rgba(43, 34, 22, 0.025) !important;
}

.featured-card::after,
.article-card::after,
.compact-compound-card::after,
.home-tool-card::after,
.home-editorial-card::after,
.home-editorial-feature::after,
.home-image-card::after,
.home-feature-grid .home-image-card::after,
.myth-feature-card::after,
.featured-blog-card::after,
.blog-card::after,
.guide-feature::after,
.image-card::after {
  opacity: 0.78 !important;
}

:root[data-theme="dark"] .featured-card::after,
:root[data-theme="dark"] .article-card::after,
:root[data-theme="dark"] .compact-compound-card::after,
:root[data-theme="dark"] .home-tool-card::after,
:root[data-theme="dark"] .home-editorial-card::after,
:root[data-theme="dark"] .home-editorial-feature::after,
:root[data-theme="dark"] .home-image-card::after,
:root[data-theme="dark"] .home-feature-grid .home-image-card::after,
:root[data-theme="dark"] .myth-feature-card::after,
:root[data-theme="dark"] .featured-blog-card::after,
:root[data-theme="dark"] .blog-card::after,
:root[data-theme="dark"] .guide-feature::after,
:root[data-theme="dark"] .image-card::after {
  opacity: 0.82 !important;
}

/* --- Image filter correction 2: brighten the actual dark overlays, keep images unchanged --- */
:root:not([data-theme="dark"]) .hero.resource-hero::before,
:root:not([data-theme="dark"]) .page-hero::before,
:root:not([data-theme="dark"]) .blog-hero-section::before {
  background: transparent !important;
}

.featured-card::after,
.article-card::after {
  opacity: 1 !important;
  filter: none !important;
}

.featured-card::before,
.article-card::before {
  background: linear-gradient(180deg, rgba(4, 13, 16, 0.03), rgba(4, 13, 16, 0.62)) !important;
}

.compact-compound-card::after {
  opacity: 1 !important;
  filter: none !important;
  background: linear-gradient(0deg, rgba(3, 3, 3, 0.52), rgba(3, 3, 3, 0.06)) !important;
}

.home-tool-card::after,
.home-editorial-card::after,
.home-editorial-feature::after {
  opacity: 1 !important;
  filter: none !important;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.02) 0%, rgba(4, 17, 20, 0.24) 42%, rgba(4, 17, 20, 0.72) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.34), rgba(4, 17, 20, 0.06)) !important;
}

.home-image-card::after,
.home-feature-grid .home-image-card::after {
  opacity: 1 !important;
  filter: none !important;
  background: linear-gradient(180deg, rgba(4, 17, 20, 0.04), rgba(4, 17, 20, 0.58)) !important;
}

.image-card::after {
  opacity: 1 !important;
  filter: none !important;
  background: linear-gradient(90deg, rgba(4, 17, 20, 0.62), rgba(4, 17, 20, 0.14)) !important;
}

.myth-feature-card::after {
  opacity: 1 !important;
  filter: none !important;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.02), rgba(4, 17, 20, 0.58)),
    linear-gradient(90deg, rgba(4, 17, 20, 0.46), rgba(4, 17, 20, 0.06)) !important;
}

.home-page .home-start-feature .home-start-grid,
.home-library-feature-card,
.why-navaro-card,
.home-useful-tools-section .section-split-heading,
.home-tool-flagship {
  position: relative;
}

.home-page .home-start-feature .home-start-grid::before,
.home-library-feature-card::before,
.why-navaro-card::before,
.home-useful-tools-section .section-split-heading::before,
.home-tool-flagship::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 250, 243, 0.07);
}

:root[data-theme="dark"] .home-page .home-start-feature .home-start-grid::before,
:root[data-theme="dark"] .home-library-feature-card::before,
:root[data-theme="dark"] .why-navaro-card::before,
:root[data-theme="dark"] .home-useful-tools-section .section-split-heading::before,
:root[data-theme="dark"] .home-tool-flagship::before {
  background: rgba(255, 250, 243, 0.045);
}

.home-page .home-start-feature .home-start-grid > *,
.home-library-feature-card > *,
.why-navaro-card > *,
.home-useful-tools-section .section-split-heading > *,
.home-tool-flagship > * {
  position: relative;
  z-index: 1;
}

/* --- Image filter correction 3: visibly brighter, image files unchanged --- */
.featured-card::before,
.article-card::before {
  background: linear-gradient(180deg, rgba(4, 13, 16, 0.01), rgba(4, 13, 16, 0.52)) !important;
}

.home-image-card::after,
.home-feature-grid .home-image-card::after,
.home-tool-card::after,
.home-editorial-card::after,
.home-editorial-feature::after,
.featured-blog-card::after,
.blog-card::after,
.myth-feature-card::after,
.compact-compound-card::after,
.image-card::after,
.tool-card::after,
.popular-tool-card::after,
.home-mini-card::after {
  opacity: 1 !important;
  filter: none !important;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.01) 0%, rgba(4, 17, 20, 0.18) 44%, rgba(4, 17, 20, 0.68) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.24), rgba(4, 17, 20, 0.04)) !important;
}

:root[data-theme="dark"] .home-image-card::after,
:root[data-theme="dark"] .home-feature-grid .home-image-card::after,
:root[data-theme="dark"] .home-tool-card::after,
:root[data-theme="dark"] .home-editorial-card::after,
:root[data-theme="dark"] .home-editorial-feature::after,
:root[data-theme="dark"] .featured-blog-card::after,
:root[data-theme="dark"] .blog-card::after,
:root[data-theme="dark"] .myth-feature-card::after,
:root[data-theme="dark"] .compact-compound-card::after,
:root[data-theme="dark"] .image-card::after,
:root[data-theme="dark"] .tool-card::after,
:root[data-theme="dark"] .popular-tool-card::after,
:root[data-theme="dark"] .home-mini-card::after {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.02) 0%, rgba(4, 17, 20, 0.22) 44%, rgba(4, 17, 20, 0.72) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.3), rgba(4, 17, 20, 0.05)) !important;
}

/* --- v26 final requested layout/readability pass --- */
.site-header .brand {
  min-width: clamp(190px, 17vw, 270px) !important;
}

.site-header .brand .brand-logo-home {
  display: block !important;
  width: clamp(190px, 17vw, 270px) !important;
  min-height: 50px !important;
}

.site-header .brand .brand-logo-home img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-header .brand-logo-for-dark,
:root[data-theme="dark"] .site-header .brand-logo-for-light {
  display: none !important;
}

:root[data-theme="dark"] .site-header .brand-logo-for-dark,
:root:not([data-theme="dark"]) .site-header .brand-logo-for-light {
  display: block !important;
}

.home-page .section {
  padding-top: clamp(36px, 4.2vw, 54px) !important;
  padding-bottom: clamp(36px, 4.2vw, 54px) !important;
}

.home-page .home-library-feature-section,
.home-page .home-start-section,
.home-page .home-why-navaro-section {
  padding-top: clamp(26px, 3vw, 42px) !important;
  padding-bottom: clamp(26px, 3vw, 42px) !important;
}

.home-page .home-start-section > .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-page .home-start-feature .home-start-grid {
  width: min(100%, 100vw) !important;
  border-radius: 0 !important;
  min-height: clamp(310px, 31vw, 420px) !important;
  padding: clamp(22px, 3.2vw, 38px) max(24px, calc((100vw - var(--container)) / 2)) !important;
}

.home-page .home-start-feature .home-start-copy {
  max-width: 720px !important;
}

.home-output-card {
  background: rgba(7, 24, 25, 0.56) !important;
  border: 1px solid rgba(255, 250, 243, 0.16) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  backdrop-filter: blur(12px);
}

:root:not([data-theme="dark"]) .home-output-card {
  background: rgba(255, 250, 243, 0.78) !important;
  border-color: rgba(17, 23, 22, 0.14) !important;
}

.why-navaro-card.home-bleed-card {
  padding: clamp(22px, 2.8vw, 34px) 0 !important;
}

.why-navaro-card .why-navaro-copy {
  margin-bottom: 14px !important;
}

.why-navaro-title {
  gap: 2px !important;
}

.why-navaro-title .navaro-section-logo {
  width: min(100%, 310px) !important;
  height: 58px !important;
  overflow: hidden !important;
  margin: 0 auto 0 !important;
}

.why-navaro-title .navaro-section-logo img {
  width: 420px !important;
  max-width: none !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: translateX(-92px);
}

.why-navaro-card .why-principles div {
  min-height: 108px !important;
}

.why-navaro-card .why-principles div span {
  color: rgba(255, 250, 243, 0.82) !important;
}

:root:not([data-theme="dark"]) .why-navaro-card .why-principles div span {
  color: rgba(7, 24, 25, 0.68) !important;
}

.featured-card,
.article-card,
.blog-card,
.guide-feature,
.home-tool-card,
.compact-compound-card,
.tool-card.image-card,
.popular-tool-card,
.home-mini-card,
.myth-feature-card {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.82),
    0 10px 26px rgba(0, 0, 0, 0.62) !important;
}

.featured-card::before,
.article-card::before,
.blog-card::before,
.guide-feature::before,
.home-tool-card::before,
.compact-compound-card::before,
.tool-card.image-card::before,
.popular-tool-card::before,
.home-mini-card::before,
.myth-feature-card::before {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.1) 0%, rgba(4, 17, 20, 0.38) 48%, rgba(4, 17, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.3), rgba(4, 17, 20, 0.04)) !important;
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.9) 0%, rgba(247, 241, 231, 0.76) 42%, rgba(247, 241, 231, 0.28) 70%, rgba(247, 241, 231, 0.04) 90%),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

:root[data-theme="dark"] .guides-hero {
  background-image:
    linear-gradient(90deg, rgba(4, 17, 20, 0.7) 0%, rgba(4, 17, 20, 0.54) 42%, rgba(4, 17, 20, 0.28) 70%, rgba(4, 17, 20, 0.1) 90%),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

:root:not([data-theme="dark"]) .compound-glance-card.compound-profile-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(255, 250, 243, 0.78)),
    var(--compound-image) center / cover no-repeat !important;
}

.compound-profile-card .overview-research-summary,
.compound-profile-card .overview-research-summary p,
.compound-profile-card .overview-research-summary span,
.compound-profile-card .overview-research-summary strong,
.compound-profile-card .overview-row,
.compound-profile-card .overview-row p {
  font-family: var(--font-body) !important;
}

.compound-profile-card .overview-research-summary h4 {
  font-family: var(--font-display) !important;
}

.protocol-draw-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) minmax(140px, 190px);
  gap: 14px;
  align-items: end;
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.protocol-draw-frame strong,
.protocol-draw-frame span {
  display: block;
}

.protocol-draw-frame span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 3px;
}

.protocol-draw-frame label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.protocol-draw-frame input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.protocol-draw-units {
  color: var(--champagne-hover-text);
  font-weight: 800;
  white-space: nowrap;
}

.compound-related-web {
  margin-top: 34px !important;
}

.compound-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.compound-related-controls {
  display: flex;
  gap: 8px;
}

.compound-related-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.compound-related-window {
  overflow: hidden;
}

.compound-related-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 16px !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.compound-related-grid a {
  position: relative;
  flex: 0 0 clamp(190px, 22vw, 250px);
  aspect-ratio: 1 / 1;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 250, 243, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.08), rgba(4, 17, 20, 0.78)),
    var(--related-image) center / cover no-repeat !important;
  color: #fff7ea !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  scroll-snap-align: start;
}

.compound-related-grid a small,
.compound-related-grid a strong {
  position: relative;
  z-index: 1;
}

.compound-related-grid a small {
  color: rgba(255, 247, 234, 0.78) !important;
}

.compound-related-grid a:hover {
  transform: none !important;
  border-color: var(--champagne-hover-border) !important;
  box-shadow: 0 0 0 1px rgba(234, 223, 201, 0.22), 0 0 34px var(--champagne-hover-glow) !important;
}

.about-page .about-proof-row span:hover,
.about-page .navaro-pillars div:hover {
  transform: none !important;
  border-color: var(--champagne-hover-border) !important;
  background: var(--champagne-hover-soft) !important;
  box-shadow: 0 0 0 1px rgba(234, 223, 201, 0.22), 0 0 34px var(--champagne-hover-glow) !important;
}

@media (max-width: 760px) {
  .site-header .brand {
    min-width: 166px !important;
  }

  .site-header .brand .brand-logo-home {
    width: 166px !important;
    min-height: 44px !important;
  }

  .site-header .brand .brand-logo-home img {
    max-height: 46px;
  }

  .home-page .home-start-feature .home-start-grid {
    min-height: 430px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .protocol-draw-frame {
    grid-template-columns: 1fr;
  }
}

:root[data-theme="dark"] .featured-card::before,
:root[data-theme="dark"] .featured-card::after,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .article-card::after {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.02) 0%, rgba(4, 17, 20, 0.22) 44%, rgba(4, 17, 20, 0.72) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.3), rgba(4, 17, 20, 0.05)) !important;
  filter: none !important;
  opacity: 1 !important;
}

.home-page .home-start-feature .home-start-grid {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.62), rgba(4, 17, 20, 0.18)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.01), rgba(4, 17, 20, 0.5)),
    url("../images/generated-home-start-symptoms-v2.png") center / cover no-repeat !important;
}

.why-navaro-card {
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.62), rgba(5, 10, 11, 0.28)),
    url("../images/generated-home-better-standard-v2.png") center / cover no-repeat !important;
}

.home-library-feature-card:not(.card-compound-warm) {
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.72), rgba(5, 10, 11, 0.42)),
    url("../images/generated-detail-library-research.png") center / cover no-repeat !important;
}

.home-useful-tools-section .section-split-heading {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.5), rgba(4, 17, 20, 0.16)),
    linear-gradient(180deg, rgba(4, 17, 20, 0.02), rgba(4, 17, 20, 0.48)),
    url("../images/generated-tool-dosage.png") center / cover no-repeat !important;
}

.home-tool-flagship {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.02), rgba(4, 17, 20, 0.68)),
    linear-gradient(90deg, rgba(4, 17, 20, 0.34), rgba(4, 17, 20, 0.08)),
    url("../images/generated-detail-bloodwork.png") center / cover no-repeat !important;
}

.about-page .navaro-story {
  background:
    linear-gradient(90deg, rgba(5, 10, 11, 0.72), rgba(5, 10, 11, 0.48) 52%, rgba(5, 10, 11, 0.32)),
    url("../images/generated-home-better-standard-v2.png") center / cover no-repeat !important;
}

.compound-hero-card {
  background:
    linear-gradient(0deg, rgba(255, 250, 243, 0.68), rgba(255, 250, 243, 0.68)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .compound-hero-card,
:root[data-theme="dark"] .compound-page .section.tight .container > .flex-between,
:root[data-theme="dark"] .compound-page .compound-content > .flex-between,
:root[data-theme="dark"] .compound-side-thumb {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.02) 0%, rgba(4, 17, 20, 0.2) 44%, rgba(4, 17, 20, 0.7) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.28), rgba(4, 17, 20, 0.04)),
    var(--compound-image) center / cover no-repeat !important;
}

:root[data-theme="dark"] .tools-hero,
:root[data-theme="dark"] .guides-hero,
:root[data-theme="dark"] .myths-hero,
:root[data-theme="dark"] .library-hero,
:root[data-theme="dark"] .contact-hero,
:root[data-theme="dark"] .blog-hero-section {
  background-blend-mode: normal !important;
}

@media (max-width: 760px) {
  .home-page .home-start-feature .home-start-grid {
    background:
      linear-gradient(180deg, rgba(4, 17, 20, 0.58), rgba(4, 17, 20, 0.18), rgba(4, 17, 20, 0.66)),
      url("../images/generated-home-start-symptoms-v2.png") center / cover no-repeat !important;
  }
}

/* Keep image-bearing pseudo layers visible after the brightness correction. */
.featured-card::after,
.article-card::after,
:root[data-theme="dark"] .featured-card::after,
:root[data-theme="dark"] .article-card::after {
  background: inherit !important;
  background-size: cover !important;
  background-position: center !important;
  filter: brightness(1.1) saturate(1.03) !important;
  opacity: 1 !important;
}

.blog-card::before,
:root[data-theme="dark"] .blog-card::before {
  background: url("../images/generated-blog-evidence.png") center / cover no-repeat !important;
  filter: brightness(1.08) saturate(1.03) !important;
  opacity: 1 !important;
}

.blog-card.article-pipette::before,
:root[data-theme="dark"] .blog-card.article-pipette::before {
  background-image: url("../images/generated-blog-safety.png") !important;
}

.blog-card.article-brain::before,
:root[data-theme="dark"] .blog-card.article-brain::before {
  background-image: url("../images/generated-blog-protocols.png") !important;
}

/* --- Hero restore lock: same image in light and dark, lighter overlay toned down --- */
:root:not([data-theme="dark"]) .hero.resource-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 42%, rgba(247, 241, 231, 0.2) 68%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/generated-detail-wellness-research.png") !important;
}

:root[data-theme="dark"] .hero.resource-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 42%, rgba(17, 17, 17, 0.24) 68%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/generated-detail-wellness-research.png") !important;
}

:root:not([data-theme="dark"]) .tools-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 43%, rgba(247, 241, 231, 0.2) 67%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/generated-tools-workspace.jpg") !important;
}

:root[data-theme="dark"] .tools-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 43%, rgba(17, 17, 17, 0.24) 67%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/generated-tools-workspace.jpg") !important;
}

.guides-hero {
  --mobile-hero-image: url("../images/hero-lab-vial.jpg") !important;
}

:root:not([data-theme="dark"]) .guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 42%, rgba(247, 241, 231, 0.2) 68%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/hero-lab-vial.jpg") !important;
}

:root[data-theme="dark"] .guides-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 42%, rgba(17, 17, 17, 0.24) 68%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/hero-lab-vial.jpg") !important;
}

:root:not([data-theme="dark"]) .myths-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 38%, rgba(247, 241, 231, 0.14) 66%, rgba(247, 241, 231, 0.01) 90%),
    url("../images/ref-myths-hero.jpg") !important;
}

:root[data-theme="dark"] .myths-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 38%, rgba(17, 17, 17, 0.18) 66%, rgba(17, 17, 17, 0.06) 90%),
    url("../images/ref-myths-hero.jpg") !important;
}

:root:not([data-theme="dark"]) .about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 42%, rgba(247, 241, 231, 0.2) 68%, rgba(247, 241, 231, 0.02) 90%),
    url("../images/generated-about-hero-banner-v3.png") !important;
}

:root[data-theme="dark"] .about-page .about-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 42%, rgba(17, 17, 17, 0.24) 68%, rgba(17, 17, 17, 0.08) 90%),
    url("../images/generated-about-hero-banner-v3.png") !important;
}

.library-hero {
  --mobile-hero-image: url("../images/generated-category-longevity-cellular-v2-landscape.jpg") !important;
}

:root:not([data-theme="dark"]) .library-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 40%, rgba(247, 241, 231, 0.14) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/generated-category-longevity-cellular-v2-landscape.jpg") !important;
}

:root[data-theme="dark"] .library-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 40%, rgba(17, 17, 17, 0.18) 68%, rgba(17, 17, 17, 0.06) 92%),
    url("../images/generated-category-longevity-cellular-v2-landscape.jpg") !important;
}

:root:not([data-theme="dark"]) .contact-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.66) 42%, rgba(247, 241, 231, 0.16) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/blog-feature-petri.jpg") !important;
}

:root[data-theme="dark"] .contact-hero {
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.54) 42%, rgba(17, 17, 17, 0.18) 68%, rgba(17, 17, 17, 0.06) 92%),
    url("../images/blog-feature-petri.jpg") !important;
}

:root:not([data-theme="dark"]) .blog-hero-section {
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.66) 42%, rgba(247, 241, 231, 0.16) 68%, rgba(247, 241, 231, 0.01) 92%),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

:root[data-theme="dark"] .blog-hero-section {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.54) 42%, rgba(17, 17, 17, 0.18) 68%, rgba(17, 17, 17, 0.06) 92%),
    url("../images/generated-blog-hero.png") center / cover no-repeat !important;
}

/* =====================================================================
   LIGHT-MODE IMAGE VIVIDNESS FIX (requested): match the dark-mode look.
   The earlier passes flattened light-mode images under a near-opaque cream
   wash. These final rules restore a vivid image using the same vertical
   gradient geometry dark mode uses, just in the light palette.
   ===================================================================== */
:root:not([data-theme="dark"]) .compound-page .section.tight .container > .flex-between,
:root:not([data-theme="dark"]) .compound-page .compound-content > .flex-between {
  background:
    linear-gradient(rgba(255, 250, 243, 0.10) 0%, rgba(255, 250, 243, 0.42) 46%, rgba(255, 250, 243, 0.88) 100%),
    var(--compound-image) center / cover no-repeat !important;
}
/* Compound side thumbnail: let the image read fully (no text over it). */
:root:not([data-theme="dark"]) .compound-side-thumb {
  background:
    linear-gradient(rgba(255, 250, 243, 0.04), rgba(255, 250, 243, 0.10)),
    var(--compound-image) center / cover no-repeat !important;
}

/* =====================================================================
   MERGED COMPOUND PROFILE CARD (requested): one card at the top with the
   image as a header band (same treatment as the homepage hero), and the
   real content (research summary, stats, compatibility) readable below.
   ===================================================================== */
.compound-glance-card.compound-profile-card {
  padding: 0 !important;
  overflow: hidden;
  background: var(--surface) !important;
  border: 1px solid var(--border);
}
.compound-profile-card .glance-head {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 5vw, 44px);
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.82) 0%, rgba(247, 241, 231, 0.7) 42%, rgba(247, 241, 231, 0.2) 68%, rgba(247, 241, 231, 0.02) 90%),
    var(--compound-image) center / cover no-repeat;
}
:root[data-theme="dark"] .compound-profile-card .glance-head {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.58) 42%, rgba(17, 17, 17, 0.24) 68%, rgba(17, 17, 17, 0.08) 90%),
    var(--compound-image) center / cover no-repeat;
}
.compound-profile-card .glance-head .eyebrow { margin-bottom: 8px; }
.compound-profile-card .glance-head h2 { margin: 0; }
.compound-profile-card .glance-body {
  padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 30px) clamp(20px, 4vw, 28px);
}
.compound-profile-card .glance-body .compound-overview-lede { margin-top: 0; }
.compound-profile-card .glance-compat-heading { margin: 24px 0 6px; }

/* =====================================================================
   COMPOUND PROFILE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â one cohesive card (requested): uniform background,
   even spacing throughout, consistent sub-panels, site fonts.
   ===================================================================== */
.compound-glance-card.compound-profile-card {
  padding: clamp(24px, 4vw, 40px) !important;
  overflow: visible;
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: 10px;
}
/* Header now sits on the same background as everything below (no image band) */
.compound-profile-card .glance-head {
  min-height: 0;
  padding: 0;
  margin: 0 0 22px;
  display: block;
  background: none !important;
}
.compound-profile-card .glance-head .eyebrow { margin-bottom: 10px; }
.compound-profile-card .glance-head h2 {
  margin: 0;
  font-family: var(--font-display);
}
.compound-profile-card .glance-body { padding: 0; }

/* "Commonly researched for" intro */
.compound-profile-card .glance-focus { margin: 0 0 22px; }
.compound-profile-card .glance-focus .eyebrow { display: block; margin-bottom: 8px; }
.compound-profile-card .compound-overview-lede {
  font-family: var(--font-body) !important;
  font-size: 1.15rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  color: var(--ink) !important;
}

/* Consistent, evenly spaced sub-panels */
.compound-profile-card .overview-research-summary,
.compound-profile-card .compound-overview-stats {
  margin: 22px 0 0 !important;
  padding: 20px 22px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.compound-profile-card .overview-research-summary h4 {
  margin: 0 0 14px;
  font-family: var(--font-display);
}
/* Even breathing room between research rows */
.compound-profile-card .overview-row {
  padding: 12px 0 !important;
  gap: 14px !important;
}
.compound-profile-card .overview-row:first-of-type { padding-top: 0 !important; }
.compound-profile-card .overview-row:last-of-type { padding-bottom: 0 !important; }

/* Evidence strength label + meter: keep them close together */
.compound-profile-card .overview-evidence-line {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Even, roomy stat grid */
.compound-profile-card .compound-overview-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 24px !important;
}
.compound-profile-card .overview-stat { padding: 0 !important; border: 0 !important; }
.compound-profile-card .overview-stat + .overview-stat { border: 0 !important; }

/* Compatibility sits inside the same card, evenly spaced */
.compound-profile-card .glance-compat-heading {
  margin: 26px 0 10px !important;
  font-family: var(--font-display);
}

/* Site fonts everywhere in this card */
.compound-profile-card,
.compound-profile-card p,
.compound-profile-card span,
.compound-profile-card strong,
.compound-profile-card li,
.compound-profile-card a { font-family: var(--font-body); }
.compound-profile-card h2,
.compound-profile-card h3,
.compound-profile-card h4 { font-family: var(--font-display); }

@media (max-width: 640px) {
  .compound-profile-card .compound-overview-stats { grid-template-columns: 1fr !important; }
}

/* --- v26 focused correction: homepage logo, symptom picker, guide spacing --- */
.home-brand-logo .brand-logo-home {
  width: clamp(190px, 18vw, 270px) !important;
  min-height: 52px !important;
}

.home-brand-logo .brand-logo-home img {
  max-height: 58px !important;
}

.home-brand-logo .mark {
  display: none !important;
}

.guides-page .secondary-guide-grid {
  margin-top: clamp(28px, 3.2vw, 44px) !important;
  gap: clamp(22px, 2.4vw, 32px) !important;
}

.home-page .home-start-feature .home-start-grid {
  min-height: clamp(410px, 42vw, 560px) !important;
  padding: clamp(22px, 4vw, 42px) !important;
}

.home-page .home-start-feature .home-start-copy {
  max-width: 700px !important;
}

.home-page .home-start-feature .home-start-copy h2 {
  text-wrap: balance;
}

.home-symptom-box input[type="search"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}

:root[data-theme="dark"] .home-symptom-box input[type="search"] {
  background: rgba(13, 18, 18, 0.92);
  color: var(--ink);
  border-color: rgba(232, 222, 207, 0.24);
}

.home-symptom-cta {
  display: none !important;
}

.home-output-card ol {
  gap: 10px;
}

.why-navaro-card.home-bleed-card {
  padding: clamp(24px, 3vw, 38px) 0 !important;
}

.why-navaro-card .why-navaro-copy {
  margin-bottom: 18px !important;
}

.why-navaro-title {
  gap: 4px !important;
}

.why-navaro-title .navaro-section-logo {
  width: min(100%, 340px) !important;
}

.why-navaro-card .why-principles div {
  min-height: 126px !important;
}

@media (max-width: 760px) {
  .home-brand-logo .brand-logo-home {
    width: 176px !important;
    min-height: 46px !important;
  }

  .home-brand-logo .brand-logo-home img {
    max-height: 50px !important;
  }

  .home-page .home-start-feature .home-start-grid {
    min-height: 520px !important;
  }
}

/* --- v26 focused correction: results, COA tabs, single hero image, exports --- */
.home-symptom-output {
  width: min(100%, 760px);
}

.home-output-card {
  text-align: left !important;
  max-width: 760px !important;
  margin: 18px auto 0 0 !important;
}

.home-output-card h3 {
  text-align: left !important;
  margin-bottom: 16px !important;
}

.home-output-card ol {
  display: grid !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.home-output-card li {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
  text-align: left !important;
  padding: 14px 0 !important;
  border-top: 1px solid rgba(255, 250, 243, 0.18) !important;
}

.home-output-card li:first-child {
  border-top: 0 !important;
}

.home-output-index {
  display: grid !important;
  place-items: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: rgba(232, 213, 177, 0.24) !important;
  color: inherit !important;
  font-weight: 800 !important;
  font-family: var(--font-body) !important;
}

.home-output-card .badge {
  width: max-content !important;
  margin: 0 0 6px !important;
}

.home-output-card strong,
.home-output-card small {
  display: block !important;
  text-align: left !important;
}

.home-output-card small {
  line-height: 1.55 !important;
}

.tool-mode-tabs {
  background: rgba(255, 250, 243, 0.92) !important;
  border-color: rgba(17, 24, 39, 0.18) !important;
}

.tool-mode-tabs button {
  background: rgba(255, 255, 255, 0.7) !important;
  color: #071819 !important;
}

.tool-mode-tabs button:hover {
  background: rgba(232, 213, 177, 0.24) !important;
}

.tool-mode-tabs button.active {
  background: #071819 !important;
  color: #fff7ea !important;
}

:root[data-theme="dark"] .tool-mode-tabs {
  background: rgba(255, 250, 243, 0.08) !important;
  border-color: rgba(232, 222, 207, 0.22) !important;
}

:root[data-theme="dark"] .tool-mode-tabs button {
  background: rgba(255, 250, 243, 0.1) !important;
  color: #fff7ea !important;
}

:root[data-theme="dark"] .tool-mode-tabs button:hover {
  background: rgba(232, 213, 177, 0.16) !important;
}

:root[data-theme="dark"] .tool-mode-tabs button.active {
  background: #f0e3c7 !important;
  color: #071819 !important;
}

.tools-hero::before,
.tools-hero::after {
  display: none !important;
}

.tools-hero {
  background:
    linear-gradient(90deg, rgba(247, 241, 231, 0.84) 0%, rgba(247, 241, 231, 0.68) 43%, rgba(247, 241, 231, 0.28) 68%, rgba(247, 241, 231, 0.06) 100%),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat !important;
}

:root[data-theme="dark"] .tools-hero {
  background:
    linear-gradient(90deg, rgba(4, 17, 20, 0.68) 0%, rgba(4, 17, 20, 0.54) 43%, rgba(4, 17, 20, 0.28) 68%, rgba(4, 17, 20, 0.1) 100%),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat !important;
}

.hero-copy,
.page-hero .container > div:first-child,
.home-section-visual.home-tools-hero > div:first-child,
.home-start-copy,
.featured-card,
.article-card,
.blog-card,
.guide-feature,
.home-tool-card,
.compact-compound-card {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .hero-copy,
:root[data-theme="dark"] .page-hero .container > div:first-child,
:root[data-theme="dark"] .home-section-visual.home-tools-hero > div:first-child,
:root[data-theme="dark"] .home-start-copy,
:root[data-theme="dark"] .featured-card,
:root[data-theme="dark"] .article-card,
:root[data-theme="dark"] .blog-card,
:root[data-theme="dark"] .guide-feature,
:root[data-theme="dark"] .home-tool-card,
:root[data-theme="dark"] .compact-compound-card {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.44);
}

.image-card::after,
.featured-card::before,
.article-card::before,
.blog-card::before,
.guide-feature::before,
.home-tool-card::before,
.compact-compound-card::before {
  pointer-events: none;
}

.featured-card::before,
.article-card::before,
.blog-card::before,
.guide-feature::before,
.home-tool-card::before,
.compact-compound-card::before {
  background: linear-gradient(180deg, rgba(5, 10, 11, 0.12) 0%, rgba(5, 10, 11, 0.36) 52%, rgba(5, 10, 11, 0.64) 100%) !important;
}

:root[data-theme="dark"] .featured-card::before,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .blog-card::before,
:root[data-theme="dark"] .guide-feature::before,
:root[data-theme="dark"] .home-tool-card::before,
:root[data-theme="dark"] .compact-compound-card::before {
  background: linear-gradient(180deg, rgba(5, 10, 11, 0.18) 0%, rgba(5, 10, 11, 0.44) 52%, rgba(5, 10, 11, 0.7) 100%) !important;
}

.syringe-visual-card {
  margin-top: 18px;
  border: 1px solid rgba(232, 222, 207, 0.44);
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 50%, rgba(232, 213, 177, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.74), rgba(255, 250, 243, 0.18));
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(7, 24, 25, 0.12);
}

:root[data-theme="dark"] .syringe-visual-card {
  background:
    radial-gradient(circle at 52% 50%, rgba(232, 213, 177, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0.02));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.champagne-syringe {
  display: block;
  width: 100%;
  min-height: 170px;
  color: var(--ink);
  background: transparent;
}

.champagne-syringe .syringe-fill {
  transition: width 260ms ease;
}

.tool-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.tool-save-actions .btn {
  min-height: 40px;
  padding: 9px 14px;
}

@media print {
  body.printing-tool-result .site-header,
  body.printing-tool-result .disclaimer-banner,
  body.printing-tool-result .site-footer,
  body.printing-tool-result .tool-save-actions {
    display: none !important;
  }

  body.printing-tool-result main {
    padding: 0 !important;
  }
}

/* --- v26 final override at EOF: latest requested fixes win --- */
.site-header .brand {
  min-width: clamp(190px, 17vw, 270px) !important;
}
.site-header .brand .brand-logo-home {
  display: block !important;
  width: clamp(190px, 17vw, 270px) !important;
  min-height: 50px !important;
}
.site-header .brand .brand-logo-home img {
  display: block;
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.site-header .brand-logo-for-dark,
:root[data-theme="dark"] .site-header .brand-logo-for-light { display: none !important; }
:root[data-theme="dark"] .site-header .brand-logo-for-dark,
:root:not([data-theme="dark"]) .site-header .brand-logo-for-light { display: block !important; }

.home-page .section {
  padding-top: clamp(36px, 4.2vw, 54px) !important;
  padding-bottom: clamp(36px, 4.2vw, 54px) !important;
}
.home-page .home-library-feature-section,
.home-page .home-start-section,
.home-page .home-why-navaro-section {
  padding-top: clamp(26px, 3vw, 42px) !important;
  padding-bottom: clamp(26px, 3vw, 42px) !important;
}
.home-page .home-start-section > .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.home-page .home-start-feature .home-start-grid {
  width: 100% !important;
  border-radius: 0 !important;
  min-height: clamp(310px, 31vw, 420px) !important;
  padding: clamp(22px, 3.2vw, 38px) max(24px, calc((100vw - var(--container)) / 2)) !important;
}
.home-page .home-start-feature .home-start-copy { max-width: 720px !important; }
.home-output-card {
  background: rgba(7, 24, 25, 0.56) !important;
  border: 1px solid rgba(255, 250, 243, 0.16) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  backdrop-filter: blur(12px);
}
:root:not([data-theme="dark"]) .home-output-card {
  background: rgba(255, 250, 243, 0.78) !important;
  border-color: rgba(17, 23, 22, 0.14) !important;
}

.why-navaro-card.home-bleed-card { padding: clamp(22px, 2.8vw, 34px) 0 !important; }
.why-navaro-card .why-navaro-copy { margin-bottom: 14px !important; }
.why-navaro-title { gap: 2px !important; }
.why-navaro-title .navaro-section-logo {
  width: min(100%, 310px) !important;
  height: 58px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}
.why-navaro-title .navaro-section-logo img {
  width: 420px !important;
  max-width: none !important;
  height: 58px !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: translateX(-92px);
}
.why-navaro-card .why-principles div { min-height: 108px !important; }
.why-navaro-card .why-principles div span { color: rgba(255, 250, 243, 0.82) !important; }
:root:not([data-theme="dark"]) .why-navaro-card .why-principles div span { color: rgba(7, 24, 25, 0.68) !important; }

.featured-card,
.article-card,
.blog-card,
.guide-feature,
.home-tool-card,
.compact-compound-card,
.tool-card.image-card,
.popular-tool-card,
.home-mini-card,
.myth-feature-card {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.82),
    0 10px 26px rgba(0, 0, 0, 0.62) !important;
}
.featured-card::before,
.article-card::before,
.blog-card::before,
.guide-feature::before,
.home-tool-card::before,
.compact-compound-card::before,
.tool-card.image-card::before,
.popular-tool-card::before,
.home-mini-card::before,
.myth-feature-card::before {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.1) 0%, rgba(4, 17, 20, 0.38) 48%, rgba(4, 17, 20, 0.78) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.3), rgba(4, 17, 20, 0.04)) !important;
}

.guides-hero {
  background-image:
    linear-gradient(90deg, rgba(247, 241, 231, 0.9) 0%, rgba(247, 241, 231, 0.76) 42%, rgba(247, 241, 231, 0.28) 70%, rgba(247, 241, 231, 0.04) 90%),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}
:root[data-theme="dark"] .guides-hero {
  background-image:
    linear-gradient(90deg, rgba(4, 17, 20, 0.7) 0%, rgba(4, 17, 20, 0.54) 42%, rgba(4, 17, 20, 0.28) 70%, rgba(4, 17, 20, 0.1) 90%),
    url("../images/navaro-dosage-guides-editorial.png") !important;
}

:root:not([data-theme="dark"]) .compound-glance-card.compound-profile-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.9), rgba(255, 250, 243, 0.78)),
    var(--compound-image) center / cover no-repeat !important;
}
.compound-profile-card .overview-research-summary,
.compound-profile-card .overview-research-summary p,
.compound-profile-card .overview-research-summary span,
.compound-profile-card .overview-research-summary strong,
.compound-profile-card .overview-row,
.compound-profile-card .overview-row p { font-family: var(--font-body) !important; }
.compound-profile-card .overview-research-summary h4 { font-family: var(--font-display) !important; }

.protocol-draw-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px) minmax(140px, 190px);
  gap: 14px;
  align-items: end;
  margin: 12px 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.protocol-draw-frame strong,
.protocol-draw-frame span { display: block; }
.protocol-draw-frame span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 3px;
}
.protocol-draw-frame label {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.protocol-draw-frame input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}
.protocol-draw-units {
  color: var(--champagne-hover-text);
  font-weight: 800;
  white-space: nowrap;
}

.compound-related-web { margin-top: 34px !important; }
.compound-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.compound-related-controls { display: flex; gap: 8px; }
.compound-related-controls button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.compound-related-window { overflow: hidden; }
.compound-related-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 16px !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.compound-related-grid a {
  position: relative;
  flex: 0 0 clamp(190px, 22vw, 250px);
  aspect-ratio: 1 / 1;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 250, 243, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.08), rgba(4, 17, 20, 0.78)),
    var(--related-image) center / cover no-repeat !important;
  color: #fff7ea !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  scroll-snap-align: start;
}
.compound-related-grid a small,
.compound-related-grid a strong { position: relative; z-index: 1; }
.compound-related-grid a small { color: rgba(255, 247, 234, 0.78) !important; }
.compound-related-grid a:hover {
  transform: none !important;
  border-color: var(--champagne-hover-border) !important;
  box-shadow: 0 0 0 1px rgba(234, 223, 201, 0.22), 0 0 34px var(--champagne-hover-glow) !important;
}

.about-page .about-proof-row span:hover,
.about-page .navaro-pillars div:hover {
  transform: none !important;
  border-color: var(--champagne-hover-border) !important;
  background: var(--champagne-hover-soft) !important;
  box-shadow: 0 0 0 1px rgba(234, 223, 201, 0.22), 0 0 34px var(--champagne-hover-glow) !important;
}

@media (max-width: 760px) {
  .site-header .brand { min-width: 166px !important; }
  .site-header .brand .brand-logo-home {
    width: 166px !important;
    min-height: 44px !important;
  }
  .site-header .brand .brand-logo-home img { max-height: 46px; }
  .home-page .home-start-feature .home-start-grid {
    min-height: 430px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .protocol-draw-frame { grid-template-columns: 1fr; }
}

/* --- v26 exact follow-up: logo, profile image, protocols, exports --- */
.site-header .brand {
  min-width: clamp(245px, 21vw, 360px) !important;
}
.site-header .brand .brand-logo-home {
  width: clamp(245px, 21vw, 360px) !important;
  min-height: 64px !important;
}
.site-header .brand .brand-logo-home img {
  max-height: 74px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

:root:not([data-theme="dark"]) .compound-glance-card.compound-profile-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.74), rgba(255, 250, 243, 0.66)),
    var(--compound-image) center / cover no-repeat !important;
}
.compound-glance-card.compound-profile-card {
  box-shadow: 0 22px 54px rgba(7, 24, 25, 0.14) !important;
}
:root[data-theme="dark"] .compound-glance-card.compound-profile-card {
  background:
    linear-gradient(180deg, rgba(14, 15, 14, 0.66), rgba(14, 15, 14, 0.72)),
    var(--compound-image) center / cover no-repeat !important;
}

.featured-card,
.article-card,
.blog-card,
.guide-feature,
.home-tool-card,
.compact-compound-card,
.tool-card.image-card,
.popular-tool-card,
.home-mini-card,
.myth-feature-card,
.compound-related-grid a {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 4px 12px rgba(0, 0, 0, 0.88),
    0 16px 34px rgba(0, 0, 0, 0.72) !important;
}

.protocol-draw-frame {
  margin: 14px 0 20px !important;
}
.protocol-draw-frame strong {
  font-family: var(--font-display) !important;
  font-size: clamp(1.16rem, 1.5vw, 1.38rem) !important;
  line-height: 1.15 !important;
}
.protocol-draw-frame strong em {
  font-style: italic !important;
}
.protocol-units-head[hidden],
.protocol-draw-units[hidden] {
  display: none !important;
}

.tool-save-actions {
  justify-content: flex-end !important;
  margin: 18px 0 0 !important;
}
.tool-print-branding {
  display: none;
}

@media print {
  .tool-print-branding {
    display: block !important;
    margin: 0 0 18px !important;
    padding: 22px 24px !important;
    border: 1px solid #d7cbb8 !important;
    border-radius: 18px !important;
    background: #fff8ec !important;
    color: #071819 !important;
    break-inside: avoid;
  }
  .tool-print-branding .tool-print-logo {
    font-family: Georgia, serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
  }
  .tool-print-branding strong {
    display: block !important;
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }
  .tool-print-branding span {
    color: #6f665c !important;
    font-size: 12px !important;
  }
}

@media (max-width: 760px) {
  .site-header .brand {
    min-width: 190px !important;
  }
  .site-header .brand .brand-logo-home {
    width: 190px !important;
    min-height: 50px !important;
  }
  .site-header .brand .brand-logo-home img {
    max-height: 54px !important;
  }
}

/* --- v26 readability/layout correction: requested 2026-07-30 --- */
.site-header .brand {
  min-width: clamp(300px, 24vw, 430px) !important;
}
.site-header .brand .brand-logo-home {
  width: clamp(300px, 24vw, 430px) !important;
  min-height: 76px !important;
}
.site-header .brand .brand-logo-home img {
  max-height: 88px !important;
}

.protocol-draw-frame {
  grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) !important;
  justify-content: start !important;
  align-items: end !important;
}
.protocol-draw-frame > div:first-child {
  grid-column: 1 / -1 !important;
}
.protocol-draw-frame strong {
  max-width: none !important;
}

.featured-card,
.article-card,
.blog-card,
.guide-feature,
.home-tool-card,
.compact-compound-card,
.tool-card.image-card,
.popular-tool-card,
.home-mini-card,
.myth-feature-card,
.compound-related-grid a {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 3px 8px rgba(0, 0, 0, 0.98),
    0 8px 22px rgba(0, 0, 0, 0.92),
    0 18px 44px rgba(0, 0, 0, 0.82) !important;
}
.featured-card h3,
.featured-card p,
.featured-card .featured-link,
.article-card h3,
.article-card p,
.blog-card h3,
.blog-card p,
.guide-feature h3,
.guide-feature p,
.guide-feature li,
.guide-feature .go,
.home-tool-card h3,
.home-tool-card p,
.compact-compound-card h3,
.compact-compound-card p,
.tool-card.image-card h3,
.tool-card.image-card p,
.popular-tool-card h3,
.popular-tool-card p,
.home-mini-card h3,
.home-mini-card p,
.myth-feature-card h3,
.myth-feature-card p {
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 1),
    0 4px 12px rgba(0, 0, 0, 0.95),
    0 14px 30px rgba(0, 0, 0, 0.82) !important;
}
.image-card,
.guide-feature {
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 243, 0.12),
    inset 0 -120px 120px rgba(0, 0, 0, 0.34),
    0 18px 38px rgba(7, 24, 25, 0.18) !important;
}
.image-card::after,
.guide-feature::before,
.featured-card::before,
.article-card::before,
.blog-card::before,
.home-tool-card::before,
.compact-compound-card::before,
.tool-card.image-card::before,
.popular-tool-card::before,
.home-mini-card::before,
.myth-feature-card::before {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.2) 0%, rgba(4, 17, 20, 0.44) 50%, rgba(4, 17, 20, 0.82) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.62), rgba(4, 17, 20, 0.16)) !important;
}

.guide-feature-grid {
  gap: clamp(18px, 2vw, 26px) !important;
  align-items: stretch !important;
}
.guide-feature {
  min-height: clamp(330px, 32vw, 430px) !important;
  padding: clamp(24px, 2.4vw, 34px) !important;
  background-position: center !important;
  color: #fff7ea !important;
}
.guide-feature h3,
.guide-feature p,
.guide-feature li,
.guide-feature .go {
  color: #fff7ea !important;
}
.guide-feature .btn.mini {
  background: rgba(255, 250, 243, 0.92) !important;
  color: #071819 !important;
  text-shadow: none !important;
}
.guide-symptom-card {
  background-image: url("../images/home-start-symptom-bg-requested.png") !important;
}
.guide-coach-card {
  background-image: url("../images/generated-guide-coach-home-v2.png") !important;
}
.guide-blood-card {
  background-image: url("../images/generated-detail-bloodwork.png") !important;
}

.why-navaro-title .navaro-section-logo {
  width: min(100%, 430px) !important;
  height: 118px !important;
  overflow: visible !important;
  margin: 0 auto 2px !important;
}
.why-navaro-title .navaro-section-logo img {
  width: 100% !important;
  max-width: 430px !important;
  height: 118px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.why-navaro-title {
  gap: 0 !important;
}
.why-navaro-title > span:last-child {
  margin-top: -16px !important;
}

:root:not([data-theme="dark"]) .hero-content h1,
:root:not([data-theme="dark"]) .hero-content p,
:root:not([data-theme="dark"]) .section-heading h2,
:root:not([data-theme="dark"]) .section-heading p {
  text-shadow:
    0 1px 0 rgba(255, 250, 243, 0.92),
    0 8px 22px rgba(255, 250, 243, 0.72),
    0 18px 40px rgba(255, 250, 243, 0.5);
}

@media (max-width: 760px) {
  .site-header .brand {
    min-width: 220px !important;
  }
  .site-header .brand .brand-logo-home {
    width: 220px !important;
    min-height: 58px !important;
  }
  .site-header .brand .brand-logo-home img {
    max-height: 64px !important;
  }
  .protocol-draw-frame {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .protocol-draw-frame > div:first-child {
    grid-column: 1 / -1 !important;
  }
  .protocol-draw-frame label {
    min-width: 0 !important;
  }
  .guide-feature-grid {
    grid-template-columns: 1fr !important;
  }
  .guide-feature {
    min-height: 360px !important;
  }
  .why-navaro-title .navaro-section-logo {
    width: min(100%, 330px) !important;
    height: 92px !important;
  }
  .why-navaro-title .navaro-section-logo img {
    max-width: 330px !important;
    height: 92px !important;
  }
}



/* =====================================================================
   COMPACT HEADER (requested): the logo had been enlarged to ~88px tall,
   making the menu bar too tall. Bring it back to a normal header height.
   ===================================================================== */
.site-header .brand,
.site-header .brand .brand-logo-home {
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
}
.site-header .brand .brand-logo-home img {
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
}
.site-header .bar {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
@media (max-width: 640px) {
  .site-header .brand .brand-logo-home img { height: 34px !important; max-height: 34px !important; }
}

/* =====================================================================
   GUIDES PAGE (requested): the three feature cards were noticeably darker
   than the other cards on the page. Match their overlay to the lighter
   treatment used elsewhere, and drop the extra inset dark shadow.
   ===================================================================== */
.guide-feature::before {
  background:
    linear-gradient(180deg, rgba(4, 17, 20, 0.04) 0%, rgba(4, 17, 20, 0.34) 44%, rgba(4, 17, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.54), rgba(4, 17, 20, 0.08)) !important;
}
.guide-feature {
  box-shadow: 0 18px 38px rgba(7, 24, 25, 0.18) !important;
}

/* =====================================================================
   CODEX VISUAL REPAIR: final Cloudflare-safe overrides.
   Fixes the menu logo canvas issue, the bad repeated/cropped tools hero,
   and overly inconsistent image overlays without changing page content.
   ===================================================================== */
.site-header .brand {
  min-width: clamp(230px, 20vw, 330px) !important;
}

.site-header .brand .brand-logo-home {
  width: clamp(220px, 18vw, 320px) !important;
  height: 58px !important;
  min-width: clamp(220px, 18vw, 320px) !important;
  min-height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.site-header .brand .brand-logo-home img {
  width: 100% !important;
  height: 58px !important;
  max-width: none !important;
  max-height: 58px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

@media (max-width: 720px) {
  .site-header .brand {
    min-width: clamp(176px, 44vw, 230px) !important;
  }

  .site-header .brand .brand-logo-home {
    width: clamp(170px, 42vw, 220px) !important;
    height: 46px !important;
    min-width: clamp(170px, 42vw, 220px) !important;
    min-height: 46px !important;
  }

  .site-header .brand .brand-logo-home img {
    height: 46px !important;
    max-height: 46px !important;
  }
}

.tools-hero::before,
.tools-hero::after {
  display: none !important;
}

.tools-hero {
  background:
    linear-gradient(90deg,
      rgba(247, 241, 231, 0.82) 0%,
      rgba(247, 241, 231, 0.62) 42%,
      rgba(247, 241, 231, 0.24) 100%),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat !important;
}

:root[data-theme="dark"] .tools-hero {
  background:
    linear-gradient(90deg,
      rgba(4, 17, 20, 0.62) 0%,
      rgba(4, 17, 20, 0.48) 48%,
      rgba(4, 17, 20, 0.30) 100%),
    url("../images/generated-tools-workspace.jpg") center / cover no-repeat !important;
}

.home-section-visual,
.feature-card,
.guide-card,
.tool-card,
.compound-card,
.article-card,
.category-card,
.library-category-card,
.related-card,
.home-card,
.visual-card {
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center !important;
}

.home-section-visual::before,
.feature-card::before,
.guide-card::before,
.tool-card::before,
.compound-card::before,
.article-card::before,
.category-card::before,
.library-category-card::before,
.related-card::before,
.home-card::before,
.visual-card::before,
.home-section-visual::after,
.feature-card::after,
.guide-card::after,
.tool-card::after,
.compound-card::after,
.article-card::after,
.category-card::after,
.library-category-card::after,
.related-card::after,
.home-card::after,
.visual-card::after {
  background-image:
    linear-gradient(180deg,
      rgba(4, 17, 20, 0.12) 0%,
      rgba(4, 17, 20, 0.34) 48%,
      rgba(4, 17, 20, 0.62) 100%) !important;
}

:root[data-theme="dark"] .home-section-visual::before,
:root[data-theme="dark"] .feature-card::before,
:root[data-theme="dark"] .guide-card::before,
:root[data-theme="dark"] .tool-card::before,
:root[data-theme="dark"] .compound-card::before,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .category-card::before,
:root[data-theme="dark"] .library-category-card::before,
:root[data-theme="dark"] .related-card::before,
:root[data-theme="dark"] .home-card::before,
:root[data-theme="dark"] .visual-card::before,
:root[data-theme="dark"] .home-section-visual::after,
:root[data-theme="dark"] .feature-card::after,
:root[data-theme="dark"] .guide-card::after,
:root[data-theme="dark"] .tool-card::after,
:root[data-theme="dark"] .compound-card::after,
:root[data-theme="dark"] .article-card::after,
:root[data-theme="dark"] .category-card::after,
:root[data-theme="dark"] .library-category-card::after,
:root[data-theme="dark"] .related-card::after,
:root[data-theme="dark"] .home-card::after,
:root[data-theme="dark"] .visual-card::after {
  background-image:
    linear-gradient(180deg,
      rgba(4, 17, 20, 0.10) 0%,
      rgba(4, 17, 20, 0.30) 48%,
      rgba(4, 17, 20, 0.58) 100%) !important;
}

/* =====================================================================
   CODEX ANATOMY + READABILITY REPAIR
   Uses the existing images, only softening overlays and tightening mobile
   controls. The Explore All Compounds feature intentionally stays darker.
   ===================================================================== */
.about-page .navaro-pillars {
  display: none !important;
}

.home-section-visual::before,
.feature-card::before,
.guide-card::before,
.tool-card::before,
.compound-card::before,
.article-card::before,
.category-card::before,
.library-category-card::before,
.related-card::before,
.home-card::before,
.visual-card::before,
.home-section-visual::after,
.feature-card::after,
.guide-card::after,
.tool-card::after,
.compound-card::after,
.article-card::after,
.category-card::after,
.library-category-card::after,
.related-card::after,
.home-card::after,
.visual-card::after {
  background-image:
    linear-gradient(180deg,
      rgba(4, 17, 20, 0.05) 0%,
      rgba(4, 17, 20, 0.20) 46%,
      rgba(4, 17, 20, 0.48) 100%) !important;
}

:root[data-theme="dark"] .home-section-visual::before,
:root[data-theme="dark"] .feature-card::before,
:root[data-theme="dark"] .guide-card::before,
:root[data-theme="dark"] .tool-card::before,
:root[data-theme="dark"] .compound-card::before,
:root[data-theme="dark"] .article-card::before,
:root[data-theme="dark"] .category-card::before,
:root[data-theme="dark"] .library-category-card::before,
:root[data-theme="dark"] .related-card::before,
:root[data-theme="dark"] .home-card::before,
:root[data-theme="dark"] .visual-card::before,
:root[data-theme="dark"] .home-section-visual::after,
:root[data-theme="dark"] .feature-card::after,
:root[data-theme="dark"] .guide-card::after,
:root[data-theme="dark"] .tool-card::after,
:root[data-theme="dark"] .compound-card::after,
:root[data-theme="dark"] .article-card::after,
:root[data-theme="dark"] .category-card::after,
:root[data-theme="dark"] .library-category-card::after,
:root[data-theme="dark"] .related-card::after,
:root[data-theme="dark"] .home-card::after,
:root[data-theme="dark"] .visual-card::after {
  background-image:
    linear-gradient(180deg,
      rgba(4, 17, 20, 0.08) 0%,
      rgba(4, 17, 20, 0.24) 46%,
      rgba(4, 17, 20, 0.52) 100%) !important;
}

.home-library-feature-card.home-bleed-card::before,
.home-library-feature-card.home-bleed-card::after {
  background-image:
    linear-gradient(90deg,
      rgba(4, 17, 20, 0.84) 0%,
      rgba(4, 17, 20, 0.64) 48%,
      rgba(4, 17, 20, 0.36) 100%) !important;
}

.guide-feature::before {
  background:
    linear-gradient(180deg,
      rgba(4, 17, 20, 0.04) 0%,
      rgba(4, 17, 20, 0.18) 42%,
      rgba(4, 17, 20, 0.56) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.28), rgba(4, 17, 20, 0.04)) !important;
}

:root[data-theme="dark"] .guide-feature::before {
  background:
    linear-gradient(180deg,
      rgba(4, 17, 20, 0.08) 0%,
      rgba(4, 17, 20, 0.24) 42%,
      rgba(4, 17, 20, 0.58) 100%),
    linear-gradient(90deg, rgba(4, 17, 20, 0.34), rgba(4, 17, 20, 0.06)) !important;
}

.guide-feature::after {
  background: transparent !important;
  opacity: 0 !important;
}

.feature-card h3,
.guide-card h3,
.tool-card h3,
.compound-card h3,
.article-card h3,
.category-card h3,
.library-category-card h3,
.related-card h3,
.home-card h3,
.visual-card h3,
.guide-feature h3,
.feature-card p,
.guide-card p,
.tool-card p,
.compound-card p,
.article-card p,
.category-card p,
.library-category-card p,
.related-card p,
.home-card p,
.visual-card p,
.guide-feature p,
.guide-feature li,
.guide-feature .go {
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.42),
    0 1px 2px rgba(0, 0, 0, 0.34) !important;
}

.site-search-toggle.nav-icon-btn {
  width: 34px !important;
  height: 34px !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-search-toggle .search-icon {
  width: 15px !important;
  height: 15px !important;
}

@media (max-width: 760px) {
  .site-header .bar {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .site-header .header-actions,
  .site-header .header-search-cluster {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  .site-header .header-search-cluster {
    margin-left: auto !important;
  }

  .site-header .header-actions {
    margin-left: 0 !important;
  }

  .site-header:not(.search-active) .site-search {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
  }

  .site-header:not(.search-active) .site-search-toggle.nav-icon-btn {
    display: inline-flex !important;
  }

  .site-header .site-search-toggle.nav-icon-btn,
  .site-header #themeToggle.nav-icon-btn,
  .site-header .nav-toggle.nav-icon-btn {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
  }

  .tools-page .tools-hero h1 {
    text-wrap: balance;
  }
}

/* Hormones & androgens education pass */
.androgen-page .androgen-context-card,
.androgen-page .androgen-marker-table,
.androgen-page .source-card,
.risk-checker-page .risk-picker-card,
.risk-checker-page .risk-result-card,
.risk-checker-page .risk-profile-card {
  border-color: rgba(126, 103, 78, 0.18);
  box-shadow: 0 18px 42px rgba(27, 22, 16, 0.08);
}

.androgen-page .androgen-list {
  padding-left: 20px;
  margin: 0 0 24px;
}

.androgen-page .androgen-list li {
  margin-bottom: 10px;
}

.androgen-page .androgen-risk-chips,
.quick-add-row,
.selected-risk-chips,
.risk-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.risk-checker-page > .section.tight:first-child {
  background:
    linear-gradient(90deg, rgba(255, 250, 243, 0.92) 0%, rgba(255, 250, 243, 0.76) 48%, rgba(255, 250, 243, 0.38) 100%),
    url("../images/generated-compound-drostanolone.png") center / cover no-repeat;
}

.risk-checker-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.risk-picker-card {
  position: sticky;
  top: 96px;
}

.risk-picker-card .field {
  margin-bottom: 14px;
}

.quick-add-row {
  margin: 6px 0 14px;
}

.selected-risk-chips {
  min-height: 38px;
  margin: 12px 0 16px;
}

.risk-clear {
  width: 100%;
}

.risk-output {
  display: grid;
  gap: 18px;
}

.risk-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.risk-profile-card h3 {
  margin-bottom: 8px;
}

.risk-profile-card p:last-child,
.risk-result-card p:last-child,
.pair-note p:last-child {
  margin-bottom: 0;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(159, 40, 52, 0.22);
  background: rgba(159, 40, 52, 0.08);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.risk-pill small {
  color: var(--danger);
  font-weight: 800;
}

.risk-small-line {
  margin-top: 14px;
}

.pair-note {
  border-left: 3px solid rgba(159, 40, 52, 0.68);
  padding: 10px 0 10px 14px;
}

.pair-note.neutral {
  border-left-color: rgba(126, 103, 78, 0.38);
}

.risk-marker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.risk-marker-grid span {
  border-radius: 8px;
  border: 1px solid rgba(17, 23, 22, 0.1);
  background: rgba(255, 250, 243, 0.72);
  padding: 10px 12px;
  font-size: 0.94rem;
}

.risk-legal-note {
  margin-top: 22px;
}

.tools-page .tool-card[href$="compatibility-matrix.html"],
.home-tools-section .home-mini-card[href*="compatibility-matrix.html"] {
  background-image: url("../images/generated-tool-compatibility.png");
}

[data-theme="dark"] .risk-checker-page > .section.tight:first-child {
  background:
    linear-gradient(90deg, rgba(20, 19, 17, 0.9) 0%, rgba(20, 19, 17, 0.72) 52%, rgba(20, 19, 17, 0.44) 100%),
    url("../images/generated-compound-drostanolone.png") center / cover no-repeat;
}

[data-theme="dark"] .risk-marker-grid span,
[data-theme="dark"] .risk-pill {
  border-color: rgba(245, 238, 225, 0.14);
  background: rgba(245, 238, 225, 0.08);
  color: var(--ink);
}

@media (max-width: 840px) {
  .risk-checker-grid,
  .risk-summary-row,
  .risk-marker-grid {
    grid-template-columns: 1fr;
  }

  .risk-picker-card {
    position: static;
  }
}

/* Homepage scroll-scrubbed video hero */
.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.home-scroll-video-page {
  background: #0a0a0a !important;
}

.home-scroll-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0a0a;
  overflow: hidden;
  pointer-events: none;
}

.home-scroll-video-bg .home-scroll-poster,
.home-scroll-video-bg .home-scroll-video,
.home-scroll-video-bg .home-scroll-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}

.home-scroll-video-bg .home-scroll-poster {
  opacity: 1;
}

.home-scroll-video-bg.is-poster-hidden .home-scroll-poster {
  opacity: 0;
}

.home-scroll-video-bg.has-video-frame:not(.is-cache-ready) .home-scroll-video {
  opacity: 1;
}

.home-scroll-video-bg.is-cache-ready .home-scroll-video {
  opacity: 0;
}

.home-scroll-video-bg.is-cache-ready .home-scroll-canvas {
  opacity: 1;
}

.home-scroll-video-page .disclaimer-banner,
.home-scroll-video-page .site-header,
.home-scroll-video-page .home-page,
.home-scroll-video-page .site-legal-strip,
.home-scroll-video-page .site-footer {
  position: relative;
  z-index: 1;
}

.home-scroll-video-page .disclaimer-banner {
  background: rgba(8, 10, 10, 0.72) !important;
  color: #f7f1e5 !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.home-scroll-video-page .site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.home-scroll-video-page .site-header .bar.liquid-glass {
  width: min(1240px, calc(100% - 28px));
  margin: 10px auto;
  border-radius: 22px;
  padding: 10px 18px !important;
  background: rgba(10, 10, 10, 0.28) !important;
}

.home-scroll-video-page .site-header .main-nav a,
.home-scroll-video-page .site-header .brand,
.home-scroll-video-page .site-header .btn,
.home-scroll-video-page .site-header .nav-toggle {
  color: #f7f1e5 !important;
}

.home-scroll-video-page .site-header .main-nav a:hover,
.home-scroll-video-page .site-header .main-nav a.active {
  background: rgba(255, 255, 255, 0.1) !important;
}

.home-scroll-video-page .site-header .brand-logo-for-light {
  display: none !important;
}

.home-scroll-video-page .site-header .brand-logo-for-dark {
  display: block !important;
}

.home-scroll-video-page .site-header .brand .mark {
  display: none !important;
}

.home-scroll-video-page .site-header .brand {
  min-width: 224px;
}

.home-scroll-video-page .site-header .brand-logo-home {
  display: flex !important;
  align-items: center;
  width: 218px;
  height: 54px;
  overflow: hidden;
}

.home-scroll-video-page .site-header .brand-logo-home img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-scroll-video-page .home-scroll-hero.hero.resource-hero {
  min-height: 430vh;
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  padding: 0 !important;
  background: transparent !important;
  border-bottom: 0 !important;
}

.home-scroll-video-page .home-scroll-hero::before,
.home-scroll-video-page .home-scroll-hero::after,
.home-scroll-video-page .home-scroll-hero .container::before {
  content: none !important;
  display: none !important;
}

.home-scroll-hero-shell {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 !important;
}

.home-scroll-panel {
  position: absolute;
  top: 50%;
  width: min(540px, calc(100vw - 32px));
  color: #f7f1e5;
  opacity: 0;
  transform: translateY(calc(-50% + 24px)) scale(0.97);
  transition: opacity 420ms ease, transform 620ms cubic-bezier(0.2, 0.78, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

.home-scroll-panel.is-active {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.home-scroll-panel.liquid-glass {
  border-radius: 24px;
  background: rgba(7, 9, 10, 0.52);
  padding: clamp(22px, 3vw, 44px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 26px 80px rgba(0, 0, 0, 0.38);
}

.home-scroll-intro {
  width: min(620px, calc(100vw - 32px));
}

.home-scroll-intro,
.home-scroll-left {
  left: clamp(18px, 6vw, 88px);
}

.home-scroll-right {
  right: clamp(18px, 6vw, 88px);
}

.home-scroll-panel .eyebrow {
  color: rgba(245, 238, 225, 0.78) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.home-scroll-video-page .home-scroll-panel h1,
.home-scroll-video-page .home-scroll-panel h1 *,
.home-scroll-video-page .home-scroll-panel h2,
.home-scroll-video-page .home-scroll-panel h2 * {
  color: #fff8ec !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.home-scroll-video-page .home-scroll-panel h1 em {
  color: #d9b879 !important;
}

.home-scroll-video-page .home-scroll-panel h1 {
  max-width: 12.8ch !important;
  margin: 18px 0 20px !important;
  font-size: clamp(3.25rem, 5.55vw, 5.75rem) !important;
  line-height: 0.92 !important;
}

.home-scroll-video-page .home-scroll-panel h2 {
  max-width: 11ch;
  margin: 14px 0 16px;
  font-size: clamp(2.45rem, 4.3vw, 4.6rem);
  line-height: 0.96;
}

.home-scroll-video-page .home-scroll-panel .lede,
.home-scroll-video-page .home-scroll-panel p {
  color: rgba(247, 241, 229, 0.9) !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.58);
}

.home-scroll-video-page .home-scroll-panel p {
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.65;
  max-width: 34rem;
}

.home-scroll-panel a {
  display: inline-flex;
  margin-top: 18px;
  color: #fff6df;
  text-decoration: none;
  font-weight: 800;
}

.home-scroll-panel a:hover {
  color: #f0ddaf;
}

.home-scroll-panel .hero-proof-row {
  justify-content: flex-start !important;
  margin-top: 28px;
  gap: 10px;
}

.home-scroll-panel .hero-proof {
  width: auto;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #f7f1e5 !important;
  background: rgba(255, 255, 255, 0.06);
}

.home-scroll-video-page .home-library-feature-section {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .home-scroll-video-page .home-scroll-hero.hero.resource-hero {
    min-height: 380vh;
  }

  .home-scroll-hero-shell {
    max-width: calc(100% - 28px);
  }

  .home-scroll-intro,
  .home-scroll-left,
  .home-scroll-right {
    left: 50%;
    right: auto;
    transform: translate(-50%, calc(-50% + 24px)) scale(0.97);
  }

  .home-scroll-panel.is-active {
    transform: translate(-50%, -50%) scale(1);
  }

  .home-scroll-panel.liquid-glass {
    padding: 24px;
    border-radius: 20px;
  }

  .home-scroll-panel h1 {
    font-size: clamp(3rem, 16vw, 5.4rem) !important;
  }

  .home-scroll-panel h2 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .home-scroll-panel .hero-proof-row {
    display: grid !important;
    grid-template-columns: 1fr;
  }
}

html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel h1,
html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel h1 *,
html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel h2,
html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel h2 * {
  color: #fff8ec !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.82) !important;
}

html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel h1 em {
  color: #d9b879 !important;
}

html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel .lede,
html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel p,
html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel span,
html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel a {
  color: rgba(255, 248, 236, 0.92) !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7) !important;
}

html body.home-scroll-video-page .home-scroll-hero .home-scroll-panel .eyebrow {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.navaro-intro-page {
  background: #050509 !important;
  color: #fffdf5;
}

.navaro-intro-page > .disclaimer-banner,
.navaro-intro-page > .site-header {
  display: none !important;
}

.navaro-intro-page .home-page {
  background: #fffaf0;
  color: #111;
}

.navaro-intro {
  height: 560vh;
  position: relative;
  z-index: 1;
  background: #050509;
}

.navaro-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #050509;
  isolation: isolate;
}

.navaro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #050509;
  z-index: 0;
}

.navaro-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 42%, rgba(190, 155, 255, 0.16), transparent 34%),
    radial-gradient(circle at 34% 68%, rgba(245, 216, 139, 0.12), transparent 30%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
}

.navaro-intro .intro-layer {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: opacity, transform;
  pointer-events: none;
}

.navaro-intro .intro-layer,
.navaro-intro .intro-layer * {
  color: #fffdf5;
}

.navaro-intro .intro-nav {
  top: 28px;
  left: 5vw;
  right: 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navaro-intro .intro-brand {
  display: inline-flex;
  align-items: center;
  width: clamp(168px, 17vw, 238px);
  min-width: 150px;
  text-decoration: none;
}

.navaro-intro .intro-brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.navaro-intro .intro-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.navaro-intro .intro-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(255, 253, 245, 0.9);
  text-decoration: none;
  font: 700 clamp(0.72rem, 0.88vw, 0.92rem) / 1 var(--font-sans, Inter, system-ui, sans-serif);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  transition: color 180ms ease, transform 180ms ease;
}

.navaro-intro .intro-links a:hover {
  color: #fffdf5;
  transform: translateY(-1px);
}

.navaro-intro .hero-title {
  left: 7vw;
  bottom: 28vh;
  max-width: min(760px, 82vw);
}

.navaro-intro .hero-title h1 {
  margin: 0;
  color: #fffdf5 !important;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(4.25rem, 10.5vw, 10.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.62),
    0 24px 70px rgba(0, 0, 0, 0.55);
}

.navaro-intro .hero-support {
  left: 7vw;
  bottom: 10vh;
  max-width: min(620px, 82vw);
}

.navaro-intro .hero-support p {
  margin: 0;
  max-width: 600px;
  color: rgba(255, 253, 245, 0.86) !important;
  font: 500 clamp(1.1rem, 2vw, 1.56rem) / 1.36 var(--font-sans, Inter, system-ui, sans-serif);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.68);
}

.navaro-intro .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 14px 22px;
  border: 1px solid rgba(245, 216, 139, 0.7);
  border-radius: 999px;
  color: #fffdf5 !important;
  background: rgba(245, 216, 139, 0.12);
  text-decoration: none;
  font: 800 0.94rem / 1 var(--font-sans, Inter, system-ui, sans-serif);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.navaro-intro .section-reveal {
  bottom: 10vh;
  width: min(540px, calc(100vw - 44px));
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background: rgba(9, 10, 18, 0.42);
  border: 1px solid rgba(255, 253, 245, 0.14);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navaro-intro .section-one,
.navaro-intro .section-three {
  right: 7vw;
}

.navaro-intro .section-two {
  left: 7vw;
}

.navaro-intro .section-reveal span {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 13px;
  color: #d9c2ff !important;
  font: 800 0.78rem / 1 var(--font-sans, Inter, system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.navaro-intro .section-reveal h2 {
  margin: 0;
  color: #fffdf5 !important;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.25rem, 4.3vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.62),
    0 22px 58px rgba(0, 0, 0, 0.46);
}

.navaro-intro-page.navaro-intro-complete .navaro-sticky {
  pointer-events: none;
}

@media (max-width: 820px) {
  .navaro-intro {
    height: 520vh;
  }

  .navaro-video {
    object-position: center center;
  }

  .navaro-intro .intro-nav {
    top: 18px;
    left: 16px;
    right: 16px;
    min-height: 62px;
    padding: 10px 14px;
    border-radius: 22px;
  }

  .navaro-intro .intro-brand {
    width: 150px;
    min-width: 140px;
  }

  .navaro-intro .intro-links {
    gap: 10px;
  }

  .navaro-intro .intro-links a {
    font-size: 0.72rem;
  }

  .navaro-intro .hero-title {
    left: 22px;
    right: 22px;
    bottom: 30vh;
    max-width: none;
  }

  .navaro-intro .hero-title h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .navaro-intro .hero-support {
    left: 22px;
    right: 22px;
    bottom: 9vh;
    max-width: none;
  }

  .navaro-intro .hero-support p {
    font-size: clamp(1rem, 4.7vw, 1.35rem);
  }

  .navaro-intro .section-reveal,
  .navaro-intro .section-one,
  .navaro-intro .section-two,
  .navaro-intro .section-three {
    left: 22px;
    right: 22px;
    bottom: 9vh;
    width: auto;
    max-width: none;
    padding: 22px;
    border-radius: 22px;
  }

  .navaro-intro .section-reveal h2 {
    font-size: clamp(2.1rem, 11vw, 4.1rem);
  }
}

@media (max-width: 560px) {
  .navaro-intro .intro-nav {
    align-items: flex-start;
    gap: 10px;
  }

  .navaro-intro .intro-links {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 8px 12px;
  }

  .navaro-intro .intro-brand {
    width: 132px;
    min-width: 132px;
  }

  .navaro-intro .hero-title h1 {
    font-size: clamp(3.75rem, 21vw, 5.8rem);
  }
}
