/* getpept site-wide shared register pieces and baselines, loaded on every page. */

.tscroll { position: relative; }
.two > * { min-width: 0; }
:not(pre) > code { overflow-wrap: anywhere; }

@font-face { font-family: "IBM Plex Sans Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; size-adjust: 100%; }
@font-face { font-family: "IBM Plex Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 102%; }

:root {
  --w: min(1200px, 100% - 96px);
  interpolate-size: allow-keywords;
}
@media (max-width: 780px) {
  :root { --w: calc(100% - 48px); }
}

@media (pointer: coarse) {
  .toolbar input, .toolbar select, .switcher select, .filter-bar input, .filter-bar select, .ex-bar select { font-size: max(16px, 1rem); }
}

/* Dialog modal close button & scroll containment */
.pal-x { display: flex; margin: 0; }
.pal-x button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-block-size: 40px;
  margin: -4px -8px -4px 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-s);
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}
.pal-x button:hover { background: var(--line); color: var(--ink); }
dialog.pal:modal, .pal ul { overscroll-behavior: contain; }
dialog.pal::backdrop { overflow: hidden; overscroll-behavior: contain; }
@media (pointer: coarse) { .pal .foot-hint { display: none; } }

#gp-toast { pointer-events: none; }

@media (forced-colors: active) {
  .nav a[aria-current="page"], .chip[aria-pressed="true"], .sortbar button[aria-pressed="true"],
  .layout-t button[aria-pressed="true"], .cindex a[aria-current="true"], .pal li a[aria-selected="true"],
  .cfilter[aria-pressed="true"], .quad-lens[aria-pressed="true"] {
    outline: 2px solid CanvasText;
    outline-offset: -2px;
  }
}

/* Contact block */
.contact {
  position: relative;
  margin-top: clamp(32px, 5vw, 56px);
  border-radius: var(--r-m);
  background: var(--raise);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 48px);
}
.contact .ct-head .lbl { color: var(--soft); }
.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 10px 0 14px;
  letter-spacing: -0.018em;
  font-family: var(--serif);
  color: var(--ink);
}
.contact .ct-head p, .contact .ct-addr { color: var(--mute); }
.contact .ct-body { align-self: center; }
.contact .ct-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.contact .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--field-border); text-decoration: none; padding-inline: 16px; }
.contact .btn.ghost:hover { border-color: var(--ink); background: var(--plate); }
.contact a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.contact a:not(.btn):hover { text-decoration-color: currentColor; }
.contact .ct-addr b { color: var(--ink); margin-right: 6px; }
.ct-list { list-style: none; margin: 0; padding: 0; align-self: center; }
.ct-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ct-list li:last-child { border-bottom: 0; }
.ct-list .nm { font-weight: 500; color: var(--ink); }
.ct-list .ct-links { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--mute); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* How to cite */
.cite-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 66ch;
}
.cite-line .lbl { flex-basis: 100%; color: var(--soft); font-size: 0.875rem; }
.cite-line .cite-s { flex: 1 1 18rem; overflow-wrap: anywhere; }

/* Unranked score badge */
.score.nr {
  background: var(--plate);
  color: var(--mute);
  border: 1px dashed var(--pencil);
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Latest updates */
.latest {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: var(--raise);
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}
.latest .lt-h { margin: 0 0 6px; font-size: 0.875rem; font-weight: 500; color: var(--soft); }
.latest .lt { list-style: none; margin: 0; padding: 0; }
.latest .lt li { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.latest .lt li:first-child { border-top: 0; }
.latest time { font: 400 0.875rem var(--mono); color: var(--soft); }
.latest .lt li time { padding-top: 2px; }
.latest .lt-none, .latest .lt-more { margin: 0; }
.latest .lt-more { margin-top: 6px; font-size: 0.875rem; color: var(--mute); }
.latest .lt-all { white-space: nowrap; }
@media (max-width: 560px) { .latest .lt li { grid-template-columns: 1fr; gap: 2px; } }
.news-list { margin-top: 28px; max-width: 900px; }
.news-list .nw { min-width: 0; }
.news-list .nw > * { margin: 0 0 6px; }
.news-list .nw > :last-child { margin-bottom: 0; }
.news-list .nw-k { font-size: 0.875rem; color: var(--soft); }
.news-list .nw-h { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.015em; font-family: var(--serif); color: var(--ink); }
.news-list .nw-ch { padding-left: 1.2em; }
.news-list .nw-ch li { display: list-item; padding: 0; border: 0; }
.news-list .nw time { padding: 0; font: inherit; color: inherit; }
@media (max-width: 560px) { .news-list > li { grid-template-columns: 1fr; gap: 4px; } }
.news-list .nw-src, .news-list .nw-about { font-size: 0.875rem; color: var(--mute); overflow-wrap: anywhere; }
.news-list .nw-src .lbl, .news-list .nw-about .lbl { margin-right: 6px; font-size: 0.875rem; color: var(--soft); }
.news-list .nw-none { display: block; }
.news-fine { margin-top: 20px; max-width: 900px; }

.odo .col { align-items: center; }

@media (pointer: coarse), (max-width: 700px) {
  body.clay button, body.clay select, body.clay input { min-block-size: 44px; }
  input[type="checkbox"] { width: 22px; height: 22px; min-block-size: 22px; min-inline-size: 22px; }
}

.lbl:not(.gp-home .lbl) { font: 400 0.875rem/1.35 var(--mono); color: var(--soft); }
.score .per { font-size: 0.875rem; color: var(--soft); }

/* Headings on inner pages: Source Serif 4 */
:where(body.clay main) h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.022em; }
:where(body.clay main) h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }

/* ---------- Shared Register Pieces (Warm Archival Plates, Slips, Bars, Hairlines) ---------- */
.none { color: var(--soft); }

/* Small mono labels (14 px floor) */
.hp-labels, .hc-k, .hp-foot, .rg-t thead th, .k-lbl {
  font: 400 0.875rem/1.4 var(--mono);
  letter-spacing: 0.01em;
}

/* Archival research plate (.hp) */
.hp {
  position: relative;
  aspect-ratio: 1 / 0.94;
  min-height: 540px;
  border-radius: var(--r-m);
  background: var(--plate);
  border: 1px solid var(--line);
  color: var(--ink);
  isolation: isolate;
}
.hp-labels {
  position: absolute;
  inset: 20px 24px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--soft);
  z-index: 2;
}
.hp-big {
  position: absolute;
  left: 24px;
  bottom: 58px;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 7.5rem);
  align-items: end;
  gap: 12px;
}
.hp-big b {
  font: 400 clamp(4rem, 8vw, 6.5rem)/0.85 var(--serif);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hp-big span {
  padding-bottom: 4px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--mute);
}
.hp-foot {
  position: absolute;
  inset: auto 24px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--soft);
}

/* Pinned paper slip (.hc) */
.hp a.hc, a.hc, .hc {
  display: block;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px var(--shadow);
  font: 400 0.875rem/1.45 var(--sans);
}
.hp a.hc:hover, a.hc:hover { color: var(--ink); border-color: var(--pencil); }
.hc-k {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--soft);
  white-space: nowrap;
}
.hc-k i { font-style: normal; text-align: right; white-space: normal; }
.hc-name {
  display: block;
  margin: 0;
  font: 500 1.0625rem/1.3 var(--sans);
  color: var(--ink);
}
.hc-name a { color: inherit; text-decoration: none; }
.hc-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hc-sub { display: block; margin-top: 2px; color: var(--mute); font-size: 0.875rem; }
.hc ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--rule-strong);
  display: grid;
  gap: 7px;
}
.hc li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hc li b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-strong);
}
.hc-total span { flex: 1; }
.hc-total b { font: 400 1.9rem/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hc-total small { color: var(--soft); font-size: 0.875rem; }
.hc .pb { margin-top: 10px; height: 6px; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hc-tags em {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--plate);
  font: 400 0.875rem/1.35 var(--mono);
  font-style: normal;
  color: var(--ink);
}
.hc-tags em:first-child {
  border-color: var(--ink);
  background: var(--raise);
  color: var(--ink);
  font-weight: 500;
}

/* Five-slot score bar: clinical proof in slate ink, patient experience in watercolor slate blue */
@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }
.pb { display: flex; gap: 2px; width: 100%; height: 8px; color: var(--ink); }
.pb i {
  flex: var(--w) 0 0;
  min-width: 0;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(to right, currentColor calc(var(--f) * var(--p, 1) * 1%), var(--line) 0);
}
.pb .pe { color: var(--h2-deep); }

/* Full-bleed archival band (.band) with paper slip */
.band {
  background: var(--plate);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.band-in {
  width: var(--w);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5.5vw, 80px);
  align-items: center;
}
.band-copy { min-width: 0; }
.band-copy .hp-labels { position: static; color: var(--soft); }
.band-copy h2 {
  margin: 20px 0 0;
  font: 400 clamp(1.9rem, 3.2vw, 2.6rem)/1.12 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
.band-copy h2 span { color: var(--mute); }
.band-copy > p { color: var(--mute); }
.band-copy .pb { color: var(--ink); }
.band-copy .pb i { background: linear-gradient(to right, currentColor calc(var(--f) * var(--p, 1) * 1%), var(--line) 0); }
.band-copy .pb .pe { color: var(--h2-deep); }
.band-slip {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-m);
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 8px 24px var(--shadow);
}
.band-slip .rg-t { margin: 0; }
.band-slip .rg-after { margin-top: 12px; }

/* Two-tone section head */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 48px; }
.sec-head h2 {
  margin: 0;
  max-width: 20em;
  font: 400 clamp(1.75rem, 2.8vw, 2.25rem)/1.15 var(--serif);
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--ink);
}
.sec-head h2 span { color: var(--mute); }
.sec-head p { margin: 0; max-width: 28rem; font-size: 0.9375rem; color: var(--mute); }
.rg-after { margin: 14px 0 0; max-width: 46rem; font: 400 0.875rem/1.55 var(--sans); color: var(--mute); }

/* Pill filter and sort controls */
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ex-bar select, .ex-chip {
  height: 40px;
  min-block-size: 40px;
  padding: 0 14px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: var(--raise);
  color: var(--ink);
  font: 400 0.875rem/1 var(--sans);
  cursor: pointer;
}
.ex-bar select {
  padding-right: 34px;
  appearance: none;
  background-color: var(--raise);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.ex-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.ex-chip:hover, .ex-bar select:hover { border-color: var(--ink); }
.ex-chip[aria-pressed="true"]:hover { opacity: 0.92; }
.ex-key { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 16px; margin: 16px 0 0; font-size: 0.875rem; color: var(--mute); }

/* Hairline register tables */
.rg-t { width: 100%; margin: clamp(20px, 3vw, 32px) 0 0; border-collapse: collapse; font: 400 0.9375rem/1.45 var(--sans); }
.rg-t th, .rg-t td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; font-weight: 400; color: var(--ink); }
.rg-t th:last-child, .rg-t td:last-child { padding-right: 0; }
.rg-t thead th { padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rule-strong); color: var(--soft); vertical-align: bottom; }
.rg-t tbody th { font-weight: 500; }
.rg-t tbody th a, .rg-t .lead a { color: var(--ink); text-decoration: none; }
.rg-t tbody tr:hover th a, .rg-t .lead a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rg-t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-t caption { caption-side: top; padding: 0 0 14px; text-align: left; font-size: 0.9375rem; color: var(--mute); }
.rg-t .of { color: var(--soft); }
.rg-top8 .rank { width: 2.4rem; text-align: left; color: var(--soft); }
.rg-top8 tbody th a.rc, .rg-top8 tbody th a.rg-name { display: inline; padding: 0; border: 0; background: none; box-shadow: none; font: 500 1rem/1.3 var(--sans); color: var(--ink); }
.rg-top8 .where { display: block; font-weight: 400; font-size: 0.875rem; color: var(--mute); }
.rg-top8 .score { width: 26%; min-width: 190px; white-space: nowrap; }
.rg-top8 .score b { display: inline-block; width: 2.2ch; font: 400 1.5rem/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; vertical-align: -2px; }
.rg-top8 .score .pb { display: inline-flex; width: calc(100% - 4.2ch); margin-left: 1.2ch; }
.rg-top8 .tier, .rg-top8 .lic { color: var(--mute); }
.rg-sum tbody th, .rg-sum tfoot th { width: 15.5rem; padding-right: 24px; }
.rg-sum td:nth-child(2) { color: var(--mute); }
.rg-sum td:nth-child(2) a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.rg-sum td:nth-child(2) a:hover { text-decoration-color: currentColor; }
.rg-sum tfoot th, .rg-sum tfoot td { padding-top: 16px; padding-bottom: 16px; border-bottom: 0; font-weight: 500; vertical-align: middle; }
.rg-sum tfoot b { font: 400 2.15rem/1 var(--serif); letter-spacing: -0.02em; }
.rg-sum tfoot .of { font-weight: 400; }

@media (max-width: 1080px) {
  .band-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .sec-head p { max-width: none; }
  .hp-foot { flex-direction: column; gap: 4px; }
  .ex-bar { gap: 8px; }
  .ex-bar select, .ex-chip { height: 40px; padding: 0 12px; font-size: 0.875rem; }
  .ex-key { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ex-key .pb { max-width: 180px; }
  .rg-top8 thead { display: none; }
  .rg-top8, .rg-top8 tbody { display: block; }
  .rg-top8 tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .rg-top8 th, .rg-top8 td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .rg-top8 .rank { display: none; }
  .rg-top8 tbody th { grid-column: 1; }
  .rg-top8 .score { grid-column: 2; grid-row: 1; width: 96px; min-width: 0; text-align: right; }
  .rg-top8 .score b { display: block; width: auto; }
  .rg-top8 .score .pb { display: flex; width: 96px; margin: 6px 0 0; }
  .rg-top8 .tier, .rg-top8 .price, .rg-top8 .lic { grid-column: 1 / -1; font-size: 0.875rem; color: var(--mute); }
  .rg-top8 .price:not(:has(.none, .other-price))::before { content: "Peptide program from "; }
  .rg-top8 .price:has(.other-price)::before { content: "Published price: "; }
  .rg-top8 .lic::before { content: "Licenses: "; }
  .rg-top8 .lic:has(.none) { display: none; }
  .rg-top8 .n { text-align: left; }
  .band-slip { padding: 16px; }
  .rg-sum thead { display: none; }
  .rg-sum tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .rg-sum th, .rg-sum td, .rg-sum tbody th, .rg-sum tfoot th { width: auto; padding: 0; border: 0; }
  .rg-sum td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 0.9375rem; }
  .rg-sum tfoot tr { align-items: center; border-bottom: 0; }
}

/* ---------- Motion shared across pages ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .top { view-transition-name: site-header; }
  main h1 { view-transition-name: page-heading; }
  html:active-view-transition-type(rows) { view-transition-name: none; }
  html:active-view-transition-type(rows) main h1 { view-transition-name: none; }
  ::view-transition-group(page-heading) { animation: none; }
  ::view-transition-old(page-heading) { display: none; animation: none; }
  ::view-transition-new(page-heading) { animation: none; opacity: 1; mix-blend-mode: normal; }
  ::view-transition-old(root) { animation: 80ms ease-in both gp-leave; }
  ::view-transition-new(root) { animation: 180ms var(--ease) 60ms both gp-arrive; }
  @keyframes gp-leave { to { opacity: 0; } }
  @keyframes gp-arrive { from { opacity: 0; translate: 0 6px; } }
  .rg-top8 .pb { animation: pb-fill 480ms var(--ease) both; }
  @keyframes hp-card { from { translate: 0 8px; } }
  @keyframes pb-fill { from { --p: 0; } }
  .ex-chip:active { scale: 0.97; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
::view-transition { pointer-events: none; }
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pb, .pb i, .anat-sw { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pb i { position: relative; overflow: hidden; outline: 1px solid var(--pencil); outline-offset: -1px; }
  .pb i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--f) * 1%); border-top: 10px solid currentColor; }
}

:is(a, button, select, input, summary) {
  transition: color var(--fast) ease, background-color var(--fast) ease, border-color var(--fast) ease, text-decoration-color var(--fast) ease;
}

/* Deep-link target highlight */
:target:not(main):not(body) { scroll-margin-top: 32px; outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.band:target { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 0; }
tr:target { outline-offset: -2px; background-color: color-mix(in srgb, var(--h1) 24%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  :target:not(main):not(body):not(.band) { animation: gp-target 1s ease-out 1; }
  @keyframes gp-target { from { background-color: color-mix(in srgb, var(--h1) 36%, transparent); } to { background-color: transparent; } }
}
