:root {
  --ink: #15201f;
  --muted: #5c6867;
  --line: #d8dfdc;
  --paper: #fbfcfa;
  --panel: #ffffff;
  --green: #0f7c68;
  --green-dark: #07594b;
  --blue: #245b8f;
  --amber: #b66a20;
  --red: #9c3c32;
  --shadow: 0 18px 50px rgba(21, 32, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 124, 104, 0.08), transparent 420px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 12px;
  color: white;
  background: var(--green-dark);
  border-radius: 8px;
  font-weight: 900;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.anchor-target,
section[id],
article[id],
h2[id],
h3[id] {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid rgba(216, 223, 220, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 8px;
  font-size: 0.9rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 700;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 68px);
  align-items: center;
  padding-top: clamp(36px, 7vw, 82px);
  padding-bottom: clamp(34px, 6vw, 74px);
}

.section-grid,
.content-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
}

h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: #263432;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
button {
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--green);
}

.button.secondary {
  color: var(--green-dark);
  background: transparent;
  border-color: var(--green);
}

.hero-figure {
  position: relative;
  align-self: stretch;
  display: grid;
  align-content: end;
  min-height: 480px;
  margin: 0;
  padding: clamp(22px, 4vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(135deg, rgba(36, 91, 143, 0.16), rgba(15, 124, 104, 0.2));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-figure::before {
  position: absolute;
  inset: 26px;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(21, 32, 31, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(21, 32, 31, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 72%);
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(21, 32, 31, 0.17));
}

.hero-figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-band div {
  min-height: 138px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 2.4rem;
  line-height: 1;
}

.stats-band span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.editor-note {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-note p {
  min-height: 108px;
  margin: 0;
  padding: 18px;
  color: #33403f;
  background: var(--panel);
  font-size: 0.94rem;
}

.notice {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 22px 24px;
  color: #301d16;
  background: #fff7ed;
  border: 1px solid #e7c5a1;
  border-left: 6px solid var(--amber);
  border-radius: 8px;
}

.notice h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.notice p {
  margin-bottom: 0;
}

.content-section {
  padding: clamp(68px, 9vw, 118px) 0 0;
}

.answer-block {
  padding-top: clamp(54px, 7vw, 86px);
}

.answer-block > div {
  max-width: 960px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.answer-block h2 {
  font-size: clamp(1.8rem, 4vw, 3.8rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
}

.split p {
  color: #33403f;
  font-size: 1.05rem;
}

.term-panel {
  align-self: start;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.term-panel dl {
  margin: 0;
}

.term-panel dt {
  margin-top: 16px;
  font-weight: 900;
}

.term-panel dt:first-child {
  margin-top: 0;
}

.term-panel dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 20px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 31, 0.05);
  text-decoration: none;
}

.guide-card:hover,
.guide-card:focus {
  border-color: rgba(15, 124, 104, 0.48);
}

.guide-card span {
  color: var(--green-dark);
  font-weight: 900;
}

.guide-card strong {
  color: #33403f;
  font-size: 0.98rem;
  line-height: 1.45;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.search-label {
  font-weight: 900;
}

input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.catalog-status {
  margin: -18px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.filter {
  min-height: 42px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--panel);
  border-color: var(--line);
}

.filter.active {
  color: white;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.catalog-group {
  margin-top: 54px;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.group-heading p {
  max-width: 560px;
  color: var(--muted);
}

.card-grid,
.compact-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.peptide-card,
.mini-card,
.evidence-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 31, 0.05);
}

.peptide-card {
  min-height: 224px;
  padding: 20px;
}

.peptide-card.featured {
  border-color: rgba(15, 124, 104, 0.42);
  box-shadow: 0 16px 44px rgba(15, 124, 104, 0.13);
}

.peptide-card h4 a {
  color: var(--ink);
  text-decoration-thickness: 0.06em;
}

.peptide-card p:last-child,
.mini-card p:last-child,
.evidence-grid p:last-child {
  margin-bottom: 0;
}

.sequence {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.tag.synthetic {
  color: #064a40;
  background: #dff2ec;
}

.tag.clinical {
  color: #6d241e;
  background: #f8ded8;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
  min-height: 122px;
  padding: 17px;
}

.mini-card h4 {
  margin-bottom: 7px;
}

.mini-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.clinical-grid .peptide-card {
  min-height: 170px;
}

.empty-state {
  margin: 28px 0 0;
  padding: 18px;
  background: var(--panel);
  border: 1px dashed var(--muted);
  border-radius: 8px;
  font-weight: 800;
}

.evidence-section {
  width: 100%;
  max-width: none;
  margin-top: clamp(68px, 9vw, 118px);
  padding: clamp(58px, 8vw, 96px) max(18px, calc((100vw - 1180px) / 2));
  background: #edf5f2;
}

.evidence-section .section-heading {
  width: min(860px, 100%);
}

.evidence-grid article {
  padding: 24px;
}

.evidence-grid h3 {
  color: var(--green-dark);
}

.evidence-grid p {
  color: #32403e;
}

.comparison-table-wrapper {
  overflow-x: auto;
  scrollbar-color: var(--green-dark) #e7eeeb;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.priority-table {
  margin-bottom: 38px;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison-table caption {
  padding: 15px 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table th {
  color: var(--green-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.faq-section details {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-section details + details {
  margin-top: 10px;
}

.faq-section summary {
  font-weight: 900;
  cursor: pointer;
}

.faq-section details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.source-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  gap: 5px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-list a {
  font-weight: 900;
}

.source-list span {
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--green-dark);
}

body.article-page {
  background:
    linear-gradient(180deg, rgba(36, 91, 143, 0.07), transparent 360px),
    var(--paper);
}

.article-hero {
  padding-top: clamp(42px, 7vw, 86px);
}

.article-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.98;
}

.article-hero .lead {
  max-width: 860px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.article-meta span {
  padding: 7px 10px;
  color: #33403f;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
  padding-top: clamp(42px, 6vw, 72px);
}

.page-toc {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 32, 31, 0.05);
}

.page-toc h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.2;
}

.page-toc nav {
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 800;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  margin-top: 52px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 28px;
  color: var(--green-dark);
}

.article-body p,
.article-body li {
  color: #33403f;
  font-size: 1.04rem;
}

.article-body .notice {
  width: auto;
  margin: 0 0 30px;
}

.callout,
.source-box {
  margin: 26px 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.callout {
  border-left: 6px solid var(--blue);
}

.source-box h2 {
  margin-top: 0;
}

.profile-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  width: 34%;
  color: var(--green-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.term-list li {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.related-card strong {
  color: var(--green-dark);
}

.related-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: clamp(70px, 9vw, 120px) auto 0;
  padding: 26px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .section-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-figure {
    min-height: 360px;
  }

  .stats-band,
  .editor-note,
  .guide-grid,
  .card-grid,
  .compact-grid,
  .evidence-grid,
  .term-list,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-band div:nth-child(2) {
    border-right: 0;
  }

  .stats-band div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .group-heading {
    display: block;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .page-toc {
    position: static;
  }
}

@media (max-width: 680px) {
  .anchor-target,
  section[id],
  article[id],
  h2[id],
  h3[id] {
    scroll-margin-top: 132px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  nav a {
    min-height: 42px;
    padding: 6px 0;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
    line-height: 1.04;
  }

  h2 {
    line-height: 1.08;
  }

  .article-hero h1 {
    font-size: clamp(2.05rem, 10.5vw, 3.4rem);
    line-height: 1.07;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .stats-band,
  .editor-note,
  .guide-grid,
  .card-grid,
  .compact-grid,
  .evidence-grid,
  .term-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-band div:last-child {
    border-bottom: 0;
  }

  .filters {
    display: grid;
  }

  .filter {
    width: 100%;
  }

  .comparison-table,
  .profile-table {
    min-width: 620px;
  }

  .comparison-table th,
  .comparison-table td,
  .profile-table th,
  .profile-table td {
    padding: 12px 11px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
