/* Peptide Ranges · site styles.
   Rules: every color, size and radius comes from the token list below. No !important,
   no inline styles in page content, no styles pasted into posts. A look change is an
   edit to this token list. */

:root {
  /* Ink and surfaces */
  --ink:       #1d2a22;
  --ink-2:     #3e4a42;
  --muted:     #646c66;
  --line:      #e6e1d6;
  --line-2:    #d4ccbc;
  --bg:        #fbf9f4;
  --bg-alt:    #f3efe5;
  --bg-deep:    #10202c;
  --on-deep:    #e8eef3;
  --on-deep-2:  #a9b8c5;
  --deep-line:  rgba(233, 238, 243, 0.15);

  /* Accent */
  --accent:    #1f4d36;
  --accent-2:  #163a28;
  --accent-pale:#e8eee6;
  --signal:    #b9792f;
  --glass:     rgba(251, 249, 244, 0.88);
  --curve-fast:rgba(31, 77, 54, 0.7);
  --curve-slow:rgba(185, 121, 47, 0.9);
  --curve-band:rgba(31, 77, 54, 0.06);
  --curve-grid:rgba(29, 42, 34, 0.06);
  --on-accent:  #ffffff;

  /* Proof grades */
  --grade-a:      #1b6a3e;
  --grade-a-bg:   #e7f3eb;
  --grade-b:      #7a5200;
  --grade-b-bg:   #fbf1dc;
  --grade-c:      #9a2b2b;
  --grade-c-bg:   #fae9e9;

  /* Notice */
  --warn-bg:   #fbf4e4;
  --warn-line: #e2cc98;

  /* Type */
  --font:       "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:       ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-xs:      0.8125rem;
  --fs-sm:      0.9375rem;
  --fs-md:      1.0625rem;
  --fs-lg:      1.25rem;
  --fs-xl:      1.75rem;
  --fs-2xl:     clamp(1.9rem, 4vw, 2.6rem);
  --lh:         1.6;

  /* Layout */
  --wrap:       1120px;
  --wrap-text:  760px;
  --gutter:     16px;
  --gap:        24px;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow:     0 1px 3px rgba(20, 32, 43, 0.08);
  --focus:     0 0 0 3px rgba(31, 77, 54, 0.3);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-xl); margin-top: 1.6em; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-lg); margin-top: 1.3em; }
p, ul, ol { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: var(--radius-sm); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-text { max-width: var(--wrap-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-lg); color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo .mark { width: 28px; height: 28px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-bar { fill: var(--on-accent); }
.mark-bar.b1 { opacity: 0.55; }
.mark-bar.b2 { opacity: 0.8; }
.mark-curve { fill: none; stroke: var(--on-accent); stroke-width: 2; stroke-linecap: round; }
.logo-word { letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }
footer.site .logo-accent { color: var(--accent); }
.logo:hover .mark-curve { stroke-dasharray: 40; animation: draw-curve 0.9s ease-out; }
@keyframes draw-curve { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
nav.main { display: flex; align-items: center; gap: 20px; }
nav.main a { color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
nav.main a:hover, nav.main a.active { color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 6px 12px; font: inherit; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; z-index: 5; }
  nav.main.open { display: flex; }
  nav.main a { padding: 10px 0; width: 100%; font-size: var(--fs-md); }
  header.site { position: sticky; }
}

/* Page sections */
.page-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-head .lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: var(--wrap-text); }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.eyebrow a { color: var(--muted); }
.section { padding: 40px 0; }
.section-alt { background: var(--bg-alt); }
.prose { max-width: var(--wrap-text); }
.prose li { margin-bottom: 0.4em; }
.hero { padding: 56px 0 40px; background: radial-gradient(1200px 400px at 85% 0%, var(--accent-pale), transparent 70%), var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero h1 { color: var(--ink); max-width: 820px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; }
.hero .lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 700px; }
.hero .eyebrow { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Grid and cards */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Proof grade chips */
.grade { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.grade-human-rct { color: var(--grade-a); background: var(--grade-a-bg); }
.grade-human-small { color: var(--grade-b); background: var(--grade-b-bg); }
.grade-animal-only { color: var(--grade-c); background: var(--grade-c-bg); }
.tag { display: inline-block; font-size: var(--fs-xs); color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }

/* Peptide hub */
.hub-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }
.hub-tools input[type="search"] { flex: 1 1 260px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; }
.filter-btn { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: inherit; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; padding: 0; list-style: none; }
.az a { display: inline-block; min-width: 32px; text-align: center; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; font-size: var(--fs-sm); }
.pep-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pep-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pep-card:hover { border-color: var(--accent); color: var(--ink); }
.pep-card .name { font-size: var(--fs-lg); font-weight: 700; }
.pep-card .aka { font-size: var(--fs-xs); color: var(--muted); }
.pep-card .most { font-size: var(--fs-sm); color: var(--ink-2); }
.pep-card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pep-card[hidden] { display: none; }
.hub-empty { color: var(--muted); }

/* Range card on a peptide page */
.range-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0; background: var(--bg); box-shadow: var(--shadow); }
.range-card h2 { font-size: var(--fs-lg); margin: 0; padding: 14px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.range-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.range-row:last-child { border-bottom: 0; }
.range-cell { padding: 14px 18px; border-right: 1px solid var(--line); }
.range-cell:last-child { border-right: 0; }
.range-cell .label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.range-cell .value { font-weight: 600; }
.range-foot { padding: 12px 18px; font-size: var(--fs-sm); color: var(--ink-2); background: var(--bg); border-top: 1px solid var(--line); }
.range-foot p { margin: 0 0 0.4em; }
.range-foot p:last-child { margin: 0; }
@media (max-width: 640px) {
  .range-row { grid-template-columns: 1fr; }
  .range-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .range-cell:last-child { border-bottom: 0; }
}

.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 14px 18px; margin: 20px 0; font-size: var(--fs-sm); }
.notice p { margin: 0; }
.disclaimer { font-size: var(--fs-sm); color: var(--ink-2); border-left: 3px solid var(--line-2); padding: 4px 0 4px 14px; margin: 24px 0; }

/* Study table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0 24px; }
table.studies { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 860px; }
table.studies th { text-align: left; background: var(--bg-alt); border-bottom: 2px solid var(--line-2); padding: 10px 12px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
table.studies td { vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 12px; }
table.studies tr:last-child td { border-bottom: 0; }
table.studies .cite { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
table.studies .unstated { color: var(--muted); font-style: italic; }

/* Simple data table (method pages) */
table.simple { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 12px 0 24px; }
table.simple th, table.simple td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; }
table.simple th { background: var(--bg-alt); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }

/* Related */
.related { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.related a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: var(--fs-sm); }

/* Breadcrumb */
.crumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Forms */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.form-row input, .form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; }
.form-row textarea { min-height: 140px; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.form-msg.ok { background: var(--grade-a-bg); color: var(--grade-a); }
.form-msg.err { background: var(--grade-c-bg); color: var(--grade-c); }

/* Footer */
footer.site { background: var(--bg-alt); color: var(--ink-2); border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 48px; font-size: var(--fs-sm); }
footer.site .cols { display: grid; gap: var(--gap); grid-template-columns: 2fr 1fr 1fr; }
footer.site h4 { color: var(--ink); font-size: var(--fs-sm); margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
footer.site .logo { color: var(--ink); }
footer.site .legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: var(--fs-xs); line-height: 1.6; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }

/* ---------- Motion (home hero, reveals, counts). All of it stops under reduced motion. ---------- */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--accent); }

.hero-motion { position: relative; overflow: hidden; padding: 64px 0 160px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-motion .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-right: 8px; vertical-align: 1px; }
.pulse-text { background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 35%, var(--curve-slow) 60%, var(--accent) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: sweep 7s ease-in-out infinite; }
@keyframes sweep { 0% { background-position: 100% 0; } 50% { background-position: 0 0; } 100% { background-position: 100% 0; } }
.rise { animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.d2 { animation-delay: 0.1s; }
.rise.d3 { animation-delay: 0.2s; }
.rise.d4 { animation-delay: 0.3s; }
@keyframes rise-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: var(--fs-xs); color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-right: 8px; vertical-align: 3px; }
.lg-fast::before { background: var(--curve-fast); }
.lg-slow::before { background: var(--curve-slow); }
.lg-band::before { height: 10px; vertical-align: -1px; background: var(--curve-band); border: 1px solid var(--curve-fast); }

/* Hero sample card */
.hero-card { display: block; background: var(--bg); color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(20, 32, 43, 0.45); transform: rotate(1.5deg); transition: transform 0.5s; }
.hero-card:hover { transform: rotate(0) translateY(-2px); color: var(--ink); }
.hc-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hc-top b { font-size: var(--fs-lg); }
.hc-tag { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hc-rows { display: block; }
.hc-row { display: grid; grid-template-columns: 1.3fr 0.8fr 0.6fr 0.8fr; gap: 8px; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); align-items: baseline; }
.hc-label { font-weight: 600; }
.hc-dose, .hc-units { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hc-units { color: var(--accent); }
.hc-often { color: var(--muted); font-size: var(--fs-xs); }
.hc-high { background: var(--accent-pale); }
.hc-foot { display: block; padding: 10px 18px; font-size: var(--fs-xs); color: var(--muted); }

/* Stats and ticker */
.section-tight { padding: 28px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.stat b { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ticker { overflow: hidden; white-space: nowrap; padding: 16px 0; }
.ticker-track { display: inline-flex; animation: slide 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: inline-flex; }
.ticker-set a, .ticker-set span { padding: 0 18px; font-size: var(--fs-sm); color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); }
.ticker-set a:hover { color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Scroll reveal and hover lift */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.pep-card, .card { transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.pep-card:hover, .card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(20, 32, 43, 0.45); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Common use section (peptide pages) ---------- */
.use { margin-bottom: 8px; }
.use h2 { margin-top: 0.4em; }
.basis { font-size: var(--fs-sm); color: var(--ink-2); max-width: var(--wrap-text); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 20px 0; }
.fact { background: var(--bg); padding: 14px 16px; min-width: 0; }
.fact dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.chart { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-alt); max-width: 560px; }
.chart figcaption { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.bar-label { font-size: 13px; font-weight: 600; fill: var(--ink); }
.bar-total { font-size: 12px; fill: var(--ink-2); font-family: var(--mono); }
.bar-track { fill: var(--line); }
.bar { fill: var(--accent); transform-box: fill-box; transform-origin: left center; }
.bar-high { fill: var(--signal); }
.js-motion .chart .bar { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-motion .chart.is-in .bar { transform: scaleX(1); }

table.doses { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 720px; }
table.doses th, table.doses td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.doses thead th { background: var(--bg-alt); border-bottom: 2px solid var(--line-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
table.doses tbody th { font-weight: 600; white-space: nowrap; }
table.doses td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.doses tr.row-high { background: var(--warn-bg); }
table.doses .unstated { color: var(--muted); font-style: italic; font-family: var(--font); }
table.doses tr:last-child th, table.doses tr:last-child td { border-bottom: 0; }
.ref { font-size: var(--fs-xs); font-weight: 400; text-decoration: none; margin-left: 4px; }
.notes { max-width: var(--wrap-text); }
.notes li { margin-bottom: 0.4em; }
.sources { font-size: var(--fs-xs); color: var(--ink-2); max-width: var(--wrap-text); padding-left: 1.4em; }
.sources li { margin-bottom: 6px; }
.sources li:target { background: var(--accent-pale); }
.cite-line { font-size: var(--fs-xs); color: var(--ink-2); max-width: var(--wrap-text); }

/* See the science */
.science { border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 32px 0; background: var(--bg); }
.science > summary { cursor: pointer; list-style: none; padding: 18px 20px; font-size: var(--fs-lg); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.science > summary::-webkit-details-marker { display: none; }
.science > summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; font-weight: 400; transition: transform 0.3s, background 0.3s, color 0.3s; }
.science[open] > summary::after { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.science > summary:hover { color: var(--accent); }
.science-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .rise, .pulse-text, .ticker-track, .logo:hover .mark-curve { animation: none; }
  .reveal, .pep-card, .card, .hero-card, .science > summary::after, .js-motion .chart .bar { transition: none; }
  .pulse-text { -webkit-text-fill-color: currentColor; background: none; }
  .reveal { opacity: 1; transform: none; }
  .js-motion .chart .bar { transform: none; }
}
/* Blends page */
.blend-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.blend h2 { margin-top: 0; font-size: var(--fs-lg); }
.blend-parts { list-style: none; padding: 0; margin: 0; }
.blend-parts li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.blend-parts a { font-weight: 600; text-decoration: none; }
.blend-parts span { font-size: var(--fs-sm); color: var(--ink-2); }

/* Study chart note */
.chart-note { margin: 10px 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* Vial and water picker above the dose table */
.mixer { margin: 24px 0 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--accent-pale); }
.mixer[hidden] { display: none; }
.mixer-title { margin: 0 0 12px; font-size: var(--fs-sm); font-weight: 600; }
.mixer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.mixer-label { min-width: 110px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.pick { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: inherit; font-size: var(--fs-sm); color: var(--ink); cursor: pointer; }
.pick:hover { border-color: var(--accent); }
.pick:focus-visible { outline: none; box-shadow: var(--focus); }
.pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mixer-out { margin: 4px 0 0; font-size: var(--fs-sm); }
.mixer-out strong { font-family: var(--mono); color: var(--accent); }

/* Dose table: the mix in the column head, units with mL and a 0 to 100 unit gauge */
.th-sub { display: block; margin-top: 2px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
table.doses td.units .u { font-weight: 600; color: var(--accent); }
table.doses td.units .ml { color: var(--muted); font-size: var(--fs-xs); }
.gauge { display: block; width: 100%; max-width: 140px; height: 6px; margin-top: 6px; }
.gauge-track { fill: var(--line); }
.gauge-fill { fill: var(--accent); }

/* Corner mix calculator, on every page */
.calc { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.calc[hidden], .calc-panel[hidden] { display: none; }
.calc-toggle { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(20, 32, 43, 0.18); }
.calc-toggle:hover { background: var(--accent-2); }
.calc-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.calc-panel { order: -1; width: min(320px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: 0 12px 32px rgba(20, 32, 43, 0.18); }
.calc-title { margin: 0 0 10px; font-weight: 700; }
.calc-panel label { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fs-sm); }
.calc-in { display: inline-flex; align-items: center; gap: 6px; }
.calc-in input { width: 80px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; font-family: var(--mono); background: var(--bg); color: var(--ink); }
.calc-in select { padding: 6px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; background: var(--bg); color: var(--ink); }
.calc-in input:focus-visible, .calc-in select:focus-visible { outline: none; box-shadow: var(--focus); }
.calc-out { margin: 12px 0 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-alt); }
.calc-out div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: var(--fs-sm); }
.calc-out dt { color: var(--ink-2); }
.calc-out dd { margin: 0; font-family: var(--mono); text-align: right; }
.calc-out .calc-main dd { font-weight: 700; color: var(--accent); }
.calc-gauge { max-width: none; }
.calc-note { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); }

/* Sign-up box on peptide pages, and the alerts page form */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin: 32px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--accent-pale); }
.signup h2 { margin-top: 0; font-size: var(--fs-lg); }
.signup .form-msg { grid-column: 1 / -1; }
.signup-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 8px; font-size: var(--fs-sm); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.fine { font-size: var(--fs-xs); color: var(--muted); }
.signup-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; background: var(--bg); color: var(--ink); }
.form-row input:focus-visible, .signup-form select:focus-visible { outline: none; box-shadow: var(--focus); }
@media (max-width: 760px) { .signup, .signup-fields { grid-template-columns: 1fr; } }

/* Printable chart page */
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.chart-sheet h1 { margin-bottom: 4px; }
table.units-grid { min-width: 0; }

@media print {
  .calc, .no-print, header.site, footer.site, #wpadminbar, .signup { display: none; }
  body { background: #fff; }
  .chart-sheet { padding: 0; }
  .facts, .chart, table.doses, .range-card { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; }
  table.doses { min-width: 0; font-size: 11px; }
  a { color: inherit; text-decoration: none; }
}

/* Home: the one action (search), trust line, three steps, alerts band */
.hero-search { display: flex; gap: 8px; max-width: 620px; margin: 24px 0 12px; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); box-shadow: 0 12px 30px -18px rgba(20, 32, 43, 0.35); }
.hero-search input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; background: transparent; font: inherit; font-size: var(--fs-base, 1rem); color: var(--ink); }
.hero-search input:focus-visible { outline: none; }
.hero-search:focus-within { box-shadow: var(--focus), 0 12px 30px -18px rgba(20, 32, 43, 0.35); }
.hero-search .btn { white-space: nowrap; }
.hero-trust { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.hero-trust a { color: var(--muted); }
@media (max-width: 520px) {
  .hero-search { flex-direction: column; border-radius: var(--radius-lg); }
  .hero-search .btn { width: 100%; }
}
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.steps h3 { margin: 10px 0 6px; font-size: var(--fs-lg); }
.steps p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.steps-cta { margin: 8px 0 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px; border-radius: var(--radius-lg); background: var(--accent); color: var(--on-accent); }
.cta-band h2 { margin: 0 0 6px; color: var(--on-accent); }
.cta-band p { margin: 0; max-width: 560px; color: var(--on-accent); opacity: 0.9; }
.cta-band .btn-primary { background: var(--on-accent); color: var(--accent); }
.cta-band .btn-primary:hover { background: var(--accent-pale); color: var(--accent-2); }