/* ======================================================================
   COMPOUND PAGES STYLESHEET
   Consistent with dark navy + Cormorant serif + Switzer body theme.
   Referenced from /compounds/<slug>.html as ./compounds.css
   ====================================================================== */

:root {
  --bg-body: #061127;
  --bg-surface: #0F1C35;
  --bg-surface-2: #142443;
  --border: rgba(184, 194, 212, 0.15);
  --border-strong: rgba(184, 194, 212, 0.3);
  --text: #F5F7FA;
  --text-muted: #B8C2D4;
  --text-faint: #6B7A99;
  --accent: #C9B37B;
  --accent-soft: rgba(201, 179, 123, 0.12);
  --danger: #E88B7A;
  --success: #7ADB9E;
  --tier-s: #FFD97A;
  --tier-a: #7ADB9E;
  --tier-b: #6EB8F5;
  --tier-c: #C9B37B;
  --tier-d: #B8A0C9;
  --font-display: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-body);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV (matches blog posts) ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 17, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 200ms ease;
}
.site-nav--scrolled { background: rgba(6, 17, 39, 0.97); }
.site-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.site-nav__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.site-nav__links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
  }
  .site-nav__links.open { display: flex; }
}

/* ===== COMPOUND PAGE LAYOUT ===== */
.compound-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.compound-page__inner { max-width: 780px; margin: 0 auto; }

/* ===== HERO ===== */
.compound-hero { margin-bottom: 3rem; }
.compound-hero__crumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}
.compound-hero__crumb a { color: var(--text-muted); }
.compound-hero__crumb .crumb-current { color: var(--text); }

.compound-hero__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
}
.tier-S { color: var(--tier-s); border-color: rgba(255, 217, 122, 0.4); }
.tier-A { color: var(--tier-a); border-color: rgba(122, 219, 158, 0.4); }
.tier-B { color: var(--tier-b); border-color: rgba(110, 184, 245, 0.4); }
.tier-C { color: var(--tier-c); border-color: rgba(201, 179, 123, 0.4); }
.tier-D { color: var(--tier-d); border-color: rgba(184, 160, 201, 0.4); }
.category-chip, .forsale-chip {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.forsale-chip {
  color: var(--success);
  border-color: rgba(122, 219, 158, 0.35);
}

.compound-hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5rem;
}
.compound-hero__alias {
  color: var(--text-faint);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.compound-hero__tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}
.compound-hero__tier-explainer {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tier-explainer-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}
.compound-hero__enquire {
  display: inline-block;
  margin-top: 1.5rem;
  background: #25D366;
  color: #062A17;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: background 200ms ease;
}
.compound-hero__enquire:hover { background: #1CB955; text-decoration: none; }

/* ===== SECTIONS ===== */
.compound-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.compound-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1.25rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
}
.compound-section p { color: var(--text-muted); margin: 0 0 1rem; }
.compound-section p:last-child { margin-bottom: 0; }
.compound-section ul { padding-left: 1.5rem; color: var(--text-muted); }
.compound-section ul li { margin-bottom: 0.5rem; line-height: 1.6; }

/* ===== TABLES ===== */
.compound-facts, .proto-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
}
.compound-facts th, .compound-facts td,
.proto-table th, .proto-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.compound-facts th {
  color: var(--text-faint);
  font-weight: 600;
  width: 30%;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.compound-facts td { color: var(--text); }
.proto-table th {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}
.proto-table td { color: var(--text-muted); }
.proto-table .proto-level { color: var(--accent); font-weight: 600; }
.proto-fine {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 1rem;
  font-style: italic;
}

/* ===== SYNERGIES ===== */
.syn-list {
  list-style: none;
  padding: 0;
}
.syn-list li {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.syn-list li strong { color: var(--text); }
.syn-strength {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
}
.syn-high { background: rgba(122, 219, 158, 0.15); color: var(--success); }
.syn-moderate { background: rgba(201, 179, 123, 0.15); color: var(--accent); }
.syn-low, .syn-caution { background: rgba(232, 139, 122, 0.15); color: var(--danger); }

/* ===== MYTHS ===== */
.myth-item {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--danger);
  border-radius: 0 12px 12px 0;
  margin-bottom: 1rem;
}
.myth-myth {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.myth-reality {
  color: var(--text);
  font-size: 0.95rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.myth-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--danger);
  margin-right: 0.5rem;
}
.myth-tag--reality { color: var(--success); }

/* ===== BIOMARKERS ===== */
.biomarker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.biomarker-chip {
  padding: 0.4rem 0.85rem;
  background: rgba(201, 179, 123, 0.1);
  border: 1px solid rgba(201, 179, 123, 0.25);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
}

/* ===== PUBMED ===== */
.pubmed-list {
  list-style: none;
  padding: 0;
}
.pubmed-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pubmed-list li:last-child { border-bottom: 0; }
.pubmed-list li strong { color: var(--accent); }
.pubmed-list li em { color: var(--text-faint); }

/* ===== FAQS ===== */
.compound-faqs { display: flex; flex-direction: column; gap: 1rem; }
.compound-faq {
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.compound-faq__q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.compound-faq__a {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== RELATED COMPOUNDS ===== */
.related-compounds {
  max-width: 1080px;
  margin: 3rem auto 0;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.related-compounds__inner { max-width: 900px; margin: 0 auto; }
.related-compounds__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.related-compounds__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 2rem;
  line-height: 1.15;
}
.related-compounds__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .related-compounds__grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.related-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.related-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.related-card__topic {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.related-card__cta {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== LEAD MAGNET (reused from blog.css) ===== */
.blog-lead-magnet {
  background: linear-gradient(180deg, rgba(201, 179, 123, 0.03) 0%, rgba(201, 179, 123, 0.06) 100%);
  border-top: 1px solid rgba(201, 179, 123, 0.15);
  border-bottom: 1px solid rgba(201, 179, 123, 0.15);
  padding: 4rem 1.5rem;
  max-width: 1080px;
  margin: 3rem auto;
  border-radius: 20px;
}
.blog-lead-magnet__inner { max-width: 720px; margin: 0 auto; }
.blog-lead-magnet__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.blog-lead-magnet__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.15;
}
.blog-lead-magnet__body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}
.blog-lead-magnet__form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  flex-wrap: wrap;
}
.blog-lead-magnet__form input[type="email"] {
  flex: 1;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 200ms ease;
}
.blog-lead-magnet__form input[type="email"]:focus {
  border-color: var(--accent);
}
.blog-lead-magnet__submit {
  background: var(--accent);
  color: #062A17;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  transition: background 200ms ease;
}
.blog-lead-magnet__submit:hover { background: #D6C08A; }
.blog-lead-magnet__submit[disabled] { opacity: 0.55; cursor: wait; }
.blog-lead-magnet__status {
  font-size: 0.85rem;
  margin: 1rem 0 0;
  min-height: 1.2em;
}
.blog-lead-magnet__status.is-error { color: var(--danger); }
.blog-lead-magnet__status.is-success { color: var(--success); }
.blog-lead-magnet__fine {
  color: var(--text-faint);
  font-size: 0.75rem;
  margin: 1.25rem 0 0;
}

/* ===== BOTTOM CTAs ===== */
.library-cta-wrap {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.library-cta, .whatsapp-cta {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid rgba(201, 179, 123, 0.35);
  color: var(--accent);
  transition: background 200ms ease;
}
.library-cta:hover { background: rgba(201, 179, 123, 0.08); text-decoration: none; }
.whatsapp-cta {
  background: #25D366;
  color: #062A17;
  border-color: #25D366;
}
.whatsapp-cta:hover { background: #1CB955; text-decoration: none; }

/* ===== FOOTER MATCHING ===== */
.site-footer {
  background: #030913;
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.footer-brand__tag {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-bottom {
  padding-top: 2rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}
.footer-bottom__disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.benefits-list li, .gaps-list li { line-height: 1.6; }
.gaps-list li { color: var(--text-muted); }
