/*
Theme Name: Blocksy Hart Legacy Child
Template: blocksy
Description: HART LEGACY LABS child theme (Client Site Factory). Client-locked palette #050607/#1C1F24/#D1D5DB/#F5F3F0/#C8A86B, Cinzel headings + Montserrat body. Palette spliced by scripts/apply-brand.sh (lines marked @brand:*); fonts + gold-accent layer appended per csf-brand step 3.
Version: 1.1.3
*/

/* Client-locked typography: Cinzel (display) + Montserrat (body). @import must precede all rules. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* @brand markers — apply-brand.sh rewrites the hex on each marked line */
  --bpc-primary:           #C8A86B; /* @brand:primary */
  --bpc-primary-hover:     #D8BE8A; /* @brand:primary-hover */
  --bpc-foreground:        #F5F3F0; /* @brand:foreground */
  --bpc-body:              #D1D5DB; /* @brand:body */
  --bpc-background:        #050607; /* @brand:background */
  --bpc-card:              #1C1F24; /* @brand:card */
  --bpc-border:            #2B2F36; /* @brand:border */
  --bpc-background-deeper: #000000; /* @brand:background-deeper */

  --bpc-font-sans: 'Montserrat', system-ui, sans-serif;
  --bpc-font-mono: 'DM Mono', ui-monospace, monospace;
  --bpc-radius: 0.375rem;
}

/* ---- HART LEGACY LABS brand layer (csf-brand step 3 — fonts + accent, client-locked) ---- */
:root {
  --bpc-accent: #C8A86B;               /* gold — accent text/rules on dark surfaces ONLY (8.95:1 on bg, 7.29:1 on card) */
  --bpc-font-display: 'Cinzel', 'Times New Roman', serif;
  --bpc-font-sans: 'Montserrat', system-ui, sans-serif;
}

/* Blocksy's dynamic typography CSS wins the cascade — font overrides need !important. */
body { font-family: var(--bpc-font-sans) !important; }
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.woocommerce-loop-product__title {
  font-family: var(--bpc-font-display) !important;
  letter-spacing: 0.02em;
}

/* Logo presence standard (Austin's bar): mark >=48px tall on desktop; 54px = the Merit Bio setting.
   logo-lockup-transparent.png keeps pad around HART so the T/H serifs are not cropped
   (2026-08-14: 580×594 alpha-crop cut the T; rebuilt from the 740×800 dark lockup). */
[data-id="logo"] .site-logo-container img { max-height: 54px; }
.site-title { font-size: 26px; }

/* ⚠️ AA guard: white text on gold #C8A86B is 2.27:1 — FAILS. Every solid-gold control uses
   near-black text (#050607 on gold = 8.95:1; on hover gold #D8BE8A = 11.25:1). */
.ct-button, button, .button, input[type="submit"], .wp-element-button,
.single_add_to_cart_button, .add_to_cart_button, .checkout-button {
  color: var(--bpc-background) !important;
  font-family: var(--bpc-font-sans) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.age-gate__button--yes, .age-gate__submit--yes { color: var(--bpc-background) !important; }
.age-gate__button--no, .age-gate__submit--no { color: var(--bpc-primary) !important; }
.age-gate__button--no:hover, .age-gate__submit--no:hover { color: var(--bpc-primary-hover) !important; }

/* Force the client palette onto Blocksy's surfaces (mirrors a1-compounds !important pattern).
   Contract law: default running text = `body` token (#D1D5DB, 13.20:1 on bg / 11.21:1 on card);
   `foreground` (#F5F3F0) is reserved for headings + high-emphasis text. */
body {
  background: var(--bpc-background) !important;
  color: var(--bpc-body) !important;
  font-family: var(--bpc-font-sans);
}
h1, h2, h3, h4, h5, h6,
.site-title, .entry-title, .woocommerce-loop-product__title {
  color: var(--bpc-foreground); /* low-specificity guard: headings never inherit body gray */
}
a { color: var(--bpc-primary); }
a:hover { color: var(--bpc-primary-hover); }

/* Map the brand onto Blocksy's OWN palette variables. WITHOUT this, Blocksy renders buttons,
   links, breadcrumbs, the active-nav state, tags, and the add-to-cart CTA in its default accent
   #2872FA — off-brand AND only 4.31:1 on white (fails WCAG AA). apply-brand.sh fills --bpc-* above;
   these inherit it. !important is required: Blocksy emits its own :root palette inline in <head>
   AFTER this stylesheet, so only an !important custom-property declaration wins the cascade. */
:root {
  --theme-palette-color-1: var(--bpc-primary) !important;           /* links, buttons, accents, active nav */
  --theme-palette-color-2: var(--bpc-primary-hover) !important;     /* hover / brighter accent */
  --theme-palette-color-3: var(--bpc-foreground) !important;        /* headings, high-emphasis text */
  --theme-palette-color-4: var(--bpc-body) !important;              /* secondary / meta text — BODY gray, never gold (gold-as-accent law) */
  --theme-palette-color-5: var(--bpc-border) !important;            /* borders */
  --theme-palette-color-6: var(--bpc-card) !important;              /* raised surfaces */
  --theme-palette-color-7: var(--bpc-background-deeper) !important; /* deep wells (footer, vignettes) */
  --theme-palette-color-8: var(--bpc-background) !important;        /* base background */
}

/* ---- Age gate: premium brand skin (one-click 21+ confirm) ---- */
.age-gate__wrapper {
  background: var(--bpc-card);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10, 18, 28, .45);
  padding: 44px 40px;
  max-width: 420px;
}
.age-gate__heading-title {
  font-family: var(--bpc-font-display) !important;
  color: var(--bpc-primary);
  font-size: 30px;
  font-weight: 700; /* real imported weight — Cinzel ships 400-700; 800 would synthesize (banned, DESIGN.md §2) */
  letter-spacing: 0.02em; /* wide display tracking per DESIGN.md §2 */
}
.age-gate__subheadline {
  font-family: var(--bpc-font-sans) !important;
  color: var(--bpc-foreground);
  font-size: 15px;
  line-height: 1.55;
  max-width: 32ch;
  margin: 10px auto 22px;
}
.age-gate__button, .age-gate__submit {
  font-family: var(--bpc-font-sans) !important; /* buttons = Montserrat (DESIGN.md §2); Cinzel is display-only */
  border-radius: 999px !important;
  padding: 13px 30px !important;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--bpc-primary) !important;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.age-gate__button--yes, .age-gate__submit--yes {
  background: var(--bpc-primary) !important;
  /* AA guard (board law): near-black on gold. #050607 on #C8A86B = 8.95:1; on hover gold #D8BE8A = 11.25:1.
     NEVER #fff here — white on gold is 2.27:1 (1.80:1 on hover) and fails WCAG AA. */
  color: var(--bpc-background) !important;
}
.age-gate__button--yes:hover, .age-gate__submit--yes:hover { background: var(--bpc-primary-hover) !important; border-color: var(--bpc-primary-hover) !important; }
.age-gate__button--no, .age-gate__submit--no {
  background: transparent !important;
  color: var(--bpc-primary) !important;
}
.age-gate__button--no:hover, .age-gate__submit--no:hover { background: var(--bpc-border) !important; }
.age-gate__remember-wrapper, .age-gate__remember {
  font-family: var(--bpc-font-sans) !important;
  color: var(--bpc-foreground);
  font-size: 13px;
}
/* Error red: #F2555A = 4.90:1 on card #1C1F24, 6.01:1 on bg #050607 — AA pass on both dark surfaces.
   (Old #B3261E was 2.53:1 on the card — banned.) Same token as theme.json "destructive". */
.age-gate__errors { color: #F2555A; font-size: 14px; }

/* ---- Control-state governance (gold controls; codex D3 finding) ---- */
/* Focus: visible gold ring on dark surfaces (#D8BE8A on #050607 = 11.25:1; >= 3:1 non-text bar). */
.ct-button:focus-visible, button:focus-visible, .button:focus-visible,
input[type="submit"]:focus-visible, .wp-element-button:focus-visible,
.single_add_to_cart_button:focus-visible, .add_to_cart_button:focus-visible,
.checkout-button:focus-visible, .age-gate__button:focus-visible, .age-gate__submit:focus-visible,
a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--bpc-primary-hover) !important;
  outline-offset: 2px;
}
/* Disabled: never a gold field — graphite surface + body gray (#D1D5DB on #2B2F36 = 9.12:1, still readable). */
.ct-button:disabled, button:disabled, .button:disabled, input[type="submit"]:disabled,
.wp-element-button:disabled, .single_add_to_cart_button:disabled, .add_to_cart_button:disabled,
.ct-button[disabled], .button[disabled], .wp-element-button[aria-disabled="true"] {
  background: var(--bpc-border) !important;
  border-color: var(--bpc-border) !important;
  color: var(--bpc-body) !important;
  cursor: not-allowed;
}


/* G2d assemble: the static front page renders a duplicate "Home" hero H1 — suppress;
   the page copy provides its own H1 (csf-assemble §7). */
body.home .entry-header { display: none; }
/* Playwright 2026-08-13: live home had hero starting at y=166 (60px
   .ct-container-full pad + 33px leftover .hero-section) and only 1296px
   wide — black gutters + a dead band under the header. Kill the chrome
   so the DNA video is the full viewport under the overlay header. */
body.home .ct-container-full { padding: 0 !important; }
body.home .hero-section { display: none !important; }
body.home .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home .entry-content > #hl-home-root {
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

/* Zoom-safe full-bleed. 100vw includes the scrollbar, so calc(50% - 50vw)
   walks left on Cmd+/- zoom and never tracks the layout. Clip the axis and
   size these bands to the formatted parent — they morph with the build. */
html { overflow-x: clip; }

/* G2d assemble: style the owned csf-topstrip (was unstyled inline spans running together).
   Claim-free operational copy; brand tokens; stacks on small screens. */
.csf-topstrip {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 6px 24px; font-size: 12px; letter-spacing: .02em;
  background: var(--bpc-background-deeper, #000000); color: var(--bpc-body, #D1D5DB);
  border-bottom: 1px solid var(--bpc-border, #2B2F36);
}
.csf-topstrip .csf-topstrip__right { opacity: .8; }
@media (max-width: 689px) { .csf-topstrip { flex-direction: column; gap: 2px; text-align: center; } }
/* ---- G3 polish (designer, csf-design) — APPEND to blocksy-hart-legacy-child/style.css ----
   Closes the two G2 polish items that are child-theme-side:
   (2) PDP "Size" sibling-switcher spacing (csf-storefront-tweaks 4a renders
       .csf-strengths pills with no styling — they ran together).
   (Bottom-bar emoji -> real icons ships as mu-plugin v1.1.0, not here.) */

/* PDP strength/size switcher — spaced pill row under the price */
.csf-strengths {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}
.csf-strengths__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bpc-body);
  margin-right: 4px;
}
.csf-strength {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--bpc-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--bpc-foreground);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.csf-strength:hover {
  border-color: var(--bpc-primary);
  color: var(--bpc-primary);
}
/* Active pill: solid gold takes near-black text (AA law — never white on gold) */
.csf-strength.is-active {
  background: var(--bpc-primary);
  border-color: var(--bpc-primary);
  color: var(--bpc-background) !important;
}
.csf-strength.is-active:hover {
  background: var(--bpc-primary-hover);
  border-color: var(--bpc-primary-hover);
}

/* ============================================================================
   R1 FIX PASS (designer, codex-review R1 — 2026-08-12)
   #2  (codex 10) .csf-bigfoot footer CSS — the mu-plugin csf-storefront-tweaks
       renders the full premium footer markup and promises "Styled by the child
       theme's .csf-bigfoot rules"; those rules never existed, so the footer
       shipped as run-on text site-wide. This block IS those rules.
   #5b (codex 9)  interior pages read template-grade vs the home — hero band
       system for every interior title, dark-luxury shop archive, measured
       entry-content rhythm + styled steps, PDP framing. CSS-only; no template
       rewrites. Fluid/no-boxes law applies to interiors.
   AA notes inline. Gold = #C8A86B = rgb(200,168,107).
   ========================================================================== */

/* ---- R1-2 · .csf-bigfoot — the premium-dark footer --------------------- */
/* Renders inside .ct-footer [data-row=bottom] .ct-container > .ct-footer-copyright.
   Flatten Blocksy's padded frame so the marble is page chrome — same
   inset-stamp / gray-gutter bug as the top title band. */
.ct-footer,
.ct-footer [data-row],
.ct-footer [data-row=bottom] .ct-container,
.ct-footer [data-row=bottom] .ct-container-fluid,
.ct-footer .ct-footer-copyright {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--bpc-background-deeper) !important;
}
.ct-footer .ct-footer-copyright { padding: 0; }
.csf-bigfoot {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: var(--bpc-background-deeper);
  font-family: var(--bpc-font-sans);
  text-align: left;
}
.csf-bigfoot::before { /* top hairline — gold gradient, the house divider */
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 168, 107, 0.5), transparent);
}
.csf-bigfoot__wrap {
  max-width: 1160px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(44px, 6vw, 72px) clamp(20px, 4vw, 40px) clamp(30px, 4vw, 44px);
}
.csf-footer-logo {
  display: block;
  max-height: 46px;
  width: auto;
  margin: 0 0 14px;
}
.csf-bigfoot__name {
  display: block;
  font-family: var(--bpc-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bpc-foreground); /* #F5F3F0 on #000000 — AA pass */
}
.csf-bigfoot__brand p {
  margin: 12px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--bpc-body); /* #D1D5DB on #000000 ≈ 14.25:1 — AA pass */
}
/* Column heads: Montserrat eyebrows, never Cinzel (display is for titles).
   Non-heading element (.csf-bigfoot__hdg div) — footer column titles are
   navigation labels, not document-outline headings (axe heading-order). */
.csf-bigfoot__col .csf-bigfoot__hdg {
  font-family: var(--bpc-font-sans) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bpc-primary); /* gold #C8A86B on #000000 ≈ 9.27:1 — AA pass */
  margin: 0 0 14px;
}
/* Hairline dividers between columns (desktop) */
.csf-bigfoot__col {
  border-left: 1px solid rgba(200, 168, 107, 0.14);
  padding-left: clamp(20px, 2.5vw, 32px);
}
/* Legible link stack — the run-on fix: block links, breathing room, gold hover */
.csf-bigfoot__col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bpc-body);
  text-decoration: none;
  transition: color 0.15s ease;
}
.csf-bigfoot__col a:hover { color: var(--bpc-primary); }
.csf-bigfoot__bar {
  border-top: 1px solid rgba(200, 168, 107, 0.16);
  padding: 18px clamp(20px, 4vw, 40px);
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(209, 213, 219, 0.78); /* ≈ #A3A6AB on #000000 ≈ 8.6:1 — AA pass */
}
/* Mobile stack: brand full-width, columns 2-up then 1-up, dividers rotate to top */
@media (max-width: 899px) {
  .csf-bigfoot__wrap { grid-template-columns: 1fr 1fr; gap: 28px; }
  .csf-bigfoot__brand { grid-column: 1 / -1; }
  .csf-bigfoot__col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(200, 168, 107, 0.12);
    padding-top: 20px;
  }
}
@media (max-width: 559px) {
  .csf-bigfoot__wrap { grid-template-columns: 1fr; }
}

/* ---- R1-5b · interior hero band (every page title = a real hero) -------- */
/* Blocksy renders every interior title as .hero-section (shop = type-2 band,
   pages = type-1 constrained). One dark-luxury band system for both: deeper
   well, soft gold uplight, hairline base, centered Cinzel. "A bare title strip
   is not a hero — bands need depth" (banned-move #5). */
.hero-section[data-type] {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  min-height: clamp(72px, 8vw, 110px) !important;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(200, 168, 107, 0.16), transparent 62%),
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    var(--bpc-background-deeper) !important;
  /* lockup hangs onto this plate — title sits below the mark, not through it */
  padding: clamp(40px, 5.2vw, 58px) clamp(16px, 4vw, 40px) clamp(14px, 2vw, 20px);
  margin-top: 0;
  margin-bottom: clamp(12px, 2vw, 20px);
  border-bottom: 1px solid rgba(200, 168, 107, 0.14);
  box-sizing: border-box;
}
.hero-section[data-type],
.hero-section {
  min-height: 0 !important;
  height: auto !important;
}
/* If Blocksy nests the title band in a padded frame, flatten it so the
   marble is page chrome — same width as the header, not a drifting stamp. */
body:not(.home) #main > .hero-section,
body:not(.home) .ct-container-full:has(> .hero-section),
body:not(.home) .ct-container:has(> .hero-section) {
  width: 100%;
  max-width: none;
  padding-inline: 0;
  margin-inline: 0;
}
/* type-1 pages (PDP, About, etc.) wrap the band in .ct-container-full with
   60px pad-top — that's the black void under the lockup. Kill it. */
body:not(.home) .ct-container-full { padding-top: 0 !important; padding-bottom: 0 !important; }
/* Blocksy type-2 defaults --min-height: 250px + 50px container pad — that's
   the black stadium under the header. Collapse it. */
.hero-section[data-type="type-2"] > [class*="ct-container"] {
  min-height: 0 !important;
  padding: clamp(36px, 4vw, 48px) 0 10px !important;
  justify-content: flex-start !important;
}
body.hl-shop .hero-section[data-type] .page-title {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.14em;
  margin-top: 8px;
}
.hero-section[data-type] .entry-header {
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}
.hero-section[data-type] .page-title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 44px);
  letter-spacing: 0.06em;
  color: var(--bpc-foreground);
}
.hero-section[data-type] .page-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, rgba(200, 168, 107, 0.75), transparent);
}

/* ---- R1-5b · shop archive — dark-luxury the grid ------------------------ */
/* Fluid/no-boxes: the square product renders carry their own baked black bg —
   feather-mask them into the field (home Featured-card treatment) instead of
   letting hard tile edges read as boxes. */
[data-products] .product {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-align: center;
  align-items: center;
}
[data-products] .product .ct-media-container {
  background: transparent !important;
  aspect-ratio: 4 / 5;
}
[data-products] .product .ct-media-container img {
  object-fit: contain;
  object-position: center bottom;
  background: transparent !important;
  -webkit-mask-image: radial-gradient(78% 78% at 50% 48%, #000 48%, transparent 78%);
  mask-image: radial-gradient(78% 78% at 50% 48%, #000 48%, transparent 78%);
  transition: transform 0.5s ease;
}
[data-products] .product:hover .ct-media-container img { transform: scale(1.045); }
[data-products] .product .woocommerce-loop-product__title {
  font-size: 17px;
  letter-spacing: 0.04em;
}
[data-products] .product .price {
  color: var(--bpc-primary); /* gold on #050607 = 8.95:1 — AA pass */
  font-weight: 600;
}
/* Archive CTA: ghost → gold on hover (16 solid-gold blocks read loud; the
   ghost keeps the grid quiet and the hover keeps the AA near-black-on-gold law) */
[data-products] .product .button {
  background: transparent !important;
  border: 1px solid rgba(200, 168, 107, 0.45) !important;
  color: var(--bpc-primary) !important; /* 8.95:1 — AA pass */
}
[data-products] .product .button:hover {
  background: var(--bpc-primary) !important;
  border-color: var(--bpc-primary) !important;
  color: var(--bpc-background) !important; /* 8.95:1 — AA pass */
}
/* Toolbar: eyebrow the count, dark-skin the ordering control */
.woocommerce-result-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.66); /* ≈ 8.5:1 on bg — AA pass */
}
.woocommerce-ordering select,
select.orderby {
  background-color: var(--bpc-card);
  border: 1px solid var(--bpc-border);
  border-radius: 4px;
  color: var(--bpc-body);
  padding: 8px 12px;
}
/* No black stadium between the last row and the footer marble */
body.hl-shop .site-main,
body.hl-pdp .site-main,
body.hl-shop .woocommerce,
body.hl-pdp .woocommerce,
.woocommerce-pagination {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.woocommerce-pagination { margin-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(20px, 3vw, 32px) !important; }
/* Pagination: quiet squares, gold current (near-black numeral per AA law) */
.woocommerce-pagination .page-numbers li > .page-numbers,
.ct-pagination .page-numbers {
  border: 1px solid var(--bpc-border);
  border-radius: 4px;
  color: var(--bpc-body);
  background: transparent;
}
.woocommerce-pagination .page-numbers li > .page-numbers.current,
.ct-pagination .page-numbers.current {
  background: var(--bpc-primary);
  border-color: var(--bpc-primary);
  color: var(--bpc-background);
}

/* ---- R1-5b · interior content rhythm (the text-wall fix) ---------------- */
/* ONE measured column: WP's .is-layout-constrained auto-centers any child
   with a max-width, so every element carries the SAME cap or headings sit on
   a different axis. Fixed px, never ch — ch scales with each element's font,
   so "70ch" on an h2 is a different (much wider) column than on a p. */
.page:not(.home) .entry-content > p,
.page:not(.home) .entry-content > ul,
.page:not(.home) .entry-content > ol,
.page:not(.home) .entry-content > h2,
.page:not(.home) .entry-content > h3,
.page:not(.home) .entry-content > h4 { max-width: 720px; /* ≈70ch at body 16px */ }
.page:not(.home) .entry-content > p { line-height: 1.75; }
.page:not(.home) .entry-content > h2 {
  margin: 2.1em 0 0.7em;
  letter-spacing: 0.05em;
}
.page:not(.home) .entry-content > h2:first-child { margin-top: 0.2em; }
.page:not(.home) .entry-content > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(200, 168, 107, 0.8), transparent);
}
.page:not(.home) .entry-content > h3 {
  margin: 1.9em 0 0.55em;
  font-size: 21px;
  letter-spacing: 0.05em;
}
.page:not(.home) .entry-content > hr {
  border: 0;
  height: 1px;
  margin: 2.6em 0;
  background: linear-gradient(90deg, transparent, rgba(200, 168, 107, 0.4), transparent);
}
.page:not(.home) .entry-content strong { color: var(--bpc-foreground); }
.page:not(.home) .entry-content ul li { margin-block: 6px; }
.page:not(.home) .entry-content ul li::marker { color: var(--bpc-primary); }
/* Styled steps for true sequences (the affiliates "How it works" <ol> once the
   md2html fix renders it): ringed gold numerals, one step per breath. Plain
   counters — a real 1-2-3 sequence, not the banned editorial 01/02 dressing. */
.page:not(.home) .entry-content ol {
  list-style: none;
  counter-reset: csf-step;
  margin: 1.4em 0;
  padding: 0;
}
.page:not(.home) .entry-content ol > li {
  counter-increment: csf-step;
  position: relative;
  padding-left: 48px;
  margin-block: 18px;
}
.page:not(.home) .entry-content ol > li::before {
  content: counter(csf-step);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(200, 168, 107, 0.55);
  border-radius: 50%;
  font-family: var(--bpc-font-display);
  font-size: 15px;
  color: var(--bpc-primary); /* 8.95:1 — AA pass */
}

/* ---- R1-5b · affiliate application form (fluid, not a box) -------------- */
/* The plugin ships a rounded outlined card; the brand system is hairlines on
   the field. Higher specificity than the plugin's .csf-aff-card — no order dependence. */
.csf-aff-card.csf-aff-form-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid rgba(200, 168, 107, 0.25);
  padding: clamp(28px, 4vw, 44px) 0 0;
  max-width: 660px;
  margin-inline: auto; /* join the page's centered column axis */
}
.csf-aff .csf-aff-field label {
  font-family: var(--bpc-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bpc-primary);
  margin-bottom: 7px;
}
.csf-aff .csf-aff-field { margin-bottom: 20px; }
.csf-aff .csf-aff-agree label {
  font-size: 14px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--bpc-body);
}

/* ---- R1-5b · PDP framing (fluid product plane, measured summary) -------- */
/* The gallery render carries its own baked black bg — feather it into the
   field and stand it on a soft light pool; no box, no border. */
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 88%;
  height: 34%;
  transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 78%, rgba(200, 168, 107, 0.12), rgba(200, 168, 107, 0.04) 55%, transparent 78%);
  pointer-events: none;
}
.single-product .woocommerce-product-gallery img {
  -webkit-mask-image: radial-gradient(82% 82% at 50% 48%, #000 50%, transparent 80%);
  mask-image: radial-gradient(82% 82% at 50% 48%, #000 50%, transparent 80%);
}
.single-product .entry-summary .price {
  color: var(--bpc-primary);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
}
/* RUO line: quiet eyebrow under the price */
.single-product .entry-summary .csf-ruo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.72); /* ≈ 9.3:1 — AA pass */
}
.single-product .entry-summary .ct-product-divider {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 168, 107, 0.35), transparent);
  margin: 18px 0;
}
.single-product .entry-summary .stock { font-size: 13px; color: rgba(209, 213, 219, 0.72); }
.single-product .entry-summary .csf-atc-consent { font-size: 14px; line-height: 1.55; }
/* COA row: hairline-framed line, gold state chip — no box */
.single-product .csf-coa-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  border-top: 1px solid rgba(200, 168, 107, 0.18);
  padding-top: 16px;
  margin-top: 18px;
}
.single-product .csf-coa-block .csf-coa-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bpc-primary);
}
.single-product .csf-coa-block .csf-coa-label {
  font-size: 13.5px;
  color: rgba(209, 213, 219, 0.8);
}
/* Meta: small-caps whisper under a hairline */
.single-product .entry-summary .product_meta {
  border-top: 1px solid var(--bpc-border);
  padding-top: 14px;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.66);
}
.single-product .entry-summary .product_meta a { color: var(--bpc-body); }
.single-product .entry-summary .product_meta a:hover { color: var(--bpc-primary); }


/* ============================================================================
   K3 INTERIOR RICHNESS PASS (file-only lane, 2026-08-13)
   Surfaces: /affiliates/ + /affiliate-terms/ · shop archive · PDP ·
   /faq/ + /about/ + /contact/ · the .csf-bigfoot footer.
   Method: token-locked CSS + licensed texture/icon/art assets staged under
   assets/ (see _build/k3/ASSET-MAP.md for sources + licences). Zero new
   customer-facing sentences — this block is presentation only.
   House laws applied: gold stays an accent (never a text field); every solid
   gold control keeps near-black text; motifs are contained (one per plate);
   textures always sit under a veil strong enough to preserve the documented
   AA pairs. New pairs documented inline.
   ========================================================================== */

/* ---- K3-0 · per-surface hero plates (extend the R1 hero band) ------------
   The R1 hero system (deep well + radial gold uplight + hairline) gains a
   licensed texture/art underlay per route. Veil ≈ rgba(7,8,10,.70) keeps the
   page title (foreground #F5F3F0) at ≥ 12:1 on every plate. */
.hero-section[data-type] { position: relative; }
/* Marble plates scale with the band (100% width), not a fixed cover-crop
   that jumps left when the viewport/zoom changes. */
body.hl-p-affiliates .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.12), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.48)),
    url('assets/textures/marble-02.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
}
body.hl-p-affiliate-terms .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.48)),
    url('assets/textures/marble-10.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
}
body.hl-shop .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.48)),
    url('assets/textures/marble-01.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
}
body.hl-p-about .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.52)),
    url('assets/art/lab-still-life.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
}
body.hl-p-faq .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.48)),
    url('assets/art/ambient-marble-wide.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
}
body.hl-p-contact .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.48)),
    url('assets/art/ambient-helix-dim.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
}

/* ---- K3-1 · affiliates — cinema plane (markup from inc/hl-interior-richness.php)
   Full-bleed ambient band directly under the hero: licensed liquid-gold video,
   the letterless brand seal floating centered (contained motif, one placement),
   gold-foil hairline edges. Closes the R1 hero's bottom margin so the planes
   stack flush (Merit plane rhythm). */
.hl-cine {
  position: relative;
  overflow: hidden;
  /* Rendered by blocksy:hero:after — outside the constrained content flow. */
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: calc(-1 * clamp(28px, 4vw, 48px)); /* close the R1 hero margin — flush plane stack */
  margin-bottom: clamp(32px, 4.5vw, 56px);
  height: clamp(260px, 30vw, 420px);
  background: url('assets/video/liquid-gold-poster.webp') center / cover no-repeat, var(--bpc-background-deeper);
}
.hl-cine::before,
.hl-cine::after { /* foil edge strips, top + bottom */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: url('assets/textures/foil-edge.webp') center / cover no-repeat;
  z-index: 3;
}
.hl-cine::before { top: 0; }
.hl-cine::after { bottom: 0; }
.hl-cine__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hl-cine__veil { /* vignette so the seal reads + band ties into the page */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 50% 55%, transparent 40%, rgba(7, 8, 10, 0.42) 82%, rgba(7, 8, 10, 0.66)),
    linear-gradient(rgba(7, 8, 10, 0.18), rgba(7, 8, 10, 0.18));
  z-index: 1;
}
.hl-cine__seal {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 13vw, 176px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.65));
}
@media (prefers-reduced-motion: reduce) {
  .hl-cine__video { display: none; } /* poster background remains — composed static state */
}

/* ---- K3-1 · affiliates — how-it-works steps: lab/commerce icon discs ------
   Replaces the R1 bare ringed numerals ON THIS PAGE ONLY. Licensed gold
   line-icon family (chemistry outline + stroke-compatible commerce lines).
   A 1px gold thread runs through the discs — one deliberate journey line. */
body.hl-p-affiliates .entry-content > ol { position: relative; }
body.hl-p-affiliates .entry-content > ol::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200, 168, 107, 0.45) 12%, rgba(200, 168, 107, 0.45) 88%, transparent);
}
body.hl-p-affiliates .entry-content > ol > li {
  padding-left: 76px;
  min-height: 54px;
  margin-block: 22px;
}
body.hl-p-affiliates .entry-content > ol > li::before {
  content: ''; /* kills the R1 counter on this page */
  top: 0;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(200, 168, 107, 0.45);
  border-radius: 50%;
  background-color: var(--bpc-background-deeper);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 26px;
  box-shadow: 0 0 0 5px rgba(7, 8, 10, 0.55); /* lift the disc off the thread line */
}
body.hl-p-affiliates .entry-content > ol > li:nth-child(1)::before { background-image: url('assets/icons/lab-clipboard.svg'); }
body.hl-p-affiliates .entry-content > ol > li:nth-child(2)::before { background-image: url('assets/icons/shop-12.svg'); }
body.hl-p-affiliates .entry-content > ol > li:nth-child(3)::before { background-image: url('assets/icons/shop-24.svg'); }
body.hl-p-affiliates .entry-content > ol > li:nth-child(4)::before { background-image: url('assets/icons/lab-monitor.svg'); }
body.hl-p-affiliates .entry-content > ol > li:nth-child(5)::before { background-image: url('assets/icons/shop-11.svg'); }

/* ---- K3-1 · affiliates — "What you earn" stat plates ----------------------
   The three earn bullets become a 3-up strip of textured stat plates (the
   Merit navy-plate pattern, hart gold). Copy untouched: <strong> already
   carries the figures; the remainder of each <li> becomes the caption.
   Gold figures #C8A86B on the veiled marble plate (≈ #12141A effective) ≈ 7.4:1 — AA.
   Captions #D1D5DB on the same plate ≈ 11.4:1 — AA. */
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul {
  max-width: 880px !important;
  list-style: none;
  padding: 0;
  margin: 1.8em auto 2.2em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-block: 0;
  padding: 30px 22px 24px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bpc-body);
  background:
    linear-gradient(rgba(7, 8, 10, 0.66), rgba(7, 8, 10, 0.80)),
    url('assets/textures/marble-10.webp') center / cover no-repeat,
    var(--bpc-background-deeper);
  border: 1px solid rgba(200, 168, 107, 0.16);
}
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li::before { /* foil top edge */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: url('assets/textures/foil-edge.webp') center / cover no-repeat;
}
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li > strong {
  display: block;
  font-family: var(--bpc-font-display);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bpc-primary);
  margin-bottom: 10px;
}
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li > strong::before { /* stat icon */
  content: '';
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li:nth-child(1) > strong::before { background-image: url('assets/icons/shop-40.svg'); }
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li:nth-child(2) > strong::before { background-image: url('assets/icons/shop-07.svg'); }
body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul > li:nth-child(3) > strong::before { background-image: url('assets/icons/shop-14.svg'); }

/* ---- K3-1 · affiliates — the house-rule block carries the seal ------------
   The letterless seal sits in the right lane of the compliance section —
   a mark of record, not a badge (no claims attached, per the parked-badges law). */
body.hl-p-affiliates .entry-content > h3:nth-of-type(5) {
  padding-right: 118px;
  min-height: 96px;
  background: url('assets/art/seal-gold-ring.webp') right 4px top 2px / 92px no-repeat;
}
body.hl-p-affiliates .entry-content > h3:nth-of-type(5) + p { padding-right: 118px; }

/* ---- K3-1 · affiliates — apply zone: fluid texture pool + foil edge ------- */
body.hl-p-affiliates .entry-content > p:last-of-type {
  text-align: center;
  font-size: 17px;
  color: var(--bpc-foreground); /* #F5F3F0 on #050607 = 18.31:1 — AAA */
}
body.hl-p-affiliates .csf-aff-card.csf-aff-form-card {
  position: relative;
  z-index: 0;
  border-top: 0;
  padding: clamp(36px, 5vw, 58px) clamp(18px, 3vw, 34px) 6px;
  background: url('assets/textures/foil-edge.webp') top center / 100% 3px no-repeat;
}
body.hl-p-affiliates .csf-aff-form-card::before { /* marble light pool, feathered — fluid, never a box */
  content: '';
  position: absolute;
  z-index: -1;
  inset: -48px -64px -24px;
  background: url('assets/art/ambient-marble-wide.webp') center 32% / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(72% 82% at 50% 44%, #000 42%, transparent 74%);
  mask-image: radial-gradient(72% 82% at 50% 44%, #000 42%, transparent 74%);
  pointer-events: none;
}
@media (max-width: 899px) {
  /* pool bleed must stay inside the page gutter (B24: zero horizontal overflow) */
  body.hl-p-affiliates .csf-aff-form-card::before { inset: -34px -14px -18px; }
}

/* ---- K3-2 · affiliate-terms — seal of record + foil section ticks -------- */
body.hl-p-affiliate-terms .entry-content > h2:first-child {
  padding-right: 108px;
  min-height: 88px;
  background: url('assets/art/seal-gold-ring.webp') right 2px top / 80px no-repeat;
}
body.hl-p-affiliate-terms .entry-content h3 {
  position: relative;
  padding-left: 18px;
}
body.hl-p-affiliate-terms .entry-content h3::before { /* 3px foil tick — section anchors */
  content: '';
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 3px;
  height: 1em;
  background: url('assets/textures/foil-edge.webp') center / cover no-repeat;
}

/* ---- K3-3 · shop archive — category tile row (markup from the K3 partial) -
   The four F2 category art plates as navigation. Names = the catalog's own
   taxonomy labels (no new sentences). Foreground #F5F3F0 on the veil
   (rgba(7,8,10,.30→.78) over the graphite art) ≥ 9:1 — AA. */
.hl-catrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 clamp(26px, 3.5vw, 40px);
}
.hl-catrow__tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  text-decoration: none;
  border: 1px solid rgba(200, 168, 107, 0.14);
  background-color: var(--bpc-background-deeper);
  background-position: center;
  background-size: cover;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.hl-catrow__tile::after { /* legibility veil for the label */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.10) 30%, rgba(7, 8, 10, 0.78) 96%);
}
.hl-catrow__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 168, 107, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hl-catrow__tile--peptides { background-image: url('assets/art/cat-peptides.webp'); }
.hl-catrow__tile--blends { background-image: url('assets/art/cat-blends.webp'); }
.hl-catrow__tile--compounds { background-image: url('assets/art/cat-compounds.webp'); }
.hl-catrow__tile--supplies { background-image: url('assets/art/cat-supplies.webp'); }
.hl-catrow__name {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  font-family: var(--bpc-font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bpc-foreground);
}
.hl-catrow__name::after { /* gold tick under the label */
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 7px;
  background: linear-gradient(90deg, rgba(200, 168, 107, 0.85), transparent);
}

/* Shop utility row — microscope icon anchors the result-count eyebrow */
body.hl-shop .woocommerce-result-count { display: flex; align-items: center; gap: 9px; }
body.hl-shop .woocommerce-result-count::before {
  content: '';
  width: 17px;
  height: 17px;
  background: url('assets/icons/lab-microscope.svg') center / contain no-repeat;
  opacity: 0.9;
}

/* ---- K3-4 · PDP — fluid buy-box pool + icon-carried meta rows ------------- */
.single-product .entry-summary { position: relative; z-index: 0; }
.single-product .entry-summary::before { /* marble light pool behind the buy area — feathered, no box */
  content: '';
  position: absolute;
  z-index: -1;
  inset: -38px -46px -30px;
  background: url('assets/art/ambient-marble-wide.webp') center 30% / cover no-repeat;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(74% 84% at 50% 42%, #000 40%, transparent 74%);
  mask-image: radial-gradient(74% 84% at 50% 42%, #000 40%, transparent 74%);
  pointer-events: none;
}
@media (max-width: 899px) {
  .single-product .entry-summary::before { inset: -28px -14px -20px; } /* bleed stays inside the gutter */
}
/* Icon rows — the licensed lab set carries research-use / documentation /
   shipping affordances. Icons are decorative marks on existing rows (no new
   wording, no claims iconography). */
.single-product .entry-summary .csf-ruo::before,
.single-product .csf-coa-block::before,
.single-product .entry-summary .stock::before,
.single-product .entry-summary .product_meta::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: -2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.single-product .entry-summary .csf-ruo::before { background-image: url('assets/icons/lab-flask.svg'); }
.single-product .csf-coa-block::before { background-image: url('assets/icons/lab-clipboard.svg'); }
.single-product .entry-summary .stock::before { background-image: url('assets/icons/shop-09.svg'); }
.single-product .entry-summary .product_meta::before { background-image: url('assets/icons/shop-12.svg'); }

/* ---- K3-5 · FAQ — icon-anchored sections + alternating texture plates ----- */
/* Sections are wrapped by the K3 partial (hr-split, copy untouched). Even
   sections get a veiled marble plate — alternating rhythm, never bare walls. */
.hl-sect > p,
.hl-sect > ul,
.hl-sect > ol,
.hl-sect > h2,
.hl-sect > h3,
.hl-sect > h4 { max-width: 720px; margin-inline: auto; } /* R1 rhythm, ported inside the wrappers */
.hl-sect > p { line-height: 1.75; }
.hl-sect > h2 { margin: 2.1em 0 0.7em; letter-spacing: 0.05em; }
.hl-sect > h2:first-child { margin-top: 0.2em; }
.hl-sect > h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, rgba(200, 168, 107, 0.8), transparent);
}
.hl-sect > h3 { margin: 1.9em 0 0.55em; font-size: 21px; letter-spacing: 0.05em; }
.hl-sect > ul li::marker { color: var(--bpc-primary); }
.hl-sect > strong, .hl-sect strong { color: var(--bpc-foreground); }
.hl-sect--tex {
  /* Contained plate on the column axis — NOT a 100vw breakout: WP's
     .is-layout-constrained pins direct children with !important auto margins,
     so a breakout here would lose. Plate edges sit exactly on the 720 column. */
  border-radius: 12px;
  margin-block: clamp(30px, 4vw, 48px);
  padding: clamp(26px, 3.5vw, 40px) clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(200, 168, 107, 0.14);
  border-bottom: 1px solid rgba(200, 168, 107, 0.14);
  background:
    linear-gradient(rgba(7, 8, 10, 0.80), rgba(7, 8, 10, 0.86)),
    url('assets/art/ambient-marble-wide.webp') center / cover no-repeat,
    var(--bpc-background-deeper);
}
.hl-sect--tex > :first-child { margin-top: 0.2em; }
.hl-sect--tex > :last-child { margin-bottom: 0.4em; }
/* FAQ group icons (one licensed voice, used only at section level).
   Gold icons on the plate/field — decorative; headings keep foreground. */
body.hl-p-faq .hl-sect h3 { display: flex; align-items: center; gap: 13px; }
body.hl-p-faq .hl-sect h3::before {
  content: '';
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
body.hl-p-faq .hl-sect:nth-of-type(2) h3::before { background-image: url('assets/icons/shop-02.svg'); }  /* Ordering */
body.hl-p-faq .hl-sect:nth-of-type(3) h3::before { background-image: url('assets/icons/shop-09.svg'); }  /* Shipping */
body.hl-p-faq .hl-sect:nth-of-type(4) h3::before { background-image: url('assets/icons/shop-14.svg'); }  /* Returns & refunds */
body.hl-p-faq .hl-sect:nth-of-type(5) h3::before { background-image: url('assets/icons/lab-flask.svg'); } /* Research use & handling */
body.hl-p-faq .hl-sect:nth-of-type(6) h3::before { background-image: url('assets/icons/lab-clipboard.svg'); } /* Documentation */
body.hl-p-faq .hl-sect:nth-of-type(7) h3::before { background-image: url('assets/icons/shop-31.svg'); }  /* Partner Program */
body.hl-p-faq .hl-sect:nth-of-type(8) h3::before { content: none; } /* closer stays clean */

/* ---- K3-5 · About — "What we supply" category art cards ------------------- */
body.hl-p-about .hl-sect h2 + ul {
  max-width: 940px !important;
  list-style: none;
  padding: 0;
  margin: 1.8em auto 2em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.hl-p-about .hl-sect h2 + ul > li {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin-block: 0;
  padding: 24px 20px 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bpc-body); /* #D1D5DB on veiled art ≈ 11:1 — AA */
  border: 1px solid rgba(200, 168, 107, 0.16);
  background-position: center;
  background-size: cover;
  background-color: var(--bpc-background-deeper);
}
body.hl-p-about .hl-sect h2 + ul > li::before { /* foil top edge */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: url('assets/textures/foil-edge.webp') center / cover no-repeat;
}
/* Veil rides inside the background layers (not a pseudo) so the loose caption
   text node stays fully legible above the art — no z-index games. */
body.hl-p-about .hl-sect h2 + ul > li {
  background-image:
    linear-gradient(rgba(7, 8, 10, 0.62), rgba(7, 8, 10, 0.82)),
    url('assets/art/cat-peptides.webp');
}
body.hl-p-about .hl-sect h2 + ul > li:nth-child(2) {
  background-image:
    linear-gradient(rgba(7, 8, 10, 0.62), rgba(7, 8, 10, 0.82)),
    url('assets/art/cat-blends.webp');
}
body.hl-p-about .hl-sect h2 + ul > li:nth-child(3) {
  background-image:
    linear-gradient(rgba(7, 8, 10, 0.62), rgba(7, 8, 10, 0.82)),
    url('assets/art/cat-compounds.webp');
}
body.hl-p-about .hl-sect h2 + ul > li > strong {
  display: block;
  font-family: var(--bpc-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bpc-primary); /* gold on veiled graphite art ≈ 7.4:1 — AA */
  margin-bottom: 8px;
}

/* ---- K3-5 · Contact — the "what we can help with" icon wall --------------- */
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul {
  max-width: 880px !important;
  list-style: none;
  padding: 0;
  margin: 1.6em auto 2em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li {
  margin-block: 0;
  padding: 13px 16px 13px 46px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid rgba(200, 168, 107, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(rgba(7, 8, 10, 0.55), rgba(7, 8, 10, 0.68)),
    url('assets/art/ambient-helix-dim.webp') center / cover no-repeat,
    var(--bpc-card);
}
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 15px;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li:nth-child(1)::before { background-image: url('assets/icons/lab-test-tube.svg'); }
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li:nth-child(2)::before { background-image: url('assets/icons/shop-09.svg'); }
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li:nth-child(3)::before { background-image: url('assets/icons/shop-14.svg'); }
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li:nth-child(4)::before { background-image: url('assets/icons/lab-flask.svg'); }
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li:nth-child(5)::before { background-image: url('assets/icons/shop-06.svg'); }
body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul > li:nth-child(6)::before { background-image: url('assets/icons/shop-24.svg'); }

/* ---- K3-6 · footer — seal + texture underlay for .csf-bigfoot -------------
   The R1 pairs are preserved: the marble underlay sits at 0.14 opacity over
   the deeper well (effective surface stays ≈ #0A0C0F; links #D1D5DB ≈ 12.8:1,
   gold heads ≈ 8.2:1 — both still AA). Seal is contained in the brand column. */
.csf-bigfoot { position: relative; overflow: hidden; }
.csf-bigfoot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/textures/marble-10.webp') center 30% / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
.csf-bigfoot__wrap { position: relative; z-index: 1; }
.csf-bigfoot__brand { position: relative; padding-right: 108px; }
.csf-bigfoot__brand::after {
  content: '';
  position: absolute;
  right: 0;
  top: 2px;
  width: clamp(56px, 7vw, 84px);
  height: clamp(56px, 7vw, 84px);
  background: url('assets/art/seal-gold-ring.webp') center / contain no-repeat;
}
/* FDA strip is a raw wp_footer dump — inherit the footer black, no gray plate */
.csf-disclaimer {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  background: var(--bpc-background-deeper) !important;
  color: rgba(209, 213, 219, 0.72) !important;
  opacity: 1 !important;
  box-sizing: border-box;
  border-top: 1px solid rgba(200, 168, 107, 0.10);
}

/* ---- K3-7 · mobile rhythm (390) ------------------------------------------- */
@media (max-width: 899px) {
  body.hl-p-affiliates .entry-content > h3:nth-of-type(2) + ul { grid-template-columns: 1fr; max-width: 560px !important; }
  .hl-catrow { grid-template-columns: 1fr 1fr; gap: 12px; }
  body.hl-p-about .hl-sect h2 + ul { grid-template-columns: 1fr; max-width: 560px !important; }
  body.hl-p-contact .entry-content > h2:nth-of-type(3) + ul { grid-template-columns: 1fr; max-width: 560px !important; }
  .csf-bigfoot__brand { padding-right: 92px; }
  .csf-bigfoot__brand::after { width: 68px; height: 68px; }
}
@media (max-width: 559px) {
  .hl-cine { height: clamp(180px, 52vw, 260px); }
  .hl-cine__seal { width: clamp(96px, 26vw, 128px); }
  body.hl-p-affiliates .entry-content > h3:nth-of-type(5),
  body.hl-p-affiliates .entry-content > h3:nth-of-type(5) + p { padding-right: 0; background: none; min-height: 0; } /* seal bows out on small screens */
  body.hl-p-affiliate-terms .entry-content > h2:first-child { padding-right: 0; background: none; min-height: 0; }
  .hl-catrow__name { left: 14px; bottom: 12px; }
}


/* ============================================================================
   G4 PDP FULL PASS (gate2-changes round, designer files-only — 2026-08-13)
   The Merit Labs PDP standard translated into the Hart brand (map + captures:
   references/merit-pdp-anatomy.md). Markup from inc/hl-pdp-full.php + the
   existing csf mu-plugins; the writer's copy is untouched.
   House laws: no-blocky (fluid, layered, symmetric; feathered pools +
   hairlines, plates only as document surfaces), gold = accent never a field,
   every solid-gold control takes near-black text, contained motifs.
   New AA pairs documented inline.

   GROUND CONTROL READINESS (PUBLIC-SYSTEM-CONTRACT §1): decorative accents in
   this block flow through --hl-acc, which follows GC's --csf-seasonal-accent
   whenever GC declares an active visual state on <body>. TEXT never renders
   in the seasonal accent and solid gold CONTROLS stay brand-locked (the AA
   pairs are client law; GC owns contrast for its own emitted layers). GC's
   wp_head/wp_body_open/wp_footer output is never selected against, hidden,
   or repositioned by this block.
   ========================================================================== */

/* ---- G4-0 · the accent chain (brand-locked default, GC-responsive) ------- */
body.single-product {
  --hl-acc: var(--bpc-primary);
  --hl-acc-40: rgba(200, 168, 107, 0.40);
  --hl-acc-18: rgba(200, 168, 107, 0.18);
}
body.single-product.csf-holiday-visual-active,
body.single-product.csf-theme-custom-accent,
body.single-product[class*="csf-holiday-mode-"] {
  --hl-acc: var(--csf-seasonal-accent, var(--bpc-primary));
}
/* Alpha derivatives of the live accent where supported (static gold fallback
   above keeps older engines correct). */
@supports (color: color-mix(in srgb, red 50%, transparent)) {
  body.single-product {
    --hl-acc-40: color-mix(in srgb, var(--hl-acc) 40%, transparent);
    --hl-acc-18: color-mix(in srgb, var(--hl-acc) 18%, transparent);
  }
}

/* Belt-and-braces: the storefront-tweaks text pills are unhooked in PHP; if a
   stale mu-plugin copy ever re-renders them, they never show twice. */
.single-product .csf-strengths { display: none !important; }

/* ---- G4-1 · PDP hero band joins the K3 plate family (marble, veiled) ----- */
body.hl-pdp .hero-section[data-type] {
  background:
    radial-gradient(56% 130% at 50% 100%, rgba(200, 168, 107, 0.10), rgba(200, 168, 107, 0.03) 52%, transparent 78%),
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.50)),
    url('assets/textures/marble-01.webp') 50% 40% / 100% auto no-repeat,
    var(--bpc-background-deeper) !important;
  margin-bottom: 0; /* the adjnav row closes the gap */
}

/* ---- G4-2 · prev/next product row (Merit catalog continuity) ------------- */
/* Rendered by blocksy:hero:after (fallback: above the product columns) —
   a slim full-bleed utility strip attached to the breadcrumb band. */
.hl-pdp-adjnav {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: var(--bpc-background-deeper);
  border-bottom: 1px solid rgba(200, 168, 107, 0.14);
  border-bottom-color: var(--hl-acc-18);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hl-pdp-adjnav__wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding: 9px clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.hl-pdp-adjnav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 34ch;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(209, 213, 219, 0.78); /* effective ≈#A3A6AB on #000000 = 8.60:1 — AA (computed) */
  transition: color 0.15s ease;
}
.hl-pdp-adjnav__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Hover TEXT stays brand gold (8.95:1 — AA); only the arrow linework follows
   the GC accent (non-text, ≥3:1 bar is the accent-owner's floor). */
.hl-pdp-adjnav__link:hover { color: var(--bpc-primary); }
.hl-pdp-adjnav__link svg { flex: 0 0 auto; color: var(--hl-acc); }
.hl-pdp-adjnav__sep {
  width: 1px;
  height: 16px;
  background: rgba(200, 168, 107, 0.30);
  background-color: var(--hl-acc-40);
}

/* ---- G4-3 · summary hierarchy (Merit order, codex #11 closed) ------------ */
/* Meta now sits UNDER THE TITLE (re-hooked 40 -> 6): quiet identity line, no
   hairline above (that treatment belonged to its old bottom slot). */
.single-product .entry-summary .product_meta {
  border-top: 0;
  padding-top: 0;
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.66); /* effective ≈#8C8F93 on #050607 = 6.24:1 — AA (computed) */
}
.single-product .entry-summary .product_meta > span { margin-right: 16px; }
/* The chemical lede — above the fold, measured, the writer's own sentence. */
.single-product .entry-summary .hl-pdp-lede p,
.single-product .entry-summary .woocommerce-product-details__short-description p {
  margin: 0;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bpc-body); /* 13.20:1 — AAA */
}
.single-product .entry-summary .hl-pdp-lede,
.single-product .entry-summary .woocommerce-product-details__short-description {
  margin: 14px 0 4px;
  padding-left: 14px;
  border-left: 2px solid rgba(200, 168, 107, 0.45);
  border-left-color: var(--hl-acc-40);
}

/* ---- G4-4 · the SIZE multiple-choice — icon-carried option tiles --------- */
/* Vial glyphs are inline SVG stroked in currentColor: rest = body gray
   (13.20:1), hover = gold (8.95:1), ACTIVE = near-black on solid gold
   (8.95:1 — the AA law; never white on gold). Fill level states relative
   pack size within the family — a true visual fact. */
.hl-sizechoice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}
.hl-sizechoice__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bpc-body);
  margin-right: 4px;
}
.hl-sizechoice__opts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hl-sizeopt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 12px;
  border: 1px solid var(--bpc-border);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bpc-foreground); /* label #F5F3F0 on bg = 18.31:1 — AAA */
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.hl-sizeopt .hl-sizeopt__vial { color: var(--bpc-body); transition: color 0.2s ease; }
a.hl-sizeopt:hover {
  border-color: var(--hl-acc);         /* linework may follow the GC accent */
  color: var(--bpc-primary);           /* hover TEXT stays brand gold — 8.95:1 AA */
  transform: translateY(-1px);
}
a.hl-sizeopt:hover .hl-sizeopt__vial { color: var(--hl-acc); } /* icon = non-text */
/* Active tile: SOLID BRAND GOLD stays brand-locked (AA law pair 8.95:1) —
   deliberately NOT the seasonal accent: GC accents are decorative here. */
.hl-sizeopt.is-active {
  background: var(--bpc-primary);
  border-color: var(--bpc-primary);
  color: var(--bpc-background);
}
.hl-sizeopt.is-active .hl-sizeopt__vial { color: var(--bpc-background); }
@media (prefers-reduced-motion: reduce) {
  .hl-sizeopt, a.hl-sizeopt:hover { transform: none; transition: none; }
}

/* ---- G4-5 · COA — the document panel (honest pending state, framed) ------ */
/* Same markup + copy as csf-coa.php; the K3 inline row grows into the Merit
   document-surface weight: veiled marble plate (the house document-plate
   exception to no-boxes), foil top edge, clipboard mark in a ring. Copy pairs
   computed against the LIGHTEST plausible plate tone (veil .72 over marble
   highlight ≈ #272522): gold CTA 6.75:1, body gray 10.37:1 — both AA. */
.single-product .csf-coa-block {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
  border: 1px solid rgba(200, 168, 107, 0.16);
  border-top: 0;
  border-radius: 12px;
  padding: 22px 20px 18px;
  margin-top: 22px;
  background:
    linear-gradient(rgba(7, 8, 10, 0.72), rgba(7, 8, 10, 0.84)),
    url('assets/textures/marble-10.webp') center / cover no-repeat,
    var(--bpc-background-deeper);
}
.single-product .csf-coa-block::after { /* foil top edge (K3 vocabulary) */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: url('assets/textures/foil-edge.webp') center / cover no-repeat;
}
/* The K3 15px inline clipboard grows into the panel mark. */
.single-product .csf-coa-block::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  margin: 0;
  grid-row: 1 / span 2;
  border: 1px solid rgba(200, 168, 107, 0.45);
  border-radius: 50%;
  background: url('assets/icons/lab-clipboard.svg') center / 22px no-repeat;
  vertical-align: initial;
}
.single-product .csf-coa-block .csf-coa-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bpc-primary); /* gold on veiled plate ≈ 7.4:1 — AA */
  align-self: center;
}
.single-product .csf-coa-block .csf-coa-label {
  grid-column: 2;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bpc-body); /* ≈ 11:1 on the veiled plate — AAA */
}
.single-product .csf-coa-block a.csf-coa-cta:hover { color: var(--bpc-primary-hover); }

/* ---- G4-6 · trust row — icon-carried operational labels ------------------ */
/* Three strings that already ship verbatim on this site (footer legal link +
   topstrip); licensed chemistry/commerce line icons. Labels effective
   ≈#A4A7AC on #050607 = 8.40:1 — AA (computed). */
.single-product .entry-summary .hl-pdp-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(200, 168, 107, 0.18);
  border-top-color: var(--hl-acc-18);
}
.single-product .hl-pdp-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.78);
}
.single-product .hl-pdp-trust__item::before {
  content: '';
  width: 17px;
  height: 17px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
}
/* atom mark here — the flask already carries the RUO line above (one icon, one job) */
.single-product .hl-pdp-trust__item--ruo::before   { background-image: url('assets/icons/lab-atom.svg'); }
.single-product .hl-pdp-trust__item--ship::before  { background-image: url('assets/icons/shop-09.svg'); }
.single-product .hl-pdp-trust__item--track::before { background-image: url('assets/icons/shop-14.svg'); }

/* ---- G4-7 · buried Woo tabs retired — Merit sub-tabs live under the photo */
.single-product .woocommerce-tabs {
  display: none !important;
}

/* Fleet KEEP: Description / COA / RUO under the product photo */
.woocommerce-product-gallery .hl-pdp-subtabs {
  width: 100%;
  margin-top: 16px;
}
.hl-pdp-subtabs__nav {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.hl-pdp-subtabs__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 8px;
  border: 1px solid var(--bpc-border);
  border-radius: 10px;
  background: var(--bpc-card);
  color: var(--bpc-body);
  font-family: var(--bpc-font-sans) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.hl-pdp-subtabs__btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.hl-pdp-subtabs__btn--desc::before { background-image: url('assets/icons/lab-research.svg'); }
.hl-pdp-subtabs__btn--coa::before { background-image: url('assets/icons/lab-test-tube.svg'); }
.hl-pdp-subtabs__btn--ruo::before { background-image: url('assets/icons/lab-flask.svg'); }
.hl-pdp-subtabs__btn:hover {
  border-color: rgba(200, 168, 107, 0.45);
  color: var(--bpc-primary);
}
.hl-pdp-subtabs__btn[aria-selected="true"] {
  background: var(--bpc-primary);
  border-color: var(--bpc-primary);
  color: var(--bpc-background) !important;
}
.hl-pdp-subtabs__btn[aria-selected="true"]::before { filter: brightness(0); }
.hl-pdp-subtabs__panel {
  background: var(--bpc-card);
  border: 1px solid var(--bpc-border);
  border-radius: 12px;
  padding: 18px 16px;
  color: var(--bpc-body);
  font-size: 14px;
  line-height: 1.75;
}
.hl-pdp-subtabs__panel[hidden] { display: none; }
.hl-pdp-subtabs__panel .csf-coa-block { margin-top: 0; }
@media (max-width: 720px) {
  .woocommerce-product-gallery .hl-pdp-subtabs {
    margin-bottom: 96px;
  }
  .hl-pdp-subtabs__btn { font-size: 10px; padding: 10px 4px; letter-spacing: 0.08em; }
  .hl-pdp-subtabs__btn::before { width: 15px; height: 15px; }
}

/* Catalog quick view */
ul.products .ct-media-container,
ul.products figure,
li.product .ct-media-container {
  position: relative;
}
.hl-qv-btn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px 8px 34px;
  border: 1px solid rgba(200, 168, 107, 0.45);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.88);
  color: var(--bpc-primary) !important;
  font-family: var(--bpc-font-sans) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.hl-qv-btn::before {
  content: '';
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  background: url('assets/icons/lab-monitor.svg') center / contain no-repeat;
}
.hl-qv-btn:hover {
  background: var(--bpc-primary);
  color: var(--bpc-background) !important;
}
.hl-qv-btn:hover::before { filter: brightness(0); }
.hl-qv {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(920px, 94vw);
  width: 94vw;
  max-height: 90vh;
}
.hl-qv::backdrop { background: rgba(5, 6, 7, 0.82); }
.hl-qv__panel {
  position: relative;
  max-height: 90vh;
  overflow: auto;
  background:
    linear-gradient(rgba(7, 8, 10, 0.9), rgba(7, 8, 10, 0.94)),
    url('assets/art/ambient-marble-wide.webp') center / cover no-repeat,
    var(--bpc-card);
  border: 1px solid rgba(200, 168, 107, 0.22);
  border-radius: 16px;
  padding: 28px 22px 22px;
}
.hl-qv__media img {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.hl-qv__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--bpc-border);
  border-radius: 999px;
  background: transparent;
  color: var(--bpc-body) !important;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.hl-qv__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}
.hl-qv__title {
  margin: 0 0 8px;
  font-family: var(--bpc-font-display);
  color: var(--bpc-foreground);
  font-size: 22px;
}
.hl-qv__price { color: var(--bpc-primary); font-weight: 600; margin-bottom: 12px; }
.hl-qv__excerpt { color: var(--bpc-body); font-size: 14px; line-height: 1.7; }
.hl-qv .csf-atc-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  color: var(--bpc-body);
  font-size: 13px;
  line-height: 1.45;
}
.hl-qv form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hl-qv .csf-atc-consent { flex: 1 0 100%; }
.hl-qv form.cart .quantity,
.hl-qv form.cart .single_add_to_cart_button { flex: 0 0 auto; }
.hl-qv__full {
  display: inline-block;
  margin-top: 14px;
  color: var(--bpc-primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hl-qv__status { color: var(--bpc-body); }
@media (max-width: 720px) {
  .hl-qv__layout { grid-template-columns: 1fr; }
}

/* ---- G4-8 · related products — the shop-grid band ------------------------ */
/* Full-bleed deeper well with a veiled marble underlay; cards reuse the
   archive dark-luxury grammar (feathered renders, gold price, ghost CTA).
   No category word on any card (layer disabled globally — PEPT-20 grammar). */
.hl-related {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 40px) clamp(30px, 4vw, 52px);
  background:
    linear-gradient(rgba(7, 8, 10, 0.86), rgba(7, 8, 10, 0.92)),
    url('assets/art/ambient-marble-wide.webp') center 40% / cover no-repeat,
    var(--bpc-background-deeper);
}
.hl-related::before { /* foil edge into the band */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: url('assets/textures/foil-edge.webp') center / cover no-repeat;
}
.hl-related__head {
  max-width: 1160px;
  margin: 0 auto clamp(20px, 3vw, 30px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.hl-related__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.05em;
  color: var(--bpc-foreground); /* 12.6:1 on the veiled band — AAA */
}
.hl-related__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(200, 168, 107, 0.8), transparent);
  background: linear-gradient(90deg, var(--hl-acc-40), transparent);
}
.hl-related__more {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bpc-primary); /* ≈ 7.6:1 on the band — AA */
  white-space: nowrap;
}
.hl-related__more:hover { color: var(--bpc-primary-hover); }
.hl-related ul.products,
.hl-related [data-products] {
  max-width: 1160px;
  margin-inline: auto;
}
/* Card grammar (mirrors the archive rules — the shortcode wrapper may not
   carry [data-products], so the essentials are restated scoped). */
.hl-related ul.products li.product,
.hl-related [data-products] .product {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-align: center;
  align-items: center;
}
.hl-related ul.products li.product .ct-media-container img,
.hl-related ul.products li.product img {
  -webkit-mask-image: radial-gradient(78% 78% at 50% 48%, #000 48%, transparent 78%);
  mask-image: radial-gradient(78% 78% at 50% 48%, #000 48%, transparent 78%);
  transition: transform 0.5s ease;
}
.hl-related ul.products li.product:hover img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .hl-related ul.products li.product:hover img { transform: none; }
}
.hl-related ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--bpc-foreground);
}
.hl-related ul.products li.product .price {
  color: var(--bpc-primary); /* ≈ 7.6:1 on the band — AA */
  font-weight: 600;
}
.hl-related ul.products li.product .button {
  background: transparent !important;
  border: 1px solid rgba(200, 168, 107, 0.45) !important;
  color: var(--bpc-primary) !important;
}
.hl-related ul.products li.product .button:hover {
  background: var(--bpc-primary) !important;
  border-color: var(--bpc-primary) !important;
  color: var(--bpc-background) !important; /* AA law — never white on gold */
}

/* ---- G4-9 · mobile rhythm (390) ------------------------------------------ */
@media (max-width: 899px) {
  .hl-pdp-adjnav__wrap { justify-content: space-between; }
  .hl-pdp-adjnav__link { max-width: 44vw; }
  .hl-related ul.products { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .hl-related ul.products li.product { width: 100% !important; margin: 0 !important; }
}
@media (max-width: 559px) {
  .hl-sizechoice { gap: 8px; }
  .hl-sizeopt { padding: 8px 13px 8px 10px; font-size: 13px; }
  .single-product .csf-coa-block { grid-template-columns: 38px 1fr; padding: 18px 16px 15px; }
  .single-product .csf-coa-block::before { width: 38px; height: 38px; background-size: 19px; }
  .single-product .entry-summary .hl-pdp-trust { gap: 8px 18px; }
}

/* ==================== G5 HEADER (K3 pass 2, 2026-08-13) ====================
   The stock Blocksy bar (styled text wordmark) is retired — hidden, NOT
   unhooked: the node stays in the DOM so Blocksy's own JS + panels
   (#offcanvas, #search-modal) keep working; inc/hl-header.php prints the
   owned bar at wp_body_open right after the csf-topstrip.
   Fluid / transparent / symmetric: no plate, no slab — a legibility gradient
   that fades to nothing, a gold hairline, and the true-alpha client lockup
   dead-center overhanging the bar line (the identity, keyed for this black).
   On the homepage the bar is absolute and sits ON the hero video; interior
   pages keep it in flow with margin equal to the logo overhang. */
#header.ct-header { display: none !important; } /* stock bar retired */

.hl-header {
  position: relative;
  z-index: 60;
  font-family: var(--bpc-font-sans);
}
body.home .hl-header { position: absolute; left: 0; right: 0; } /* top:auto = directly under the topstrip, over the hero video */

.hl-header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "left brand right";
  align-items: center;
  height: clamp(52px, 4.6vw, 68px);
  padding: 0 clamp(12px, 2vw, 32px);
  overflow: visible;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(200, 168, 107, 0.22);
}
.hl-header { overflow: visible; }

/* nav tabs — licensed Envato gold icons (assets/icons/) + small-caps labels */
.hl-header__tabs {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
  flex-wrap: nowrap;
  min-width: 0;
}
.hl-header__tabs--left { grid-area: left; justify-self: start; }
.hl-header__tabs--right { grid-area: right; justify-self: end; }
.hl-header__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  color: var(--bpc-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hl-header__tab:hover { color: var(--bpc-primary); }
.hl-header__tab .hl-header__icon { opacity: 0.9; transition: opacity 0.2s ease; }
.hl-header__tab:hover .hl-header__icon { opacity: 1; }
.hl-header__icon { display: block; width: 20px; height: 20px; }

/* logo lives IN the grid (not position:absolute) so zoom cannot shove
   tabs through it. Slight downward offset = the overhang. */
.hl-header__brand {
  grid-area: brand;
  position: relative;
  top: clamp(4px, 0.8vw, 12px);
  z-index: 2;
  display: block;
  line-height: 0;
  justify-self: center;
}
.hl-header__brand img {
  display: block;
  height: clamp(56px, 6vw, 92px);
  width: auto;
  max-width: min(28vw, 120px);
}

/* buyer quick actions — gold line icons; the cart count is a solid-gold
   chip, so it takes near-black text (AA gold law: 8.95:1) */
.hl-header__divider { width: 1px; height: 22px; margin-inline: 2px; background: rgba(200, 168, 107, 0.28); }
.hl-header__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.hl-header__action:hover { background: rgba(200, 168, 107, 0.12); }
.hl-header__count {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--bpc-primary);
  color: var(--bpc-background) !important; /* near-black on gold — the AA law */
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

/* mobile furniture (hamburger + cart) is desktop-hidden; Blocksy binds both
   ct-toggle buttons to its own #offcanvas / #search-modal panels */
.hl-header__trigger, .hl-header__cartlink { display: none !important; }

/* focus parity with the React root's gold ring */
.hl-header a:focus-visible, .hl-header button:focus-visible {
  outline: 2px solid var(--bpc-primary);
  outline-offset: 3px;
}

/* interior: lockup hangs onto the marble title band — no black void between */
body:not(.home) .hl-header { margin-bottom: 0; }
body:not(.home):not(:has(.hero-section[data-type])) .hl-header {
  margin-bottom: clamp(16px, 2vw, 28px);
}

/* 720px — not 999. Zoom-in on a 1440 desktop (150% = 960 CSS px) used to
   flip this to the hamburger layout and look like a glitch. */
@media (max-width: 719px) {
  .hl-header__tabs { display: none !important; }
  .hl-header__bar {
    height: 56px;
    padding: 0 14px;
    grid-template-areas: "left brand right";
  }
  .hl-header__trigger, .hl-header__cartlink {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bpc-primary) !important;
    cursor: pointer;
  }
  .hl-header__trigger { grid-area: left; justify-self: start; }
  .hl-header__cartlink { grid-area: right; justify-self: end; }
  .hl-header__trigger svg { fill: currentColor; }
  .hl-header__trigger:hover, .hl-header__cartlink:hover { background: rgba(200, 168, 107, 0.12); }
  .hl-header__brand { top: 10px; }
  .hl-header__brand img { height: 72px; max-width: none; }
  body:not(.home) .hl-header { margin-bottom: 0; }
  body:not(.home):not(:has(.hero-section[data-type])) .hl-header { margin-bottom: 12px; }
  /* keep the RUO strip one line so it doesn't shove the lockup down */
  .csf-topstrip {
    flex-direction: row;
    gap: 8px;
    padding: 5px 12px;
    font-size: 10px;
  }
  .csf-topstrip .csf-topstrip__right { display: none; }
}
