/* ═══════════════════════════════════════════════════════════════
   REGIMENS · LIVING SPECTRUM LAYER
   Scope: body.regimens-page.living-spectrum-page (this page only).
   Shares the canvas, nav glass, and card glass recipes with
   shop-spectrum.css; keep the recipes in sync by hand.
   ═══════════════════════════════════════════════════════════════ */

body.regimens-page.living-spectrum-page {
  --ls-canvas: #07090c;
  --ls-platinum: #f1f2f0;
  --ls-platinum-muted: rgba(235, 238, 240, 0.68);
  --ls-cobalt: 57, 137, 255;
  --ls-amber: 239, 157, 68;
  --ls-ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  background:
    radial-gradient(ellipse 82vw 72vh at -12% 22%, rgba(var(--ls-cobalt), 0.12), transparent 68%),
    radial-gradient(ellipse 78vw 76vh at 112% 78%, rgba(var(--ls-amber), 0.1), transparent 70%),
    linear-gradient(180deg, #06080b 0%, #0a0e14 38%, #100d0c 72%, #07090c 100%);
  color: var(--ls-platinum-muted);
}

body.regimens-page.living-spectrum-page main {
  background: transparent;
}

/* Pillar accents */
body.regimens-page.living-spectrum-page .rg-theatre[data-pillar='1'] { --pa: #7A8A98; }
body.regimens-page.living-spectrum-page .rg-theatre[data-pillar='2'] { --pa: #C9B99A; }
body.regimens-page.living-spectrum-page .rg-theatre[data-pillar='3'] { --pa: #A8B4A0; }
body.regimens-page.living-spectrum-page .rg-theatre[data-pillar='4'] { --pa: #B8A8B8; }
body.regimens-page.living-spectrum-page .rg-theatre[data-pillar='5'] { --pa: #C4A962; }

/* ── Nav: transparent, glass once scrolled ── */

body.regimens-page.living-spectrum-page .site-nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background-color 380ms var(--ls-ease), border-color 380ms var(--ls-ease);
}

body.regimens-page.living-spectrum-page .site-nav.is-scrolled {
  background: rgba(6, 8, 11, 0.94);
  border-bottom: 1px solid rgba(241, 242, 240, 0.06);
}

body.regimens-page.living-spectrum-page .logo {
  color: var(--ls-platinum);
}

body.regimens-page.living-spectrum-page .logo::before {
  display: none;
}

body.regimens-page.living-spectrum-page .nav-center a {
  padding: 4px 2px;
  color: var(--ls-platinum-muted);
  opacity: 1;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.regimens-page.living-spectrum-page .nav-center a:hover,
body.regimens-page.living-spectrum-page .nav-center a.active {
  color: var(--ls-platinum);
  opacity: 1;
}

body.regimens-page.living-spectrum-page .nav-cart-btn {
  min-height: 40px;
  padding: 0 22px;
  background: rgba(241, 242, 240, 0.05);
  border: 1px solid rgba(241, 242, 240, 0.16);
  border-radius: 999px;
  color: var(--ls-platinum);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

body.regimens-page.living-spectrum-page .nav-cart-btn:hover {
  background: rgba(241, 242, 240, 0.09);
  border-color: rgba(241, 242, 240, 0.3);
}

/* ── Hero ── */

body.regimens-page.living-spectrum-page .rg-hero {
  padding: clamp(150px, 22vh, 260px) 24px clamp(40px, 6vh, 72px);
  text-align: center;
}

body.regimens-page.living-spectrum-page .rg-hero__copy {
  max-width: 760px;
  margin: 0 auto;
}

body.regimens-page.living-spectrum-page .rg-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: rgba(235, 238, 240, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.regimens-page.living-spectrum-page .rg-title {
  margin: 0 0 20px;
  color: var(--ls-platinum);
  font-size: clamp(50px, 4.8vw, 70px);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

body.regimens-page.living-spectrum-page .rg-subtitle {
  max-width: 52ch;
  margin: 0 auto 30px;
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 300;
  line-height: 1.72;
  text-wrap: balance;
}

body.regimens-page.living-spectrum-page .rg-hero__meta {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
}

body.regimens-page.living-spectrum-page .rg-hero__meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.48);
}

body.regimens-page.living-spectrum-page .rg-hero__meta b {
  display: block;
  margin-bottom: 6px;
  color: var(--ls-platinum);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 200;
}

/* ── The theatres: one regimen per viewport, snap scrolled ── */

html:has(body.regimens-page.living-spectrum-page) {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
  background-color: #07090c;
}

body.regimens-page.living-spectrum-page .rg-hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
}

body.regimens-page.living-spectrum-page .rg-theatres {
  display: flex;
  flex-direction: column;
}

body.regimens-page.living-spectrum-page .rg-theatre {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(76px, 8vh, 104px) clamp(20px, 2.6vw, 44px) clamp(20px, 3vh, 40px);
  scroll-snap-align: start;
}

body.regimens-page.living-spectrum-page .rg-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  min-height: min(calc(100vh - clamp(120px, 14vh, 180px)), 940px);
  padding: clamp(28px, 3vw, 48px) clamp(28px, 3.2vw, 56px);
  border-radius: clamp(22px, 2.2vw, 32px);
  background:
    linear-gradient(135deg, rgba(235, 242, 248, 0.09) 0%, rgba(180, 198, 215, 0.03) 38%, rgba(255, 255, 255, 0.016) 62%, rgba(230, 181, 132, 0.05) 100%),
    rgba(12, 16, 22, 0.3);
  backdrop-filter: blur(26px) saturate(150%) brightness(1.05);
  -webkit-backdrop-filter: blur(26px) saturate(150%) brightness(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(255, 255, 255, 0.03) inset,
    -22px 26px 90px rgba(19, 57, 102, 0.17),
    24px 32px 96px rgba(91, 52, 25, 0.13),
    0 28px 56px rgba(0, 0, 0, 0.32);
  isolation: isolate;
  overflow: hidden;
}

body.regimens-page.living-spectrum-page .rg-shell::before {
  content: '';
  position: absolute;
  z-index: 5;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.09) 24%, rgba(255, 255, 255, 0.025) 50%, rgba(255, 255, 255, 0.11) 78%, rgba(255, 235, 216, 0.25) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

 .rg-theatre:nth-of-type(even) .rg-shell .rg-theatre__stage {
  order: 2;
}

/* Stage: the regimen's vials large on a pillar-lit field */
body.regimens-page.living-spectrum-page .rg-theatre__stage {
  position: relative;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 42vh, 520px);
}

body.regimens-page.living-spectrum-page .rg-theatre__glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(56% 48% at 50% 58%, color-mix(in srgb, var(--pa, #7A8A98) 30%, transparent), transparent 70%);
  filter: blur(44px);
  pointer-events: none;
  animation: rg-glow-breathe 11s ease-in-out infinite;
}

@keyframes rg-glow-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

body.regimens-page.living-spectrum-page .rg-theatre__vials {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.regimens-page.living-spectrum-page .rg-theatre__vials img {
  width: clamp(140px, 11.5vw, 210px);
  height: auto;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.55));
  animation: rg-vial-float 6.4s ease-in-out infinite;
}

body.regimens-page.living-spectrum-page .rg-theatre__vials img:nth-child(even) {
  animation-delay: -3.2s;
}

body.regimens-page.living-spectrum-page .rg-theatre__vials img:not(:first-child) {
  margin-left: clamp(-44px, -3vw, -24px);
}

body.regimens-page.living-spectrum-page .rg-theatre__vials img:nth-child(1) { transform: rotate(-4deg) translateY(6px); }
body.regimens-page.living-spectrum-page .rg-theatre__vials img:nth-child(2) { transform: rotate(2.5deg); z-index: 2; }
body.regimens-page.living-spectrum-page .rg-theatre__vials img:nth-child(3) { transform: rotate(6deg) translateY(10px); }
body.regimens-page.living-spectrum-page .rg-theatre__vials img:nth-child(4) { transform: rotate(-2.5deg) translateY(4px); }

@keyframes rg-vial-float {
  0%, 100% { translate: 0 -6px; }
  50% { translate: 0 6px; }
}

/* Copy: title card over the story and the manifest */
body.regimens-page.living-spectrum-page .rg-theatre__copy {
  grid-row: 1;
  min-width: 0;
  padding: 0 clamp(8px, 1.5vw, 24px);
}

body.regimens-page.living-spectrum-page .rg-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: rgba(235, 238, 240, 0.6);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.regimens-page.living-spectrum-page .rg-kicker__ix {
  color: rgba(235, 238, 240, 0.38);
}

body.regimens-page.living-spectrum-page .rg-kicker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pa, #7A8A98);
}

body.regimens-page.living-spectrum-page .rg-name {
  margin: 0 0 16px;
  color: var(--ls-platinum);
  font-size: clamp(44px, 4vw, 66px);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

body.regimens-page.living-spectrum-page .rg-lede {
  max-width: 54ch;
  margin: 0 0 clamp(22px, 2.6vh, 34px);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(222, 228, 233, 0.74);
}

/* Manifest: each compound as a small glass artifact */
body.regimens-page.living-spectrum-page .rg-manifest {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.regimens-page.living-spectrum-page .rg-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(241, 242, 240, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(235, 242, 248, 0.07), rgba(255, 255, 255, 0.015) 60%),
    rgba(12, 16, 22, 0.4);
  color: inherit;
  cursor: pointer;
  transition: border-color 240ms ease, background-color 240ms ease, transform 380ms var(--ls-ease);
}

body.regimens-page.living-spectrum-page .rg-chip:hover {
  border-color: rgba(241, 242, 240, 0.34);
  transform: translateY(-2px);
}

body.regimens-page.living-spectrum-page .rg-chip__vial {
  width: 30px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

body.regimens-page.living-spectrum-page .rg-chip__text {
  text-align: left;
}

body.regimens-page.living-spectrum-page .rg-chip__text b {
  display: block;
  color: rgba(241, 242, 240, 0.92);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

body.regimens-page.living-spectrum-page .rg-chip__text i {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
}

body.regimens-page.living-spectrum-page .rg-chip__go {
  margin-left: 6px;
  color: rgba(235, 238, 240, 0.56);
  font-size: 15px;
  transition: color 200ms ease, transform 380ms var(--ls-ease);
}

body.regimens-page.living-spectrum-page .rg-chip:hover .rg-chip__go {
  color: var(--ls-platinum);
  transform: translateX(3px);
}

/* Dock: the order rail pinned across the theatre floor */
body.regimens-page.living-spectrum-page .rg-dock {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(18px, 2vh, 28px);
  padding: clamp(16px, 1.8vw, 24px) clamp(20px, 2.4vw, 32px);
  border: 1px solid rgba(241, 242, 240, 0.13);
  border-radius: 18px;
  background: rgba(241, 242, 240, 0.024);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

body.regimens-page.living-spectrum-page .rg-length {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(241, 242, 240, 0.85);
  max-width: 22ch;
}

body.regimens-page.living-spectrum-page .rg-length span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(235, 238, 240, 0.56);
}

body.regimens-page.living-spectrum-page .rg-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

body.regimens-page.living-spectrum-page .rg-price__supply {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

body.regimens-page.living-spectrum-page .rg-price__supply b {
  font-weight: 400;
  color: rgba(235, 238, 240, 0.56);
  text-decoration: line-through;
  text-decoration-color: rgba(235, 238, 240, 0.56);
}

body.regimens-page.living-spectrum-page .rg-price__total {
  margin: 0;
  color: var(--ls-platinum);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(34px, 2.6vw, 44px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.regimens-page.living-spectrum-page .rg-price__total .cur {
  font-size: 0.5em;
  vertical-align: super;
  opacity: 0.6;
  margin-right: 2px;
}

body.regimens-page.living-spectrum-page .rg-price__save {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 180, 160, 0.9);
}

body.regimens-page.living-spectrum-page .rg-add {
  margin-left: auto;
  min-height: 54px;
  padding: 0 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(239, 241, 240, 0.94);
  color: var(--ls-canvas);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 380ms var(--ls-ease);
}

body.regimens-page.living-spectrum-page .rg-add:hover {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

body.regimens-page.living-spectrum-page .rg-add.is-added {
  background: transparent;
  box-shadow: 0 0 0 1px rgba(241, 242, 240, 0.3) inset;
  color: var(--ls-platinum);
}

@media (max-width: 900px) {
  body.regimens-page.living-spectrum-page .rg-theatre {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: auto;
    padding-top: clamp(60px, 8vh, 90px);
  }

  body.regimens-page.living-spectrum-page .rg-theatre:nth-of-type(even) .rg-shell .rg-theatre__stage {
    order: 0;
  }

  body.regimens-page.living-spectrum-page .rg-theatre__stage {
    grid-row: auto;
    min-height: 240px;
  }

  body.regimens-page.living-spectrum-page .rg-theatre__vials img {
    width: clamp(104px, 24vw, 150px);
  }

  body.regimens-page.living-spectrum-page .rg-theatre__copy {
    grid-row: auto;
  }

  body.regimens-page.living-spectrum-page .rg-dock {
    grid-column: 1;
    grid-row: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 17, 23, 0.92);
  }

  body.regimens-page.living-spectrum-page .rg-add {
    flex: 1 1 100%;
    margin-left: 0;
  }

  html:has(body.regimens-page.living-spectrum-page) {
    scroll-snap-type: none;
  }
}

/* ── Close ── */

body.regimens-page.living-spectrum-page .rg-close {
  scroll-snap-align: start;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(30px, 5vh, 60px) 24px clamp(70px, 9vh, 110px);
  text-align: center;
}

body.regimens-page.living-spectrum-page .rg-close h2 {
  margin: 0 0 14px;
  color: var(--ls-platinum);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 200;
  letter-spacing: -0.03em;
}

body.regimens-page.living-spectrum-page .rg-close p {
  margin: 0 auto 26px;
  max-width: 48ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
}

body.regimens-page.living-spectrum-page .rg-close__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}


/* ── Side rail: fixed regimen ledger, shop-sidebar grammar ── */

body.regimens-page.living-spectrum-page .regimen-rail {
  position: fixed;
  top: 72px;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  width: 210px;
  height: calc(100vh - 72px);
  margin: 0;
  padding: 40px 0 40px clamp(20px, 1.8vw, 32px);
  border: 0;
  background: linear-gradient(180deg, transparent, rgba(241, 242, 240, 0.1) 15%, rgba(241, 242, 240, 0.1) 85%, transparent) right / 1px 100% no-repeat;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transform: none;
}

body.regimens-page.living-spectrum-page .regimen-rail__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  margin: 0;
  gap: 10px;
  padding: 9px 4px;
  border: 0;
  background: none;
  color: rgba(235, 238, 240, 0.56);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 240ms ease;
}

body.regimens-page.living-spectrum-page .regimen-rail__item:hover {
  color: rgba(241, 242, 240, 0.8);
}

body.regimens-page.living-spectrum-page .regimen-rail__item.active {
  color: var(--ls-platinum);
}

body.regimens-page.living-spectrum-page .regimen-rail__item::after {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--ls-platinum);
  transform: translateY(-50%);
  transition: height 320ms var(--ls-ease);
}

body.regimens-page.living-spectrum-page .regimen-rail__item.active::after {
  height: 70%;
}

body.regimens-page.living-spectrum-page .regimen-rail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(235, 238, 240, 0.25);
  flex: 0 0 auto;
  transition: background-color 240ms ease;
}

body.regimens-page.living-spectrum-page .regimen-rail__item[data-pillar='1'] .regimen-rail__dot { background: #7A8A98; }
body.regimens-page.living-spectrum-page .regimen-rail__item[data-pillar='2'] .regimen-rail__dot { background: #C9B99A; }
body.regimens-page.living-spectrum-page .regimen-rail__item[data-pillar='3'] .regimen-rail__dot { background: #A8B4A0; }
body.regimens-page.living-spectrum-page .regimen-rail__item[data-pillar='4'] .regimen-rail__dot { background: #B8A8B8; }
body.regimens-page.living-spectrum-page .regimen-rail__item[data-pillar='5'] .regimen-rail__dot { background: #C4A962; }

body.regimens-page.living-spectrum-page .regimen-rail__counter {
  margin: 14px 0 0;
  padding: 12px 4px 0;
  border-top: 1px solid rgba(241, 242, 240, 0.08);
  color: rgba(235, 238, 240, 0.56);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Content reserves the rail's lane, shop-style. */
@media (min-width: 1181px) {
  body.regimens-page.living-spectrum-page .rg-hero,
  body.regimens-page.living-spectrum-page .rg-theatres,
  body.regimens-page.living-spectrum-page .rg-close {
    margin-left: 210px;
  }
}

@media (max-width: 1180px) {
  body.regimens-page.living-spectrum-page .regimen-rail {
    display: none;
  }
}


/* Hero index: live table of contents */
body.regimens-page.living-spectrum-page .rg-index {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 34px auto 0;
  text-align: left;
}

body.regimens-page.living-spectrum-page .rg-index__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: baseline;
  gap: 18px;
  padding: 12px 6px;
  border: 0;
  background: linear-gradient(90deg, rgba(224, 231, 237, 0.1), rgba(224, 231, 237, 0.03) 70%, transparent) top / 100% 1px no-repeat;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease;
}

body.regimens-page.living-spectrum-page .rg-index__row:first-child {
  background: none;
}

body.regimens-page.living-spectrum-page .rg-index__row:hover {
  background-color: rgba(241, 242, 240, 0.03);
}

body.regimens-page.living-spectrum-page .rg-index__name {
  color: var(--ls-platinum);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

body.regimens-page.living-spectrum-page .rg-index__goal {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.regimens-page.living-spectrum-page .rg-index__price {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 300;
  color: rgba(241, 242, 240, 0.88);
  font-variant-numeric: tabular-nums;
}


/* ── Depth: light behind every theatre so the glass refracts ── */

@media (min-width: 768px) {
  body.regimens-page.living-spectrum-page .rg-theatre {
    position: relative;
  }

  body.regimens-page.living-spectrum-page .rg-theatre::before,
  body.regimens-page.living-spectrum-page .rg-theatre::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
  }

  body.regimens-page.living-spectrum-page .rg-theatre::before {
    top: 16%;
    left: 8%;
    width: 44%;
    height: 54%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--pa, #7A8A98) 24%, transparent), transparent 68%);
    filter: blur(80px);
  }

  body.regimens-page.living-spectrum-page .rg-theatre::after {
    right: 5%;
    bottom: 10%;
    width: 38%;
    height: 46%;
    background: radial-gradient(ellipse at center, rgba(var(--ls-amber), 0.14), transparent 68%);
    filter: blur(84px);
  }

  body.regimens-page.living-spectrum-page .rg-shell {
    position: relative;
    z-index: 1;
  }

  body.regimens-page.living-spectrum-page .rg-hero {
    position: relative;
  }

  body.regimens-page.living-spectrum-page .rg-hero::before,
  body.regimens-page.living-spectrum-page .rg-hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
  }

  body.regimens-page.living-spectrum-page .rg-hero::before {
    top: 10%;
    left: 10%;
    width: 46%;
    height: 56%;
    background: radial-gradient(ellipse at center, rgba(var(--ls-cobalt), 0.2), transparent 68%);
    filter: blur(90px);
  }

  body.regimens-page.living-spectrum-page .rg-hero::after {
    right: 6%;
    bottom: 6%;
    width: 42%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(var(--ls-amber), 0.16), transparent 68%);
    filter: blur(96px);
  }

  body.regimens-page.living-spectrum-page .rg-hero__copy {
    position: relative;
    z-index: 1;
  }

  /* The index becomes a glass panel instead of naked rows in the void. */
  body.regimens-page.living-spectrum-page .rg-index {
    padding: clamp(18px, 2vh, 28px) clamp(22px, 2vw, 34px);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(235, 242, 248, 0.07), rgba(255, 255, 255, 0.014) 60%),
      rgba(12, 16, 22, 0.34);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12) inset,
      0 24px 50px rgba(0, 0, 0, 0.35);
  }
}

body.regimens-page.living-spectrum-page footer {
  scroll-snap-align: end;
}


/* ── Theatre interior: role ledger, notice chips, order lockup ── */

body.regimens-page.living-spectrum-page .rg-section-label {
  display: block;
  margin: 0 0 10px;
  color: rgba(235, 238, 240, 0.56);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.regimens-page.living-spectrum-page .rg-manifest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(16px, 1.8vh, 24px);
}

body.regimens-page.living-spectrum-page .rg-role {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(14px, 1.4vw, 20px) clamp(16px, 1.6vw, 24px);
  border: 1px solid rgba(241, 242, 240, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(235, 242, 248, 0.05), rgba(255, 255, 255, 0.012) 60%),
    rgba(12, 16, 22, 0.35);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 240ms ease, transform 380ms var(--ls-ease);
}

body.regimens-page.living-spectrum-page .rg-role:last-child {
  margin-bottom: 0;
}

body.regimens-page.living-spectrum-page .rg-role:hover {
  border-color: rgba(241, 242, 240, 0.28);
  transform: translateY(-2px);
}

body.regimens-page.living-spectrum-page .rg-role__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
}

body.regimens-page.living-spectrum-page .rg-role__stage::before {
  content: '';
  position: absolute;
  inset: -14% -20%;
  background: radial-gradient(ellipse at 50% 56%, color-mix(in srgb, var(--pa, #7A8A98) 26%, transparent), transparent 66%);
  filter: blur(14px);
}

body.regimens-page.living-spectrum-page .rg-role__vial {
  position: relative;
  width: 84px;
  height: auto;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.55));
}

 .rg-role__text {
  min-width: 0;
}

body.regimens-page.living-spectrum-page .rg-role__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 3px;
}

body.regimens-page.living-spectrum-page .rg-role__head b {
  color: rgba(241, 242, 240, 0.92);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

body.regimens-page.living-spectrum-page .rg-role__head i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pa, #7A8A98);
}

body.regimens-page.living-spectrum-page .rg-role__line {
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(222, 228, 233, 0.68);
}

body.regimens-page.living-spectrum-page .rg-role__meta {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
  transition: color 200ms ease;
}

body.regimens-page.living-spectrum-page .rg-role:hover .rg-role__meta {
  color: rgba(241, 242, 240, 0.75);
}

body.regimens-page.living-spectrum-page .rg-notice {
  display: block;
  margin-bottom: clamp(18px, 2vh, 26px);
}

body.regimens-page.living-spectrum-page .rg-notice .rg-section-label {
  width: 100%;
  margin-bottom: 2px;
}

body.regimens-page.living-spectrum-page .rg-notice__chip {
  padding: 8px 14px;
  border: 1px solid rgba(241, 242, 240, 0.14);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.62);
  background: rgba(241, 242, 240, 0.025);
}

/* Order lockup: economics live in the column, no detached bar */
body.regimens-page.living-spectrum-page .rg-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  padding-top: clamp(14px, 1.6vh, 20px);
  background: linear-gradient(90deg, rgba(224, 231, 237, 0.14), rgba(224, 231, 237, 0.04) 70%, transparent) top / 100% 1px no-repeat;
}

body.regimens-page.living-spectrum-page .rg-order .rg-price {
  justify-self: start;
}

body.regimens-page.living-spectrum-page .rg-order .rg-add {
  margin-left: auto;
}

@media (max-width: 900px) {
  body.regimens-page.living-spectrum-page .rg-order {
    grid-template-columns: 1fr;
  }

  body.regimens-page.living-spectrum-page .rg-order .rg-add {
    width: 100%;
    margin-left: 0;
  }
}


/* ── Card v3: header lockup, two-lane body, framed order bar ── */

body.regimens-page.living-spectrum-page .rg-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(20px, 2.6vw, 48px);
  margin-bottom: clamp(10px, 1.4vh, 20px);
}

body.regimens-page.living-spectrum-page .rg-head__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(200px, 24vh, 300px);
}

body.regimens-page.living-spectrum-page .rg-head__stage .rg-theatre__vials img {
  width: clamp(104px, 8vw, 150px);
}

body.regimens-page.living-spectrum-page .rg-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 3.4vw, 64px);
  align-items: start;
  padding-top: clamp(14px, 1.8vh, 24px);
  margin-bottom: clamp(18px, 2.4vh, 32px);
  background: linear-gradient(90deg, rgba(224, 231, 237, 0.12), rgba(224, 231, 237, 0.04) 70%, transparent) top / 100% 1px no-repeat;
}

body.regimens-page.living-spectrum-page .rg-body__side {
  padding-left: clamp(20px, 2.4vw, 36px);
  background: linear-gradient(180deg, transparent, rgba(224, 231, 237, 0.12) 12%, rgba(224, 231, 237, 0.12) 88%, transparent) left / 1px 100% no-repeat;
}

body.regimens-page.living-spectrum-page .rg-depth {
  margin-bottom: clamp(14px, 1.8vh, 22px);
}

body.regimens-page.living-spectrum-page .rg-depth__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 9px 0;
  background: linear-gradient(90deg, rgba(224, 231, 237, 0.08), transparent 80%) top / 100% 1px no-repeat;
}

body.regimens-page.living-spectrum-page .rg-depth__row:first-child {
  background: none;
}

body.regimens-page.living-spectrum-page .rg-depth__row b {
  color: rgba(241, 242, 240, 0.88);
  font-size: 14.5px;
  font-weight: 400;
}

body.regimens-page.living-spectrum-page .rg-depth__row span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
  text-align: right;
}

body.regimens-page.living-spectrum-page .rg-for {
  margin: 0 0 clamp(14px, 1.8vh, 22px);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(222, 228, 233, 0.7);
}

body.regimens-page.living-spectrum-page .rg-for span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
}

/* Order bar: the shop's framed rail grammar */
body.regimens-page.living-spectrum-page .rg-orderbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.2vw, 40px);
  margin-top: auto;
  padding: clamp(14px, 1.6vw, 20px) clamp(18px, 2vw, 26px);
  border: 1px solid rgba(241, 242, 240, 0.13);
  border-radius: 16px;
  background: rgba(241, 242, 240, 0.024);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

body.regimens-page.living-spectrum-page .rg-orderbar .rg-add {
  margin-left: auto;
}

@media (max-width: 900px) {
  body.regimens-page.living-spectrum-page .rg-head,
  body.regimens-page.living-spectrum-page .rg-body {
    grid-template-columns: 1fr;
  }

  body.regimens-page.living-spectrum-page .rg-head__stage {
    order: -1;
    min-height: 190px;
  }

  body.regimens-page.living-spectrum-page .rg-body__side {
    padding-left: 0;
    padding-top: 18px;
    background: linear-gradient(90deg, transparent, rgba(224, 231, 237, 0.12) 18%, rgba(224, 231, 237, 0.12) 82%, transparent) top / 100% 1px no-repeat;
  }

  body.regimens-page.living-spectrum-page .rg-orderbar .rg-add {
    flex: 1 1 100%;
    margin-left: 0;
  }
}

/* Sidebar: grouped by pillar, unsquished */
body.regimens-page.living-spectrum-page .regimen-rail {
  gap: 0;
}

body.regimens-page.living-spectrum-page .regimen-rail__group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 22px 4px 8px;
  color: rgba(235, 238, 240, 0.56);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.regimens-page.living-spectrum-page .regimen-rail__group:first-of-type {
  padding-top: 0;
}

body.regimens-page.living-spectrum-page .regimen-rail__group .regimen-rail__dot {
  width: 5px;
  height: 5px;
}

body.regimens-page.living-spectrum-page .regimen-rail__item {
  padding: 10px 4px 10px 14px;
  font-size: 11.5px;
}

body.regimens-page.living-spectrum-page .regimen-rail__item .regimen-rail__dot {
  display: none;
}


/* ── v4: promise lines, notice ledger, stacked order lockup ── */

body.regimens-page.living-spectrum-page .rg-role__help {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(241, 242, 240, 0.86);
}

body.regimens-page.living-spectrum-page .rg-notice__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding: 9px 2px;
  background: linear-gradient(90deg, rgba(224, 231, 237, 0.08), transparent 80%) top / 100% 1px no-repeat;
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(230, 235, 239, 0.8);
}

body.regimens-page.living-spectrum-page .rg-notice__row:nth-of-type(1) {
  background: none;
}

body.regimens-page.living-spectrum-page .rg-notice__row span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--pa, #7A8A98);
}

body.regimens-page.living-spectrum-page .rg-orderbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 2.6vw, 48px);
}

body.regimens-page.living-spectrum-page .rg-orderbar .rg-price {
  display: block;
}

body.regimens-page.living-spectrum-page .rg-orderbar .rg-price__supply {
  margin: 0 0 4px;
}

body.regimens-page.living-spectrum-page .rg-orderbar .rg-price__total {
  margin: 0 0 3px;
  font-size: clamp(30px, 2.2vw, 38px);
}

body.regimens-page.living-spectrum-page .rg-orderbar__runs span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(235, 238, 240, 0.56);
}

body.regimens-page.living-spectrum-page .rg-orderbar__runs b {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-transform: uppercase;
  color: rgba(241, 242, 240, 0.88);
  max-width: 24ch;
  display: block;
}

body.regimens-page.living-spectrum-page .rg-orderbar .rg-add {
  justify-self: end;
  margin-left: 0;
}

@media (max-width: 900px) {
  body.regimens-page.living-spectrum-page .rg-orderbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.regimens-page.living-spectrum-page .rg-orderbar .rg-price {
    padding-right: 0;
    background: none;
  }

  body.regimens-page.living-spectrum-page .rg-orderbar .rg-add {
    justify-self: stretch;
    width: 100%;
  }
}


body.regimens-page.living-spectrum-page .rg-duration {
  margin: 0 0 clamp(14px, 1.8vh, 22px);
  padding-top: 10px;
  background: linear-gradient(90deg, rgba(224, 231, 237, 0.08), transparent 80%) top / 100% 1px no-repeat;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(241, 242, 240, 0.85);
}

body.regimens-page.living-spectrum-page .rg-duration span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(235, 238, 240, 0.56);
}


/* Regimens with three or more compounds drop the boxed panels for a
   ruled full-width ledger: one hairline row per compound, no nesting. */
body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) {
  grid-template-columns: 1fr;
  gap: 0;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(224, 231, 237, 0.1), rgba(224, 231, 237, 0.03) 70%, transparent) top / 100% 1px no-repeat;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role:first-child {
  background: none;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role:hover {
  border-color: transparent;
  transform: none;
  background-color: rgba(241, 242, 240, 0.025);
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__stage {
  min-height: 64px;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__stage::before {
  inset: -8% -30%;
  filter: blur(10px);
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__vial {
  width: 40px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__head b {
  font-size: 15px;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__help {
  margin-top: 2px;
  font-size: 13.5px;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__line {
  display: none;
}

body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__meta {
  margin-top: 3px;
  font-size: 9.5px;
}

/* Dense regimens (3+ compounds) trade stage height for ledger room. */
body.regimens-page.living-spectrum-page .rg-theatre:has(.rg-manifest .rg-role:nth-child(3)) .rg-theatre__stage {
  min-height: clamp(260px, 32vh, 400px);
}

body.regimens-page.living-spectrum-page .rg-theatre:has(.rg-manifest .rg-role:nth-child(3)) .rg-head__stage .rg-theatre__vials img {
  width: clamp(88px, 6.4vw, 122px);
}

body.regimens-page.living-spectrum-page .rg-theatre:has(.rg-manifest .rg-role:nth-child(3)) .rg-depth__row {
  padding: 6px 0;
}

body.regimens-page.living-spectrum-page .rg-theatre:has(.rg-manifest .rg-role:nth-child(3)) .rg-notice__row {
  padding: 6px 2px;
}

/* ── Reveals ── */

html.ls-reveals-active body.regimens-page.living-spectrum-page [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ls-ease), transform 700ms var(--ls-ease);
}

html.ls-reveals-active body.regimens-page.living-spectrum-page [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ── Mobile ── */

@media (max-width: 767px) {
  body.regimens-page.living-spectrum-page .rg-hero[hidden],
  body.regimens-page.living-spectrum-page .rg-theatres[hidden],
  body.regimens-page.living-spectrum-page .regimen-rail[hidden] {
    display: none;
  }

  body.regimens-page.living-spectrum-page .rg-hero {
    padding-top: clamp(120px, 18vh, 170px);
  }

  body.regimens-page.living-spectrum-page .rg-card {
    grid-template-columns: 1fr;
    gap: 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13, 17, 23, 0.9);
  }

  body.regimens-page.living-spectrum-page .rg-card__side {
    padding-left: 0;
    padding-top: 20px;
    background: linear-gradient(90deg, transparent, rgba(224, 231, 237, 0.14) 18%, rgba(224, 231, 237, 0.14) 82%, transparent) top / 100% 1px no-repeat;
  }

  body.regimens-page.living-spectrum-page .rg-hero__meta {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.regimens-page.living-spectrum-page *,
  body.regimens-page.living-spectrum-page *::before,
  body.regimens-page.living-spectrum-page *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RE-LAYOUT (<=767px)
   The desktop presents each regimen as a 100vh "theatre" in a snap-scrolled
   deck. On phones that deck never advanced (wheel-only, snap disabled) and
   stacked into ~15 screens of tall, blur-heavy panels. Here each regimen
   becomes a compact, natural-height card in a single column: lighter effects,
   smaller type, vials above copy, content visible immediately.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Content is visible on load instead of fading in dimly. */
  html.ls-reveals-active body.regimens-page.living-spectrum-page [data-reveal] {
    opacity: 1;
    transform: none;
  }

  body.regimens-page.living-spectrum-page .rg-theatre {
    min-height: auto;
    padding: clamp(30px, 4.5vh, 48px) 14px clamp(12px, 2vh, 20px);
  }

  /* Card: natural height, light blur, softer shadow, tighter padding. */
  body.regimens-page.living-spectrum-page .rg-shell {
    min-height: auto;
    gap: 22px;
    padding: 20px 18px;
    border-radius: 20px;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  }

  /* Head: vials above the copy, tighter, smaller title. */
  body.regimens-page.living-spectrum-page .rg-head {
    gap: 16px;
  }
  body.regimens-page.living-spectrum-page .rg-head__stage {
    order: -1;
    min-height: 148px;
  }
  body.regimens-page.living-spectrum-page .rg-head__id {
    gap: 9px;
  }
  body.regimens-page.living-spectrum-page .rg-name {
    font-size: clamp(30px, 8.4vw, 38px);
  }
  body.regimens-page.living-spectrum-page .rg-lede {
    font-size: 14.5px;
    line-height: 1.5;
  }
  body.regimens-page.living-spectrum-page .rg-theatre__vials img {
    width: clamp(72px, 19vw, 100px);
  }

  /* Body: single column, tighter rhythm. */
  body.regimens-page.living-spectrum-page .rg-body {
    gap: 22px;
  }
  body.regimens-page.living-spectrum-page .rg-body__side {
    gap: 12px;
  }
  body.regimens-page.living-spectrum-page .rg-manifest {
    gap: 8px;
  }
  body.regimens-page.living-spectrum-page .rg-role {
    padding: 10px 12px;
    gap: 12px;
  }
  body.regimens-page.living-spectrum-page .rg-notice {
    gap: 6px;
  }

  /* Order bar: compact, full-width action. */
  body.regimens-page.living-spectrum-page .rg-orderbar {
    gap: 14px;
    padding-top: 4px;
  }
  body.regimens-page.living-spectrum-page .rg-add {
    min-height: 50px;
  }

  /* Hero: shorter, and the regimen index un-truncates its goal onto its own
     line instead of ellipsizing a middle column. */
  body.regimens-page.living-spectrum-page .rg-hero {
    min-height: auto;
    padding: clamp(104px, 15vh, 140px) 20px 44px;
  }
  body.regimens-page.living-spectrum-page .rg-index__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "goal goal";
    gap: 3px 12px;
    padding-block: 12px;
  }
  body.regimens-page.living-spectrum-page .rg-index__name {
    grid-area: name;
  }
  body.regimens-page.living-spectrum-page .rg-index__price {
    grid-area: price;
  }
  body.regimens-page.living-spectrum-page .rg-index__goal {
    grid-area: goal;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TYPE FLOORS (<=767px)
   Raise sub-11px mono/caption labels to an 11px legibility floor on phones.
   Additive overrides only; base desktop rules are untouched.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  body.regimens-page.living-spectrum-page .nav-cart-btn,
  body.regimens-page.living-spectrum-page .rg-chip__text i,
  body.regimens-page.living-spectrum-page .rg-length span,
  body.regimens-page.living-spectrum-page .rg-price__supply,
  body.regimens-page.living-spectrum-page .regimen-rail__counter,
  body.regimens-page.living-spectrum-page .rg-role__head i,
  body.regimens-page.living-spectrum-page .rg-role__meta,
  body.regimens-page.living-spectrum-page .rg-notice__chip,
  body.regimens-page.living-spectrum-page .rg-depth__row span,
  body.regimens-page.living-spectrum-page .rg-for span,
  body.regimens-page.living-spectrum-page .regimen-rail__group {
    font-size: 11px;
  }

  /* Matches the max-width:900 :has() override that drops rg-role__meta to
     9.5px when a manifest has 3 roles; re-raise it to the 11px floor. */
  body.regimens-page.living-spectrum-page .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__meta {
    font-size: 11px;
  }
}


/* Desktop keeps the fused "· View Dossier →" meta text; the phone layer
   swaps it for a per-row price. Both ship in markup so the desktop DOM and
   rendering stay byte-identical to the pre-price design. */
.rg-role__price {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   PHONE · THE REGIMEN AS A COMPOSED SYSTEM
   Scope: every rule below is either inside the 767px phone gate or
   targets a phone-only element that is display:none at every width
   until that gate opens. Desktop (>=768px) renders byte-identically.

   The deck's six theatres become a compact catalogue: one tap-to-expand
   row each, one open at a time. The opened regimen answers in order —
   vial cluster + purpose, a commitment strip, what's inside (open),
   how the block runs, who it's for — over one sticky glass buy bar.

   Phone-only elements (.rg-m-row, .rg-m-strip, .rg-m-grp__head) and the
   disclosure wrappers are built by the inline script in protocols.html.
   The wrappers are display:contents off-phone, so .rg-body__main and
   .rg-body__side keep their exact desktop grid children.
   ═══════════════════════════════════════════════════════════════ */

body.regimens-page.living-spectrum-page .rg-m-row,
body.regimens-page.living-spectrum-page .rg-m-strip,
body.regimens-page.living-spectrum-page .rg-m-grp__head {
  display: none;
}

body.regimens-page.living-spectrum-page .rg-m-grp,
body.regimens-page.living-spectrum-page .rg-m-grp__body {
  display: contents;
}

@media (max-width: 767px) {
  /* Reveals stay off: the catalogue must be readable the instant it paints. */
  html.ls-reveals-active body.regimens-page.living-spectrum-page [data-reveal] {
    opacity: 1;
    transform: none;
  }

  /* The hero index and these rows were the same six records twice. Once the
     rows expand in place they are the index, so the hero list stands down. */
  body.regimens-page.living-spectrum-page.rg-m .rg-index {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-hero {
    padding-bottom: 34px;
  }

  /* ── The catalogue ── */

  body.regimens-page.living-spectrum-page.rg-m .rg-theatres {
    padding-bottom: 18px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre {
    position: relative;
    display: block;
    min-height: auto;
    padding: 0 var(--mobile-gutter, 20px) 10px;
    scroll-margin-top: 80px;
  }

  /* ── Atmosphere ──
     backdrop-filter needs something behind it to blur. A collapsed row has
     nothing behind it and needs nothing: it is a catalogue row, not a sheet.
     The OPEN regimen gets a lit backdrop so its glass has light to refract —
     the pillar accent behind the vial cluster, cobalt biased left and amber
     biased bottom-right, mirroring the desktop card's lighting. Pure radial
     gradients, no filter: blur() — a gradient is already soft, and the filter
     is what costs a phone a compositing layer. */
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open]::before {
    content: '';
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(64% 24% at 50% 15%, color-mix(in srgb, var(--pa, #7A8A98) 20%, transparent), transparent 72%),
      radial-gradient(72% 34% at 2% 32%, rgba(var(--ls-cobalt), 0.16), transparent 72%),
      radial-gradient(66% 32% at 99% 93%, rgba(var(--ls-amber), 0.13), transparent 74%);
  }

  /* Collapsed: a plain rounded surface, no blur, no ring. Glass is earned by
     opening, not spent as a page-wide wash across six rows.
     overflow:clip keeps the pillar glow inside the radius without making the
     card a scrollport, which would strand the sticky bar (overflow:hidden
     would). */
  body.regimens-page.living-spectrum-page.rg-m .rg-shell {
    min-height: auto;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(241, 242, 240, 0.09);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(241, 242, 240, 0.038), rgba(241, 242, 240, 0.014));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    overflow: clip;
    transition: border-color 240ms var(--ls-ease);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-shell::before {
    display: none;
  }

  /* ── Open: the desktop liquid-glass recipe, phone-tuned ──
     The cool-white -> cool-blue-grey -> warm-amber 135deg sweep, the inset top
     edge light, and the cobalt-left / warm-right ambient pair, all sampling
     the atmosphere above. Blur drops 26px -> 22px for the phone. */
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-shell {
    z-index: 1;
    /* The sticky bar reserves its own slot at the panel end; only a small
       breath is needed below it. */
    padding-bottom: 10px;
    border-color: rgba(241, 242, 240, 0.06);
    background:
      linear-gradient(135deg, rgba(235, 242, 248, 0.09) 0%, rgba(180, 198, 215, 0.03) 38%, rgba(255, 255, 255, 0.016) 62%, rgba(230, 181, 132, 0.05) 100%),
      rgba(12, 16, 22, 0.24);
    backdrop-filter: blur(22px) saturate(1.5) brightness(1.05);
    -webkit-backdrop-filter: blur(22px) saturate(1.5) brightness(1.05);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 -1px 0 rgba(255, 255, 255, 0.03) inset,
      -14px 16px 54px rgba(19, 57, 102, 0.2),
      16px 20px 58px rgba(91, 52, 25, 0.15),
      0 20px 40px rgba(0, 0, 0, 0.34),
      0 44px 96px rgba(0, 0, 0, 0.5);
  }

  /* The specular edge ring, restored. The card is inset by the gutter and
     rounded 26px, so the ring reads as a real glass edge catching the light
     at top-left and a warm glint at bottom-right — not as a frame hugging the
     screen bezel. The base rule already carries the exact desktop gradient,
     the mask-composite cutout and z-index 5 (under the z-6 sticky bar). */
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-shell::before {
    display: block;
  }

  /* ── The row: mini vial cluster, name, goal, price ── */

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 26px;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 200ms var(--ls-ease);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row:active {
    background-color: rgba(241, 242, 240, 0.05);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row:focus-visible {
    outline: 2px solid rgba(var(--ls-cobalt), 0.7);
    outline-offset: -3px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster::before {
    content: '';
    position: absolute;
    inset: -26% -18%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--pa, #7A8A98) 30%, transparent), transparent 68%);
    filter: blur(9px);
    pointer-events: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster img {
    position: relative;
    width: 24px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster img:not(:first-child) {
    margin-left: -12px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster img:nth-child(1) { transform: rotate(-5deg); }
  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster img:nth-child(2) { transform: rotate(3deg); z-index: 2; }
  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster img:nth-child(3) { transform: rotate(7deg); z-index: 3; }
  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__cluster img:nth-child(4) { transform: rotate(-3deg); z-index: 4; }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__name {
    display: block;
    color: var(--ls-platinum);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__goal {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.14em;
    line-height: 1.35;
    text-transform: uppercase;
    color: rgba(235, 238, 240, 0.56);
  }

  /* The row is this regimen's identity lockup: the same mono kicker + pillar
     accent dot + name grammar the compound dossier uses, so Shop and Regimens
     read as one product. The dot is the kicker dot from .rg-kicker__dot. */
  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__goal::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--pa, #7A8A98);
    vertical-align: middle;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__price {
    color: rgba(241, 242, 240, 0.9);
    font-size: 17px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  /* Open, the row is a header, not a catalogue entry: the strip and the
     sticky bar own the economics, so the row stops repeating the price. */
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-m-row__price {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__chev {
    display: flex;
    width: 14px;
    color: rgba(235, 238, 240, 0.56);
    transition: transform 240ms var(--ls-ease), color 240ms var(--ls-ease);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-row__chev svg {
    width: 100%;
    height: auto;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-m-row__chev {
    transform: rotate(180deg);
    color: var(--ls-platinum);
  }

  /* ── The panel ── */

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre:not([data-rg-open]) .rg-head,
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre:not([data-rg-open]) .rg-m-strip,
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre:not([data-rg-open]) .rg-body,
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre:not([data-rg-open]) .rg-orderbar {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-head,
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-m-strip,
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-body {
    animation: rg-m-panel-in 240ms var(--ls-ease) both;
  }

  @keyframes rg-m-panel-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  /* The face: the constituent vials, arranged. Then the one line of purpose.
     The goal and the name already sit in the row directly above, so the
     panel does not repeat them. */
  /* Column, not the desktop two-up grid. The existing order:-1 on the stage
     lifts the cluster above the copy. */
  body.regimens-page.living-spectrum-page.rg-m .rg-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0 16px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-head__stage {
    min-height: 0;
    margin-bottom: 14px;
    padding: 6px 0 2px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre__glow {
    inset: -6% -10%;
    filter: blur(30px);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-kicker,
  body.regimens-page.living-spectrum-page.rg-m .rg-name {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-lede {
    max-width: none;
    margin: 0;
    font-size: 15px;
    line-height: 1.62;
    color: rgba(226, 232, 237, 0.78);
  }

  /* Cluster sizing. Four-vial regimens go smaller and tighter so the set
     still fits one line. The :has() selector mirrors the dense-manifest
     desktop rule near line 1388, which out-specifies a plain phone override. */
  body.regimens-page.living-spectrum-page.rg-m .rg-head__stage .rg-theatre__vials img {
    width: 104px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre:has(.rg-manifest .rg-role:nth-child(3)) .rg-head__stage .rg-theatre__vials img {
    width: 74px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre__vials img:not(:first-child) {
    margin-left: -26px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-theatre:has(.rg-manifest .rg-role:nth-child(3)) .rg-theatre__vials img:not(:first-child) {
    margin-left: -20px;
  }

  /* ── Commitment strip ── */

  /* The commitment surface: liquid glass, blur eased to 18px for the phone,
     saturate/brightness kept. The ::before is the specular ring (absolutely
     positioned, so it is not a grid item). */
  /* One material inside the shell: the strip is a quiet hairline row, not
     another glass card. Duration · Compounds on a single line. */
  body.regimens-page.living-spectrum-page.rg-m .rg-m-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 16px 16px 0;
    padding: 13px 2px;
    border: 0;
    border-top: 1px solid rgba(241, 242, 240, 0.09);
    border-bottom: 1px solid rgba(241, 242, 240, 0.09);
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-strip__cell {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 0;
  }

  /* One deliberate divider between the two facts, evenly spaced. */
  body.regimens-page.living-spectrum-page.rg-m .rg-m-strip__cell + .rg-m-strip__cell {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(241, 242, 240, 0.16);
  }


  body.regimens-page.living-spectrum-page.rg-m .rg-m-strip__cell span {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(235, 238, 240, 0.56);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-strip__cell b {
    display: block;
    color: var(--ls-platinum);
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-strip__cell[data-accent] b {
    color: rgb(var(--ls-amber));
  }

  /* ── Disclosure groups ── */

  body.regimens-page.living-spectrum-page.rg-m .rg-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0 16px;
    background: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-body__main,
  body.regimens-page.living-spectrum-page.rg-m .rg-body__side {
    display: contents;
  }

  /* Inner cards carry the recipe's gradient sweep, inset top light and a
     hairline specular edge, but no backdrop-filter of their own: the shell
     above them is already a backdrop root, so a nested blur would sample the
     shell's own gradient and cost a compositing layer for nothing. Blur stays
     on the three surfaces where it does real work (shell, strip, sticky bar),
     which is also the phone's ~3-layer budget. */
  /* Disclosure groups sit flat on the shell: hairline-separated sections,
     not cards-in-cards. */
  /* One visible group (What's Inside) since the side dropdowns retired:
     no section borders — the hidden sibling groups defeated :last-of-type
     and painted a stray line above the buy bar. */
  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp {
    display: block;
    /* The group is a column-flex item under align-items:start, so without an
       explicit width it sizes to the manifest's max-content (~1025px on a
       390px phone) and the rail's scrollport runs far off-screen — the last
       card could never scroll fully into view. Pin it to the container. */
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: hidden;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: var(--mobile-target-size, 44px);
    margin: 0;
    padding: 13px 14px;
    border: 0;
    background: none;
    color: rgba(241, 242, 240, 0.9);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: background-color 200ms var(--ls-ease);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp__head:active {
    background-color: rgba(241, 242, 240, 0.05);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp__head:focus-visible {
    outline: 2px solid rgba(var(--ls-cobalt), 0.7);
    outline-offset: -3px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp__head svg {
    flex: 0 0 auto;
    width: 12px;
    height: auto;
    color: rgba(235, 238, 240, 0.56);
    transition: transform 240ms var(--ls-ease);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp[data-rg-grp='open'] .rg-m-grp__head svg {
    transform: rotate(180deg);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp__body {
    display: block;
    padding: 0 14px 14px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-m-grp[data-rg-grp='closed'] .rg-m-grp__body {
    display: none;
  }

  /* The group heads carry these titles now. */
  body.regimens-page.living-spectrum-page.rg-m [data-rg-hide-label] {
    display: none;
  }

  /* ── What's inside: the heart ── */

  /* The stack reads as a card carousel: one compact card per compound,
     swiped horizontally with snap. */
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 10px;
    margin: 0 -14px;
    /* Center-snap geometry: each card gets a true center point in the rail
       (owner direction — the last card was snapping short and clipping its
       words). Side padding = half the scrollport minus half a card, so the
       first and last cards can reach dead center. The rail's scrollport is
       its parent's width + the 28px the negative margins reclaim, hence
       50% + 14px. */
    padding: 2px max(14px, calc(50% + 14px - min(31vw, 125px))) 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-manifest::-webkit-scrollbar {
    display: none;
  }

  /* Each compound is a compact card: vial art up top, identity, one line,
     meta + price at the base. Quiet glass, one radius. */
  body.regimens-page.living-spectrum-page.rg-m .rg-role,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) .rg-role {
    display: flex;
    flex-direction: column;
    flex: 0 0 min(62vw, 250px);
    grid-template-columns: none;
    gap: 0;
    align-items: stretch;
    scroll-snap-align: center;
    padding: 14px 14px 12px;
    border: 1px solid rgba(241, 242, 240, 0.1);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(235, 242, 248, 0.05), rgba(255, 255, 255, 0.012) 60%),
      rgba(10, 14, 20, 0.22);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: background-color 200ms var(--ls-ease);
  }

  /* The :has(3+) base variants outrank plain .rg-m selectors and were
     forcing 40px-wide vials under an 84px height — crushed art with
     unreadable labels. Match their specificity. */
  body.regimens-page.living-spectrum-page.rg-m .rg-role__stage,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__stage {
    order: -1;
    min-height: 84px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 10px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__vial,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__vial {
    height: 84px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__line {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__cta {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__price {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(241, 242, 240, 0.08);
    color: var(--ls-platinum, #f1f2f0);
    font-family: var(--font-mono);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role:active,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) .rg-role:active {
    background-color: rgba(241, 242, 240, 0.06);
    transform: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role:focus-visible {
    outline: 2px solid rgba(var(--ls-cobalt), 0.7);
    outline-offset: -3px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__head {
    display: block;
    margin-bottom: 2px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__head b {
    display: block;
    font-size: 15px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__head i {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  /* The role's job in the system is the point of a regimen, so the phone
     keeps rg-role__line and drops the standalone shop promise. The :has()
     twin mirrors the dense-manifest rule at line ~1374 that hides it. */
  body.regimens-page.living-spectrum-page.rg-m .rg-role__help {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__line,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__line {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.5;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-role__meta,
  body.regimens-page.living-spectrum-page.rg-m .rg-manifest:has(.rg-role:nth-child(3)) .rg-role__meta {
    margin-top: 6px;
  }

  /* ── How the block runs · Who it's for ── */

  body.regimens-page.living-spectrum-page.rg-m .rg-depth {
    margin-bottom: 0;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-depth__row {
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-duration,
  body.regimens-page.living-spectrum-page.rg-m .rg-for {
    margin: 0;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-duration {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.7;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-for {
    font-size: 15px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-notice {
    margin: 16px 0 0;
  }

  /* ── The one action: sticky glass buy bar ── */

  /* The open panel ends at the manifest: the runs/for dropdowns are gone
     (client direction 2026-07-16) — their facts live in the lede + strip. */
  body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-body__side {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar {
    position: sticky;
    /* Sticky insets constrain the border box, not the margin box — with
       bottom:0 the island sat flush on the home-indicator zone while
       stuck. This keeps the shop bar's 12px float + safe-area clearance. */
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 6;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    /* Coherence with the compound dossier's buy bar (us/shop.html .sheet-action-bar):
       a floating rounded island inset 12px, not a full-bleed slab. Same material,
       same shape — otherwise Shop and Regimens read as two different products.
       Safe-area moves to the margin so the island itself clears the home indicator. */
    margin: 22px 12px max(12px, env(safe-area-inset-bottom, 0px));
    padding: 10px 12px;
    border: 0;
    border-radius: 30px;
    border: 1px solid rgba(241, 242, 240, 0.12);
    background: linear-gradient(180deg, rgba(18, 22, 28, 0.9), rgba(10, 13, 17, 0.95));
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    /* No inset top highlight: on a rounded island it reads as a stray white
       line above the bar (owner report, twice). The border ring is enough. */
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.32);
    animation: rg-m-bar-in 240ms var(--ls-ease) both;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price {
    display: grid;
    row-gap: 2px;
    align-content: center;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__total {
    margin: 0;
    font-size: 24px;
    line-height: 1;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__supply {
    margin: 0;
    font-size: 11px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__supply span {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__save {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-add {
    min-height: 48px;
  }

  /* No blur available: solid canvas, never milky. */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body.regimens-page.living-spectrum-page.rg-m .rg-orderbar,
    body.regimens-page.living-spectrum-page.rg-m .rg-m-strip,
    body.regimens-page.living-spectrum-page.rg-m .rg-theatre[data-rg-open] .rg-shell {
      background: var(--ls-canvas-soft, #0c1016);
    }
  }

  @keyframes rg-m-bar-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price {
    display: grid;
    gap: 3px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__supply {
    order: 1;
    margin: 0;
    font-size: 11px;
  }

  /* The struck full-supply figure sits beside the total; the treatment and
     the adjacency carry the meaning the label spelled out. */
  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__supply span {
    display: none;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__total {
    order: 0;
    margin: 0;
    font-size: 26px;
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-price__save {
    order: 2;
    margin: 0;
    font-size: 11px;
    color: rgb(var(--ls-amber));
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-add {
    justify-self: end;
    width: auto;
    min-height: var(--mobile-control-height, 48px);
    padding: 0 24px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.14em;
    transition: background-color 200ms var(--ls-ease), transform 200ms var(--ls-ease);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-add:active {
    transform: scale(0.98);
  }

  body.regimens-page.living-spectrum-page.rg-m .rg-orderbar .rg-add:focus-visible {
    outline: 2px solid rgba(var(--ls-cobalt), 0.9);
    outline-offset: 3px;
  }
}

/* ── Phone-only page ending (desktop stays footerless by design) ──
   Below the last regimen the phone page used to just stop. */
.rg-m-end {
  display: none;
}

@media (max-width: 767px) {
  /* First-paint gate: hide the interim desktop cards until rgBuildPhone()
     lands body.rg-m (see the inline boot script in protocols.html). */
  html.rg-phone-boot body.regimens-page:not(.rg-m) .rg-theatre {
    visibility: hidden;
  }

  /* Gated on .rg-m (the phone-build flag): before rgBuildPhone() lands, the
     theatres are hidden and this block would sit directly under the header —
     a row of nav links masquerading as a second desktop nav (owner report). */
  body.regimens-page.rg-m .rg-m-end {
    display: block;
    margin: 44px 20px calc(30px + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  body.regimens-page .rg-m-end__kicker {
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(235, 238, 240, 0.56);
  }

  body.regimens-page .rg-m-end__title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ls-platinum, #f1f2f0);
  }

  body.regimens-page .rg-m-end__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(241, 242, 240, 0.2);
    border-radius: 12px;
    background: rgba(241, 242, 240, 0.05);
    color: var(--ls-platinum, #f1f2f0);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
  }

  body.regimens-page .rg-m-end__nav {
    /* Opt out of the bare-nav header treatment (style.css `nav,.site-nav`
       makes every <nav> a fixed glass bar) — without this reset the block's
       links render pinned under the site header as a ghost second nav.
       Mirrors the .footer-nav reset in style.css. */
    position: static;
    height: auto;
    padding: 0;
    z-index: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 20px;
    margin-top: 26px;
  }

  body.regimens-page .rg-m-end__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(235, 238, 240, 0.62);
    font-size: 13px;
    text-decoration: none;
  }

  body.regimens-page .rg-m-end__compliance {
    margin: 14px 0 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: rgba(235, 238, 240, 0.56);
  }
}
