/* BioPepSyn Lab — design tokens and baseline typography.
   Loaded after page-level styles so the scale wins on equal specificity.
   Phase 1: homepage sample. Later phases extend to PDP and the rest. */

:root {
  /* type scale — 7 steps */
  --fs-micro: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 20px;
  --fs-lg: 26px;
  --fs-xl: 34px;
  --fs-display: 56px;

  /* rhythm */
  --lh-tight: 1.12;
  --lh-heading: 1.24;
  --lh-body: 1.62;
  --tracking-caps: 0.12em;

  /* weights — two only */
  --w-regular: 400;
  --w-medium: 600;

  /* spacing — 8px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

/* ---- baseline type ---------------------------------------------------- */

body.home-page p,
body.home-page li,
body.home-page dd,
body.home-page .home-product-meta span,
body.home-page .simple-order-steps p {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

body.home-page .eyebrow,
body.home-page .simple-order-steps span,
body.home-page .home-product-meta span {
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

body.home-page h1 {
  font-size: clamp(40px, 5.2vw, var(--fs-display));
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

body.home-page h2 {
  font-size: var(--fs-xl);
  line-height: var(--lh-heading);
  letter-spacing: -0.005em;
}

body.home-page h3,
body.home-page .simple-order-steps h3 {
  font-size: var(--fs-md);
  line-height: var(--lh-heading);
}

body.home-page .home-product-meta strong {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

body.home-page .home-product-meta .text-link,
body.home-page .text-link {
  font-size: var(--fs-sm);
}

body.home-page .button {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
}

/* ---- spacing rhythm --------------------------------------------------- */

body.home-page section {
  padding-block: var(--space-8);
}

body.home-page .simple-order {
  padding-block: var(--space-8);
}

body.home-page .home-trust-band,
body.home-page .home-contact-band {
  padding-block: var(--space-7);
}

/* ---- visible state layer (buttons) ------------------------------------ */

body.home-page .button:focus-visible,
body.home-page .text-link:focus-visible,
body.home-page a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

body.home-page .button[disabled],
body.home-page .button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page *,
  body.home-page *::before,
  body.home-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---- phase 1b: components -------------------------------------------- */

body.home-page .hero h1,
body.home-page h1 {
  font-size: clamp(40px, 4.4vw, var(--fs-display)) !important;
}

body.home-page .hero-intro,
body.home-page .hero p {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

/* header navigation */
body.home-page .site-header a,
body.home-page .site-header nav a,
body.home-page .skip-link {
  font-size: var(--fs-sm);
  font-weight: var(--w-regular);
}

/* product cards */
body.home-page .hc-name {
  font-size: var(--fs-md);
  line-height: var(--lh-heading);
}

body.home-page .hc-meta,
body.home-page .hc-price {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

body.home-page .hc-price {
  font-weight: var(--w-medium);
}

body.home-page .hc-arrow {
  font-size: var(--fs-base);
}

/* figure captions and fine print */
body.home-page figcaption,
body.home-page figcaption span,
body.home-page figcaption strong,
body.home-page .catalog-image-note {
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
}

/* floating contact widget */
body.home-page .floating-whatsapp,
body.home-page .floating-whatsapp-label {
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
}

/* ---- phase 1c: overlays, disclosures, fine print --------------------- */

body.home-page figcaption strong {
  font-weight: var(--w-medium);
}

body.home-page summary,
body.home-page .analytics-choice button,
body.home-page .analytics-choice summary,
body.home-page .age-gate button,
body.home-page [data-site-access] button {
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
}

body.home-page .analytics-choice p,
body.home-page .analytics-choice span,
body.home-page .age-gate p {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

body.home-page details p,
body.home-page .site-footer p,
body.home-page .site-footer a {
  font-size: var(--fs-sm);
}

/* ---- phase 1d: anchor + sticky header offsets ------------------------ */

body.home-page {
  --header-height: 76px;
}

body.home-page section[id],
body.home-page [id="catalog"],
body.home-page [id="products"] {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

/* ======================================================================
   Phase 2 — product detail page (sample: .ds-sample)
   ====================================================================== */

.page-type-product-detail.ds-sample p,
.page-type-product-detail.ds-sample li,
.page-type-product-detail.ds-sample dd,
.page-type-product-detail.ds-sample .product-overview,
.page-type-product-detail.ds-sample .catalog-image-note {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

.page-type-product-detail.ds-sample h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.page-type-product-detail.ds-sample h2 {
  font-size: var(--fs-lg);
  line-height: var(--lh-heading);
}

.page-type-product-detail.ds-sample h3 {
  font-size: var(--fs-md);
  line-height: var(--lh-heading);
}

.page-type-product-detail.ds-sample .product-category,
.page-type-product-detail.ds-sample .eyebrow,
.page-type-product-detail.ds-sample dt,
.page-type-product-detail.ds-sample .product-packing,
.page-type-product-detail.ds-sample .catalog-image-note {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: var(--w-medium);
}

.page-type-product-detail.ds-sample .catalog-image-note {
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.page-type-product-detail.ds-sample .retail-price-value {
  font-size: var(--fs-lg);
  font-weight: var(--w-medium);
  line-height: var(--lh-heading);
}

.page-type-product-detail.ds-sample .catalog-spec-select,
.page-type-product-detail.ds-sample select {
  font-size: var(--fs-base);
}

.page-type-product-detail.ds-sample .button,
.page-type-product-detail.ds-sample button.button {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
}

.page-type-product-detail.ds-sample .text-link {
  font-size: var(--fs-sm);
}

.page-type-product-detail.ds-sample .product-configuration h3,
.page-type-product-detail.ds-sample .product-related h2 {
  font-size: var(--fs-lg);
}

/* ---- phase 2b: PDP elements ----------------------------------------- */

.page-type-product-detail.ds-sample strong,
.page-type-product-detail.ds-sample b {
  font-weight: var(--w-medium);
}

.page-type-product-detail.ds-sample button,
.page-type-product-detail.ds-sample .button {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

.page-type-product-detail.ds-sample .bps-cart-count {
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
}

.page-type-product-detail.ds-sample time {
  font-size: var(--fs-micro);
}

.page-type-product-detail.ds-sample .site-footer a,
.page-type-product-detail.ds-sample .site-footer p,
.page-type-product-detail.ds-sample .site-footer span,
.page-type-product-detail.ds-sample nav a {
  font-size: var(--fs-sm);
  font-weight: var(--w-regular);
}

.page-type-product-detail.ds-sample a.text-link {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

/* ---- phase 2c: remaining PDP micro elements -------------------------- */

.page-type-product-detail.ds-sample .skip-link,
.page-type-product-detail.ds-sample .bps-cart-label,
.page-type-product-detail.ds-sample .product-category,
.page-type-product-detail.ds-sample .retail-price-unit,
.page-type-product-detail.ds-sample .retail-price-note,
.page-type-product-detail.ds-sample .bps-order-box-label,
.page-type-product-detail.ds-sample output,
.page-type-product-detail.ds-sample .site-access-age-mark {
  font-size: var(--fs-micro);
  font-weight: var(--w-medium);
}

.page-type-product-detail.ds-sample .retail-price-note,
.page-type-product-detail.ds-sample .retail-price-unit {
  font-weight: var(--w-regular);
  letter-spacing: 0.01em;
}

/* ---- phase 3: spacing normalisation ---------------------------------- */

body.home-page .hero {
  padding-block: 80px 56px;
}

body.home-page .products-section {
  padding-block: 64px;
}

/* ---- phase 3b: override page-level !important (temporary) ------------ */

body.home-page .hero {
  padding-block: 80px 56px !important;
}

body.home-page .hero-trust li {
  font-size: var(--fs-micro) !important;
  font-weight: var(--w-medium) !important;
}

/* ---- phase 3c: tablet breakpoint -------------------------------------
   The base layout switches to one column only below 760px, which leaves
   761–900px with two cramped columns after the type scale grew. */

@media (max-width: 900px) {
  .page-type-product-detail.ds-sample .product-spec-layout {
    display: flex;
    flex-direction: column;
  }

  .page-type-product-detail.ds-sample .product-detail-media {
    width: min(100%, 460px);
    margin-inline: auto;
  }

  .page-type-product-detail.ds-sample .product-identity {
    width: 100%;
  }
}

/* ---- phase 2d: page-level !important overrides on the PDP ------------ */

.page-type-product-detail.ds-sample .product-identity h1,
.page-type-product-detail.ds-sample h1 {
  font-size: clamp(32px, 3.2vw, 44px) !important;
  line-height: var(--lh-tight) !important;
}

.page-type-product-detail.ds-sample .header-cta,
.page-type-product-detail.ds-sample .bps-quote-inline {
  font-size: var(--fs-sm) !important;
  font-weight: var(--w-medium) !important;
}

.page-type-product-detail.ds-sample summary,
.page-type-product-detail.ds-sample .research-inquiry-kicker,
.page-type-product-detail.ds-sample .floating-whatsapp-label,
.page-type-product-detail.ds-sample .product-category a {
  font-size: var(--fs-micro) !important;
  font-weight: var(--w-medium) !important;
}

.page-type-product-detail.ds-sample .product-documents a,
.page-type-product-detail.ds-sample .product-documents span,
.page-type-product-detail.ds-sample .product-packing a {
  font-size: var(--fs-sm) !important;
}

/* ---- phase 2e: one display face for product titles -------------------- */

.page-type-product-detail.ds-sample .product-identity h1 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif !important;
  font-weight: var(--w-regular) !important;
  letter-spacing: -0.005em !important;
}

/* ======================================================================
   Phase 4 — content pages (.inner-page without the product template)
   ====================================================================== */

body.inner-page:not(.page-type-product-detail) p,
body.inner-page:not(.page-type-product-detail) li,
body.inner-page:not(.page-type-product-detail) dd,
body.inner-page:not(.page-type-product-detail) .lede {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

body.inner-page:not(.page-type-product-detail) h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
}

body.inner-page:not(.page-type-product-detail) h2 {
  font-size: var(--fs-lg);
  line-height: var(--lh-heading);
}

body.inner-page:not(.page-type-product-detail) h3 {
  font-size: var(--fs-md);
  line-height: var(--lh-heading);
}

body.inner-page:not(.page-type-product-detail) .eyebrow,
body.inner-page:not(.page-type-product-detail) dt,
body.inner-page:not(.page-type-product-detail) .kicker {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  font-weight: var(--w-medium);
}

body.inner-page:not(.page-type-product-detail) .button {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
}

body.inner-page:not(.page-type-product-detail) .text-link {
  font-size: var(--fs-sm);
}

body.inner-page:not(.page-type-product-detail) section {
  padding-block: var(--space-8);
}

body.inner-page:not(.page-type-product-detail) a:focus-visible,
body.inner-page:not(.page-type-product-detail) button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- phase 4b: one display face for content headings ----------------- */

body.inner-page:not(.page-type-product-detail) h1,
body.inner-page:not(.page-type-product-detail) h2 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: var(--w-regular);
  letter-spacing: -0.008em;
}

/* ======================================================================
   Phase 5 — retail listing template (body.ds-retail)
   ====================================================================== */

body.ds-retail p,
body.ds-retail li,
body.ds-retail .note {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

body.ds-retail h1 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(38px, 4.6vw, 56px);
  font-weight: var(--w-regular);
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
}

body.ds-retail h2 {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: var(--fs-lg);
  font-weight: var(--w-regular);
  line-height: var(--lh-heading);
  letter-spacing: -0.008em;
}

body.ds-retail .rows .pname {
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: var(--fs-md);
  font-weight: var(--w-regular);
  line-height: var(--lh-heading);
}

body.ds-retail .rows .pspec,
body.ds-retail .rows .pcount,
body.ds-retail .rows .pprice {
  font-size: var(--fs-sm);
  font-weight: var(--w-regular);
  letter-spacing: 0.01em;
}

body.ds-retail .rows .pprice {
  font-weight: var(--w-medium);
}

body.ds-retail .rows .parrow {
  font-size: var(--fs-base);
}

body.ds-retail .eyebrow,
body.ds-retail .toolbar a,
body.ds-retail .tb-links a,
body.ds-retail .note {
  font-size: var(--fs-micro);
}

body.ds-retail .toolbar a,
body.ds-retail .tb-links a {
  font-weight: var(--w-medium);
  letter-spacing: 0.02em;
}

body.ds-retail .button {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

/* ======================================================================
   Phase 6 — shared chrome (header, overlays, skip link) on every linked page
   ====================================================================== */

.site-header nav a,
.site-header .nav a,
.site-header .nav-link,
.site-header .nav-active {
  font-size: var(--fs-sm);
  font-weight: var(--w-regular);
  letter-spacing: 0.01em;
}

.site-header .nav-active {
  font-weight: var(--w-medium);
}

.skip-link {
  font-size: var(--fs-sm);
}

[data-site-access] button,
.age-gate button {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

[data-site-access] p,
[data-site-access] .site-access-body {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

/* ---- phase 6b: forms ------------------------------------------------- */

body.inner-page:not(.page-type-product-detail) label,
body.inner-page:not(.page-type-product-detail) .inquiry-legend-note,
body.inner-page:not(.page-type-product-detail) legend {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
  line-height: var(--lh-heading);
}

body.inner-page:not(.page-type-product-detail) .inquiry-legend-note {
  font-weight: var(--w-regular);
  color: var(--muted);
}

body.inner-page:not(.page-type-product-detail) input,
body.inner-page:not(.page-type-product-detail) select,
body.inner-page:not(.page-type-product-detail) textarea {
  font-size: var(--fs-base);
}

.site-header .header-cta {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

/* ======================================================================
   Phase 7 — colour palette
   Baseline audit: 300 distinct colour values in core CSS, 54 rendered on
   4 pages, with near-duplicate greens/whites. These tokens collapse the
   common cases; the rest is legacy to migrate page by page.
   ====================================================================== */

:root {
  --c-ink: #17251f;         /* primary text */
  --c-ink-2: #4c5c51;       /* body copy */
  --c-muted: #56645b;       /* labels, notes */
  --c-green: #157a2e;       /* brand accent */
  --c-green-deep: #143a2e;  /* headings, buttons */
  --c-paper: #fffdf8;       /* page surface */
  --c-paper-2: #f4f0e7;     /* tinted band */
  --c-line: #dcd8cc;        /* hairlines */
  --c-white: #ffffff;
  --c-gold: #b08a4f;        /* eyebrow on dark */
}

body.home-page h1,
body.home-page h2,
body.home-page h3,
body.ds-retail h1,
body.ds-retail h2,
body.ds-retail .rows .pname {
  color: var(--c-ink);
}

body.home-page p,
body.home-page li,
body.ds-retail p,
body.ds-retail li {
  color: var(--c-ink-2);
}

body.home-page .eyebrow,
body.home-page figcaption,
body.home-page .catalog-image-note,
body.inner-page:not(.page-type-product-detail) .catalog-image-note,
body.ds-retail .note,
body.ds-retail .rows .pspec,
body.ds-retail .rows .pcount {
  color: var(--c-muted);
}

.page-type-product-detail.ds-sample h1,
.page-type-product-detail.ds-sample h2,
.page-type-product-detail.ds-sample h3 {
  color: var(--c-ink);
}

.page-type-product-detail.ds-sample p,
.page-type-product-detail.ds-sample li,
.page-type-product-detail.ds-sample .product-overview {
  color: var(--c-ink-2);
}

.page-type-product-detail.ds-sample .product-category,
.page-type-product-detail.ds-sample .product-packing,
.page-type-product-detail.ds-sample .retail-price-note,
.page-type-product-detail.ds-sample .catalog-image-note {
  color: var(--c-muted);
}

/* ======================================================================
   Phase 8 — interactive states
   Buttons, links and fields get explicit hover / active / focus / disabled
   / error states instead of ad-hoc opacity changes.
   ====================================================================== */

.button {
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease, transform 0.06s ease;
}

.button:hover {
  background-color: var(--c-green-deep);
  border-color: var(--c-green-deep);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible {
  outline: 2px solid var(--c-green-deep);
  outline-offset: 3px;
}

.button[disabled],
.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-link {
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.text-link:hover {
  text-decoration-color: var(--c-green);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-green-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--c-green-deep);
  box-shadow: 0 0 0 3px rgba(20, 58, 46, 0.12);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"],
.field-error input,
.field-error textarea,
.field-error select {
  border-color: #a4372c;
  box-shadow: 0 0 0 3px rgba(164, 55, 44, 0.12);
}

.field-error,
[data-field-error] {
  color: #a4372c;
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
}

/* ---- phase 8b: states that must win over page-level rules ------------- */

.button:hover {
  background-color: #1d5b3d !important; /* --c-green-hover */
}

.button:active {
  background-color: #143a2e !important;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"],
.field-error input,
.field-error textarea,
.field-error select {
  border-color: #a4372c !important;
  box-shadow: 0 0 0 3px rgba(164, 55, 44, 0.12) !important;
}

/* ---- phase 9: light-on-dark surfaces ---------------------------------
   The palette pass forced ink colours globally; dark bands need their own
   foreground tokens (audit found 1.27:1 and 1.77:1 contrast there). */

:root {
  --c-on-dark: #fffdf8;
  --c-on-dark-2: rgba(255, 253, 248, 0.86);
  --c-on-dark-3: rgba(255, 253, 248, 0.72);
}

body.home-page .film-strip h2,
body.home-page .film-strip h3,
body.home-page .home-contact-band h2,
body.home-page .home-contact-band h3 {
  color: var(--c-on-dark) !important;
}

body.home-page .film-strip p,
body.home-page .film-strip li,
body.home-page .film-strip span,
body.home-page .home-contact-band p,
body.home-page .home-contact-band span,
body.home-page .home-contact-band a {
  color: var(--c-on-dark-2) !important;
}

body.home-page .film-strip .eyebrow,
body.home-page .home-contact-band .eyebrow,
body.home-page .film-strip figcaption,
body.home-page .home-contact-band small {
  color: var(--c-on-dark-3) !important;
}

/* quality page: breadcrumb trail was 4.23:1 */
body.inner-page .breadcrumb a,
body.inner-page .breadcrumbs a,
body.inner-page nav[aria-label*="readcrumb" i] a {
  color: var(--c-muted);
}

/* breadcrumbs: last item is a span, not a link */
body.inner-page .breadcrumbs,
body.inner-page .breadcrumbs a,
body.inner-page .breadcrumbs span,
body.inner-page .breadcrumbs li {
  color: var(--c-muted) !important;
}

/* ---- phase 9b: every dark surface uses the on-dark tokens ------------ */

body.inner-page .about-capacity h2,
body.inner-page .about-capacity h3,
body.inner-page .about-capacity p,
body.inner-page .about-capacity li,
body.inner-page .about-capacity .eyebrow,
body.inner-page .page-contact h2,
body.inner-page .page-contact h3,
body.inner-page .page-contact p,
body.inner-page .page-contact .eyebrow,
body.inner-page .dark-band h2,
body.inner-page .dark-band p,
body.inner-page .dark-band .eyebrow {
  color: var(--c-on-dark) !important;
}

body.inner-page .about-capacity .eyebrow,
body.inner-page .page-contact .eyebrow,
body.inner-page .dark-band .eyebrow {
  color: var(--c-on-dark-3) !important;
}

/* small print on tinted surfaces was 10px / 3.80:1 */
body.inner-page .product-documents small,
body.inner-page .catalog-image-note small,
body.inner-page small {
  font-size: var(--fs-micro);
  color: var(--c-muted);
}

/* retail spec/count text: 4.47:1 -> use ink-2 */
body.ds-retail .rows .pspec,
body.ds-retail .rows .pcount {
  color: var(--c-ink-2);
}

/* ---- phase 9c: two more dark surfaces found in the 163-page sweep ---- */

body.inner-page .factory-process-reel h1,
body.inner-page .factory-process-reel h2,
body.inner-page .factory-process-reel h3,
body.inner-page .factory-process-reel p,
body.inner-page .factory-process-reel .eyebrow,
body.inner-page .factory-process-reel li {
  color: var(--c-on-dark) !important;
}

body.inner-page .factory-process-reel .eyebrow {
  color: var(--c-on-dark-3) !important;
}

body.inner-page .page-contact a,
body.inner-page .page-contact .inline-link,
body.inner-page .page-contact .light-link,
body.inner-page .page-contact strong {
  color: var(--c-on-dark) !important;
}

/* ---- phase 9d: hero secondary links ----------------------------------
   Split heroes have a light content column but inherited white link text,
   so the secondary CTA was invisible (factory, oem). */
body.inner-page .page-hero .page-actions .text-link,
body.inner-page .page-hero .oem-service-choice {
  color: var(--c-green-deep) !important;
  text-decoration-color: currentColor;
}

/* factory reel captions sit on the dark band */
body.inner-page .factory-process-reel small,
body.inner-page .factory-process-reel figcaption,
body.inner-page .factory-process-reel .reference-note {
  color: var(--c-on-dark-3) !important;
}

/* ======================================================================
   Phase 10 — directory / catalog table pages (.page-type-directory)
   ====================================================================== */

body.page-type-directory .catalog-sidebar-title,
body.page-type-directory th,
body.page-type-directory .directory-product-detail,
body.page-type-directory .retail-price-unit {
  font-size: var(--fs-sm);
  font-weight: var(--w-medium);
}

body.page-type-directory th {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

body.page-type-directory .row-link,
body.page-type-directory .directory-product-name {
  font-size: var(--fs-md);
  font-weight: var(--w-regular);
  line-height: var(--lh-heading);
}

body.page-type-directory .retail-price-value {
  font-size: var(--fs-base);
  font-weight: var(--w-medium);
}

body.page-type-directory a {
  font-size: var(--fs-sm);
}

body.page-type-directory .directory-product-detail {
  font-weight: var(--w-regular);
  color: var(--c-ink-2);
}

/* age-gate fine print was 4.28:1 (appears on every page) */
.site-access-fineprint,
.site-access-note,
[data-site-access] small {
  color: var(--c-muted) !important;
}

/* ======================================================================
   Phase 11 — hero motion without video
   Image-to-video is not available on the current provider, so the hero
   gets a slow editorial drift instead: 24s, alternate, reduced-motion off.
   ====================================================================== */

@keyframes bps-hero-drift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to   { transform: scale(1.075) translate3d(-1.2%, -1.4%, 0); }
}

body.home-page .hero-editorial-figure {
  overflow: hidden;
  border-radius: 4px;
}

body.home-page .hero-editorial-figure img {
  animation: bps-hero-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .hero-editorial-figure img {
    animation: none;
    transform: none;
  }
}

/* ---- phase 12: hero caption on narrow screens ------------------------ */

@media (max-width: 760px) {
  body.home-page .hero-editorial-figure figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    letter-spacing: 0.06em;
  }

  body.home-page .hero-editorial-figure figcaption span,
  body.home-page .hero-editorial-figure figcaption strong {
    display: block;
  }

  /* keep the full 16:9 composition on phones instead of a square crop */
  body.home-page .hero-editorial-figure img {
    aspect-ratio: 4 / 3;
  }
}

/* ---- phase 13: film strip still (replaces the old product video) ------ */

body.home-page .film-strip-video {
  opacity: 0.96 !important;
}

body.home-page .film-strip-video {
  object-position: 68% center;
}

/* the film-strip reveal was driven by the (now removed) video element */
body.home-page .film-strip-copy > * {
  opacity: 1 !important;
  transform: none !important;
}

/* ======================================================================
   Phase 14 — store widget (cart + order box) aligned with the brand
   The injected widget ships blue-grey defaults; these overrides keep it
   inside the palette and fix two sub-AA text pairs (4.09:1 and 1.68:1).
   ====================================================================== */

.bps-cart-count {
  background: var(--c-green-deep) !important;
  color: var(--c-on-dark) !important;
  border-color: var(--c-green-deep) !important;
}

.bps-cart-link,
.bps-cart-label {
  color: var(--c-ink) !important;
}

.bps-stepper button,
.bps-order-controls button {
  color: var(--c-ink) !important;
  background: var(--c-white) !important;
  border: 1px solid var(--c-line) !important;
}

.bps-stepper button:disabled {
  color: var(--c-muted) !important;
  opacity: 1 !important;
}

.bps-order-box {
  background: var(--c-paper-2) !important;
  border: 1px solid var(--c-line) !important;
}

.bps-order-box-note,
.bps-order-stock,
.bps-doc-line,
.bps-tier-note {
  color: var(--c-muted) !important;
}

.bps-tier-table,
.bps-tier-line {
  border-color: var(--c-line) !important;
}

/* ---- phase 15: film strip on phones -------------------------------- */

@media (max-width: 760px) {
  body.home-page .film-strip {
    min-height: 0;
  }

  body.home-page .film-strip-copy {
    width: auto;
    max-width: none;
    margin-left: 0;
    padding: 56px 20px 56px 20px;
  }

  body.home-page .film-strip-copy > * {
    color: var(--c-on-dark) !important;
  }

  /* darken the footage so the copy stays readable over it */
  body.home-page .film-strip:after {
    background: linear-gradient(180deg,
      rgba(20, 58, 46, 0.94) 0%,
      rgba(20, 58, 46, 0.90) 55%,
      rgba(20, 58, 46, 0.86) 100%) !important;
  }

  body.home-page .film-strip-video {
    object-position: 62% center;
  }
}

/* ======================================================================
   Phase 16 — visual unification pass (facility tone, sidebar, hero notes)
   ====================================================================== */

/* directory sidebar: 13px is too small and dense */
body.page-type-directory .catalog-category-links a {
  font-size: 14px;
  line-height: 1.6;
}

/* unified hero photo-note style (about/factory/quality use different classes) */
.about-hero-photo-note,
.quality-template-note,
.page-hero [class*="photo-note"],
.page-hero [class*="hero-note"] {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* tighten the small gap between a category hero and its product grid */
body.page-type-category .catalog-category-products {
  padding-top: 0;
}

/* ---- phase 17: hero video fills like the old image ------------------ */

.page-hero-media video.page-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-media video.page-hero-video {
    display: none;
  }
  /* the poster attribute won't show when display:none, so reveal the media bg */
  .page-hero-media { background-color: #fffdf8; }
}
