/* BodhiPep shared stylesheet. Every page links to this file. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ground: #FAF7F2;
  --surface: #FFFFFF;
  --line: #E4E0D8;
  --line-soft: #EEEAE3;
  --line-strong: #C9CFC8;
  --ink: #1A2018;
  --text-muted: #4F5A51;
  --moss: #3D5C42;
  --moss-dark: #2F4A34;
  --moss-tint: #EEF2EC;
  --gold: #C9A84C;
  --warn: #A03030;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1080px;

  /* Names the older page markup still refers to inline. */
  --bark: #1A2018;
  --muted: #4F5A51;
  --border: #E4E0D8;
  --border-gold: #E4E0D8;
  --gold-lt: #C9A84C;
  --gold-pale: #EEF2EC;
  --sand: #FFFFFF;
  --sand-lt: #FFFFFF;
  --cream: #FAF7F2;
  --moss-lt: #3D5C42;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--ground);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--moss); }
a:hover { color: var(--moss-dark); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--moss); color: #FFFFFF; }
.btn-primary:hover { background: var(--moss-dark); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--moss); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Shared pieces ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--moss);
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.page-title {
  font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
}
.h2-serif {
  font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.25rem);
}
.muted { color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.site-logo img { width: 32px; height: 32px; display: block; }
.site-logo span { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) {
  color: var(--text-muted); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a.is-current { color: var(--ink); border-bottom-color: var(--moss); }
.site-nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
@media (max-width: 820px) {
  .site-header-inner { flex-wrap: wrap; padding: 10px 16px; }
  .site-nav-toggle { display: inline-flex; }
  .site-nav.is-collapsible {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 0 8px; border-top: 1px solid var(--line-soft);
  }
  .site-nav.is-collapsible.open { display: flex; }
  .site-nav.is-collapsible a:not(.btn) { border-bottom: 1px solid var(--line-soft); min-height: 48px; }
  .site-nav.is-collapsible .btn { margin-top: 12px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-muted);
}
.site-footer .site-logo img { width: 24px; height: 24px; }
.site-footer .site-logo span { font-size: 20px; }
.site-footer-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.site-footer-links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Home page ---------- */
.home-hero { padding-top: 88px; padding-bottom: 64px; }
.home-hero-inner { max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
.home-lede { font-size: 19px; color: var(--text-muted); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fact-row { display: flex; gap: 16px; flex-wrap: wrap; padding-bottom: 72px; }
.fact { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.fact strong { font-size: 17px; font-weight: 600; }
.fact span { font-size: 15px; color: var(--text-muted); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.steps { display: flex; gap: 32px; flex-wrap: wrap; list-style: none; }
.steps li { flex: 1 1 260px; display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--moss-tint); color: var(--moss-dark);
  font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; font-size: 17px; }
.steps span { font-size: 15px; color: var(--text-muted); }
.split { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; padding-top: 72px; }
.split-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.contact-card { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.contact-card h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.contact-card p { font-size: 15px; color: var(--text-muted); }
@media (max-width: 600px) {
  .home-hero { padding-top: 56px; padding-bottom: 48px; }
  .fact-row { padding-bottom: 48px; }
  .band-inner { padding-top: 48px; padding-bottom: 48px; }
  .split { padding-top: 48px; }
}

/* ---------- Compound pages (existing markup, new look) ---------- */
.back-bar { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px 0; }
.back-bar a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; text-decoration: none;
}

.peptide-hero { padding: 12px 0 8px; }
.peptide-hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.peptide-category {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 10px;
}
.peptide-title {
  font-family: var(--serif); font-weight: 600; line-height: 1.05; color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 3.5rem); margin-bottom: 8px;
}
.peptide-title em { font-style: normal; }
.peptide-subtitle { font-size: 19px; color: var(--text-muted); margin-bottom: 14px; }
.peptide-code-badge {
  display: inline-block; padding: 4px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500;
}
.peptide-hero-desc { max-width: 720px; margin-top: 16px; font-size: 16px; color: var(--ink); }

.peptide-body {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 24px 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start;
}
@media (max-width: 860px) { .peptide-body { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.section-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.section-label { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
.section-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.section-divider { display: none; }
.section-block > div[style], .section-block > p[style] { font-size: 16px !important; }
.section-block > p[style] { font-size: 15px !important; }

.benefit-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.benefit-pill {
  padding: 4px 12px; background: var(--moss-tint); color: var(--moss-dark);
  border-radius: 999px; font-size: 14px; font-weight: 500;
}

.recon-title, .proto-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.recon-step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.recon-step:last-child { margin-bottom: 0; }
.recon-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--moss-tint); color: var(--moss-dark);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.recon-text { font-size: 16px; color: var(--ink); }

.dose-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dose-table th {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); padding: 10px 12px 10px 0; text-align: left;
}
.dose-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.dose-table th:last-child, .dose-table td:last-child { padding-right: 0; }
.dose-table td.units { font-weight: 600; color: var(--moss-dark); }

.proto-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.proto-key { font-size: 15px; color: var(--text-muted); flex-shrink: 0; }
.proto-val { font-size: 16px; font-weight: 500; color: var(--ink); text-align: right; }

.research-notice { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

.sidebar-card, .order-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.sidebar-card-title, .order-card-title { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--ink); margin-bottom: 10px; }
.order-card-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.btn-order, .btn-text-bodhi {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); font-size: 16px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; width: 100%;
}
.btn-order { background: var(--moss); color: #FFFFFF; margin-bottom: 10px; }
.btn-order:hover { background: var(--moss-dark); color: #FFFFFF; }
.btn-text-bodhi { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-text-bodhi:hover { border-color: var(--moss); color: var(--ink); }
.pairs-list { display: flex; flex-direction: column; }
.pair-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line-soft); text-decoration: none;
}
.pair-name { font-size: 16px; font-weight: 500; color: var(--moss); }
.pair-desc { font-size: 14px; color: var(--text-muted); }
.pair-arrow { color: var(--text-muted); }
.storage-note { font-size: 15px; color: var(--text-muted); }
.storage-note strong { color: var(--ink); }

@media (max-width: 600px) {
  .wrap, .site-footer-inner, .peptide-hero-inner, .peptide-body, .back-bar { padding-left: 16px; padding-right: 16px; }
  .section-block, .sidebar-card, .order-card, .card { padding: 20px; }
  .proto-row { flex-direction: column; gap: 2px; }
  .proto-val { text-align: left; }
}

/* Compound page variants */
.new-badge {
  display: inline-block; padding: 3px 10px; margin-left: 8px; vertical-align: middle;
  background: var(--moss-tint); color: var(--moss-dark); border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.dose-table tr.highlight td { background: var(--moss-tint); }
.dose-table tr.highlight td:first-child { padding-left: 10px; }
.order-card-price { font-size: 15px; font-weight: 500; color: var(--text-muted); margin-bottom: 16px; }

/* ---------- Member pages built by hand: Library, members home, FAQ, Terms ---------- */
.page-head { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.page-lede { font-size: 19px; color: var(--text-muted); max-width: 640px; }
.narrow { max-width: 760px; }
@media (max-width: 600px) { .page-head { padding-top: 36px; padding-bottom: 24px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.chip:hover { border-color: var(--moss); color: var(--ink); }

.lib-section { padding-top: 32px; scroll-margin-top: 80px; }
.lib-heading { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 16px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lib-card { display: flex; flex-direction: column; gap: 10px; }
.lib-name { font-size: 20px; font-weight: 600; line-height: 1.25; }
.lib-name a { color: var(--ink); text-decoration: none; }
.lib-name a:hover { color: var(--moss); }
.lib-sum { font-size: 15px; color: var(--text-muted); }
.lib-sizes { list-style: none; margin-top: 4px; }
.lib-sizes li > a, .lib-sizes li > div {
  display: flex; align-items: center; gap: 12px; min-height: 48px;
  border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none;
}
.lib-sizes li > a:hover .lib-size { color: var(--moss); text-decoration: underline; }
.lib-size { font-size: 16px; font-weight: 500; }
.lib-sku { font-size: 13px; color: var(--text-muted); letter-spacing: 0.04em; }
.lib-price { margin-left: auto; font-size: 16px; font-weight: 600; color: var(--moss-dark); }
.lib-guide {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft);
  font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: flex; align-items: center;
}
.lib-guide::after { content: "\2192"; margin-left: 8px; }
.lib-foot { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }

.notice-line {
  padding: 12px 16px; background: var(--moss-tint); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink); max-width: 760px;
}
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.hub-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.hub-link:hover { border-color: var(--moss); color: var(--ink); }
.hub-link strong { font-size: 18px; font-weight: 600; }
.hub-link span { font-size: 15px; color: var(--text-muted); }
.hub-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding-top: 16px; align-items: start; }
@media (max-width: 820px) { .hub-split { grid-template-columns: minmax(0, 1fr); } }
.hub-facts h2, .hub-contact h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.hub-facts dl > div { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.hub-facts dl > div:last-child { padding-bottom: 0; }
.hub-facts dt { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.hub-facts dd { font-size: 15px; color: var(--text-muted); }
.hub-contact { display: flex; flex-direction: column; gap: 12px; }
.hub-contact h2 { margin-bottom: 0; }
.hub-contact p { font-size: 15px; color: var(--text-muted); }
.hub-contact ul { list-style: none; font-size: 15px; margin-bottom: 4px; }
.hub-contact li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.hub-extra { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.hub-extra a { min-height: 44px; display: inline-flex; align-items: center; }

.faq-list { padding: 4px 24px; }
.faq-item { border-top: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--moss); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 18px; font-size: 16px; color: var(--text-muted); max-width: 620px; }
.faq-actions { padding-top: 24px; }

.prose h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 32px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { font-size: 16px; color: var(--text-muted); margin-bottom: 12px; }
.prose-key { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }
.prose-key p { color: var(--ink); margin: 0; }

/* Testing */
.test-body { padding-top: 0; }
.test-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.test-compound { font-size: 18px; font-weight: 600; }
.test-purity { display: flex; align-items: baseline; gap: 8px; }
.test-purity strong { font-size: 34px; font-weight: 600; color: var(--moss-dark); line-height: 1; }
.test-purity span { font-size: 15px; color: var(--text-muted); }
.test-key, .test-keybox { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.test-keybox {
  display: block; margin: 12px 0; padding: 12px 14px; background: var(--ground);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px;
}
.test-actions { margin-top: 20px; }
.test-para { margin-bottom: 18px; }
.test-note { margin: 18px 0; }

/* Member's tee */
.tee { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding-top: 48px; align-items: start; }
@media (max-width: 820px) { .tee { grid-template-columns: minmax(0, 1fr); padding-top: 28px; } }
.tee-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.tee-photos img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
.tee-copy { display: flex; flex-direction: column; gap: 16px; }
.tee-facts { padding: 4px 24px; }
.tee-facts .proto-row:first-child { border-top: 0; }
.tee-facts .proto-row { flex-direction: row; }
.tee-facts .proto-val { text-align: right; }
.tee-form { padding-top: 56px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.tee-embed { padding: 8px; min-height: 120px; }
