/* ==========================================================================
   PEPTISSIMA HEALTH — BRAND SYSTEM
   Light-first. Pages are white; the header, footer and a small number of
   deliberate panels opt into navy via the .on-dark scope.
   Loaded after Dawn's base.css so it wins the cascade.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Brand constants — these never change meaning. */
  --navy: #001332;
  --red: #da1b26;
  --red-dark: #b8151e;
  --white: #f5f6f7;
  --gold: #c9a84c;
  --gold-deep: #a8862f;
  --navy-light: #0a1f45;
  --navy-mid: #051a3a;

  /* Semantic surfaces — light by default. */
  --surface: #ffffff;
  --surface-alt: #f5f6f7;
  --surface-raised: #ffffff;
  --text: #001332;
  --line: rgba(0, 19, 50, 0.12);
  --line-strong: rgba(0, 19, 50, 0.22);
  --shadow: 0 4px 24px rgba(0, 19, 50, 0.08);
  --shadow-lift: 0 12px 32px rgba(0, 19, 50, 0.12);

  /* Legacy alias — some Dawn partials still reference it. */
  --border: var(--line);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Typography scale */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 20px;
  --text-xl: 26px;
  --text-2xl: 34px;
  --text-3xl: 44px;
  --text-4xl: 56px;

  /* Spacing */
  --section-y: 96px;
  --section-y-sm: 48px;
  --container: 1200px;
  --gutter: 24px;

  /* The header must always read as taller than the red compliance banner that
     sits below the crest strip. Every breakpoint changes THIS token and the
     banner's min-height together — `.p-header__inner` must never hardcode a
     height, because --header-h also drives `scroll-padding-top` and the
     `.shop__sidebar` sticky offset and a hardcoded override desyncs them. */
  --header-h: 88px;

  /* Status colours */
  --status-green: #2f8f5b;
  --status-blue: #2d6cc0;
  --status-orange: #c47318;
  --status-yellow: #a8862f;
}

/* Anything inside .on-dark flips to the navy surface set. Components read
   only the semantic tokens, so they invert without any component-level rules. */
.on-dark {
  --surface: #001332;
  --surface-alt: #051a3a;
  --surface-raised: #0a1f45;
  --text: #f5f6f7;
  --line: rgba(245, 246, 247, 0.12);
  --line-strong: rgba(245, 246, 247, 0.22);
  --border: rgba(245, 246, 247, 0.12);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.45);
  --status-green: #3fa86a;
  --status-blue: #3d7fd6;
  --status-orange: #d98324;
  --status-yellow: #cba233;

  background: var(--surface);
  color: var(--text);
}

/* Dawn's colour-scheme engine resolves to the light brand surface. */
:root,
.color-scheme-1,
.color-scheme-2,
.color-scheme-3,
.color-scheme-4,
.color-scheme-5,
.color-background-1,
.color-background-2,
.color-inverse,
.color-accent-1,
.color-accent-2 {
  --color-background: 255, 255, 255;
  --gradient-background: #ffffff;
  --color-background-contrast: 245, 246, 247;
  --color-foreground: 0, 19, 50;
  --color-shadow: 0, 19, 50;
  --color-button: 218, 27, 38;
  --color-button-text: 255, 255, 255;
  --color-secondary-button: 255, 255, 255;
  --color-secondary-button-text: 0, 19, 50;
  --color-link: 0, 19, 50;
  --color-badge-foreground: 0, 19, 50;
  --color-badge-background: 255, 255, 255;
  --color-badge-border: 0, 19, 50;
  --payment-terms-background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */

/*
 * Dawn's base.css (never ported to this theme — only the peptissima.css
 * brand layer was) carries this reset. Its absence is why any element that
 * combines width:100% with its own padding — buttons, .p-input/.p-select,
 * WooCommerce's native form-row inputs — renders wider than its container
 * under default content-box sizing and visibly breaks out of/overlaps
 * neighboring elements (product-card buttons, cart/checkout/login fields).
 * This one rule is the actual fix for that whole family of bugs.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.gradient,
.gradient {
  background: var(--surface);
  background-image: none;
}

main {
  background: var(--surface);
}

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

img {
  display: block;
  height: auto;
}

svg {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

::selection {
  background: rgba(218, 27, 38, 0.9);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.page-width {
  max-width: var(--container);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin: 0 auto;
}

/* .visually-hidden-p clips this to 1x1px at rest; a keyboard user tabbing
   to it needs it to actually appear, not just change color while still
   invisible. */
.skip-to-content-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */

.p-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  position: relative;
}

.p-section--tight {
  padding-top: var(--section-y-sm);
  padding-bottom: var(--section-y-sm);
}

.p-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.p-container--wide {
  max-width: 1440px;
}

.p-grid-2,
.p-grid-3,
.p-grid-4,
.p-grid-5 {
  display: grid;
  gap: 32px;
}

.p-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.p-gap-tight { gap: 24px; }
.p-gap-loose { gap: 48px; }

.p-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 64px;
  align-items: center;
}

.p-split--even {
  grid-template-columns: 1fr 1fr;
}

.p-stack > * + * {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */

.label-gold {
  display: block;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.4;
}

.on-dark .label-gold {
  color: var(--gold);
}

.heading-white,
h1.heading-white,
h2.heading-white {
  color: var(--text);
  font-family: var(--font-serif);
  margin: 0;
  text-wrap: balance;
}

.p-h1 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.p-h2 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

.p-h3 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.p-h4 {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.accent-red-italic {
  color: var(--red);
  font-style: italic;
  font-family: var(--font-serif);
}

.accent-gold-italic {
  color: var(--gold-deep);
  font-style: italic;
  font-family: var(--font-serif);
}

.on-dark .accent-gold-italic {
  color: var(--gold);
}

.body-text {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0;
}

.body-text--sm {
  font-size: var(--text-sm);
  opacity: 0.68;
}

.body-text + .body-text {
  margin-top: 16px;
}

.caption {
  color: var(--text);
  opacity: 0.55;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 0;
}

.p-eyebrow {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

.p-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: 0;
  margin: 16px 0 0;
}

.p-rule--center {
  margin-left: auto;
  margin-right: auto;
}

.p-hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.p-section-head {
  max-width: 720px;
}

.p-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.p-section-head .p-h2 {
  margin-bottom: 0;
}

.p-section-head .body-text {
  margin-top: 20px;
}

.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-outline,
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline follows the surface it sits on. */
.btn-outline {
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 19, 50, 0.06);
  transform: translateY(-1px);
}

.on-dark .btn-outline:hover {
  background: rgba(245, 246, 247, 0.08);
}

/* The solid navy button used for most CTAs in the reference design. */
.btn-dark {
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
}

.btn-dark:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  padding: 10px 18px;
  font-size: var(--text-xs);
}

.btn-primary svg,
.btn-outline svg,
.btn-dark svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-primary:hover svg,
.btn-outline:hover svg,
.btn-dark:hover svg {
  transform: translateX(3px);
}

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.p-link:hover {
  color: var(--navy);
}

.on-dark .p-link:hover {
  color: var(--white);
}

.p-link:hover svg {
  transform: translateX(3px);
}

.p-link--gold {
  color: var(--gold-deep);
}

.body-text a,
.p-prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.body-text a:hover,
.p-prose a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

/* --------------------------------------------------------------------------
   6. CARDS
   -------------------------------------------------------------------------- */

.p-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.p-card:hover {
  border-color: rgba(218, 27, 38, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.p-card--flat:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.p-card--pad-sm {
  padding: 20px;
}

.p-card__icon {
  color: var(--gold-deep);
  display: block;
}

.on-dark .p-card__icon {
  color: var(--gold);
}

.p-card__icon svg {
  width: 32px;
  height: 32px;
}

.p-card__title {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.35;
  margin: 16px 0 0;
}

.p-card__text {
  color: var(--text);
  opacity: 0.68;
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 8px 0 0;
}

/* Product card */
.p-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.p-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(218, 27, 38, 0.3);
}

.p-product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f8f8f8;
  padding: 20px;
  overflow: hidden;
}

.p-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-product-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1 1 auto;
}

.p-product-card__name {
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}

/* Clamped to 2 lines so cards with a short vs. long summary still line their
   tags/pills and footer button up across a row — variable text height was
   the cause of the "buttons don't align" reports, not the flex layout
   itself (the grid already stretches every card to equal height). */
.p-product-card__desc {
  color: rgba(0, 19, 50, 0.65);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.p-product-card__foot {
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.p-pill {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  line-height: 1.4;
}

.p-pill--outline {
  background: transparent;
  border: 1px solid rgba(0, 19, 50, 0.18);
  color: rgba(0, 19, 50, 0.6);
}

.p-pill--dark-outline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.p-pill--green { background: rgba(47, 143, 91, 0.12); color: var(--status-green); }
.p-pill--blue { background: rgba(45, 108, 192, 0.12); color: var(--status-blue); }
.p-pill--orange { background: rgba(196, 115, 24, 0.12); color: var(--status-orange); }
.p-pill--yellow { background: rgba(168, 134, 47, 0.12); color: var(--status-yellow); }
.p-pill--red { background: rgba(218, 27, 38, 0.1); color: var(--red); }

.p-card-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 19, 50, 0.55);
}

.p-card-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-card-trust span + span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.p-card-trust svg {
  width: 12px;
  height: 12px;
  color: var(--navy);
}

/* "COA available" as a link to the product's Certificate of Analysis —
   same quiet trust-row type, underlined on hover so it reads as clickable. */
.p-card-trust__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.p-card-trust__link:hover,
.p-card-trust__link:focus-visible {
  color: var(--navy);
  text-decoration-color: currentColor;
}

/* Certificate of Analysis pill — a link out to the issuing laboratory's
   report, so it's the one pill with a hover state. */
.p-pill--coa {
  gap: 6px;
  background: rgba(47, 143, 91, 0.1);
  border: 1px solid rgba(47, 143, 91, 0.35);
  color: var(--status-green);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.p-pill--coa svg {
  width: 12px;
  height: 12px;
}

.p-pill--coa:hover,
.p-pill--coa:focus-visible {
  background: rgba(47, 143, 91, 0.18);
  border-color: var(--status-green);
}

/* --------------------------------------------------------------------------
   7. FEATURE ROWS
   -------------------------------------------------------------------------- */

.p-feature__icon {
  color: var(--gold-deep);
  display: block;
}

.on-dark .p-feature__icon {
  color: var(--gold);
}

.p-feature__icon svg {
  width: 32px;
  height: 32px;
}

.p-feature__title {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 16px 0 8px;
}

.p-feature__text {
  color: var(--text);
  opacity: 0.62;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.p-value {
  display: flex;
  gap: 16px;
  padding: 24px 0;
}

.p-value + .p-value {
  border-top: 1px solid var(--line);
}

.p-value:first-child { padding-top: 0; }
.p-value:last-child { padding-bottom: 0; }

.p-value__icon {
  color: var(--gold);
  flex: 0 0 auto;
}

.p-value__icon svg {
  width: 32px;
  height: 32px;
}

.p-value__title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  line-height: 1.4;
}

.p-value__text {
  color: var(--text);
  opacity: 0.68;
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. TRUST BAR
   -------------------------------------------------------------------------- */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.trust-bar--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-bar__icon {
  color: var(--navy);
  flex: 0 0 auto;
}

.on-dark .trust-bar__icon {
  color: var(--gold);
}

.trust-bar__icon svg {
  width: 24px;
  height: 24px;
}

.trust-bar__title {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

.trust-bar__text {
  color: var(--text);
  opacity: 0.55;
  font-size: var(--text-xs);
  line-height: 1.55;
  margin: 4px 0 0;
}

.p-trust-section {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

/* --------------------------------------------------------------------------
   9. COMPLIANCE
   -------------------------------------------------------------------------- */

/* The band has a fixed minimum height so the notice is optically centred in
   it rather than sitting on the padding box — the two lines are different
   weights and the sub-line's descenders otherwise pull the block low. */
/* Kept below --header-h at every breakpoint: 88/72, 76/64, 64/56. */
.compliance-banner {
  background: var(--red);
  min-height: 72px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.compliance-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Wide enough that the secondary line sits on ONE row at desktop. At 960px
     it wrapped to two, which pushed the band to 81px against an 88px header —
     the whole point of this pair of heights is that the gap reads clearly. */
  max-width: 1120px;
}

.compliance-banner__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.compliance-banner__main svg {
  width: 20px;
  height: 20px;
}

.compliance-banner__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 4px 0 0;
}

.compliance-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-alt);
  padding: 24px;
}

.compliance-notice svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
  opacity: 0.6;
  margin-top: 3px;
  flex: 0 0 auto;
}

.compliance-notice p {
  color: var(--text);
  opacity: 0.65;
  font-size: var(--text-sm);
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

.compliance-notice--bar {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--surface-alt);
  justify-content: center;
  text-align: left;
}

.compliance-notice--alert {
  border-color: rgba(218, 27, 38, 0.25);
  background: rgba(218, 27, 38, 0.04);
}

.compliance-notice__title {
  color: var(--text) !important;
  opacity: 1 !important;
  font-size: var(--text-base) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  margin-bottom: 8px !important;
}

.p-global-disclaimer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.p-global-disclaimer p {
  color: var(--text);
  opacity: 0.6;
  font-size: 12px;
  font-style: italic;
  line-height: 1.8;
  margin: 0;
  max-width: 900px;
}

.p-global-disclaimer p + p {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   10. FORMS
   -------------------------------------------------------------------------- */

.p-field {
  display: block;
  margin-bottom: 20px;
}

.p-field__label {
  display: block;
  color: var(--text);
  opacity: 0.62;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.p-field__label .req {
  color: var(--red);
  opacity: 1;
}

.p-input,
.p-select,
.p-textarea {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.p-textarea {
  min-height: 120px;
  resize: vertical;
}

.p-input::placeholder,
.p-textarea::placeholder {
  color: rgba(0, 19, 50, 0.38);
}

.on-dark .p-input::placeholder,
.on-dark .p-textarea::placeholder {
  color: rgba(245, 246, 247, 0.3);
}

.p-input:focus,
.p-select:focus,
.p-textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(218, 27, 38, 0.1);
}

.p-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.on-dark .p-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f6f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.p-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.p-check input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.p-check__box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.p-check__box::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
}

.p-check input:checked + .p-check__box {
  background: var(--red);
  border-color: var(--red);
}

.p-check input:checked + .p-check__box::after {
  transform: rotate(45deg) scale(1);
}

.p-check input:focus-visible + .p-check__box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.p-check__label {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.p-check__label a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.p-check__label a:hover {
  color: var(--red);
}

.p-search {
  position: relative;
  display: block;
}

.p-search input {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 48px 13px 16px;
  font-size: 14px;
  border-radius: 2px;
  font-family: var(--font-sans);
  transition: border-color 0.2s ease;
}

.p-search input::placeholder {
  color: rgba(0, 19, 50, 0.4);
}

.on-dark .p-search input::placeholder {
  color: rgba(245, 246, 247, 0.35);
}

.p-search input:focus {
  border-color: var(--red);
  outline: none;
}

.p-search button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  opacity: 0.6;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.p-search button:hover {
  color: var(--red);
  opacity: 1;
}

.p-search button svg {
  width: 18px;
  height: 18px;
}

.p-form__status {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: rgba(201, 168, 76, 0.08);
  padding: 14px 18px;
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: 24px;
  border-radius: 2px;
}

.p-form__status--error {
  border-left-color: var(--red);
  background: rgba(218, 27, 38, 0.06);
}

/* --------------------------------------------------------------------------
   11. HEADER — always navy chrome
   -------------------------------------------------------------------------- */

/* Opaque on purpose: the supplied logo artwork has a solid navy ground, so any
   transparency here makes the header lighter than the image and the logo's
   bounding box becomes visible. */
.p-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}

.p-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo lockup — supplied artwork, navy matches the header ground exactly. */
.p-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.p-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.p-footer .p-logo img {
  height: 52px;
}

.p-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.p-nav__link {
  position: relative;
  display: block;
  color: #f5f6f7;
  opacity: 0.85;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.p-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.p-nav__link:hover,
.p-nav__link[aria-current='page'] {
  opacity: 1;
}

.p-nav__link:hover::after,
.p-nav__link[aria-current='page']::after {
  transform: scaleX(1);
}

.p-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.p-icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #f5f6f7;
  opacity: 0.8;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.p-icon-btn:hover {
  opacity: 1;
}

.p-icon-btn svg {
  width: 22px;
  height: 22px;
}

.p-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* Crest strip — white band, twin gold rules, centred medallion overlapping
   the header edge. Rendered on every template except the homepage. */
/* The medallion is fully contained in the bar rather than hanging over the
   header edge — overhanging needs a z-index above the sticky header, which
   then slides over the header on scroll. The twin rules pass behind it and
   are masked by its solid white fill. */
.p-crest {
  position: relative;
  background: #fff;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.p-crest::before,
.p-crest::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

/* Positioned from the centre, not the top, so the pair stays symmetrical when
   the bar height changes at a breakpoint. */
.p-crest::before { top: calc(50% - 4px); }
.p-crest::after { top: calc(50% + 3px); }

.p-crest__badge {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  z-index: 1;
}

/* Supplied medallion artwork already carries its own double gold ring, so the
   CSS border comes off. The image is clipped to a circle so its white corners
   don't cut a square notch out of the twin rules behind it. */
.p-crest__badge--image {
  border: 0;
  background: #fff;
}

.p-crest__badge img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.p-burger {
  display: none;
}

.p-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(320px, 86vw);
  background: var(--navy);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.p-drawer[data-open='true'] {
  transform: translateX(0);
}

.p-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(245, 246, 247, 0.12);
}

.p-drawer__link {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(245, 246, 247, 0.12);
  color: #f5f6f7;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.p-drawer__link:hover,
.p-drawer__link[aria-current='page'] {
  color: var(--red);
  background: rgba(245, 246, 247, 0.03);
}

.p-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.p-scrim[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   12. FOOTER — always navy chrome
   -------------------------------------------------------------------------- */

.p-footer {
  background: var(--navy);
  color: #f5f6f7;
}

.p-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 80px 0;
}

.p-footer__tagline {
  color: #f5f6f7;
  opacity: 0.6;
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 200px;
}

.p-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.p-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 246, 247, 0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f5f6f7;
  opacity: 0.7;
  transition: border-color 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.p-social a:hover {
  border-color: var(--red);
  color: var(--red);
  opacity: 1;
}

.p-social svg {
  width: 16px;
  height: 16px;
}

.p-footer__col-title {
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.p-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-footer__links a {
  display: block;
  color: #f5f6f7;
  opacity: 0.7;
  font-size: var(--text-sm);
  padding: 8px 0;
}

.p-footer__links a:hover {
  opacity: 1;
  color: var(--red);
}

.p-newsletter__text {
  color: #f5f6f7;
  opacity: 0.6;
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 240px;
}

.p-newsletter__form {
  display: flex;
  border: 1px solid rgba(245, 246, 247, 0.2);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s ease;
  max-width: 300px;
}

.p-newsletter__form:focus-within {
  border-color: var(--red);
}

.p-newsletter__form input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #f5f6f7;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
}

.p-newsletter__form input::placeholder {
  color: rgba(245, 246, 247, 0.4);
}

.p-newsletter__form input:focus {
  outline: none;
}

.p-newsletter__form button {
  flex: 0 0 auto;
  background: var(--red);
  border: 0;
  color: #fff;
  padding: 12px 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.p-newsletter__form button:hover {
  background: var(--red-dark);
}

.p-newsletter__form button svg {
  width: 16px;
  height: 16px;
}

.p-newsletter__status {
  margin: 10px 0 0;
  color: var(--gold);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.p-newsletter__status--error {
  color: #ff8a8f;
}

.p-footer__bottom {
  border-top: 1px solid rgba(245, 246, 247, 0.12);
}

.p-footer__bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
}

.p-footer__bottom .trust-bar__icon { color: var(--gold); }
.p-footer__bottom .trust-bar__title { color: #f5f6f7; }
.p-footer__bottom .trust-bar__text { color: #f5f6f7; opacity: 0.5; }

.p-footer__brandline {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Was a text "P" in a ringed circle; now the same crest artwork used in the
   header (.p-crest__badge). The artwork already carries its own gold ring, so
   no border/background is added here — that previously drew a second ring
   around the one baked into the image. */
.p-medallion {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.p-medallion img {
  width: 100%;
  height: 100%;
  display: block;
}

.p-footer__url {
  color: #f5f6f7;
  font-size: var(--text-sm);
  font-weight: 700;
  margin: 0;
}

.p-footer__copy {
  color: #f5f6f7;
  opacity: 0.5;
  font-size: var(--text-xs);
  margin: 4px 0 0;
}

/* --------------------------------------------------------------------------
   13. SHARED FURNITURE
   -------------------------------------------------------------------------- */

/* Tall enough that a 16:9 banner isn't cropped to a letterbox strip. */
.p-hero {
  position: relative;
  background: var(--surface);
  padding: var(--section-y) 0;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.p-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(0, 19, 50, 0.85) 45%, rgba(0, 19, 50, 0.2) 100%);
}

.p-hero__inner {
  position: relative;
  z-index: 1;
}

.p-hero__copy {
  max-width: 620px;
}

.p-hero .body-text {
  margin-top: 20px;
}

.p-hero .btn-primary,
.p-hero .btn-outline,
.p-hero .btn-dark {
  margin-top: 32px;
}

.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.p-table th {
  text-align: left;
  color: var(--text);
  opacity: 0.5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}

.p-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}

.p-table tr:last-child td { border-bottom: 0; }
.p-table td:first-child { font-weight: 600; }
.p-table th:last-child,
.p-table td:last-child { padding-right: 0; }

.p-table-wrap {
  overflow-x: auto;
}

/* `display: block` is load-bearing: the track is rendered as a <span>, and an
   inline box ignores `height`, so without it the bar collapsed to nothing and
   the Clinical Development Overview rendered as rows with an empty middle
   column. */
.p-progress {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 19, 50, 0.1);
  overflow: hidden;
}

.on-dark .p-progress {
  background: rgba(245, 246, 247, 0.12);
}

.p-progress__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--status-green);
}

.p-progress__fill--orange { background: var(--status-orange); }
.p-progress__fill--yellow { background: var(--status-yellow); }
.p-progress__fill--blue { background: var(--status-blue); }

.p-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.p-tab {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0 0 12px;
  color: var(--text);
  opacity: 0.5;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.p-tab::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.p-tab:hover { opacity: 0.85; }

.p-tab[aria-selected='true'] {
  opacity: 1;
  font-weight: 700;
}

.p-tab[aria-selected='true']::after {
  transform: scaleX(1);
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  opacity: 0.75;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.p-chip:hover {
  opacity: 1;
  border-color: var(--navy);
}

.p-chip[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  opacity: 1;
}

.p-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.p-arrow:hover {
  background: var(--red);
  border-color: var(--red);
}

.p-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.p-arrow:disabled:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.p-arrow svg {
  width: 18px;
  height: 18px;
}

.p-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex: 0 0 auto;
}

.p-step__arrow {
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0.8;
}

.p-prose {
  color: var(--text);
}

.p-prose p {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0 0 16px;
}

.p-prose h2 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin: 56px 0 20px;
}

.p-prose h3 {
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 32px 0 12px;
}

.p-prose ul,
.p-prose ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.p-prose li {
  color: var(--text);
  opacity: 0.8;
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 8px;
}

.p-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: 8px;
}

.p-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--gold-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.on-dark .p-bullets li::before {
  color: var(--gold);
}

.p-media {
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-alt);
}

.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-media--tall {
  height: 100%;
  min-height: 420px;
}

.visually-hidden-p {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.p-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   14. DAWN SURFACE OVERRIDES
   -------------------------------------------------------------------------- */

.main-page-title,
.title,
.title-wrapper h1,
.title-wrapper h2 {
  color: var(--text);
  font-family: var(--font-serif);
}

.rte,
.rte p,
.rte li {
  color: var(--text);
  opacity: 0.82;
  font-family: var(--font-sans);
  line-height: 1.7;
}

.rte h1,
.rte h2,
.rte h3,
.rte h4 {
  color: var(--text);
  opacity: 1;
  font-family: var(--font-serif);
}

.rte a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.rte a:hover { color: var(--red); }

.rte hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.rte blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-left: 0;
  font-style: italic;
}

.button:not(.btn-primary):not(.btn-outline):not(.btn-dark),
.customer button {
  background: var(--navy);
  color: #fff;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: var(--text-sm);
}

.button--secondary:not(.btn-primary) {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}

.field__input,
.select__select,
.customer input,
.customer select,
.customer textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 2px;
}

.field__input:focus,
.select__select:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: none;
}

.field__label,
.form__label {
  color: var(--text);
  opacity: 0.62;
}

.card__heading,
.card__heading a,
.card-information,
.price,
.price-item {
  color: var(--text);
}

.placeholder-svg {
  background-color: rgba(0, 19, 50, 0.04);
  fill: rgba(0, 19, 50, 0.28);
}

.on-dark .placeholder-svg {
  background-color: rgba(245, 246, 247, 0.04);
  fill: rgba(245, 246, 247, 0.4);
}

.cart__empty-text,
.template-search__header,
.list-menu__item {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   14b. DOCUMENT PAGES  (added in Phase 4)

   Shared spine for the eight policy and education-guide pages specified in
   "Adjustments for Peptissima Website 2.pdf": Legal & Compliance, Returns,
   Shipping & Delivery, Laboratory Handling, Reconstitution Principles,
   Glossary, Responsible Research and Scientific Resources.

   All eight have the same editorial shape — a titled hero, a run of content
   sections each with an optional champagne sub-heading and bullet list, and a
   closing notice. Shared here rather than repeated inside eight
   {% stylesheet %} blocks so the eight cannot drift apart, and because eight
   near-identical namespaces is exactly how the Phase 3 class-collision bug
   (`.research-areas__*` in two files) happened.

   Additive only: every selector below is a new name. Nothing that existed
   before Phase 4 can be affected by this block.
   -------------------------------------------------------------------------- */

.p-doc-hero {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: var(--section-y) 0 var(--section-y-sm);
}

.p-doc-hero__inner {
  max-width: 780px;
}

/* The spec gives every one of these pages a one-line editorial subtitle under
   the H1. Serif and champagne so it reads as a standfirst, not as body copy. */
.p-doc-hero__sub {
  color: var(--gold-deep);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  margin: 20px 0 0;
}

.p-doc-hero__text {
  margin-top: 24px;
}

.p-doc-hero__text + .p-doc-hero__text {
  margin-top: 16px;
}

/* The run of content sections. Hairline-separated rather than carded: these
   pages are documents, and a stack of cards reads as a menu. */
.p-doc__list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-doc__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.p-doc__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.p-doc__item:last-child {
  padding-bottom: 0;
}

.p-doc__icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  flex: 0 0 auto;
}

.on-dark .p-doc__icon {
  color: var(--gold);
}

.p-doc__icon svg {
  width: 22px;
  height: 22px;
}

.p-doc__title {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

/* The spec pairs almost every heading with a second, sentence-form line
   ("Confirm the Material First", "Solubility Is Product-Specific"). It is a
   sub-heading, not a paragraph, so it gets the champagne label treatment. */
.p-doc__lead {
  display: block;
  color: var(--gold-deep);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 12px 0 0;
}

.on-dark .p-doc__lead {
  color: var(--gold);
}

.p-doc__text {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 68ch;
  margin: 16px 0 0;
}

.p-doc__item .p-bullets {
  margin-top: 16px;
  max-width: 68ch;
}

.p-doc__cta {
  margin-top: 24px;
}

/* Closing notice. Navy panel with the red statutory rule, used for the
   Research Use Only block that ends every one of these pages. */
.p-doc-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.p-doc-note__icon {
  color: var(--red);
  display: grid;
  place-items: center;
}

.p-doc-note__icon svg {
  width: 24px;
  height: 24px;
}

.p-doc-note__title {
  color: var(--text);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.p-doc-note__text {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-sm);
  line-height: 1.7;
  margin: 10px 0 0;
}

.p-doc-note__text + .p-doc-note__text {
  margin-top: 10px;
}

/* Closing action panel. Every one of these pages ends on the same two-action
   block (contact + a secondary destination), so it is one component. */
.p-doc-close {
  display: grid;
  gap: 32px;
}

.p-doc-cta {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 56px 40px;
  text-align: center;
}

.p-doc-cta__title {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.p-doc-cta__text {
  color: var(--text);
  opacity: 0.78;
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 60ch;
  margin: 20px auto 0;
}

.p-doc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

@media screen and (max-width: 1024px) {
  .p-doc-hero__sub {
    font-size: var(--text-md);
  }

  .p-doc__item {
    gap: 24px;
    padding: 40px 0;
  }

  .p-doc__title {
    font-size: var(--text-lg);
  }

  .p-doc__text,
  .p-doc__item .p-bullets {
    max-width: none;
  }

  .p-doc-note {
    padding: 28px;
  }

  .p-doc-cta {
    padding: 44px 32px;
  }

  .p-doc-cta__title {
    font-size: var(--text-xl);
  }
}

@media screen and (max-width: 749px) {
  .p-doc__item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 0;
  }

  .p-doc__icon {
    width: 40px;
    height: 40px;
  }

  .p-doc__icon svg {
    width: 18px;
    height: 18px;
  }

  .p-doc-note {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 20px;
  }

  .p-doc-cta {
    padding: 36px 24px;
  }

  /* Stacked, full-width actions — two side-by-side buttons at 375px force a
     horizontal scroll, which is bug 9 from Phase 3 in a different costume. */
  .p-doc-cta__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .p-doc-cta__actions > * {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1200px) {
  .p-nav { gap: 22px; }
  .p-header__inner { padding: 0 24px; }

  .p-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
    row-gap: 56px;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --section-y: 72px;
    --section-y-sm: 40px;
    --header-h: 76px;
  }

  .p-nav,
  .p-header__actions .p-icon-btn--account {
    display: none;
  }

  .p-burger { display: grid; }

  /* `.p-header__inner` used to hardcode 60px here, which did NOT track
     --header-h — so scroll-padding-top and the shop sidebar's sticky offset
     were computed against 72px while the header was actually 60px. The height
     now comes from the token at every width; only the token changes. */

  .compliance-banner { min-height: 64px; }

  .p-logo img { height: 38px; }

  .p-split,
  .p-split--even {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .p-grid-4,
  .p-grid-5,
  .trust-bar--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .p-media--tall { min-height: 320px; }
}

@media screen and (max-width: 749px) {
  :root {
    --section-y: 56px;
    --section-y-sm: 32px;
    --gutter: 20px;
    --header-h: 64px;
  }

  .p-grid-2,
  .p-grid-3,
  .p-grid-4,
  .p-grid-5,
  .trust-bar,
  .trust-bar--5 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .p-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 0;
  }

  .p-footer__col--brand,
  .p-footer__col--newsletter {
    grid-column: 1 / -1;
  }

  .p-footer__bottom-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }

  .p-newsletter__form,
  .p-newsletter__text,
  .p-footer__tagline {
    max-width: none;
  }

  /* The band is content-sized here, not min-height-sized: at 375px the
     secondary line wraps to two rows whatever the minimum says. These values
     are what keep the total under the 64px header — measured, not assumed. */
  .compliance-banner {
    min-height: 56px;
    padding: 6px 20px;
  }

  /* THE CAPS COME OFF AT THIS WIDTH, AND THAT IS THE WHOLE FIX.
     The primary line is 48 characters. Uppercase at 0.05em tracking it measures
     ~408px against 315px of usable width at 375px, so it wrapped to two rows —
     and two rows of primary plus the two the secondary always needs put the
     band at 71.6px under a 64px header. In sentence case at 12px the same
     string measures ~290px and fits on one row, which brings the band to ~59px
     and restores the gap. No word of the statutory copy changes; only its
     casing, and only below 749px. Do not reinstate `text-transform` here
     without re-measuring the band against --header-h at 375px. */
  .compliance-banner__main {
    font-size: 12px;
    gap: 6px;
    letter-spacing: 0.01em;
    text-transform: none;
    align-items: flex-start;
    text-align: left;
  }

  .compliance-banner__main svg {
    width: 14px;
    height: 14px;
    margin-top: 0;
  }

  .compliance-banner__sub {
    font-size: 10px;
    line-height: 1.4;
    margin-top: 3px;
    text-align: left;
  }

  .p-global-disclaimer {
    padding: 40px 0;
  }

  /* The bar has to clear the medallion. At 28px tall with a 36px badge and
     `overflow: hidden` the medallion was sliced top and bottom and read as the
     research-use banner cutting into the crest. */
  .p-crest { height: 40px; }

  .p-crest__badge {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .btn-primary,
  .btn-outline,
  .btn-dark {
    padding: 13px 22px;
    font-size: 12px;
  }

  .p-card { padding: 24px; }

  .p-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
  }

  .p-tabs::-webkit-scrollbar { display: none; }
}

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

/* --------------------------------------------------------------------------
   16. CHROME OVERRIDES
   Ported from the per-section {% stylesheet %} blocks in header.liquid and
   footer.liquid (Shopify scopes these to the section; here header/footer are
   always-loaded template-parts, so the rules live in the global stylesheet).
   -------------------------------------------------------------------------- */

.p-drawer__foot {
  margin-top: auto;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--line);
}

/* Six columns: brand + service + info + policies + account + newsletter. */
.p-footer__top {
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1fr 1.3fr;
  gap: 32px;
}

@media screen and (max-width: 1200px) {
  .p-footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    row-gap: 56px;
  }
}

@media screen and (max-width: 749px) {
  .p-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .p-footer__col--brand,
  .p-footer__col--newsletter {
    grid-column: 1 / -1;
  }
}
