/* BAC Water for Peptides — public site (dark tool theme) */
:root {
  --bg: #060b16;
  --bg-2: #0a1222;
  --surface: #0d1729;
  --surface-2: #122039;
  --line: #1c2c49;
  --line-2: #263a5e;
  --text: #e7eef8;
  --muted: #8ea2c0;
  --faint: #5e7293;
  --cyan: #22d3ee;
  --cyan-2: #06b6d4;
  --cyan-glow: rgba(34, 211, 238, .35);
  --teal: #149ead;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--cyan); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; background: var(--cyan); color: #04121a; font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6, 11, 22, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { display: block; }
.brand__mark { width: 36px; height: 36px; border-radius: 9px; background: #fff; padding: 3px; }
.brand__text b { display: block; font-size: 17px; line-height: 1.1; }
.brand__text b span { color: var(--cyan); }
.brand__text small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand__logo { height: 42px; width: auto; }
.nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
/* "Peptide Tools" dropdown */
.nav-drop { position: relative; }
.nav-drop__toggle { display: block; padding: 8px 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer; }
.nav-drop__toggle span { font-size: 11px; margin-left: 2px; }
.nav-drop__toggle:hover, .nav-drop.is-current > .nav-drop__toggle, .nav-drop.is-open > .nav-drop__toggle { color: var(--text); background: var(--surface-2); }
.nav .nav-drop__menu { position: absolute; top: 100%; left: 0; z-index: 60; display: none; flex-direction: column; gap: 2px; min-width: 200px; margin-top: 6px; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.nav .nav-drop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu, .nav-drop.is-open .nav-drop__menu { display: flex; }
.menu-toggle { display: none; appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 36px; background:
  radial-gradient(700px 380px at 85% -10%, rgba(34, 211, 238, .16), transparent 70%),
  radial-gradient(600px 400px at -10% 20%, rgba(20, 158, 173, .12), transparent 70%); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 { max-width: 780px; font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero__lead { max-width: 660px; color: var(--muted); font-size: 18px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__chips span { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.hero__chips b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* ---------- Calculator ---------- */
.calc-section { padding: 8px 0 60px; }
.calc { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.calc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.calc-tab { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 18px 24px; text-align: left; font: inherit; cursor: pointer; border-bottom: 2px solid transparent; }
.calc-tab + .calc-tab { border-left: 1px solid var(--line); }
.calc-tab b { display: block; font-size: 16px; color: inherit; }
.calc-tab small { display: block; font-size: 13px; color: var(--faint); }
.calc-tab:hover { color: var(--text); background: rgba(255, 255, 255, .02); }
.calc-tab.is-active { color: var(--text); background: var(--surface-2); border-bottom-color: var(--cyan); }
.calc-panel { padding: 28px; }
.calc-panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.calc-panel__head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); }
.calc-kicker { margin: 0 0 4px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.calc-mode { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.calc-mode button { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.calc-mode button.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.calc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; align-content: start; }
.calc-field--wide { grid-column: 1 / -1; }
.calc-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.calc-field small { display: block; margin-top: 5px; color: var(--faint); font-size: 12.5px; }
.calc-field select, .calc-field input, .calc-input input, .calc-input select {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
}
.calc-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.calc-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); overflow: hidden; }
.calc-input input { border: 0; border-radius: 0; font-family: var(--mono); font-size: 18px; min-width: 0; }
.calc-input span, .calc-input select { flex: none; width: auto; display: grid; place-items: center; padding: 0 14px; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: var(--surface); color: var(--muted); font-family: var(--mono); font-size: 14px; font-weight: 600; }
.calc-input select { cursor: pointer; }
.calc-input:focus-within, .calc-field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); outline: none; }
.calc-input input:focus { outline: none; }
.calc-progress { grid-column: 1 / -1; }
.calc-progress__text { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.calc-progress__text b { color: var(--text); }
.calc-progress__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.calc-progress__bar i { display: block; height: 100%; width: 33%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transition: width .25s; }
.calc-error { margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(248, 113, 113, .4); background: rgba(248, 113, 113, .08); color: #fecaca; font-size: 14px; }
.calc-actions { display: flex; gap: 10px; }
.calc-actions .calc-btn { flex: 1; }
.calc-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--cyan); color: #03161d; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 8px 24px var(--cyan-glow); transition: transform .12s, box-shadow .12s; }
.calc-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px var(--cyan-glow); }
.calc-btn.is-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.calc-btn.is-ghost:hover { background: var(--surface-2); }
.calc-btn.is-block { width: 100%; margin-top: 18px; }
[hidden] { display: none !important; }

.calc-result { position: sticky; top: 88px; min-height: 100%; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.calc-empty { display: grid; place-items: center; gap: 6px; min-height: 300px; text-align: center; color: var(--muted); }
.calc-empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--surface); color: var(--cyan); border: 1px solid var(--line-2); }
.calc-empty b { color: var(--text); font-size: 18px; }
.calc-empty p { margin: 0; max-width: 280px; font-size: 14px; }
.calc-big { display: flex; align-items: baseline; gap: 10px; }
.calc-big strong { font-family: var(--mono); font-size: clamp(52px, 7vw, 72px); font-weight: 700; line-height: 1; color: var(--cyan); text-shadow: 0 0 28px var(--cyan-glow); }
.calc-big span { color: var(--muted); font-size: 20px; font-weight: 600; }
.calc-big__sub { margin: 8px 0 14px; color: var(--muted); font-family: var(--mono); font-size: 14px; }
.calc-syringe svg { display: block; width: 100%; height: auto; margin: 6px 0 10px; }
.calc-syringe .s-needle { stroke: #9fb0c8; stroke-width: 2; }
.calc-syringe .s-hub { fill: #33496d; }
.calc-syringe .s-barrel { fill: rgba(231, 238, 248, .04); stroke: #3a5078; stroke-width: 2; }
.calc-syringe .s-liquid { filter: drop-shadow(0 0 8px rgba(34, 211, 238, .55)); }
.calc-syringe .s-ticks line { stroke: #6f84a6; stroke-width: 1.2; }
.calc-syringe .s-ticks text { fill: #8ea2c0; font-family: var(--mono); font-size: 11px; text-anchor: middle; }
.calc-syringe .s-plunger { stroke: #e7eef8; stroke-width: 5; stroke-linecap: round; }
.calc-syringe .s-rod, .calc-syringe .s-thumb { fill: #33496d; }
.calc-warning { padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); color: #fde68a; font-size: 14px; }
.calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.calc-stats div { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.calc-stats dt { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.calc-stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 16px; font-weight: 600; }
.calc-formula { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; }
.calc-formula summary { padding: 11px 14px; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.calc-formula ol { margin: 0; padding: 0 14px 14px 34px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.calc-formula b { color: var(--cyan); font-weight: 600; }
.calc-chart-note { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.calc-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-table th { padding: 10px 12px; background: var(--surface); color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.calc-table td { padding: 10px 12px; border-top: 1px solid var(--line); font-family: var(--mono); }
.calc-table tr.is-over td { color: var(--faint); }
.calc-table tr.is-fit td b { color: var(--cyan); }
.calc-table span, .calc-legend span { display: inline-block; padding: 1px 8px; border-radius: 999px; font-family: Inter, sans-serif; font-size: 11.5px; font-weight: 700; }
.is-fit { background: rgba(52, 211, 153, .12); color: var(--green); }
.is-small { background: rgba(251, 191, 36, .12); color: var(--amber); }
.is-over { background: rgba(248, 113, 113, .12); color: var(--red); }
.calc-legend { margin: 12px 0 0; color: var(--faint); font-size: 12.5px; }
.calc-disclaimer { margin: 16px 0 0; color: var(--faint); font-size: 13px; text-align: center; }

/* ---------- Generic page pieces (library, contact, peptide pages) ---------- */
.page-head { padding: 56px 0 20px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 48px); }
.page-head p { max-width: 680px; color: var(--muted); font-size: 17px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section { padding: 30px 0 70px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: block; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.card h2, .card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }
.card span { color: var(--cyan); font-weight: 700; font-size: 14px; }
.empty-state { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--text); font-size: 18px; margin-bottom: 4px; }
.empty-state p { margin: 0; }
.panel { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.form-grid { display: grid; gap: 16px; }
.form-grid label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.form-error { color: var(--red); font-size: 13px; font-weight: 600; }
.narrow { max-width: 760px; }
.prose { max-width: 780px; color: #c8d4e6; }
.prose h2 { margin-top: 1.6em; color: var(--text); }
.note { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: var(--surface); color: var(--muted); }
.note strong { color: var(--text); }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--cyan); }
.messages { padding-top: 18px; }
.message { margin: 0 0 8px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); color: #bbf7d0; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding: 36px 0; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 4px; color: var(--faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */
/* Six header links: switch to the Menu button before labels start wrapping. */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  /* In the mobile menu the tools are listed inline under their heading. */
  .nav-drop__toggle { pointer-events: none; padding-bottom: 2px; color: var(--faint); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .nav-drop__toggle span { display: none; }
  .nav .nav-drop__menu { position: static; display: flex; min-width: 0; margin: 0 0 4px; padding: 0 0 0 12px; border: 0; background: none; box-shadow: none; }
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand__logo { height: 34px; }
  .hero { padding: 40px 0 24px; }
  .calc-panel { padding: 18px; }
  .calc-tab { padding: 14px 16px; }
  .calc-tab small { display: none; }
  .calc-form { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Homepage content sections ---------- */
.content-block { padding: 64px 0; border-top: 1px solid var(--line); }
.content-block h2 { font-size: clamp(26px, 3.2vw, 36px); }
.content-block p { color: #c3cfe2; }
.content-block a { font-weight: 600; }
.content-lead { max-width: 760px; font-size: 17px; }
.content-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: #c3cfe2; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(34, 211, 238, .12); color: var(--cyan); font-family: var(--mono); font-weight: 700; }
.steps b { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.facts div { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.facts b { display: block; margin-bottom: 6px; color: var(--cyan); font-family: var(--mono); font-size: 16px; }
.facts span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 12px 16px; background: var(--surface-2); color: var(--muted); font-size: 12px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--mono); }
.data-table td:first-child { color: var(--cyan); font-weight: 600; }
.checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; color: #c3cfe2; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.callout { padding: 32px; border-radius: 16px; border: 1px solid rgba(34, 211, 238, .35); background: linear-gradient(135deg, rgba(34, 211, 238, .08), rgba(20, 158, 173, .03)); }
.callout p:last-child { margin-bottom: 0; }
.narrow-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { position: relative; padding: 18px 50px 18px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--cyan); font-family: var(--mono); font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--cyan); }
.faq details p { margin: 0; padding: 0 20px 18px; }
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; gap: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .content-block { padding: 44px 0; }
  .facts { grid-template-columns: 1fr; }
  .callout { padding: 22px; }
}

/* Legal pages */
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal ul { padding-left: 20px; color: #c3cfe2; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal em { color: var(--muted); }
.legal .data-table td:first-child { color: var(--cyan); }

/* ---------- Save / share inside the calculator ---------- */
.calc-share { display: grid; gap: 8px; margin-top: 18px; }
.calc-share__row { display: flex; gap: 8px; }
.calc-share__row .calc-btn { flex: 1; height: 44px; font-size: 15px; }
.calc-share__status { margin: 0; color: var(--muted); font-size: 13.5px; min-height: 1.2em; }
.calc-share__status a { font-weight: 700; word-break: break-all; }
.calc-result .calc-btn.is-block { margin-top: 10px; }

/* ---------- Saved calculation page ---------- */
.saved-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.saved-actions .calc-btn { height: 44px; font-size: 15px; text-decoration: none; }
.saved-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.saved-inputs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.saved-result { position: static; }
.saved-math { margin: 16px 0 0; padding-left: 20px; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.saved-math b { color: var(--cyan); font-weight: 600; }
.saved-qr { padding: 18px; border-radius: var(--radius); background: #fff; color: #0b1220; text-align: center; }
.saved-qr svg { width: 100%; max-width: 220px; height: auto; }
.saved-qr p { margin: 6px 0 0; font-size: 13px; font-weight: 600; }
.vial-label { display: flex; align-items: center; gap: 8px; width: 1.5in; height: .75in; margin: 18px auto 0; padding: 4px 5px; border: 1px dashed #9fb0c8; border-radius: 4px; background: #fff; color: #000; overflow: hidden; }
.vial-label__text { display: grid; flex: 1; min-width: 0; line-height: 1.15; }
.vial-label__text b { font-size: 8pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vial-label__text span { font-size: 5.5pt; white-space: nowrap; }
.vial-label__qr svg { display: block; width: .6in; height: .6in; }
.saved-note { margin-top: 8px; color: var(--faint); font-size: 12.5px; text-align: center; }
@media (max-width: 860px) { .saved-grid { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  @page { margin: 0.5in; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .no-print, .calc-btn, .calc-share, .messages { display: none !important; }
  .page-head { padding: 0 0 8pt; }
  .page-head p, .eyebrow { color: #333 !important; }
  .section { padding: 0; }
  .wrap { width: 100%; }
  .saved-grid { grid-template-columns: 1fr 2.2in; gap: 18pt; }
  .calc-result, .calc-stats div, .calc-table-wrap, .saved-qr { background: #fff !important; border-color: #bbb !important; box-shadow: none !important; }
  .calc-big strong { color: #000 !important; text-shadow: none !important; }
  .calc-big span, .calc-big__sub, .calc-kicker, .calc-stats dt, .saved-math, .calc-legend, .calc-disclaimer { color: #333 !important; }
  .calc-stats dd, .calc-table td, .calc-table th { color: #000 !important; }
  .calc-table th { background: #eee !important; }
  .saved-math b { color: #000 !important; }
  .calc-syringe .s-barrel { fill: #fff; stroke: #555; }
  .calc-syringe .s-ticks line { stroke: #333; }
  .calc-syringe .s-ticks text { fill: #333; }
  .calc-syringe .s-plunger { stroke: #000; }
  .calc-syringe .s-liquid { filter: none; }
  .vial-label { border-color: #000; }
  a { color: #000 !important; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Peptide pages ---------- */
.pep-hero { padding: 40px 0 28px; background:
  radial-gradient(700px 380px at 85% -10%, rgba(34, 211, 238, .16), transparent 70%),
  radial-gradient(600px 400px at -10% 20%, rgba(20, 158, 173, .12), transparent 70%); }
.pep-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; }
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.pep-badge { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); color: var(--amber); font-size: 12.5px; font-weight: 700; }
.pep-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.pep-lead { max-width: 680px; color: var(--muted); font-size: 18px; }
.pep-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pep-actions .calc-btn { text-decoration: none; }
.pep-vial { margin: 0; text-align: center; }
.pep-vial img { width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 20px 40px rgba(34, 211, 238, .18)); }
.pep-vial figcaption { color: var(--faint); font-size: 12px; }
.pep-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 0; }
.pep-facts div { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(13, 23, 41, .75); }
.pep-facts dt { color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pep-facts dd { margin: 3px 0 0; font-weight: 700; }
.pep-body { padding: 56px 0 80px; border-top: 1px solid var(--line); }
.pep-body__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.pep-toc { position: sticky; top: 90px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.pep-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.pep-toc a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.pep-toc a:hover { color: var(--text); background: var(--surface-2); }
.pep-toc__note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.pep-toc__note b { color: var(--text); }
.pep-article { max-width: 800px; }
.pep-article h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 1.7em; scroll-margin-top: 90px; }
.pep-article h3 { margin-top: 1.3em; }
.pep-article ul, .pep-article ol { color: #c3cfe2; padding-left: 22px; }
.pep-article li { margin-bottom: 6px; }
.pep-article strong { color: var(--text); }
.pep-summary { padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .06); color: #c3cfe2; margin-bottom: 24px; }
.pep-related { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.pep-calc { padding-top: 24px; }
@media (max-width: 860px) {
  .pep-hero__grid { grid-template-columns: 1fr; }
  .pep-vial { order: -1; }
  .pep-vial img { max-width: 160px; }
  .pep-facts { grid-template-columns: 1fr 1fr; }
  .pep-body__grid { grid-template-columns: 1fr; gap: 20px; }
  .pep-toc { position: static; }
  .pep-related { grid-template-columns: 1fr; }
}

/* Popular peptide calculators (homepage) */
.popular { padding: 8px 0 64px; }
.popular h2 { font-size: clamp(26px, 3.2vw, 36px); }
.popular__lead { max-width: 680px; color: var(--muted); }
.popular__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.popular__card { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.popular__card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.popular__card img { width: 56px; height: 84px; object-fit: contain; flex: none; }
.popular__card b { display: block; font-size: 18px; }
.popular__card small { display: block; color: var(--faint); font-size: 12.5px; }
.popular__card em { display: block; margin-top: 4px; color: var(--cyan); font-style: normal; font-weight: 700; font-size: 14px; }
@media (max-width: 860px) { .popular__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .popular__grid { grid-template-columns: 1fr; } }

/* ---------- BAC Water for Peptides additions ---------- */
.site-header .brand__mark { width: 36px; height: 36px; padding: 0; border-radius: 9px; background: none; }
.sponsor { display: block; width: fit-content; max-width: min(100%, 728px); margin: 28px auto 0; text-decoration: none; } /* strip is 728 px wide at most; bigger uploads are scaled down */
.sponsor img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); } /* real size, never stretched */
.sponsor small { display: block; margin-top: 6px; color: var(--faint); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.sponsor:hover img { border-color: var(--cyan); }
.guide-hero { padding-bottom: 24px; }
.guide-hero h1 { max-width: 860px; }
.aff-cards { display: grid; gap: 14px; margin: 8px 0 12px; }
.aff-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(34, 211, 238, .35); background: linear-gradient(135deg, rgba(34, 211, 238, .07), var(--surface)); }
.aff-card__img { display: block; }
.aff-card__img img { display: block; width: 100%; height: auto; } /* large banner fills the card */
.aff-card__body { padding: 22px 24px; }
.aff-card__title { font-size: 22px; margin-bottom: 8px; }
.aff-card__blurb { color: var(--muted); margin-bottom: 16px; }
.aff-card__blurb p:last-child { margin-bottom: 0; }
.aff-card .calc-btn { display: inline-flex; text-decoration: none; }
.table-note { margin-top: -4px; color: var(--faint); font-size: 13px; }
.data-table td small { color: var(--faint); font-size: 12px; }
.worked-math { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 14px; color: var(--text); }
.worked-math strong { color: var(--cyan); }
/* Homepage hero art (vial + syringe) */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.hero__art { position: relative; margin: 0; }
.hero__art::before { content: ""; position: absolute; inset: 12% 8% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); filter: blur(24px); z-index: 0; }
.hero__art img { position: relative; z-index: 1; display: block; width: 100%; max-width: 460px; margin-left: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__art img { max-width: 230px; margin: 4px auto 0; }
}
/* Compound library search */
.lib-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.lib-search input { flex: 1 1 320px; max-width: 560px; height: 50px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238ea2c0' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 16px 50%; color: var(--text); font: inherit; font-size: 16px; }
.lib-search input::placeholder { color: var(--faint); }
.lib-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow); }
.lib-search__count { margin: 0; color: var(--muted); font-size: 14px; }
.card-grid .card[hidden], .empty-state[hidden] { display: none; }
/* Oral / topical compounds: calculator greyed out */
.calc-na { display: flex; gap: 14px; align-items: flex-start; margin: 16px 16px 0; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); }
.calc-na[hidden] { display: none; }
.calc-na__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #1a1200; font-weight: 800; font-family: var(--mono); }
.calc-na b { display: block; margin-bottom: 4px; color: var(--text); }
.calc-na p { margin: 0; color: var(--muted); font-size: 15px; }
.calc-na a { color: var(--cyan); font-weight: 700; }
.calc--na .calc-panel .calc-field:not(.calc-field--compound),
.calc--na .calc-panel .calc-actions,
.calc--na .calc-panel .calc-result,
.calc--na .calc-panel .calc-mode { opacity: .35; filter: grayscale(1); pointer-events: none; user-select: none; }
/* FDA-approved status badge: same shape as the amber badge, in green */
.pep-badge.is-approved { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); color: var(--green); }

/* Library card: small green FDA Approved pill above the name */
.card .card-fda { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); color: var(--green); font-size: 12px; font-weight: 700; }

/* Reconstitution supplies page */
.supply-disclosure { margin-top: 10px; color: var(--faint) !important; font-size: 13px !important; }
.supply-page { padding-top: 10px; }
.supply-bac-note { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 16px 18px; border: 1px solid rgba(34, 211, 238, .42); border-radius: 12px; background: rgba(34, 211, 238, .06); color: var(--muted); }
.supply-bac-note strong { color: var(--text); }
.supply-bac-note a { color: var(--cyan); }
.supply-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.supply-jump a { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.supply-jump a:hover { border-color: var(--cyan); color: var(--cyan); }
.supply-section { padding-top: 30px; scroll-margin-top: 90px; }
.supply-section h2 { margin-bottom: 4px; }
.supply-section__blurb { margin-bottom: 16px; color: var(--muted); }
.supply-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.supply-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, transform .15s; }
.supply-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.supply-card__img { display: block; aspect-ratio: 1 / 1; padding: 16px; background: #fff; }
.supply-card__img img { width: 100%; height: 100%; object-fit: contain; }
.supply-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; }
.supply-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.supply-card p { margin: 0; color: var(--muted); font-size: 14px; }
.supply-card__btn { margin-top: auto; width: 100%; height: 44px; flex-shrink: 0; font-size: 14px; text-decoration: none; }
.supply-checklist { margin-top: 50px; }
.supply-faq { max-width: 780px; margin-top: 40px; }
@media (max-width: 980px) { .supply-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .supply-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .supply-card__body { padding: 12px; } .supply-card__img { padding: 10px; } }
.home-best-cta { display: flex; justify-content: center; margin-top: 18px; }
.home-best-cta .calc-btn { text-decoration: none; }

/* Homepage: beginner's guide entry point */
.hero__start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 0; color: var(--muted); font-weight: 600; }
.hero__start .calc-btn { height: 44px; text-decoration: none; }

/* Beginner's guide step cards (guide body HTML) */
.prose .step-card { position: relative; margin: 22px 0; padding: 22px 24px 20px 78px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose .step-card h2 { margin: 0 0 10px; font-size: 22px; }
.prose .step-card > :last-child { margin-bottom: 0; }
.step-card__num { position: absolute; top: 20px; left: 22px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--cyan); color: #03161d; font-weight: 800; font-size: 18px; }
.prose .step-tip { margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(251, 191, 36, .45); border-radius: 10px; background: rgba(251, 191, 36, .07); color: #f5deb0; font-size: 15px; }
.prose .step-tip strong { color: var(--amber); }
.prose .mistake-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.prose .mistake-list li { margin: 0; padding: 12px 14px; border: 1px solid rgba(248, 113, 113, .4); border-radius: 10px; background: rgba(248, 113, 113, .06); }
.prose .mistake-list strong { color: #fca5a5; }
@media (max-width: 640px) {
  .prose .step-card { padding: 64px 16px 16px; }
  .step-card__num { top: 16px; left: 16px; }
}

/* Peptide Terms glossary */
.terms-page { padding-top: 10px; }
.terms-chips { display: flex; flex-wrap: wrap; gap: 8px; order: 3; flex-basis: 100%; }
.terms-chip { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.terms-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.terms-chip.is-active { border-color: var(--cyan); background: var(--cyan); color: #03161d; }
.terms-list { display: grid; gap: 12px; }
.term-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.term-card[hidden] { display: none; }
.term-card:target { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-glow); }
.term-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.term-card h2 { margin: 0; font-size: 18px; }
.term-card__abbr { padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--cyan); font-family: var(--mono); font-size: 12px; }
.term-card__cat { margin-left: auto; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.term-card p { margin: 0; color: #c3cfe2; }
.term-card a { color: var(--cyan); }

/* "Calculator" links land on the top of the calculator (tabs visible), clear of the sticky header. */
#calculator { scroll-margin-top: 84px; }
#calculator-title { scroll-margin-top: 230px; } /* older #calculator-title links */

/* Peptide library: category filter buttons + card tags */
.lib-chips { flex-basis: 100%; }
.card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.card .card-tags .card-fda { margin-bottom: 0; }
.card .card-cat { display: inline-block; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; }

/* 404 page */
.notfound__search { margin-top: 22px; margin-bottom: 0; }
.notfound__search .calc-btn { height: 50px; }

/* Compound pages: "Next" tool links under the calculator */
.pep-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 14px 0 0; }
.pep-tools span { color: var(--faint); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pep-tools a { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.pep-tools a:hover { border-color: var(--cyan); color: var(--cyan); }
.home-tools { padding-top: 0; }
.home-tools__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 980px) { .home-tools__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-tools__grid { grid-template-columns: 1fr; } }

/* "Read full instructions ↓" links on the tool pages (tracker, calendar, label maker) */
.jump-link { color: var(--cyan); font-weight: 700; white-space: nowrap; }
#instructions { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
