/**
 * Peptides — component design system.
 *
 * Tokens (colour, type, spacing) live in theme.json and surface here as
 * `--wp--preset--*` custom properties. This file only styles composition the
 * block system cannot express on its own: the fixed chrome bars, the video
 * hero, the utility rows and the product card. Nothing here hard-codes a hex
 * that theme.json does not already define.
 *
 * @package Peptides
 */

:root {
  --pep-ink-deep: var(--wp--preset--color--ink-deep);
  --pep-ink: var(--wp--preset--color--ink);
  --pep-paper: var(--wp--preset--color--paper);
  --pep-paper-warm: var(--wp--preset--color--paper-warm);
  --pep-line: var(--wp--preset--color--line);
  --pep-brass: var(--wp--preset--color--brass);
  --pep-sage: var(--wp--preset--color--sage);
  --pep-eyebrow-tracking: 0.2em;
  --pep-shell: 1280px;
}

/* --------------------------------------------------------------------------
   Utility type
   -------------------------------------------------------------------------- */
.pep-eyebrow {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--pep-eyebrow-tracking);
  text-transform: uppercase;
  color: #6E5626; /* darkened brass so the small label clears AA on cream/paper */
  margin: 0;
}
/* On the dark hero + green bands the original brass has ample contrast. */
.pep-hero .pep-eyebrow { color: var(--pep-brass); }

/* --------------------------------------------------------------------------
   Announcement + research-use bar (top of every page)
   -------------------------------------------------------------------------- */
.pep-announce {
  background: var(--pep-ink-deep) !important;
}
.pep-announce > .wp-block-group__inner-container,
.pep-announce {
  --wp--style--block-gap: 0;
}
.pep-announce__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--pep-shell);
  margin-inline: auto;
  padding-block: 8px;
  flex-wrap: wrap;
}
.pep-announce__row p {
  margin: 0;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pep-sage);
}
.pep-announce__row .pep-ruo {
  color: var(--pep-paper);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Masthead: wordmark + navigation + utility icons
   -------------------------------------------------------------------------- */
.pep-masthead {
  border-bottom: 1px solid var(--pep-line);
  background: var(--pep-paper);
}
.pep-masthead__row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: var(--pep-shell);
  margin-inline: auto;
  padding-block: 1.25rem;
}
.pep-brand a,
.pep-brand {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pep-ink) !important;
  text-decoration: none;
  white-space: nowrap;
}
.pep-utility {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--pep-ink);
}
.pep-utility a { color: inherit; text-decoration: none; }

/* --------------------------------------------------------------------------
   Quick-pick strip
   -------------------------------------------------------------------------- */
.pep-quickpick {
  background: var(--pep-paper-warm);
  border-bottom: 1px solid var(--pep-line);
}
.pep-quickpick__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--pep-shell);
  margin-inline: auto;
  padding-block: 0.65rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.75rem;
}
.pep-quickpick__label {
  color: var(--wp--preset--color--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pep-chip {
  border: 1px solid var(--pep-line);
  border-radius: 2px;
  padding: 0.3rem 0.85rem;
  color: var(--pep-ink);
  text-decoration: none;
  background: var(--pep-paper);
  transition: background 0.15s ease, color 0.15s ease;
}
.pep-chip:hover,
.pep-chip[aria-current="true"] { background: var(--pep-ink); color: var(--pep-paper); }
.pep-quickpick__spacer { flex: 1; }

/* --------------------------------------------------------------------------
   Hero (compliant abstract video, dark scrim, left content)
   -------------------------------------------------------------------------- */
.pep-hero {
  position: relative;
  overflow: hidden;
  background: var(--pep-ink-deep);
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.pep-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pep-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,31,22,0.86) 0%, rgba(11,31,22,0.55) 48%, rgba(11,31,22,0.2) 100%);
}
.pep-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 5rem;
}
.pep-hero__title {
  font-family: var(--wp--preset--font-family--display);
  color: var(--pep-paper);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  max-width: 15ch;
  margin: 0.6rem 0 0;
}
.pep-hero__lead {
  color: var(--pep-sage);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 1.25rem 0 0;
}
.pep-hero__cta { margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) {
  .pep-hero__video { display: none; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
/* Legacy .pep-btn* aliased to the ONE canonical pill (theme.json elements.button + .btn),
   so any pattern/DB block using .pep-btn renders identically to .btn — no separate system. */
.pep-btn .wp-block-button__link {
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
}
.pep-btn--light .wp-block-button__link {
  background: var(--pep-paper);
  color: var(--pep-ink);
}
.pep-btn--light .wp-block-button__link:hover { background: var(--pep-paper-warm); }
/* Ghost: readable dark text on light bands by default, cream only on dark/ink bands. */
.pep-btn--ghost .wp-block-button__link {
  background: transparent;
  color: var(--maroon-darkest);
  border: 1px solid color-mix(in srgb, var(--maroon-darkest) 32%, transparent);
}
.pep-btn--ghost .wp-block-button__link:hover { background: color-mix(in srgb, var(--maroon-darkest) 6%, transparent); }
.on-dark .pep-btn--ghost .wp-block-button__link,
[class*="ink"] .pep-btn--ghost .wp-block-button__link {
  color: var(--cream);
  border-color: color-mix(in srgb, var(--cream) 45%, transparent);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
/* One section rhythm site-wide: the v1 --pad-y token (was a shorter divergent clamp). */
.pep-section { padding-block: var(--pad-y); }
/* Full-width bands stack FLUSH. The WordPress flow-layout blockGap (1.5rem) added a top
   margin between the header, every coloured band and the footer, so the page background
   showed through as a white/cream stripe between sections. v1 has no such gap — each band's
   spacing is its own padding-block:var(--pad-y). Zero the flow gap between BANDS only:
   - .wp-site-blocks children  -> header / main / footer sit flush
   - direct children of a band CONTAINER (main when it is not itself a single band, and the
     post-content wrapper) -> coloured bands butt together
   Single-band templates (shop / PLP, whose <main> IS the .pep-section band) are excluded via
   :not(.pep-section) so their inner content (header, grid) keeps its intended spacing. */
.wp-site-blocks > * { margin-block: 0 !important; }
main:not(.pep-section) > *,
.wp-block-post-content > * { margin-block: 0 !important; }
.pep-section { margin-block: 0 !important; }
.pep-section__eyebrow { margin-bottom: 0.75rem; }
/* Section titles use the v1 .h2 scale/weight so subpage headings match the homepage. */
.pep-section__title {
  font-family: var(--wp--preset--font-family--display);
  color: var(--pep-ink);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

/* --------------------------------------------------------------------------
   Product loop — a plain grid of the ONE shared .prod card
   (inc/render/product-card.php + woocommerce/content-product.php). The card itself
   is the ported v1 .prod component (below); this block only lays out the grid and
   neutralises WooCommerce's default float/width so the same card renders on the
   shop archive, every collection PLP, related-products and the homepage.
   -------------------------------------------------------------------------- */
/* Product loop — centered wrapping flex so few-product collections self-balance
   (auto-fill grid left empty tracks + a lone card marooned at the left). */
ul.products {
  /* CSS grid = reliable exactly-4 columns (owner request), globally. Grid ignores WooCommerce's
     .first{clear:both} loop class, which was corrupting the old flex-wrap (3 in row 1, 4 after). */
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* WooCommerce's clearfix ::before/::after become phantom GRID ITEMS in a grid container, taking the
   first + last cells (which staggered the cards 3,4,4,4,1). Remove them so auto-placement is clean. */
ul.products::before, ul.products::after { content: none !important; display: none !important; }
@media (max-width: 1080px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Sophia 2026-08-24 mobile redesign: keep TWO products per row on phones (was 1-up), with a
   tighter gutter so both cards fit cleanly on a narrow screen. */
@media (max-width: 480px)  { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem .8rem; } }
ul.products li.product {
  /* Grid controls the column width; the item just fills its track and stretches to equal height. */
  display: flex;
  min-width: 0;
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: none;
}
ul.products li.product .prod { width: 100%; }
/* Card image rule is canonical in theme-store.css (.prod__well img — absolutely positioned so it
   fills the aspect-ratio well without overflowing the name text). Duplicate removed here to avoid drift. */
/* Indicative pricing note (also used on the PDP until it moves to the .prod__price token). */
.pep-indicative {
  display: block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .pep-masthead__row { flex-wrap: wrap; gap: 1rem; }
  .pep-announce__row { justify-content: center; text-align: center; }
  .pep-hero { min-height: 68vh; }
}

/* --------------------------------------------------------------------------
   Breadcrumbs (pep/breadcrumbs)
   -------------------------------------------------------------------------- */
.pep-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8rem;
  margin: 0 0 1.5rem;
}
.pep-crumbs__link { color: var(--wp--preset--color--muted); text-decoration: none; }
.pep-crumbs__link:hover { color: var(--wp--preset--color--accent); }
.pep-crumbs__sep { color: #C9C5BA; }
.pep-crumbs__here { color: var(--wp--preset--color--body); font-weight: 500; }

/* --------------------------------------------------------------------------
   Collection PLP header (pep/collection-header)
   -------------------------------------------------------------------------- */
/* Two-column category hero: intro (left) + identity snapshot card (right). A ~145-word centred
   intro read as a wall of text; left-aligning it at a ~60ch measure restores readability, and a
   compact identity-only snapshot fills the space a left measure would otherwise leave empty. The
   snapshot is collection-scoped (compound count, the family's shared form, research posture), so it
   summarises the family rather than repeat the per-compound table or the documentation strip below.
   No price/stock/offer (D25); no media, so it never echoes the product vial/card directly beneath. */
.pep-coll-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 30%, 360px);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 2.75rem;
}
.pep-coll-header__title {
  font-family: var(--wp--preset--font-family--display);
  color: var(--pep-ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.4rem 0 0;
}
.pep-coll-header__intro {
  color: var(--wp--preset--color--muted);
  max-width: 60ch;          /* comfortable LEFT-aligned measure (was 68ch, centred) */
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0.9rem 0 0;
}
/* Right column: dark identity snapshot card (mirrors the home-hero palette). */
.pep-coll-snapshot {
  background: var(--maroon);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow);
}
.pep-coll-snapshot__eyebrow { color: var(--pep-brass); margin: 0 0 1rem; }
.pep-coll-snapshot__stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--hairline-on-dark);
}
.pep-coll-snapshot__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--cream);
}
.pep-coll-snapshot__stat-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}
.pep-coll-snapshot__list { margin: 0; }
.pep-coll-snapshot__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: var(--hairline-on-dark);
}
.pep-coll-snapshot__row:last-child { border-bottom: 0; }
.pep-coll-snapshot__row dt {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--cream) 66%, transparent);
}
.pep-coll-snapshot__row dd {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
  color: var(--cream);
}
@media (max-width: 860px) {
  .pep-coll-header { grid-template-columns: 1fr; gap: 1.75rem; }
  .pep-coll-snapshot { max-width: 460px; }
}
/* Woo prints its own "Showing all N results" + ordering select; the styled
   count + (deferred) sort replace them, so hide the defaults to avoid doubling. */
.woocommerce-result-count,
.woocommerce-ordering { display: none; }

/* --------------------------------------------------------------------------
   Collections grid + cards (pep/collections-grid)
   -------------------------------------------------------------------------- */
.pep-coll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2.75rem;
}
.pep-coll-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.pep-coll-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: var(--pep-paper);
  border: 1px solid var(--pep-line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pep-coll-grid--compact .pep-coll-card { padding: 28px; background: transparent; }
.pep-coll-card--all { background: transparent; }
.pep-coll-card:hover { border-color: var(--pep-sage); box-shadow: 0 12px 32px rgba(18,50,39,0.06); }
.pep-coll-card__count {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}
.pep-coll-card__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pep-ink);
  letter-spacing: -0.01em;
  margin: 0; /* it is a heading element now */
}
.pep-coll-grid--compact .pep-coll-card__name { font-size: 1.45rem; }
.pep-coll-card__intro { color: var(--wp--preset--color--muted); font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pep-coll-card__arrow { color: var(--wp--preset--color--accent); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Content pages + placeholder widgets (About / Quality / COA / Contact / etc.)
   These are inert placeholders pending David's copy + real handlers.
   -------------------------------------------------------------------------- */
/* Forms: contact, batch-verify, newsletter, COA search */
.pep-contact-form label,
.pep-verify__label { display: block; font-size: 0.85rem; color: var(--wp--preset--color--body); margin-bottom: 4px; }
.pep-contact-form input, .pep-contact-form textarea,
.pep-verify__input, .pep-verify-input,
.pep-newsletter__input, .pep-coa-search__input {
  width: 100%; max-width: 100%; box-sizing: border-box;
  font-family: var(--wp--preset--font-family--body); font-size: 0.95rem;
  padding: 0.7rem 0.85rem; border: 1px solid var(--pep-line); border-radius: 2px;
  background: var(--pep-paper); color: var(--pep-ink);
}
.pep-contact-form :is(input, textarea):focus,
.pep-verify__input:focus, .pep-newsletter__input:focus, .pep-coa-search__input:focus {
  outline: none; border-color: var(--wp--preset--color--accent);
}
.pep-contact-form button, .pep-verify__btn {
  font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em;
  text-transform: uppercase; background: var(--cta-bg); color: var(--cta-text);
  border: 0; border-radius: var(--radius-pill); padding: 1rem 1.75rem; cursor: pointer;
}
.pep-contact-form button:hover, .pep-verify__btn:hover { background: var(--wp--preset--color--ink-soft); }
/* Honeypot (spam trap): visually hidden, still focusable-out for bots. */
.pep-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* Enquiry submit feedback. */
.pep-formnote { border-radius: var(--radius-md); padding: 0.85rem 1.1rem; margin: 0 0 1.2rem; font-size: 0.92rem; }
.pep-formnote--ok { background: color-mix(in srgb, var(--crimson) 12%, var(--cream)); color: var(--maroon-darkest); border: 1px solid color-mix(in srgb, var(--crimson) 30%, transparent); }
.pep-formnote--err { background: #fbece9; color: #8a2b1c; border: 1px solid #e0b4ab; }
.pep-verify__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pep-verify__row .pep-verify__input { flex: 1; min-width: 200px; }
.pep-verify__note, .pep-coa-list__note { font-size: 0.8rem; color: var(--wp--preset--color--muted); margin-top: 0.6rem; }
.pep-newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.pep-newsletter__input { flex: 1; min-width: 220px; }
.pep-coa-search { display: flex; gap: 10px; flex-wrap: wrap; margin: 1rem 0; }
.pep-coa-search__input { flex: 1; min-width: 220px; }
.pep-coa-search__filter {
  padding: 0.7rem 0.85rem; border: 1px solid var(--pep-line); border-radius: 2px;
  font-family: var(--wp--preset--font-family--body); background: var(--pep-paper);
}
/* SPECIMEN COA demonstration table + figures (clearly not real documents) */
.pep-coa-list { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.pep-coa-list th, .pep-coa-list td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--pep-line); }
.pep-coa-list th {
  font-family: var(--wp--preset--font-family--data); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--wp--preset--color--muted);
}
.pep-coa-figure, .pep-coa-detail {
  position: relative; border: 1px solid var(--pep-line); border-radius: 6px;
  background: var(--pep-paper); padding: 1.5rem; overflow: hidden;
}
.pep-coa-figure__sheet { min-height: 180px; }
.pep-coa-figure__fields, .pep-coa-detail__fields {
  font-family: var(--wp--preset--font-family--data); font-size: 0.85rem; color: var(--pep-ink); line-height: 1.9;
}
.pep-coa-figure__stamp, .pep-coa-detail__stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg);
  font-family: var(--wp--preset--font-family--data); font-size: 1.05rem; letter-spacing: 0.1em;
  color: rgba(168, 137, 79, 0.55); border: 2px solid rgba(168, 137, 79, 0.55);
  padding: 0.4rem 1rem; border-radius: 4px; pointer-events: none; text-transform: uppercase; white-space: nowrap;
}
/* Spec definition list */
.pep-spec-list { font-family: var(--wp--preset--font-family--data); font-size: 0.9rem; }
.pep-spec-list dt { color: var(--wp--preset--color--muted); }
.pep-spec-list dd { margin: 0 0 0.6rem; color: var(--pep-ink); }
/* Full-bleed green band */
.pep-band--green { background: var(--pep-ink-deep); }
.pep-band--green, .pep-band--green :is(h1, h2, h3, p) { color: var(--pep-paper); }
.pep-band--green .pep-eyebrow { color: var(--pep-sage); }
/* RUO callout (the pattern also sets its own inline border/background) */
.pep-ruo-callout .pep-ruo { color: var(--pep-ink); }


/* ===== David IM8-brief build additions (2026-07-29) ===== */
/* ===== lane:home ===== */
/* ==========================================================================
   Lane 1 — homepage additions. Append to assets/css/theme.css during central
   integration. All values reuse theme.json tokens / existing --pep-* vars.
   ========================================================================== */

/* 1. Promo bar (pep/promo-bar) */
.pep-promo { padding-block: 0; }
.pep-promo__msg {
  margin: 0;
  padding-block: 10px;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pep-sage);
}

/* 2. Hero proof points (front-page hero) */
.pep-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.pep-hero__proof li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pep-sage);
}
.pep-hero__proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pep-brass);
}

/* 4. Featured products — now the shared .prod card (see inc/render/product-card.php). */

/* 5. Documentation proof (pep/documentation-proof) */
.pep-docproof__caption { max-width: 60ch; margin: 1rem 0 0; }
.pep-docproof__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.pep-docproof__tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--pep-paper);
  border: 1px solid var(--pep-line);
  border-radius: 10px;
}
.pep-docproof__label {
  margin: 0;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}
.pep-docproof__value {
  margin: 0;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.95rem;
  color: var(--pep-ink);
}
.pep-docproof__specimen {
  margin: 0;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pep-brass);
}
.pep-docproof__vial {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 40%, #F7F5EF, var(--wp--preset--color--paper-shade));
}
.pep-docproof__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 96px;
  padding: 1rem;
  overflow: hidden;
  background: var(--pep-paper);
  border: 1px solid var(--pep-line);
  border-radius: 6px;
}
.pep-docproof__sheet span {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: var(--wp--preset--color--paper-shade);
}
.pep-docproof__sheet span:nth-child(1) { width: 70%; }
.pep-docproof__sheet span:nth-child(2) { width: 90%; }
.pep-docproof__sheet span:nth-child(3) { width: 55%; }
.pep-docproof__sheet span:nth-child(4) { width: 80%; }
.pep-docproof__stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  font-family: var(--wp--preset--font-family--data);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 137, 79, 0.6);
  border: 2px solid rgba(168, 137, 79, 0.6);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.pep-docproof__qr { width: 84px; height: 84px; }

/* 9. Email signup button + label (pep/email-signup) — reuses existing .pep-newsletter / .pep-newsletter__input */
.pep-newsletter__label {
  flex-basis: 100%;
  margin-bottom: 2px;
  font-size: 0.85rem;
  color: var(--wp--preset--color--body);
}
.pep-newsletter__btn {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--pep-ink);
  color: var(--pep-paper);
  border: 0;
  border-radius: 2px;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
}
.pep-newsletter__btn:hover { background: var(--wp--preset--color--ink-soft); }

/* ===== lane:edu ===== */
/* --------------------------------------------------------------------------
   Educational landing pages (page-education.html + pep/lp-* patterns)
   Reuses existing tokens/classes: pep-section*, pep-eyebrow, pep-ruo(-callout),
   pep-coa-figure*, pep-vial-well*, pep-card-chips, pep-chip--data.
   -------------------------------------------------------------------------- */
.pep-lp-question { max-width: 20ch; }
.pep-lp-lead { max-width: 60ch; margin-top: 1rem; }
.pep-lp-note { margin-top: var(--wp--preset--spacing--30); }

/* Annotation keys shared by the specimen figure fields and the notes list */
.pep-doc-annos__key {
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--pep-brass);
  background: var(--wp--preset--color--tint-light);
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 6px;
}
.pep-doc-annos {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pep-doc-annos li {
  display: flex;
  gap: 4px;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--wp--preset--color--body);
}
.pep-doc-annos li .pep-doc-annos__key { flex: 0 0 auto; margin-right: 0; }

/* Inspection checklist - numbered cards */
.pep-checklist {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: pep-check;
  display: grid;
  gap: 12px;
}
.pep-checklist li {
  counter-increment: pep-check;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border: 1px solid var(--pep-line);
  border-radius: 8px;
  background: var(--pep-paper);
}
.pep-checklist li::before {
  content: counter(pep-check);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.8rem;
  color: var(--pep-paper);
  background: var(--pep-ink);
  border-radius: 50%;
}
.pep-checklist li strong {
  display: block;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  color: var(--pep-ink);
  margin-bottom: 3px;
}
.pep-checklist li span { color: var(--wp--preset--color--muted); font-size: 0.92rem; }

/* How the documentation addresses each point - paired rows */
.pep-address {
  margin-top: 2rem;
  border: 1px solid var(--pep-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--pep-paper);
}
.pep-address__row {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--pep-line);
}
.pep-address__row:last-child { border-bottom: 0; }
.pep-address__point {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  color: var(--pep-ink);
}
.pep-address__doc { color: var(--wp--preset--color--body); font-size: 0.95rem; line-height: 1.55; }

/* Featured single research peptide */
.pep-lp-featured {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--pep-line);
  border-radius: 12px;
  background: var(--pep-paper);
}
.pep-lp-featured__media {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #F7F5EF, var(--wp--preset--color--paper-shade));
  display: flex;
  align-items: center;
  justify-content: center;
}
.pep-lp-featured__name {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pep-ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}
.pep-lp-featured__meta { font-size: 0.85rem; color: var(--wp--preset--color--muted); margin: 0 0 0.75rem; }
.pep-lp-featured__note { font-size: 0.85rem; color: var(--wp--preset--color--muted); margin: 0.75rem 0 1.1rem; }
.pep-lp-featured__cta {
  display: inline-block;
  font-family: var(--wp--preset--font-family--data);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pep-paper);
  background: var(--pep-ink);
  border: 1px solid var(--pep-ink);
  border-radius: 2px;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.pep-lp-featured__cta:hover { background: var(--wp--preset--color--ink-soft); }
.pep-lp-featured__cta:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

@media (max-width: 782px) {
  .pep-address__row { grid-template-columns: 1fr; gap: 0.4rem; }
  .pep-lp-featured { grid-template-columns: 1fr; gap: 1.5rem; text-align: left; }
  .pep-lp-featured__media { max-width: 220px; }
}


/* ==========================================================================
   Polish pass: 'Documented by batch' (docproof) hover + scroll-in animation.
   ========================================================================== */
/* hover: lift the tile, warm the border, glow the vial / QR / stamp */
.pep-docproof__tile {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pep-docproof__tile:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--pep-brass) 45%, var(--pep-line));
  box-shadow: 0 14px 34px rgba(18, 50, 39, .10);
}
.pep-docproof__vial { transition: box-shadow .3s ease, background .3s ease; }
.pep-docproof__tile:hover .pep-docproof__vial {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pep-brass) 30%, transparent),
              0 0 26px color-mix(in srgb, var(--pep-brass) 22%, transparent);
}
.pep-docproof__qr { transition: transform .3s ease; }
.pep-docproof__tile:hover .pep-docproof__qr { transform: scale(1.04); }
.pep-docproof__stamp { transition: color .3s ease, border-color .3s ease; }
.pep-docproof__tile:hover .pep-docproof__stamp {
  color: rgba(168, 137, 79, .85);
  border-color: rgba(168, 137, 79, .85);
}

/* entrance: hidden state only once JS marks the group ready (no-JS = visible) */
.pep-docproof__tiles.pep-reveal-ready .pep-docproof__tile {
  opacity: 0;
  transform: translateY(18px);
}
.pep-docproof__tiles.pep-reveal-ready.is-in .pep-docproof__tile {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
.pep-docproof__tiles.pep-reveal-ready.is-in .pep-docproof__tile:nth-child(1) { transition-delay: 0s; }
.pep-docproof__tiles.pep-reveal-ready.is-in .pep-docproof__tile:nth-child(2) { transition-delay: .08s; }
.pep-docproof__tiles.pep-reveal-ready.is-in .pep-docproof__tile:nth-child(3) { transition-delay: .16s; }
.pep-docproof__tiles.pep-reveal-ready.is-in .pep-docproof__tile:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .pep-docproof__tile,
  .pep-docproof__vial,
  .pep-docproof__qr,
  .pep-docproof__stamp { transition: none; }
  .pep-docproof__tile:hover { transform: none; box-shadow: 0 14px 34px rgba(18, 50, 39, .10); }
  .pep-docproof__tiles.pep-reveal-ready .pep-docproof__tile { opacity: 1; transform: none; }
}
