/* OHM — Optimal Health Manifesto. Locked Alyve-inspired palette.
   Cyan #06B6D4 / navy #0C2C54 / white / Inter + IBM Plex Mono.
   Matches brand/ohm-site-mockup-alyve-palette.html. */

/* Sticky-header offset: in-page anchor jumps + scrollIntoView (TOC, peptide-page
   jump links) land below the sticky top bar instead of behind it. ~header height. */
html { scroll-padding-top: 84px; }

:root {
  /* Redesign palette 2026-06-15 — mockup tokens (navy/cyan, Alyve-inspired).
     Existing var names kept and repointed so every component restyles at once. */
  --white: #ffffff;
  --bg: #ffffff;
  --gray: #f6f9fb;
  --gray-2: #eef3f7;
  --soft: #f6f9fb;
  --navy: #0f2742;
  --navy-deep: #0a1c30;
  --navy-soft: #1c3a5c;
  --cyan: #34a4c9;
  --cyan-d: #2b8aab;
  --cyan-bright: #5cc0e0;
  --cyan-soft: #e6f4f9;
  --ink: #1c2b3a;
  --text: #1c2b3a;
  --muted: #6c7d8e;
  --line: #e7edf2;
  --green: #2f9e6b;
  --amber: #d9a23b;
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 2px 10px -6px rgba(15, 39, 66, 0.18);
  --shadow-lg: 0 18px 40px -18px rgba(52, 164, 201, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
a { color: var(--cyan-d); }
img { max-width: 100%; }

/* ---------- Header (redesign 2026-06-15) ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 26px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(150%) blur(10px); position: sticky; top: 0; z-index: 40; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand .mark { height: 46px; width: auto; border-radius: 9px; object-fit: contain; display: block; }
.navright { display: flex; align-items: center; gap: 24px; }
nav.main { display: flex; align-items: center; gap: 24px; }
nav.main a { font-size: 14.5px; color: var(--muted); text-decoration: none; font-weight: 500; white-space: nowrap; transition: color 0.15s; }
nav.main a:hover { color: var(--navy); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 18px; color: var(--navy); cursor: pointer; }

/* "I want to…" navigator — header dropdown */
.navintent { position: relative; }
.navintent > .trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; background: var(--navy); color: #fff; border: none; font-family: inherit; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.navintent > .trigger:hover { background: var(--navy-deep); }
.navintent > .trigger .car { width: 8px; height: 8px; border-right: 2px solid #9fd6e8; border-bottom: 2px solid #9fd6e8; transform: rotate(45deg); transition: transform 0.25s; }
.navintent.open > .trigger .car, .navintent:hover > .trigger .car { transform: rotate(225deg); }
.navintent .menu { position: absolute; right: 0; top: calc(100% + 12px); width: 360px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -24px rgba(15, 39, 66, 0.45); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 50; text-align: left; }
.navintent:hover .menu, .navintent.open .menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Shared intent option rows (header dropdown + homepage hero selector) */
.opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; transition: background 0.15s; text-decoration: none; }
.opt:hover { background: var(--soft); }
.opt .ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--cyan-soft); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.opt .ot { display: flex; flex-direction: column; min-width: 0; }
.opt .t { font-weight: 600; color: var(--navy); font-size: 15px; }
.opt .d { color: var(--muted); font-size: 12.5px; }
.opt .soon { margin-left: auto; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--cyan); border-radius: 999px; padding: 3px 8px; align-self: center; }

/* ---------- Layout shell with sidebar ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; max-width: var(--maxw); margin: 0 auto; }
.shell > main { min-width: 0; padding: 0 32px 64px; }
.shell.full { grid-template-columns: 1fr; }
.shell.full > main { max-width: 980px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, #f7fbfd 0%, #eef6f9 100%); overflow: hidden; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; }
.hero .b1 { width: 340px; height: 340px; background: #bfeef6; top: -80px; right: 120px; }
.hero .b2 { width: 260px; height: 260px; background: #d8e6f5; bottom: -90px; left: 60px; }
.hero .inner { position: relative; max-width: 980px; margin: 0 auto; padding: 70px 32px 30px; text-align: center; }
.hero-banner { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto 22px; border-radius: 14px; box-shadow: 0 10px 30px rgba(12, 44, 84, 0.10); }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.2em; color: var(--cyan-d); text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(31px, 5vw, 50px); line-height: 1.08; color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--cyan-d); }
.hero p.sub { font-size: 18px; color: var(--muted); max-width: 680px; margin: 22px auto 0; }

.prompt { font-size: clamp(21px, 3.2vw, 29px); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); text-align: center; max-width: 820px; margin: 48px auto 24px; padding: 0 24px; }
.prompt strong { color: var(--cyan-d); }

/* ---------- Choice cards (fork) ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto 56px; padding: 0 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; text-decoration: none; color: inherit; transition: 0.18s; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--navy); }
.card.every::before { background: var(--cyan); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #bfe9f2; }
.card .ico { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.card h2 { font-size: 25px; color: var(--navy); font-weight: 800; margin: 12px 0 10px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.card .go { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--cyan-d); }
.card .go::after { content: "→"; transition: 0.18s; }
.card:hover .go::after { transform: translateX(4px); }

/* ---------- Trust strip ---------- */
.trust { background: var(--gray); }
.trust .row { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 30px 32px; text-align: center; }
.trust .n { font-size: 30px; color: var(--navy); font-weight: 800; }
.trust .n .c { color: var(--cyan-d); }
.trust .l { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.09em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }

/* ---------- Generic page header ---------- */
.page-head { padding: 40px 0 8px; }
.page-head .eyebrow { margin-bottom: 12px; text-align: left; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.page-head p.lede { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 720px; }
.breadcrumbs { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; padding-top: 24px; }
.breadcrumbs a { color: var(--cyan-d); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Browse controls (persistent A–Z + dropdown) ---------- */
.browse-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--gray); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 20px 0 8px; position: sticky; top: 70px; z-index: 10; }
.browse-bar .lbl { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.browse-bar select { font-family: "Inter", sans-serif; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 600; min-width: 230px; }
.browse-bar a.azlink { font-size: 13px; font-weight: 700; color: var(--cyan-d); text-decoration: none; }
.browse-bar a.azlink:hover { text-decoration: underline; }

/* ---------- Peptide grid / list ---------- */
.pep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.pep { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; transition: 0.15s; box-shadow: var(--shadow); position: relative; }
.pep:hover { border-color: #bfe9f2; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pep .nm { font-size: 18px; font-weight: 800; color: var(--navy); text-decoration: none; letter-spacing: -0.01em; }
.pep .nm:hover { color: var(--cyan-d); }
.pep .al { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: 0.04em; }
.pep .cats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.pep .tag { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-d); background: #ecfaff; border: 1px solid #cdeef6; border-radius: 999px; padding: 2px 8px; text-decoration: none; }
.pep .row { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pep .views { display: flex; gap: 8px; }
.pep .views a { font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--cyan-d); }
.pep .views a:hover { text-decoration: underline; }
.pep .soon { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pep.is-soon { opacity: 0.82; }
/* Goal tags on the profile/article page — same pill look as the search cards,
   but the profile's .cats is not inside a .pep, so scope the rules here too (0048 #5). */
.article .cats { display: flex; flex-wrap: wrap; gap: 6px; }
.article .tag { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-d); background: #ecfaff; border: 1px solid #cdeef6; border-radius: 999px; padding: 3px 9px; text-decoration: none; }
.article .tag:hover { background: #d8f5fc; }


/* ---------- Symptom finder grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 24px 0; }
.cat { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; transition: 0.15s; box-shadow: var(--shadow); }
.cat:hover { border-color: #bfe9f2; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat h3 { font-size: 17px; color: var(--navy); font-weight: 800; }
.cat p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.cat .meta { margin-top: 12px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-d); }

/* ---------- Article (clinician + everyday) ---------- */
.article { max-width: 760px; }
.article .title { font-size: clamp(28px, 4vw, 40px); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; }
.article .aliases { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0 6px; }
.view-toggle a { padding: 8px 18px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--navy); background: #fff; }
.view-toggle a.active { background: var(--navy); color: #fff; }
.view-toggle a.active.every { background: var(--cyan); color: #04323c; }

.intro-quote { border-left: 3px solid var(--cyan); background: var(--gray); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--navy-soft); font-size: 15.5px; margin: 18px 0 6px; }

.qref { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 22px 0; }
.qref table { width: 100%; border-collapse: collapse; }
.qref td { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.qref tr:first-child td { border-top: 0; }
.qref td.f { font-weight: 700; color: var(--navy); width: 34%; background: var(--gray); }
.qref td p { margin: 0; }
/* Wide, multi-column comparison tables (cluster pages, 0053) — scroll on small screens. */
.qref-wide { overflow-x: auto; }
.qref-wide table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.qref-wide th, .qref-wide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.qref-wide thead th { background: var(--gray); color: var(--navy); font-weight: 700; }
.qref-wide td p { margin: 0; }

.prose h2 { font-size: 22px; color: var(--navy); font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; color: var(--navy-soft); font-weight: 700; margin: 24px 0 8px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--cyan-d); }
.prose strong { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--gray); color: var(--navy); }
.prose blockquote { border-left: 3px solid var(--cyan); background: #f9feff; padding: 10px 16px; margin: 16px 0; color: var(--navy-soft); border-radius: 0 8px 8px 0; }
.prose code { font-family: "IBM Plex Mono", monospace; font-size: 0.9em; background: var(--gray); padding: 1px 5px; border-radius: 4px; }

/* everyday Q blocks */
.every-block { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 16px 0; box-shadow: var(--shadow); }
.every-block .q-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-d); }
.every-block h2 { font-size: 20px; color: var(--navy); font-weight: 800; margin: 4px 0 10px; letter-spacing: -0.01em; }
/* Readable spacing inside the practical Q blocks (0039 Task 2). */
.every-block p { margin: 14px 0; line-height: 1.65; }
.every-block ul, .every-block ol { margin: 14px 0 14px 22px; }
.every-block li { margin: 8px 0; line-height: 1.6; }
.every-block table { margin: 16px 0; }
.every-block h3 { margin: 22px 0 8px; }
/* Side-effect "Fix:" — its own indented block, separated from the problem (0039 Task 2). */
.fix-line { margin: 12px 0 14px; padding: 8px 14px; border-left: 3px solid var(--cyan-d); background: #f3fcff; border-radius: 0 8px 8px 0; }
.fix-line strong { color: var(--cyan-d); }
/* Dosing disclaimer — stated once at the top of Part 2 (0039 Task 3). */
.dose-disclaimer { font-size: 13px; color: var(--muted); background: var(--gray); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; line-height: 1.55; }
.every-deeper-inline, .every-tool-note, .every-reg-note { font-size: 13.5px; color: var(--muted); }
.every-tool-note, .every-deeper-inline { background: var(--gray); padding: 10px 14px; border-radius: 8px; margin-top: 12px; }

.deeper-cta { display: block; text-align: center; background: var(--navy); color: #fff; text-decoration: none; padding: 18px; border-radius: 12px; margin: 26px 0; font-weight: 700; }
.deeper-cta:hover { background: var(--navy-soft); }
.deeper-cta .mono { display: block; font-size: 11px; letter-spacing: 0.12em; opacity: 0.7; text-transform: uppercase; margin-bottom: 4px; }

.buy-callout { border: 1px solid #cdeef6; background: #f3fcff; border-radius: 12px; padding: 18px 20px; margin: 22px 0; }
.buy-callout .coupon { font-family: "IBM Plex Mono", monospace; font-weight: 700; color: var(--cyan-d); }

/* (Sidebar / My-Peptides shortlist + add-to-shortlist removed in 0043 — the builder is now self-contained.) */

/* ---------- Modal (email capture stub) ---------- */
.modal-back { display: none; position: fixed; inset: 0; background: rgba(12, 44, 84, 0.55); z-index: 50; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 30px; position: relative; }
.modal h3 { font-size: 22px; color: var(--navy); font-weight: 800; }
.modal p { color: var(--muted); font-size: 14.5px; margin: 10px 0; }
.modal .picked { font-size: 13px; color: var(--navy); background: var(--gray); border-radius: 8px; padding: 10px 12px; margin: 12px 0; }
.modal input[type=email] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; margin-top: 6px; }
.modal label.optin { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; }
.modal label.optin input { accent-color: var(--cyan); margin-top: 2px; }
.modal button.submit { width: 100%; background: var(--cyan); color: #04323c; border: 0; border-radius: 10px; padding: 14px; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit; }
.modal button.submit:hover { background: var(--cyan-d); color: #fff; }
.modal .close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
/* Developer "stub/TODO" notes must NEVER render to users (0053). The forms they
   annotate can stay stubs; the dev NOTE about them does not show on screen or print. */
.todo { display: none !important; }
.modal .todo { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: var(--muted); margin-top: 14px; letter-spacing: 0.03em; }
.modal .done-msg { display: none; }
.modal.done .form-wrap { display: none; }
.modal.done .done-msg { display: block; }

/* ---------- Coming soon ---------- */
.coming { text-align: center; max-width: 620px; margin: 30px auto; padding: 44px 30px; border: 1px dashed var(--line); border-radius: 16px; background: var(--gray); }
.coming .badge { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan-d); }
.coming h1 { font-size: 30px; color: var(--navy); font-weight: 800; margin: 10px 0; }
.coming p { color: var(--muted); margin: 10px 0; }
.coming form { display: flex; gap: 8px; max-width: 420px; margin: 18px auto 0; }
.coming input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.coming button { background: var(--cyan); color: #04323c; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 800; cursor: pointer; font-family: inherit; }
.coming button:hover { background: var(--cyan-d); color: #fff; }

/* ---------- Tools ---------- */
.tool-frame { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-height: 760px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
footer.site { background: var(--navy); color: #c7d3e2; margin-top: 40px; }
.footer-banner { display: block; max-width: 880px; margin: 0 auto; padding: 28px 32px 4px; }
.footer-banner img { display: block; width: 100%; height: auto; border-radius: 12px; }
footer.site .inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer.site .wm { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: 0.1em; color: #fff; text-transform: uppercase; }
footer.site h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
footer.site a { color: #c7d3e2; text-decoration: none; display: block; font-size: 14px; padding: 4px 0; }
footer.site a:hover { color: var(--cyan-bright); }
footer.site .disc { max-width: var(--maxw); margin: 0 auto; padding: 22px 32px 36px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; line-height: 1.6; color: #8ea2bd; }
footer.site .disc strong { color: #c7d3e2; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .trust .row { grid-template-columns: 1fr 1fr; gap: 18px; }
  header.top { padding: 12px 16px; }
  .shell > main { padding: 0 16px 56px; }
  nav.main { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  nav.main.open { display: flex; }
  nav.main a { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); color: var(--navy); }
  .menu-btn { display: block; }
  .navintent .menu { width: 320px; right: -8px; }
  footer.site .inner { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================================
   v2 REWORK — intent fork, StoryBrand, badges, depth toggle, escapes, nav,
   search, goal finder, builder, directories. Locked Alyve palette throughout.
   ========================================================================= */

/* ---- Nav additions ---- */
nav.main .nav-search { background: none; border: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-left: 22px; cursor: pointer; }
nav.main .nav-search:hover { color: var(--cyan-d); }

/* ---- StoryBrand: problem + plan ---- */
.sb-problem { background: var(--gray); margin-top: 10px; }
.sb-problem .inner { max-width: var(--maxw); margin: 0 auto; padding: 46px 32px; }
.sb-problem h2 { text-align: center; font-size: clamp(22px, 3.4vw, 30px); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; }
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.prob { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.prob .pl { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-d); margin-bottom: 8px; }
.prob p { color: var(--navy-soft); font-size: 15px; }
.sb-plan .inner { max-width: var(--maxw); margin: 0 auto; padding: 46px 32px 10px; }
.sb-plan .eyebrow { text-align: center; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { text-align: center; padding: 10px; }
.step .sn { width: 44px; height: 44px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--navy)); color: #fff; font-weight: 800; font-size: 19px; }
.step h3 { color: var(--navy); font-size: 18px; font-weight: 800; }
.step p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---- Dual CTA ---- */
.dual-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; max-width: 760px; margin: 30px auto 50px; padding: 0 32px; }
.dual-cta a { flex: 1; min-width: 240px; text-decoration: none; border-radius: 12px; padding: 18px 22px; font-weight: 800; font-size: 17px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.dual-cta a span { font-weight: 500; font-size: 12.5px; opacity: 0.85; margin-top: 4px; }
.dc-direct { background: var(--cyan); color: #04323c; }
.dc-direct:hover { background: var(--cyan-d); color: #fff; }
.dc-trans { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.dc-trans:hover { border-color: var(--cyan); }

.practitioner-door { max-width: 760px; margin: 10px auto 0; padding: 0 32px; text-align: center; }
.practitioner-door p { font-size: 14px; color: var(--muted); }
.practitioner-door a { font-weight: 700; }

/* ---- Tier badge + safety light ---- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.headline-badges { margin: 16px 0 6px; }
.tier, .safety { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); background: #fff; }
.tier .tier-l { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; }
.tier-a .tier-l { background: #1c8c4a; } .tier-a { color: #1c8c4a; border-color: #bfe6cd; background: #f1fbf5; }
.tier-b .tier-l { background: #2f7dc4; } .tier-b { color: #2f6fb0; border-color: #c8e0f3; background: #f2f8fd; }
.tier-c .tier-l { background: #c79114; } .tier-c { color: #a87c12; border-color: #ecdcae; background: #fdf9ef; }
.tier-d .tier-l { background: #8a93a3; } .tier-d { color: #6a7384; border-color: var(--line); background: var(--gray); }
.tier-pending { color: var(--muted); padding: 4px 10px; font-style: italic; }
.tier .prov { margin-left: 1px; color: inherit; opacity: 0.7; }
.safety { padding: 4px 11px; }
.safety .dot { font-size: 12px; }
.safety-green { color: #1c8c4a; border-color: #bfe6cd; background: #f1fbf5; }
.safety-yellow { color: #a87c12; border-color: #ecdcae; background: #fdf9ef; }
.safety-red { color: #c0392b; border-color: #f0c9c3; background: #fdf3f1; }
.safety-pending { color: var(--muted); }
.safety-detail-link { font-size: 12px; font-weight: 700; color: var(--cyan-d); text-decoration: none; }
.safety-detail-link:hover { text-decoration: underline; }
.pep .badges { margin: 8px 0; }

/* ---- Indication strength chip (primary/secondary for the selected goal) ---- */
.ind { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line); background: #fff; }
.ind-primary { color: #0f7390; border-color: #bfe2ec; background: #f0fafd; }
.ind-secondary { color: #6a7384; border-color: var(--line); background: var(--gray); }

/* ---- Accessible badge tooltips — JS-portaled to <body> so they float above all
   sibling cards and are viewport edge-aware; never clipped (0039 Task 4). ---- */
.has-tip { cursor: help; }
.has-tip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
#ohm-tip {
  position: fixed; z-index: 9999; max-width: 260px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 1.4; text-align: left;
  padding: 8px 11px; border-radius: 8px; box-shadow: var(--shadow-lg);
  pointer-events: none;
}
#ohm-tip[hidden] { display: none; }

/* ---- Buy-step affiliate disclosure (0038 Task 2) ---- */
.buy-disclosure { font-size: 13px; line-height: 1.55; color: var(--navy-soft); background: var(--gray); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; padding: 12px 14px; margin: 16px 0; }

/* ---- Legal disclaimers: on-page banner + first-visit gate (0038 Task 4) ---- */
.legal-banner { font-size: 12.5px; font-weight: 600; line-height: 1.45; color: #8a5a00; background: #fff7e6; border-bottom: 1px solid #f0dca6; padding: 8px 16px; text-align: center; }
body.legal-locked { overflow: hidden; }

/* ---- App-shell pages (e.g. /pep/): lock the body to the viewport so an INTERNAL
   panel scrolls, not the page. Header + legal banner stay fixed-height at the top;
   the page content (<main>) fills the rest. Footer/concierge are omitted on these
   pages (base.njk appShell flag), so nothing can push the chat composer off-screen.
   Uses dvh so mobile browser chrome doesn't strand the composer. ---- */
body.app-shell { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body.app-shell > header.top { flex: none; }
body.app-shell > .legal-banner { flex: none; }
body.app-shell > main { flex: 1; min-height: 0; }
.legal-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 22, 43, 0.6); }
.legal-gate[hidden] { display: none; }
.legal-card { background: #fff; border-radius: 16px; max-width: 540px; width: 100%; padding: 28px 28px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.legal-card .legal-mark { display: block; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 14px; }
.legal-card h2 { color: var(--navy); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.legal-card p { color: var(--navy-soft); font-size: 14.5px; line-height: 1.6; }
.legal-ack { margin-top: 18px; width: 100%; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--navy); border: 0; border-radius: 10px; padding: 13px 18px; cursor: pointer; }
.legal-ack:hover { background: var(--cyan-d); }

/* ---- Real-time contraindication popup (builder #7) — reuses the legal-modal shell ---- */
.contra-card { max-width: 520px; border-top: 5px solid var(--line); }
.contra-card.is-red { border-top-color: #d64545; }
.contra-card.is-amber { border-top-color: #e0a106; }
.contra-card h2 { font-size: 20px; }
.contra-body p { color: var(--navy-soft); font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.contra-list { list-style: none; margin: 4px 0 18px; padding: 12px 14px; background: var(--gray); border-radius: 10px; display: flex; flex-direction: column; gap: 7px; }
.contra-list li { font-size: 13.5px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.contra-list li.just-added { color: var(--cyan-d); }
.contra-list .tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; color: #fff; background: var(--cyan); border-radius: 999px; padding: 2px 8px; }
.contra-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contra-actions button { flex: 1 1 160px; font: inherit; font-size: 14.5px; font-weight: 700; border-radius: 10px; padding: 12px 16px; cursor: pointer; border: 1px solid var(--line); }
.contra-keep { background: #fff; color: var(--navy); }
.contra-keep:hover { border-color: var(--cyan); color: var(--cyan-d); }
.contra-remove { background: var(--navy); color: #fff; border-color: var(--navy); }
.contra-remove:hover { background: var(--cyan-d); border-color: var(--cyan-d); }

/* ---- Depth toggle + views ---- */
.depth-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.depth-toggle button { padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 700; border: 0; background: #fff; color: var(--navy); cursor: pointer; }
.depth-toggle button.active { background: var(--navy); color: #fff; }
.depth-toggle .dt-deep.active { background: var(--cyan); color: #04323c; }
.deep-note { font-size: 13px; color: var(--muted); background: var(--gray); border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.build-around { display: inline-flex; align-items: center; background: #ecfaff; border: 1px solid #cdeef6; color: var(--cyan-d); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; text-decoration: none; }
.build-around:hover { background: #d8f5fc; }
.build-cta { display: block; text-align: center; background: var(--navy); color: #fff; text-decoration: none; padding: 18px; border-radius: 12px; margin: 30px 0; font-weight: 800; }
.build-cta:hover { background: var(--navy-soft); }
.build-cta .mono { display: block; font-size: 11px; letter-spacing: 0.12em; opacity: 0.7; text-transform: uppercase; margin-bottom: 4px; }
/* Persistent "back to your protocol" CTA (0051 #5) — fixed, shown by JS on every page
   while an active build exists. [hidden] keeps it out until app.js reveals it. */
.protocol-resume { position: fixed; left: 16px; bottom: 16px; z-index: 200; display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 800; box-shadow: var(--shadow-lg); }
.protocol-resume:hover { background: var(--navy-soft); }
.protocol-resume[hidden] { display: none; }
@media print { .protocol-resume { display: none !important; } }

/* ---- Three escapes module (Decision #1a) ---- */
.escapes { border: 1px dashed #cdeef6; background: #f7fdff; border-radius: 14px; padding: 18px 20px; margin: 34px 0 10px; }
.escapes-h { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan-d); margin-bottom: 12px; }
.escapes-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.escape { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; text-decoration: none; color: var(--navy); cursor: pointer; font: inherit; }
.escape:hover { border-color: var(--cyan); }
.escape .ei { font-size: 18px; line-height: 1.2; }
.escape strong { display: block; font-size: 14px; color: var(--navy); }
.escape em { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---- Search overlay ---- */
.search-back { display: none; position: fixed; inset: 0; background: rgba(12,44,84,0.55); z-index: 60; align-items: flex-start; justify-content: center; padding: 80px 20px; }
.search-back.open { display: flex; }
.search-box { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; padding: 24px; position: relative; max-height: 80vh; display: flex; flex-direction: column; }
.search-box h3 { font-size: 18px; color: var(--navy); font-weight: 800; margin-bottom: 12px; }
.search-box input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; font-family: inherit; }
.search-results { list-style: none; margin: 14px 0 0; padding: 0; overflow-y: auto; }
.search-results li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line); text-decoration: none; }
.search-results .sr-nm { font-weight: 700; color: var(--navy); }
.search-results li a:hover .sr-nm { color: var(--cyan-d); }
.search-results .sr-empty { padding: 14px 8px; color: var(--muted); font-style: italic; }
.search-box .close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 24px; color: var(--muted); cursor: pointer; }

/* (Old encyclopedia controls + goal-chip filter + build-from-goals CTA removed in 0043 — replaced by the research-only filter bar above.) */
/* Positive flag on the 26 builder-eligible peptides (0041). Encyclopedia-only peptides simply get no badge. */
.builder-pick-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--cyan-d); background: #e6f7fb; border: 1px solid #bfe9f2; border-radius: 999px; padding: 3px 9px; }
.browse-only-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; font-style: italic; }
.tier-explainer { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--gray); padding: 0 14px; }
.tier-explainer summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0; font-size: 14px; }
.tier-explainer .te-grid { padding: 0 0 12px; display: grid; gap: 8px; }
.tier-explainer .te-grid p { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--navy-soft); line-height: 1.45; }
.tier-explainer .te-grid .tier { flex: none; }
.enc-empty { text-align: center; color: var(--muted); padding: 30px; font-style: italic; }
.hit-note { font-size: 11.5px; color: var(--cyan-d); font-weight: 700; margin: 6px 0; }
.clin-only { font-size: 11.5px; font-weight: 700; color: #8a5a00; background: #fff7e6; border: 1px solid #f0dca6; border-radius: 8px; padding: 6px 9px; margin: 6px 0; line-height: 1.35; }

/* ---- Builder shared bits ---- */
.b-hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.gr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gr-head h2 { font-size: 22px; color: var(--navy); font-weight: 800; }
.gr-count { color: var(--cyan-d); }
.gr-build { background: var(--cyan); color: #04323c; text-decoration: none; font-weight: 800; padding: 10px 16px; border-radius: 9px; font-size: 14px; }
.gr-build:hover { background: var(--cyan-d); color: #fff; }
.gr-note { color: var(--muted); font-size: 14px; margin: 8px 0; }

/* ---- Builder ---- */
.builder-wrap { background: linear-gradient(180deg, #f7fbfd 0%, #fff 220px); min-height: 60vh; }
.builder { max-width: 760px; margin: 0 auto; padding: 10px 24px 64px; }
.b-step h1 { font-size: clamp(26px, 4vw, 38px); color: var(--navy); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.b-step h2 { font-size: clamp(22px, 3vw, 28px); color: var(--navy); font-weight: 800; }
.b-deal { background: #ecfaff; border: 1px solid #cdeef6; border-radius: 12px; padding: 16px 18px; color: var(--navy); font-size: 17px; margin: 16px 0; }
.b-sub { color: var(--muted); font-size: 16px; margin: 10px 0; }
.b-values { display: grid; gap: 10px; margin: 20px 0; }
.b-value { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); }
.b-value span { color: var(--cyan-d); font-size: 18px; }
.b-value em { font-style: normal; font-weight: 500; color: var(--muted); }
.b-cred { background: var(--gray); border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--navy-soft); font-size: 14.5px; margin: 20px 0; }
.b-cta-stack { text-align: center; margin: 26px 0; }
.b-start { display: inline-block; text-align: center; text-decoration: none; background: var(--cyan); color: #04323c; border: 0; border-radius: 12px; padding: 16px 34px; font-weight: 800; font-size: 18px; cursor: pointer; font-family: inherit; box-shadow: var(--shadow-lg); }
.b-start:hover { background: var(--cyan-d); color: #fff; }
.b-cta-bullets { list-style: none; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 14px 0 0; padding: 0; }
.b-cta-bullets li { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; }
.b-cta-bullets li::before { content: "✓ "; color: var(--cyan-d); }
.b-form { margin-top: 18px; }
.b-form label:not(.optin):not(.b-radio) { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin: 14px 0 4px; }
.b-form input[type=text], .b-form input[type=email], .b-form input[type=tel], .b-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; font-family: inherit; }
.b-form textarea { resize: vertical; }
.b-form .b-opt { color: var(--muted); font-weight: 500; }
.b-form .optin { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 16px 0; }
.b-form .optin input { accent-color: var(--cyan); margin-top: 2px; }
.b-q { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.b-q legend { font-weight: 800; color: var(--navy); font-size: 15px; padding: 0 8px; }
.b-radio { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--navy); cursor: pointer; }
.b-radio:first-of-type { border-top: 0; }
.b-radio input { accent-color: var(--cyan); margin-top: 3px; }
.b-radio em { font-style: normal; color: var(--muted); }
.b-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.b-back { display: inline-flex; align-items: center; text-decoration: none; background: none; border: 1px solid var(--line); color: var(--navy); border-radius: 10px; padding: 13px 18px; font-weight: 700; cursor: pointer; font-family: inherit; }
.b-next { background: var(--cyan); color: #04323c; border: 0; border-radius: 10px; padding: 13px 22px; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 15px; }
.b-next:hover { background: var(--cyan-d); color: #fff; }
.b-next:disabled { background: var(--gray-2); color: var(--muted); cursor: not-allowed; }
.b-next:disabled:hover { background: var(--gray-2); color: var(--muted); }
.b-emailed .b-ok { background: #f1fbf5; border: 1px solid #bfe6cd; color: #1c8c4a; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 12px 0; }
.b-next-box { border-radius: 14px; padding: 22px; margin: 24px 0; box-shadow: var(--shadow); }
.b-next-box.diy { background: #ecfaff; border: 1px solid #cdeef6; }
.b-next-box.prov { background: #f2f8fd; border: 1px solid #c8e0f3; }
.b-next-box.curious { background: var(--gray); border: 1px solid var(--line); }
.b-next-box h3 { color: var(--navy); font-size: 19px; font-weight: 800; }
.b-next-box p { color: var(--navy-soft); margin: 10px 0 14px; }
.b-next-box .dc-direct, .b-next-box .dc-trans { display: inline-flex; min-width: 0; flex: none; }
.b-notes-echo { background: var(--gray); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--navy-soft); margin: 14px 0; }
.b-actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.b-print { background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; font-family: inherit; }
.b-restart { align-self: center; color: var(--muted); font-weight: 700; text-decoration: none; }
.b-none { color: var(--muted); }

/* ===== Search filter bar — research-only /peptides/ (0043) ===== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.fb-search { flex: 1 1 220px; min-width: 180px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 15px; font-family: inherit; }
.fb-field { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.fb-field select { font: inherit; font-size: 13.5px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--navy); cursor: pointer; }
.fb-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; }
.fb-toggle input { accent-color: var(--cyan); width: 16px; height: 16px; }
.fb-goal { position: relative; }
.fb-goal-btn, .fb-sort { font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 9px; padding: 9px 14px; cursor: pointer; }
.fb-goal-btn:hover, .fb-sort:hover { border-color: var(--cyan); }
.fb-sort[data-mode="az"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.fb-goal-panel { display: none; position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 16px 40px -12px rgba(12,44,84,.35); padding: 8px; }
.fb-goal-panel.open { display: block; }
.fb-goal-panel label { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--navy); cursor: pointer; }
.fb-goal-panel label:hover { background: var(--gray); }
.fb-goal-panel input { accent-color: var(--cyan); width: 16px; height: 16px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.fb-chips:empty { display: none; }
.flt-chip { font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid var(--cyan); background: var(--cyan); color: #04323c; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.flt-chip:hover { background: var(--cyan-d); color: #fff; border-color: var(--cyan-d); }
.fb-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.fb-count { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.fb-meta .tier-explainer { margin: 0; flex: 1 1 100%; }

/* ===== Builder goal picker + recommended cards (0043) ===== */
.b-goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 18px 0; }
.b-goal { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--navy); background: #fff; transition: 0.12s; }
.b-goal:hover { border-color: var(--cyan); }
.b-goal input { accent-color: var(--cyan); width: 17px; height: 17px; }
.b-goal input:checked ~ span { color: var(--cyan-d); }
.b-listhint { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
/* Grouped results — one section per chosen goal (0047). */
.b-cat { margin: 0 0 24px; }
.b-cat-h { font-size: 16px; font-weight: 800; color: var(--navy); margin: 22px 0 8px; padding-bottom: 7px; border-bottom: 2px solid var(--line); }
.b-cat:first-child .b-cat-h { margin-top: 0; }
/* Welcome-back banner on the builder intro (0048 #1) — saved-protocol choice. */
.b-welcome { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; padding: 14px 18px; background: #ecfaff; border: 1px solid #cdeef6; border-radius: 12px; }
.b-welcome[hidden] { display: none; }
.b-welcome-txt { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.b-welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.b-welcome-actions button { font: inherit; font-size: 13.5px; font-weight: 700; border-radius: 9px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--line); }
.b-welcome-resume { background: var(--navy); color: #fff; border-color: var(--navy); }
.b-welcome-resume:hover { background: var(--cyan-d); border-color: var(--cyan-d); }
.b-welcome-restart { background: #fff; color: var(--navy); }
.b-welcome-restart:hover { border-color: var(--cyan); color: var(--cyan-d); }
.b-pick { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; background: #fff; overflow: hidden; transition: 0.12s; }
.b-pick:hover { border-color: var(--cyan); }
.b-pick.is-clin { background: #fffdf7; }
.b-pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; text-decoration: none; color: inherit; }
.b-pick-main:hover .b-pick-nm { color: var(--cyan-d); }
.b-pick-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b-pick-nm { font-weight: 800; font-size: 16px; color: var(--navy); }
.b-pick-ext { color: var(--cyan-d); font-weight: 700; }
.b-pick-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.b-pick .clin-only { display: block; }
.b-pick-add { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 18px; border-left: 1px solid var(--line); background: var(--gray); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; color: var(--navy); text-transform: uppercase; }
.b-pick-add:hover { background: #e6f7fb; color: var(--cyan-d); }
.b-pick-add input { accent-color: var(--cyan); width: 20px; height: 20px; cursor: pointer; }
.b-linkbtn { background: none; border: 0; color: var(--cyan-d); font-weight: 700; cursor: pointer; font-family: inherit; font-size: inherit; text-decoration: underline; padding: 0; }

/* ===== Builder report (0043) ===== */
.rp-goals { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.rp-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; background: #fff; }
.rp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-nm { font-weight: 800; font-size: 17px; color: var(--navy); text-decoration: none; }
.rp-nm:hover { color: var(--cyan-d); }
.rp-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rp-studied { font-size: 14px; color: var(--navy-soft); margin: 8px 0 6px; }
.rp-src { display: block; font-size: 13px; color: var(--muted); }
.rp-src a { color: var(--cyan-d); font-weight: 700; text-decoration: none; }
.rp-src.clin { color: #8a5a00; }
.b-next-box { background: #ecfaff; border: 1px solid #cdeef6; }
.b-next-box .dc-direct, .b-next-box .dc-trans { padding: 12px 20px; border-radius: 10px; font-weight: 800; text-decoration: none; margin-top: 6px; }

/* ---- Full personalized protocol report (#6a) ---- */
.rp-sec { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 14px 0; background: #fff; }
.rp-sec-h { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.rp-num { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--navy)); color: #fff; font-size: 14px; font-weight: 800; font-family: "IBM Plex Mono", monospace; }
.rp-sec-body p { color: var(--navy-soft); font-size: 14.5px; line-height: 1.6; margin: 8px 0; }
.rp-sec-body h4 { color: var(--navy); font-size: 15.5px; font-weight: 800; margin: 14px 0 4px; }
.rp-sec-body ul, .rp-sec-body ol { margin: 6px 0 6px 20px; }
.rp-sec-body li { color: var(--navy-soft); font-size: 14px; line-height: 1.55; margin: 4px 0; }
.rp-sec-body a { color: var(--cyan-d); font-weight: 700; text-decoration: none; }
.rp-sec-body a:hover { text-decoration: underline; }
.rp-link { display: inline-block; margin-top: 4px; }
.rp-glance { list-style: none; margin: 0; padding: 0; }
.rp-glance li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rp-glance li:first-child { border-top: 0; }
.rp-pep { font-weight: 800; color: var(--navy); font-size: 15px; }
.rp-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rp-for { font-size: 12.5px; color: var(--cyan-d); font-weight: 700; }
.rp-prof, .rp-caut-pep, .rp-se { padding: 10px 0; border-top: 1px solid var(--line); }
.rp-prof:first-child, .rp-caut-pep:first-of-type, .rp-se:first-child { border-top: 0; }
.rp-badgewords { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.rp-general { background: var(--gray); border-radius: 10px; padding: 11px 14px; font-size: 13.5px; }
.rp-drug { margin-top: 8px; }
.rp-drug-list li { color: #8a5a00; }
.rp-clin { font-weight: 600; }
.rp-callout { display: flex; gap: 14px; align-items: flex-start; background: #fff7e6; border: 1px solid #f0dca6; border-radius: 12px; padding: 14px 16px; margin: 14px 0 0; }
.rp-callout strong { color: #8a5a00; }
.rp-callout p { color: var(--navy-soft); margin: 6px 0 0; }
.rp-supplies { list-style: none; margin: 8px 0; padding: 0; }
.rp-supply { display: flex; gap: 13px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.rp-supply:first-child { border-top: 0; }
.rp-supply-txt { display: flex; flex-direction: column; gap: 2px; }
.rp-supply-txt span { font-size: 13px; color: var(--muted); }
.rp-ico { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #ecfaff; border: 1px solid #cdeef6; color: var(--cyan-d); }
.rp-ico svg { width: 24px; height: 24px; }
.rp-steps li { margin: 7px 0; }
.rp-dose li, .rp-buy li { margin: 7px 0; }
.rp-buy { list-style: none; margin: 0; padding: 0; }
.rp-buy li { padding: 8px 0; border-top: 1px solid var(--line); }
.rp-buy li:first-child { border-top: 0; }
.rp-sec-body .buy-disclosure { font-size: 12px; color: var(--muted); background: var(--gray); border-radius: 10px; padding: 12px 14px; margin-top: 12px; line-height: 1.5; }
/* Reconstitution-aware dosing blocks (§9) — derived from the shared calculator presets. */
.rp-dose-pep { padding: 12px 0; border-top: 1px solid var(--line); }
.rp-dose-pep:first-child { border-top: 0; }
.rp-dose-units { font-weight: 700; color: var(--navy); background: #f3fcff; border: 1px solid #cdeef6; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.rp-dose-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.rp-dose-calc { font-size: 13px; margin: 6px 0 0; }
.rp-se-list { margin-top: 4px; }

/* ---- Where-to-buy + provider directory ---- */
.disclosure { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 26px; }
.disc-col { background: var(--gray); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.disc-col h3 { color: var(--navy); font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.disc-col p { color: var(--navy-soft); font-size: 14px; margin: 8px 0; }
.bar-list { margin: 8px 0 8px 18px; }
.bar-list li { color: var(--navy); font-size: 14px; margin: 4px 0; font-weight: 600; }
.vendor-list, .provider-list { display: flex; flex-direction: column; gap: 14px; }
.vendor, .provider { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.vendor.featured, .provider.featured { border-color: var(--cyan); box-shadow: var(--shadow-lg); }
.v-rank { font-family: "IBM Plex Mono", monospace; font-weight: 700; color: var(--cyan-d); font-size: 18px; min-width: 28px; }
.v-body h2 { font-size: 20px; color: var(--navy); font-weight: 800; }
.v-badge { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-d); background: #ecfaff; border: 1px solid #cdeef6; border-radius: 999px; padding: 3px 9px; margin-left: 6px; vertical-align: middle; }
.v-badge.pending, .v-badge.feat { color: var(--muted); background: var(--gray); border-color: var(--line); }
.v-body p { color: var(--navy-soft); font-size: 14.5px; margin: 8px 0; }
.v-coupon { background: #f3fcff; border: 1px solid #cdeef6; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.v-link { display: inline-block; margin-top: 6px; font-weight: 800; color: var(--cyan-d); text-decoration: none; }
.v-link:hover { text-decoration: underline; }
.p-clin { color: var(--navy); font-weight: 600; font-size: 14px; }
.p-states { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; margin: 4px 0; }
.p-source { font-size: 12px; color: var(--muted); font-style: italic; }
.wtb-note { color: var(--muted); font-size: 14px; margin-top: 20px; }
.expect { background: var(--gray); border-radius: 14px; padding: 26px; margin: 18px 0 26px; }
.expect h2 { text-align: center; color: var(--navy); font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.expect-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ex-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.ex-step .sn { width: 38px; height: 38px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--navy)); color: #fff; font-weight: 800; }
.ex-step h3 { color: var(--navy); font-size: 16px; font-weight: 800; }
.ex-step p { color: var(--muted); font-size: 13px; margin-top: 6px; }

@media (max-width: 820px) {
  .prob-grid, .plan-grid, .escapes-row, .disclosure { grid-template-columns: 1fr; }
  .expect-row { grid-template-columns: 1fr 1fr; }
}
@media print {
  header.top, footer.site, .escapes, .b-actions, .breadcrumbs, .b-welcome, .contra-gate, nav.main, .concierge, .todo { display: none !important; }
  .builder-wrap { background: #fff; }
  .rp-sec { break-inside: avoid; border-color: #ccc; box-shadow: none; }
  .rp-sec-body a { color: #000; text-decoration: underline; }
}

/* ===== Practical-view "if your goal is X" route lead-in (0054) ===== */
.practical-route { background: #ecfaff; border: 1px solid #cdeef6; border-left: 3px solid var(--cyan); border-radius: 8px; padding: 11px 14px; margin: 0 0 12px; font-size: 14px; color: var(--navy); line-height: 1.5; }

/* ===== Evidence/safety badge legend (0053 Part G) ===== */
.badge-legend { margin: 12px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--gray); font-size: 13px; }
.badge-legend > summary { cursor: pointer; padding: 9px 14px; font-weight: 700; color: var(--navy); list-style: none; }
.badge-legend > summary::-webkit-details-marker { display: none; }
.badge-legend > summary::before { content: "ⓘ "; color: var(--cyan-d); }
.badge-legend[open] > summary { border-bottom: 1px solid var(--line); }
.bl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 14px; }
.bl-col h4 { color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.bl-col ul { list-style: none; margin: 0; padding: 0; }
.bl-col li { color: var(--navy-soft); font-size: 12.5px; line-height: 1.45; margin: 6px 0; }
.bl-col .tier { margin-right: 4px; }
.bl-dot { font-size: 13px; }
@media (max-width: 640px) { .bl-body { grid-template-columns: 1fr; } }

/* ===== Provider directory + profiles (CC 0055) ===== */
.provider-dir-head { margin: 8px 0 12px; }
.provider-dir-head h2 { color: var(--navy); font-size: 22px; font-weight: 800; }
.v-meaning { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 760px; line-height: 1.5; }

/* Sample-listing badge — visually distinct from Verified (earned, cyan) and from a
   future Featured (paid) slot. Amber = "illustrative placeholder, not a real listing". */
.v-badge.sample { color: #8a6326; background: #fdf3df; border-color: #f0dca8; }

/* Directory card (the whole card is a link to the profile). */
a.provider-card { text-decoration: none; color: inherit; align-items: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.provider-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.p-avatar { width: 56px; height: 56px; min-width: 56px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cyan), var(--navy)); }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-mono { color: #fff; font-weight: 800; font-size: 22px; font-family: "IBM Plex Mono", monospace; }
.p-biz { color: var(--navy); font-size: 19px; font-weight: 800; }
.p-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.p-loc { color: var(--muted); font-size: 13px; }
.p-view { display: inline-block; margin-top: 8px; font-weight: 800; color: var(--cyan-d); font-size: 14px; }

/* Service-area pill. */
.svc-pill { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; background: #eef4fb; color: var(--navy); border: 1px solid #d6e3f2; white-space: nowrap; }
.svc-pill.svc-telemedicine_us { background: #ecfaff; color: var(--cyan-d); border-color: #cdeef6; }
.svc-pill.svc-both { background: #eefcf3; color: #1d7a4d; border-color: #c4ecd3; }

/* Specialty tags. */
.p-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.spec-tag { font-size: 12px; color: var(--navy-soft); background: var(--gray); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }

/* Apply-to-be-listed CTA. */
.provider-apply { background: var(--gray); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 28px 0 8px; text-align: center; }
.provider-apply h2 { color: var(--navy); font-size: 20px; font-weight: 800; }
.provider-apply p { color: var(--muted); font-size: 14px; margin: 10px auto 16px; max-width: 620px; }
.apply-btn, .pp-build { display: inline-block; background: var(--cyan); color: #04323c; font-weight: 800; text-decoration: none; border-radius: 10px; padding: 12px 20px; }
.apply-btn:hover, .pp-build:hover { background: var(--cyan-d); color: #fff; }

/* ----- Profile page ----- */
.provider-profile { max-width: 820px; }
.pp-head { display: flex; gap: 18px; align-items: center; margin: 18px 0 8px; }
.pp-avatar { width: 88px; height: 88px; min-width: 88px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--cyan), var(--navy)); }
.pp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-avatar .p-mono { font-size: 34px; }
.pp-head-body h1 { color: var(--navy); font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.pp-clin { color: var(--navy); font-weight: 600; font-size: 15px; margin-top: 2px; }
.pp-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pp-badges .v-badge { margin-left: 0; }
.pp-grid { display: grid; grid-template-columns: 1fr 260px; gap: 24px; margin: 22px 0; }
.pp-main h2 { color: var(--navy); font-size: 18px; font-weight: 800; margin: 16px 0 8px; }
.pp-main p { color: var(--navy-soft); font-size: 15px; line-height: 1.6; }
.pp-side { background: var(--gray); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; align-self: start; }
.pp-facts { margin: 0; }
.pp-facts dt { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.pp-facts dt:first-child { margin-top: 0; }
.pp-facts dd { margin: 2px 0 0; color: var(--navy); font-size: 14px; font-weight: 600; }
.pp-vnote { color: #1d7a4d; font-size: 13px; margin-top: 14px; font-weight: 600; }

/* Profile CTAs + contact form. */
.pp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 4px; }
.pp-contact-btn, .pp-cancel { background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 10px; padding: 12px 20px; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 15px; }
.pp-contact-btn:hover, .pp-cancel:hover { border-color: var(--cyan); }
.pp-contact-form { margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); max-width: 560px; }
.pp-contact-form h2 { color: var(--navy); font-size: 20px; font-weight: 800; }
.pp-form-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 14px; }
.pp-field { margin-bottom: 12px; display: flex; flex-direction: column; }
.pp-field label { font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 5px; }
.pp-opt { color: var(--muted); font-weight: 500; }
.pp-field input, .pp-field textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.pp-field textarea { resize: vertical; }
.pp-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.pp-send { background: var(--cyan); color: #04323c; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 15px; }
.pp-send:hover { background: var(--cyan-d); color: #fff; }
.pp-success { margin: 18px 0; }
.b-ok-sub { color: var(--muted); font-weight: 600; }

/* Builder provider-attribution banner. */
.b-provider-banner { background: #ecfaff; border: 1px solid #cdeef6; color: var(--navy); border-radius: 10px; padding: 11px 16px; font-size: 14px; max-width: 760px; margin: 0 auto 4px; }
.b-provider-banner strong { color: var(--cyan-d); }

@media (max-width: 820px) {
  .pp-grid { grid-template-columns: 1fr; }
  .pp-head { gap: 14px; }
}

/* =========================================================================
   REDESIGN 2026-06-15 — clean shared shell. Concierge, Fraunces accent,
   homepage hero + intent selector + Explore SEO links, article sticky TOC.
   Appended last so it wins the cascade over earlier component rules.
   ========================================================================= */

/* ---- Fraunces accent (accent words only — tagline + "I want to…" lead) ---- */
.accent { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; color: var(--cyan); }

/* ---- Concierge bubble — bottom-right, offset above the protocol-resume CTA ---- */
.concierge { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cc-btn { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border: none; cursor: pointer; padding: 13px 18px; border-radius: 999px; font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 12px 34px -10px rgba(15, 39, 66, 0.6); }
.cc-btn:hover { background: var(--navy-deep); }
.cc-btn .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ad991; box-shadow: 0 0 0 3px rgba(74, 217, 145, 0.25); }
.cc-panel { width: min(330px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 28px 70px -20px rgba(15, 39, 66, 0.5); overflow: hidden; }
.cc-panel[hidden] { display: none; }
.cc-head { background: var(--navy); color: #fff; padding: 16px 18px; }
.cc-head b { font-size: 15px; }
.cc-head p { font-size: 12.5px; opacity: 0.8; margin-top: 2px; }
.cc-body { padding: 16px 18px; }
.cc-body .msg { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink); }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cc-chips a { font-size: 12.5px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 7px 12px; text-decoration: none; }
.cc-chips a:hover { border-color: var(--cyan); background: var(--cyan-soft); }
/* Keep the concierge clear of the fixed "back to your protocol" CTA (bottom-left).
   On narrow screens the protocol-resume sits bottom-left and the concierge
   bottom-right; below ~520px stack the concierge a little higher so neither
   overlaps the other or a centered modal. */
@media (max-width: 520px) {
  .concierge { right: 14px; bottom: 14px; }
  .cc-btn { padding: 11px 14px; font-size: 13px; }
  body.has-resume-cta .concierge { bottom: 64px; }
}


/* ---- Homepage hero + central "I want to…" selector (v3) ---- */
.home-hero { max-width: 980px; margin: 0 auto; padding: 50px 24px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; min-height: 80vh; justify-content: center; }
.home-hero .hero-banner { width: min(860px, 96vw); max-width: none; height: auto; margin: 0 auto; border-radius: 0; box-shadow: none; }
.home-hero .tagline { margin-top: 16px; font-size: 29px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; line-height: 1.15; }
.home-hero .tagline .accent { font-size: 1em; }
.home-hero .sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.begin-cue { margin-top: 40px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.begin-cue .chev { display: block; margin: 8px auto 0; width: 18px; height: 18px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(4px, 4px); } }
@media (prefers-reduced-motion: reduce) { .begin-cue .chev { animation: none; } }

.intent { position: relative; margin-top: 24px; width: min(520px, 92vw); }
.intent-btn { width: 100%; cursor: pointer; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 40px -22px rgba(15, 39, 66, 0.5); transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; font-family: inherit; }
.intent:hover .intent-btn, .intent.open .intent-btn { border-color: var(--cyan); box-shadow: 0 16px 50px -18px rgba(52, 164, 201, 0.55); transform: translateY(-2px); }
.intent-btn .lead { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 27px; color: var(--navy); font-weight: 500; }
.intent-btn .caret { width: 13px; height: 13px; border-right: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(45deg); transition: transform 0.25s; margin-right: 6px; }
.intent.open .intent-btn .caret { transform: rotate(225deg); }
.intent .menu { position: absolute; left: 0; right: 0; top: calc(100% + 12px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 70px -24px rgba(15, 39, 66, 0.45); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; z-index: 30; text-align: left; }
.intent:hover .menu, .intent.open .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.home-hero .footnote { margin-top: 50px; color: #9aa8b6; font-size: 12.5px; max-width: 560px; }

/* ---- Prominent homepage Pep entry (CC 0060) — the AI assistant front door ---- */
.hero-pep { margin-top: 34px; width: min(560px, 92vw); display: flex; flex-direction: column; align-items: center; }
.hero-pep .hp-eyebrow { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.hero-pep .hp-eyebrow strong { color: var(--cyan-d); }
.hero-pep .hp-bar { display: flex; width: 100%; background: #fff; border: 1.5px solid var(--cyan); border-radius: 999px;
  box-shadow: 0 12px 38px -18px rgba(52, 164, 201, 0.6); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.hero-pep .hp-bar:focus-within { box-shadow: 0 16px 46px -16px rgba(52, 164, 201, 0.75); }
.hero-pep input { flex: 1; min-width: 0; border: none; outline: none; font-family: inherit; font-size: 15.5px;
  color: var(--text); padding: 14px 6px 14px 22px; background: transparent; }
.hero-pep button { flex: none; cursor: pointer; border: none; font-family: inherit; font-weight: 600; font-size: 14.5px;
  color: #fff; background: var(--cyan); padding: 0 22px; margin: 5px; border-radius: 999px; white-space: nowrap; }
.hero-pep button:hover { background: var(--cyan-d); }
@media (max-width: 520px) { .hero-pep button { padding: 0 16px; } .hero-pep input { padding-left: 18px; } }

/* ---- Homepage "Explore the peptide encyclopedia" — static SEO links ---- */
.explore { max-width: 1000px; margin: 0 auto; padding: 64px 24px 56px; text-align: center; border-top: 1px solid var(--line); }
.explore h2 { font-size: 24px; color: var(--navy); letter-spacing: -0.01em; }
.explore .ex-sub { margin-top: 8px; color: var(--muted); font-size: 14.5px; margin-bottom: 30px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 24px; max-width: 900px; margin: 0 auto; }
.ex-grid a { display: block; text-align: center; font-size: 15px; color: var(--navy); font-weight: 500; padding: 9px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color 0.15s; }
.ex-grid a:hover { color: var(--cyan); }
.ex-all { display: inline-block; margin-top: 30px; font-weight: 600; color: var(--cyan-d); font-size: 15px; text-decoration: none; }
.ex-all:hover { color: var(--cyan); }
@media (max-width: 520px) { .home-hero .tagline { font-size: 21px; } .intent-btn .lead { font-size: 22px; } }

/* ---- Article 2-col layout + sticky "on this page" TOC (mockup profile-v1) ---- */
.article-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc-side { position: sticky; top: 84px; align-self: start; }
.toc-side:empty { display: none; }
.toc-title { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc { display: block; }
.toc a { display: block; font-size: 13.5px; color: var(--muted); padding: 7px 0 7px 14px; border-left: 2px solid var(--line); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.active { color: var(--navy); border-left-color: var(--cyan); font-weight: 600; }
.toc-cta { margin-top: 26px; background: var(--navy); color: #fff; border-radius: 16px; padding: 20px; }
.toc-cta h4 { font-size: 15.5px; margin-bottom: 6px; color: #fff; line-height: 1.25; }
.toc-cta p { font-size: 13px; opacity: 0.82; margin-bottom: 14px; }
.toc-cta a { display: block; text-align: center; background: var(--cyan); color: #06243a; font-weight: 700; padding: 11px; border-radius: 999px; font-size: 14px; text-decoration: none; }
.toc-cta a.ghost { background: transparent; color: #cfe9f3; border: 1px solid rgba(255, 255, 255, 0.25); margin-top: 8px; font-weight: 600; }
.toc-cta a.ghost:hover { border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 880px) {
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc-side { position: static; top: auto; }
  .toc-side .toc { display: none; } /* on mobile keep the CTA, drop the jump-list */
}

/* ---- Protocol report 2-col layout + sticky TOC (reuses .toc-side/.toc) ---- */
.builder[data-step="report"] { max-width: 1036px; }
.report-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 44px; align-items: start; }
.report-layout .toc-side { position: sticky; top: 84px; align-self: start; }
@media (max-width: 880px) {
  .builder[data-step="report"] { max-width: 760px; }
  .report-layout { grid-template-columns: 1fr; gap: 18px; }
  .report-layout .toc-side { position: static; top: auto; }
  .report-layout .toc-side .toc { display: none; } /* keep the page calm on mobile */
}
