/* ======================================================================
   ModernPeptideScience — design system v2
   Inspirations: peptides.org clarity, Cleveland Clinic authority,
   Rolls-Royce minimalism. Light-first with refined dark mode.
   ====================================================================== */

:root {
  /* Color — light */
  --bg:           #fbfaf6;
  --bg-soft:      #f3eee2;
  --bg-card:      #ffffff;
  --bg-elev:      #ffffff;
  --text:         #18202e;
  --text-mute:    #5a6275;
  --text-soft:    #8089a0;
  --line:         #e8e2d3;
  --line-strong:  #d4cdba;
  --accent:       #14385c;          /* deep medical navy */
  --accent-2:     #5e87b8;          /* lighter navy */
  --accent-warm:  #a07a3f;          /* refined gold */
  --accent-warm-soft: #f3e9d4;
  --pos:          #2f6c4a;          /* moss green for positive */
  --pos-soft:     #e3efe2;
  --warn:         #8a4a1f;          /* burnt sienna for warn */
  --warn-soft:    #f7ead9;
  --neutral:      #4a566f;
  --neutral-soft: #ebeadf;
  --shadow:       0 1px 2px rgba(20,40,80,.04), 0 6px 24px rgba(20,40,80,.06);
  --shadow-lg:    0 1px 3px rgba(20,40,80,.06), 0 18px 60px rgba(20,40,80,.10);
  --focus:        2px solid var(--accent);
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  /* Typography */
  --ff-serif: "Iowan Old Style", "Charter", "Source Serif 4", "Cambria", Georgia, serif;
  --ff-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "SF Pro Text", "Inter", system-ui, sans-serif;
  --ff-mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale */
  --t-xs:   .8125rem;
  --t-sm:   .9375rem;
  --t-base: 1.0625rem;
  --t-md:   1.1875rem;
  --t-lg:   1.375rem;
  --t-xl:   1.625rem;
  --t-2xl:  2.125rem;
  --t-3xl:  2.625rem;
  --t-4xl:  3.5rem;
  --t-5xl:  4.5rem;

  --lh-tight: 1.18;
  --lh-snug:  1.35;
  --lh-body:  1.65;
  --lh-loose: 1.8;

  /* Spacing scale (rem) */
  --s-1:  .25rem;
  --s-2:  .5rem;
  --s-3:  .75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  --container: 76rem;
  --container-wide: 84rem;
  --container-narrow: 56rem;
}

/* Follow visitor system preference; explicit toggle (html[data-theme]) overrides.
   Light is the fallback default when no preference is detected. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0c1119;
    --bg-soft:      #131a26;
    --bg-card:      #1a2231;
    --bg-elev:      #20293a;
    --text:         #e6e2d6;
    --text-mute:    #9aa2b6;
    --text-soft:    #6f7791;
    --line:         #2a3145;
    --line-strong:  #3a4259;
    --accent:       #7eb0e0;
    --accent-2:     #4d7ba9;
    --accent-warm:  #d6b277;
    --accent-warm-soft: #2e2719;
    --pos:          #7fc69b;
    --pos-soft:     #1d2b22;
    --warn:         #d49567;
    --warn-soft:    #2a1e14;
    --neutral:      #8a93ad;
    --neutral-soft: #1f2533;
    --shadow:       0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg:    0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
  }
}

html[data-theme="dark"] {
  --bg:           #0c1119;
  --bg-soft:      #131a26;
  --bg-card:      #1a2231;
  --bg-elev:      #20293a;
  --text:         #e6e2d6;
  --text-mute:    #9aa2b6;
  --text-soft:    #6f7791;
  --line:         #2a3145;
  --line-strong:  #3a4259;
  --accent:       #7eb0e0;
  --accent-2:     #4d7ba9;
  --accent-warm:  #d6b277;
  --accent-warm-soft: #2e2719;
  --pos:          #7fc69b;
  --pos-soft:     #1d2b22;
  --warn:         #d49567;
  --warn-soft:    #2a1e14;
  --neutral:      #8a93ad;
  --neutral-soft: #1f2533;
  --shadow:       0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:    0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
}
html[data-theme="light"] {
  --bg:           #fbfaf6;
  --bg-soft:      #f3eee2;
  --bg-card:      #ffffff;
  --bg-elev:      #ffffff;
  --text:         #18202e;
  --text-mute:    #5a6275;
  --text-soft:    #8089a0;
  --line:         #e8e2d3;
  --line-strong:  #d4cdba;
  --accent:       #14385c;
  --accent-2:     #5e87b8;
  --accent-warm:  #a07a3f;
  --accent-warm-soft: #f3e9d4;
  --pos:          #2f6c4a;
  --pos-soft:     #e3efe2;
  --warn:         #8a4a1f;
  --warn-soft:    #f7ead9;
  --neutral:      #4a566f;
  --neutral-soft: #ebeadf;
  --shadow:       0 1px 2px rgba(20,40,80,.04), 0 6px 24px rgba(20,40,80,.06);
  --shadow-lg:    0 1px 3px rgba(20,40,80,.06), 0 18px 60px rgba(20,40,80,.10);
}

/* ===== Reset / base ===== */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  margin:0;
  font-family: var(--ff-sans);
  font-size: var(--t-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Subtle molecular line-art background — only on body, very faint */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><g fill='none' stroke='%2314385c' stroke-width='.6' stroke-linecap='round' opacity='.05'><circle cx='40' cy='40' r='3'/><circle cx='100' cy='40' r='3'/><circle cx='160' cy='40' r='3'/><circle cx='220' cy='40' r='3'/><path d='M40 40 L70 25 L100 40 L130 55 L160 40 L190 25 L220 40'/><path d='M70 25 L70 10 M130 55 L130 70 M190 25 L190 10'/><circle cx='40' cy='140' r='3'/><circle cx='100' cy='140' r='3'/><circle cx='160' cy='140' r='3'/><circle cx='220' cy='140' r='3'/><path d='M40 140 L70 125 L100 140 L130 155 L160 140 L190 125 L220 140'/><path d='M70 125 L70 110 M130 155 L130 170 M190 125 L190 110'/><circle cx='40' cy='240' r='3'/><circle cx='100' cy='240' r='3'/><circle cx='160' cy='240' r='3'/><circle cx='220' cy='240' r='3'/><path d='M40 240 L70 225 L100 240 L130 255 L160 240 L190 225 L220 240'/></g></svg>");
  background-repeat: repeat;
  opacity: .55;
}
html[data-theme="dark"] body::before { opacity: .35; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><g fill='none' stroke='%237eb0e0' stroke-width='.6' stroke-linecap='round' opacity='.18'><circle cx='40' cy='40' r='3'/><circle cx='100' cy='40' r='3'/><circle cx='160' cy='40' r='3'/><circle cx='220' cy='40' r='3'/><path d='M40 40 L70 25 L100 40 L130 55 L160 40 L190 25 L220 40'/><path d='M70 25 L70 10 M130 55 L130 70 M190 25 L190 10'/><circle cx='40' cy='140' r='3'/><circle cx='100' cy='140' r='3'/><circle cx='160' cy='140' r='3'/><circle cx='220' cy='140' r='3'/><path d='M40 140 L70 125 L100 140 L130 155 L160 140 L190 125 L220 140'/><path d='M70 125 L70 110 M130 155 L130 170 M190 125 L190 110'/><circle cx='40' cy='240' r='3'/><circle cx='100' cy='240' r='3'/><circle cx='160' cy='240' r='3'/><circle cx='220' cy='240' r='3'/><path d='M40 240 L70 225 L100 240 L130 255 L160 240 L190 225 L220 240'/></g></svg>"); }
main, header, footer { position: relative; z-index: 1; }

img, svg, video { max-width:100%; height:auto; display:block; }
a {
  color: var(--accent);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { text-decoration: underline; color: var(--accent-warm); }
a:focus-visible { outline: var(--focus); outline-offset:3px; border-radius: 2px; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-serif);
  font-weight: 600;
  color: var(--text);
  line-height: var(--lh-tight);
  letter-spacing: -.012em;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(var(--t-3xl), 4.4vw, var(--t-5xl)); letter-spacing: -.022em; }
h2 { font-size: clamp(var(--t-xl), 2.6vw, var(--t-3xl)); letter-spacing: -.018em; margin-top: var(--s-7); }
h3 { font-size: var(--t-lg); margin-top: var(--s-5); }
h4 { font-size: var(--t-md); margin-top: var(--s-5); }
h5 { font-size: var(--t-base); }

p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.4em; }
li { margin-bottom: var(--s-2); }
li > ul, li > ol { margin-top: var(--s-2); }
strong { color: var(--text); font-weight: 600; }
em { font-style: italic; color: inherit; }
small, .tiny { font-size: var(--t-xs); }
.mute { color: var(--text-mute); }
.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: var(--t-xs);
  color: var(--accent-warm);
  font-weight: 600;
  margin-bottom: var(--s-3);
  display: block;
}
.lead {
  font-family: var(--ff-serif);
  font-size: clamp(var(--t-md), 2.1vw, var(--t-xl));
  line-height: var(--lh-snug);
  color: var(--text);
  font-weight: 400;
  letter-spacing: -.01em;
}
.kicker {
  display: inline-block;
  padding: .15em .6em;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 999px;
  background: var(--accent-warm-soft);
  color: var(--accent-warm);
}

/* ===== Layout primitives ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

main {
  padding: var(--s-7) var(--s-5) var(--s-9);
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 720px) {
  main { padding-left: var(--s-6); padding-right: var(--s-6); }
}

section { margin-bottom: var(--s-7); }

/* ===== Disclaimer banner ===== */
.site-disclaimer {
  background: var(--accent-warm-soft);
  color: var(--text);
  font-size: var(--t-xs);
  text-align: center;
  padding: .55em var(--s-5);
  border-bottom: 1px solid var(--line);
}
.site-disclaimer a { color: var(--accent); text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--s-3) var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--text);
  font-family: var(--ff-serif);
  letter-spacing: -.012em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand__name {
  font-size: var(--t-md);
  font-weight: 600;
}
.brand__name em { font-style: italic; font-weight: 500; color: var(--accent); }

.primary {
  margin-left: auto;
  display: flex;
  gap: var(--s-5);
  align-items: center;
}
.primary a {
  color: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  position: relative;
  padding: .35em 0;
}
.primary a:hover { color: var(--accent); text-decoration: none; }
.primary a.active { color: var(--accent); }
.primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -.55em;
  height: 2px;
  background: var(--accent-warm);
  border-radius: 2px;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
  padding: .4em .85em;
  font-size: var(--t-sm);
  cursor: pointer;
  transition: all .15s ease;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; }

/* Theme toggle: pill with sun (light theme) and moon (dark theme) */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
  padding: .35em .55em;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .15s ease;
  flex: none;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-soft);
}
.theme-toggle:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.theme-toggle__icon {
  width: 18px; height: 18px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.6) rotate(-90deg);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
/* Default (light theme): show sun, hide moon */
.theme-toggle__sun { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.theme-toggle__moon { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(90deg); }
/* Dark theme: hide sun, show moon */
html[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(90deg); }
html[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
/* When no explicit theme has been chosen, follow system preference for the toggle icon */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle__sun { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(90deg); }
  html:not([data-theme]) .theme-toggle__moon { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}

/* ===== Search input (peptide hub) ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .35em .35em .35em 1.2em;
  max-width: 36rem;
  margin: var(--s-5) 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.search-bar svg {
  width: 18px; height: 18px;
  color: var(--text-mute);
  flex: none;
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--t-sm);
  color: var(--text);
  padding: .55em 0;
  outline: none;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-soft); }
.search-bar__hint {
  font-size: var(--t-xs);
  color: var(--text-soft);
  padding: .2em .65em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  font-family: var(--ff-mono);
  flex: none;
}
.search-results-count {
  font-size: var(--t-sm);
  color: var(--text-mute);
  margin: 0 0 var(--s-4);
}
[hidden] { display: none !important; }

/* ===== Table of contents (article aside) ===== */
.toc {
  margin: 0 0 var(--s-4);
}
.toc__title {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  font-weight: 700;
  margin: 0 0 var(--s-3);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  border-left: 2px solid var(--line);
}
.toc li {
  margin: 0;
  padding: 0;
  border: 0;
  counter-increment: toc;
}
.toc__link {
  display: block;
  padding: .35em .75em .35em var(--s-4);
  font-size: var(--t-xs);
  color: var(--text-mute);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  line-height: 1.4;
  transition: color .15s ease, border-color .15s ease;
}
.toc__link:hover { color: var(--accent); text-decoration: none; }
.toc__link--active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

/* ===== Section heading accents (line-art) ===== */
.section-heading {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
}
.section-heading h2 {
  margin: 0;
  flex: 1;
}
.section-heading__icon {
  width: 32px;
  height: 32px;
  color: var(--accent-warm);
  flex: none;
  opacity: .85;
}

/* Decorative section divider (faint helix arc) — used between large sections */
.section-divider {
  height: 32px;
  margin: var(--s-7) auto;
  max-width: 240px;
  color: var(--accent-warm);
  opacity: .35;
}
.section-divider svg { width: 100%; height: 100%; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .primary {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-3) var(--s-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .primary a {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
  }
  .primary a.active::after { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: var(--s-7) 0 var(--s-6);
}
.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { max-width: 38ch; margin-bottom: var(--s-5); }
.hero--home {
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
  text-align: left;
  position: relative;
}
.hero--home h1 {
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  letter-spacing: -.028em;
  line-height: 1.05;
  max-width: 18ch;
  font-weight: 600;
}
.hero--home .lead {
  max-width: 56ch;
  font-size: clamp(var(--t-md), 2vw, var(--t-xl));
  margin-top: var(--s-5);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  transition: all .18s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--ff-sans);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20,40,80,.18);
}
.btn--primary:hover {
  background: #0d2b48;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20,40,80,.18);
}
html[data-theme="dark"] .btn--primary { background: var(--accent); color: #0c1119; }
html[data-theme="dark"] .btn--primary:hover { background: #a0c5e6; color: #0c1119; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn--warm { background: var(--accent-warm); color: #fff; }
.btn--warm:hover { background: #886230; color:#fff; text-decoration:none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Sections ===== */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-4);
}
.section-head h2 { margin: 0; }
.section-head__meta { color: var(--text-mute); font-size: var(--t-sm); }

/* ===== Cards: peptide cards ===== */
.peptide-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.peptide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
  min-height: 175px;
}
.peptide-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  opacity: 0;
  transition: opacity .18s ease;
}
.peptide-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.peptide-card:hover::before { opacity: 1; }
.peptide-card h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.01em;
}
.peptide-card__tag {
  font-size: var(--t-sm);
  color: var(--accent);
  margin: 0 0 var(--s-3);
  font-weight: 500;
}
.peptide-card__uses {
  color: var(--text-mute);
  font-size: var(--t-xs);
  margin: 0;
  flex: 1;
}
.peptide-card__foot {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.peptide-card__cta {
  font-size: var(--t-xs);
  color: var(--accent);
  font-weight: 600;
}

/* ---- Category accent card (decorative) ---- */
.peptide-card--accent {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-card) 100%);
  border-style: dashed;
  border-color: var(--line-strong);
  align-items: stretch;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.peptide-card--accent::before { display: none; }
.peptide-card--accent:hover {
  border-style: solid;
  border-color: var(--accent);
  background: var(--bg-card);
}
.peptide-card--accent:hover .accent-art { color: var(--accent); }

.accent-art {
  width: 100%;
  height: 70px;
  margin-bottom: var(--s-3);
  color: var(--accent-warm);
  opacity: .7;
  transition: color .2s ease, opacity .2s ease;
}
.peptide-card--accent:hover .accent-art { opacity: 1; }

.accent-eyebrow {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-warm);
  font-weight: 700;
  margin: 0 0 var(--s-2);
}

.accent-title {
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 var(--s-2);
  color: var(--text);
}

.accent-body {
  font-size: var(--t-xs);
  color: var(--text-mute);
  margin: 0;
  flex: 1;
  line-height: 1.55;
}

.accent-cta {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Evidence chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3em .75em;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip--strong { background: var(--pos-soft); color: var(--pos); }
.chip--mod    { background: var(--accent-warm-soft); color: var(--accent-warm); }
.chip--low    { background: var(--neutral-soft); color: var(--neutral); }
.chip::before {
  content: "";
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}

/* Categories strip */
.category-strip {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  margin-top: var(--s-6);
}
.category-strip a {
  display: block;
  padding: var(--s-5) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .15s ease;
}
.category-strip a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-soft);
  text-decoration: none;
  transform: translateY(-2px);
}
.category-strip__icon {
  width: 28px; height: 28px;
  margin-bottom: var(--s-3);
  color: var(--accent);
}
.category-strip__title {
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  font-weight: 600;
  margin: 0 0 var(--s-1);
  letter-spacing: -.01em;
}
.category-strip__count {
  font-size: var(--t-xs);
  color: var(--text-mute);
}

/* Three-col / feature row */
.three-col {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  margin: var(--s-7) 0;
}
.three-col__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
}
.three-col__item h3 {
  font-size: var(--t-md);
  margin-top: 0;
}
.three-col__item p {
  color: var(--text-mute);
  font-size: var(--t-sm);
}
.three-col__item a {
  font-weight: 600;
  font-size: var(--t-sm);
}

/* Tier explainer */
.tier-row {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: var(--s-5) 0;
}
.tier {
  padding: var(--s-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.tier strong {
  font-family: var(--ff-serif);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -.01em;
}
.tier span {
  color: var(--text-mute);
  font-size: var(--t-sm);
}
.tier--strong { border-top: 3px solid var(--pos); }
.tier--strong strong { color: var(--pos); }
.tier--mod    { border-top: 3px solid var(--accent-warm); }
.tier--mod strong    { color: var(--accent-warm); }
.tier--low    { border-top: 3px solid var(--neutral); }
.tier--low strong    { color: var(--neutral); }

/* ===== Quick summary panel ===== */
.quick-summary {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
}
.quick-summary h2 {
  font-size: var(--t-md);
  margin-top: 0;
  font-family: var(--ff-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.quick-summary p { margin-bottom: var(--s-3); }
.quick-summary p:last-child { margin-bottom: 0; }
.quick-summary ul { margin: var(--s-2) 0; }
.quick-summary li { margin-bottom: var(--s-1); }

/* ===== Evidence boxes ===== */
.evidence-box {
  margin: var(--s-5) 0;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
}
.evidence-box h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.evidence-label::before {
  content: "";
  display: inline-block;
  width: .5em; height: .5em;
  border-radius: 50%;
  margin-right: .55em;
  vertical-align: middle;
  background: currentColor;
}
.evidence-box--human {
  background: var(--pos-soft);
  border-left: 3px solid var(--pos);
}
.evidence-box--human h3 { color: var(--pos); }
.evidence-box--animal {
  background: var(--accent-warm-soft);
  border-left: 3px solid var(--accent-warm);
}
.evidence-box--animal h3 { color: var(--accent-warm); }
.evidence-box--anecdotal {
  background: var(--neutral-soft);
  border-left: 3px solid var(--neutral);
}
.evidence-box--anecdotal h3 { color: var(--neutral); }
.evidence-box--warn {
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
}
.evidence-box--warn h3 { color: var(--warn); }
.evidence-box ul { margin-bottom: 0; }

/* ===== Tables ===== */
.table-wrap {
  overflow-x: auto;
  margin: var(--s-5) 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
thead { background: var(--bg-soft); }
th, td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
}
tbody tr:last-child td { border-bottom: 0; }
.verdict--supported { color: var(--pos); font-weight: 600; }
.verdict--mixed { color: var(--accent-warm); font-weight: 600; }
.verdict--unsupported { color: var(--warn); font-weight: 600; }

/* ===== FAQ ===== */
.faq h2 { font-family: var(--ff-serif); }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 0;
  margin-bottom: var(--s-3);
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 600;
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  color: var(--text);
  transition: color .15s ease;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 1.5em;
  line-height: 1;
  color: var(--accent);
  transition: transform .25s ease;
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--accent); }
.faq details > div {
  padding: 0 var(--s-5) var(--s-4);
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  color: var(--text);
}

/* ===== References ===== */
.references {
  border-top: 1px solid var(--line);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
}
.references h2 {
  font-size: var(--t-lg);
  font-family: var(--ff-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 0;
}
.references ol {
  font-size: var(--t-sm);
  color: var(--text-mute);
  padding-left: 1.4em;
}
.references li { margin-bottom: var(--s-2); }
.references a { word-break: break-all; }

sup.cite {
  font-size: .68em;
  vertical-align: super;
  margin-left: .15em;
}
sup.cite a {
  color: var(--accent-warm);
  text-decoration: none;
  padding: 0 .25em;
  border-radius: 3px;
}
sup.cite a:hover {
  background: var(--accent-warm-soft);
  text-decoration: none;
}

/* ===== Article layout (sidebar) ===== */
.article-layout {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 1020px) {
  .article-layout { grid-template-columns: 1fr 17rem; }
}
.article-body { min-width: 0; }
.article-aside {
  position: sticky;
  top: 92px;
  align-self: start;
  font-size: var(--t-sm);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  height: fit-content;
}
.article-aside h4 {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  margin-top: var(--s-4);
  margin-bottom: var(--s-2);
  font-weight: 700;
}
.article-aside h4:first-child { margin-top: 0; }
.article-aside ul { list-style: none; padding: 0; margin: 0; }
.article-aside li {
  margin-bottom: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.article-aside li:last-child { border-bottom: 0; }
.article-aside a { color: var(--text); font-weight: 500; }
.article-aside a:hover { color: var(--accent); }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: var(--t-xs);
  color: var(--text-mute);
  margin-bottom: var(--s-4);
  letter-spacing: .02em;
}
.breadcrumbs a { color: var(--text-mute); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .65em; color: var(--text-soft); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 500; }

/* Meta row on hero (chips, etc.) */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin: var(--s-3) 0 var(--s-4);
}

/* Author byline + updated date — E-E-A-T signal */
.byline {
  font-size: var(--t-xs);
  color: var(--text-mute);
  font-family: var(--ff-sans);
  letter-spacing: .02em;
}
.byline a { color: var(--text-mute); text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.byline a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.byline time { color: var(--text-soft); }

/* ===== Featured / preview ===== */
.featured {
  margin: var(--s-7) 0;
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured h2 { margin-top: 0; }

.preview-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--s-5);
}
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: all .18s ease;
}
.preview-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.preview-card h3 {
  font-size: var(--t-md);
  margin: 0;
  letter-spacing: -.005em;
}
.preview-card p {
  margin: 0;
  color: var(--text-mute);
  font-size: var(--t-sm);
}
.preview-card .read-more {
  margin-top: auto;
  padding-top: var(--s-3);
  font-size: var(--t-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

/* ===== Methodology strip / pull-quote ===== */
.methodology-strip {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  margin: var(--s-7) 0;
}
.methodology-strip h2 { margin-top: 0; }

.pullquote {
  font-family: var(--ff-serif);
  font-size: clamp(var(--t-lg), 2.2vw, var(--t-2xl));
  line-height: 1.35;
  color: var(--text);
  border-left: 3px solid var(--accent-warm);
  padding: var(--s-3) var(--s-5);
  margin: var(--s-6) 0;
  font-style: italic;
}
.pullquote cite {
  display: block;
  font-family: var(--ff-sans);
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--text-mute);
  margin-top: var(--s-3);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== Stats / definition rows ===== */
.fact-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: var(--s-5) 0;
}
.fact {
  padding: var(--s-4) var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.fact dt {
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  margin-bottom: var(--s-1);
}
.fact dd {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
}

/* ===== Callouts ===== */
.callout {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0;
  border-left: 3px solid var(--accent-warm);
}
.callout h3 {
  margin-top: 0;
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-warm);
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: var(--s-10);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: var(--s-9) var(--s-5) var(--s-6);
  position: relative;
  z-index: 2;
}
.site-footer__grid {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s-7) var(--s-6); }
}

/* Brand column */
.site-footer__brand .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  text-decoration: none;
}
.site-footer__brand .brand:hover { text-decoration: none; color: var(--text); }
.site-footer__tagline {
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--text-mute);
  margin: 0 0 var(--s-4);
  max-width: 36ch;
}
.site-footer__updated {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  margin: 0;
  padding: var(--s-2) 0;
  font-size: var(--t-xs);
  color: var(--text-soft);
  border-top: 1px dashed var(--line);
  padding-top: var(--s-3);
  font-family: var(--ff-sans);
}
.site-footer__updated-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--text-mute);
  font-size: 11px;
}
.site-footer__updated time { color: var(--text); font-weight: 500; }

/* Column headings */
.site-footer h4 {
  font-family: var(--ff-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-mute);
  font-weight: 700;
  margin: 0 0 var(--s-3);
}

/* Lists */
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.site-footer li { margin: 0; }
.site-footer a {
  color: var(--text);
  font-size: var(--t-sm);
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
}
.site-footer__more {
  display: inline-block;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--line);
  color: var(--accent) !important;
  font-weight: 600;
  font-size: var(--t-xs) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-footer__more:hover { color: var(--accent-warm) !important; }

/* Disclaimer paragraph */
.site-footer__disclaimer {
  max-width: var(--container-wide);
  margin: var(--s-7) auto 0;
  padding: var(--s-5) 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--text-mute);
  line-height: 1.65;
}

/* Bottom bar */
.site-footer__bottom {
  max-width: var(--container-wide);
  margin: var(--s-5) auto 0;
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--t-xs);
  color: var(--text-soft);
}
.site-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.site-footer__top {
  color: var(--text-mute);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: .35em .9em;
  border-radius: 999px;
  transition: all .15s ease;
}
.site-footer__top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
}

/* ===== Research library ===== */
.research-category { margin-bottom: var(--s-7); }
.research-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: var(--s-3);
  padding: 0;
}
.research-group summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  font-weight: 600;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: var(--s-4);
}
.research-group summary > .research-group__meta {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: right;
  white-space: nowrap;
}
.research-group summary > .research-group__meta a {
  color: var(--accent);
  margin-left: .25em;
}
.research-group summary::-webkit-details-marker { display: none; }
.research-group summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.5em;
  line-height: 1;
}
.research-group[open] summary::after { content: "−"; }
.research-group ol {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-7);
  font-size: var(--t-sm);
  color: var(--text-mute);
}
.research-group li { margin-bottom: var(--s-2); }

/* ===== Application / category blocks (legacy — retained for any older usage) ===== */
.application-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-6);
}
.application-block:last-child { border-bottom: 0; }
.application-block h2 {
  margin-top: 0;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.application-block ul { margin-top: var(--s-3); }

/* ===== Application card deck (Peptides by Goal page) ===== */
.application-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin: var(--s-5) 0 var(--s-7);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent-warm);
  border-radius: var(--radius);
}
.application-stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 9rem;
}
.application-stats__num {
  font-family: var(--ff-serif);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.application-stats__label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  font-weight: 600;
}

.application-deck {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  margin-top: var(--s-6);
}
@media (min-width: 640px) {
  .application-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .application-deck { grid-template-columns: repeat(3, 1fr); }
}

.application-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.application-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  opacity: 0;
  transition: opacity .2s ease;
}
.application-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.application-card:hover::before { opacity: 1; }

.application-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-4);
}
.application-card__icon {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--accent-warm);
  opacity: .9;
}
.application-card__head-text { flex: 1; min-width: 0; }
.application-card__title {
  font-family: var(--ff-serif);
  font-size: var(--t-xl);
  font-weight: 600;
  margin: 0 0 var(--s-2);
  letter-spacing: -.012em;
  line-height: 1.2;
  color: var(--text);
}
.application-card__evidence {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25em .75em;
  border-radius: 999px;
  white-space: nowrap;
}
.application-card__evidence::before {
  content: "";
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
/* Application evidence reference table */
.application-evidence-table {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
}
.application-evidence-table h2 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-serif);
  font-size: var(--t-xl);
}
.application-evidence-table > p {
  margin: 0 0 var(--s-5);
  color: var(--text-muted);
  line-height: 1.6;
}
.application-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.application-evidence-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .application-evidence-row {
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: var(--s-4);
    align-items: baseline;
  }
}
.application-evidence-goal {
  font-weight: 600;
  color: var(--text);
  font-size: var(--t-sm);
}
.application-evidence-peptide {
  color: var(--text);
  font-size: var(--t-sm);
  line-height: 1.7;
}
.application-evidence-peptide a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.application-evidence-peptide a:hover {
  border-bottom-color: var(--accent);
}

.application-card__evidence--strong { background: var(--pos-soft); color: var(--pos); }
.application-card__evidence--mod    { background: var(--accent-warm-soft); color: var(--accent-warm); }
.application-card__evidence--low    { background: var(--neutral-soft); color: var(--neutral); }
.application-card__evidence--mixed  { background: var(--warn-soft); color: var(--warn); }

.application-card__lead {
  font-size: var(--t-sm);
  color: var(--text-mute);
  line-height: 1.6;
  margin: 0 0 var(--s-4);
}

.application-card__peptides {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.application-card__peptides li {
  margin: 0;
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--line);
}
.application-card__peptides li:first-child { padding-top: 0; }
.application-card__peptides li:last-child { border-bottom: 0; padding-bottom: 0; }

.application-card__peptide-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  transition: color .15s ease;
}
.application-card__peptide-link:hover { color: var(--accent); text-decoration: none; }
.application-card__peptide-link:hover .application-card__peptide-name { color: var(--accent); }
.application-card__peptide-name {
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--text);
  transition: color .15s ease;
}
.application-card__peptide-summary {
  font-size: var(--t-xs);
  color: var(--text-mute);
  line-height: 1.5;
}

.application-card__footer {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.application-card__cta {
  font-weight: 600;
  font-size: var(--t-sm);
  color: var(--accent);
  text-decoration: none;
}
.application-card__cta:hover { color: var(--accent-warm); text-decoration: underline; }
.application-card__count {
  font-size: var(--t-xs);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* ===== Peptide hub category sections ===== */
.peptide-category { margin-bottom: var(--s-7); }
.peptide-category h2 {
  font-family: var(--ff-serif);
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-3);
}
.peptide-category h2 .count {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: .04em;
}

/* ===== Newsletter strip ===== */
.newsletter {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6);
  margin: var(--s-7) 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><g fill='none' stroke='%23ffffff' stroke-width='.6' stroke-linecap='round' opacity='.07'><circle cx='40' cy='40' r='3'/><circle cx='100' cy='40' r='3'/><circle cx='160' cy='40' r='3'/><circle cx='220' cy='40' r='3'/><path d='M40 40 L70 25 L100 40 L130 55 L160 40 L190 25 L220 40'/><path d='M70 25 L70 10 M130 55 L130 70 M190 25 L190 10'/><circle cx='40' cy='140' r='3'/><circle cx='100' cy='140' r='3'/><circle cx='160' cy='140' r='3'/><circle cx='220' cy='140' r='3'/><path d='M40 140 L70 125 L100 140 L130 155 L160 140 L190 125 L220 140'/><path d='M70 125 L70 110 M130 155 L130 170 M190 125 L190 110'/></g></svg>");
  background-repeat: repeat;
  pointer-events: none;
}
.newsletter > * { position: relative; z-index: 1; }
@media (min-width: 720px) {
  .newsletter { grid-template-columns: 1.3fr 1fr; gap: var(--s-7); padding: var(--s-9) var(--s-7); }
}
.newsletter h2 {
  color: #fff;
  margin: 0 0 var(--s-3);
  font-size: clamp(var(--t-xl), 2.6vw, var(--t-2xl));
}
.newsletter p { color: rgba(255,255,255,.85); margin: 0; }
.newsletter__form { min-width: 0; }

/* ---- MailerLite embedded form theming (.ml-embedded inside .newsletter) ----
   These rules style the form MailerLite injects so it visually matches the
   dark navy panel, with a pill input + white button consistent with the
   site's design system. */
.newsletter .ml-embedded { width: 100%; }
.newsletter .ml-embedded * { box-sizing: border-box; }

/* Reset MailerLite container backgrounds so our navy panel shows through */
.newsletter .ml-embedded,
.newsletter .ml-embedded form,
.newsletter .ml-embedded .ml-form-embedWrapper,
.newsletter .ml-embedded .ml-form-embedBody,
.newsletter .ml-embedded .ml-form-align-center,
.newsletter .ml-embedded .ml-form-embedContent,
.newsletter .ml-embedded .ml-form-embedSubmitLoad,
.newsletter .ml-embedded .ml-form-formContent {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
}

/* Hide MailerLite's default form heading/description — we use our own copy */
.newsletter .ml-embedded .ml-form-embedContent,
.newsletter .ml-embedded .ml-form-embedHeader,
.newsletter .ml-embedded .ml-form-embedHeaderImage { display: none !important; }

/* Email input — pill style, translucent on navy */
.newsletter .ml-embedded input[type="email"],
.newsletter .ml-embedded input[type="text"] {
  width: 100% !important;
  padding: .85em 1.1em !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: var(--t-sm) !important;
  font-family: var(--ff-sans) !important;
  height: auto !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease;
}
.newsletter .ml-embedded input[type="email"]::placeholder,
.newsletter .ml-embedded input[type="text"]::placeholder {
  color: rgba(255,255,255,.6) !important;
}
.newsletter .ml-embedded input[type="email"]:focus,
.newsletter .ml-embedded input[type="text"]:focus {
  outline: none !important;
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.7) !important;
}

/* Submit button — white pill matching site's btn--primary on navy panels */
.newsletter .ml-embedded button[type="submit"],
.newsletter .ml-embedded .primary,
.newsletter .ml-embedded .ml-form-embedSubmit button {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  color: var(--accent) !important;
  border: 1px solid #fff !important;
  border-radius: 999px !important;
  padding: .85em 1.7em !important;
  font-family: var(--ff-sans) !important;
  font-size: var(--t-sm) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  cursor: pointer !important;
  margin: 0 !important;
  height: auto !important;
  text-transform: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.08) !important;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.newsletter .ml-embedded button[type="submit"]:hover,
.newsletter .ml-embedded .primary:hover,
.newsletter .ml-embedded .ml-form-embedSubmit button:hover {
  background: var(--bg-soft) !important;
  color: var(--accent) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.18) !important;
}

/* Layout: MailerLite typically wraps inputs in a form-fieldRow / horizontal
   row. Force a flex row with gap so input + button sit side-by-side like
   the original mock-up. */
.newsletter .ml-embedded .ml-form-embedBodyDefault,
.newsletter .ml-embedded form {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: var(--s-2) !important;
  align-items: center !important;
}
.newsletter .ml-embedded .ml-form-fieldRow,
.newsletter .ml-embedded .ml-form-formContent,
.newsletter .ml-embedded .ml-input-horizontal {
  flex: 1 1 220px !important;
  min-width: 220px !important;
  margin: 0 !important;
}
.newsletter .ml-embedded .ml-form-embedSubmit { flex: 0 0 auto !important; margin: 0 !important; }

/* Hide the loading spinner by default — MailerLite shows it during submission
   via inline style or class change. We explicitly hide it here because earlier
   rules might otherwise make it visible. */
.newsletter .ml-embedded .ml-form-embedSubmitLoad {
  display: none !important;
}
.newsletter .ml-embedded button.loading,
.newsletter .ml-embedded .ml-form-embedSubmit button.loading {
  display: none !important;
}
/* When MailerLite is actively submitting it adds a class or sets inline
   display:block on the loading button. Show it when that happens, side-by-side
   with the form layout. */
.newsletter .ml-embedded button.loading[style*="display: block"],
.newsletter .ml-embedded button.loading[style*="display:block"],
.newsletter .ml-embedded.ml-form-loading button.loading {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* When loading IS visible, restore spinner visibility inside it */
.newsletter .ml-embedded button.loading[style*="display: block"] .ml-form-embedSubmitLoad,
.newsletter .ml-embedded button.loading[style*="display:block"] .ml-form-embedSubmitLoad,
.newsletter .ml-embedded.ml-form-loading .ml-form-embedSubmitLoad {
  display: inline-block !important;
}

/* Validation / status messages — keep readable on navy */
.newsletter .ml-embedded .ml-error-message,
.newsletter .ml-embedded label.error,
.newsletter .ml-embedded .ml-form-recaptcha-error {
  color: #ffd9c2 !important;
  font-size: var(--t-xs) !important;
  margin-top: var(--s-2) !important;
  display: block;
}
.newsletter .ml-embedded .ml-form-successContent,
.newsletter .ml-embedded .ml-form-successBody {
  color: #fff !important;
  background: transparent !important;
  text-align: left;
}
.newsletter .ml-embedded .ml-form-successContent h4,
.newsletter .ml-embedded .ml-form-successContent p {
  color: #fff !important;
}

/* ML-injected GDPR / consent text */
.newsletter .ml-embedded .ml-form-embedPermissions,
.newsletter .ml-embedded .ml-form-embedPermissions p {
  color: rgba(255,255,255,.7) !important;
  background: transparent !important;
  font-size: var(--t-xs) !important;
}
.newsletter .ml-embedded a { color: #fff !important; text-decoration: underline; }

/* ===== Article hero block (peptide page) ===== */
.peptide-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-6);
  margin-bottom: var(--s-6);
}

/* ===== Honest Reads (Evidence vs Myth) ===== */
.evm-intro {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-7);
  margin: var(--s-5) 0 var(--s-6);
  border-left: 3px solid var(--accent-warm);
}
.evm-intro h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-warm);
  font-weight: 700;
}
.evm-intro p { margin: 0 0 var(--s-3); color: var(--text); line-height: 1.6; }
.evm-intro p:last-child { margin-bottom: 0; }

.evm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin: var(--s-5) 0;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.evm-filter-label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  font-weight: 700;
  padding: 0 var(--s-2);
}
.evm-filter {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  border-radius: 999px;
  padding: .35em .9em;
  font-size: var(--t-xs);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: .04em;
}
.evm-filter:hover { border-color: var(--accent); color: var(--accent); }
.evm-filter--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
html[data-theme="dark"] .evm-filter--active { color: #0c1119; }

/* Verdict pill — used on cards and at top of articles */
.verdict {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  padding: .25em .75em;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.verdict::before {
  content: "";
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.verdict--established { background: var(--pos-soft); color: var(--pos); }
.verdict--promising   { background: var(--accent-warm-soft); color: var(--accent-warm); }
.verdict--mixed       { background: var(--warn-soft); color: var(--warn); }
.verdict--hype-prone  { background: var(--warn-soft); color: var(--warn); }
.verdict--calibration { background: var(--neutral-soft); color: var(--neutral); }
.verdict--field-overview { background: var(--neutral-soft); color: var(--neutral); }

/* EvM card — uses preview-card scaffold but with verdict + group */
.evm-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}
.evm-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
  opacity: 0;
  transition: opacity .18s ease;
}
.evm-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.evm-card:hover::before { opacity: 1; }
.evm-card__header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  flex-wrap: wrap;
}
.evm-card__group {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft);
  font-weight: 600;
}
.evm-card h3 {
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.005em;
  line-height: 1.3;
}
.evm-card p {
  margin: 0;
  color: var(--text-mute);
  font-size: var(--t-sm);
  line-height: 1.55;
  flex: 1;
}
.evm-card .read-more {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

/* Sixty-second TLDR on each article */
.sixty-second {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0 var(--s-6);
}
.sixty-second h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 700;
}
.sixty-second p {
  margin: 0;
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--text);
}

/* "What this means for you" footer */
.what-this-means {
  background: var(--pos-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--pos);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0 var(--s-5);
}
.what-this-means h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--pos);
  font-weight: 700;
}
.what-this-means p { margin: 0 0 var(--s-3); }
.what-this-means p:last-child { margin-bottom: 0; }

/* Article footer with related links */
.evm-related {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.evm-related h3 {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
  font-weight: 700;
  margin: 0 0 var(--s-3);
}
.evm-related-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.evm-related-card {
  padding: var(--s-3) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: var(--t-sm);
  transition: border-color .15s ease;
}
.evm-related-card:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.evm-related-card__type {
  display: block;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Update note */
.evm-update-note {
  font-size: var(--t-xs);
  color: var(--text-soft);
  font-style: italic;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
}

/* EvM section sub-heading on hub */
.evm-section-head {
  margin: var(--s-7) 0 var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.evm-section-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.evm-section-head h2 .count {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: .04em;
}
.evm-section-head p {
  font-size: var(--t-sm);
  color: var(--text-mute);
  margin: var(--s-2) 0 0;
  max-width: 70ch;
}

.evm-deck {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  margin-top: var(--s-4);
}
@media (min-width: 640px) {
  .evm-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .evm-deck { grid-template-columns: repeat(4, 1fr); }
}

[data-evm-card][hidden] { display: none !important; }

/* ===== Emerging Peptides ===== */
.emerging-disclaimer {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0 var(--s-6);
}
.emerging-disclaimer h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--warn);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.emerging-disclaimer h3::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: currentColor;
}
.emerging-disclaimer p {
  font-size: var(--t-sm);
  margin: 0 0 var(--s-2);
  color: var(--text);
  line-height: 1.6;
}
.emerging-disclaimer p:last-child { margin-bottom: 0; }

/* Status chip — different from verdict; explicitly stage-based */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  padding: .25em .75em;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-chip::before {
  content: "";
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}
.status-chip--approved   { background: var(--pos-soft); color: var(--pos); }
.status-chip--phase-3    { background: var(--pos-soft); color: var(--pos); }
.status-chip--phase-2    { background: var(--accent-warm-soft); color: var(--accent-warm); }
.status-chip--phase-1    { background: var(--accent-warm-soft); color: var(--accent-warm); }
.status-chip--preclinical { background: var(--neutral-soft); color: var(--neutral); }
.status-chip--theoretical { background: var(--neutral-soft); color: var(--neutral); }

.emerging-deck {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  margin-top: var(--s-4);
}
@media (min-width: 640px) {
  .emerging-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .emerging-deck { grid-template-columns: repeat(3, 1fr); }
}

.emerging-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}
.emerging-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  opacity: 0;
  transition: opacity .18s ease;
}
.emerging-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.emerging-card:hover::before { opacity: 1; }
.emerging-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.emerging-card h3 {
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.005em;
  line-height: 1.25;
}
.emerging-card__tag {
  font-size: var(--t-sm);
  color: var(--accent);
  margin: 0 0 var(--s-2);
  font-weight: 500;
}
.emerging-card p {
  margin: 0;
  color: var(--text-mute);
  font-size: var(--t-sm);
  line-height: 1.55;
  flex: 1;
}
.emerging-card .read-more {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}

/* Emerging entry page sections */
.emerging-section {
  margin: var(--s-5) 0;
}
.emerging-section h2 {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-warm);
  font-weight: 700;
  margin: 0 0 var(--s-3);
}
.emerging-section--upside {
  background: var(--pos-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--pos);
  padding: var(--s-5) var(--s-6);
}
.emerging-section--upside h2 { color: var(--pos); }

.emerging-section--limits {
  background: var(--warn-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--warn);
  padding: var(--s-5) var(--s-6);
}
.emerging-section--limits h2 { color: var(--warn); }

.emerging-section--community {
  background: var(--neutral-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--neutral);
  padding: var(--s-5) var(--s-6);
}
.emerging-section--community h2 { color: var(--neutral); }

.emerging-section-head {
  margin: var(--s-7) 0 var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.emerging-section-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.emerging-section-head h2 .count {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: .04em;
}
.emerging-section-head p {
  font-size: var(--t-sm);
  color: var(--text-mute);
  margin: var(--s-2) 0 0;
  max-width: 70ch;
}

[data-emerging-card][hidden] { display: none !important; }

.emerging-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin: var(--s-5) 0;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.emerging-filter-label {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-mute);
  font-weight: 700;
  padding: 0 var(--s-2);
}
.emerging-filter {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-mute);
  border-radius: 999px;
  padding: .35em .9em;
  font-size: var(--t-xs);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: .04em;
}
.emerging-filter:hover { border-color: var(--accent); color: var(--accent); }
.emerging-filter--active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
html[data-theme="dark"] .emerging-filter--active { color: #0c1119; }

/* ===== Stacks section ===== */
.stack-disclaimer {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-5) 0 var(--s-6);
  position: relative;
}
.stack-disclaimer h3 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--warn);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.stack-disclaimer h3::before {
  content: "";
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: currentColor;
}
.stack-disclaimer p {
  font-size: var(--t-sm);
  margin: 0 0 var(--s-2);
  color: var(--text);
  line-height: 1.6;
}
.stack-disclaimer p:last-child { margin-bottom: 0; }

/* Stack hub cards */
.stack-deck {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
  margin-top: var(--s-5);
}
@media (min-width: 640px) {
  .stack-deck { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .stack-deck { grid-template-columns: repeat(3, 1fr); }
}
.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.stack-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
  opacity: 0;
  transition: opacity .2s ease;
}
.stack-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}
.stack-card:hover::before { opacity: 1; }
.stack-card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.stack-card__icon {
  width: 36px;
  height: 36px;
  flex: none;
  color: var(--accent-warm);
  opacity: .9;
}
.stack-card__name {
  font-family: var(--ff-serif);
  font-size: var(--t-lg);
  font-weight: 600;
  margin: 0 0 var(--s-1);
  letter-spacing: -.012em;
  line-height: 1.25;
}
.stack-card__compounds {
  font-size: var(--t-xs);
  color: var(--accent);
  font-family: var(--ff-mono);
  letter-spacing: .02em;
  margin: 0;
}
.stack-card__lead {
  font-size: var(--t-sm);
  color: var(--text-mute);
  line-height: 1.55;
  margin: 0 0 var(--s-4);
  flex: 1;
}
.stack-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.stack-card__cta {
  font-size: var(--t-xs);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Stack section heading */
.stack-section-head {
  margin: var(--s-7) 0 var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.stack-section-head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.stack-section-head h2 .count {
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: .04em;
}
.stack-section-head p {
  font-size: var(--t-sm);
  color: var(--text-mute);
  margin: var(--s-2) 0 0;
  max-width: 70ch;
}

/* Stack-specific comparison table */
.stack-compounds {
  margin: var(--s-5) 0;
}
.stack-compounds__intro {
  font-size: var(--t-sm);
  color: var(--text-mute);
  margin-bottom: var(--s-3);
}
.stack-compound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-1);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: var(--s-3);
  transition: border-color .15s ease;
}
.stack-compound-row:hover { border-color: var(--accent); }
@media (min-width: 720px) {
  .stack-compound-row {
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 2.4fr) minmax(0, .8fr);
    gap: var(--s-4);
    align-items: center;
  }
}
.stack-compound-row__name {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: var(--t-md);
  color: var(--text);
  text-decoration: none;
}
.stack-compound-row__name:hover { color: var(--accent); }
.stack-compound-row__role {
  font-size: var(--t-sm);
  color: var(--text-mute);
  line-height: 1.5;
}
.stack-compound-row__meta {
  font-size: var(--t-xs);
  color: var(--text-soft);
  font-family: var(--ff-mono);
}

/* Benefits / Risks two-column */
.stack-pros-cons {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
  margin: var(--s-5) 0;
}
@media (min-width: 720px) {
  .stack-pros-cons { grid-template-columns: 1fr 1fr; }
}
.stack-pros, .stack-cons {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
}
.stack-pros { border-left: 3px solid var(--pos); }
.stack-cons { border-left: 3px solid var(--warn); }
.stack-pros h4, .stack-cons h4 {
  margin: 0 0 var(--s-3);
  font-family: var(--ff-sans);
  font-size: var(--t-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.stack-pros h4 { color: var(--pos); }
.stack-cons h4 { color: var(--warn); }
.stack-pros ul, .stack-cons ul { margin: 0; padding-left: 1.2em; }
.stack-pros li, .stack-cons li {
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.55;
  margin-bottom: var(--s-2);
}

/* Stack mechanism diagram (simple compound flow) */
.stack-flow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  margin: var(--s-5) 0;
}
.stack-flow__node {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  text-align: center;
  min-width: 8rem;
  font-size: var(--t-sm);
}
.stack-flow__node strong {
  display: block;
  font-family: var(--ff-serif);
  color: var(--accent);
  margin-bottom: 2px;
}
.stack-flow__node span {
  display: block;
  font-size: var(--t-xs);
  color: var(--text-mute);
}
.stack-flow__plus {
  font-family: var(--ff-serif);
  font-size: var(--t-xl);
  color: var(--accent-warm);
  font-weight: 600;
}

/* ===== 404 page ===== */
.page-404 {
  text-align: center;
  padding: var(--s-7) 0 var(--s-6);
}
.page-404__code {
  font-family: var(--ff-serif);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin: 0 0 var(--s-3);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-404__h1 {
  font-family: var(--ff-serif);
  font-size: clamp(var(--t-xl), 4vw, var(--t-3xl));
  margin: 0 0 var(--s-4);
  letter-spacing: -.018em;
}
.page-404__lead {
  font-family: var(--ff-serif);
  font-size: clamp(var(--t-md), 2.1vw, var(--t-xl));
  line-height: var(--lh-snug);
  color: var(--text-mute);
  max-width: 56ch;
  margin: 0 auto var(--s-7);
}
.page-404 .hero-ctas { justify-content: center; }
.page-404-section-head {
  text-align: center;
  margin: var(--s-8) 0 var(--s-5);
}
.page-404-section-head h2 {
  font-family: var(--ff-sans);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-mute);
  font-weight: 700;
  margin: 0;
}
.page-404-section-head h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent-warm);
  margin: var(--s-2) auto 0;
  border-radius: 2px;
}
.page-404-popular {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  max-width: 56rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .page-404-popular { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .page-404-popular { grid-template-columns: repeat(3, 1fr); }
}
.page-404-card {
  display: block;
  padding: var(--s-4) var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  text-align: left;
}
.page-404-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.page-404-card strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: var(--t-md);
  margin-bottom: 2px;
  color: inherit;
}
.page-404-card span {
  font-size: var(--t-xs);
  color: var(--text-mute);
}
.page-404-card:hover span { color: var(--accent); }

/* ===== Print ===== */
@media print {
  body::before, .site-disclaimer, .site-header, .article-aside, .nav-toggle, .theme-toggle, .newsletter { display: none; }
  body { background: #fff; }
  a { color: inherit; text-decoration: underline; }
  .references a { word-break: break-all; }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-7); }
