/*
Theme Name: Elite Peps Australia Cyber-Clinic
Theme URI: https://elitepepsaustralia.com
Author: Elite Peps Australia
Description: Evidence-led scientific publishing theme for peptide science, clinical trials, regulation and laboratory research.
Version: 2.1.0
License: GNU General Public License v2 or later
Text Domain: elite-peps
WPVibe: yes
*/

:root {
  --ink-950: #07111a;
  --ink-900: #0b1823;
  --ink-800: #142632;
  --ink-700: #273c48;
  --ink-600: #49606b;
  --ink-500: #536b76;
  --paper: #f6f3eb;
  --paper-2: #fffdf8;
  --paper-3: #ece8df;
  --line: #d7d1c6;
  --mineral: #1f6967;
  --mineral-dark: #15504f;
  --copper: #8b571f;
  --copper-soft: #e6c89f;
  --sage: #829488;
  --danger: #7c2e2e;
  --shadow-sm: 0 8px 30px rgba(7, 17, 26, .06);
  --shadow-md: 0 22px 70px rgba(7, 17, 26, .11);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --wrap: 1240px;
  --article: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-950);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--mineral-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--copper-soft); color: var(--ink-950); }

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  left: 18px;
  top: 18px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--paper-2);
  color: var(--ink-950);
  border: 1px solid var(--ink-950);
}

.site-shell { min-height: 100vh; overflow: clip; }
.container { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.container--article { width: min(calc(100% - 40px), var(--article)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mineral);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.site-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-950);
  text-decoration: none;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-950);
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--paper-2);
}
.brand__text { line-height: 1.05; }
.brand__name { display: block; font-weight: 600; letter-spacing: -.02em; }
.brand__descriptor {
  display: block;
  margin-top: 4px;
  color: var(--ink-600);
  font-family: "IBM Plex Mono", monospace;
  font-size: .61rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-nav { justify-self: end; }
.site-nav__list,
.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 25px;
}
.site-nav__list a {
  color: var(--ink-800);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav__list a:hover { color: var(--mineral); }
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink-950);
  color: var(--paper-2);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
}
.header-contact:hover { color: var(--paper-2); background: var(--mineral-dark); }

.hero {
  position: relative;
  padding: 94px 0 70px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 18%, rgba(31, 105, 103, .13), transparent 31%),
    radial-gradient(circle at 18% 78%, rgba(187, 126, 56, .08), transparent 28%),
    linear-gradient(90deg, transparent 0 49.9%, rgba(7,17,26,.035) 50%, transparent 50.1%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  align-items: end;
  gap: 72px;
}
.hero h1 {
  max-width: 900px;
  margin: 18px 0 24px;
  font-family: "Newsreader", serif;
  font-size: clamp(3.4rem, 7vw, 7.2rem);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 600;
}
.hero h1 em { color: var(--mineral); font-style: italic; font-weight: 500; }
.hero__lead {
  max-width: 710px;
  margin: 0;
  color: var(--ink-700);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-search {
  display: flex;
  width: min(100%, 710px);
  margin-top: 18px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
}
.hero-search:focus-within {
  border-color: var(--mineral);
  box-shadow: 0 0 0 3px rgba(31,105,103,.13);
}
.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-950);
  font: inherit;
}
.hero-search input::placeholder { color: var(--ink-500); }
.hero-search button {
  min-height: 43px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  background: var(--mineral-dark);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}
.hero-search button:hover { background: var(--ink-950); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink-950); color: var(--paper-2); border: 1px solid var(--ink-950); }
.btn--dark:hover { color: var(--paper-2); background: var(--mineral-dark); border-color: var(--mineral-dark); }
.btn--ghost { color: var(--ink-950); border: 1px solid var(--ink-600); background: transparent; }
.btn--ghost:hover { border-color: var(--mineral); color: var(--mineral-dark); }

.hero-note {
  position: relative;
  padding: 27px;
  border-radius: var(--radius-md);
  background: var(--ink-950);
  color: var(--paper-2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-note::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: -54px;
  top: -60px;
}
.hero-note__label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .67rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #a7d4d1;
}
.hero-note__title {
  margin: 48px 0 12px;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero-note p { color: #c9d2d6; font-size: .91rem; margin: 0; }
.hero-note__rule { width: 100%; height: 1px; background: rgba(255,255,255,.12); margin: 22px 0; }
.hero-note__meta { display: flex; justify-content: space-between; gap: 16px; color: #93a5ad; font-size: .72rem; }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust-strip__inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
  color: var(--ink-700);
  font-size: .82rem;
}
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--ink-950); font-size: .92rem; }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mineral); box-shadow: 0 0 0 5px rgba(31,105,103,.10); flex: 0 0 auto; }

.section { padding: 88px 0; }
.section--tight { padding: 62px 0; }
.section--ink { background: var(--ink-950); color: var(--paper-2); }
.section--paper2 { background: var(--paper-2); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 36px;
}
.section-head h2 {
  margin: 10px 0 0;
  font-family: "Newsreader", serif;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 600;
}
.section-head p { color: var(--ink-600); margin: 0; max-width: 480px; }
.section--ink .section-head p { color: #a9b7bd; }
.section--ink .eyebrow { color: #8bd0ca; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card {
  position: relative;
  min-height: 255px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,253,248,.56);
  text-decoration: none;
  color: var(--ink-950);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: #b6b0a5; color: var(--ink-950); }
.topic-card__index { font-family: "IBM Plex Mono", monospace; color: var(--copper); font-size: .72rem; letter-spacing: .08em; }
.topic-card h3 { margin: 70px 0 9px; font-family: "Newsreader", serif; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.03em; }
.topic-card p { color: var(--ink-600); font-size: .85rem; line-height: 1.55; margin: 0; }
.topic-card__arrow { position: absolute; right: 22px; top: 20px; font-size: 1.2rem; color: var(--ink-500); }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.profile-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 320px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0e1d28;
  color: var(--paper-2);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.profile-card:hover { transform: translateY(-4px); color: var(--paper-2); border-color: rgba(139,208,202,.6); }
.profile-card__media {
  min-height: 145px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(139,208,202,.18), transparent 37%),
    linear-gradient(135deg, #132b35, #0a151f);
}
.profile-card__media img { max-height: 120px; width: auto; object-fit: contain; filter: saturate(.75); }
.profile-card__content { padding: 22px; }
.profile-card__kicker { color: #8bd0ca; font-family: "IBM Plex Mono", monospace; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.profile-card h3 { margin: 9px 0 7px; font-family: "Newsreader", serif; font-size: 1.7rem; line-height: 1.05; }
.profile-card p { color: #aab9bf; font-size: .82rem; line-height: 1.55; margin: 0; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  text-decoration: none;
  color: var(--ink-950);
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { color: var(--ink-950); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.article-card__meta { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-500); font-family: "IBM Plex Mono", monospace; font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; }
.article-card h3 { margin: 56px 0 13px; font-family: "Newsreader", serif; font-size: 1.85rem; line-height: 1.04; letter-spacing: -.035em; }
.article-card p { color: var(--ink-600); font-size: .86rem; line-height: 1.62; margin: 0 0 20px; }
.article-card__read { margin-top: auto; color: var(--mineral-dark); font-size: .8rem; font-weight: 600; }

.editorial-band {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: center;
  padding: 52px;
  border-radius: var(--radius-lg);
  background: #e5e0d4;
  border: 1px solid #cec7ba;
}
.editorial-band__number { font-family: "Newsreader", serif; font-size: clamp(6rem, 12vw, 10rem); line-height: .7; letter-spacing: -.08em; color: var(--mineral-dark); }
.editorial-band h2 { margin: 0 0 14px; font-family: "Newsreader", serif; font-size: clamp(2.1rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.04em; }
.editorial-band p { margin: 0; color: var(--ink-700); }
.editorial-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.editorial-principle { border-top: 1px solid #bcb5a9; padding-top: 12px; color: var(--ink-700); font-size: .78rem; }
.editorial-principle strong { display: block; color: var(--ink-950); margin-bottom: 4px; }

.page-hero,
.article-hero,
.profile-hero {
  padding: 74px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1,
.article-hero h1,
.profile-hero h1 {
  max-width: 980px;
  margin: 14px 0 18px;
  font-family: "Newsreader", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 600;
}
.article-hero__meta,
.profile-hero__meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--ink-600); font-size: .78rem; }
.article-hero__meta span + span::before,
.profile-hero__meta span + span::before { content: "•"; margin-right: 16px; color: var(--copper); }

.content-layout { display: grid; grid-template-columns: minmax(0, var(--article)) minmax(220px, 1fr); gap: 72px; align-items: start; }
.prose { font-size: 1.03rem; color: var(--ink-800); }
.prose > *:first-child { margin-top: 0; }
.prose h2,
.prose h3,
.prose h4 {
  font-family: "Newsreader", serif;
  color: var(--ink-950);
  line-height: 1.08;
  letter-spacing: -.03em;
  scroll-margin-top: 105px;
}
.prose h2 { margin: 2.2em 0 .55em; font-size: 2.45rem; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.75rem; }
.prose h4 { margin: 1.6em 0 .5em; font-size: 1.35rem; }
.prose p { margin: 0 0 1.35em; }
.prose ul, .prose ol { padding-left: 1.25em; margin-bottom: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 2em 0;
  padding: 3px 0 3px 24px;
  border-left: 2px solid var(--copper);
  font-family: "Newsreader", serif;
  font-size: 1.42rem;
  line-height: 1.35;
  color: var(--ink-700);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: .88rem; background: var(--paper-2); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose th { background: #ebe7de; color: var(--ink-950); }
.prose figure { margin: 2em 0; }
.prose figcaption { color: var(--ink-500); font-size: .75rem; margin-top: 8px; }
.prose code { background: #e9e4da; padding: 2px 5px; border-radius: 5px; font-family: "IBM Plex Mono", monospace; font-size: .82em; }

.article-aside {
  position: sticky;
  top: 108px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,253,248,.66);
}
.article-aside__label { font-family: "IBM Plex Mono", monospace; color: var(--mineral); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.article-aside p { color: var(--ink-600); font-size: .78rem; line-height: 1.55; margin: 12px 0 0; }
.article-aside hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.article-aside a { font-size: .78rem; font-weight: 600; }

.notice {
  padding: 18px 20px;
  border: 1px solid #d6c3a8;
  border-radius: var(--radius-sm);
  background: #f1e8db;
  color: #5e4930;
  font-size: .82rem;
  line-height: 1.55;
}
.notice strong { color: #49351f; }
.notice + .notice { margin-top: 14px; }
.notice--alert {
  border-color: #c77a68;
  background: #fff0ec;
  color: #703b32;
}
.notice--alert strong { color: #5a2923; }
.notice--alert a { color: #5a2923; font-weight: 700; }
.article-hero__topics a { color: inherit; text-decoration-color: rgba(255,255,255,.45); }

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-2);
}
.profile-summary__item { padding: 18px 20px; border-right: 1px solid var(--line); }
.profile-summary__item:last-child { border-right: 0; }
.profile-summary__label { display: block; font-family: "IBM Plex Mono", monospace; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: 6px; }
.profile-summary__value { display: block; color: var(--ink-950); font-weight: 600; font-size: .86rem; }

.archive-head { padding: 68px 0 36px; }
.archive-head h1 { margin: 10px 0 0; font-family: "Newsreader", serif; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.05em; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 82px; }
.pagination { margin: 22px 0 78px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .76rem; }
.pagination .current { background: var(--ink-950); color: var(--paper-2); border-color: var(--ink-950); }

.contact-form input,
.contact-form textarea,
.contact-form select,
.prose input,
.prose textarea,
.prose select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bdb6aa;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-950);
}
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .82rem; }
.contact-form button,
.prose button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-950);
  color: var(--paper-2);
  font-weight: 600;
  cursor: pointer;
}

.site-footer { background: #07111a; color: #d3dcdf; padding: 58px 0 24px; }
.site-footer .eyebrow { color: #8bd0ca; }
.site-footer__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; padding-bottom: 42px; }
.site-footer__title { font-family: "Newsreader", serif; font-size: 2.7rem; line-height: 1; letter-spacing: -.04em; color: var(--paper-2); margin: 0 0 16px; max-width: 600px; }
.site-footer p { color: #96a8af; max-width: 620px; font-size: .86rem; }
.footer-nav__list { justify-content: flex-end; flex-wrap: wrap; }
.footer-nav__list a { color: #cbd5d9; text-decoration: none; font-size: .8rem; }
.footer-nav__list a:hover { color: #8bd0ca; }
.footer-contact { display: inline-block; margin-top: 12px; color: #8bd0ca; text-decoration: none; font-weight: 600; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11); color: #71858d; font-size: .68rem; }

.empty-state { padding: 70px 0 100px; text-align: center; }
.empty-state h1 { font-family: "Newsreader", serif; font-size: 4rem; letter-spacing: -.05em; margin: 0 0 14px; }
.empty-state p { color: var(--ink-600); }

@media (max-width: 1060px) {
  .site-header__inner { grid-template-columns: auto 1fr; }
  .header-contact { display: none; }
  .site-nav__list { gap: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-note { max-width: 560px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid, .article-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-aside { position: static; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container, .container--article { width: min(calc(100% - 28px), var(--wrap)); }
  .site-header__inner { min-height: 70px; }
  .brand__descriptor { display: none; }
  .site-nav { overflow-x: auto; width: 100%; grid-column: 1 / -1; padding-bottom: 12px; }
  .site-header__inner { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 0 0; }
  .site-nav__list { min-width: max-content; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 5.8rem); }
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-bottom: 1px solid var(--line); }
  .section { padding: 66px 0; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .editorial-band { grid-template-columns: 1fr; gap: 32px; padding: 34px; }
  .editorial-principles { grid-template-columns: 1fr; }
  .profile-summary { grid-template-columns: repeat(2, 1fr); }
  .profile-summary__item:nth-child(2) { border-right: 0; }
  .profile-summary__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-nav__list { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .topic-grid, .profile-grid, .article-grid, .archive-grid { grid-template-columns: 1fr; }
  .trust-strip__inner { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { border-left: 0; border-right: 0; }
  .profile-summary { grid-template-columns: 1fr; }
  .profile-summary__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-summary__item:last-child { border-bottom: 0; }
  .page-hero, .article-hero, .profile-hero { padding: 54px 0 38px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* === Elite Peps Evidence Atlas visual system === */
:root {
  --line-strong: #b9b2a7;
  --teal-light: #8bd0ca;
  --teal-wash: #dceceb;
  --copper-wash: #f0dfca;
  --sage-wash: #e2e8e2;
}

.brand__mark {
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--teal-light);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 9px 24px rgba(7,17,26,.14);
  transition: transform .25s ease, background .25s ease;
}
.brand__mark svg { display: block; width: 100%; height: 100%; }
.brand:hover .brand__mark { transform: rotate(4deg); background: var(--mineral-dark); }
.brand__descriptor { letter-spacing: .095em; }

.topic-card__visual {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 88px;
  height: 88px;
  color: var(--mineral);
  opacity: .76;
  transition: transform .24s ease, opacity .24s ease;
}
.topic-card__visual svg { width: 100%; height: 100%; display: block; }
.topic-card:hover .topic-card__visual { transform: translate3d(-4px,-4px,0) rotate(-2deg); opacity: 1; }
.topic-card h3 { max-width: 78%; margin-top: 62px; }
.topic-card p { max-width: 77%; }

.article-hero { position: relative; overflow: hidden; }
.article-hero--visual {
  padding: 68px 0;
  color: var(--paper-2);
  background:
    radial-gradient(circle at 10% 0%, rgba(31,105,103,.30), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(139,87,31,.22), transparent 35%),
    var(--ink-950);
  border-bottom: 0;
}
.article-hero--visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg,#000,transparent 70%);
}
.article-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
  gap: clamp(36px,6vw,88px);
  align-items: center;
}
.article-hero:not(.article-hero--visual) .article-hero__grid { grid-template-columns: 1fr; }
.article-hero--visual h1 { color: var(--paper-2); font-size: clamp(2.8rem,5vw,5.4rem); }
.article-hero--visual .eyebrow { color: var(--teal-light); }
.article-deck {
  max-width: 770px;
  margin: 0 0 24px;
  color: var(--ink-600);
  font-family: "Newsreader", serif;
  font-size: clamp(1.12rem,1.8vw,1.42rem);
  line-height: 1.45;
}
.article-hero--visual .article-deck { color: #c4d0d4; }
.article-hero--visual .article-hero__meta { color: #8fa2aa; }
.article-hero__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: 30px;
  background: #0d202a;
  box-shadow: 0 32px 80px rgba(0,0,0,.34);
}
.article-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: inherit;
  pointer-events: none;
}
.article-hero__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero__media figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(7,17,26,.78);
  color: #d8e2e4;
  font: 500 .57rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.article-body { position: relative; }
.article-body::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 calc(50% + 105px);
  width: 1px;
  background: linear-gradient(var(--line),transparent 12%,transparent 88%,var(--line));
  pointer-events: none;
}
.article-aside__facts { margin: 0; }
.article-aside__facts div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.article-aside__facts div:last-child { border-bottom: 0; }
.article-aside__facts dt { color: var(--ink-500); font-size: .7rem; }
.article-aside__facts dd { margin: 0; color: var(--ink-950); font-size: .7rem; font-weight: 600; text-align: right; }

.prose .atlas-summary {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 28px;
  margin: 0 0 2.4em;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #c6ddd9;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 95% 5%, rgba(31,105,103,.13), transparent 34%),
    #edf5f3;
}
.atlas-summary::after {
  content: "01";
  align-self: center;
  justify-self: end;
  font-family: "Newsreader", serif;
  font-size: clamp(5rem,12vw,8rem);
  line-height: .7;
  letter-spacing: -.08em;
  color: rgba(31,105,103,.16);
}
.atlas-summary__label,
.visual-label {
  display: block;
  margin-bottom: 10px;
  color: var(--mineral-dark);
  font: 600 .64rem/1.3 "IBM Plex Mono", monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.prose .atlas-summary h2 { margin: 0 0 12px; font-size: 2rem; }
.prose .atlas-summary p:last-child { margin-bottom: 0; }

.prose .visual-explainer {
  margin: 2.4em 0;
  padding: clamp(22px,4vw,36px);
  border-radius: var(--radius-md);
  color: var(--paper-2);
  background:
    radial-gradient(circle at 95% 0%, rgba(31,105,103,.28), transparent 32%),
    linear-gradient(145deg,#07111a,#102630);
  box-shadow: var(--shadow-md);
}
.prose .visual-explainer h2,
.prose .visual-explainer h3 { color: var(--paper-2); margin-top: 0; }
.prose .visual-explainer p { color: #b9c7cc; }
.visual-explainer .visual-label { color: var(--teal-light); }

.term-map {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
.term-map__wrong,
.term-map__right {
  padding: 22px;
  border-radius: 16px;
}
.term-map__wrong { background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.22); }
.term-map__right { background: rgba(139,208,202,.10); border: 1px solid rgba(139,208,202,.35); }
.term-map__word { display: block; font-family: "Newsreader", serif; font-size: clamp(2.3rem,5vw,4.2rem); line-height: .95; }
.term-map__caption { display: block; margin-top: 12px; color: #92a6ae; font-size: .75rem; }
.signal-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; }
.signal-chip { padding: 12px 9px; border-radius: 10px; text-align: center; font: 600 .72rem/1.25 "IBM Plex Mono", monospace; }
.signal-chip--teal { background: #1f6967; color: #fff; }
.signal-chip--copper { background: #8b571f; color: #fff; }
.signal-chip--sage { background: #829488; color: #07111a; }

.receptor-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 1.8em 0 2.2em; }
.receptor-card {
  position: relative;
  min-height: 245px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
}
.receptor-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent,var(--mineral)); }
.receptor-card--glp { --accent: var(--mineral); }
.receptor-card--gip { --accent: var(--copper); }
.receptor-card--gcg { --accent: var(--sage); }
.receptor-card__code { color: var(--accent); font: 600 .63rem/1 "IBM Plex Mono", monospace; letter-spacing: .1em; }
.prose .receptor-card h3 { margin: 34px 0 10px; font-size: 1.55rem; }
.prose .receptor-card p { color: var(--ink-600); font-size: .82rem; line-height: 1.55; margin: 0; }

.evidence-ladder { display: grid; gap: 10px; margin: 1.8em 0 2.4em; counter-reset: evidence; }
.evidence-step {
  counter-increment: evidence;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
}
.evidence-step::before {
  content: counter(evidence,decimal-leading-zero);
  color: var(--mineral);
  font: 600 .67rem/1 "IBM Plex Mono", monospace;
}
.evidence-step strong { display: block; font-size: .88rem; }
.evidence-step span { color: var(--ink-500); font-size: .74rem; }
.evidence-step__state { padding: 5px 9px; border-radius: 999px; background: var(--paper-3); color: var(--ink-700) !important; font: 600 .58rem/1.2 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }

.data-chart {
  margin: 2em 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f2eee5;
}
.data-chart__head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.data-chart__head strong { font-family: "Newsreader",serif; font-size: 1.5rem; line-height: 1.1; }
.data-chart__head span { color: var(--ink-500); font: .62rem/1.3 "IBM Plex Mono",monospace; text-transform: uppercase; letter-spacing: .07em; text-align: right; }
.data-chart__plot { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: end; min-height: 255px; padding-top: 16px; border-bottom: 1px solid var(--ink-700); }
.data-bar { display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 8px; height: 235px; text-align: center; }
.data-bar__fill { width: min(72px,70%); height: calc(var(--value) * 8px); max-height: 194px; min-height: 8px; margin-inline: auto; border-radius: 10px 10px 0 0; background: var(--bar,var(--mineral)); box-shadow: inset 0 1px rgba(255,255,255,.35); }
.data-bar strong { font-family: "Newsreader",serif; font-size: 1.2rem; }
.data-bar span { color: var(--ink-600); font-size: .68rem; }
.data-chart figcaption { margin-top: 14px; }

.status-panel {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: 2.2em 0;
  overflow: hidden;
  border: 1px solid #c9b89f;
  border-radius: 20px;
  background: #f4eadb;
}
.status-panel__item { padding: 20px; border-right: 1px solid #c9b89f; }
.status-panel__item:last-child { border-right: 0; }
.status-panel__label { display: block; margin-bottom: 7px; color: var(--copper); font: 600 .6rem/1.2 "IBM Plex Mono",monospace; text-transform: uppercase; letter-spacing: .08em; }
.status-panel strong { font-size: .88rem; }

.takeaway-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 1.8em 0; }
.takeaway {
  padding: 19px;
  border-left: 3px solid var(--mineral);
  border-radius: 0 14px 14px 0;
  background: var(--teal-wash);
}
.takeaway:nth-child(2n) { border-left-color: var(--copper); background: var(--copper-wash); }
.takeaway strong { display: block; margin-bottom: 6px; color: var(--ink-950); }
.takeaway span { display: block; color: var(--ink-700); font-size: .78rem; line-height: 1.5; }

.faq-stack { margin: 2em 0; border-top: 1px solid var(--line); }
.faq-stack details { border-bottom: 1px solid var(--line); }
.faq-stack summary {
  position: relative;
  padding: 19px 42px 19px 0;
  cursor: pointer;
  color: var(--ink-950);
  font-family: "Newsreader",serif;
  font-size: 1.18rem;
  font-weight: 600;
  list-style: none;
}
.faq-stack summary::-webkit-details-marker { display: none; }
.faq-stack summary::after { content: "+"; position: absolute; right: 4px; top: 18px; color: var(--mineral); font: 400 1.4rem/1 "IBM Plex Sans",sans-serif; }
.faq-stack details[open] summary::after { content: "–"; }
.faq-stack details p { padding-right: 34px; color: var(--ink-700); }

.source-list { counter-reset: source; list-style: none !important; padding: 0 !important; }
.source-list li { counter-increment: source; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.source-list li::before { content: "[" counter(source) "]"; color: var(--mineral); font: 600 .65rem/1.7 "IBM Plex Mono",monospace; }
.source-list a { word-break: break-word; }

@media (max-width: 1060px) {
  .article-hero__grid { grid-template-columns: 1fr; }
  .article-hero__media { max-width: 760px; aspect-ratio: 16/9; }
  .article-body::before { display: none; }
}

@media (max-width: 760px) {
  .brand__mark { width: 42px; height: 42px; }
  .article-hero--visual { padding: 48px 0; }
  .prose .atlas-summary,
  .term-map { grid-template-columns: 1fr; }
  .atlas-summary::after { display: none; }
  .receptor-grid { grid-template-columns: 1fr; }
  .receptor-card { min-height: 0; }
  .status-panel { grid-template-columns: 1fr; }
  .status-panel__item { border-right: 0; border-bottom: 1px solid #c9b89f; }
  .status-panel__item:last-child { border-bottom: 0; }
  .takeaway-grid { grid-template-columns: 1fr; }
  .evidence-step { grid-template-columns: 36px 1fr; }
  .evidence-step__state { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .article-hero__media { border-radius: 20px; }
  .signal-row { grid-template-columns: 1fr; }
  .data-chart { padding: 20px 14px; }
  .data-chart__head { align-items: start; flex-direction: column; }
  .data-chart__head span { text-align: left; }
  .data-chart__plot { gap: 6px; }
  .data-bar__fill { width: min(54px,72%); }
}

@media print {
  .site-header, .site-footer, .article-aside, .related-reading { display: none !important; }
  .article-hero--visual { color: #000; background: #fff; padding: 24px 0; }
  .article-hero--visual h1 { color: #000; }
  .article-hero__media { box-shadow: none; }
  .content-layout { display: block; }
  .visual-explainer { color: #000 !important; background: #fff !important; border: 1px solid #777; box-shadow: none !important; }
}


/* Atlas mobile containment and reading polish */
.prose { min-width: 0; }
.table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 1.8em 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  scrollbar-width: thin;
  scrollbar-color: var(--mineral) var(--paper-3);
}
.table-scroll table { min-width: 720px; margin: 0; border: 0; }
.table-scroll th:first-child,
.table-scroll td:first-child { border-left: 0; }
.table-scroll th:last-child,
.table-scroll td:last-child { border-right: 0; }
.site-nav { scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }

@media (max-width: 560px) {
  .article-hero--visual h1 { font-size: clamp(2.35rem, 12vw, 3rem); line-height: .94; }
  .article-deck { font-size: 1.04rem; }
  .site-nav__list { gap: 14px; padding-right: 12px; }
  .site-nav__list a { font-size: .76rem; }
  .prose { overflow-wrap: anywhere; }
}
