/*
Theme Name: PeptideInfo
Theme URI: https://peptideinfo.ca
Author: PeptideInfo.ca
Description: A calm, evidence-led editorial theme for Canadian peptide education.
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: peptideinfo
*/

:root {
  --ink: #102f35;
  --ink-deep: #092329;
  --ocean: #0f5b61;
  --ocean-bright: #16737a;
  --glacier: #dff4ef;
  --glacier-strong: #c4e9df;
  --paper: #fbfaf6;
  --paper-deep: #f3f0e8;
  --white: #fff;
  --signal: #e97857;
  --signal-ink: #b8442b;
  --signal-soft: #fbe6df;
  --warning: #9e4b32;
  --line: rgba(16, 47, 53, 0.15);
  --muted: #557076;
  --shadow: 0 24px 70px rgba(9, 35, 41, 0.09);
  --shadow-small: 0 12px 35px rgba(9, 35, 41, 0.07);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --container: 1180px;
  --reading: 760px;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Iowan Old Style", Baskerville, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ocean);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--signal-ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--glacier-strong);
  color: var(--ink-deep);
}

h1,
h2,
h3,
h4 {
  color: var(--ink-deep);
  font-family: var(--font-editorial);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

p,
ul,
ol {
  margin-top: 0;
}

.container {
  margin-inline: auto;
  max-width: var(--container);
  padding-inline: clamp(1.2rem, 4vw, 2rem);
  width: 100%;
}

.reading-width {
  margin-inline: auto;
  max-width: var(--reading);
}

.skip-link {
  background: var(--white);
  color: var(--ink);
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: -100px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.site-notice {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.site-notice .container {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  min-height: 36px;
  text-align: center;
}

.site-notice__dot {
  background: var(--signal);
  border-radius: 999px;
  height: 7px;
  width: 7px;
}

.site-header {
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  align-items: center;
  color: var(--ink-deep);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink-deep);
}

.brand-mark {
  fill: none;
  height: 34px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  width: 34px;
}

.brand-mark circle {
  fill: var(--paper);
}

.brand-mark .brand-mark__signal {
  fill: var(--signal);
  stroke: var(--signal);
}

.brand-name {
  font-family: var(--font-editorial);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-name span {
  color: var(--signal-ink);
}

.site-navigation {
  align-items: center;
  display: flex;
  gap: 1.5rem;
}

.site-navigation .menu {
  align-items: center;
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.45rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation .menu a {
  color: var(--ink);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.8rem 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-navigation .menu a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a {
  color: var(--signal-ink);
}

.header-search {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}

.header-search:hover {
  background: var(--glacier);
  border-color: transparent;
  color: var(--ink);
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  background: currentColor;
  display: block;
  height: 2px;
  position: relative;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 23px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
  position: absolute;
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.reading-progress {
  background: var(--signal);
  bottom: -1px;
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}

.hero {
  background:
    radial-gradient(circle at 83% 28%, rgba(223, 244, 239, 0.95), transparent 30%),
    linear-gradient(180deg, #fbfaf6 0%, #f6f4ed 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
}

.hero::after {
  background-image: radial-gradient(rgba(15, 91, 97, 0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  height: 340px;
  opacity: 0.35;
  position: absolute;
  right: -50px;
  top: 0;
  width: 420px;
}

.hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  position: relative;
  z-index: 1;
}

.eyebrow,
.pi-kicker {
  color: var(--ocean);
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--signal-ink);
}

.hero__lede {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
  margin: 0 0 2rem;
  max-width: 650px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pi-button,
.wp-element-button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  gap: 0.55rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.25rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pi-button:hover,
.wp-element-button:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  box-shadow: 0 10px 24px rgba(15, 91, 97, 0.18);
  color: var(--white);
  transform: translateY(-1px);
}

.pi-button--secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.pi-button--secondary:hover {
  background: var(--glacier);
  border-color: var(--glacier-strong);
  box-shadow: none;
  color: var(--ink);
}

.pi-text-link {
  font-size: 0.9rem;
  font-weight: 700;
  margin-left: 0.75rem;
}

.hero-visual {
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  max-width: 440px;
  position: relative;
  width: 100%;
}

.hero-visual__orbit {
  animation: gentle-spin 38s linear infinite;
  border: 1px solid rgba(15, 91, 97, 0.22);
  border-radius: 50%;
  inset: 5%;
  position: absolute;
}

.hero-visual__orbit::before,
.hero-visual__orbit::after {
  background: var(--paper);
  border: 2px solid var(--ocean);
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: -9px;
  width: 18px;
}

.hero-visual__orbit::after {
  bottom: 10%;
  left: auto;
  right: 1%;
  top: auto;
}

.hero-visual__panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 91, 97, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  left: 12%;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  position: absolute;
  top: 17%;
  width: 76%;
  backdrop-filter: blur(12px);
}

.hero-visual__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.molecule-chain {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 1.1rem 0 1.8rem;
  position: relative;
}

.molecule-chain::before {
  background: var(--glacier-strong);
  content: "";
  height: 2px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 50%;
}

.molecule-chain span {
  background: var(--white);
  border: 2px solid var(--ocean);
  border-radius: 50%;
  height: 22px;
  position: relative;
  width: 22px;
  z-index: 1;
}

.molecule-chain span:nth-child(3) {
  background: var(--signal);
  border-color: var(--signal);
  height: 30px;
  width: 30px;
}

.hero-visual__panel strong {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.hero-visual__panel p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
}

@keyframes gentle-spin { to { transform: rotate(360deg); } }

.trust-rail {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-rail__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  align-items: center;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  min-height: 88px;
  padding: 1rem clamp(0.7rem, 2vw, 1.4rem);
}

.trust-item:last-child { border-right: 0; }
.trust-item svg { color: var(--ocean); flex: 0 0 auto; height: 22px; width: 22px; }
.trust-item span { font-size: 0.79rem; font-weight: 650; line-height: 1.35; }

.site-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.site-section--tint {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.site-section--dark {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.82);
}

.site-section--dark h2,
.site-section--dark h3,
.site-section--dark .eyebrow {
  color: var(--white);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading__copy {
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 0.75rem 0 0;
  max-width: 620px;
}

.section-heading--compact {
  display: block;
  margin-bottom: 1.5rem;
}

.section-heading--compact h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.section-link {
  flex: 0 0 auto;
  font-size: 0.84rem;
  font-weight: 750;
}

.start-grid,
.article-grid,
.library-grid,
.topic-grid {
  display: grid;
  gap: 1.25rem;
}

.start-grid { grid-template-columns: repeat(3, 1fr); }
.article-grid { grid-template-columns: repeat(3, 1fr); }
.library-grid { grid-template-columns: repeat(3, 1fr); }
.topic-grid { grid-template-columns: repeat(4, 1fr); }

.start-card,
.article-card,
.library-card,
.topic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.start-card:hover,
.article-card:hover,
.library-card:hover,
.topic-card:hover {
  border-color: rgba(15, 91, 97, 0.35);
  box-shadow: var(--shadow-small);
  transform: translateY(-3px);
}

.start-card {
  min-height: 300px;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2rem);
  text-decoration: none;
}

.start-card__number {
  color: var(--signal-ink);
  display: block;
  font-family: var(--font-editorial);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 3.7rem;
}

.start-card h3 {
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}

.start-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.start-card__arrow {
  bottom: 1.4rem;
  color: var(--ocean);
  position: absolute;
  right: 1.4rem;
}

.safety-alert {
  align-items: center;
  background: var(--signal-soft);
  border: 1px solid rgba(158, 75, 50, 0.22);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 2rem;
  grid-template-columns: auto 1fr auto;
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.safety-alert__icon {
  align-items: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--warning);
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.safety-alert .eyebrow { color: var(--warning); margin-bottom: 0.45rem; }
.safety-alert h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 0 0 0.5rem; }
.safety-alert p:last-child { color: #694f48; margin: 0; }

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 345px;
  overflow: hidden;
}

.article-card__stripe {
  background: var(--glacier);
  height: 9px;
}

.article-card:nth-child(3n + 2) .article-card__stripe { background: var(--signal-soft); }
.article-card:nth-child(3n + 3) .article-card__stripe { background: #e7e9f2; }

.article-card__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem;
}

.article-card__meta,
.entry-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 680;
  gap: 0.55rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.article-card__meta span + span::before,
.entry-meta span + span::before {
  color: var(--line);
  content: "•";
  margin-right: 0.55rem;
}

.article-card h3 {
  font-size: 1.6rem;
  margin: 0 0 0.85rem;
}

.article-card h3 a {
  color: var(--ink-deep);
  text-decoration: none;
}

.article-card h3 a::after,
.library-card__title a::after,
.topic-card a::after {
  content: "";
  inset: 0;
  position: absolute;
}

.article-card__excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.article-card__read {
  color: var(--ocean);
  font-size: 0.8rem;
  font-weight: 750;
  margin-top: auto;
}

.library-card {
  padding: 1.5rem;
}

.library-card__top {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.library-card__initial {
  align-items: center;
  background: var(--glacier);
  border-radius: 12px;
  color: var(--ocean);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--font-editorial);
  font-size: 1.4rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.status-pill {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.2;
  max-width: 170px;
  padding: 0.4rem 0.65rem;
  text-align: right;
}

.status-pill--authorized {
  background: var(--glacier);
  color: var(--ocean);
}

.library-card__title {
  font-size: 1.7rem;
  margin: 0 0 0.65rem;
}

.library-card__title a {
  color: var(--ink-deep);
  text-decoration: none;
}

.library-card__summary {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
  margin: 0 0 1.2rem;
}

.library-card__verified {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0;
  padding-top: 0.85rem;
}

.topic-card {
  min-height: 185px;
  padding: 1.45rem;
}

.topic-card__icon {
  align-items: center;
  background: var(--glacier);
  border-radius: 50%;
  color: var(--ocean);
  display: flex;
  height: 42px;
  justify-content: center;
  margin-bottom: 1.8rem;
  width: 42px;
}

.topic-card h3 { font-size: 1.35rem; margin: 0 0 0.45rem; }
.topic-card h3 a { color: var(--ink); text-decoration: none; }
.topic-card p { color: var(--muted); font-size: 0.78rem; line-height: 1.5; margin: 0; }

.editorial-promise {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: 0.8fr 1.2fr;
}

.editorial-promise__mark {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: rgba(223, 244, 239, 0.08);
  border: 1px solid rgba(223, 244, 239, 0.16);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  max-width: 360px;
  position: relative;
}

.editorial-promise__mark::before,
.editorial-promise__mark::after {
  border: 1px solid rgba(223, 244, 239, 0.18);
  border-radius: 50%;
  content: "";
  inset: 14%;
  position: absolute;
}

.editorial-promise__mark::after { inset: 30%; }
.editorial-promise__mark span { color: var(--signal); font-family: var(--font-editorial); font-size: clamp(3rem, 8vw, 5rem); position: relative; z-index: 1; }
.editorial-promise h2 { margin-top: 0; }
.editorial-promise p { max-width: 690px; }

.promise-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.promise-list li {
  align-items: start;
  display: flex;
  font-size: 0.87rem;
  gap: 0.6rem;
}

.promise-list li::before {
  color: var(--signal-ink);
  content: "✓";
  font-weight: 800;
}

.rss-panel {
  align-items: center;
  background: var(--glacier);
  border: 1px solid var(--glacier-strong);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(1.7rem, 4vw, 3rem);
}

.rss-panel h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 0 0 0.5rem; }
.rss-panel p { color: var(--muted); margin: 0; }

.page-hero,
.archive-hero,
.article-header {
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.page-hero,
.archive-hero {
  background:
    radial-gradient(circle at 85% 15%, var(--glacier), transparent 30%),
    var(--paper);
}

.page-hero h1,
.archive-hero h1,
.article-header h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  max-width: 980px;
}

.page-hero__lede,
.archive-hero__lede,
.article-deck {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.62;
  margin: 0;
  max-width: 760px;
}

.breadcrumbs {
  font-size: 0.72rem;
  font-weight: 650;
  margin-bottom: 2rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  color: #9aabad;
  content: "/";
  margin-right: 0.45rem;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

.article-header {
  background: var(--white);
}

.article-header__inner {
  max-width: 980px;
}

.article-header .entry-meta {
  margin-top: 1.7rem;
}

.review-strip {
  background: var(--glacier);
  border-bottom: 1px solid var(--glacier-strong);
}

.review-strip__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  min-height: 54px;
}

.review-strip span {
  align-items: center;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 670;
  gap: 0.45rem;
}

.review-strip svg { color: var(--ocean); height: 16px; width: 16px; }

.article-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, var(--reading)) minmax(190px, 1fr);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.article-body {
  font-family: var(--font-ui);
  font-size: 1.04rem;
  min-width: 0;
}

.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin: 3.2rem 0 1rem; }
.article-body h3 { margin: 2.4rem 0 0.8rem; }
.article-body p, .article-body li { color: #29494f; }
.article-body p { margin-bottom: 1.35rem; }
.article-body li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body a { font-weight: 630; }
.article-body .pi-lede { color: var(--ink); font-family: var(--font-editorial); font-size: clamp(1.35rem, 2.5vw, 1.75rem); line-height: 1.45; margin-bottom: 2rem; }

.article-sidebar {
  align-self: start;
  position: sticky;
  top: 115px;
}

.article-sidebar__card {
  border-left: 2px solid var(--glacier-strong);
  color: var(--muted);
  font-size: 0.76rem;
  padding-left: 1.1rem;
}

.article-sidebar__card strong {
  color: var(--ink);
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}

.article-sidebar__card a { font-weight: 700; }

.pi-bottom-line {
  background: var(--glacier);
  border-left: 4px solid var(--ocean);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2.2rem 0 2.6rem;
  padding: 1.3rem 1.5rem;
}

.pi-bottom-line span {
  color: var(--ocean);
  display: block;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.pi-bottom-line p { color: var(--ink); font-weight: 650; margin: 0; }

.pi-callout {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2rem 0;
  padding: 1.25rem 1.4rem;
}

.pi-callout--important {
  background: var(--signal-soft);
  border-color: rgba(158, 75, 50, 0.25);
}

.pi-callout p:last-child { margin-bottom: 0; }

.pi-status-banner {
  border-radius: var(--radius);
  margin-bottom: 2rem;
  padding: 1.2rem 1.35rem;
}

.pi-status-banner--warning {
  background: var(--signal-soft);
  border: 1px solid rgba(158, 75, 50, 0.25);
}

.pi-status-banner strong { color: var(--warning); display: block; margin-bottom: 0.35rem; }
.pi-status-banner span { color: #694f48; font-size: 0.88rem; }

.pi-link-list { list-style: none; padding: 0 !important; }
.pi-link-list li { border-bottom: 1px solid var(--line); margin: 0; padding: 0.85rem 0; }
.pi-link-list a { display: flex; justify-content: space-between; text-decoration: none; }
.pi-link-list a::after { content: "→"; }

.pi-evidence-ladder {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pi-evidence-ladder > div {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
}

.pi-evidence-ladder > div:last-child { border-bottom: 0; }
.pi-evidence-ladder strong { align-items: center; background: var(--glacier); border-radius: 50%; color: var(--ocean); display: flex; height: 32px; justify-content: center; width: 32px; }
.pi-evidence-ladder span { color: var(--ink); font-size: 0.88rem; }

.pi-contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 2rem 0;
}

.pi-contact-grid > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.pi-contact-grid h2 { font-size: 1.35rem; margin: 0 0 0.7rem; }
.pi-contact-grid p { font-size: 0.82rem; }

.article-sources {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding-top: 2.5rem;
}

.article-sources ol { list-style-position: inside; padding: 0; }
.article-sources li { align-items: baseline; border-bottom: 1px solid var(--line); display: flex; font-size: 0.83rem; gap: 0.5rem; justify-content: space-between; margin: 0; padding: 0.8rem 0; }
.article-sources a { color: var(--ink); font-weight: 620; text-decoration: none; }
.article-sources a:hover { color: var(--signal-ink); }

.article-disclaimer {
  background: var(--paper-deep);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2.5rem;
  padding: 1.2rem;
}

.article-disclaimer strong { color: var(--ink); }

.pi-kicker,
.pi-consent__eyebrow {
  color: var(--signal-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.pi-review-note {
  border-block: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 0.82rem;
  margin: 2rem 0;
  padding-block: 0.9rem;
}

.pi-contents {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2.5rem 0 3rem;
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.pi-contents h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.pi-contents ol {
  column-gap: 2rem;
  columns: 2;
  margin: 0;
}

.pi-contents li {
  break-inside: avoid;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.pi-contents a {
  color: var(--ink);
  font-weight: 620;
  text-decoration: none;
}

.article-body h2[id],
.article-body h3[id] {
  scroll-margin-top: 125px;
}

.pi-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 2rem 0 2.5rem;
  max-width: 100%;
  overflow-x: auto;
}

.pi-table-wrap table {
  background: var(--white);
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.pi-table-wrap th,
.pi-table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

.pi-table-wrap th {
  background: var(--ink-deep);
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.pi-table-wrap td {
  color: #29494f;
  font-size: 0.78rem;
  line-height: 1.55;
}

.pi-table-wrap tbody tr:last-child td { border-bottom: 0; }

.pi-timeline {
  list-style: none;
  margin: 2rem 0 2.5rem;
  padding: 0 0 0 1.8rem !important;
  position: relative;
}

.pi-timeline::before {
  background: var(--glacier-strong);
  bottom: 0.75rem;
  content: "";
  left: 0.42rem;
  position: absolute;
  top: 0.75rem;
  width: 2px;
}

.pi-timeline > li {
  margin: 0 0 1.8rem;
  padding-left: 0.7rem !important;
  position: relative;
}

.pi-timeline > li::before {
  background: var(--signal);
  border: 4px solid var(--paper);
  border-radius: 50%;
  content: "";
  height: 15px;
  left: -1.73rem;
  position: absolute;
  top: 0.35rem;
  width: 15px;
}

.pi-timeline p { margin-bottom: 0.6rem; }

.pi-consent {
  align-items: end;
  background: var(--white);
  border: 1px solid rgba(16, 47, 53, 0.24);
  border-radius: var(--radius);
  bottom: 1rem;
  box-shadow: 0 24px 80px rgba(9, 35, 41, 0.2);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: 980px;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  z-index: 1000;
}

.pi-consent[hidden],
.pi-consent-reopen[hidden] {
  display: none;
}

.pi-consent__copy h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 760;
  letter-spacing: -0.015em;
  margin: 0.25rem 0 0.55rem;
}

.pi-consent__copy p:not(.pi-consent__eyebrow) {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 0.45rem;
  max-width: 680px;
}

.pi-consent__copy a {
  font-size: 0.72rem;
  font-weight: 700;
}

.pi-consent__actions {
  display: flex;
  gap: 0.65rem;
}

.pi-consent__button,
.pi-consent-reopen {
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 750;
  min-height: 44px;
  min-width: 132px;
  padding: 0.7rem 1rem;
}

.pi-consent__button--allow,
.pi-consent__button--decline {
  background: var(--white);
  color: var(--ink);
}

.pi-consent__button:hover,
.pi-consent__button:focus-visible,
.pi-consent-reopen:focus-visible {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink-deep);
  outline: 3px solid var(--ink-deep);
  outline-offset: 2px;
}

.pi-consent-reopen {
  background: var(--ink-deep);
  bottom: 0.8rem;
  color: var(--white);
  left: 0.8rem;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  position: fixed;
  z-index: 900;
}

.pi-consent-reopen:hover { background: var(--ocean); }

.peptide-status-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.5rem;
  overflow: hidden;
}

.peptide-status-grid > div {
  background: var(--paper-deep);
  padding: 1.25rem;
}

.peptide-status-grid span {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.peptide-status-grid strong { display: block; font-size: 0.9rem; line-height: 1.5; }

.library-filter {
  margin-top: 2rem;
  max-width: 560px;
  position: relative;
}

.library-filter svg {
  color: var(--muted);
  height: 20px;
  left: 1.1rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
}

.library-filter input,
.search-form .search-field {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  min-height: 52px;
  padding: 0.8rem 1.1rem 0.8rem 3.1rem;
  width: 100%;
}

.library-filter input:focus,
.search-form .search-field:focus {
  border-color: var(--ocean);
  outline: 3px solid rgba(15, 91, 97, 0.12);
}

.library-empty {
  background: var(--paper-deep);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

[hidden] { display: none !important; }

.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 620px;
  position: relative;
}

.search-form label { flex: 1; }
.search-form .search-field { padding-left: 1.2rem; }
.search-submit { min-width: 110px; }

.pagination {
  margin-top: 3rem;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.page-numbers {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  text-decoration: none;
  width: 42px;
}

.page-numbers.current,
.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.page-numbers.prev,
.page-numbers.next { border-radius: 999px; padding-inline: 1rem; width: auto; }

.empty-state {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.empty-state h2 { margin-top: 0; }
.empty-state p { color: var(--muted); margin-inline: auto; max-width: 600px; }

.site-footer {
  background: var(--ink-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 1.5rem;
}

.site-footer .brand { color: var(--white); }
.site-footer .brand-name > span { color: var(--signal); }
.site-footer .brand-mark circle { fill: var(--ink-deep); }
.site-footer__top { display: grid; gap: 4rem; grid-template-columns: 0.85fr 1.15fr; padding-bottom: 3.5rem; }
.site-footer__about { max-width: 500px; }
.site-footer__about > p { font-size: 0.84rem; margin: 1.4rem 0 0; max-width: 450px; }
.site-footer__promise { color: var(--glacier); font-family: var(--font-editorial); font-size: 1.35rem !important; }
.site-footer__nav .menu { display: grid; gap: 0.7rem 1.5rem; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { color: rgba(255, 255, 255, 0.82); font-size: 0.8rem; font-weight: 620; text-decoration: none; }
.site-footer__nav a:hover { color: var(--signal); }
.site-footer__bottom { align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; font-size: 0.68rem; gap: 1rem; justify-content: space-between; padding-top: 1.4rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: rgba(255, 255, 255, 0.72); }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .header-search { margin-left: auto; }
  .site-navigation {
    align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    inset: 78px 0 auto;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 1rem 1.4rem 2rem;
    position: fixed;
  }
  .site-navigation.is-open { display: block; }
  .site-navigation .menu { align-items: stretch; display: block; }
  .site-navigation .menu li { border-bottom: 1px solid var(--line); }
  .site-navigation .menu a { display: block; font-size: 1rem; padding: 1rem 0; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-sidebar { display: none; }
}

@media (max-width: 820px) {
  .hero__grid,
  .editorial-promise,
  .site-footer__top { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; }
  .trust-rail__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .start-grid,
  .article-grid,
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-alert { grid-template-columns: auto 1fr; }
  .safety-alert .pi-button { grid-column: 1 / -1; justify-self: start; }
  .editorial-promise__mark { display: none; }
  .site-footer__top { gap: 2.5rem; }
}

@media (max-width: 600px) {
  .site-notice .container { font-size: 0.68rem; justify-content: flex-start; line-height: 1.35; padding-block: 0.45rem; text-align: left; }
  .site-header__inner { min-height: 68px; }
  .site-navigation { inset: 68px 0 auto; }
  .brand-name { font-size: 1.25rem; }
  .brand-mark { height: 30px; width: 30px; }
  .header-search { height: 40px; width: 40px; }
  .hero { padding-top: 3.5rem; }
  .hero__grid { gap: 2.5rem; }
  .hero-visual { max-width: 310px; }
  .hero-visual__panel { left: 8%; top: 14%; width: 84%; }
  .start-grid,
  .article-grid,
  .library-grid,
  .topic-grid,
  .pi-contact-grid { grid-template-columns: 1fr; }
  .start-card { min-height: 250px; }
  .start-card__number { margin-bottom: 2.5rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 0.7rem; }
  .safety-alert { display: block; }
  .safety-alert__icon { margin-bottom: 1.2rem; }
  .safety-alert .pi-button { margin-top: 1.2rem; }
  .promise-list { grid-template-columns: 1fr; }
  .rss-panel { align-items: start; flex-direction: column; }
  .peptide-status-grid { grid-template-columns: 1fr; }
  .search-form { align-items: stretch; flex-direction: column; }
  .search-submit { width: 100%; }
  .site-footer__nav .menu { grid-template-columns: 1fr; }
  .site-footer__bottom { align-items: start; flex-direction: column; }
  .pi-contents ol { columns: 1; }
  .pi-consent { align-items: stretch; grid-template-columns: 1fr; }
  .pi-consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-notice,
  .site-header,
  .site-footer,
  .article-sidebar,
  .reading-progress,
  .pi-consent,
  .pi-consent-reopen,
  .pi-button { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .article-header, .article-layout { padding: 1rem 0; }
  .article-body p, .article-body li { color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
}
