/* BioLab Compounds — generated by scripts/build-theme-assets.mjs from prototype/src. DO NOT EDIT. */

/* ---- styles/tokens.css ---- */
/* ==========================================================================
   BioLab Compounds — Design Tokens
   Single source of truth for colour, type, spacing, radius, motion, layers.
   Port these 1:1 to the WordPress theme (theme.json / root CSS vars).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Palette (raw) ---- */
  --bl-black: #080a0b;
  --bl-charcoal: #131719;
  --bl-charcoal-2: #1b2022;
  --bl-charcoal-3: #232a2d;
  --bl-white: #f5f7f7;
  --bl-gray: #a4adb0;
  --bl-gray-2: #6f797d;
  --bl-line: #30383b;
  --bl-line-soft: #1f2528;
  --bl-green: #b6ff3b;
  --bl-green-deep: #8fd91c;
  --bl-blue: #38b6ff;
  --bl-blue-deep: #1f9be3;
  --bl-danger: #ff6b6b;
  --bl-warn: #ffc857;

  /* ---- Semantic colour ---- */
  --color-bg: var(--bl-black);
  --color-surface: var(--bl-charcoal);
  --color-surface-2: var(--bl-charcoal-2);
  --color-surface-3: var(--bl-charcoal-3);
  --color-text: var(--bl-white);
  --color-text-2: var(--bl-gray);
  --color-text-3: var(--bl-gray-2);
  --color-border: var(--bl-line);
  --color-border-soft: var(--bl-line-soft);

  /* Accent: green primary, blue secondary (default) */
  --color-accent: var(--bl-green);
  --color-accent-deep: var(--bl-green-deep);
  --color-accent-contrast: #0a1202; /* text on accent */
  --color-accent-rgb: 182 255 59;
  --color-accent-2: var(--bl-blue);
  --color-accent-2-rgb: 56 182 255;

  --color-accent-soft: rgb(var(--color-accent-rgb) / 0.1);
  --color-accent-soft-2: rgb(var(--color-accent-rgb) / 0.18);
  --color-accent-ring: rgb(var(--color-accent-rgb) / 0.45);
  --color-accent-glow: rgb(var(--color-accent-rgb) / 0.22);

  /* ---- Typography ---- */
  --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-en: 'Inter Variable', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-body: var(--font-ar), var(--font-en);

  /* Fluid type scale (360px → 1440px) */
  --text-xs: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.82rem, 0.8rem + 0.15vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.2vw, 1.05rem);
  --text-md: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.6vw, 1.6rem);
  --text-xl: clamp(1.55rem, 1.35rem + 1.1vw, 2.2rem);
  --text-2xl: clamp(2rem, 1.6rem + 2.2vw, 3.4rem);
  --text-3xl: clamp(2.4rem, 1.8rem + 3.2vw, 4.4rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Spacing (4px base) ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --section-gap: clamp(3.5rem, 3rem + 4vw, 7rem);

  /* ---- Layout ---- */
  --container-max: 1320px;
  --container-pad: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --header-height: 68px;
  --notice-height: 34px;

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 24px 48px -16px rgb(0 0 0 / 0.7);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;

  /* ---- Layers ---- */
  --z-header: 50;
  --z-dropdown: 60;
  --z-drawer: 80;
  --z-overlay: 90;
}

/* Alternate accent for client comparison: blue primary, green secondary */
:root[data-accent='blue'] {
  --color-accent: var(--bl-blue);
  --color-accent-deep: var(--bl-blue-deep);
  --color-accent-contrast: #03131d;
  --color-accent-rgb: 56 182 255;
  --color-accent-2: var(--bl-green);
  --color-accent-2-rgb: 182 255 59;
}

/* Language-aware font stacks */
:root[lang='ar'] {
  --font-body: var(--font-ar), var(--font-en);
}
:root[lang='en'] {
  --font-body: var(--font-en), var(--font-ar);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

/* ---- styles/base.css ---- */
/* ==========================================================================
   Base / reset / shared primitives
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--notice-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

#root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:root[lang='ar'] h1,
:root[lang='ar'] h2,
:root[lang='ar'] h3,
:root[lang='ar'] h4 {
  letter-spacing: 0;
  line-height: var(--leading-snug);
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

/* Focus — visible, accent ring, never removed */
:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-gap);
}

.section + .section {
  padding-top: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.section-head__title {
  font-size: var(--text-xl);
}

.section-head__subtitle {
  margin-top: var(--space-2);
  color: var(--color-text-2);
  max-width: 56ch;
  font-size: var(--text-sm);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

:root[lang='ar'] .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.02em;
}

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

.skip-link {
  position: fixed;
  top: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--color-text);
}

/* Skeleton loading */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(255 255 255 / 0.05) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Page transitions (subtle) */
main .page {
  animation: page-in var(--dur-slow) var(--ease-out) both;
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- components/ui/Button.css ---- */
.btn {
  --btn-h: 44px;
  --btn-px: var(--space-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-h);
  padding-inline: var(--btn-px);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn--sm {
  --btn-h: 36px;
  --btn-px: var(--space-4);
  font-size: var(--text-xs);
}
.btn--lg {
  --btn-h: 52px;
  --btn-px: var(--space-8);
  font-size: var(--text-base);
}
.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}
.btn--primary:hover:not(:disabled) {
  background: var(--color-accent-deep);
  box-shadow: 0 0 0 1px var(--color-accent-ring), 0 8px 24px -10px var(--color-accent-glow);
}
.btn--primary:active:not(:disabled) {
  transform: translateY(1px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-2);
}
.btn--ghost:hover:not(:disabled) {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.btn:disabled {
  opacity: 0.45;
}

.btn .icon--dir {
  transition: transform var(--dur-fast) var(--ease-out);
}
:root[dir='rtl'] .btn .icon--dir {
  transform: scaleX(-1);
}
.btn:hover:not(:disabled) .icon--dir {
  transform: translateX(3px);
}
:root[dir='rtl'] .btn:hover:not(:disabled) .icon--dir {
  transform: scaleX(-1) translateX(3px);
}

/* ---- components/ui/Badge.css ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  white-space: nowrap;
}
.badge--neutral {
  background: var(--color-surface-3);
  color: var(--color-text-2);
}
.badge--accent {
  background: var(--color-accent-soft-2);
  color: var(--color-accent);
}
.badge--outline {
  border: 1px solid var(--color-border);
  color: var(--color-text-2);
}

/* ---- components/brand/Logo.css ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  border-radius: var(--radius-md);
}
.logo__mark {
  flex: none;
  color: var(--color-text);
}
.logo__core {
  fill: var(--color-accent);
  transition: fill var(--dur-base) var(--ease-out);
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-en);
}
.logo__name {
  font-weight: var(--weight-bold);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.logo__sub {
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: var(--weight-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-2);
}
.logo--compact .logo__sub {
  display: none;
}
.logo:hover .logo__core {
  fill: var(--color-accent-deep);
}

/* ---- components/layout/PrototypeNotice.css ---- */
.proto-notice {
  min-height: var(--notice-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-text-2);
  font-size: var(--text-xs);
}
.proto-notice__inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--notice-height);
}
.proto-notice .icon {
  color: var(--color-accent);
  flex: none;
}
.proto-notice__short {
  display: none;
}
@media (max-width: 767px) {
  .proto-notice__long {
    display: none;
  }
  .proto-notice__short {
    display: inline;
  }
}

/* ---- components/layout/Header.css ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(8 10 11 / 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border-soft);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-height);
}

/* Icon buttons */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-2);
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.icon-btn[aria-disabled='true'] {
  color: var(--color-text-3);
  cursor: not-allowed;
}
.icon-btn[aria-disabled='true']:hover {
  background: transparent;
}
.icon-btn__count {
  position: absolute;
  top: 5px;
  inset-inline-end: 4px;
  min-width: 16px;
  height: 16px;
  padding-inline: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-3);
  color: var(--color-text-2);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  line-height: 16px;
  text-align: center;
}

.site-header__menu {
  display: inline-flex;
  margin-inline-start: -8px;
}

.site-header__utils {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline-start: auto;
}
.site-header__lang,
.site-header__account {
  display: none;
}

/* Desktop nav */
.site-nav {
  display: none;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav__item {
  position: relative;
}
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding-inline: 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-2);
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.site-nav__link:hover,
.site-nav__link[aria-expanded='true'] {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.site-nav__link.is-active {
  color: var(--color-accent);
}
.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  inset-inline: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.site-nav__chevron {
  transition: transform var(--dur-fast) var(--ease-out);
}
.site-nav__link[aria-expanded='true'] .site-nav__chevron {
  transform: rotate(180deg);
}

/* Mega menu (desktop dropdown) */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-start: 0;
  z-index: var(--z-dropdown);
  width: min(880px, calc(100vw - 2 * var(--container-pad)));
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.mega.is-open {
  opacity: 1;
  transform: none;
}
.mega::before {
  /* hover bridge */
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -12px;
  height: 12px;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5) var(--space-6);
}
.mega__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}
.mega__title .icon {
  color: var(--color-accent);
}
.mega__title:hover {
  color: var(--color-accent);
}
.mega__subs {
  display: grid;
  gap: 2px;
}
.mega__sub {
  display: block;
  padding: 4px 0;
  font-size: var(--text-sm);
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.mega__sub:hover {
  color: var(--color-text);
}
.mega__foot {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-soft);
}
.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
}
:root[dir='rtl'] .mega__all .icon--dir {
  transform: scaleX(-1);
}

@media (min-width: 1024px) {
  .site-header__menu {
    display: none;
  }
  .site-nav {
    display: block;
    margin-inline-start: var(--space-6);
  }
  .site-header__lang,
  .site-header__account {
    display: inline-flex;
  }
  .site-header__lang {
    margin-inline: 6px;
  }
}

/* ---- components/layout/MobileNavigation.css ---- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.mnav.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mnav__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.mnav.is-open .mnav__backdrop {
  opacity: 1;
}
.mnav__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-inline-end: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
:root[dir='rtl'] .mnav__panel {
  transform: translateX(100%);
}
.mnav.is-open .mnav__panel {
  transform: none;
}

.mnav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-inline: var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
}

.mnav__search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: var(--space-4);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-3);
  font-size: var(--text-sm);
  text-align: start;
}
.mnav__search:hover {
  border-color: var(--color-accent);
  color: var(--color-text-2);
}

.mnav__nav {
  padding-inline: var(--space-2);
}
.mnav__list > li + li {
  border-top: 1px solid var(--color-border-soft);
}
.mnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  border-radius: var(--radius-md);
  text-align: start;
}
.mnav__link:hover {
  background: var(--color-surface-2);
}
.mnav__chev {
  color: var(--color-text-3);
  transition: transform var(--dur-fast) var(--ease-out);
}
[aria-expanded='true'] > .mnav__chev {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.mnav__cats {
  padding: 0 var(--space-2) var(--space-3);
}
.mnav__cat-row {
  display: flex;
  align-items: center;
}
.mnav__cat-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 10px var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-2);
  border-radius: var(--radius-md);
}
.mnav__cat-link .icon {
  color: var(--color-accent);
}
.mnav__cat-link:hover {
  color: var(--color-text);
}
.mnav__cat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}
.mnav__cat-toggle:hover {
  background: var(--color-surface-2);
}
.mnav__subs {
  padding-inline-start: 36px;
  padding-bottom: var(--space-2);
}
.mnav__sub {
  display: block;
  padding: 8px var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
}
.mnav__sub:hover {
  color: var(--color-accent);
}
.mnav__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-2);
  padding: 8px var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
}
:root[dir='rtl'] .mnav__all .icon--dir {
  transform: scaleX(-1);
}

.mnav__foot {
  margin-top: auto;
  padding: var(--space-4);
  border-top: 1px solid var(--color-border-soft);
  display: grid;
  gap: var(--space-4);
}
.mnav__foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.mnav__foot-label {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  font-weight: var(--weight-medium);
}

@media (min-width: 1024px) {
  .mnav {
    display: none;
  }
}

/* ---- components/layout/SearchOverlay.css ---- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-4);
  padding-top: clamp(1rem, 8vh, 6rem);
}
.search__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.7);
  backdrop-filter: blur(6px);
  animation: fade-in var(--dur-base) var(--ease-out);
}
.search__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: rise-in var(--dur-slow) var(--ease-out);
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.search__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-soft);
}
.search__icon {
  color: var(--color-accent);
  flex: none;
}
.search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: transparent;
  border: 0;
  font-size: var(--text-md);
  color: var(--color-text);
}
.search__input::placeholder {
  color: var(--color-text-3);
}
.search__input::-webkit-search-cancel-button {
  display: none;
}
.search__input:focus-visible {
  outline: none;
}
.search__clear {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-2);
}
.search__clear:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}
.search__close {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-2);
}
.search__close:hover {
  color: var(--color-text);
  border-color: var(--color-text-2);
}

.search__body {
  padding: var(--space-4);
  overflow-y: auto;
}
.search__hint {
  color: var(--color-text-3);
  font-size: var(--text-sm);
}
.search__group {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-3);
}
:root[lang='ar'] .search__group {
  letter-spacing: 0;
}
.search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.search__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-2);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.search__chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.search__empty {
  padding: var(--space-8) 0;
  text-align: center;
}
.search__empty-title {
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.search__results {
  display: grid;
  gap: var(--space-1);
}
.search__result {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.search__result:hover {
  background: var(--color-surface-2);
}
.search__thumb {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
}
.search__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.search__name {
  font-weight: var(--weight-medium);
}
.search__sub {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.search__arrow {
  color: var(--color-text-3);
}
:root[dir='rtl'] .search__arrow {
  transform: scaleX(-1);
}
.search__result:hover .search__arrow {
  color: var(--color-accent);
}

/* ---- components/layout/LanguageSwitcher.css ---- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  color: var(--color-text-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}
.lang-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.lang-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-soft);
}
.lang-seg__btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-2);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.lang-seg__btn:hover {
  color: var(--color-text);
}
.lang-seg__btn[aria-pressed='true'] {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

/* ---- components/layout/AccentSwitcher.css ---- */
.accent-switch {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.accent-switch__label {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  font-weight: var(--weight-medium);
}
.accent-switch__group {
  display: inline-flex;
  gap: var(--space-2);
}
.accent-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-2);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.accent-switch__btn:hover {
  color: var(--color-text);
}
.accent-switch__btn[aria-pressed='true'] {
  color: var(--color-text);
  border-color: var(--color-text-2);
  background: var(--color-surface-2);
}
.accent-switch__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-bg);
}
.accent-switch__btn--green .accent-switch__dot {
  background: var(--bl-green);
}
.accent-switch__btn--blue .accent-switch__dot {
  background: var(--bl-blue);
}
.accent-switch__hint {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}

/* ---- components/layout/Footer.css ---- */
.site-footer {
  margin-top: auto;
  padding-block: var(--space-16) var(--space-8);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--text-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10) var(--space-8);
}
.site-footer__brand {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.site-footer__tagline {
  color: var(--color-text-2);
  max-width: 32ch;
}
.site-footer__controls {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  margin-top: var(--space-2);
}
.site-footer__title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: var(--space-3);
}
:root[lang='ar'] .site-footer__title {
  letter-spacing: 0;
}
.site-footer__title--gap {
  margin-top: var(--space-6);
}
.site-footer__col ul {
  display: grid;
  gap: 6px;
}
.site-footer__col a,
.site-footer__col button {
  color: var(--color-text-2);
  padding: 2px 0;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.site-footer__col a:hover,
.site-footer__col button:hover {
  color: var(--color-accent);
}
.site-footer__col a[aria-disabled='true'] {
  color: var(--color-text-3);
  cursor: default;
}
.site-footer__col a[aria-disabled='true']:hover {
  color: var(--color-text-3);
}
.site-footer__placeholder {
  color: var(--color-text-3);
  font-size: var(--text-xs);
  max-width: 28ch;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text-3);
  font-size: var(--text-xs);
}
.site-footer__proto {
  color: var(--color-text-3);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: auto;
  }
}

/* ---- components/home/Hero.css ---- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(2rem, 1.5rem + 3vw, 5rem);
  overflow: hidden;
}
.hero::before {
  /* single, restrained radial accent wash behind the visual */
  content: '';
  position: absolute;
  inset-inline-end: -10%;
  top: -20%;
  width: 60vw;
  max-width: 820px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(var(--color-accent-rgb) / 0.09), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
.hero__content {
  display: grid;
  gap: var(--space-5);
  max-width: 620px;
}
.hero__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  max-width: 14ch;
}
.hero__subtitle {
  font-size: var(--text-md);
  color: var(--color-text-2);
  max-width: 48ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-soft);
}
.hero__stat {
  display: grid;
  gap: 2px;
}
.hero__stat-value {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-align: start;
}
.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.hero__visual {
  width: min(100%, 420px);
  margin-inline: auto;
}

@media (max-width: 639px) {
  .hero__actions .btn {
    flex: 1 1 auto;
  }
}
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-16);
  }
  .hero__visual {
    width: min(100%, 560px);
  }
}

/* ---- components/home/HeroVisual.css ---- */
.hero-visual {
  width: 100%;
  height: auto;
  color: var(--color-text-2);
}
.hv-ring {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
}
.hv-ticks line {
  stroke: var(--color-border);
  stroke-width: 1;
}
.hv-links line {
  stroke: var(--color-border);
  stroke-width: 1;
}
.hv-node path {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 1.2;
  transition: stroke var(--dur-base) var(--ease-out);
}
.hv-node--far path {
  fill: var(--color-bg);
  opacity: 0.8;
}
.hv-node--core path {
  fill: var(--color-accent-soft-2);
  stroke: var(--color-accent);
}
.hv-core-dot {
  fill: var(--color-accent);
}
.hv-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  fill: var(--color-text-3);
}

@media (prefers-reduced-motion: no-preference) {
  .hv-node--near path {
    animation: hv-pulse 6s var(--ease-in-out) infinite;
  }
  .hv-node--near:nth-child(odd) path {
    animation-delay: -3s;
  }
  @keyframes hv-pulse {
    0%,
    100% {
      stroke: var(--color-border);
    }
    50% {
      stroke: var(--color-accent);
    }
  }
}

/* ---- components/home/CategoryGrid.css ---- */
.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.section-head__link:hover {
  color: var(--color-accent);
}
:root[dir='rtl'] .section-head__link .icon--dir {
  transform: scaleX(-1);
}

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    'icon body'
    'icon meta';
  gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-5);
  padding-inline-end: 52px;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}
.cat-card:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-2);
  transform: translateY(-2px);
}
.cat-card__icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  color: var(--color-accent);
}
.cat-card__body {
  grid-area: body;
  display: grid;
  gap: 2px;
}
.cat-card__name {
  font-weight: var(--weight-semibold);
}
.cat-card__blurb {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}
.cat-card__meta {
  grid-area: meta;
  display: flex;
  gap: 6px;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.cat-card__arrow {
  position: absolute;
  inset-inline-end: var(--space-4);
  top: 50%;
  translate: 0 -50%;
  color: var(--color-text-3);
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
:root[dir='rtl'] .cat-card__arrow {
  transform: scaleX(-1);
}
.cat-card:hover .cat-card__arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}
:root[dir='rtl'] .cat-card:hover .cat-card__arrow {
  transform: scaleX(-1) translateX(3px);
}

@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}
@media (min-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cat-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      'icon'
      'body'
      'meta';
    gap: var(--space-4);
    padding: var(--space-5);
    padding-inline-end: var(--space-5);
    min-height: 196px;
  }
  .cat-card__arrow {
    top: var(--space-5);
    translate: none;
  }
  .cat-card__meta {
    margin-top: auto;
  }
}

/* ---- components/home/BrandSection.css ---- */
.brand__inner {
  display: grid;
  gap: var(--space-10);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
}
.brand__intro {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.brand__title {
  font-size: var(--text-xl);
  max-width: 20ch;
}
.brand__text {
  color: var(--color-text-2);
  max-width: 52ch;
}
.brand__swatches {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.brand__swatch {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.brand__swatch--bg {
  background: var(--color-bg);
}
.brand__swatch--surface {
  background: var(--color-surface);
}
.brand__swatch--elevated {
  background: var(--color-surface-2);
}
.brand__swatch--accent {
  background: var(--color-accent);
  border-color: transparent;
}
.brand__swatch--accent2 {
  background: var(--color-accent-2);
  border-color: transparent;
  opacity: 0.8;
}
.brand__points {
  display: grid;
  gap: var(--space-4);
}
.brand__point {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
}
.brand__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.brand__point-title {
  font-size: var(--text-base);
}
.brand__point-text {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}

@media (min-width: 768px) {
  .brand__points {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .brand__inner {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
  .brand__points {
    grid-template-columns: 1fr;
  }
  .brand__point {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'icon title'
      'icon text';
    column-gap: var(--space-4);
  }
  .brand__point-icon {
    grid-area: icon;
  }
  .brand__point-title {
    grid-area: title;
  }
  .brand__point-text {
    grid-area: text;
  }
}

/* ---- components/home/InfoSection.css ---- */
.steps {
  display: grid;
  gap: var(--space-3);
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  background: var(--color-surface);
}
.step__num {
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-align: start;
}
.step__title {
  font-size: var(--text-md);
}
.step__text {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}
.info-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  color: var(--color-text-2);
  font-size: var(--text-sm);
}
.info-note .icon {
  flex: none;
  margin-top: 3px;
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* ---- components/product/ProductVisual.css ---- */
.product-visual {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  color: var(--color-text-2);
}

.pv-shadow {
  fill: #000;
  opacity: 0.45;
}
.pv-cap {
  fill: var(--color-surface-3);
  stroke: var(--color-border);
  stroke-width: 1;
}
.pv-neck {
  fill: var(--color-surface-2);
}
.pv-glass {
  fill: rgb(255 255 255 / 0.03);
  stroke: var(--color-text-2);
  stroke-width: 1.4;
}
.pv-glass--dark {
  fill: rgb(0 0 0 / 0.5);
}
.pv-liquid {
  fill: rgb(var(--color-accent-rgb) / 0.16);
}
.pv-bottle {
  fill: var(--color-surface-2);
  stroke: var(--color-border);
  stroke-width: 1.2;
}
.pv-pipette {
  fill: rgb(255 255 255 / 0.12);
}
.pv-label {
  fill: var(--color-bg);
  stroke: var(--color-border);
  stroke-width: 1;
}
.pv-line {
  fill: var(--color-border);
}
.pv-accent,
.pv-accent-fill {
  fill: var(--color-accent);
}
.pv-mark {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.2;
}
.pv-sku {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--color-text);
  letter-spacing: 0.06em;
}
.pv-sku--lg {
  font-size: 14px;
  fill: var(--color-text-2);
}
.pv-capsule {
  fill: var(--color-surface-3);
  stroke: var(--color-border);
}
.pv-capsule--half {
  fill: var(--color-accent);
  opacity: 0.85;
}
.pv-box {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 1.2;
}
.pv-box-line {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
}
.pv-hex {
  fill: var(--color-surface-2);
  stroke: var(--color-border);
  stroke-width: 1.2;
}
.pv-hex--core {
  fill: var(--color-accent-soft-2);
  stroke: var(--color-accent);
}
.pv-hex-link {
  stroke: var(--color-border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

/* ---- components/product/ProductCard.css ---- */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.pcard:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.pcard:focus-within {
  border-color: var(--color-accent);
}

.pcard__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-soft);
  overflow: hidden;
}
.pcard__media .product-visual {
  transition: transform var(--dur-slow) var(--ease-out);
}
.pcard:hover .pcard__media .product-visual {
  transform: scale(1.04);
}
.pcard__demo {
  position: absolute;
  top: var(--space-3);
  inset-inline-start: var(--space-3);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgb(8 10 11 / 0.8);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text-3);
  font-size: 10px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
}

.pcard__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}
.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pcard__name {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}
.pcard__link {
  color: var(--color-text);
  transition: color var(--dur-fast) var(--ease-out);
}
/* stretch link over the whole card */
.pcard__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pcard__link:focus-visible {
  outline: none;
}
.pcard:hover .pcard__link {
  color: var(--color-accent);
}
.pcard__sku {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.pcard__sku .mono {
  color: var(--color-text-2);
}
.pcard__summary {
  font-size: var(--text-sm);
  color: var(--color-text-2);
}
.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-soft);
  font-size: var(--text-xs);
}
.pcard__form {
  color: var(--color-text-3);
}
.pcard__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-2);
  transition: color var(--dur-fast) var(--ease-out);
}
:root[dir='rtl'] .pcard__cta .icon--dir {
  transform: scaleX(-1);
}
.pcard:hover .pcard__cta {
  color: var(--color-accent);
}

/* ---- components/product/ProductGrid.css ---- */
.pgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.pgrid__empty {
  padding: var(--space-10) var(--space-4);
  text-align: center;
  color: var(--color-text-3);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

@media (min-width: 480px) {
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .pgrid--3,
  .pgrid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .pgrid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
  }
}

/* ---- components/product/Breadcrumbs.css ---- */
.crumbs {
  font-size: var(--text-xs);
  overflow-x: auto;
  scrollbar-width: none;
}
.crumbs::-webkit-scrollbar {
  display: none;
}
.crumbs__list {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.crumbs__link {
  color: var(--color-text-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.crumbs__link:hover {
  color: var(--color-accent);
}
.crumbs__current {
  color: var(--color-text-2);
}
.crumbs__sep {
  display: inline-flex;
  color: var(--color-text-3);
}
.crumbs__sep .icon {
  transform: rotate(-90deg);
}
:root[dir='rtl'] .crumbs__sep .icon {
  transform: rotate(90deg);
}

/* ---- components/product/ProductGallery.css ---- */
.gallery {
  display: grid;
  gap: var(--space-3);
}
.gallery__stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
  touch-action: pan-y;
}
.gallery__skeleton {
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out);
}
.gallery__stage.is-loaded .gallery__skeleton {
  opacity: 0;
  pointer-events: none;
}
.gallery__image {
  position: absolute;
  inset: 0;
  padding: clamp(0.5rem, 4%, 2rem);
  opacity: 0;
  transform: scale(0.985);
  animation: gallery-in var(--dur-slow) var(--ease-out) forwards;
}
.gallery__stage:not(.is-loaded) .gallery__image {
  animation: none;
}
@keyframes gallery-in {
  to {
    opacity: 1;
    transform: none;
  }
}
.gallery__counter {
  position: absolute;
  bottom: var(--space-3);
  inset-inline-end: var(--space-3);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgb(8 10 11 / 0.8);
  border: 1px solid var(--color-border-soft);
  font-family: var(--font-en);
  font-size: var(--text-xs);
  color: var(--color-text-2);
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.gallery__thumb:hover {
  border-color: var(--color-border);
  background: var(--color-surface-2);
}
.gallery__thumb[aria-selected='true'] {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}
.gallery__thumb .product-visual {
  padding: 6px;
}
.gallery__thumb-label {
  position: absolute;
  bottom: 4px;
  inset-inline: 4px;
  font-size: 10px;
  text-align: center;
  color: var(--color-text-3);
  background: rgb(8 10 11 / 0.7);
  border-radius: 4px;
  padding: 1px 0;
}
.gallery__thumb[aria-selected='true'] .gallery__thumb-label {
  color: var(--color-accent);
}

@media (min-width: 1024px) {
  .gallery {
    grid-template-columns: 84px 1fr;
  }
  .gallery__thumbs {
    order: -1;
    grid-template-columns: 1fr;
    align-content: start;
  }
}

/* ---- components/product/ProductDetails.css ---- */
/* ---- Info panel ---- */
.pinfo {
  display: grid;
  gap: var(--space-4);
}
.pinfo__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.pinfo__cat {
  font-size: var(--text-sm);
  color: var(--color-text-2);
  border-radius: var(--radius-sm);
}
.pinfo__cat:hover {
  color: var(--color-accent);
}
.pinfo__sub {
  color: var(--color-text-3);
}
.pinfo__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}
.pinfo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
}
.pinfo__meta dt {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.pinfo__meta dd {
  margin: 2px 0 0;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-align: start;
}
.pinfo__summary {
  color: var(--color-text-2);
}

.pinfo__commerce {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
}
.pinfo__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.pinfo__row-label {
  color: var(--color-text-3);
}
.pinfo__price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}
.pinfo__price-dash {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}
.pinfo__price-note {
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.pinfo__avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-2);
}
.pinfo__avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-3);
}
.pinfo__commerce .btn {
  margin-top: var(--space-2);
}
.pinfo__cta-note {
  font-size: var(--text-xs);
  color: var(--color-text-3);
  text-align: center;
}
.pinfo__preview-note {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.pinfo__preview-note .icon {
  flex: none;
  margin-top: 2px;
  color: var(--color-accent);
}

/* ---- Tabs ---- */
.ptabs {
  display: grid;
  gap: var(--space-5);
}
.ptabs__list {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.ptabs__list::-webkit-scrollbar {
  display: none;
}
.ptabs__tab {
  position: relative;
  flex: none;
  padding: 12px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-2);
  transition: color var(--dur-fast) var(--ease-out);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.ptabs__tab:hover {
  color: var(--color-text);
}
.ptabs__tab[aria-selected='true'] {
  color: var(--color-accent);
}
.ptabs__tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-accent);
}
.ptabs__panel {
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  max-width: 68ch;
}
.ptabs__bullets {
  display: grid;
  gap: var(--space-3);
}
.ptabs__bullets li {
  display: flex;
  gap: var(--space-2);
}
.ptabs__bullets .icon {
  flex: none;
  margin-top: 4px;
  color: var(--color-accent);
}

.specs {
  margin: 0;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.specs__row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: var(--space-4);
  padding: 12px var(--space-4);
  font-size: var(--text-sm);
}
.specs__row:nth-child(odd) {
  background: var(--color-surface);
}
.specs__row dt {
  color: var(--color-text-3);
}
.specs__row dd {
  margin: 0;
  color: var(--color-text);
}

/* ---- pages/ProductPage.css ---- */
.pdp {
  padding-block: var(--space-5) var(--section-gap);
}
.pdp__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-5);
}
.pdp__related {
  margin-top: var(--section-gap);
}

/* Skeleton */
.pdp__skeleton {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-5);
}
.pdp__sk-gallery {
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
}
.pdp__sk-info {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.pdp__sk-line {
  height: 16px;
  width: 100%;
}
.pdp__sk-line--short {
  width: 30%;
}
.pdp__sk-line--title {
  height: 36px;
  width: 80%;
}
.pdp__sk-block {
  height: 180px;
  margin-top: var(--space-3);
  border-radius: var(--radius-lg);
}

@media (min-width: 1024px) {
  .pdp__layout,
  .pdp__skeleton {
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
    gap: var(--space-10) var(--space-12);
    align-items: start;
  }
  .pdp__info {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }
  .pdp__tabs {
    grid-column: 1;
  }
}

/* ---- pages/CatalogPage.css ---- */
.catalog {
  padding-block: var(--space-5) var(--section-gap);
}
.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-5);
}
.catalog__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}
.catalog__sub {
  margin-top: var(--space-2);
  color: var(--color-text-2);
  max-width: 56ch;
}
.catalog__count {
  font-size: var(--text-sm);
  color: var(--color-text-3);
}

.catalog__filters {
  margin-top: var(--space-6);
  margin-inline: calc(-1 * var(--container-pad));
  padding-inline: var(--container-pad);
  overflow-x: auto;
  scrollbar-width: none;
}
.catalog__filters::-webkit-scrollbar {
  display: none;
}
.chips {
  display: flex;
  gap: var(--space-2);
  width: max-content;
  padding-bottom: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-2);
  white-space: nowrap;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}
.chip:hover {
  color: var(--color-text);
  border-color: var(--color-text-2);
}
.chip[aria-current='page'] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-contrast);
}

.catalog__subs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}
.catalog__sub {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  font-size: var(--text-xs);
  color: var(--color-text-3);
}
.catalog__filters + .pgrid,
.catalog__filters + .pgrid__empty {
  margin-top: var(--space-6);
}

/* ---- wp-overrides.css ---- */
/* ==========================================================================
   WordPress / WooCommerce specific additions (appended after the prototype CSS)
   ========================================================================== */

/* Admin bar offset for the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

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

/* Language toggle rendered as a link in WP */
a.lang-toggle { text-decoration: none; }
a.lang-seg__btn { text-decoration: none; }

/* Product images inside cards / gallery */
.pcard__img, .gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__image { padding: 0; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media .pcard__img { transition: transform var(--dur-slow) var(--ease-out); }
.pcard:hover .pcard__media .pcard__img { transform: scale(1.04); }

/* Subcategory chips as links */
a.catalog__sub { text-decoration: none; transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
a.catalog__sub:hover, a.catalog__sub.is-active { color: var(--color-accent); border-color: var(--color-accent); }

/* Pagination */
.pagination { margin-top: var(--space-8); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: 12px; border-radius: var(--radius-md); border: 1px solid var(--color-border); color: var(--color-text-2); font-size: var(--text-sm); text-decoration: none; }
.pagination .page-numbers.current { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.pagination a.page-numbers:hover { color: var(--color-text); border-color: var(--color-text-2); }
.pagination .pagination__prev { transform: scaleX(-1); }
:root[dir='rtl'] .pagination .pagination__prev { transform: none; }
:root[dir='rtl'] .pagination .next .icon--dir { transform: scaleX(-1); }

/* Page content typography */
.page-single { padding-block: var(--space-5) var(--section-gap); }
.entry-content { max-width: 72ch; color: var(--color-text-2); line-height: var(--leading-relaxed); }
.entry-content h2, .entry-content h3 { color: var(--color-text); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: var(--space-4); }
.entry-content ul { list-style: disc; padding-inline-start: 1.25em; }
.entry-content ol { list-style: decimal; padding-inline-start: 1.25em; }
/* :where() keeps the specificity at (0,1,1) so component rules (buttons, account navigation) still win. */
.entry-content a:where(:not(.btn):not(.button)) { color: var(--color-accent); }
.entry-content img { border-radius: var(--radius-lg); }
.post-list { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.post-list__item { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.post-list__link { font-weight: var(--weight-semibold); }
.post-list__excerpt { margin-top: var(--space-2); color: var(--color-text-2); font-size: var(--text-sm); }

/* 404 */
.notfound { padding-block: var(--section-gap); text-align: center; }
.notfound .eyebrow { justify-content: center; }
.notfound__title { font-size: var(--text-xl); margin-top: var(--space-3); }
.notfound__text { color: var(--color-text-2); margin-top: var(--space-2); }
.notfound__actions { margin-top: var(--space-6); }

/* Footer menus from wp_nav_menu */
.site-footer__col .menu { display: grid; gap: 6px; }

/* WooCommerce notices + My Account (minimal, catalog mode) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-2); margin-bottom: var(--space-4); list-style: none; }
.woocommerce-error { border-color: var(--bl-danger); }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword { max-width: 420px; display: grid; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.woocommerce-form-row label, .form-row label { display: block; font-size: var(--text-sm); color: var(--color-text-2); margin-bottom: 6px; }
.woocommerce-Input, .input-text, .entry-content input[type='text'], .entry-content input[type='email'], .entry-content input[type='password'] { width: 100%; height: 44px; padding-inline: 12px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); }
.woocommerce-Input:focus-visible, .input-text:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.woocommerce-button, .woocommerce-form-login .button, .woocommerce-form-register .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: var(--space-5); border-radius: var(--radius-md); background: var(--color-accent); color: var(--color-accent-contrast); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); color: var(--color-text-2); font-size: var(--text-sm); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.woocommerce-privacy-policy-text { font-size: var(--text-xs); color: var(--color-text-3); }
.woocommerce-password-strength { font-size: var(--text-xs); }

/* TranslatePress floater (hidden; theme has its own switcher) */
#trp-floater-ls { display: none !important; }

/* `hidden` must win over component display rules (overlays are always in the DOM in WP) */
.search-overlay[hidden], .mega[hidden], .mnav__subs[hidden], .mnav__cats[hidden], .ptabs__panel[hidden] { display: none !important; }
.trp-floating-switcher, .trp-language-switcher.trp-floating-switcher { display: none !important; }

/* ==========================================================================
   Legal pages (Legal & Medical Disclaimer)
   ========================================================================== */
.legal-page { padding-block: var(--space-5) var(--section-gap); }
.legal {
  max-width: 820px;
  margin: var(--space-6) auto 0;
  padding: clamp(1.25rem, 0.75rem + 3vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
}
.legal__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-soft);
}
.legal__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.legal__title { font-size: var(--text-xl); font-weight: var(--weight-bold); }
.legal[lang='en'] { font-family: var(--font-en), var(--font-ar); }
.legal[lang='ar'] { font-family: var(--font-ar), var(--font-en); }
.legal__body { color: var(--color-text-2); font-size: var(--text-base); line-height: var(--leading-relaxed); }
.legal[lang='ar'] .legal__body { line-height: 2; }
.legal__body p { margin: 0 0 var(--space-4); max-width: 70ch; }
.legal__body h2 {
  position: relative;
  margin: var(--space-8) 0 var(--space-3);
  padding-inline-start: var(--space-4);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.legal__body h2::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 2px;
  background: var(--color-accent);
}
.legal__body .legal__lead { font-size: var(--text-md); color: var(--color-text); line-height: 1.85; }
.legal__body .legal__ack {
  margin-top: var(--space-8);
  margin-bottom: 0;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-accent-ring);
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

/* Footer disclaimer link */
.site-footer__legal-primary { margin-bottom: 6px; }
.site-footer__col a.site-footer__disclaimer { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--color-text); font-weight: var(--weight-medium); }
.site-footer__col a.site-footer__disclaimer .icon { color: var(--color-accent); }
.site-footer__col a.site-footer__disclaimer:hover,
.site-footer__col a.site-footer__disclaimer[aria-current='page'] { color: var(--color-accent); }

/* Checkout disclaimer notice (dormant while checkout is disabled) */
.checkout-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-2);
  font-size: var(--text-sm);
}
.checkout-disclaimer .icon { flex: none; margin-top: 2px; color: var(--color-accent); }
.checkout-disclaimer a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- wp-store.css ---- */
/* ==========================================================================
   Store components added in the production build (appended after wp-overrides.css)
   ========================================================================== */

/* ---- Badges ---- */
.badge--draft { background: rgb(255 200 87 / 0.14); color: var(--bl-warn); border: 1px solid rgb(255 200 87 / 0.35); }
.pcard__flags { position: absolute; top: var(--space-3); inset-inline-start: var(--space-3); display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.pcard__flags .pcard__demo { position: static; }
.pcard__brand { font-size: var(--text-xs); color: var(--color-text-3); letter-spacing: .04em; direction: ltr; text-align: start; }
.pcard__price { color: var(--color-text); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.pcard__cover { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--color-accent); background: radial-gradient(circle at 50% 40%, var(--color-accent-soft), transparent 65%), var(--color-bg); }
.pcard__cover--lg { aspect-ratio: 1; }
.pcard__facets { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard__facets li { padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--color-border-soft); font-size: var(--text-xs); color: var(--color-text-2); }
.catalog__draft { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-xs); color: var(--color-text-3); }
.catalog__brand-logo img { max-height: 64px; width: auto; margin-bottom: var(--space-3); }

/* ---- Filters ---- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin: var(--space-5) 0 var(--space-6); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.filters__field { display: grid; gap: 4px; flex: 1 1 150px; min-width: 0; }
.filters__label { font-size: var(--text-xs); color: var(--color-text-3); }
.filters select { width: 100%; height: 40px; padding-inline: 10px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: var(--text-sm); }
.filters select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.filters__reset { align-self: center; font-size: var(--text-sm); color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 479px) { .filters__field { flex-basis: calc(50% - var(--space-3)); } }

/* ---- Product page additions ---- */
.pinfo__price--live { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--color-text); }
.pinfo__avail.is-in .pinfo__avail-dot { background: var(--color-accent); }
.pinfo__cart form.cart { display: flex; gap: var(--space-2); align-items: stretch; margin-top: var(--space-2); }
.pinfo__cart .quantity input { width: 72px; height: 52px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); text-align: center; }
.pinfo__cart .single_add_to_cart_button { flex: 1; min-height: 52px; border-radius: var(--radius-md); border: 0; background: var(--color-accent); color: var(--color-accent-contrast); font-weight: var(--weight-semibold); }
.pinfo__cart .single_add_to_cart_button:hover { background: var(--color-accent-deep); }
.pinfo__meta a { color: var(--color-accent); }
.service-steps { margin-top: var(--section-gap); }
.steps--five { grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps--five { grid-template-columns: repeat(5, 1fr); } }

/* ---- Brands, contact ---- */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 768px) { .brand-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.brand-card { display: grid; gap: var(--space-2); justify-items: center; text-align: center; padding: var(--space-5) var(--space-3); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.brand-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.brand-card__logo { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--color-bg); border: 1px solid var(--color-border-soft); overflow: hidden; }
.brand-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-card__mono { font-family: var(--font-en); font-weight: var(--weight-bold); font-size: 1.4rem; color: var(--color-accent); }
.brand-card__name { font-family: var(--font-en); font-weight: var(--weight-semibold); }
.brand-card__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: var(--text-xs); color: var(--color-text-3); }
.contact-cards { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: grid; gap: 4px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.contact-card__icon { color: var(--color-accent); }
.contact-card__label { font-size: var(--text-xs); color: var(--color-text-3); }
.contact-card__value { font-weight: var(--weight-medium); word-break: break-word; }
a.contact-card__value { color: var(--color-text); }
a.contact-card__value:hover { color: var(--color-accent); }
.contact-page__more { margin-top: var(--space-6); }
.site-footer__contact { display: grid; gap: 6px; }
.site-footer__contact a { color: var(--color-text-2); }

/* ---- Legal drafts ---- */
.legal-draft-banner, .entry-content .legal-draft-note { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5); border-radius: var(--radius-md); border: 1px dashed var(--bl-warn); background: rgb(255 200 87 / 0.08); color: var(--bl-warn); font-size: var(--text-sm); }
.legal-draft-banner .icon { flex: none; margin-top: 2px; }

/* ---- Private services (My Account) ---- */
.bl-service-list { display: grid; gap: var(--space-3); }
.bl-service-card { display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.bl-service-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: center; }
.bl-service-card__name { font-weight: var(--weight-semibold); }
.bl-service-card__meta { font-size: var(--text-xs); color: var(--color-text-3); }
.bl-service-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.bl-badge { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--text-xs); background: var(--color-surface-3); color: var(--color-text-2); }
.bl-badge--awaiting_submission, .bl-badge--info_required { background: rgb(255 200 87 / 0.14); color: var(--bl-warn); }
.bl-badge--submitted, .bl-badge--in_review { background: rgb(var(--color-accent-2-rgb) / 0.14); color: var(--color-accent-2); }
.bl-badge--completed { background: var(--color-accent-soft-2); color: var(--color-accent); }
.bl-badge--cancelled { background: rgb(255 107 107 / 0.12); color: var(--bl-danger); }
.bl-muted { color: var(--color-text-3); font-size: var(--text-sm); }
.bl-empty { padding: var(--space-8) var(--space-4); text-align: center; color: var(--color-text-3); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); }
.bl-error { color: var(--bl-danger); font-size: var(--text-sm); margin-top: 4px; }

.bl-intake { display: grid; gap: var(--space-4); max-width: 720px; }
.bl-intake__order { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; color: var(--color-text-2); font-size: var(--text-sm); }
.bl-form { display: grid; gap: var(--space-5); }
.bl-fieldset { margin: 0; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--color-border-soft); background: var(--color-surface); display: grid; gap: var(--space-4); min-width: 0; }
.bl-fieldset > legend { padding-inline: var(--space-2); font-weight: var(--weight-semibold); color: var(--color-text); }
.bl-grid-2 { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .bl-grid-2 { grid-template-columns: 1fr 1fr; } }
.bl-field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bl-field > label, .bl-field > legend { font-size: var(--text-sm); color: var(--color-text-2); padding: 0; }
.bl-field input[type='text'], .bl-field input[type='number'] { width: 100%; height: 48px; padding-inline: 14px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: 16px; }
.bl-field input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-color: var(--color-accent); }
.bl-field.has-error input, .bl-field.has-error .bl-upload { border-color: var(--bl-danger); }
.bl-choice__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bl-chip { position: relative; }
.bl-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bl-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); color: var(--color-text-2); font-size: var(--text-sm); transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.bl-chip input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); font-weight: var(--weight-semibold); }
.bl-chip input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.bl-upload { display: grid; gap: 6px; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px dashed var(--color-border); background: var(--color-bg); cursor: pointer; }
.bl-upload:hover { border-color: var(--color-accent); }
.bl-upload__title { font-weight: var(--weight-semibold); }
.bl-upload__hint { font-size: var(--text-xs); color: var(--color-text-3); }
.bl-upload input[type='file'] { font-size: var(--text-sm); color: var(--color-text-2); max-width: 100%; }
.bl-upload input[type='file']::file-selector-button { margin-inline-end: 10px; padding: 8px 14px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text); cursor: pointer; }
.bl-upload__name { font-size: var(--text-sm); color: var(--color-accent); word-break: break-all; }
.bl-consent label { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.7; }
.bl-consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--color-accent); }
.bl-summary { display: grid; gap: var(--space-2); margin: 0; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.bl-summary div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.bl-summary dt { color: var(--color-text-3); }
.bl-summary dd { margin: 0; }
.bl-thankyou-service, .bl-receipt { margin: var(--space-6) 0; padding: var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--color-accent-ring); background: var(--color-accent-soft); }
.bl-thankyou-service h2, .bl-receipt h2 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.bl-receipt__form { margin-top: var(--space-3); }
.checkout-service-note { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--color-text-2); }
.biolab-checkout-meta { margin-top: var(--space-3); }

/* ---- WooCommerce account pages ---- */
.woocommerce-account .page-single--store .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
@media (min-width: 1024px) { .woocommerce-account .page-single--store .woocommerce { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-navigation ul { flex-direction: column; flex-wrap: nowrap; gap: 4px; margin: 0; }
@media (max-width: 1023px) { .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .woocommerce-MyAccount-navigation li { flex: none; } }
.woocommerce-MyAccount-navigation a { display: block; border-radius: var(--radius-md); }
.woocommerce-MyAccount-content { min-width: 0; color: var(--color-text-2); }
.woocommerce-MyAccount-content a:not(.btn):not(.button) { color: var(--color-accent); }
.woocommerce table.shop_table, .woocommerce-orders-table, .woocommerce-table--order-downloads { width: 100%; border-collapse: collapse; font-size: var(--text-sm); background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 12px var(--space-4); border-bottom: 1px solid var(--color-border-soft); text-align: start; }
.woocommerce table.shop_table th { color: var(--color-text-3); font-weight: var(--weight-medium); }
.woocommerce table.shop_table tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--color-border-soft); }
  .woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; gap: var(--space-3); border: 0; }
  .woocommerce table.shop_table_responsive td::before { content: attr(data-title); color: var(--color-text-3); }
}
.woocommerce .button, .woocommerce a.button, .woocommerce button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding-inline: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; cursor: pointer; }
.woocommerce .button:hover { border-color: var(--color-accent); color: var(--color-accent); }
.woocommerce .button.alt, .woocommerce button[type='submit'].button { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-contrast); }
.woocommerce form .form-row { margin: 0 0 var(--space-4); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: 16px; }
.woocommerce-order-details, .woocommerce-customer-details, .woocommerce-order-downloads { margin-top: var(--space-6); }
.woocommerce-order-details h2, .woocommerce-customer-details h2, .woocommerce-order-downloads h2 { font-size: var(--text-md); margin-bottom: var(--space-3); color: var(--color-text); }
.woocommerce address { font-style: normal; padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--color-border-soft); background: var(--color-surface); }
.track_order { display: grid; gap: var(--space-2); max-width: 520px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border-soft); }
.track_order .form-row-first, .track_order .form-row-last { width: 100%; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-radius: var(--radius-md); }
.woocommerce-message a.button, .woocommerce-info a.button { margin-inline-start: var(--space-3); }

/* ---- WooCommerce Blocks (cart / checkout / order confirmation) — dark theme ---- */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { color: var(--color-text); font-family: var(--font-body); }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar { min-width: 0; }
.wc-block-components-panel, .wc-block-components-totals-wrapper, .wc-block-components-order-summary, .wp-block-woocommerce-checkout-order-summary-block, .wc-block-checkout__sidebar .wc-block-components-panel { border-color: var(--color-border-soft) !important; }
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block, .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-4); }
.wc-block-components-text-input input, .wc-block-components-text-input textarea, .wc-blocks-components-select__select, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-address-form select, .wc-block-components-textarea { background: var(--color-bg) !important; color: var(--color-text) !important; border: 1px solid var(--color-border) !important; border-radius: var(--radius-md) !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label, .wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--color-text-3) !important; }
.wc-block-components-text-input.is-active label { color: var(--color-text-2) !important; }
.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus { border-color: var(--color-accent) !important; box-shadow: 0 0 0 1px var(--color-accent) !important; outline: none !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type='checkbox'] { background: var(--color-bg); border-color: var(--color-border); }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type='checkbox']:checked { background: var(--color-accent); border-color: var(--color-accent); }
.wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--color-accent-contrast); }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--color-border) !important; }
.wc-block-components-radio-control .wc-block-components-radio-control__input { background: var(--color-bg); border-color: var(--color-border); }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--color-accent); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--color-accent) !important; color: var(--color-accent-contrast) !important; border: 0 !important; border-radius: var(--radius-md) !important; min-height: 52px; font-weight: var(--weight-semibold) !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--color-accent-deep) !important; }
.wc-block-components-button.is-link, .wc-block-components-totals-coupon-link, .wc-block-components-checkout-return-to-cart-button { color: var(--color-accent) !important; }
.wc-block-components-checkout-step__title, .wc-block-components-title, .wc-block-components-totals-item__label { color: var(--color-text) !important; }
.wc-block-components-checkout-step__description, .wc-block-components-product-metadata, .wc-block-components-totals-item__description { color: var(--color-text-2) !important; }
.wc-block-components-formatted-money-amount, .wc-block-components-product-price { color: var(--color-text); }
.wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th { border-color: var(--color-border-soft) !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: var(--radius-md); background: var(--color-bg); }
.wc-block-components-quantity-selector { border-color: var(--color-border) !important; background: var(--color-bg); border-radius: var(--radius-md) !important; }
.wc-block-components-quantity-selector input, .wc-block-components-quantity-selector button { color: var(--color-text) !important; background: transparent !important; }
.wc-block-components-notice-banner { background: var(--color-surface) !important; color: var(--color-text) !important; border-color: var(--color-border) !important; }
.wc-block-components-notice-banner.is-error { border-color: var(--bl-danger) !important; }
.wc-block-components-notice-banner svg { fill: currentColor; }
.wc-block-components-order-summary-item__quantity { background: var(--color-surface-3) !important; color: var(--color-text) !important; border-color: var(--color-bg) !important; box-shadow: none !important; }
.wc-block-components-spinner::after { border-color: var(--color-accent) transparent; }
.wc-block-components-validation-error { color: var(--bl-danger); }
.wc-block-components-loading-mask { background: rgb(8 10 11 / 0.6); }
.wp-block-woocommerce-empty-cart-block, .wc-block-checkout-empty { text-align: center; color: var(--color-text-2); }
.wc-block-order-confirmation-status, .wc-block-order-confirmation-summary, .wp-block-woocommerce-order-confirmation-totals-wrapper { color: var(--color-text); }
.nav-draft { display: inline-block; width: 7px; height: 7px; margin-inline-start: 6px; border-radius: 50%; background: var(--bl-warn); vertical-align: middle; }

/* Mega menu anchored to the header container (8 groups; never overflows in RTL/LTR). */
.site-header__inner { position: relative; }
.site-nav__item--has-menu { position: static; }
.mega { top: calc(100% - 6px); inset-inline: var(--container-pad); width: auto; max-width: none; }
.mega__grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* Content list styling must not leak into WooCommerce / BioLab component lists. */
.entry-content .woocommerce ul, .entry-content .woocommerce ol, .entry-content .wp-block-woocommerce-cart ul, .entry-content .wp-block-woocommerce-checkout ul,
.entry-content .bl-service-list, .entry-content .wc-block-components-totals-wrapper ul { list-style: none; padding-inline-start: 0; margin-bottom: 0; }

/* Cart Block at phone widths: the line-items table grew past the viewport (the quantity control forced a
   fixed grid column wider than the row). Media query, not WooCommerce's 'is-mobile' class — that class is
   added late by the block's JS and is missing on first paint. */
@media (max-width: 782px) {
  .wp-block-woocommerce-cart .wc-block-cart-items { display: block; width: 100%; max-width: 100%; }
  .wp-block-woocommerce-cart .wc-block-cart-items thead, .wp-block-woocommerce-cart .wc-block-cart-items tbody { display: block; width: 100%; }
  .wp-block-woocommerce-cart .wc-block-cart-items__row { width: 100%; grid-template-columns: 80px minmax(0, 1fr) auto !important; }
  .wp-block-woocommerce-cart .wc-block-cart-item__product { min-width: 0; }
  .wp-block-woocommerce-cart .wc-block-cart-item__quantity { flex-wrap: wrap; gap: 8px; }
  .wc-block-components-quantity-selector { max-width: 100%; }
}

/* ---- Protocols & schedules ---- */
.pcard__cover--protocol { color: var(--color-accent); }
.pcard__duration { display: inline-flex; align-items: center; gap: 4px; }
.steps--four { grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps--four { grid-template-columns: repeat(4, 1fr); } }
.protocol { display: grid; gap: var(--space-4); }
.protocol__gate { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid rgb(255 200 87 / 0.35); background: rgb(255 200 87 / 0.06); }
.protocol__gate-text { display: flex; gap: var(--space-2); margin: 0; font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.6; }
.protocol__gate-text .icon { flex: none; margin-top: 3px; color: var(--bl-warn); }
.protocol__gate-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.protocol__body[hidden] { display: none !important; }
.protocol__draft { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); font-size: var(--text-xs); color: var(--color-text-3); }
.protocol__pending { margin: 0; }
.protocol__reviewed { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--color-text-2); }
.protocol__reviewed .icon { color: var(--color-accent); }
.schedule-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border-soft); background: var(--color-surface); }
.schedule { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.schedule th, .schedule td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-border-soft); }
.schedule thead th { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-3); background: var(--color-bg); position: sticky; top: 0; }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule tbody tr:nth-child(odd) td { background: rgb(255 255 255 / 0.015); }
.schedule__phase { white-space: nowrap; font-weight: var(--weight-semibold); color: var(--color-text); }
.schedule__compound { font-weight: var(--weight-semibold); color: var(--color-accent); }
.schedule__notes { color: var(--color-text-2); }
.schedule__empty { color: var(--color-text-3); }
@media (max-width: 767px) {
  .schedule thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schedule tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border-soft); }
  .schedule tbody tr:nth-child(odd) td { background: none; }
  .schedule td { display: grid; gap: 2px; padding: 6px 0; border: 0; }
  .schedule td::before { content: attr(data-label); font-size: var(--text-xs); color: var(--color-text-3); letter-spacing: .04em; text-transform: uppercase; }
  .schedule__phase, .schedule__notes { grid-column: 1 / -1; }
  .schedule__phase { white-space: normal; }
}
.pinfo__pct { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-accent-soft); background: var(--color-accent-soft); color: var(--color-text); font-size: var(--text-sm); line-height: 1.6; }
.pinfo__pct .icon { flex: none; margin-top: 3px; color: var(--color-accent); }
.protocol__locked { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--color-border-soft); background: var(--color-surface); }
.protocol__locked-title { display: flex; gap: var(--space-2); margin: 0; font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.6; }
.protocol__locked-title .icon { flex: none; margin-top: 3px; color: var(--color-accent); }
.protocol__locked-cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.protocol__locked-cols li { padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--color-border-soft); font-size: var(--text-xs); color: var(--color-text-2); }
.protocol__pct { display: flex; gap: var(--space-2); margin: 0; font-size: var(--text-sm); color: var(--color-text); }
.protocol__pct .icon { flex: none; margin-top: 3px; color: var(--color-accent); }

/* ---- Homepage product slider (auto-rotates; 2026-10-23) ---- */
.pslider { position: relative; }
.pslider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--space-4)) / 4); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 2px 2px var(--space-2); margin: 0; list-style: none; }
.pslider__track::-webkit-scrollbar { display: none; }
.pslider__item { scroll-snap-align: start; min-width: 0; }
.pslider__item > .pcard { height: 100%; }
@media (max-width: 1023px) { .pslider__track { grid-auto-columns: calc((100% - 2 * var(--space-4)) / 3); } }
@media (max-width: 767px) { .pslider__track { grid-auto-columns: calc((100% - var(--space-3)) / 2); gap: var(--space-3); } }
@media (max-width: 479px) { .pslider__track { grid-auto-columns: 78%; } }
.pslider__nav { display: flex; gap: var(--space-2); }
.pslider__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.pslider__btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pslider__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- Books library: section links (2026-10-23) ---- */
.library__sections { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.library__section { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-2); font-size: var(--text-sm); font-weight: var(--weight-semibold); transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.library__section:hover { border-color: var(--color-accent); color: var(--color-text); }
.library__section.is-current { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-accent); }

/* ---- wp-nav.css ---- */
/* ==========================================================================
   Primary navigation — hover/click/keyboard dropdowns, flyouts, "More" overflow,
   mega panel, mobile accordion. Appended after the prototype CSS by the build.
   ========================================================================== */

.site-header__inner { position: relative; }
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav__list { flex-wrap: nowrap; gap: 2px; }
.site-nav__list:not(.is-ready) { overflow: hidden; }      /* no overlap before the overflow script runs */
.site-nav__item { position: relative; }
.site-nav__item--mega { position: static; }
.site-nav__row { display: flex; align-items: center; }

/* Top-level link + separate disclosure button (keyboard / touch); the row behaves as one pill. */
.site-nav__row .site-nav__link { padding-inline: 12px 8px; }
.site-nav__row .site-nav__link:only-child { padding-inline: 12px; }
.site-nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 40px; margin-inline-start: -6px; padding-inline-end: 6px;
  border-radius: var(--radius-md); color: var(--color-text-3);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.site-nav__item.is-open > .site-nav__row .site-nav__link,
.site-nav__item.is-open > .site-nav__row .site-nav__toggle { color: var(--color-text); }
.site-nav__item.is-open > .site-nav__row .site-nav__link { background: var(--color-surface-2); }
.site-nav__toggle[aria-expanded='true'] .site-nav__chevron { transform: rotate(180deg); }
.site-nav__toggle:hover { color: var(--color-text); }
.site-nav__link.is-active { color: var(--color-accent); }
.site-nav__link.is-active::after { inset-inline: 12px; }
.site-nav__link--more { gap: 6px; }

/* ---- Dropdown / flyout panels ---- */
.nav-panel {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: var(--z-dropdown);
  min-width: 240px; padding: 6px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.45), 0 1px 0 rgb(255 255 255 / 0.04) inset;
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nav-panel.is-open { opacity: 1; transform: none; }
.nav-panel::before { content: ''; position: absolute; inset-inline: 0; top: -10px; height: 10px; } /* hover bridge */
.nav-panel--list { width: max-content; max-width: min(360px, calc(100vw - 2 * var(--container-pad))); }
.nav-list { display: grid; gap: 1px; }
.nav-list__row { display: flex; align-items: center; }
.nav-list__link {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
  padding: 9px 12px; border-radius: var(--radius-md);
  font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.35;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-list__link .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-list__icon { color: var(--color-accent); flex: none; }
.nav-list__arrow { color: var(--color-text-3); flex: none; margin-inline-start: auto; }
:root[dir='rtl'] .nav-list__arrow.icon--dir { transform: scaleX(-1); }
.nav-list__link:hover, .nav-list__item.is-open > .nav-list__row > .nav-list__link { color: var(--color-text); background: var(--color-surface-2); }
.nav-list__link.is-active { color: var(--color-accent); }
.nav-list__link.is-active::before { content: ''; width: 3px; height: 16px; border-radius: 2px; background: var(--color-accent); margin-inline-start: -6px; }
.nav-list__item--all > .nav-list__row > .nav-list__link, .nav-list__item--all > .nav-list__link { font-weight: var(--weight-medium); color: var(--color-text); }
.nav-list__item--all + .nav-list__item { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--color-border-soft); }
.nav-list__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 34px; flex: none;
  border-radius: var(--radius-md); color: var(--color-text-3);
}
.nav-list__toggle:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav-list__toggle .site-nav__chevron { transform: rotate(-90deg); }
:root[dir='rtl'] .nav-list__toggle .site-nav__chevron { transform: rotate(90deg); }
.nav-list__toggle[aria-expanded='true'] .site-nav__chevron { transform: rotate(180deg); }
.nav-list__item--parent { position: relative; }

/* Level-3 flyout beside its parent row */
.nav-panel--flyout { top: -7px; inset-inline-start: calc(100% + 4px); min-width: 220px; }
.nav-panel--flyout::before { inset-inline: auto; inset-inline-start: -10px; top: 0; width: 10px; height: 100%; }
.nav-panel--flyout .nav-list__item--all { display: none; }
/* Flyouts fall back to an inline group when there is no room on the side (narrow desktop) or inside "More". */
.nav-panel--flyout.is-inline, .is-overflowed .nav-panel--flyout, .is-overflowed .nav-panel--list, .is-overflowed .nav-panel--mega {
  position: static; min-width: 0; width: auto; max-width: none; margin: 2px 0 6px; padding: 2px 0 2px 10px;
  border: 0; border-inline-start: 2px solid var(--color-border-soft); border-radius: 0; box-shadow: none; background: transparent; transform: none;
}
:root[dir='rtl'] .nav-panel--flyout.is-inline, :root[dir='rtl'] .is-overflowed .nav-panel { padding-inline: 10px 0; }
.nav-panel--flyout.is-inline::before, .is-overflowed .nav-panel::before { display: none; }

/* ---- "More" overflow: items moved inside behave as list rows ---- */
.site-nav__item--more > .nav-panel--list { inset-inline-start: auto; inset-inline-end: 0; }
.nav-list > .site-nav__item { position: relative; }
.nav-list > .site-nav__item > .site-nav__row { display: flex; align-items: center; }
.nav-list > .site-nav__item > .site-nav__row > .site-nav__link {
  flex: 1; height: auto; padding: 9px 12px; font-size: var(--text-sm); color: var(--color-text-2);
}
.nav-list > .site-nav__item > .site-nav__row > .site-nav__link.is-active::after { display: none; }
.nav-list > .site-nav__item > .site-nav__row > .site-nav__link:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav-list > .site-nav__item > .site-nav__row > .site-nav__toggle { width: 32px; height: 34px; margin: 0; padding: 0; }
.is-overflowed .mega__grid { grid-template-columns: 1fr; gap: var(--space-3); }
.is-overflowed .mega__foot { margin-top: var(--space-3); padding-top: var(--space-3); }

/* ---- Mega panel refinements ---- */
.nav-panel--mega { top: calc(100% + 2px); inset-inline: var(--container-pad); width: auto; min-width: 0; max-width: none; padding: var(--space-5); }
.nav-panel--mega .mega__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--space-5); }
@media (max-width: 1199px) { .nav-panel--mega .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nav-panel--mega .mega__col { padding-inline-end: var(--space-4); }
.nav-panel--mega .mega__col:nth-child(4n) { border-inline-end: 0; }
@media (max-width: 1199px) { .nav-panel--mega .mega__col:nth-child(4n) { border-inline-end: 1px solid var(--color-border-soft); } .nav-panel--mega .mega__col:nth-child(3n) { border-inline-end: 0; } }
.nav-panel--mega .mega__grid > .mega__col:nth-child(n+5) { padding-top: var(--space-4); border-top: 1px solid var(--color-border-soft); }
@media (max-width: 1199px) { .nav-panel--mega .mega__grid > .mega__col:nth-child(n+4) { padding-top: var(--space-4); border-top: 1px solid var(--color-border-soft); } .nav-panel--mega .mega__grid > .mega__col:nth-child(4) { padding-top: var(--space-4); } }
.mega__col { padding-inline-end: var(--space-4); border-inline-end: 1px solid var(--color-border-soft); }
.mega__col:last-child { border-inline-end: 0; }
.mega__title { padding: 4px 6px; margin-inline: -6px; transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.mega__title:hover { background: var(--color-surface-2); }
.mega__title.is-active { color: var(--color-accent); }
.mega__sub { padding: 5px 6px; margin-inline: -6px; }
.mega__sub:hover { background: var(--color-surface-2); color: var(--color-text); }
.mega__sub.is-active { color: var(--color-accent); }

/* Draft dot inside menus */
.nav-draft { display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-radius: 50%; background: var(--bl-warn); vertical-align: middle; }

/* Focus */
.site-nav__link:focus-visible, .site-nav__toggle:focus-visible, .nav-list__link:focus-visible, .nav-list__toggle:focus-visible, .mega__title:focus-visible, .mega__sub:focus-visible, .mega__all:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-panel, .mega, .site-nav__toggle, .site-nav__chevron, .mnav__chev, .mnav__panel, .mnav__backdrop { transition: none !important; }
}

/* ==========================================================================
   Mobile accordion
   ========================================================================== */
.mnav__nav { padding-inline: var(--space-2); padding-bottom: var(--space-3); }
.mnav__item { list-style: none; }
.mnav__list > .mnav__item + .mnav__item, .mnav__list > li + li { border-top: 1px solid var(--color-border-soft); }
.mnav__toggle { cursor: pointer; }
.mnav__link, .mnav__sub { min-height: 48px; }   /* comfortable touch targets */
.mnav__link .mnav__label, .mnav__sub .mnav__label { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mnav__link.is-current, .mnav__sub.is-current { color: var(--color-accent); }
.mnav__item.is-current > .mnav__toggle { color: var(--color-text); }
.mnav__item.is-current > .mnav__toggle .mnav__chev { color: var(--color-accent); }
.mnav__link.is-current::before, .mnav__sub.is-current::before { content: ''; width: 3px; height: 18px; border-radius: 2px; background: var(--color-accent); margin-inline-end: 8px; flex: none; }
.mnav__cats { padding: 0 0 var(--space-2); }
.mnav__item[data-depth='0'] > .mnav__cats { padding-inline-start: var(--space-2); }
.mnav__item[data-depth='1'] > .mnav__cats { padding-inline-start: var(--space-5); border-inline-start: 2px solid var(--color-border-soft); margin-inline-start: var(--space-3); margin-bottom: var(--space-2); }
.mnav__sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px var(--space-2); font-size: var(--text-sm); color: var(--color-text-2); border-radius: var(--radius-md); text-align: start; }
.mnav__sub:hover, .mnav__sub:active { color: var(--color-text); background: var(--color-surface-2); }
.mnav__sub--all { font-weight: var(--weight-medium); color: var(--color-text); }
.mnav__sub--all .icon { color: var(--color-text-3); }
:root[dir='rtl'] .mnav__sub--all .icon--dir { transform: scaleX(-1); }
.mnav__icon { color: var(--color-accent); flex: none; }
.mnav__panel { width: min(400px, 90vw); }
@media (max-width: 400px) { .mnav__panel { width: 100vw; border-inline-end: 0; } }

/* Footer contact rows: small label above each e-mail */
.site-footer__contact-row { display: flex; flex-direction: column; gap: 2px; }
.site-footer__contact-row + .site-footer__contact-row { margin-top: 8px; }
.site-footer__contact-label { font-size: var(--text-xs); color: var(--color-text-3); }
.site-footer__contact-row a { color: var(--color-text-2); }
.site-footer__contact-row a:hover { color: var(--color-accent); }

/* ---- Mega panel: a group with sub-sections is not a link; its sub-sections open on hover/focus (2026-10-23) ---- */
.mega__title--group { display: flex; align-items: center; gap: var(--space-2); width: calc(100% + 12px); border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: default; border-radius: var(--radius-sm); }
.mega__title--group .mega__chev { margin-inline-start: auto; transition: transform var(--dur-fast) var(--ease-out); opacity: .7; }
@media (hover: hover) and (min-width: 1024px) {
  .mega__col--group .mega__subs { display: none; }
  .mega__col--group:hover .mega__subs, .mega__col--group:focus-within .mega__subs { display: block; animation: blMegaIn var(--dur-fast) var(--ease-out); }
  .mega__col--group:hover .mega__chev, .mega__col--group:focus-within .mega__chev { transform: rotate(180deg); opacity: 1; }
  .mega__col--group:hover .mega__title--group { background: var(--color-surface-2); color: var(--color-accent); }
}
@keyframes blMegaIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mega__col--group .mega__subs { animation: none !important; } }

/* ---- wp-extras.css ---- */
/* ==========================================================================
   Header utility strip (top contact + accent switch), chip menus, 3D hero, card tilt.
   Appended after wp-nav.css by the build.
   ========================================================================== */

/* ---- Top utility strip ---- */
.topbar { background: var(--color-surface); border-bottom: 1px solid var(--color-border-soft); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 38px; flex-wrap: wrap; }
.topbar__contact { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; min-width: 0; }
.topbar__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--color-text-2); }
.topbar__link .icon { color: var(--color-accent); flex: none; }
.topbar__link:hover { color: var(--color-accent); }
.topbar__val { direction: ltr; unicode-bidi: embed; }
.topbar__tools { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.topbar__btn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-2); transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.topbar__btn:hover { color: var(--color-text); border-color: var(--color-accent); }
.topbar__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.topbar__swatch { width: 13px; height: 13px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 28%, transparent); transition: background-color var(--dur-fast) var(--ease-out); flex: none; }
@media (max-width: 600px) {
  .topbar__inner { min-height: 34px; }
  .topbar__val { display: none; }          /* keep the icon, drop the long address on phones */
  .topbar__btn-text { display: none; }
  .topbar__contact { gap: var(--space-3); }
}

/* ---- Category chips: subcategory dropdown that opens on hover (desktop) ---- */
.chip-menu { display: none; }
.chip__chev { color: var(--color-text-3); transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .catalog__filters { overflow: visible; margin-inline: 0; padding-inline: 0; position: relative; z-index: 30; }
  .chips { width: auto; flex-wrap: wrap; }
  .chip-item { position: relative; }
  .chip-item--has-menu > .chip-menu {
    position: absolute; top: 100%; inset-inline-start: 0; z-index: var(--z-dropdown, 40);
    min-width: 220px; margin: 0; padding: 12px 6px 6px; list-style: none;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.45);
  }
  /* 8px invisible bridge between chip and menu (top padding), so the pointer never falls into a gap */
  .chip-item--has-menu:hover > .chip-menu,
  .chip-item--has-menu:focus-within > .chip-menu { display: grid; gap: 1px; }
  .chip-item--has-menu:hover > .chip, .chip-item--has-menu:focus-within > .chip { color: var(--color-text); border-color: var(--color-accent); }
  .chip-item--has-menu:hover > .chip .chip__chev, .chip-item--has-menu:focus-within > .chip .chip__chev { transform: rotate(180deg); color: var(--color-accent); }
  .chip[aria-current='page'] .chip__chev { color: var(--color-accent-contrast); }
  .chip-menu__link { display: block; padding: 8px 12px; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-2); white-space: nowrap; }
  .chip-menu__link:hover, .chip-menu__link:focus-visible { color: var(--color-text); background: var(--color-surface-2); outline: none; }
  .chip-menu__link.is-active { color: var(--color-accent); }
  .chip-menu__link--all { font-weight: var(--weight-medium); color: var(--color-text); border-bottom: 1px solid var(--color-border-soft); border-radius: var(--radius-md) var(--radius-md) 0 0; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .chip__chev { transition: none; } }

/* ---- 3D molecule canvases ---- */
.hero__visual { position: relative; }
.mol3d { display: block; pointer-events: none; }
.mol3d--hero { position: absolute; inset: 8%; width: 84%; height: 84%; }
.hero__visual.has-3d .hv-links, .hero__visual.has-3d .hv-node, .hero__visual.has-3d .hv-core-dot { opacity: 0; }
/* ---- 3D tilt on cards ---- */
.tilt { transform-style: preserve-3d; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); will-change: transform; position: relative; }
.tilt:hover { box-shadow: 0 22px 44px rgb(0 0 0 / 0.42); }
.tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(var(--color-accent-rgb) / 0.14), transparent 55%);
  transition: opacity 220ms var(--ease-out);
}
.tilt:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tilt { transition: none; } }


/* ==========================================================================
   Catalog on phones/tablets: vertical category list + collapsible filters
   ========================================================================== */
.catnav-m, .filters-toggle { display: none; }
@media (max-width: 1023px) {
  .catalog__filters, .catalog__subs { display: none; }
  .catnav-m { display: block; margin-top: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); overflow: hidden; }
  .catnav-m__summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 14px 16px; min-height: 56px; cursor: pointer; list-style: none; }
  .catnav-m__summary::-webkit-details-marker, .catnav-m__group > summary::-webkit-details-marker { display: none; }
  .catnav-m__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .catnav-m__label { font-size: var(--text-xs); color: var(--color-text-3); }
  .catnav-m__current { font-weight: var(--weight-semibold); color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .catnav-m__chev { color: var(--color-text-3); flex: none; transition: transform var(--dur-fast) var(--ease-out); }
  .catnav-m[open] > .catnav-m__summary { border-bottom: 1px solid var(--color-border-soft); }
  .catnav-m[open] > .catnav-m__summary .catnav-m__chev, .catnav-m__group[open] > summary .catnav-m__chev { transform: rotate(180deg); color: var(--color-accent); }
  .catnav-m__list { margin: 0; padding: 6px; list-style: none; display: grid; gap: 2px; }
  .catnav-m__link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border-radius: var(--radius-md); color: var(--color-text-2); font-size: var(--text-base); cursor: pointer; list-style: none; }
  .catnav-m__link > span { flex: 1; min-width: 0; }
  .catnav-m__link .icon:first-child { color: var(--color-accent); flex: none; }
  .catnav-m__link:hover, .catnav-m__link:active { background: var(--color-surface-2); color: var(--color-text); }
  .catnav-m__link.is-current { color: var(--color-accent); background: var(--color-accent-soft); }
  .catnav-m__subs { margin: 2px 0 6px; padding: 0 0 0 0; padding-inline-start: 42px; list-style: none; display: grid; gap: 1px; border-inline-start: 2px solid var(--color-border-soft); margin-inline-start: 22px; }
  .catnav-m__sub { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-2); }
  .catnav-m__sub:hover, .catnav-m__sub:active { background: var(--color-surface-2); color: var(--color-text); }
  .catnav-m__sub--all { font-weight: var(--weight-medium); color: var(--color-text); }
  .catnav-m__sub.is-current { color: var(--color-accent); }

  .filters-toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; margin-top: var(--space-3); padding: 12px 16px;
    border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface);
    color: var(--color-text); font-weight: var(--weight-medium); text-align: start;
  }
  .filters-toggle > span:first-of-type { flex: 1; }
  .filters-toggle .icon:first-child { color: var(--color-accent); }
  .filters-toggle__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-contrast); font-size: 12px; font-weight: var(--weight-bold); }
  .filters-toggle__chev { color: var(--color-text-3); transition: transform var(--dur-fast) var(--ease-out); }
  .filters-toggle[aria-expanded='true'] .filters-toggle__chev { transform: rotate(180deg); color: var(--color-accent); }
  .filters:not(.is-open) { display: none; }
  .filters.is-open { margin-top: var(--space-2); }
}
@media (max-width: 520px) {
  .filters.is-open { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Login / registration card
   ========================================================================== */
.bl-auth { width: 100%; max-width: 460px; margin: var(--space-4) auto var(--space-10, 4rem); padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl, 18px); box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); }
.page-single--store:has(.bl-auth) .catalog__head { justify-content: center; text-align: center; }
.page-single--store:has(.bl-auth) .crumbs { justify-content: center; display: flex; }
.bl-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: var(--space-5); background: var(--color-bg); border: 1px solid var(--color-border-soft); border-radius: var(--radius-pill); }
.bl-auth__tab { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: var(--radius-pill); font-weight: var(--weight-medium); color: var(--color-text-2); transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.bl-auth__tab:hover { color: var(--color-text); }
.bl-auth__tab[aria-selected='true'] { background: var(--color-accent); color: var(--color-accent-contrast); }
.bl-auth__tab:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.bl-auth__title { font-size: var(--text-lg); margin: 0 0 4px; }
.bl-auth__lead { margin: 0 0 var(--space-5); color: var(--color-text-2); font-size: var(--text-sm); }
.bl-auth__form { display: grid; gap: var(--space-4); }
.bl-auth .bl-field { display: grid; gap: 6px; margin: 0; }
.bl-auth .bl-field label { font-size: var(--text-sm); color: var(--color-text-2); }
.bl-auth .bl-field input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-size: 16px; }
.bl-auth .bl-field input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.bl-auth__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.bl-check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-2); cursor: pointer; }
.bl-check input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.bl-auth__link { font-size: var(--text-sm); color: var(--color-accent); }
.bl-auth__link:hover { text-decoration: underline; }
.bl-auth__note, .bl-auth__privacy, .bl-auth__privacy p { margin: 0; font-size: var(--text-xs); line-height: 1.7; color: var(--color-text-3); }
.bl-auth__privacy a { color: var(--color-accent); }
.bl-auth__switch { display: grid; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border-soft); text-align: center; font-size: var(--text-sm); color: var(--color-text-3); }
.bl-auth .btn--block { width: 100%; justify-content: center; }
.bl-auth .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-auth .required { color: var(--color-accent); text-decoration: none; border: 0; }
@media (max-width: 520px) {
  .bl-auth { padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); box-shadow: none; }
}

/* Logged-out account page: the account grid (sidebar + content) is for signed-in users only. */
body.woocommerce-account:not(.logged-in) .entry-content { max-width: none; }
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce { display: block; }

/* ==========================================================================
   Company step on category pages
   ========================================================================== */
.brand-step { margin-top: var(--space-6); }
.brand-step__head { margin-bottom: var(--space-5); }
.brand-step__title { font-size: var(--text-xl); margin: 4px 0 6px; }
.brand-step__sub { color: var(--color-text-2); margin: 0; max-width: 60ch; }
.brand-step__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.brand-card {
  position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: 120px; padding: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl, 18px);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.brand-card:hover, .brand-card:focus-visible { border-color: var(--color-accent); box-shadow: 0 18px 40px rgb(0 0 0 / 0.35); outline: none; }
.brand-card__mark { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--color-bg); border: 1px solid var(--color-border-soft); overflow: hidden; }
.brand-card__logo { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.brand-card__mono { font-family: var(--font-en); font-weight: var(--weight-bold); font-size: 1.35rem; letter-spacing: 0.04em; color: var(--color-accent); }
.brand-card__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.brand-card__name { font-family: var(--font-en); font-weight: var(--weight-semibold); font-size: var(--text-md); color: var(--color-text); text-align: start; }
.brand-card__meta { font-size: var(--text-sm); color: var(--color-text-3); }
.brand-card .badge { position: absolute; top: 10px; inset-inline-end: 12px; }
.brand-card__arrow { color: var(--color-text-3); flex: none; transition: color var(--dur-fast) var(--ease-out); }
.brand-card:hover .brand-card__arrow { color: var(--color-accent); }
:root[dir='rtl'] .brand-card__arrow.icon--dir { transform: scaleX(-1); }
.brand-step__all { margin-top: var(--space-4); font-size: var(--text-sm); }
.brand-step__all a { color: var(--color-text-2); text-decoration: underline; text-underline-offset: 3px; }
.brand-step__all a:hover { color: var(--color-accent); }

.brand-bar { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0 var(--space-4); padding: 10px 14px; background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
.brand-bar__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border-soft); overflow: hidden; flex: none; }
.brand-bar__mark .brand-card__mono { font-size: 0.95rem; }
.brand-bar__mark .brand-card__logo { padding: 4px; }
.brand-bar__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.brand-bar__label { font-size: var(--text-xs); color: var(--color-text-3); }
.brand-bar__name { font-family: var(--font-en); font-weight: var(--weight-semibold); color: var(--color-text); text-align: start; }
@media (max-width: 520px) { .brand-card { min-height: 96px; padding: var(--space-4); } .brand-card__mark { width: 56px; height: 56px; } }

/* ==========================================================================
   Homepage (client UX review 2026-10-22): one hero with search, categories,
   companies, digital resources, facts strip
   ========================================================================== */
.hero--home .hero__content { max-width: 640px; }
.hero--home .hero__title { max-width: 16ch; }
.hero__search { display: flex; align-items: center; gap: 8px; margin-top: var(--space-2); padding: 6px 6px 6px 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); }
.hero__search:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.hero__search-icon { color: var(--color-text-3); flex: none; }
.hero__search-input { flex: 1; min-width: 0; min-height: 40px; background: transparent; border: 0; color: var(--color-text); font-size: 16px; outline: none; }
.hero__search-input::placeholder { color: var(--color-text-3); }
.hero__search-btn { flex: none; min-height: 40px; padding-inline: 18px; }
@media (max-width: 520px) {
  .hero__search { flex-wrap: wrap; padding: 8px; border-radius: var(--radius-lg); }
  .hero__search-icon { display: none; }
  .hero__search-input { flex: 1 1 100%; padding-inline: 6px; }
  .hero__search-btn { width: 100%; justify-content: center; }
}
.section--tight { padding-block: calc(var(--section-gap) * 0.6); }
.cat-grid--home .cat-card__blurb { color: var(--color-text-3); }

.company-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.company-chip { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px; background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); transition: border-color var(--dur-fast) var(--ease-out); }
.company-chip:hover, .company-chip:focus-visible { border-color: var(--color-accent); outline: none; }
.company-chip__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border-soft); overflow: hidden; color: var(--color-accent); }
.company-chip__mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.company-chip__mark .brand-card__mono { font-size: 0.95rem; }
.company-chip__name { flex: 1; min-width: 0; font-family: var(--font-en); font-weight: var(--weight-semibold); color: var(--color-text); text-align: start; }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.resource-card { position: relative; display: grid; align-content: start; gap: 6px; min-height: 150px; padding: var(--space-5); padding-inline-end: calc(var(--space-5) + 28px); background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-xl, 18px); transition: border-color var(--dur-fast) var(--ease-out); }
.resource-card:hover, .resource-card:focus-visible { border-color: var(--color-accent); outline: none; }
.resource-card__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent); }
.resource-card__name { font-weight: var(--weight-semibold); font-size: var(--text-md); color: var(--color-text); }
.resource-card__text { font-size: var(--text-sm); color: var(--color-text-2); max-width: 42ch; }
.resource-card__arrow { position: absolute; top: var(--space-5); inset-inline-end: var(--space-5); color: var(--color-text-3); transition: color var(--dur-fast) var(--ease-out); }
.resource-card:hover .resource-card__arrow { color: var(--color-accent); }
:root[dir='rtl'] .resource-card__arrow.icon--dir { transform: scaleX(-1); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-5) var(--space-4); margin: 0; padding: var(--space-6) 0 0; border-top: 1px solid var(--color-border-soft); list-style: none; }
.fact { display: grid; gap: 4px; align-content: start; }
.fact__icon { color: var(--color-accent); margin-bottom: 4px; }
.fact__title { margin: 0; font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--color-text); }
.fact__text { margin: 0; font-size: var(--text-sm); color: var(--color-text-2); }
.fact__text a { color: var(--color-accent); }
.home .info-note { margin-top: var(--space-6); }

/* ==========================================================================
   Books & References library
   ========================================================================== */
.library { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.library__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.library__search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text-3); }
.library__search:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.library__search input { flex: 1; min-width: 0; min-height: 46px; background: transparent; border: 0; color: var(--color-text); font-size: 16px; outline: none; }
.library__search input::placeholder { color: var(--color-text-3); }
.library__sort { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-3); }
.library__sort select { min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.library__go { min-height: 44px; }
.library__chips { display: grid; gap: var(--space-2); }
.library__chips .chips { width: auto; flex-wrap: wrap; }
.library__count { margin: 0; font-size: var(--text-sm); color: var(--color-text-3); }
.library__clear { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.catalog--library .catalog__subs { display: none; }

.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1280px) { .book-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.book-card { display: flex; flex-direction: column; height: 100%; background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.book-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.book-card__cover { position: relative; display: block; aspect-ratio: 2 / 3; background: var(--color-bg); overflow: hidden; }
.book-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-card__placeholder { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; padding: 16px; text-align: center; color: var(--color-accent); background: linear-gradient(160deg, var(--color-surface-2), var(--color-bg)); border-inline-start: 6px solid var(--color-accent-soft); }
.book-card__placeholder-title { font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-2); }
.book-card__body { display: grid; align-content: start; gap: 4px; flex: 1; padding: var(--space-3) var(--space-4) var(--space-4); }
.book-card__title { margin: 0; font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: 1.4; }
.book-card__title a { color: var(--color-text); }
.book-card__author { margin: 0; font-size: var(--text-sm); color: var(--color-text-2); }
.book-card__meta { margin: 0; font-size: var(--text-xs); color: var(--color-text-3); }
.book-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto 0 0; padding-top: var(--space-3); font-size: var(--text-sm); }
.book-card__pdf { padding: 1px 6px; border: 1px solid var(--color-border-soft); border-radius: 4px; font-size: var(--text-xs); color: var(--color-text-3); }
.library__empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-10, 4rem) var(--space-5); text-align: center; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius-xl, 18px); color: var(--color-text-2); }
.library__empty .icon { color: var(--color-accent); }
.library__empty-title { margin: 0; font-size: var(--text-lg); color: var(--color-text); }
.library__empty p { margin: 0; max-width: 48ch; }
.library-page__section { margin-top: var(--space-8); }
.library-page .resource-grid { margin-top: var(--space-5); }
.pinfo__sample { justify-content: center; margin-bottom: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .book-card { transition: none; } }

/* Library pages: the breadcrumb says where we are; no catalog chip row, count or phone category list. */
.catalog--library .catalog__filters, .catalog--library .catalog__count, .catalog--library .catnav-m { display: none; }
.book-card__cover--pdp { display: block; width: min(100%, 380px); margin-inline: auto; aspect-ratio: 2 / 3; border-radius: var(--radius-lg); overflow: hidden; }
.book-card__cover--pdp .book-card__placeholder .icon { width: 56px; height: 56px; }
.company-chip__text { display: grid; gap: 4px; flex: 1; min-width: 0; justify-items: start; }
.company-chip__text .company-chip__name { line-height: 1.25; }

/* ==========================================================================
   UX recovery (2026-10-22): catalog layout, sidebar, toolbar, drawer, empty
   states, product status, quieter draft markers
   ========================================================================== */
.catalog__title { font-size: var(--text-xl); }
.catalog__head { margin-top: var(--space-4); }
.catalog__sub { font-size: var(--text-base); }
.catalog__h2 { margin: 0 0 var(--space-4); font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--color-text); }
.catalog__section { margin-top: var(--space-8); }
.catalog__section .company-row { margin-top: 0; }
.cat-grid--compact .cat-card { min-height: 0; padding: var(--space-4) var(--space-5); }

.catalog__layout { margin-top: var(--space-5); }
.catalog__main { min-width: 0; display: grid; align-content: start; gap: var(--space-4); }
.catalog__main > * { margin-top: 0; margin-bottom: 0; }
.catalog__main .brand-step, .catalog__main .brand-bar { margin-top: 0; }
@media (min-width: 1024px) {
  .catalog__layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: var(--space-8); align-items: start; }
  .catalog__side { position: sticky; top: calc(var(--header-height) + var(--space-5)); display: grid; gap: var(--space-4); max-height: calc(100vh - var(--header-height) - 2 * var(--space-5)); overflow: auto; scrollbar-width: thin; }
  .catalog__main .pgrid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .sidecats { display: none; }
  .catalog__side { display: contents; }
}

/* Sidebar navigation */
.sidecats { display: grid; gap: 2px; padding: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
.sidecats__title { margin: 4px 8px 6px; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-3); }
.sidecats__title--gap { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-border-soft); }
.sidecats__list, .sidecats__subs { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.sidecats__subs { margin: 2px 0 6px; margin-inline-start: 18px; padding-inline-start: 10px; border-inline-start: 1px solid var(--color-border); }
.sidecats__link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-2); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.sidecats__link > span:first-of-type { flex: 1; min-width: 0; }
.sidecats__icon { color: var(--color-text-3); flex: none; }
.sidecats__link:hover, .sidecats__link:focus-visible { background: var(--color-surface-2); color: var(--color-text); outline: none; }
.sidecats__link.is-open { color: var(--color-text); font-weight: var(--weight-medium); }
.sidecats__link.is-current { background: var(--color-accent-soft); color: var(--color-accent); font-weight: var(--weight-medium); }
.sidecats__link.is-current .sidecats__icon { color: var(--color-accent); }
.sidecats__subs .sidecats__link { min-height: 36px; }

/* Subcategory tiles (a group's types) */
.subtiles__title { margin: 0 0 var(--space-3); font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.subtiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.subtile { position: relative; display: grid; gap: 4px; min-height: 84px; padding: var(--space-4) var(--space-5); padding-inline-end: 48px; background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); transition: border-color var(--dur-fast) var(--ease-out); }
.subtile:hover, .subtile:focus-visible { border-color: var(--color-accent); outline: none; }
.subtile__name { font-weight: var(--weight-semibold); color: var(--color-text); }
.subtile__meta { font-size: var(--text-sm); color: var(--color-text-3); }
.subtile__arrow { position: absolute; top: 50%; inset-inline-end: var(--space-4); transform: translateY(-50%); color: var(--color-text-3); }
:root[dir="rtl"] .subtile__arrow.icon--dir { transform: translateY(-50%) scaleX(-1); }
.subtile:hover .subtile__arrow { color: var(--color-accent); }

/* Results toolbar */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border-soft); }
.results-bar__count { margin: 0; font-size: var(--text-sm); color: var(--color-text-3); }
.results-bar__tools { display: flex; align-items: center; gap: var(--space-2); }
.results-bar__sort label { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--color-text-3); }
.results-bar__sort select { min-height: 40px; padding: 0 10px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); font-size: var(--text-sm); }
.results-bar__filter { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.results-bar__filter .icon { color: var(--color-accent); }
.results-bar__badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-accent); color: var(--color-accent-contrast); font-size: 12px; font-weight: var(--weight-bold); }
@media (min-width: 1024px) { .results-bar__filter { display: none; } }

/* Applied filters */
.applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.applied__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-md); background: var(--color-surface-2); border: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-text); }
.applied__chip:hover { border-color: var(--color-accent); }
.applied__clear { font-size: var(--text-sm); color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Filter panel: sidebar block (desktop) / bottom drawer (phones) */
.catalog__side .filters { display: grid; gap: 0; margin: 0; padding: 0; background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border-soft); }
.filters__title { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.filters__close { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--radius-md); color: var(--color-text-2); }
.filters__body { display: grid; gap: var(--space-3); padding: var(--space-4); }
.catalog__side .filters__field { display: grid; gap: 4px; }
.catalog__side .filters__field select { width: 100%; min-height: 44px; }
.filters__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); padding: var(--space-3) var(--space-4) var(--space-4); }
.filters__actions .btn { justify-content: center; }
.filters-backdrop { position: fixed; inset: 0; z-index: 900; background: rgb(0 0 0 / 0.6); }
@media (max-width: 1023px) {
  .catalog__side .filters { display: none; }
  .catalog__side .filters.is-open {
    display: flex; flex-direction: column; position: fixed; inset: auto 0 0 0; z-index: 901; max-height: 85vh;
    border-radius: var(--radius-xl, 18px) var(--radius-xl, 18px) 0 0; border-bottom: 0; box-shadow: 0 -20px 50px rgb(0 0 0 / 0.5);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .filters.is-open .filters__body { overflow: auto; flex: 1; }
  .filters__close { display: inline-grid; }
  .filters__actions { border-top: 1px solid var(--color-border-soft); }
  :root.has-drawer, :root.has-drawer body { overflow: hidden; }
}

/* Truthful empty state (also used by the library) */
.empty-state { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-10, 4rem) var(--space-5); text-align: center; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius-xl, 18px); color: var(--color-text-2); }
.empty-state > .icon { color: var(--color-accent); }
.empty-state__title { margin: 0; font-size: var(--text-lg); color: var(--color-text); }
.empty-state p { margin: 0; max-width: 52ch; }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }

/* Library toolbar + how-it-works */
.library__bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
@media (min-width: 768px) { .library__bar { grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(150px, 1fr)); align-items: end; } }
.library__search { background: var(--color-bg); }
.library__select { display: grid; gap: 4px; }
.library__select-label { font-size: var(--text-xs); color: var(--color-text-3); }
.library__select select { width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text); }
.library__go { min-height: 48px; justify-content: center; }
.howto { margin-top: var(--space-6); padding: var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
.howto__title { margin: 0 0 var(--space-4); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.howto__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.howto__steps li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-2); }
.howto__steps b { display: block; margin-bottom: 2px; color: var(--color-text); font-weight: var(--weight-semibold); }
.howto__num { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-family: var(--font-en); font-weight: var(--weight-semibold); font-size: 13px; }

/* Product page: truthful status instead of a disabled cart button; tabs span the page */
.pinfo__status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--color-bg); border: 1px solid var(--color-border-soft); }
.pinfo__status-dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--bl-warn, #f2c25b); }
.pinfo__status-text { display: grid; gap: 2px; font-size: var(--text-sm); color: var(--color-text-2); }
.pinfo__status-text strong { font-size: var(--text-base); color: var(--color-text); font-weight: var(--weight-semibold); }
.pinfo__ask { margin-top: var(--space-3); justify-content: center; }
.gallery__image > .pcard__cover--lg { width: 100%; height: 100%; aspect-ratio: auto; border-radius: var(--radius-lg); }
@media (min-width: 1024px) { .pdp__tabs { grid-column: 1 / -1; } }

/* Internal-draft marker: a small dot on cards (the full badge stays on page headers and product pages) */
.cat-card .badge--draft, .company-chip .badge--draft, .brand-card .badge--draft, .pcard__flags .badge--draft,
.book-card .badge--draft, .resource-card .badge--draft, .brand-grid .badge--draft {
  display: inline-block; width: 9px; height: 9px; min-width: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--bl-warn, #f2c25b); font-size: 0; line-height: 0; vertical-align: middle; overflow: hidden;
}
.pcard__flags .badge--draft { width: 10px; height: 10px; margin-top: 6px; }

/* Services page: horizontal service cards + eligibility / privacy facts */
.svc-list { display: grid; gap: var(--space-4); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.svc-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); align-items: start; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
.svc-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent); }
.svc-card__body { display: grid; gap: 6px; min-width: 0; }
.svc-card__title { margin: 0; font-size: var(--text-md); font-weight: var(--weight-semibold); line-height: 1.5; }
.svc-card__title a { color: var(--color-text); }
.svc-card__title a:hover { color: var(--color-accent); }
.svc-card__text { margin: 0; color: var(--color-text-2); font-size: var(--text-sm); line-height: 1.8; max-width: 75ch; }
.svc-card__meta { margin: 4px 0 0; font-size: var(--text-sm); }
.svc-card__status { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-3); }
.svc-card__status .pinfo__status-dot { margin-top: 0; }
.svc-card__cta { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 768px) {
  .svc-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .svc-card__cta { grid-column: auto; }
}
.svc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.svc-fact { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); }
.svc-fact > .icon { flex: none; margin-top: 4px; color: var(--color-accent); }
.svc-fact__title { margin: 0 0 4px; font-size: var(--text-base); font-weight: var(--weight-semibold); }
.svc-fact p { margin: 0; font-size: var(--text-sm); color: var(--color-text-2); line-height: 1.8; }
:root[dir="rtl"] .svc-card__cta .icon--dir { transform: scaleX(-1); }

/* UX recovery fixes: sidebar is not sticky (all blocks visible, filters on top); phones never show the
   sidebar navigation; the drawer fields span the full width; related products use a secondary heading. */
@media (min-width: 1024px) {
  .catalog__side { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 1023px) {
  .catalog__side .sidecats { display: none; }
  .catalog__side .filters.is-open { align-items: stretch; width: 100%; }
  .catalog__side .filters.is-open .filters__field { display: grid; gap: 4px; flex: none; width: 100%; }
  .catalog__side .filters.is-open .filters__field select { width: 100%; min-height: 48px; }
}
.pdp__related .section-head__title { font-size: var(--text-lg); }
.catalog--landing .catalog__head { padding-bottom: var(--space-2); }

/* The page entrance animation must not leave a transform behind: any transform on .page becomes the
   containing block for position: fixed children (the filter drawer and its backdrop). */
main .page { animation-fill-mode: backwards; }
.filters-backdrop { z-index: calc(var(--z-overlay) + 10); }
@media (max-width: 1023px) { .catalog__side .filters.is-open { z-index: calc(var(--z-overlay) + 11); } }
.filters__actions .filters__reset { align-self: stretch; text-decoration: none; color: var(--color-text); font-size: inherit; }

/* Book cards contain their stretched title link (otherwise it covers the whole page). */
.book-card { position: relative; }
.book-card .pcard__flags { z-index: 2; }

/* Brands page: its .brand-card is a centred tile, not the company-step row card (which shares the class). */
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.brand-grid .brand-card { display: grid; justify-items: center; align-content: start; gap: var(--space-2); min-height: 0; min-width: 0; padding: var(--space-5) var(--space-3); text-align: center; }
.brand-grid .brand-card__name { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.brand-grid .brand-card__meta { color: var(--color-text-3); }

/* Breadcrumbs wrap on narrow screens instead of running off the side. */
.crumbs { overflow: visible; }
.crumbs__list { flex-wrap: wrap; row-gap: 4px; }
.crumbs__current { overflow-wrap: anywhere; }

/* Comfortable targets for small text links (WCAG 2.2 target size). */
.section-head__link, .pinfo__cat { min-height: 32px; display: inline-flex; align-items: center; }
.pinfo__cat { flex-wrap: wrap; column-gap: 4px; }
.pinfo__meta dd a { display: inline-flex; align-items: center; min-height: 28px; }

/* Products without a gallery (books, services, guides): the single stage spans the whole gallery column. */
.gallery > .gallery__stage:only-child { grid-column: 1 / -1; width: 100%; }
.gallery__image > .book-card__cover--pdp { height: 100%; width: auto; max-width: 100%; margin-inline: auto; }

/* Coaching membership and private intake wizard. */
.coach-dashboard, .coach-wizard-wrap, .course-finder { max-width: 980px; margin: 0 auto; }
.coach-dashboard__head, .coach-wizard__head, .course-finder > header { margin-bottom: var(--space-6); padding: var(--space-6); background: linear-gradient(135deg, var(--color-surface), var(--color-bg)); border: 1px solid var(--color-border-soft); border-radius: var(--radius-xl, 18px); }
.coach-dashboard__head h2, .coach-wizard__head h2, .course-finder h2 { margin: 4px 0 8px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.coach-dashboard__head p, .coach-wizard__head p, .course-finder header p { margin: 0; color: var(--color-text-2); line-height: 1.8; }
.coach-notice { margin-bottom: var(--space-4); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.coach-notice--success { border-color: color-mix(in srgb, var(--color-accent) 50%, var(--color-border)); background: var(--color-accent-soft); }
.coach-notice h2 { margin: 0 0 4px; font-size: var(--text-md); }
.coach-notice p { margin: 0; color: var(--color-text-2); }
.coach-memberships { display: grid; gap: var(--space-4); }
.coach-card { padding: var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: var(--color-surface); }
.coach-card__top { display: flex; justify-content: space-between; gap: var(--space-3); align-items: start; }
.coach-card__top h3 { margin: 0; font-size: var(--text-md); }
.coach-card__top p, .coach-card__hint { margin: 4px 0 0; color: var(--color-text-2); font-size: var(--text-sm); }
.bl-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text-2); white-space: nowrap; font-size: var(--text-xs); }
.bl-badge--active, .bl-badge--renewed { border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border)); color: var(--color-accent); }
.bl-badge--expiring_soon { border-color: var(--bl-warn, #f2c25b); color: var(--bl-warn, #f2c25b); }
.bl-badge--expired, .bl-badge--cancelled, .bl-badge--refunded { color: var(--color-text-3); }
.coach-card__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; }
.coach-card__facts div { min-width: 0; padding: var(--space-3); background: var(--color-bg); border-radius: var(--radius-md); }
.coach-card__facts dt { font-size: var(--text-xs); color: var(--color-text-3); }
.coach-card__facts dd { margin: 4px 0 0; color: var(--color-text); font-size: var(--text-sm); overflow-wrap: anywhere; }
.coach-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.coach-tips { margin-top: var(--space-8); }
.coach-tips ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.coach-tips article { height: 100%; padding: var(--space-4); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: var(--color-surface); }
.coach-tips h3 { margin: 0; font-size: var(--text-base); }.coach-tips p { margin: 8px 0; color: var(--color-text-2); line-height: 1.75; }.coach-tips time { color: var(--color-text-3); font-size: var(--text-xs); }
.coach-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 var(--space-5); padding: 0; list-style: none; counter-reset: none; }
.coach-progress li { display: grid; gap: 5px; justify-items: center; color: var(--color-text-3); text-align: center; font-size: var(--text-xs); }
.coach-progress span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); font-family: var(--font-en); }
.coach-progress .is-current, .coach-progress .is-done { color: var(--color-text); }.coach-progress .is-current span, .coach-progress .is-done span { background: var(--color-accent); border-color: var(--color-accent); color: #0a1202; }
.coach-wizard { padding: var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-xl, 18px); background: var(--color-surface); }
.coach-step { min-width: 0; margin: 0; padding: 0; border: 0; }.coach-step > legend { display: flex; gap: 9px; align-items: center; margin-bottom: var(--space-4); padding: 0; font-size: var(--text-md); font-weight: var(--weight-semibold); }.coach-step > legend > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-family: var(--font-en); font-size: var(--text-sm); }
.bl-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }.bl-field { display: grid; gap: 7px; margin-bottom: var(--space-4); color: var(--color-text); font-size: var(--text-sm); }.bl-field input, .bl-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-text); font: inherit; }.bl-field textarea { min-height: 92px; resize: vertical; }.bl-field input:focus, .bl-field textarea:focus { outline: 2px solid color-mix(in srgb, var(--color-accent) 65%, transparent); outline-offset: 1px; }
.coach-choice { border: 0; padding: 0; }.coach-choice legend { margin-bottom: 8px; }.bl-choice__options, .coach-checks { display: flex; flex-wrap: wrap; gap: 8px; }.bl-chip, .coach-checks label { display: inline-flex; gap: 7px; align-items: center; min-height: 40px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; }.bl-chip:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-soft); }.bl-upload { display: grid; gap: 7px; padding: var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; }.bl-upload input { padding: 0; border: 0; min-height: 0; }.bl-upload__hint, .bl-upload__name, .bl-muted { color: var(--color-text-3); font-size: var(--text-xs); }.bl-consent { display: block; margin-top: var(--space-4); color: var(--color-text-2); font-size: var(--text-sm); line-height: 1.7; }.bl-consent input { vertical-align: top; margin-top: 4px; }.coach-wizard__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
/* `hidden` must win over .btn display:flex, or Back/Next/Submit show on the wrong wizard step. */
.coach-wizard [hidden] { display: none !important; }
/* Digital-only homepage: text hero without the molecule visual. */
.hero--digital .hero__inner { grid-template-columns: minmax(0, 1fr); }
.hero--digital .hero__content { max-width: 46rem; }
#books .info-note { margin-bottom: var(--space-4); }
#coaching .info-note { margin-top: var(--space-4); }
/* Allergy chips: the generic form-input sizing must not stretch the checkboxes. */
.coach-checks label { white-space: nowrap; }
.coach-checks input[type="checkbox"] { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; }.coach-readonly { padding: var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: var(--color-surface); }.coach-readonly h2 { margin-top: 0; }

/* Course Finder: cards are deliberately content-only, never a protocol recommender. */
.course-finder > header { text-align: center; }.course-finder form { display: grid; gap: var(--space-4); padding: var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-xl, 18px); background: var(--color-surface); }.finder-step { margin: 0; padding: 0; border: 0; }.finder-step > legend { margin-bottom: 10px; font-size: var(--text-md); font-weight: var(--weight-semibold); }.finder-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 10px; }.finder-option { display: block; min-height: 56px; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); cursor: pointer; transition: border-color .15s ease, background .15s ease; }.finder-option input { position: absolute; opacity: 0; pointer-events: none; }.finder-option span { display: grid; place-items: center; min-height: 48px; padding: 7px; border-radius: calc(var(--radius-md) - 3px); text-align: center; }.finder-option:hover, .finder-option.is-selected, .finder-option:has(input:focus-visible) { border-color: var(--color-accent); }.finder-option.is-selected span { background: var(--color-accent-soft); color: var(--color-text); }.finder-actions { margin: 0; }.finder-result { margin-top: var(--space-5); padding: var(--space-5); border: 1px solid var(--color-border-soft); border-radius: var(--radius-xl, 18px); background: var(--color-surface); }.finder-result h3 { margin-top: 0; }.finder-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-3); }.finder-products article { padding: var(--space-4); border: 1px solid var(--color-border-soft); border-radius: var(--radius-lg); background: var(--color-bg); }.finder-products h4 { margin: 0; }.finder-products p { min-height: 3.6em; color: var(--color-text-2); font-size: var(--text-sm); line-height: 1.8; }
@media (max-width: 600px) { .coach-dashboard__head, .coach-wizard__head, .course-finder > header, .coach-wizard, .course-finder form, .finder-result { padding: var(--space-4); }.bl-grid-2 { grid-template-columns: 1fr; }.coach-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3); }.coach-card__top { display: grid; }.coach-card__actions .btn { width: 100%; justify-content: center; } }
.course-finder [hidden] { display: none !important; }
.course-finder [data-screen] fieldset + fieldset { margin-block-start: 1.25rem; }
.course-finder [data-progress] { color: var(--color-text-2); font-variant-numeric: tabular-nums; }

/* ---- wp-v2.css ---- */
/* ==========================================================================
   BioLab storefront — 2026-11 light redesign ("colour chapters").
   Appended last by scripts/build-theme-assets.mjs, so these tokens and rules win.

   One typeface (Alexandria, Arabic + Latin, 100–900). One ground (white), one ink (near-black),
   one accent field (the brand lime) plus flat chapter fields: light grey, mid grey, orange, black.
   No gradients, no shadows at rest, no glass. Buttons are pills; panels share one 24px radius.
   ========================================================================== */

:root {
  color-scheme: light;

  /* 2026-11-07 palette (owner: "the colours are loud and messy, no yellow"). Graphite and warm white,
     with one quiet sage accent and a cool stone field. The slot names are historic (--lime is the
     accent field, --orange the stone field); what each slot means:
       --paper / --ink          page ground / text and primary buttons (they swap in dark mode)
       --night / --on-night     the dark sections (hero foot, "black" chapters, best ticket, charts)
       --signal                 accent text and lines on --night
       --lime                   accent field, always with --ink text on it
       --orange / --orange-2    stone field and its cells, always with --ink text
       --clay*                  warnings only (health notes, out-of-range numbers, BMI over) */
  --ink: #121417;
  --ink-2: #474c53;
  --paper: #fbfbf9;
  --grey-1: #f0f0ec;
  --grey-2: #d9d9d3;
  --lime: #d3e3d8;
  --lime-deep: #6f9d81;
  --signal: #a9d6b9;
  --orange: #dde3e8;
  --orange-2: #c8d1d9;
  --night: #15171b;
  --night-2: #21252b;
  --on-night: #f2f2ee;
  --on-night-2: #a3a9b0;
  --spine: #1f2226;
  --clay: #b5663d;
  --clay-2: #e3b9a0;
  --clay-ink: #8a3f18;
  --note-bg: #f6ede6;
  --bad-bg: #fbe9e9;
  --bad-ink: #8a1c1c;

  --color-bg: var(--paper);
  --color-surface: var(--grey-1);
  --color-surface-2: #e7e7e2;
  --color-surface-3: #dcdcd6;
  --color-text: var(--ink);
  --color-text-2: var(--ink-2);
  --color-text-3: #676d74;
  --color-border: #d8d8d2;
  --color-border-soft: #e8e8e3;

  --color-accent: var(--ink);
  --color-accent-deep: #2a2e34;
  --color-accent-contrast: var(--lime);
  --color-accent-rgb: 18 20 23;
  --color-accent-2: var(--clay);
  --color-accent-2-rgb: 181 102 61;
  --color-accent-soft: rgb(18 20 23 / 0.05);
  --color-accent-soft-2: rgb(18 20 23 / 0.09);
  --color-accent-ring: rgb(18 20 23 / 0.35);
  --color-accent-glow: transparent;
  --bl-danger: #b42318;
  --bl-warn: #8a5a00;

  --font-ar: 'Alexandria', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-en: 'Alexandria', 'Segoe UI', system-ui, sans-serif;
  --font-body: var(--font-ar);

  --fs-small: 0.875rem;
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-head: clamp(2.25rem, 1.1rem + 4.4vw, 5rem);
  --fs-display: clamp(3.1rem, 0.6rem + 9.6vw, 9.25rem);
  --lh-display: 1.12;
  --track-display: 0;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 24px;
  --radius: 24px;
  --shadow-sm: none;
  --shadow-md: 0 18px 40px -18px rgb(11 13 12 / 0.28); /* floating menus and dialogs only */
  --shadow-lg: 0 24px 60px -20px rgb(11 13 12 / 0.32);

  --container-max: 1360px;
  --container-pad: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --header-height: 72px;
  --section-pad: clamp(5rem, 3.5rem + 6vw, 10rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark mode: chosen with the header button (data-theme, remembered on the device), or the phone's own
   setting when there is no choice and no script. Same slots, night values. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #ecece8;
  --ink-2: #b8bcc2;
  --paper: #0f1114;
  --grey-1: #181b1f;
  --grey-2: #2b2f35;
  --lime: #22352a;
  --lime-deep: #6f9d81;
  --signal: #a9d6b9;
  --orange: #1b232b;
  --orange-2: #253039;
  --night: #1a1e23;
  --night-2: #242930;
  --on-night: #ecece8;
  --on-night-2: #9aa0a7;
  --spine: #08090a;
  --clay: #d48c64;
  --clay-2: #8d5a40;
  --clay-ink: #f0b595;
  --note-bg: #2a211c;
  --bad-bg: #3a1d1d;
  --bad-ink: #f5b5b5;
  --color-surface-2: #1f2227;
  --color-surface-3: #2a2e34;
  --color-text-3: #8f959c;
  --color-border: #2e3238;
  --color-border-soft: #23272c;
  --color-accent-deep: #d6d6d1;
  --color-accent-rgb: 236 236 232;
  --color-accent-soft: rgb(236 236 232 / 0.06);
  --color-accent-soft-2: rgb(236 236 232 / 0.1);
  --color-accent-ring: rgb(236 236 232 / 0.4);
  --shadow-md: 0 18px 40px -18px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #ecece8; --ink-2: #b8bcc2; --paper: #0f1114; --grey-1: #181b1f; --grey-2: #2b2f35;
    --lime: #22352a; --orange: #1b232b; --orange-2: #253039; --night: #1a1e23; --night-2: #242930;
    --on-night: #ecece8; --on-night-2: #9aa0a7; --spine: #08090a; --clay: #d48c64; --clay-2: #8d5a40;
    --clay-ink: #f0b595; --note-bg: #2a211c; --bad-bg: #3a1d1d; --bad-ink: #f5b5b5;
    --color-surface-2: #1f2227; --color-surface-3: #2a2e34; --color-text-3: #8f959c;
    --color-border: #2e3238; --color-border-soft: #23272c; --color-accent-deep: #d6d6d1;
    --color-accent-rgb: 236 236 232; --color-accent-soft: rgb(236 236 232 / 0.06);
    --color-accent-soft-2: rgb(236 236 232 / 0.1); --color-accent-ring: rgb(236 236 232 / 0.4);
  }
}
/* Header switch: the moon in light mode, the sun in dark mode. */
.theme-toggle .theme-toggle__sun { display: none; }
:root[data-theme='dark'] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme='dark'] .theme-toggle .theme-toggle__moon { display: none; }
/* Smooth switch, without animating the first paint. */
:root[data-theme] body { transition: background-color 240ms ease, color 240ms ease; }
/* Photos sit a touch quieter on the dark ground. */
:root[data-theme='dark'] :where(.chapter__photo, .why__photo, .grow__tile, .reach__img, .person__img) img,
:root[data-theme='dark'] :where(.reach__img, .person__img) { filter: brightness(0.92); }

/* English pages: Latin display settings (tracking and tight leading are wrong for Arabic joins). */
:root[lang^='en'] {
  --font-body: var(--font-en);
  --lh-display: 0.94;
  --track-display: -0.035em;
}

html { background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field--black :focus-visible, .chapter--black :focus-visible { outline-color: var(--signal); }

/* ---------- Buttons: one shape (pill), flat fills, press feedback ---------- */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: 0; font-size: var(--fs-small); min-height: 48px; border-width: 2px; }
.btn--lg { min-height: 58px; font-size: 1.0625rem; padding-inline: 2rem; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn--primary, .btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover:not(:disabled), .btn--ink:hover:not(:disabled) { background: var(--ink); color: var(--lime); box-shadow: none; transform: translateY(-2px); }
.btn--accent { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--accent:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); transform: translateY(-2px); }
.btn--secondary, .btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover:not(:disabled), .btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn { transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 260ms var(--ease-out); }

/* ---------- Header: a plain white bar ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  height: var(--header-height);
}
.site-header.is-scrolled { background: var(--paper); box-shadow: 0 1px 0 var(--color-border-soft); }
.site-header__inner { height: var(--header-height); gap: 1.25rem; }
/* KynexMove (2026-11-17): mark + lowercase "kynex" in ink and "move" in jade, one line, one size. */
.logo { color: var(--ink); gap: 8px; --brand-move: #0f8a5c; }
.logo__mark { width: 32px; height: 32px; color: var(--ink); }
.logo__text { flex-direction: row; align-items: baseline; font-family: 'Alexandria', sans-serif; }
.logo__name, .logo__sub { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; text-transform: none; margin: 0; }
.logo__name { color: var(--ink); }
.logo__sub { color: var(--brand-move); }
.logo--compact .logo__sub { display: inline; }
.foot__name .foot__move { color: var(--brand-move, #0f8a5c); }
:root[data-theme='dark'] .logo, :root[data-theme='dark'] .foot__name { --brand-move: #36d99a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .logo, :root:not([data-theme]) .foot__name { --brand-move: #36d99a; } }
.site-nav__link { color: var(--ink); font-weight: 500; font-size: 1rem; border-radius: 999px; }
.site-nav__link:hover, .site-nav__link[aria-expanded='true'] { background: var(--grey-1); color: var(--ink); }
.site-nav__link.is-active { background: var(--lime); color: var(--ink); }
.site-nav__link.is-active::after { display: none; }
.icon-btn { color: var(--ink); border-radius: 999px; }
.icon-btn:hover { background: var(--grey-1); color: var(--ink); }
.icon-btn__count { background: var(--lime); color: var(--ink); }
.lang-toggle { color: var(--ink); border-color: var(--color-border); border-radius: 999px; }
.lang-toggle:hover { border-color: var(--ink); }
.site-header__cta { min-height: 44px; padding-inline: 1.25rem; margin-inline-start: 0.25rem; }
@media (max-width: 720px) { .site-header__cta { display: none; } }
.mnav__panel { background: var(--paper); color: var(--ink); }
.mnav__backdrop { background: rgb(11 13 12 / 0.45); }
.nav-panel, .mega { background: var(--paper); border-color: var(--color-border-soft); box-shadow: var(--shadow-md); }

/* ---------- Shared type ---------- */
.h-section {
  font-size: var(--fs-head);
  font-weight: 800;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  margin: 0 0 0.35em;
  max-width: 16ch;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; margin: 0 0 1.5rem; color: inherit; }
.home2 h1, .home2 h2, .home2 h3 { font-family: var(--font-body); color: inherit; }

/* ---------- Fields: flat colour, floor to ceiling, no gaps between them ---------- */
.field { padding-block: var(--section-pad); }
.field--white { background: var(--paper); color: var(--ink); }
.field--light { background: var(--grey-1); color: var(--ink); }
.field--grey { background: var(--grey-2); color: var(--ink); }
.field--lime { background: var(--lime); color: var(--ink); }
.field--orange { background: var(--orange); color: var(--ink); }
.field--black { background: var(--night); color: var(--on-night); }
.page.home, main > .home2 { padding: 0; }
/* Images keep the crop their component sets (the width/height attributes only reserve space). */
:where(.home2, .finder, .chapter, .why, .grow, .reach) img { height: auto; max-width: 100%; }

/* ---------- Masked headline (signature move) ---------- */
.mask-line { display: block; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.mask-line__in { display: block; }
.js [data-mask] .mask-line__in { transform: translateY(110%); }
.js [data-mask].is-in .mask-line__in { transform: none; transition: transform 780ms var(--ease-move); }
.js [data-mask].is-in .mask-line:nth-child(2) .mask-line__in { transition-delay: 90ms; }

/* ---------- Hero: white over black, the seam cuts the second line ---------- */
.hero2 {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  min-height: max(620px, calc(100svh - var(--header-height)));
  overflow: hidden;
  isolation: isolate;
  --seam: 50%;
  --hero-fs: var(--fs-display);
}
.hero2__field { position: absolute; inset-inline: 0; }
.hero2__field--top { top: 0; height: var(--seam); background: var(--paper); }
.hero2__field--low { bottom: 0; top: var(--seam); background: var(--night); }
.hero2__layer {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-inline: var(--container-pad);
  padding-bottom: calc(var(--hero-fs) * var(--lh-display));
}
.hero2__layer--low { pointer-events: none; }
.hero2__layer--top { clip-path: inset(0 0 calc(100% - var(--seam)) 0); color: var(--ink); z-index: 2; }
.hero2__layer--low { clip-path: inset(var(--seam) 0 0 0); color: var(--signal); z-index: 1; }
.hero2__title {
  margin: 0;
  font-size: var(--hero-fs);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-align: center;
  white-space: nowrap;
}
.hero2__foot {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  color: var(--on-night);
}
.hero2__sub { margin: 0; font-size: var(--fs-lead); line-height: 1.45; max-width: 34ch; }
.hero2__sub strong { color: var(--signal); font-weight: 600; }
.js .hero2__foot { opacity: 0; transform: translateY(18px); }
.js .hero2.is-in .hero2__foot { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out) 450ms, transform 600ms var(--ease-out) 450ms; }
@media (max-width: 700px) {
  .hero2 { --seam: 46%; --hero-fs: clamp(2.6rem, 14.5vw, 4.4rem); min-height: max(560px, calc(100svh - var(--header-height))); }
  :root[lang^='en'] .hero2 { --hero-fs: 11.2vw; }
  .hero2__layer { padding-bottom: calc(var(--hero-fs) * var(--lh-display) + 8svh); }
  .hero2__sub { font-size: 1.0625rem; }
  .hero2__cta { width: 100%; }
}

/* ---------- Package finder (the live thing) ---------- */
.finder { background: var(--grey-1); padding-block: var(--section-pad); }
.finder__inner { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
@media (max-width: 900px) { .finder__inner { grid-template-columns: 1fr; } }
.finder__form { position: relative; min-height: 420px; }
.finder__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder__q { font-size: var(--fs-lead); font-weight: 700; margin-bottom: 1.25rem; padding: 0; }
.js .finder__step:not(.is-current), .js .finder__form.is-done .finder__step { display: none; }
.js .finder__step.is-current { animation: rise 520ms var(--ease-out) both; }
.finder__people { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.person { position: relative; display: block; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.person input, .opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.person__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); }
.person:hover .person__img { transform: scale(1.04); }
.person__name {
  position: absolute; inset-inline: 0.75rem; bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding-inline: 1.25rem; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 700; font-size: 1.125rem;
}
.person__name::after { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); -webkit-mask: none; }
.person:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.finder__opts { display: grid; gap: 0.75rem; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-inline: 1.5rem; border-radius: var(--radius); background: var(--paper); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: background-color 200ms var(--ease-out), transform 260ms var(--ease-out); }
.opt::after { content: ''; width: 28px; height: 28px; border-radius: 50%; background: var(--grey-2); transition: background-color 200ms var(--ease-out), transform 260ms var(--ease-out); }
.opt:hover { transform: translateX(-4px); }
:root[dir='ltr'] .opt:hover { transform: translateX(4px); }
.opt:hover::after { background: var(--lime); }
.opt:has(input:checked) { background: var(--lime); }
.opt:has(input:checked)::after { background: var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.finder__progress { display: flex; gap: 6px; margin: 1.5rem 0 0; }
.finder__progress span { height: 6px; flex: 1; border-radius: 999px; background: var(--grey-2); transition: background-color 300ms var(--ease-out); }
.finder__progress span.is-on { background: var(--ink); }
.finder__result { display: grid; gap: 1rem; }
.js .finder__result { display: none; }
.js .finder__form.is-done .finder__result { display: grid; animation: rise 560ms var(--ease-out) both; }
.js .pick { display: none; }
.js .pick.is-picked { display: block; }
.pick { background: var(--night); color: var(--on-night); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.pick + .pick { margin-top: 0; }
.pick__label { margin: 0; font-size: var(--fs-small); color: var(--signal); font-weight: 600; }
.pick__name { margin: 0.25rem 0 0.75rem; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); font-weight: 800; line-height: 1.1; }
.pick__why { margin: 0 0 1rem; max-width: 46ch; }
.pick__why:empty { display: none; }
.pick__price { margin: 0 0 1.5rem; font-size: var(--fs-lead); font-weight: 700; color: var(--signal); }
.pick__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pick .btn--ink { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.pick .btn--ink:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.pick .btn--line { color: var(--on-night); border-color: var(--on-night); }
.pick .btn--line:hover { background: var(--on-night); color: var(--night); }
.finder__again { justify-self: start; background: none; border: 0; padding: 0.5rem 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--ink); }

/* ---------- Chapters: one picture per screen on its own field ---------- */
.chapter { min-height: 92svh; display: grid; padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.chapter--black { background: var(--night); color: var(--on-night); }
.chapter--orange { background: var(--orange); color: var(--ink); }
.chapter--grey { background: var(--grey-2); color: var(--ink); }
.chapter__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
}
.chapter__title { grid-column: 1; grid-row: 1; margin: 0; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); font-weight: 800; line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: 11ch; }
.chapter__photo { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; overflow: hidden; border-radius: var(--radius); }
.chapter__photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.chapter__text { grid-column: 1; grid-row: 3; margin: 0; font-size: var(--fs-lead); line-height: 1.45; max-width: 26ch; align-self: end; }
.chapter__link { grid-column: 3; grid-row: 3; justify-self: end; align-self: end; font-weight: 700; font-size: 1.0625rem; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.chapter__link:hover { text-decoration-color: var(--signal); }
.chapter--orange .chapter__link:hover, .chapter--grey .chapter__link:hover { text-decoration-color: var(--paper); }
.js .chapter { clip-path: inset(20px round var(--radius)); transition: clip-path 900ms var(--ease-out); }
.js .chapter.is-in { clip-path: inset(0 round 0); }
.js .chapter .chapter__photo img { transform: scale(0.92); transition: transform 1100ms var(--ease-out); }
.js .chapter.is-in .chapter__photo img { transform: none; }
@media (max-width: 800px) {
  .chapter { min-height: auto; }
  .chapter__inner { grid-template-columns: 1fr; grid-template-rows: none; }
  .chapter__title, .chapter__photo, .chapter__text, .chapter__link { grid-column: 1; grid-row: auto; }
  .chapter__photo { width: 82%; justify-self: center; }
  .chapter__link { justify-self: start; }
}

/* ---------- Packages: tickets ---------- */
.packages__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.packages__head .lead { margin: 0; }
@media (max-width: 800px) { .packages__head { grid-template-columns: 1fr; } }
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.ticket {
  --notch: 28px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  max-width: 1080px;
  transition: transform 400ms var(--ease-out);
}
.ticket:hover { transform: translateY(-4px) rotate(-0.4deg); }
.ticket--best { background: var(--night); color: var(--on-night); }
.ticket__main { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); position: relative; }
.ticket__stub {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: grid;
  align-content: center;
  gap: 0.6rem;
  text-align: center;
  border-inline-start: 6px dotted var(--lime);
}
.ticket__stub::before, .ticket__stub::after {
  content: '';
  position: absolute;
  inset-inline-start: calc(var(--notch) / -2);
  width: var(--notch);
  height: var(--notch);
  border-radius: 50%;
  background: var(--lime);
}
.ticket__stub::before { top: calc(var(--notch) / -2); }
.ticket__stub::after { bottom: calc(var(--notch) / -2); }
.ticket__title { margin: 0 0 1.5rem; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); font-weight: 800; line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: 14ch; }
.ticket__lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; font-size: 1.0625rem; }
.ticket__lines li { padding-inline-start: 1.5rem; position: relative; }
.ticket__lines li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.ticket:not(.ticket--best) .ticket__lines li::before { background: var(--ink); }
.ticket__price { margin: 0; line-height: 1; }
.ticket__amount { font-size: clamp(3rem, 2rem + 4vw, 5.25rem); font-weight: 900; letter-spacing: -0.03em; }
.ticket__cur { font-size: 1.25rem; font-weight: 600; }
.ticket__per { margin: 0; font-size: var(--fs-small); }
.ticket--best .ticket__per { color: var(--signal); }
.ticket__buy { margin-top: 0.75rem; min-height: 56px; }
.ticket--best .ticket__buy { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.ticket--best .ticket__buy:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.ticket__more { font-size: var(--fs-small); font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.tickets__empty { font-size: var(--fs-lead); }
@media (max-width: 760px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket__lines { grid-template-columns: 1fr; }
  .tickets { gap: 2.5rem; }
  .ticket__main { padding-bottom: 2.25rem; }
  .ticket__stub { border-inline-start: 0; border-top: 6px dotted var(--lime); padding-top: 3rem; }
  .ticket__stub::before, .ticket__stub::after { top: calc(var(--notch) / -2); bottom: auto; }
  .ticket__stub::before { inset-inline-start: calc(var(--notch) / -2); }
  .ticket__stub::after { inset-inline-start: auto; inset-inline-end: calc(var(--notch) / -2); }
}

/* ---------- How it works: tiles that grow ---------- */
.how__title { margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
.grow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 3fr 3fr 4fr; gap: 12px; align-items: end; }
.grow__tile { overflow: hidden; border-radius: var(--radius); background: var(--grey-1); }
.grow__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.grow__step:hover .grow__tile img { transform: scale(1.05); }
.grow__step:nth-child(1) .grow__tile { height: 26vh; }
.grow__step:nth-child(2) .grow__tile { height: 36vh; }
.grow__step:nth-child(3) .grow__tile { height: 46vh; }
.grow__step:nth-child(4) .grow__tile { height: 58vh; }
.grow__step:nth-child(1) { align-self: start; }
.grow__title { margin: 1rem 0 0.35rem; font-size: 1.25rem; font-weight: 700; }
.grow__text { margin: 0; color: var(--ink-2); font-size: 1rem; max-width: 30ch; }
@media (max-width: 900px) {
  .grow { grid-template-columns: 1fr; gap: 2rem; }
  .grow__step:nth-child(1) .grow__tile { height: 38vw; }
  .grow__step:nth-child(2) .grow__tile { height: 48vw; }
  .grow__step:nth-child(3) .grow__tile { height: 58vw; }
  .grow__step:nth-child(4) .grow__tile { height: 68vw; }
}

/* ---------- Why: rows on one axis with margin photographs ---------- */
.why__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
.why__title { grid-column: 5 / -1; margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.why__row { grid-column: 5 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.why__name { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.15; color: var(--signal); }
.why__row p { margin: 0; max-width: 36ch; font-size: 1.0625rem; color: var(--on-night); }
.why__photo { margin: 0; overflow: hidden; border-radius: var(--radius); }
.why__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.why__photo--wide { width: 300px; aspect-ratio: 3 / 2; }
.why__photo--tall { width: 220px; aspect-ratio: 4 / 5; }
.why__photo--small { width: 170px; aspect-ratio: 1; }
@media (max-width: 900px) {
  .why__title, .why__row { grid-column: 1 / -1; }
  .why__row { grid-template-columns: 1fr; }
  .why__photo--wide { width: 100%; }
  .why__photo--tall { width: 70%; justify-self: end; }
  .why__photo--small { width: 55%; }
}

/* ---------- FAQ: filled tiles, sticky heading ---------- */
.faq-sec__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 3rem; align-items: start; }
.faq-sec__title { position: sticky; top: calc(var(--header-height) + 24px); }
@media (max-width: 900px) { .faq-sec__inner { grid-template-columns: 1fr; } .faq-sec__title { position: static; } }
.faq { display: grid; gap: 8px; }
.faq__item { background: var(--paper); border-radius: var(--radius); transition: background-color 260ms var(--ease-out); }
.faq__item[open] { background: var(--lime); }
.faq__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding: 1rem 1.5rem; font-size: 1.125rem; font-weight: 600; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__sign { position: relative; flex: none; width: 18px; height: 18px; }
.faq__sign::before, .faq__sign::after { content: ''; position: absolute; inset-inline-start: 0; top: 7.5px; width: 18px; height: 3px; border-radius: 2px; background: var(--ink); transition: transform 300ms var(--ease-out); }
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding: 0 1.5rem 1.5rem; }
.faq__a p { margin: 0; max-width: 56ch; font-size: 1.0625rem; }
.faq__q:hover .faq__sign::before, .faq__q:hover .faq__sign::after { background: var(--ink-2); }

/* ---------- Contact strip ---------- */
.reach { padding-top: 3rem; overflow: hidden; }
.reach__strip { overflow: hidden; margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.reach__track { display: flex; gap: 8px; width: max-content; animation: drift 60s linear infinite; }
:root[dir='rtl'] .reach__track { animation-direction: reverse; }
.reach__img { height: 150px; width: auto; border-radius: var(--radius-sm); object-fit: cover; }
.reach__img:nth-child(3n + 1) { aspect-ratio: 3 / 4; }
.reach__img:nth-child(3n + 2) { aspect-ratio: 1; }
.reach__img:nth-child(3n) { aspect-ratio: 3 / 2; }
.reach__strip:hover .reach__track { animation-play-state: paused; }
.reach__cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.reach__cell { display: grid; align-content: center; gap: 0.25rem; min-height: 112px; padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--orange-2); color: var(--ink); transition: background-color 200ms var(--ease-out), transform 260ms var(--ease-out); }
.reach__cell:hover { background: var(--paper); transform: translateY(-3px); }
.reach__cell--chat { background: var(--night); color: var(--on-night); }
.reach__cell--chat:hover { background: var(--lime); color: var(--ink); }
.reach__label { font-size: var(--fs-small); font-weight: 600; }
.reach__value { font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4rem); font-weight: 700; overflow-wrap: anywhere; }
.reach__more { margin: 1.5rem 0 0; }
.reach__more a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Inner page head (packages, contact) ---------- */
.page-head { padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(4rem, 3rem + 4vw, 7rem); }
.page-head__title { margin: 1.5rem 0 1rem; font-size: var(--fs-head); font-weight: 900; line-height: var(--lh-display); letter-spacing: var(--track-display); }
.page-head__lead { max-width: 46ch; }
.crumbs__link { color: var(--ink-2); }
.crumbs__link:hover { color: var(--ink); text-decoration: underline; }
.crumbs__current { color: var(--ink); }

/* ---------- Contact page ---------- */
.channels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; }
.channel { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 0.5rem; align-content: start; }
.channel__label { margin: 0; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.channel__value { margin: 0; font-size: clamp(1.125rem, 0.95rem + 0.6vw, 1.4rem); font-weight: 800; color: var(--ink); overflow-wrap: break-word; word-break: normal; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--orange); }
.channel__value:hover { text-decoration-color: var(--ink); }
.channel__note { margin: 0; font-size: 1rem; }
.contact2__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact2__grid { grid-template-columns: 1fr; } }
.contact2__policies { background: var(--grey-1); border-radius: var(--radius); padding: 2rem; }
.contact2__policies-title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; }
.contact2__policies ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.contact2__policies a { color: var(--ink); font-weight: 600; font-size: 1.125rem; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Footer: the name first ---------- */
.foot { background: var(--lime); color: var(--ink); padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem; overflow: hidden; }
.foot__name { margin: 0 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); font-size: clamp(4.5rem, 1rem + 19vw, 19rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.05em; font-family: 'Alexandria', sans-serif; text-align: start; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem 2rem; }
.foot__heading { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; }
.foot__reach ul, .foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot__reach li { display: grid; gap: 0.1rem; margin-bottom: 0.75rem; }
.foot__label { font-size: var(--fs-small); font-weight: 500; }
.foot__place { font-size: clamp(1.125rem, 0.8rem + 1vw, 1.6rem); font-weight: 800; color: var(--ink); overflow-wrap: normal; line-height: 1.2; }
@media (max-width: 380px) { .foot__place { overflow-wrap: anywhere; } }
.foot__place:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.foot__col a { color: var(--ink); font-size: 1rem; }
.foot__col a:hover, .foot__col a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); font-size: var(--fs-small); }
.foot__bottom p { margin: 0; }
.foot__tools { display: flex; align-items: center; gap: 1.25rem; }
.foot__tools > a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.foot .lang-seg { background: transparent; border-color: var(--ink); }
.foot .lang-seg__btn { color: var(--ink); }
.foot .lang-seg__btn[aria-pressed='true'] { background: var(--ink); color: var(--lime); }
.foot__credits { margin: 1.5rem 0 0; font-size: 0.9375rem; line-height: 1.6; text-align: left; max-width: 78ch; }
.foot__credits a { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__reach { grid-column: 1 / -1; } }

/* ---------- Entrances (content stays visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-mask] .mask-line__in, .js .hero2__foot { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .chapter { clip-path: none; transition: none; }
  .js .chapter .chapter__photo img { transform: none; }
  .reach__track { animation: none; }
  .js .finder__step.is-current, .js .finder__form.is-done .finder__result { animation: none; }
  .btn, .ticket, .opt, .person__img, .grow__tile img { transition: none; }
}

/* ==========================================================================
   Inner pages, WooCommerce and account on the light ground
   ========================================================================== */
.page-single, .pdp, .catalog { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--section-pad); }
.catalog__title, .pinfo__title { font-weight: 800; letter-spacing: var(--track-display); line-height: 1.15; }
.catalog__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); }
.entry-content { font-size: var(--fs-body); line-height: 1.75; color: var(--ink); max-width: 72ch; }
.entry-content h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; margin: 2.25rem 0 0.75rem; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.entry-content :where(a:not(.wc-block-components-button):not(.button):not(.btn)) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entry-content ul li::marker { color: var(--ink); }
.page-single--store .entry-content { max-width: none; }

/* Product page */
.pdp__gallery .gallery__stage { background: var(--grey-1); border: 0; border-radius: var(--radius); }
.gallery__img { border-radius: var(--radius); }
.pinfo { background: var(--grey-1); border: 0; border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.pinfo__title { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem); }
.pinfo__price, .pinfo__price--live, .pinfo__price .amount { color: var(--ink); font-weight: 900; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.pinfo__cart .single_add_to_cart_button, .pinfo__cart button[type='submit'] { width: 100%; min-height: 58px; border-radius: 999px; background: var(--ink); color: var(--lime); border: 0; font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: transform 260ms var(--ease-out), background-color 200ms; }
.pinfo__cart .single_add_to_cart_button:hover { transform: translateY(-2px); }
.pinfo__cart .quantity { display: none; }
.badge--accent { background: var(--lime); color: var(--ink); border: 0; }
.badge--outline { border-color: var(--ink); color: var(--ink); }
.ptabs__tab[aria-selected='true'] { color: var(--ink); border-color: var(--ink); }
.ptabs__panel { color: var(--ink); }
.pcard__cover { background: var(--grey-1); color: var(--ink); border: 0; }

/* Woo notices, forms and blocks */
.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner { background: var(--grey-1) !important; color: var(--ink) !important; border-radius: var(--radius-md) !important; border: 0 !important; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { background: var(--bad-bg) !important; color: var(--bad-ink) !important; }
.wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button, .woocommerce .button {
  background: var(--ink) !important; color: var(--paper) !important; border-radius: 999px !important; border: 0 !important; min-height: 52px; font-weight: 700 !important;
}
.wc-block-components-button:not(.is-link):hover, .woocommerce a.button:hover, .woocommerce button.button:hover { color: var(--lime) !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { min-height: 58px !important; font-size: 1.0625rem !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-block-components-textarea, .woocommerce form .input-text, .woocommerce form select {
  background: var(--paper) !important; color: var(--ink) !important; border: 1.5px solid var(--color-border) !important; border-radius: var(--radius-sm) !important;
}
.wc-block-components-text-input input:focus, .woocommerce form .input-text:focus { border-color: var(--ink) !important; box-shadow: none !important; }
.wc-block-components-sidebar, .wc-block-components-totals-wrapper, .wp-block-woocommerce-checkout-order-summary-block { color: var(--ink); }
.wp-block-woocommerce-cart .wc-block-components-sidebar, .wp-block-woocommerce-checkout .wc-block-components-sidebar { background: var(--grey-1); border-radius: var(--radius); padding: 1.25rem !important; }
.wc-block-components-product-name { color: var(--ink) !important; font-weight: 700; }
.wc-block-components-formatted-money-amount { color: var(--ink); }
.woocommerce-MyAccount-navigation a { border-radius: 999px; color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation-link--is-active a { background: var(--ink); color: var(--lime); }
.woocommerce table.shop_table, .woocommerce-orders-table { border-color: var(--color-border-soft); color: var(--ink); }

/* Legacy dark-only pieces kept harmless on the light ground */
.proto-notice { background: var(--grey-1); color: var(--ink); }
.info-note { background: var(--grey-1); color: var(--ink); border: 0; border-radius: var(--radius-md); }
.empty-state { background: var(--grey-1); border: 0; border-radius: var(--radius); color: var(--ink); }
.site-footer { background: var(--grey-1); color: var(--ink); border-top: 0; }

/* ---------- Catalog chapter (full scope) ---------- */
.catalog2__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 1rem + 3vw, 4rem); }
@media (max-width: 860px) { .catalog2__head { grid-template-columns: 1fr; } }
.catalog2__search { display: flex; gap: 8px; }
.catalog2__search input { flex: 1; min-width: 0; height: 58px; padding-inline: 1.5rem; border-radius: 999px; border: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.0625rem; }
.catalog2__search input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.catalog2__search .btn { min-height: 58px; }
.groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 8px; }
.group { position: relative; display: grid; gap: 0.4rem; align-content: start; min-height: 150px; padding: 1.75rem 1.75rem 1.75rem 4.5rem; border-radius: var(--radius); background: var(--night-2); color: var(--on-night); transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 300ms var(--ease-out); }
:root[dir='rtl'] .group { padding: 1.75rem 1.75rem 1.75rem 4.5rem; }
.group:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.group__name { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 800; line-height: 1.2; }
.group__subs { font-size: 1rem; line-height: 1.55; opacity: 0.85; }
.group__arrow { position: absolute; inset-inline-end: 1.5rem; top: 1.75rem; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); transition: background-color 220ms var(--ease-out); }
.group:hover .group__arrow { background: var(--ink); }
:root[dir='rtl'] .group { padding-inline: 1.75rem 4.5rem; }
:root[dir='ltr'] .group { padding-inline: 1.75rem 4.5rem; }
.catalog2__sub { margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1rem; font-size: var(--fs-lead); font-weight: 700; }
.companies { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.company { display: inline-flex; align-items: center; min-height: 56px; padding-inline: 1.5rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: 1.125rem; transition: background-color 200ms var(--ease-out), transform 260ms var(--ease-out); }
.company:hover { background: var(--lime); transform: translateY(-2px); }
.catalog2__more { margin: clamp(2rem, 1.5rem + 2vw, 3rem) 0 0; }

/* ---------- Library chapter ---------- */
.library2__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 3rem; align-items: start; }
@media (max-width: 900px) { .library2__inner { grid-template-columns: 1fr; } }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shelf__item { display: grid; gap: 0.35rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--paper); color: var(--ink); transition: background-color 220ms var(--ease-out), transform 300ms var(--ease-out); }
.shelf__item:hover { background: var(--lime); transform: translateX(-4px); }
:root[dir='ltr'] .shelf__item:hover { transform: translateX(4px); }
.shelf__name { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 800; }
.shelf__text { font-size: 1rem; color: var(--ink-2); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Catalog pages (category, company, search, product cards) on the 2026-11 design ---------- */
.catalog__title { font-size: var(--fs-head); font-weight: 900; line-height: var(--lh-display); letter-spacing: var(--track-display); }
.catalog__sub { color: var(--ink-2); font-size: var(--fs-body); background: none; border: 0; padding: 0; }
.cat-card, .company-chip, .brand-card, .resource-card, .svc-card, .pcard, .book-card {
  border: 0 !important;
  background: var(--grey-1);
  border-radius: var(--radius);
  box-shadow: none;
  transition: background-color 220ms var(--ease-out), transform 300ms var(--ease-out);
}
.cat-card:hover, .company-chip:hover, .brand-card:hover, .resource-card:hover, .pcard:hover { background: var(--lime); transform: translateY(-3px); box-shadow: none; }
.cat-card__name, .resource-card__name { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 800; color: var(--ink); }
.cat-card__blurb, .resource-card__text { color: var(--ink-2); font-size: 0.9375rem; }
.cat-card__icon, .resource-card__icon, .company-chip__mark { background: var(--paper); border: 0; color: var(--ink); }
.pcard__name, .pcard__title { color: var(--ink); font-weight: 700; }
.pcard__media, .pcard__cover { background: var(--paper); border: 0; }
.catalog-side, .filter-drawer, .catalog-ui__panel { background: var(--grey-1); border: 0; border-radius: var(--radius); }
.section-head__title { font-weight: 800; color: var(--ink); }
.section-head__link { color: var(--ink); font-weight: 700; }
.pinfo__status { background: var(--paper); border: 0; border-radius: var(--radius-md); color: var(--ink); }
.products2__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.products2__head .h-section { margin: 0; }
.pslider__btn { border: 0; background: var(--grey-1); color: var(--ink); border-radius: 999px; width: 52px; height: 52px; }
.pslider__btn:hover { background: var(--lime); }

/* Digital checkout (2026-11-07): name + e-mail only; the country is prefilled and hidden. */
.biolab-digital-cart .wc-block-checkout__billing-fields .wc-block-components-address-form__country,
.biolab-digital-cart .wc-block-checkout__billing-fields .wc-block-components-country-input { display: none !important; }

/* Trainee dashboard: statistics, charts and the weekly update (2026-11-09). Tokens only, so dark mode follows. */
.coach-tracker { margin-top: var(--space-8); }
.coach-due { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 var(--space-5); padding: 16px 18px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.coach-due strong { font-size: 1.05rem; }
.coach-due span { flex: 1 1 220px; }
.coach-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 var(--space-5); }
.coach-stats > div { padding: 14px 16px; border-radius: 14px; background: var(--grey-1); }
.coach-stats dt { margin: 0 0 6px; color: var(--ink-2); font-size: .85rem; }
.coach-stats dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0; color: var(--ink); }
.coach-stats strong { font-size: 1.7rem; line-height: 1.1; font-weight: 700; }
.coach-stats span { color: var(--ink-2); font-size: .9rem; }
.coach-stats small { margin-inline-start: auto; color: var(--ink-2); font-size: .9rem; }
.coach-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0 0 var(--space-5); }
.coach-chart { margin: 0; padding: 14px 14px 8px; border: 1px solid var(--grey-2); border-radius: 14px; }
.coach-chart figcaption { margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.coach-chart svg { display: block; width: 100%; height: auto; }
.coach-chart__line { fill: none; stroke: var(--lime-deep); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.coach-chart__dots circle { fill: var(--ink); }
.coach-chart__grid { stroke: var(--grey-2); stroke-width: 1; }
.coach-chart__tick { fill: var(--ink-2); font-size: 10px; }
.coach-update { margin: 0 0 var(--space-5); padding: 4px 18px; border: 1px solid var(--grey-2); border-radius: 14px; }
.coach-update > summary { padding: 12px 0; font-weight: 700; cursor: pointer; }
.coach-update form { display: grid; gap: 14px; padding: 4px 0 16px; }
.coach-update__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.coach-update small { display: block; margin-top: 4px; color: var(--ink-2); }
.coach-update .btn { justify-self: start; }
.coach-rate { margin: 0; padding: 0; border: 0; }
.coach-rate legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.coach-rate__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.coach-rate__row > span { color: var(--ink-2); font-size: .85rem; }
.coach-rate label { position: relative; cursor: pointer; }
.coach-rate input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.coach-rate b { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--grey-2); border-radius: 12px; font-weight: 600; color: var(--ink); }
.coach-rate input:checked + b { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.coach-rate input:focus-visible + b { outline: 2px solid var(--lime-deep); outline-offset: 2px; }
.coach-field-error { display: block; margin-top: 4px; color: var(--bad-ink); font-size: .9rem; }
.coach-notice--error { padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad-ink); }
.coach-notice--error p { margin: 0; }
.coach-history__title { margin: 0 0 10px; font-size: 1.1rem; }
.coach-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.coach-history li { padding: 2px 14px; border: 1px solid var(--grey-2); border-radius: 12px; }
.coach-history summary { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; cursor: pointer; }
.coach-history em { margin-inline-start: auto; font-style: normal; font-size: .85rem; color: var(--ink-2); }
.coach-history dl { margin: 0 0 10px; }
.coach-history dl > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--grey-2); }
.coach-history dt { color: var(--ink-2); }
.coach-history dd { margin: 0; }
.coach-history blockquote { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--ink); }
.coach-history blockquote p { margin: 4px 0 0; }

/* Product page on phones (2026-11-10): a 1fr column grew to the image's 800px; keep columns inside the screen. */
.pdp__layout { grid-template-columns: minmax(0, 1fr); }
.pdp__layout > * { min-width: 0; }
.gallery__img { max-width: 100%; }
.pinfo, .pinfo__commerce { grid-template-columns: minmax(0, 1fr); }
.pinfo__row { flex-wrap: wrap; }
.pinfo__price { min-width: 0; white-space: normal; overflow-wrap: anywhere; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em; }

/* =====================================================================
   2026-11-11: hero with the kicker on top, and one type scale for the whole
   site. Headings 700, display sizes brought down so a phone screen reads
   as one piece; English never set in capitals.
   ===================================================================== */
.hero3 { position: relative; background: var(--night); color: var(--on-night); padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.hero3__inner { display: grid; gap: 12px; max-width: 760px; }
.hero3__kicker { margin: 0; color: var(--signal); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.01em; }
.hero3__title { margin: 0; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: var(--track-display); text-wrap: balance; max-width: 16ch; }
.hero3__sub { margin: 0; max-width: 42ch; color: var(--on-night-2); font-size: 1.0625rem; line-height: 1.6; }
.hero3__sub strong { color: var(--on-night); font-weight: 600; }
.hero3__ask { margin: 10px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--on-night); }
.hero3__people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; }
.hero3__person { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; background: var(--night-2); color: var(--ink); text-decoration: none; isolation: isolate; transition: transform 260ms var(--ease-out); }
.hero3__person-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 700ms var(--ease-move); }
.hero3__person-name { position: absolute; inset-inline: 8px; bottom: 8px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-inline: 14px 10px; border-radius: 999px; background: var(--lime); font-size: 1rem; font-weight: 700; }
.hero3__person-name .qz-ic { width: 20px; height: 20px; }
:root[dir='rtl'] .hero3__person-name .qz-ic { transform: scaleX(-1); }
.hero3__person:active { transform: scale(0.97); }
@media (hover: hover) { .hero3__person:hover .hero3__person-img { transform: scale(1.06); } }
.hero3__facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--on-night-2); font-size: 0.875rem; }
.hero3__facts li { position: relative; padding-inline-start: 16px; }
.hero3__facts li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
@media (min-width: 900px) {
  .hero3__inner { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: 'kicker people' 'title people' 'sub people' 'ask people' 'facts people'; align-items: center; column-gap: 3rem; }
  .hero3__kicker { grid-area: kicker; } .hero3__title { grid-area: title; } .hero3__sub { grid-area: sub; } .hero3__ask { grid-area: ask; } .hero3__facts { grid-area: facts; }
  .hero3__people { grid-area: people; max-width: none; }
  .hero3 { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
}

/* Type scale */
:root { --fs-head: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); --fs-display: clamp(2.25rem, 1.4rem + 4vw, 4.5rem); --lh-display: 1.15; }
:root[lang^='en'] { --lh-display: 1.08; --track-display: -0.02em; }
.h-section, .chapter__title, .ticket__title, .why__name, .pick__name, .catalog__title, .pinfo__title, .page-head__title, .bookp__title, .group__name, .shelf__name, .foot__name, .qz-step__title, .coach-dashboard__head h2 { font-weight: 700; }
.chapter__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); }
.ticket__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.ticket__amount { font-size: clamp(2.5rem, 1.8rem + 2.8vw, 4rem); font-weight: 700; }
.why__name { font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem); }
.pick__name { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.catalog__title, .page-head__title { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.25rem); }
.pinfo__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
.pinfo__price, .pinfo__price--live, .pinfo__price .amount { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; }
.bookp__title { font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; }
.bookp__price { font-weight: 700; }
.foot__name { font-size: clamp(3.5rem, 1rem + 13vw, 11rem); font-weight: 700; letter-spacing: -0.04em; }
.foot__place { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 700; }
.woocommerce-account .entry-title, .woocommerce-account h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); }
h1, h2, h3, h4 { font-weight: 700; }
b, strong { font-weight: 700; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }
:root[lang^='ar'] body { line-height: 1.7; }
.eyebrow, .qz-res__tag, .bookp__kicker { font-weight: 600; }
.btn, .qz-next, .qz-pay, .ticket__buy { font-weight: 700; }
.btn, .h-section, .hero3__kicker, .ticket__title, .chapter__title { text-transform: none; }
@media (max-width: 700px) {
  .h-section { font-size: clamp(1.5rem, 1.2rem + 2vw, 1.9rem); }
  .ticket__title { font-size: 1.5rem; }
  .ticket__amount { font-size: 2.5rem; }
  .chapter__title { font-size: 1.75rem; }
  .foot__name { font-size: 3.75rem; }
  .pinfo__title { font-size: 1.5rem; }
  .hero3__title { font-size: 2rem; }
}

/* Payment marks in the footer (2026-11-17, before the Moyasar application). Marks keep their own colours on a white chip. */
.foot__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.foot__pay-label { margin: 0; font-size: var(--fs-small, 0.9375rem); }
.paymarks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.paymarks__item svg { display: block; width: 56px; height: 35px; border-radius: 6px; box-shadow: 0 0 0 1px rgb(18 20 23 / 0.12); }

/* ---- wp-quiz.css ---- */
/* =====================================================================
   BioLab 2026-11, second pass: phone-first plan quiz, hero entry cards,
   3D books. Same tokens as wp-v2.css (ink, paper, lime, orange, greys).
   ===================================================================== */

:root { --qz-dir: 1; }
:root[dir='rtl'] { --qz-dir: -1; }
:root[dir='rtl'] .qz [data-qz-back] .qz-ic,
:root[dir='rtl'] .qz-photo__name .qz-ic,
:root[dir='rtl'] .qz-step--single .qz-opt__mark .qz-ic,
:root[dir='rtl'] .qz-next .qz-ic,
:root[dir='rtl'] .qz-pay .qz-ic,
:root[dir='rtl'] .hero2__person-name .qz-ic { transform: scaleX(-1); }

html.qz-open, html.qz-open body { overflow: hidden; }

/* ---------- Shell ---------- */
.qz {
  --qz-pad: 20px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
}
.qz[hidden] { display: none; }
.qz--layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  height: 100vh;
  height: 100dvh;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-move);
}
.qz--layer.is-open { opacity: 1; transform: none; }
.qz--page { min-height: 100vh; min-height: 100dvh; }
.qz-body { background: var(--paper); }
.qz-main { min-height: 100dvh; }

.qz__bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--paper);
}
.qz__icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--grey-1);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 200ms var(--ease-out);
}
.qz__icon-btn:active { transform: scale(0.92); }
.qz.is-first [data-qz-back] { visibility: hidden; }
.qz--layer.is-first [data-qz-back] { visibility: visible; }
.qz__progress { min-width: 0; text-align: center; }
.qz__section { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
.qz__segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.qz__seg { height: 4px; border-radius: 4px; background: var(--grey-1); overflow: hidden; }
.qz__seg span { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--ink); border-radius: inherit; transition: width 420ms var(--ease-move); }

.qz__stage { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; }
.qz--page .qz__stage { overflow: visible; }

/* ---------- Steps ---------- */
.qz-step { display: none; flex: 1 0 auto; flex-direction: column; }
.qz-step.is-current { display: flex; animation: qz-in 440ms var(--ease-move) both; }
@keyframes qz-in {
  from { opacity: 0; transform: translateX(calc(var(--from, 0) * var(--qz-dir) * 32px)); }
  to { opacity: 1; transform: none; }
}
.qz-step__body { width: 100%; max-width: 560px; margin-inline: auto; padding: 12px var(--qz-pad) 28px; }
.qz-step__title { margin: 6px 0 8px; font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.25rem); font-weight: 800; line-height: 1.25; text-align: center; text-wrap: balance; }
.qz-step__title:focus { outline: none; }
.qz-step__sub { margin: 0 auto 22px; max-width: 36ch; color: var(--color-text-3); font-size: 1rem; line-height: 1.55; text-align: center; }
.qz-step__cta {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px var(--qz-pad);
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  background: var(--paper);
  box-shadow: 0 -1px 0 var(--color-border-soft);
}
.qz-next, .qz-pay {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 200ms var(--ease-out), opacity 180ms;
}
.qz-next:active:not(:disabled), .qz-pay:active { transform: scale(0.98); }
.qz-next:disabled { background: var(--grey-2); color: var(--color-text-3); cursor: not-allowed; }
@media (hover: hover) { .qz-next:hover:not(:disabled), .qz-pay:hover { color: var(--lime); } }

/* Gender photos */
.qz-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  isolation: isolate;
  transition: transform 260ms var(--ease-out);
}
.qz-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-move); }
.qz-photo__name {
  position: absolute;
  inset-inline: 10px;
  bottom: 10px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 18px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
}
.qz-photo:active { transform: scale(0.97); }
.qz-photo.is-chosen { outline: 3px solid var(--ink); outline-offset: 3px; }
.qz-photo.is-chosen .qz-photo__img { transform: scale(1.06); }
@media (hover: hover) { .qz-photo:hover .qz-photo__img { transform: scale(1.05); } }

/* Option rows */
.qz-opts { display: grid; gap: 10px; }
.qz-opt {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--grey-1);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.qz-opt[hidden] { display: none; }
.qz-opt__ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; background: var(--paper); color: var(--ink); transition: background-color 200ms var(--ease-out); }
.qz-opt__text { display: grid; gap: 2px; }
.qz-opt__label { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.qz-opt__sub { font-size: 0.875rem; color: var(--color-text-3); line-height: 1.4; }
.qz-opt__mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px; color: var(--color-text-3); }
.qz-opt__mark .qz-ic { width: 20px; height: 20px; }
.qz-step--multi .qz-opt__mark { border: 2px solid var(--grey-2); border-radius: 9px; color: transparent; }
.qz-opt:active { transform: scale(0.98); }
.qz-opt.is-chosen, .qz-opt[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.qz-opt.is-chosen .qz-opt__sub, .qz-opt[aria-pressed='true'] .qz-opt__sub { color: var(--grey-2); }
.qz-opt.is-chosen .qz-opt__ic, .qz-opt[aria-pressed='true'] .qz-opt__ic { background: var(--lime); }
.qz-opt.is-chosen .qz-opt__mark { color: var(--lime); }
.qz-step--multi .qz-opt[aria-pressed='true'] .qz-opt__mark { border-color: var(--lime); background: var(--lime); color: var(--ink); animation: qz-pop 300ms var(--ease-out); }
@keyframes qz-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (hover: hover) { .qz-opt:hover:not(.is-chosen):not([aria-pressed='true']) { border-color: var(--ink); } }

/* Body zones */
.qz-zones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, 36%); gap: 14px; align-items: center; }
.qz-zones__list { display: grid; gap: 8px; }
.qz-chip {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 18px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--grey-1);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.qz-chip[hidden] { display: none; }
.qz-chip .qz-ic { width: 20px; height: 20px; opacity: 0; transform: scale(0.6); transition: opacity 200ms, transform 260ms var(--ease-out); }
.qz-chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.qz-chip[aria-pressed='true'] .qz-ic { opacity: 1; transform: none; color: var(--lime); }
.qz-chip:active { transform: scale(0.97); }
.qz-figure { display: block; width: 100%; height: auto; max-height: 52vh; }
.qz-figure__head, .qz-figure__neck { fill: var(--color-surface-3); }
.qz-z { fill: var(--color-surface-2); stroke: transparent; stroke-width: 1.5; cursor: pointer; transition: fill 260ms var(--ease-out), stroke 260ms var(--ease-out); }
.qz-z.is-on { fill: var(--lime); stroke: var(--ink); }
.qz-z[data-zone='back'] { fill: transparent; stroke: transparent; stroke-width: 6; stroke-dasharray: 2 7; stroke-linecap: round; }
.qz-z[data-zone='back'].is-on { fill: transparent; stroke: var(--ink); }
.qz-figure__plain { cursor: default; }
.qz:not([data-gender='female']) .qz-z--f, .qz[data-gender='female'] .qz-z--m { display: none; }

/* Days */
.qz-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.qz-day {
  aspect-ratio: 3 / 4;
  display: grid;
  place-content: center;
  gap: 2px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--grey-1);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.qz-day__n { font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 900; line-height: 1; }
.qz-day__u { font-size: 0.75rem; color: var(--color-text-3); }
.qz-day.is-chosen { background: var(--ink); color: var(--lime); transform: translateY(-4px); }
.qz-day.is-chosen .qz-day__u { color: var(--grey-2); }
.qz-day:active { transform: scale(0.95); }

/* Measurements */
.qz-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.qz-num { display: grid; gap: 6px; align-content: start; }
.qz-num[hidden] { display: none; }
.qz-num__label { font-size: 0.875rem; font-weight: 700; }
.qz-num__box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
  padding-inline: 16px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: var(--grey-1);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.qz-num__box:focus-within { border-color: var(--ink); background: var(--paper); }
.qz-num input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qz-num input::-webkit-outer-spin-button, .qz-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qz-num__unit { color: var(--color-text-3); font-size: 0.875rem; font-weight: 700; }
.qz-num__err { min-height: 1em; color: var(--clay-ink); font-size: 0.8125rem; }
.qz-num.is-bad .qz-num__box { border-color: var(--clay); }

/* Info */
.qz-info__photo { margin: 0 0 18px; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--grey-1); }
.qz-info__photo img { width: 100%; height: 100%; object-fit: cover; animation: qz-zoom 6s var(--ease-out) both; }
@keyframes qz-zoom { from { transform: scale(1.08); } to { transform: none; } }

/* Loading */
.qz-load { display: grid; justify-items: center; align-content: center; min-height: 70vh; position: relative; }
.qz-load__ring { width: 148px; height: 148px; transform: rotate(-90deg); }
.qz-load__track { fill: none; stroke: var(--grey-1); stroke-width: 9; }
.qz-load__bar { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.qz-step--loading.is-running .qz-load__bar { animation: qz-ring var(--load-ms, 2600ms) linear forwards; }
@keyframes qz-ring { to { stroke-dashoffset: 0; } }
.qz-load__pct { margin: -96px 0 60px; font-size: 1.75rem; font-weight: 900; }
.qz-load__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.qz-load__list li { display: flex; align-items: center; gap: 12px; color: var(--color-text-3); font-weight: 600; transition: color 300ms; }
.qz-load__list .qz-ic { width: 28px; height: 28px; padding: 5px; border-radius: 999px; background: var(--grey-1); color: transparent; transition: background-color 300ms, color 300ms; }
.qz-load__list li.is-done { color: var(--ink); }
.qz-load__list li.is-done .qz-ic { background: var(--lime); color: var(--ink); animation: qz-pop 320ms var(--ease-out); }

/* ---------- Result ---------- */
.qz-res { padding-bottom: 24px; }
.qz-res__tag { display: table; margin: 4px auto 8px; padding: 6px 14px; border-radius: 999px; background: var(--lime); font-size: 0.8125rem; font-weight: 800; }
.qz-res__title { margin: 0 0 18px; font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem); font-weight: 800; line-height: 1.3; text-align: center; text-wrap: balance; }
.qz-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qz-stat { padding: 14px 12px; border-radius: 20px; background: var(--grey-1); }
.qz-stat[hidden] { display: none; }
.qz-stat--bmi { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
.qz-stat--bmi .qz-stat__k { grid-column: 1 / -1; }
.qz-stat__k { margin: 0 0 6px; color: var(--color-text-3); font-size: 0.8125rem; font-weight: 600; }
.qz-stat__v { margin: 0; font-size: 1.375rem; font-weight: 900; line-height: 1.15; }
.qz-stat__u { display: block; margin-top: 2px; color: var(--color-text-3); font-size: 0.75rem; font-weight: 600; }
.qz-stat--bmi .qz-stat__v { font-size: 2rem; text-align: end; }
.qz-stat--bmi .qz-stat__u { font-size: 0.875rem; color: var(--ink); }
.qz-gauge { width: 150px; height: auto; overflow: visible; }
.qz-gauge__seg { fill: none; stroke-width: 10; stroke-linecap: round; }
.qz-gauge__seg--1 { stroke: var(--grey-2); }
.qz-gauge__seg--2 { stroke: var(--lime-deep); }
.qz-gauge__seg--3 { stroke: var(--clay-2); }
.qz-gauge__seg--4 { stroke: var(--clay); }
.qz-gauge__needle { transform-box: view-box; transform-origin: 60px 60px; transform: rotate(var(--a, -90deg)); }
.qz-gauge__needle line { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.qz-gauge__needle circle { fill: var(--ink); }
.qz-step--result.is-current .qz-gauge__needle { animation: qz-needle 1300ms var(--ease-move) 250ms both; }
@keyframes qz-needle { from { transform: rotate(-90deg); } to { transform: rotate(var(--a, -90deg)); } }
.qz-stat--bmi[data-cat='1'] .qz-stat__u::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 99px; background: var(--lime-deep); }
.qz-stat--bmi[data-cat='2'] .qz-stat__u::before, .qz-stat--bmi[data-cat='3'] .qz-stat__u::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 99px; background: var(--clay); }

.qz-chart { margin: 12px 0 0; padding: 16px; border-radius: 24px; background: var(--night); color: var(--on-night); }
.qz-chart[hidden] { display: none; }
.qz-chart__head { font-weight: 800; font-size: 1.0625rem; margin-bottom: 8px; }
.qz-chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.qz-chart__grid { stroke: rgb(255 255 255 / 0.15); stroke-width: 1; }
.qz-chart__area { fill: color-mix(in srgb, var(--signal) 16%, transparent); opacity: 0; }
.qz-chart__line { fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.qz-chart__dot--a { fill: var(--on-night); }
.qz-chart__dot--b { fill: var(--signal); stroke: var(--night); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.qz-chart.is-drawn .qz-chart__line { animation: qz-draw 1500ms var(--ease-move) 300ms forwards; }
.qz-chart.is-drawn .qz-chart__area { animation: qz-fade 600ms ease 1300ms forwards; }
.qz-chart.is-drawn .qz-chart__dot--b { animation: qz-dot 500ms var(--ease-out) 1650ms forwards; }
@keyframes qz-draw { to { stroke-dashoffset: 0; } }
@keyframes qz-fade { to { opacity: 1; } }
@keyframes qz-dot { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
.qz-chart__axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--on-night-2); font-size: 0.8125rem; font-weight: 600; }
.qz-chart__note { margin: 10px 0 0; color: var(--on-night-2); font-size: 0.75rem; line-height: 1.5; }

.qz-plan { margin-top: 18px; }
.qz-plan__title { margin: 0 0 10px; font-size: 1.125rem; font-weight: 800; }
.qz-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qz-plan__list li { position: relative; padding-inline-start: 34px; line-height: 1.5; }
.qz-plan__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0d0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.qz-note { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--note-bg); border-inline-start: 4px solid var(--clay); }
.qz-note[hidden] { display: none; }
.qz-note p { margin: 0; line-height: 1.6; }
.qz-note p + p { margin-top: 8px; }

.qz-offer { margin-top: 20px; }
.qz-ticket { padding: 20px; border-radius: 24px; background: var(--lime); text-align: center; animation: qz-rise 600ms var(--ease-move) 200ms both; }
@keyframes qz-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.qz-ticket__k { margin: 0; font-size: 0.875rem; font-weight: 700; }
.qz-ticket__name { margin: 2px 0 6px; font-size: 1.625rem; font-weight: 900; }
.qz-ticket__why { margin: 0 auto 12px; max-width: 38ch; line-height: 1.55; }
.qz-ticket__price { margin: 0 0 14px; display: flex; flex-direction: column; gap: 2px; }
.qz-ticket__price strong { font-size: 2.25rem; font-weight: 900; line-height: 1; }
.qz-ticket__price span { font-size: 0.875rem; font-weight: 600; }
.qz-pay--block { color: var(--lime); }
.qz-ticket__more { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.qz-offer__alt { display: block; margin-top: 14px; color: var(--ink); text-align: center; font-weight: 600; text-underline-offset: 4px; }
.qz-offer__soon { margin: 0 0 12px; text-align: center; line-height: 1.6; }
.qz-res__privacy { display: flex; gap: 10px; margin: 20px 0 0; color: var(--color-text-3); font-size: 0.8125rem; line-height: 1.6; }
.qz-res__privacy .qz-ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.qz-link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qz-link:disabled { color: var(--color-text-3); text-decoration: none; }

.qz-paybar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--on-night);
}
:root[dir='rtl'] .qz-paybar { padding: 10px 18px 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.qz-paybar[hidden] { display: none; }
.qz-paybar__price { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.25; }
.qz-paybar__price span { color: var(--on-night-2); font-size: 0.8125rem; }
.qz-paybar__price strong { color: var(--signal); font-size: 1.125rem; font-weight: 900; }
.qz-paybar .qz-pay { flex: none; width: auto; min-height: 52px; padding-inline: 22px; background: var(--lime); color: var(--ink); margin: 0; }

.qz-prefill { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--lime); font-weight: 600; }

/* Larger screens: the quiz stays a centred phone-width column. */
@media (min-width: 900px) {
  .qz { --qz-pad: 24px; }
  .qz-step__body { padding-top: 28px; }
  .qz-photos { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .qz--layer, .qz-step.is-current, .qz-info__photo img, .qz-ticket, .qz-chart.is-drawn .qz-chart__line, .qz-step--result.is-current .qz-gauge__needle { animation: none !important; transition: none !important; }
  .qz-chart__line { stroke-dashoffset: 0; }
  .qz-chart__area, .qz-chart__dot--b { opacity: 1; }
}

/* ---------- Header button (short label on phones) ---------- */
.site-header__cta-short { display: none; }
@media (max-width: 720px) {
  .site-header__cta { display: inline-flex; min-height: 40px; padding-inline: 16px; font-size: 0.875rem; }
  .site-header__cta-long { display: none; }
  .site-header__cta-short { display: inline; }
}

/* ---------- Hero entry: tap your gender to start ---------- */
.hero2__start { display: grid; gap: 10px; width: min(100%, 460px); }
.hero2__ask { margin: 0; color: var(--on-night-2); font-size: 0.9375rem; font-weight: 600; }
.hero2__people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero2__person {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink-2);
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
  transition: transform 260ms var(--ease-out);
}
.hero2__person-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 700ms var(--ease-move); }
.hero2__person-name {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-inline: 14px 10px;
  border-radius: 999px;
  background: var(--lime);
  font-weight: 800;
  font-size: 1rem;
}
.hero2__person-name .qz-ic { width: 20px; height: 20px; }
.hero2__person:active { transform: scale(0.97); }
@media (hover: hover) { .hero2__person:hover .hero2__person-img { transform: scale(1.06); } }
.js .hero2 .hero2__person { opacity: 0; transform: translateY(14px); }
.js .hero2.is-in .hero2__person { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out) 700ms, transform 600ms var(--ease-move) 700ms; }
.js .hero2.is-in .hero2__person + .hero2__person { transition-delay: 800ms; }
@media (max-width: 700px) {
  .hero2 { --seam: 38%; }
  .hero2__layer { padding-bottom: calc(var(--hero-fs) * var(--lh-display) + 30svh); }
  .hero2__foot { gap: 12px; }
  .hero2__sub { font-size: 1rem; max-width: none; }
  .hero2__start { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .js .hero2 .hero2__person { opacity: 1; transform: none; } }
.packages__quiz { margin: 10px 0 0; }
.packages__quiz a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }

/* ---------- 3D books ---------- */
.book3d {
  --t: 16px;
  --ry: -26deg;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  perspective: 1400px;
  isolation: isolate;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
}
.book3d::after { content: ''; position: absolute; inset: auto 10% -5% 12%; height: 7%; border-radius: 50%; background: rgb(11 13 12 / 0.22); filter: blur(10px); z-index: -1; transition: transform 600ms var(--ease-move); }
.book3d__body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--ry)) rotateX(4deg); transition: transform 900ms var(--ease-move); }
.book3d__front, .book3d__back, .book3d__spine, .book3d__pages { position: absolute; display: block; backface-visibility: hidden; }
.book3d__front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden; background: var(--grey-1); }
.book3d__front::after { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: 7px; width: 2px; background: rgb(0 0 0 / 0.16); box-shadow: 3px 0 0 rgb(255 255 255 / 0.12); }
:root[dir='rtl'] .book3d__front::after { inset-inline-start: auto; left: 7px; }
.book3d__img, .book3d__front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book3d__blank { display: grid; place-items: center; height: 100%; padding: 12px; text-align: center; font-weight: 800; }
.book3d__spine { top: 0; bottom: 0; left: calc(var(--t) / -2); width: var(--t); background: var(--spine); transform: rotateY(-90deg); border-radius: 2px 0 0 2px; }
.book3d__pages { top: 3px; bottom: 3px; right: calc(var(--t) / -2); width: var(--t); background: #f3f0e8; box-shadow: inset 0 0 0 1px #ddd8cc, inset 3px 0 0 #e6e2d7, inset 7px 0 0 #f3f0e8, inset 8px 0 0 #e1ddd2; transform: rotateY(90deg); }
.book3d__back {
  inset: 0;
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
  border-radius: 6px 2px 2px 6px;
  background: var(--night);
  color: var(--on-night);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10% 9%;
  text-align: start;
  overflow: hidden;
}
.book3d__back-title { font-weight: 800; font-size: clamp(0.9rem, 0.7rem + 0.8vw, 1.125rem); line-height: 1.35; color: var(--signal); }
.book3d__back-author { font-size: 0.8125rem; color: var(--on-night-2); }
.book3d__back-text { font-size: clamp(0.8125rem, 0.7rem + 0.4vw, 0.9375rem); line-height: 1.6; }
.book3d__back-mark { margin-top: auto; font-weight: 900; letter-spacing: 0.04em; color: var(--signal); }
@media (hover: hover) { a:hover > .book3d, .shelf3d__item:hover .book3d { --ry: -8deg; } }

/* The book you can turn over (book page). */
.book3d--flip { cursor: pointer; max-width: 300px; margin-inline: auto; }
.book3d--flip .book3d__body { animation: book-idle 6s ease-in-out infinite; }
.book3d--flip.is-flipped .book3d__body { animation: none; transform: rotateY(180deg) rotateX(2deg); }
.book3d--flip:active .book3d__body { transition-duration: 300ms; }
@keyframes book-idle { 0%, 100% { transform: rotateY(-26deg) rotateX(4deg); } 50% { transform: rotateY(-14deg) rotateX(2deg); } }
.book3d--flip .book3d__back { display: flex; }
.book3d__hint { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 0.8125rem; font-weight: 700; color: var(--ink); box-shadow: 0 0 0 1px var(--color-border-soft); }
.js .book3d--flip { opacity: 0; transform: translateY(24px) scale(0.96); }
.js .book3d--flip.is-ready { opacity: 1; transform: none; transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-move); }
@media (prefers-reduced-motion: reduce) {
  .book3d--flip .book3d__body { animation: none; }
  .js .book3d--flip { opacity: 1; transform: none; }
}

/* Homepage shelf */
.shelf3d { list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 8px 4px 24px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf3d::-webkit-scrollbar { display: none; }
.shelf3d > li { scroll-snap-align: start; }
.shelf3d__item { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.shelf3d__item .book3d { width: 86%; margin: 6px auto 8px; }
.shelf3d__name { font-weight: 800; line-height: 1.35; font-size: 0.9375rem; }
.shelf3d__author { color: var(--color-text-3); font-size: 0.8125rem; }
@media (min-width: 900px) { .shelf3d { grid-auto-columns: minmax(170px, 1fr); grid-auto-flow: column; } }

/* Library cards */
.book-card--3d { display: grid; gap: 14px; padding: 18px 16px 16px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--color-border-soft); position: relative; }
.book-card--3d .book-card__stage { display: block; padding: 10px 14% 6px; }
.book-card--3d .pcard__flags { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
.book-card__private { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--note-bg); color: var(--clay-ink); font-size: 0.75rem; font-weight: 800; }
.book-card--3d .book-card__body { display: grid; gap: 6px; }
.book-card--3d .book-card__title { margin: 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.35; }
.book-card--3d .book-card__author { margin: 0; color: var(--color-text-3); font-size: 0.875rem; }
.book-card__blurb { margin: 0; font-size: 0.9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-card--3d .book-card__meta { margin: 0; color: var(--color-text-3); font-size: 0.8125rem; }
.book-card--3d .book-card__foot { margin: 6px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.book-card__buy { position: relative; z-index: 2; }
.book-card__soon { font-weight: 700; font-size: 0.875rem; }
.book-grid--3d { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ---------- Book page ---------- */
.bookp__hero { background: var(--grey-1); padding: 12px 0 clamp(3rem, 6vw, 5rem); }
.bookp__private { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--note-bg); color: var(--clay-ink); font-weight: 700; line-height: 1.5; }
.bookp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bookp__stage { padding: 20px 10% 64px; }
.bookp__kicker { display: table; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--lime); font-size: 0.8125rem; font-weight: 800; }
.bookp__title { margin: 0 0 8px; font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.25rem); font-weight: 900; line-height: 1.2; text-wrap: balance; }
.bookp__author { margin: 0 0 16px; color: var(--color-text-3); font-weight: 600; }
.bookp__lead { margin: 0 0 18px; font-size: var(--fs-lead); line-height: 1.6; max-width: 46ch; }
.bookp__facts { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bookp__facts li { display: grid; gap: 2px; min-width: 92px; padding: 10px 14px; border-radius: 16px; background: var(--paper); }
.bookp__facts span { font-size: 0.75rem; color: var(--color-text-3); }
.bookp__facts strong { font-size: 1rem; }
.bookp__buy { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 24px; background: var(--paper); }
.bookp__price { margin: 0; font-size: 2rem; font-weight: 900; }
.bookp__soon { margin: 0; font-size: 1.125rem; font-weight: 800; }
.bookp__cta { min-width: 220px; }
.bookp__note { margin: 0; color: var(--color-text-3); font-size: 0.875rem; }
.bookp__trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.875rem; font-weight: 600; }
.bookp__trust li { display: inline-flex; align-items: center; gap: 6px; }
.bookp__learn, .bookp__about, .bookp__how, .bookp__more { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.bookp__points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bookp__points li { display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: var(--night-2); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
.bookp__num { color: var(--signal); font-size: 2rem; font-weight: 900; line-height: 1; }
.bookp__about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: start; }
.bookp__about-grid .h-section { grid-row: span 2; }
.bookp__text p { margin: 0 0 1em; font-size: var(--fs-body); line-height: 1.8; max-width: 62ch; }
.bookp__details { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.bookp__details div { padding: 14px 16px; border-radius: 16px; background: var(--grey-1); }
.bookp__details dt { color: var(--color-text-3); font-size: 0.8125rem; }
.bookp__details dd { margin: 4px 0 0; font-weight: 700; }
.bookp__steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bookp__steps li { counter-increment: step; display: grid; gap: 8px; padding: 22px; border-radius: 24px; background: var(--paper); line-height: 1.55; }
.bookp__steps li::before { content: counter(step); font-size: 2.25rem; font-weight: 900; line-height: 1; }
.bookp__steps b { font-size: 1.125rem; }
.bookp__bar { display: none; }
@media (max-width: 860px) {
  .bookp__grid { grid-template-columns: 1fr; gap: 8px; }
  .bookp__stage { padding: 10px 18% 64px; }
  .bookp__info { text-align: start; }
  .bookp__about-grid { grid-template-columns: 1fr; }
  .bookp__about-grid .h-section { grid-row: auto; }
  .bookp__steps { grid-template-columns: 1fr; }
  .bookp__cta { width: 100%; }
  .bookp__buy { justify-items: stretch; }
  .bookp__bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: var(--night);
    color: var(--on-night);
  }
  .bookp__bar-price { font-weight: 900; color: var(--signal); font-size: 1.125rem; }
  .bookp { padding-bottom: 76px; }
}

/* ---------- Refinements after the first phone pass ---------- */
.qz-step__body { display: flex; flex-direction: column; flex: 1 0 auto; }
.qz-art { position: relative; margin: 18px 0 0; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--grey-1); }
.qz-step__body > .qz-art { margin-top: auto; }
.qz-step__body > .qz-opts, .qz-step__body > .qz-days { margin-bottom: 18px; }
.qz-art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.qz-step.is-current .qz-art__img { animation: qz-zoom 7s var(--ease-out) both; }
.qz:not([data-gender='female']) .qz-art__img--f, .qz[data-gender='female'] .qz-art__img--m { display: none; }
@media (max-height: 700px) { .qz-art { display: none; } }
.qz-nums { align-items: end; }
.qz-num input::placeholder { color: var(--color-text-3); font-size: 1rem; font-weight: 600; }
.qz-zones { grid-template-columns: minmax(0, 1fr) minmax(128px, 42%); }
@media (max-width: 700px) { .hero2__foot { bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .qz-step.is-current .qz-art__img { animation: none; } }
/* Arabic reads right to left: "now" sits on the right, so the projection runs right → left. */
:root[dir='rtl'] .qz-chart__svg { transform: scaleX(-1); }
/* Library cards on phones: one per row, the book beside its text. */
.book-card--3d .pcard__flags { position: static; display: flex; justify-content: center; margin-top: 12px; }
@media (max-width: 640px) {
  .book-grid:has(.book-card--3d) { grid-template-columns: 1fr; }
  .book-card--3d { grid-template-columns: 40% minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px; }
  .book-card--3d .book-card__stage { padding: 6px 4px 0; }
}

/* ---------- Dark mode details (tokens live in wp-v2.css) ---------- */
:root[data-theme='dark'] .qz-plan__list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecece8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
:root[data-theme='dark'] .book3d::after { background: rgb(0 0 0 / 0.55); }

/* Fixed educational note under the quiz (2026-11-08): always visible, small, never covers the answers. */
.qz__legal {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px var(--qz-pad);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--grey-2);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}
.qz--page .qz__legal { position: sticky; bottom: 0; z-index: 3; }

/* Checkout: the same note, plainly visible above the order button. */
.checkout-medical {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-inline-start: 3px solid var(--lime-deep);
  background: var(--grey-1);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
}

/* =====================================================================
   Third pass (2026-11-11): question first, tighter type, package step,
   silhouettes, water glasses, eight progress segments.
   ===================================================================== */
.qz__segs { grid-template-columns: repeat(var(--segs, 8), 1fr); gap: 3px; }
.qz__section { font-size: 0.75rem; color: var(--ink-2); margin-bottom: 5px; }
.qz-step__body { padding-top: 10px; }
.qz-step__title { margin: 4px 0 6px; font-size: clamp(1.375rem, 1rem + 1.9vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.qz-step__sub { margin-bottom: 16px; font-size: 0.9375rem; color: var(--ink-2); }
.qz-opt { min-height: 64px; padding: 10px 12px; gap: 12px; grid-template-columns: 44px minmax(0, 1fr) 28px; border-radius: 18px; }
.qz-opt__ic { width: 44px; height: 44px; }
.qz-opt__label { font-size: 1rem; font-weight: 600; }
.qz-opt__sub { font-size: 0.8125rem; }
.qz-opts { gap: 8px; }
.qz-photo__name, .hero3__person-name, .qz-fig__name { font-weight: 700; }

/* Package step */
.qz-pkgs { display: grid; gap: 10px; }
.qz-pkg {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  grid-template-areas: 'name price mark' 'per per mark';
  align-items: center;
  column-gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 2px solid var(--grey-2);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.qz-pkg__name { grid-area: name; font-size: 1.125rem; font-weight: 700; }
.qz-pkg__price { grid-area: price; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.qz-pkg__price s { color: var(--ink-2); font-size: 0.875rem; }
.qz-pkg__price strong { font-size: 1.25rem; font-weight: 700; }
.qz-pkg__per { grid-area: per; margin-top: 2px; color: var(--ink-2); font-size: 0.8125rem; }
.qz-pkg__mark { grid-area: mark; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink-2); }
.qz-pkg__mark .qz-ic { width: 20px; height: 20px; }
:root[dir='rtl'] .qz-pkg__mark .qz-ic { transform: scaleX(-1); }
.qz-pkg--suggest { background: var(--grey-1); border-color: transparent; grid-template-columns: minmax(0, 1fr) 28px; grid-template-areas: 'name mark' 'per mark'; }
.qz-pkg:active { transform: scale(0.98); }
.qz-pkg.is-chosen { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qz-pkg.is-chosen .qz-pkg__per, .qz-pkg.is-chosen .qz-pkg__price s { color: var(--grey-2); }
.qz-pkg.is-chosen .qz-pkg__mark { color: var(--lime); }
@media (hover: hover) { .qz-pkg:hover:not(.is-chosen) { border-color: var(--ink); } }

/* Silhouette cards */
.qz-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-fig {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--grey-1);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.qz-fig[hidden] { display: none; }
.qz-fig__art { display: block; height: clamp(120px, 24vh, 190px); }
.qz-fig__art--f, .qz[data-gender='female'] .qz-fig__art--m, .qz-fig__name--f, .qz[data-gender='female'] .qz-fig__name--m { display: none; }
.qz[data-gender='female'] .qz-fig__art--f { display: block; }
.qz[data-gender='female'] .qz-fig__name--f { display: inline; }
.qz-fig__svg { display: block; height: 100%; width: 100%; fill: var(--grey-2); transition: fill 200ms var(--ease-out); }
.qz-fig__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding-inline: 12px 8px; border-radius: 999px; background: var(--paper); font-size: 0.9375rem; }
.qz-fig__name .qz-ic { width: 18px; height: 18px; color: var(--ink-2); }
:root[dir='rtl'] .qz-fig__name .qz-ic { transform: scaleX(-1); }
.qz-fig:active { transform: scale(0.97); }
.qz-fig.is-chosen { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qz-fig.is-chosen .qz-fig__svg { fill: var(--lime); }
.qz-fig.is-chosen .qz-fig__name { background: var(--lime); color: var(--ink); }
.qz-fig.is-chosen .qz-fig__name .qz-ic { color: var(--ink); }
@media (hover: hover) { .qz-fig:hover:not(.is-chosen) { border-color: var(--ink); } .qz-fig:hover .qz-fig__svg { fill: var(--ink-2); } }
@media (max-height: 760px) { .qz-fig__art { height: 112px; } }

/* Water glasses */
.qz-cups__total { margin: 0 0 10px; min-height: 1.4em; text-align: center; font-weight: 700; color: var(--ink); }
.qz-cups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 6px; margin: 0 auto 16px; max-width: 280px; } /* 20 glasses (5 L) fit on a phone */
.qz-cup { padding: 4px; border: 0; background: none; cursor: pointer; transition: transform 200ms var(--ease-out); }
.qz-cup svg { display: block; width: 100%; height: auto; overflow: visible; }
.qz-cup__line { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
.qz-cup__fill { fill: var(--grey-1); transition: fill 200ms var(--ease-out); }
.qz-cup.is-on .qz-cup__fill { fill: var(--lime-deep); }
.qz-cup.is-on .qz-cup__line { stroke: var(--ink); }
.qz-cup:active { transform: scale(0.9); }
.qz-zero {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 56px; padding-inline: 18px 14px;
  border: 2px solid var(--grey-2); border-radius: 999px; background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.qz-zero .qz-ic { width: 20px; height: 20px; }
:root[dir='rtl'] .qz-zero .qz-ic { transform: scaleX(-1); }
.qz-zero.is-chosen { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Result: the chosen package first and large, the other one small under it */
.qz-ticket--main { background: var(--night); color: var(--on-night); }
.qz-ticket--main .qz-ticket__k { color: var(--signal); }
.qz-ticket--main .qz-ticket__why { color: var(--on-night-2); }
.qz-ticket--main .qz-ticket__price strong { color: var(--on-night); }
.qz-ticket--main .qz-ticket__price s { color: var(--on-night-2); font-size: 1rem; font-weight: 600; }
.qz-ticket--main .qz-ticket__price span { color: var(--on-night-2); }
.qz-ticket--main .qz-pay--block { background: var(--lime); color: var(--ink); }
.qz-ticket--main .qz-ticket__more { color: var(--on-night); }
.qz-ticket--alt { margin-top: 12px; padding: 16px 18px; background: var(--grey-1); animation-delay: 350ms; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'k k' 'name price' 'pay pay' 'more more'; gap: 4px 12px; text-align: start; }
.qz-ticket--alt .qz-ticket__k { grid-area: k; color: var(--ink-2); }
.qz-ticket--alt .qz-ticket__name { grid-area: name; font-size: 1.125rem; }
.qz-ticket--alt .qz-ticket__price { grid-area: price; flex-direction: row; align-items: baseline; gap: 6px; margin: 0; }
.qz-ticket--alt .qz-ticket__price strong { font-size: 1.375rem; }
.qz-ticket--alt .qz-ticket__price s { font-size: 0.8125rem; color: var(--ink-2); }
.qz-ticket--alt .qz-pay--block { grid-area: pay; min-height: 48px; margin-top: 8px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); }
.qz-ticket--alt .qz-ticket__more { grid-area: more; margin-top: 6px; font-size: 0.875rem; }
.qz-ticket__name { font-size: 1.5rem; font-weight: 700; }
.qz-ticket__price strong { font-size: 2rem; font-weight: 700; }
.qz-res__title { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.6rem); font-weight: 700; }
.qz-stat__v { font-size: 1.25rem; font-weight: 700; }
.qz-stat--bmi .qz-stat__v { font-size: 1.75rem; }
.qz-day__n { font-weight: 700; }
.qz-load__pct { font-weight: 700; }

/* Checkout: the package being bought, above the form */
.checkout-package { margin: 0 0 16px; padding: 16px 18px; border-radius: 18px; background: var(--night); color: var(--on-night); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'k k' 'name price' 'other other'; gap: 2px 12px; align-items: baseline; }
.checkout-package__k { grid-area: k; margin: 0; color: var(--signal); font-size: 0.8125rem; font-weight: 600; }
.checkout-package__name { grid-area: name; margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.checkout-package__price { grid-area: price; margin: 0; font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.checkout-package__price del { color: var(--on-night-2); font-size: 0.875rem; font-weight: 500; margin-inline-end: 6px; }
.checkout-package__note { grid-column: 1 / -1; margin: 6px 0 0; color: var(--on-night-2); font-size: 0.875rem; line-height: 1.6; }
.checkout-package__price ins { text-decoration: none; }
.checkout-package__other { grid-area: other; margin-top: 8px; color: var(--on-night-2); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pass 4 (2026-11-12): sliders instead of typing, body photos, the automated plan ---------- */
.qz-sliders { display: grid; gap: 18px; }
.qz-slider[hidden] { display: none; }
.qz-slider__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.qz-slider__head label { font-weight: 600; }
.qz-slider__val { font-weight: 700; color: var(--ink); }
.qz-slider__val b { font-size: 1.75rem; font-weight: 700; }
.qz-slider__val small { font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.qz-slider__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.qz-slider__btn { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--grey-1); color: var(--ink); font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; }
.qz-slider__btn:active { transform: scale(0.92); }
.qz-slider input[type='range'] { width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.qz-slider input[type='range']::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--grey-2) var(--p, 50%)); }
.qz-slider input[type='range']::-moz-range-track { height: 10px; border-radius: 999px; background: var(--grey-2); }
.qz-slider input[type='range']::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--ink); }
.qz-slider input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); box-shadow: 0 2px 8px rgb(0 0 0 / 0.2); }
.qz-slider input[type='range']::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 3px solid var(--ink); }
.qz-slider input[type='range']:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 4px; border-radius: 999px; }
.qz-fig__photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 14px; }
.qz-planform { margin-top: 20px; padding: 20px; border-radius: 24px; background: var(--night); color: var(--on-night); text-align: center; }
.qz-planform__note { margin: 0 0 14px; color: var(--on-night-2); line-height: 1.6; }
.qz-planform .qz-pay--block { background: var(--lime); color: var(--ink); }

/* Dashboard card */
.coach-autoplan { margin-top: var(--space-8); }
.coach-autoplan__grid { display: grid; gap: 12px; }
.coach-autoplan__file, .coach-autoplan__form { display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: var(--grey-1); justify-items: start; }
.coach-autoplan__file { background: var(--night); color: var(--on-night); }
.coach-autoplan__k { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.coach-autoplan__file .coach-autoplan__k { color: var(--signal); }
.coach-autoplan__ref { margin: 0; font-size: 1.25rem; font-weight: 700; }
.coach-autoplan__date { margin: 0 0 6px; color: var(--on-night-2); font-size: 0.9rem; }
.coach-autoplan__form p { margin: 0; line-height: 1.6; }
.coach-autoplan__note { margin: 10px 0 0; color: var(--ink-2); font-size: 0.875rem; }
@media (min-width: 700px) { .coach-autoplan__grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Automated plan (2026-11-13): instant-plan card, review screen, PDF block.
   ========================================================================== */
.qz-pkg--instant { border-color: var(--lime-deep); background: var(--lime); }
.qz-pkg--instant .qz-pkg__price strong { font-size: 1rem; }
@media (hover: hover) { .qz-pkg--instant:hover:not(.is-chosen) { border-color: var(--ink); } }

.qz-review { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--color-border); }
.qz-review li { margin: 0; }
.qz-review__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'k e' 'v e';
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.qz-review__k { grid-area: k; color: var(--ink-2); font-size: 0.8125rem; }
.qz-review__v { grid-area: v; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.qz-review__e { grid-area: e; font-size: 0.875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.qz-review__row:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.qz-namefield { display: grid; gap: 6px; margin-top: 18px; }
.qz-namefield span { font-weight: 700; }
.qz-namefield input {
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--grey-2);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.qz-namefield input:focus { outline: none; border-color: var(--ink); }
.qz-namefield small { color: var(--color-text-3); font-size: 0.8125rem; }
.qz-review__kind { margin: 16px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--grey-1); line-height: 1.6; font-size: 0.9375rem; }
.qz-review__kind:empty { display: none; }
.qz-step__cta--two { display: grid; gap: 8px; }
.qz-edit {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.qz-pdf { margin-top: 20px; padding: 20px; border-radius: 24px; background: var(--night); color: var(--on-night); }
.qz-pdf__k { margin: 0; color: var(--signal); font-size: 0.875rem; font-weight: 700; }
.qz-pdf__title { margin: 2px 0 10px; font-size: 1.5rem; font-weight: 900; line-height: 1.25; }
.qz-pdf__points { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.qz-pdf__points li { position: relative; padding-inline-start: 22px; line-height: 1.5; }
.qz-pdf__points li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.qz-pdf__note { margin: 0 0 14px; color: var(--on-night-2); line-height: 1.6; font-size: 0.9375rem; }
.qz-pdf .qz-pay--block { background: var(--lime); color: var(--ink); }
.qz-pdf .qz-pay--block:disabled { opacity: 0.7; cursor: progress; }
.qz-pdf__status { margin: 12px 0 0; min-height: 1.5em; text-align: center; line-height: 1.6; }
.qz-pdf__status.is-error { color: #f3c1a6; }
.qz-pdf__status .qz-link, .qz-pdf__link { color: var(--on-night); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Zones step over a real photo (assets/img/body/{gender}-zones.jpg): the tap areas are see-through until chosen. */
.qz-zphoto { position: relative; max-height: 52vh; aspect-ratio: 120 / 262; margin: 0 auto; }
.qz-zphoto__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.qz-zphoto .qz-fig__art--f { display: none; }
.qz[data-gender='female'] .qz-zphoto .qz-fig__art--f { display: block; }
.qz[data-gender='female'] .qz-zphoto .qz-fig__art--m { display: none; }
.qz-figure--photo { position: absolute; inset: 0; max-height: none; height: 100%; }
.qz-figure--photo .qz-figure__head, .qz-figure--photo .qz-figure__neck, .qz-figure--photo .qz-figure__plain { display: none; }
.qz-figure--photo .qz-z { fill: transparent; }
.qz-figure--photo .qz-z.is-on { fill: rgba(169, 214, 185, 0.5); stroke: var(--ink); }

/* =====================================================================
   2026-11-17 (KynexMove): one measurement per screen with a note under the answer,
   and the result as a wellness profile (BMI scale, facts, body photo), now vs goal,
   and a weight projection to a date. Layout and type follow the existing quiz.
   ===================================================================== */
.qz-measure { margin: 8px 0 18px; }
.qz-measure__val { display: block; text-align: center; margin: 4px 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--grey-2); }
.qz-measure__val b { font-size: clamp(3rem, 2.4rem + 3vw, 3.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.qz-measure__val small { margin-inline-start: 6px; font-size: 1.25rem; font-weight: 600; color: var(--ink-2); }
.qz-hint { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px 12px; padding: 16px 18px; border-radius: 20px; background: var(--grey-1); border: 1px solid var(--color-border-soft); }
.qz-hint__ic .qz-ic { width: 24px; height: 24px; color: var(--lime-deep); }
.qz-hint__t { margin: 0 0 4px; font-weight: 700; line-height: 1.5; }
.qz-hint__t[hidden] { display: none; }
.qz-hint__x { margin: 0; color: var(--ink-2); line-height: 1.7; font-size: 0.9375rem; }
.qz-hint.is-warn { background: var(--note-bg); border-color: var(--clay-2); }
.qz-hint.is-warn .qz-hint__ic .qz-ic { color: var(--clay); }
.qz-step--measure.is-current .qz-hint { animation: qz-rise 420ms var(--ease-out) both; }

/* Wellness profile */
.qz-prof { margin-top: 6px; padding: 18px; border-radius: 24px; background: var(--night); color: var(--on-night); overflow: hidden; }
.qz-prof__k { margin: 0 0 52px; font-weight: 700; font-size: 1.0625rem; }
.qz-bmi[hidden] { display: none; }
.qz-bmi__scale { position: relative; height: 12px; margin: 0 6px; }
.qz-bmi__bar { position: absolute; inset: 0; border-radius: 999px; background: linear-gradient(90deg, #6ec6f0 0%, #7fd9a0 14%, #b8e07a 36%, #f1d35a 52%, #f2a24a 70%, #ef6a5a 100%); }
.qz-bmi__pin { position: absolute; top: 50%; left: calc(var(--x, 0.5) * 100%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(0 0 0 / 0.25); }
.qz-bmi__pin b { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(clamp(-90%, -50%, -10%)); padding: 5px 10px; border-radius: 10px; background: var(--on-night); color: var(--night); font-size: 0.875rem; font-weight: 700; white-space: nowrap; }
.qz-bmi__pin b::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--on-night); }
.qz-step--result.is-current .qz-bmi__pin { animation: qz-pin 1100ms var(--ease-move) 200ms both; }
@keyframes qz-pin { from { left: 0; } }
.qz-bmi__ticks { position: relative; height: 18px; margin: 8px 6px 0; color: var(--on-night-2); font-size: 0.75rem; font-weight: 600; }
.qz-bmi__ticks span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); }
.qz-bmi__ticks span:first-child { transform: none; }
.qz-bmi__ticks span:last-child { transform: translateX(-100%); }
.qz-bmi__cats { display: grid; grid-template-columns: 14fr 26fr 20fr 40fr; margin: 4px 6px 0; color: var(--on-night-2); font-size: 0.75rem; font-weight: 600; text-align: center; }
.qz-bmi[data-cat="0"] [data-cat="0"], .qz-bmi[data-cat="1"] [data-cat="1"], .qz-bmi[data-cat="2"] [data-cat="2"], .qz-bmi[data-cat="3"] [data-cat="3"] { color: var(--on-night); }
.qz-risk { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgb(201 135 60 / 0.18); border: 1px solid rgb(229 170 90 / 0.55); }
.qz-risk[hidden] { display: none; }
.qz-risk__ic .qz-ic { width: 22px; height: 22px; color: #f0b45c; }
.qz-risk__t { margin: 0 0 4px; font-weight: 700; }
.qz-risk__x { margin: 0; color: var(--on-night-2); font-size: 0.875rem; line-height: 1.7; }
.qz-prof__grid { display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 12px; align-items: end; margin-top: 18px; }
.qz-prof__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; align-self: center; }
.qz-prof__rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; }
.qz-prof__ic .qz-ic { width: 26px; height: 26px; color: var(--on-night-2); }
.qz-prof__tx small { display: block; color: var(--on-night-2); font-size: 0.8125rem; }
.qz-prof__tx b { display: block; font-size: 1.0625rem; line-height: 1.35; }
.qz-prof__photo { margin: 0 0 -18px; align-self: stretch; border-radius: 16px 16px 0 0; overflow: hidden; }
.qz-prof__photo[hidden] { display: none; }
.qz-prof__photo img { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: top center; }
.qz-prof__grid:has(.qz-prof__photo[hidden]) { grid-template-columns: 1fr; }

/* Now vs goal */
.qz-vs { margin-top: 12px; padding: 12px; border-radius: 24px; background: var(--grey-1); }
.qz-vs[hidden] { display: none; }
.qz-vs__tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--paper); font-weight: 700; text-align: center; }
.qz-vs__tabs span { padding: 10px 6px; }
.qz-vs__tabs span + span { border-inline-start: 1px solid var(--grey-2); color: var(--lime-deep); }
.qz-vs__pics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qz-vs__pics figure { margin: 0; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--grey-2); }
.qz-vs__pics img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.qz-vs__arrow { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); }
.qz-vs__arrow .qz-ic { width: 20px; height: 20px; }
:root[dir="rtl"] .qz-vs__arrow .qz-ic { transform: scaleX(-1); }
.qz-vs__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; padding: 0 4px 4px; }
.qz-vs__col { display: grid; gap: 14px; }
.qz-vs__col + .qz-vs__col { padding-inline-start: 16px; border-inline-start: 1px solid var(--grey-2); }
.qz-vs__item small { display: block; color: var(--ink-2); font-size: 0.8125rem; }
.qz-vs__item b { display: block; margin: 2px 0 6px; font-size: 1rem; }
.qz-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.qz-bars i { height: 6px; border-radius: 99px; background: var(--grey-2); }
.qz-bars i.is-on { background: var(--ink); }
.qz-vs__col + .qz-vs__col .qz-bars i.is-on { background: var(--lime-deep); }

/* Projection */
.qz-proj { margin: 12px 0 0; padding: 18px 16px 14px; border-radius: 24px; background: var(--night); color: var(--on-night); }
.qz-proj[hidden] { display: none; }
.qz-proj__head { margin-bottom: 12px; font-weight: 700; font-size: 1.125rem; line-height: 1.5; text-align: center; }
.qz-proj__plot { position: relative; }
.qz-proj__svg { display: block; width: 100%; height: auto; overflow: visible; }
.qz-proj__grid { stroke: rgb(255 255 255 / 0.12); stroke-width: 1; }
.qz-proj__y { fill: var(--on-night-2); font-size: 12px; font-weight: 600; font-family: inherit; }
.qz-proj__line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.qz-proj__dot { fill: #fff; stroke: var(--night); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.qz-proj__tag { position: absolute; left: var(--tx); top: var(--ty); transform: translate(-85%, calc(-100% - 16px)); padding: 6px 10px; border-radius: 10px; background: var(--on-night); color: var(--night); font-size: 0.8125rem; font-weight: 700; white-space: nowrap; opacity: 0; }
.qz-proj__tag::after { content: ''; position: absolute; top: 100%; right: 12%; border: 6px solid transparent; border-top-color: var(--on-night); }
.qz-proj.is-drawn .qz-proj__line { animation: qz-draw 1600ms var(--ease-move) 250ms forwards; }
.qz-proj.is-drawn .qz-proj__dot { animation: qz-dot 500ms var(--ease-out) 1700ms forwards; }
.qz-proj.is-drawn .qz-proj__tag { animation: qz-fade 400ms ease 1900ms forwards; }
.qz-proj__axis { display: flex; justify-content: space-between; margin: 6px 0 0 44px; color: var(--on-night-2); font-size: 0.8125rem; font-weight: 600; }
.qz-proj__note { margin: 12px 0 0; color: var(--on-night-2); font-size: 0.75rem; line-height: 1.6; }
.qz-stats--3 { margin-top: 12px; }
.qz-paybar [hidden] { display: none; }

@media (min-width: 720px) {
  .qz-prof__grid { grid-template-columns: minmax(0, 1fr) 38%; }
  .qz-prof__photo img { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-step--result.is-current .qz-bmi__pin, .qz-step--measure.is-current .qz-hint { animation: none !important; }
  .qz-proj__line { stroke-dashoffset: 0; animation: none !important; }
  .qz-proj__dot, .qz-proj__tag { opacity: 1; animation: none !important; }
}
/* The slider grows to the right, so its row stays left-to-right in Arabic too: minus on the left, plus on the right. */
.qz-slider__row { direction: ltr; }
