@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap; src: url("/_a/fonts/spectral-latin-300-normal.3ff652c636.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap; src: url("/_a/fonts/spectral-latin-300-italic.b1dc3c4e4b.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_a/fonts/spectral-latin-400-normal.cf8daee3b8.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/_a/fonts/hanken-grotesk-latin-wght-normal.e9201eddf1.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/_a/fonts/ibm-plex-mono-latin-400-normal.08949f728d.woff2") format("woff2"); }
/* Two worlds, on purpose (the tokens are in tokens.css). The site (site.css) is the clinic's
   Vellum: the tenant's paper, ink and brand colour. The guide is Darkfield: wherever the guide
   speaks or the labels are shown (her panel, the glass box, every answer pane, the full-screen
   theater) the surface is warm carbon lit by one tungsten lamp, like a microscope's dark field.
   Those surfaces carry the class "night" or "darkfield" and are dark on any page. Colour is
   reserved for the labels (see labels.ts).

   This file is the guide: the theater that opens over the site. One screen, built in layers: a
   live 3D scene at the back, the guide standing in it with the FDA labels in orbit, and the
   conversation on a pane of glass in front. On a phone the guide becomes a band across the top. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* An element marked hidden stays hidden, whatever display its class sets. */
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* While the guide is open the page behind it holds still. */
html.guide-open {
  overflow: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.muted {
  color: var(--on-dark-3);
}

/* ---- The theater: the guide, full screen, opening out of whatever was pressed ---- */
.theater {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 27% 36%, #221e2b 0%, rgb(34 30 43 / 0.6) 34%, transparent 70%),
    var(--carbon-0);
  clip-path: circle(0 at var(--px, 50%) var(--py, 50%));
  /* Closing: 65 % of the opening, accelerating away. */
  transition: clip-path calc(var(--dur-3, 420ms) * 0.87) var(--ease-in, cubic-bezier(0.55, 0, 0.75, 0.2));
}
.theater.open {
  clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%));
  transition: clip-path calc(var(--dur-3, 420ms) * 1.34) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}
/* Inside the opening circle, the bar, the guide and the conversation follow in that order. The
   first open of a visit keeps its own longer arrival (.booting, below). */
@media (prefers-reduced-motion: no-preference) {
  .theater .app:not(.booting) :is(.bar, .stage, .talk) {
    transition:
      opacity 140ms var(--ease-in, cubic-bezier(0.55, 0, 0.75, 0.2)),
      translate 140ms var(--ease-in, cubic-bezier(0.55, 0, 0.75, 0.2));
  }
  .theater:not(.open) .app:not(.booting) :is(.bar, .stage, .talk) {
    opacity: 0;
    translate: 0 var(--rise, 14px);
  }
  .theater.open .app:not(.booting) :is(.bar, .stage, .talk) {
    transition:
      opacity var(--dur-3, 420ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) var(--in, 120ms),
      translate var(--dur-5, 760ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) var(--in, 120ms);
  }
  .theater.open .app .stage {
    --in: 180ms;
  }
  .theater.open .app .talk {
    --in: 240ms;
  }
}

/* ---- Layer 0: the scene (the director moves the site's one canvas in here while the guide is open) ---- */
.scene-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Layer 1: the app ---- */
.app {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  padding-block: 14px 18px;
  max-width: 1560px;
  margin-inline: auto;
  overflow: hidden;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.brand {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand small {
  font-weight: 500;
  color: var(--on-dark-3);
  font-size: 0.82rem;
  margin-left: 10px;
}
.notice {
  margin: 0 auto 0 0;
  padding: 3px 10px;
  border: 1px dashed var(--edge-dark-strong);
  border-radius: 999px;
  color: var(--on-dark-2);
  font-size: 0.76rem;
  min-width: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark);
  background: var(--glass);
  color: var(--on-dark-2);
  font-size: 0.78rem;
  font-weight: 600;
}
.notice:not([hidden]) + .pill {
  margin-left: 0;
}
#theater-close {
  width: 36px;
  height: 36px;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px var(--lamp);
}

.deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 620px);
  gap: 22px;
  min-height: 0;
}

/* ---- The stage: where the guide stands ---- */
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
}
.presence {
  position: relative;
  flex: 1 1 0;
  container-type: size;
  min-height: 0;
}
/* An instrument ring around the guide, like the scale around a microscope stage. */
.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96cqw, 96cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 236 210 / 0.5) 0deg 0.22deg, transparent 0.22deg 3deg);
  -webkit-mask: radial-gradient(closest-side, transparent 97.2%, #000 97.4% 99.6%, transparent 99.8%);
  mask: radial-gradient(closest-side, transparent 97.2%, #000 97.4% 99.6%, transparent 99.8%);
  opacity: 0.28;
  pointer-events: none;
}
.app.no-gl .reticle {
  opacity: 0.4;
}

/* Without WebGL the guide is drawn in CSS: the same glass form, with three still orbits. */
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(38cqw, 38cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0%, rgb(255 240 222 / 0.85) 14%, transparent 46%),
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.55), transparent 22%),
    radial-gradient(circle at 50% 50%, rgb(64 56 52 / 0.5), rgb(15 13 20 / 0.7) 70%);
  box-shadow:
    inset 0 0 0 1px rgb(255 236 210 / 0.35),
    inset 0 0 44px rgb(255 233 201 / 0.4),
    0 0 90px rgb(255 233 201 / 0.3);
}
.orb i {
  position: absolute;
  inset: -34%;
  border-radius: 50%;
  border: 1px solid #5b93ff;
  opacity: 0.55;
  transform: rotateX(72deg) rotateY(18deg);
}
.orb i:nth-child(2) {
  inset: -62%;
  border-color: #48efb2;
  transform: rotateX(64deg) rotateY(-28deg);
}
.orb i:nth-child(3) {
  inset: -92%;
  border-color: #ff9e4d;
  transform: rotateX(76deg) rotateY(6deg);
}
.stage[data-state="listening"] .orb {
  box-shadow:
    inset 0 0 0 1px rgb(255 197 107 / 0.5),
    inset 0 0 44px rgb(255 197 107 / 0.45),
    0 0 90px rgb(255 197 107 / 0.3);
}

/* The guide's face, as a still, until live video takes its place in the same porthole. */
.portrait {
  background: var(--face) center / cover no-repeat;
  border-radius: 50%;
}
.presence .portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54cqw, 54cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  box-shadow:
    0 0 0 1px var(--edge-dark-strong),
    0 0 0 9px rgb(255 240 220 / 0.05),
    0 0 110px rgb(255 233 201 / 0.35);
  transition: box-shadow 0.4s;
}
.presence .portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(60% 46% at 30% 16%, rgb(255 255 255 / 0.22), transparent 60%),
    radial-gradient(closest-side, transparent 82%, rgb(255 233 201 / 0.3) 100%);
  pointer-events: none;
}
.presence.has-video .portrait {
  display: none;
}
.stage[data-state="speaking"] .presence .portrait,
.stage[data-state="thinking"] .presence .portrait {
  animation: breathe 1.5s ease-in-out infinite;
}
.stage[data-state="listening"] .presence .portrait {
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 0 9px rgb(255 197 107 / 0.1),
    0 0 110px rgb(255 197 107 / 0.4);
}
@keyframes breathe {
  50% {
    box-shadow:
      0 0 0 1px var(--lamp),
      0 0 0 14px rgb(255 240 220 / 0.1),
      0 0 150px rgb(255 233 201 / 0.6);
  }
}

/* Live video takes the guide's place as a porthole; the orbits keep turning around it. */
.presence video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(54cqw, 54cqh);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--carbon-0);
  box-shadow:
    0 0 0 1px var(--edge-dark-strong),
    0 0 0 9px rgb(255 240 220 / 0.05),
    0 0 110px rgb(255 233 201 / 0.35);
}
.caption {
  align-self: center;
  margin: 0;
  width: fit-content;
  max-width: min(100%, 46ch);
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--edge-dark);
  background: var(--panel-dark);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--on-dark);
  font-family: var(--voice);
  font-size: 0.98rem;
  line-height: 1.35;
  max-height: 4.3em;
  overflow: hidden;
  text-align: center;
  z-index: 2;
}

.ident {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.who {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.who h2 {
  margin: 0;
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-shadow: 0 2px 30px var(--carbon-0);
}
.who span {
  color: var(--on-dark-2);
  font-size: 0.98rem;
}
.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark-2);
  font-size: 0.88rem;
  min-height: 1.4em;
}
.status::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px var(--lamp);
}
.stage[data-state="thinking"] .status::before,
.stage[data-state="speaking"] .status::before {
  animation: beat 0.9s ease-in-out infinite;
}
.stage[data-state="listening"] .status::before {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: beat 0.9s ease-in-out infinite;
}
.stage[data-state="urgent"] .status::before {
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}
@keyframes beat {
  50% {
    transform: scale(1.7);
    opacity: 0.5;
  }
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ctl {
  appearance: none;
  border: 1px solid var(--edge-dark-strong);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--on-dark);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.ctl:hover {
  background: var(--glass-strong);
  border-color: var(--lamp);
}
.ctl[aria-pressed="true"],
.ctl.primary {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--carbon-0);
}
.ctl:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ---- The atlas: what is in orbit ---- */
.atlas {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--edge-dark);
  min-width: 0;
}
.atlas-head {
  margin: 0;
  max-width: 62ch;
  color: var(--on-dark-2);
  font-size: 0.86rem;
}
.atlas-head b {
  color: var(--on-dark);
  font-weight: 600;
}
.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.key {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark);
  background: var(--glass);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
}
.key::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue);
}
.key small {
  font-family: var(--code);
  font-size: 0.68rem;
  color: var(--on-dark-3);
}
.key:hover,
.key:focus-visible,
.key.lit {
  border-color: var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--hue) 35%, transparent);
}
.readout {
  margin: 0;
  min-height: 1.35em;
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--on-dark-3);
}

/* ---- The conversation: a pane of glass over the scene ---- */
.talk {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: 26px;
  border: 1px solid var(--edge-dark);
  background: linear-gradient(180deg, rgb(255 240 220 / 0.075), rgb(255 240 220 / 0.03));
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.09),
    0 30px 90px rgb(0 0 0 / 0.45);
  overflow: hidden;
}
/* The tour narrates itself in a band across the top of the glass. */
.tour-note {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--edge-dark);
  background: rgb(255 255 255 / 0.94);
  color: var(--carbon-0);
}
.tour-note p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  text-wrap: balance;
}
.tour-note .link {
  flex: none;
  color: var(--carbon-0);
  font-size: 0.8rem;
}
.thread {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 24px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 236 210 / 0.25) transparent;
}
.thread:focus-visible {
  outline-offset: -4px;
}
.turn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: 22px;
}
.turn.user {
  align-items: flex-end;
}
.q {
  margin: 0;
  max-width: 86%;
  padding: 9px 15px;
  border-radius: 18px 18px 5px 18px;
  border: 1px solid var(--edge-dark);
  background: var(--glass-strong);
  color: var(--on-dark);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}
/* What the guide says is set as speech, in the one serif on the page. */
.voice {
  margin: 0;
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(1.14rem, 1.04rem + 0.42vw, 1.36rem);
  line-height: 1.44;
  letter-spacing: -0.004em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.turn.lead .voice {
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem);
  line-height: 1.26;
  letter-spacing: -0.014em;
}
.voice .w {
  animation: surface 0.5s var(--ease) both;
  animation-delay: calc(var(--n) * 18ms);
}
@keyframes surface {
  from {
    opacity: 0;
    filter: blur(5px);
  }
}
/* On a phone the words surface without the blur (costly on mid-range GPUs, and it smears the first lines). */
@keyframes surface-plain {
  from {
    opacity: 0;
  }
}
@media (max-width: 900px) {
  .voice .w,
  .turn.guide.streaming .voice .w {
    animation-name: surface-plain;
  }
}
.turn[data-route="urgent"] .voice {
  font-weight: 400;
}

/* How the reply was produced: four gates, the one that answered lit. */
.trace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  font-size: 0.78rem;
  color: var(--on-dark-3);
}
.rail {
  display: inline-flex;
  gap: 3px;
}
.rail i {
  width: 15px;
  height: 4px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.4);
}
.rail i[data-s="hit"] {
  background: var(--lamp);
  box-shadow: 0 0 10px var(--lamp);
}
.rail i[data-s="skip"] {
  background: rgb(255 255 255 / 0.12);
}
.turn[data-route="urgent"] .rail i[data-s="hit"] {
  background: var(--rose);
  box-shadow: 0 0 10px var(--rose);
}
.trace b {
  color: var(--on-dark);
  font-weight: 600;
}
.trace .ms {
  font-family: var(--code);
  font-size: 0.72rem;
}
.layers-btn {
  appearance: none;
  margin-left: auto;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark-strong);
  background: transparent;
  color: var(--on-dark);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.layers-btn:hover {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--carbon-0);
}

/* The live turn while gated sentences arrive: each surfaces as it is released, and a quiet lamp
   at the end says more is coming. */
.turn.guide.streaming .voice .w {
  animation: surface 0.42s var(--ease) both;
}
.turn.guide.streaming .voice::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.18em;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 12px var(--lamp);
  vertical-align: 0.1em;
  animation: streaming-lamp 1.1s ease-in-out infinite alternate;
}
@keyframes streaming-lamp {
  from {
    opacity: 0.25;
  }
}

/* The deeper answer on screen: one point per line, each with the sources it came from. */
ol.detail {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: detail;
}
ol.detail > li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--edge-dark);
  border-radius: 12px;
  background: var(--glass);
  color: var(--on-dark);
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  counter-increment: detail;
}
ol.detail > li::before {
  content: counter(detail);
  position: absolute;
  left: 12px;
  top: 11px;
  min-width: 16px;
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--on-dark-3);
}
ol.detail > li > ul.cites {
  margin-top: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .turn.guide.streaming .voice .w,
  .turn.guide.streaming .voice::after {
    animation: none;
  }
}

.cites {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cites button {
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--hue) 46%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--hue) 9%, transparent);
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--on-dark);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.cites button::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
  translate: 0 -1px;
}
.cites button:hover {
  background: color-mix(in srgb, var(--hue) 24%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hue) 35%, transparent);
}
/* The sources land after the words, one after another. */
@media (prefers-reduced-motion: no-preference) {
  .turn.guide > .cites > li {
    animation: cite-land var(--dur-2, 240ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
    animation-delay: calc(360ms + var(--c, 0) * 40ms);
  }
  .turn.guide > .cites > li:nth-child(2) {
    --c: 1;
  }
  .turn.guide > .cites > li:nth-child(3) {
    --c: 2;
  }
  .turn.guide > .cites > li:nth-child(n + 4) {
    --c: 3;
  }
  /* Checking the labels: a lamp runs round the conversation pane while the guide thinks. */
  .stage[data-state="thinking"] ~ .talk::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--beam, 0deg), transparent 70%, var(--lamp) 85%, transparent);
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box exclude,
      linear-gradient(#000 0 0);
    pointer-events: none;
    animation: beam 2.4s linear infinite;
  }
}
@keyframes cite-land {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}
.more {
  appearance: none;
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--on-dark-2);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Cards: detail, one layer above the glass ---- */
.card {
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--edge-dark);
  background: var(--panel-dark);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  font-size: 0.93rem;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.card ul,
.card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card ul > li {
  position: relative;
  padding-left: 18px;
  color: var(--on-dark-2);
}
.card ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 8px color-mix(in srgb, var(--hue) 70%, transparent);
}
.card ul > li b {
  display: block;
  color: var(--on-dark);
  font-weight: 600;
}
.card .foot {
  margin: 12px 0 0;
  color: var(--on-dark-3);
  font-size: 0.8rem;
}
.card.caution {
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
  background: color-mix(in srgb, var(--amber) 7%, var(--panel-dark));
  --hue: var(--amber);
}
.card.caution h3 {
  color: var(--amber);
}
.scroll {
  overflow-x: auto;
  margin-inline: -4px;
  padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 236 210 / 0.25) transparent;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 470px;
  font-size: 0.85rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  border-bottom: 1px solid var(--edge-dark);
  color: var(--on-dark-2);
}
thead th {
  color: var(--on-dark);
  font-size: 0.92rem;
  border-bottom: 2px solid var(--hue);
}
thead td {
  border-bottom-color: transparent;
}
tbody th {
  color: var(--on-dark-3);
  font-weight: 600;
  font-size: 0.76rem;
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}
.steps {
  counter-reset: step;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  column-gap: 12px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--edge-dark-strong);
  font-family: var(--code);
  font-size: 0.76rem;
  display: grid;
  place-items: center;
}
.steps b {
  font-weight: 600;
}
.steps span {
  color: var(--on-dark-2);
  font-size: 0.9rem;
}
/* The FDA prints its most serious warning inside a heavy ruled box. Urgent cards borrow it. */
.card.boxed {
  border: 2px solid var(--on-dark);
  border-radius: 3px;
  background: color-mix(in srgb, var(--rose) 12%, var(--panel-dark));
}
.card.boxed h3 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  color: var(--rose);
}
.card.boxed p {
  margin: 0;
  color: var(--on-dark);
}
.lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.lines a,
.lines span {
  display: inline-block;
  padding: 8px 13px;
  border: 2px solid var(--on-dark);
  border-radius: 3px;
  background: var(--on-dark);
  color: var(--carbon-0);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  user-select: all;
}
.card.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  border-color: var(--edge-dark-strong);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.03));
}
.card.action div {
  flex: 1 1 220px;
  min-width: 0;
}
.card.action h3 {
  margin-bottom: 4px;
}
.card.action p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 0.9rem;
}
.go {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  background: var(--lamp);
  color: var(--carbon-0);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 34px rgb(255 232 205 / 0.35);
}
blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--hue);
}
blockquote + blockquote {
  margin-top: 14px;
}
blockquote p {
  margin: 0;
  font-family: var(--voice);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-dark);
}
blockquote cite {
  display: block;
  margin-top: 5px;
  font-family: var(--code);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--on-dark-3);
}

/* Dose schedule: each label's steps as a staircase with depth. Height shows order within one
   medicine only; doses are never drawn to a shared scale, because they are not comparable. */
.ladder {
  display: grid;
  gap: 10px;
  padding-block: 12px 4px;
  border-top: 1px solid var(--edge-dark);
}
.ladder:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.ladder-name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.ladder-name b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ladder-name b::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue);
}
.ladder-name span {
  color: var(--on-dark-3);
  font-size: 0.8rem;
}
.stairs,
.card .stairs {
  display: grid;
  grid-auto-flow: column;
  /* Wide enough that a dose and its caption never break mid-word; a long schedule scrolls. */
  grid-auto-columns: minmax(66px, 1fr);
  align-items: end;
  gap: 0;
  min-height: 112px;
  padding: 12px 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.stairs li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  min-height: calc(38px + 58px * var(--rise));
  padding: 7px 6px 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) calc(18% + 30% * var(--rise)), #0f0d14), color-mix(in srgb, var(--hue) 8%, #0f0d14));
  border-left: 1px solid color-mix(in srgb, var(--hue) 55%, transparent);
}
/* The tread and the riser that give each step its depth. */
.stairs li::before {
  content: "";
  position: absolute;
  left: -1px;
  right: 0;
  bottom: 100%;
  height: 10px;
  background: color-mix(in srgb, var(--hue) calc(55% + 35% * var(--rise)), #ffffff 12%);
  transform-origin: bottom;
  transform: skewX(-45deg);
  translate: 5px 0;
}
.stairs li:last-child::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: 10px;
  background: color-mix(in srgb, var(--hue) 26%, #060814);
  transform-origin: left;
  transform: skewY(-45deg);
}
.stairs b {
  font-family: var(--code);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--on-dark);
  /* Wraps between a number and its unit if it must, never inside either. */
  overflow-wrap: normal;
}
.stairs span {
  color: var(--on-dark-2);
  font-size: 0.72rem;
  line-height: 1.2;
}

/* Where the medicines act: a figure with the three sites the labels describe. */
.signal-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
}
.figure {
  width: 112px;
  height: auto;
  overflow: visible;
}
.figure .outline {
  fill: rgb(255 240 220 / 0.05);
  stroke: var(--edge-dark-strong);
  stroke-width: 1;
}
.figure .site {
  fill: var(--lamp);
}
.figure .ping {
  fill: none;
  stroke: var(--lamp);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.8s ease-out infinite;
}
.figure .ping:nth-of-type(2) {
  animation-delay: 0.9s;
}
.figure .ping:nth-of-type(3) {
  animation-delay: 1.8s;
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}
.nodes,
.card .nodes {
  gap: 12px;
}
.card .nodes > li {
  padding-left: 0;
  display: grid;
  gap: 2px;
}
.card .nodes > li::before {
  display: none;
}
.nodes b {
  color: var(--on-dark);
  font-weight: 600;
}
.nodes span {
  color: var(--on-dark-2);
  font-size: 0.88rem;
}

/* ---- The dock: chips and the composer ---- */
.dock {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 14px 16px 14px;
  border-top: 1px solid var(--edge-dark);
  background: rgb(15 13 20 / 0.35);
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}
.chips:empty {
  display: none;
}
.chip {
  appearance: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark);
  background: var(--glass);
  color: var(--on-dark);
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.chip:hover {
  background: var(--glass-strong);
  border-color: var(--lamp);
}
.composer {
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark-strong);
  background: rgb(15 13 20 / 0.6);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer:focus-within {
  border-color: var(--lamp);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.07);
}
.composer input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  outline: none;
}
.composer input::placeholder {
  color: var(--on-dark-3);
}
.icon {
  appearance: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--lamp);
  color: var(--carbon-0);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon.ghost {
  background: var(--glass-strong);
  color: var(--on-dark);
}
.icon[aria-pressed="true"] {
  background: var(--amber);
  color: var(--carbon-0);
}
.icon:disabled {
  opacity: 0.5;
  cursor: default;
}
.icon svg {
  width: 20px;
  height: 20px;
}
.fine {
  margin: 0;
  color: var(--on-dark-3);
  font-size: 0.76rem;
}
.link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: var(--on-dark-2);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Lead form ---- */
.lead {
  display: grid;
  gap: 10px;
  width: 100%;
}
.lead .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.lead label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--on-dark-2);
}
.lead input[type="text"],
.lead input[type="email"],
.lead input[type="tel"] {
  padding: 10px 12px;
  border: 1px solid var(--edge-dark-strong);
  border-radius: 10px;
  background: rgb(15 13 20 / 0.6);
  color: var(--on-dark);
}
.lead .agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--on-dark-2);
}
.lead .trap {
  position: absolute;
  left: -9999px;
}
.lead output {
  font-size: 0.86rem;
  color: var(--on-dark-2);
}

/* ---- The sheet: label lens, labels and notices, visit summary ---- */
.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(500px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--edge-dark-strong);
  background: rgb(15 13 20 / 0.84);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  color: var(--on-dark);
  box-shadow: -30px 0 90px rgb(0 0 0 / 0.55);
}
.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: slide var(--dur-3, 420ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}
@keyframes slide {
  from {
    transform: translateX(46px);
    opacity: 0;
  }
}
.sheet::backdrop,
.anatomy::backdrop {
  background: rgb(15 13 20 / 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 20px 16px;
  border-bottom: 1px solid var(--edge-dark);
  border-top: 3px solid var(--hue);
}
.sheet h2,
.anatomy h2 {
  margin: 2px 0 0;
  font-family: var(--voice);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.012em;
  line-height: 1.15;
  text-wrap: balance;
}
.eyebrow {
  margin: 0;
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--on-dark-2);
}
.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px;
  display: grid;
  align-content: start;
  gap: 13px;
  font-family: var(--voice);
  font-size: 1.04rem;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: rgb(255 236 210 / 0.25) transparent;
}
.sheet-body p,
.sheet-body ul,
.sheet-body h3 {
  margin: 0;
}
.sheet-body ul {
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}
.sheet-body h3 {
  font-family: var(--ui);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--on-dark-2);
}
.sheet-body .muted,
.sheet-body .plain {
  font-family: var(--ui);
  font-size: 0.9rem;
}
.label-row {
  display: grid;
  gap: 2px;
  padding: 11px 0 11px 16px;
  border-left: 3px solid var(--hue);
  font-family: var(--ui);
}
.label-row a {
  font-size: 0.95rem;
  font-weight: 600;
}
.label-row span {
  font-family: var(--code);
  font-size: 0.7rem;
  color: var(--on-dark-3);
}
.sheet > footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px calc(env(safe-area-inset-bottom, 0px) + 15px);
  border-top: 1px solid var(--edge-dark);
  font-size: 0.8rem;
}
.sheet > footer:empty {
  display: none;
}
.copy-fallback {
  width: 100%;
  min-height: 9em;
  font: inherit;
  font-size: 0.82rem;
  color: var(--on-dark);
  background: rgb(15 13 20 / 0.6);
  border: 1px solid var(--edge-dark-strong);
  border-radius: 8px;
  padding: 8px;
}

/* ---- Answer anatomy: the layers of one reply, pulled apart ---- */
.anatomy {
  width: min(1020px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--edge-dark-strong);
  border-radius: 28px;
  background: rgb(15 13 20 / 0.88);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  color: var(--on-dark);
  box-shadow: 0 40px 140px rgb(0 0 0 / 0.7);
  overflow: hidden;
}
.anatomy[open] {
  display: flex;
  flex-direction: column;
  animation: lift 0.45s var(--ease);
}
@keyframes lift {
  from {
    transform: translateY(26px) scale(0.98);
    opacity: 0;
  }
}
.anatomy > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px 4px;
}
.anatomy > header p {
  margin: 6px 0 0;
  color: var(--on-dark-2);
  font-size: 0.88rem;
}
.anatomy-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 26px;
  padding: 8px 24px 24px;
  overflow-y: auto;
}
.stack-view {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 560px;
  display: grid;
  place-items: center;
  perspective: 1700px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.stack-view:active {
  cursor: grabbing;
}
.stack {
  --rx: 60deg;
  --rz: -38deg;
  --gap: 78px;
  --open: 0;
  position: relative;
  width: min(290px, 56vw);
  aspect-ratio: 1.42;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz));
}
.stack.open {
  --open: 1;
}
.plane {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgb(255 236 210 / 0.42);
  background: linear-gradient(135deg, rgb(46 41 52 / 0.92), rgb(23 20 30 / 0.92));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.03) inset;
  text-align: center;
  transform: translateZ(calc((var(--mid) - var(--i)) * var(--gap) * var(--open)));
  transition:
    transform 1s var(--ease),
    background 0.3s,
    border-color 0.3s,
    opacity 0.3s;
  transition-delay: calc(var(--i) * 40ms), 0s, 0s, 0s;
}
.plane b {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.plane span {
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--on-dark-2);
}
.plane[data-s="hit"] {
  background: rgb(var(--lamp-rgb) / 0.94);
  border-color: var(--lamp);
  color: var(--carbon-0);
  box-shadow: 0 0 70px rgb(255 232 205 / 0.65);
}
.plane[data-s="hit"] span {
  color: #4a4452;
}
.plane[data-s="skip"] {
  border-style: dashed;
  background: transparent;
  opacity: 0.38;
}
.plane.on:not([data-s="hit"]) {
  background: linear-gradient(135deg, rgb(62 55 66 / 0.95), rgb(46 41 52 / 0.95));
  border-color: var(--lamp);
  opacity: 1;
}
.stack[data-route="urgent"] .plane[data-s="hit"] {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 70px rgb(255 122 134 / 0.6);
}
.layers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  counter-reset: layer;
}
.layers > li {
  counter-increment: layer;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  column-gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.layers > li::before {
  content: counter(layer);
  grid-row: span 2;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--edge-dark-strong);
  font-family: var(--code);
  font-size: 0.74rem;
  display: grid;
  place-items: center;
}
.layers > li.on,
.layers > li:hover {
  background: var(--glass);
  border-color: var(--edge-dark);
}
.layers > li[data-s="hit"]::before {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--carbon-0);
  box-shadow: 0 0 16px rgb(255 232 205 / 0.7);
}
.layers > li[data-s="skip"] {
  opacity: 0.5;
}
.layers b {
  font-weight: 600;
  font-size: 0.95rem;
}
.layers b em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--code);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--on-dark-3);
}
.layers > li[data-s="hit"] b em {
  color: var(--on-dark);
}
.layers p {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 0.86rem;
}
.layers .cites {
  grid-column: 2;
  margin-top: 6px;
}

/* ---- Arrival: the layers settle into place once ---- */
@media (prefers-reduced-motion: no-preference) {
  .booting .bar,
  .booting .ident,
  .booting .atlas,
  .booting .talk {
    animation: settle 0.9s var(--ease) both;
  }
  .booting .ident {
    animation-delay: 0.5s;
  }
  .booting .atlas {
    animation-delay: 0.8s;
  }
  .booting .talk {
    animation-delay: 0.25s;
  }
  .booting .key {
    animation: settle 0.6s var(--ease) both;
    animation-delay: calc(1s + var(--k) * 110ms);
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Narrow: the guide stands beside its name, the conversation runs below ---- */
@media (max-width: 900px) {
  .theater {
    background:
      radial-gradient(90% 40% at 78% 16%, #221e2b 0%, rgb(34 30 43 / 0.6) 40%, transparent 78%),
      var(--carbon-0);
  }
  .presence.has-face {
    height: 136px;
  }
  .presence.has-face .portrait {
    width: min(92cqw, 92cqh);
  }
  .app {
    gap: 6px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 10px 10px;
  }
  .bar {
    gap: 4px 10px;
  }
  .brand small {
    display: none;
  }
  .notice {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.7rem;
    color: var(--on-dark-3);
  }
  .pill {
    padding: 3px 9px;
    font-size: 0.72rem;
  }
  .deck {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
  }
  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    grid-template-areas: "who presence" "status presence" "controls controls";
    align-items: end;
    gap: 5px 0;
  }
  .presence {
    grid-area: presence;
    flex: none;
    height: 112px;
    align-self: stretch;
  }
  .reticle {
    width: min(150cqw, 150cqh);
  }
  /* The name, the status and the controls become rows of the stage itself. */
  .ident {
    display: contents;
  }
  .who {
    grid-area: who;
    flex-direction: column;
    gap: 2px;
  }
  .status {
    grid-area: status;
  }
  .who h2 {
    font-size: 2.5rem;
  }
  .who span {
    font-size: 0.82rem;
  }
  .status {
    font-size: 0.78rem;
  }
  .controls {
    grid-area: controls;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ctl {
    flex: none;
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .caption {
    display: none;
  }
  /* Live video needs room: the porthole takes the full width and the name moves under it. */
  .stage:has(.has-video) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "presence" "who" "status" "controls";
  }
  .presence.has-video {
    height: min(52vw, 260px);
  }
  .presence.has-video video {
    width: min(86cqw, 96cqh);
  }
  .atlas {
    display: none;
  }
  .talk {
    border-radius: 22px;
  }
  .thread {
    padding: 18px 16px 16px;
    gap: 22px;
  }
  .voice {
    font-size: 1.1rem;
  }
  .turn.lead .voice {
    font-size: 1.32rem;
  }
  .dock {
    gap: 7px;
    padding: 10px 12px 10px;
  }
  .fine {
    font-size: 0.68rem;
  }
  .anatomy-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 4px 16px 18px;
  }
  .anatomy > header {
    padding: 18px 16px 2px;
  }
  .stack-view {
    position: relative;
    min-height: 400px;
  }
  .stack {
    --gap: 54px;
    width: min(210px, 54vw);
  }
  .plane b {
    font-size: 0.92rem;
  }
  .signal-body {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px 14px;
  }
  .figure {
    width: 84px;
  }
}
@media (max-height: 620px) and (min-width: 901px) {
  .atlas-head {
    display: none;
  }
}

/* ---- Embedded in a client page: the guide is the whole frame, narrow, without the bar ---- */
:root[data-embed] {
  color-scheme: dark;
}
:root[data-embed],
:root[data-embed] body {
  height: 100%;
  overflow: hidden;
  background: var(--carbon-0);
}
:root[data-embed] .site,
:root[data-embed] .launch {
  display: none;
}
:root[data-embed] .theater {
  clip-path: none;
  transition: none;
}
:root[data-embed] .bar {
  display: none;
}
:root[data-embed] .app {
  grid-template-rows: minmax(0, 1fr);
  padding-block: 8px;
}
:root[data-embed] .presence {
  height: 96px;
}
:root[data-embed] .who h2 {
  font-size: 2rem;
}

/* The site around the guide, on the Darkfield and Vellum tokens (tokens.css).

   Vellum is the clinic: the tenant's paper, ink and brand colour, a white clinical layout for the
   chrome and every reading page. Darkfield is the instrument: Gema's panel, every answer pane and
   every piece of 3D sit on warm carbon lit by one lamp, on any tenant's page, so she reads as the
   new layer on the clinic's site. Depth is used for meaning: the hero's panel holds the knowledge
   base in orbit, cards lean toward the pointer, and the glass box pulls one answer apart into the
   layers that made it. */

:root {
  --nav-space: 78px;
}
html {
  scroll-padding-top: 92px;
}
body {
  background: var(--paper);
  color: var(--ink);
}
.site {
  overflow-x: clip;
}
.site h1,
.site h2,
.site h3 {
  margin-block: 0;
  font-family: var(--ui);
  font-weight: var(--w-head, 600);
  letter-spacing: var(--track-3, -0.03em);
  line-height: var(--lh-head, 1.04);
  text-wrap: balance;
}
/* The scale's defaults. Sections and templates that set their own size come later in the cascade
   and win; anything that sets none lands on a step, never on the browser's 2em. */
.site h1 {
  font-size: var(--step-4);
  letter-spacing: var(--track-4);
  line-height: var(--lh-display);
}
.site h2 {
  font-size: var(--step-3);
  letter-spacing: var(--track-3);
}
.site h3 {
  font-size: var(--step-2);
  letter-spacing: var(--track-2);
}
.site h1 em,
.site h2 em {
  font-family: var(--voice);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.site p {
  margin-block: 0;
}
.site p,
.site li,
.site blockquote {
  text-wrap: pretty;
}
/* An eyebrow: Plex Mono, set close, led by a 16px champagne rule. The rule is the one place the
   accent shows on the paper, as a line and never as text. */
.kicker {
  font-family: var(--code);
  font-size: var(--step--2);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--line-lux);
}
.darkfield .kicker,
.night .kicker {
  color: var(--on-dark-2);
}
.mono {
  font-family: var(--code);
  font-variant-numeric: tabular-nums;
}

/* ---- Buttons: one family, three ranks ----
   Primary (solid; light on navy) 48px, secondary (outline; glassy on navy) and quiet 44px. Every
   one is a 44px target or larger. The champagne line appears on the primary's hover: the one
   luxury cue a button carries. */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* About one word space: "Ask" and the guide's name are separate flex items. */
  gap: 0.3em;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 600 var(--step-0) / 1 var(--ui);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1),
    border-color var(--dur-1),
    box-shadow var(--dur-1),
    color var(--dur-1);
}
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px);
  }
}
.btn.solid,
.btn.light {
  min-height: 48px;
  padding: 0 24px;
}
.btn.solid {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--hairline-top), var(--elev-1);
}
.btn.solid:hover {
  background: color-mix(in oklab, var(--brand) 88%, #ffffff);
  box-shadow:
    inset 0 0 0 1px var(--line-lux),
    var(--elev-2);
}
.btn.outline {
  border-color: color-mix(in oklab, var(--brand) 22%, var(--paper));
  color: var(--brand);
  background: transparent;
}
.btn.outline:hover {
  border-color: var(--brand);
}
/* On navy and on the Darkfield. */
.btn.light {
  background: var(--lamp);
  color: var(--brand);
  box-shadow: var(--elev-1);
}
.btn.light:hover {
  background: #ffffff;
}
.btn.glassy {
  border-color: var(--edge-dark-strong);
  background: var(--glass);
  color: var(--on-dark);
}
.btn.glassy:hover {
  border-color: var(--accent-lux);
}
.btn.quiet {
  background: none;
  color: var(--brand);
  border-color: var(--rule-strong);
}
.btn.quiet:hover {
  border-color: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transform: none;
  }
}
.quiet-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.quiet-link:hover {
  text-decoration-thickness: 2px;
}

/* ---- The concept ribbon and the bar ---- */
.ribbon {
  padding: 7px var(--gut);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.78rem;
  text-align: center;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  padding: 0 max(var(--gut), calc((100% - var(--wide)) / 2));
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  color: var(--ink);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition:
    box-shadow 0.3s,
    background 0.3s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--paper) 96%, transparent);
  box-shadow: var(--lift-1);
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
/* A lockup wordmark ("NIRVANI | GLP"): the name and the vertical, wide set at an elegant weight,
   with a 1px rule between them in the champagne accent (the brand colour where a tenant sets none). */
.logo:has(.wm-main),
#brand:has(.wm-main) {
  display: inline-flex;
  align-items: center;
  gap: 0.62em;
  line-height: 1;
}
.wm-main,
.wm-sub {
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.28em;
  /* The last letter's tracking would sit outside the word; pull it back so the rule is centred. */
  margin-right: -0.28em;
}
.wm-sub {
  font-size: 0.68em;
  font-weight: 400;
}
/* NAME is the official NIRVANI wordmark, never the name set in type: the real chrome logo in navy on
   light grounds and in ivory on navy ones. The word stays in the markup for screen readers and search. */
.wm-main {
  display: inline-block;
  width: 5.76em;
  height: 1em;
  margin-right: 0;
  letter-spacing: 0;
  color: transparent;
  overflow: hidden;
  background: var(--logo-on-light) left center / contain no-repeat;
  user-select: none;
}
.site-foot .wm-main,
.darkfield .wm-main,
#brand .wm-main {
  background-image: var(--logo-on-dark);
}
.wm-rule {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  background: var(--accent-lux);
}
.links {
  display: flex;
  gap: 2px;
  margin-inline: auto;
}
.links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.links a:hover,
.links a[aria-current] {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav .btn.solid {
  min-height: 40px;
  padding: 9px 18px;
  box-shadow: none;
}
.menu-btn {
  appearance: none;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: none;
  color: var(--brand);
  place-items: center;
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- The hero: the question first, the instrument beside it ----
   One job per side: the words and the ask bar on the left, Gema's instrument on the right. The
   composition is centred in the frame the visitor sees (below the bar, above the safety tray), so
   the first three seconds read as one set piece on desktop and phone. */
html {
  scroll-padding-bottom: 96px;
}
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 3.4vw, 48px) var(--gut) clamp(36px, 4vw, 56px);
  background:
    radial-gradient(58% 72% at 84% 42%, color-mix(in oklab, var(--brand) 5%, transparent), transparent 72%),
    var(--paper);
}
/* One champagne hairline closes the hero: the only place the accent shows on ivory, as a line. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto var(--gut) 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-lux, color-mix(in oklab, var(--accent-lux, #c9b37e) 70%, transparent)), transparent);
  opacity: 0.7;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
  width: min(var(--wide), 100%);
  min-height: calc(100svh - var(--head-h, 64px) - var(--isi-h, 64px) - clamp(64px, 7.4vw, 104px));
  margin-inline: auto;
}
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-5, 24px);
  align-content: center;
  min-width: 0;
}
.hero .kicker {
  color: var(--ink-2);
}
.nb {
  white-space: nowrap;
}
.hero h1 {
  font-size: min(var(--step-5, 4.375rem), 4.25rem);
  font-weight: var(--w-head, 600);
  line-height: 1;
  letter-spacing: var(--track-5, -0.04em);
  color: var(--ink);
  text-wrap: balance;
}
/* The emphasis half is one line of Spectral light italic: a two-line headline on desktop. */
.hero h1 em {
  display: block;
  margin-top: 0.04em;
  color: var(--brand);
  font-weight: 300;
  letter-spacing: -0.02em;
}
@media (min-width: 1100px) {
  .hero h1 em {
    white-space: nowrap;
  }
}
.hero .lede {
  max-width: var(--measure-lede, 44ch);
  color: var(--ink-2);
  font-size: var(--step-1, 1.125rem);
  line-height: var(--lh-body, 1.6);
  text-wrap: pretty;
}

/* The ask bar is the hero's one action: a 64px pill, lit by the brand on focus. */
.askbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 600px;
  min-width: 0;
  min-height: 64px;
  margin-top: var(--sp-2, 8px);
  padding: 7px 7px 7px 26px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
  box-shadow: var(--elev-1, 0 1px 2px rgb(11 27 58 / 0.05), 0 10px 28px -18px rgb(11 27 58 / 0.22));
  transition:
    border-color var(--dur-1, 160ms) var(--ease-out),
    box-shadow var(--dur-1, 160ms) var(--ease-out);
}
.askbar:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--rule-strong));
}
.askbar:focus-within {
  border-color: var(--brand);
  box-shadow:
    var(--focus-ring, 0 0 0 2px var(--paper), 0 0 0 4px var(--brand)),
    var(--elev-2, 0 2px 6px rgb(11 27 58 / 0.06), 0 28px 56px -28px rgb(11 27 58 / 0.32));
}
.askbar input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 1.06rem;
  text-overflow: ellipsis;
}
.askbar input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.ask-go {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px 0 24px;
  border: 0;
  border-radius: var(--r-pill, 999px);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: var(--step-0, 1rem);
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow: var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5));
  transition:
    background-color var(--dur-1, 160ms) var(--ease-out),
    box-shadow var(--dur-1, 160ms) var(--ease-out);
}
.ask-go:hover {
  background: color-mix(in oklab, var(--brand) 88%, #ffffff);
  box-shadow: inset 0 0 0 1px var(--line-lux, rgb(201 179 126 / 0.7));
}
.ask-go svg {
  width: 18px;
  height: 18px;
  transition: translate var(--dur-1, 160ms) var(--ease-out);
}
.ask-go:hover svg {
  translate: 3px 0;
}
.hero-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
}
.hero .chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-size: var(--step--1, 0.875rem);
  font-weight: 500;
  white-space: nowrap;
}
.hero .chip:hover {
  border-color: var(--brand);
  background: var(--sheet);
}
.hero-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: calc(-1 * var(--sp-2, 8px));
  font-size: var(--step--1, 0.875rem);
}
/* The price line keeps its place while the tenant's copy arrives, so nothing below it moves. */
.price[hidden] {
  display: inline-block !important;
  visibility: hidden;
}
.price {
  font-family: var(--code);
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 6px 12px;
  border: 1px dashed var(--rule-strong);
  border-radius: 14px;
}
/* The clinic's price, then on its own line whose words they are and when they were read. */
.price .price-from {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--ink-2);
}

/* ---- Gema's panel: Darkfield on any tenant's page ----
   One job: the instrument. The orbit, her portrait, the name plate, the recorded demo and the seven
   label keys. It ends above the fold (the live tests have their own band below the hero). */
.mira-panel {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-radius: var(--r-lg, 28px);
  border: 1px solid var(--edge-dark, rgb(201 179 126 / 0.16));
  background:
    radial-gradient(64% 52% at 50% 34%, rgb(var(--lamp-rgb) / 0.09), transparent 72%),
    linear-gradient(180deg, var(--carbon-1), var(--carbon-0));
  box-shadow:
    var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5)),
    var(--elev-3, 0 40px 90px -40px rgb(6 15 34 / 0.55)),
    0 18px 40px -28px rgb(6 15 34 / 0.45);
  overflow: hidden;
  transition: box-shadow 0.5s;
}
/* The seven label hues as a hairline along the top edge: the shader's dispersion rim, in CSS. */
.mira-panel::before {
  content: "";
  position: absolute;
  inset: 0 18% auto;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--ozempic), var(--ozempic_tablets), var(--wegovy), var(--mounjaro), var(--zepbound), var(--saxenda), var(--foundayo), transparent);
  opacity: 0.7;
}
.mira-panel[data-state="urgent"] {
  box-shadow:
    var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5)),
    0 0 0 1px color-mix(in oklab, var(--rose) 60%, transparent),
    0 40px 90px -30px color-mix(in oklab, var(--rose) 40%, transparent);
}
.panel-stage {
  position: relative;
  min-height: clamp(520px, 41vw, 596px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  justify-items: center;
  padding: 28px 28px 26px;
}
.portal {
  position: relative;
  z-index: 0;
  width: min(100%, 248px);
  aspect-ratio: 1;
  container-type: size;
  align-self: center;
}
.portal .reticle {
  width: 100cqw;
}
.portal .orb {
  width: 54cqw;
}
/* The face fills the glass form exactly: the scene draws that form's skin over it. */
.portal .portrait {
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70cqw;
  aspect-ratio: 1;
  translate: -50% -50%;
  padding: 0;
  border: 0;
  cursor: pointer;
  box-shadow:
    0 0 0 1px var(--edge-dark-strong),
    0 0 80px rgb(var(--lamp-rgb) / 0.28);
  transition: box-shadow 0.4s;
}
.portal .portrait:hover {
  box-shadow:
    0 0 0 1px var(--lamp),
    0 0 110px rgb(var(--lamp-rgb) / 0.45);
}
.panel-plate {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
}
.panel-plate b {
  font-family: var(--voice);
  font-weight: 300;
  font-size: clamp(2.2rem, 1.7rem + 1.2vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--on-dark);
}
.panel-plate span {
  color: var(--on-dark-2);
  font-family: var(--code);
  font-size: var(--step--2, 0.75rem);
  letter-spacing: var(--track-eyebrow, 0.16em);
  text-transform: uppercase;
}
/* The recorded demo: a quiet pill under the name plate, and a dialog that plays the video. */
.demo-watch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgb(var(--lamp-rgb) / 0.45);
  border-radius: 999px;
  background: rgb(var(--lamp-rgb) / 0.08);
  color: var(--on-dark);
  font: 500 0.92rem/1 var(--ui, inherit);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.demo-watch svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: var(--lamp);
  color: #0b1324;
}
.demo-watch:hover,
.demo-watch:focus-visible {
  background: rgb(var(--lamp-rgb) / 0.16);
  box-shadow: 0 0 40px rgb(var(--lamp-rgb) / 0.35);
}
.demo-watch:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}
.demo-watch[hidden] {
  display: none;
}
.demo-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border: 1px solid var(--edge-dark);
  border-radius: var(--r-lg, 18px);
  background: var(--carbon-1);
  color: var(--on-dark);
  box-shadow:
    var(--hairline-top, inset 0 1px 0 rgb(255 255 255 / 0.08)),
    var(--elev-3, 0 30px 120px rgb(0 0 0 / 0.6));
}
.demo-dialog::backdrop {
  background: rgb(6 15 34 / 0.8);
  backdrop-filter: blur(8px);
}
/* Opening: the frame settles from 0.97 as the room behind it dims; closing runs at 65 %. */
@media (prefers-reduced-motion: no-preference) {
  .demo-dialog,
  .demo-dialog::backdrop {
    opacity: 0;
    transition:
      opacity calc(var(--dur-3, 420ms) * 0.65) var(--ease-in, cubic-bezier(0.55, 0, 0.75, 0.2)),
      scale calc(var(--dur-3, 420ms) * 0.65) var(--ease-in, cubic-bezier(0.55, 0, 0.75, 0.2)),
      overlay calc(var(--dur-3, 420ms) * 0.65) allow-discrete,
      display calc(var(--dur-3, 420ms) * 0.65) allow-discrete;
  }
  .demo-dialog {
    scale: 0.97;
  }
  .demo-dialog[open],
  .demo-dialog[open]::backdrop {
    opacity: 1;
    scale: 1;
    transition-duration: var(--dur-3, 420ms), var(--dur-3, 420ms), var(--dur-3, 420ms), var(--dur-3, 420ms);
    transition-timing-function: var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  }
  .demo-dialog[open]::backdrop {
    transition-duration: var(--dur-2, 240ms);
  }
  @starting-style {
    .demo-dialog[open],
    .demo-dialog[open]::backdrop {
      opacity: 0;
    }
    .demo-dialog[open] {
      scale: 0.97;
    }
  }
}
/* A phone: the video runs edge to edge, the title and close sit as one row above it. */
@media (max-width: 600px) {
  .demo-dialog {
    width: 100vw;
    max-width: 100vw;
    padding: 12px 0 16px;
    border-inline: 0;
    border-radius: 0;
  }
  .demo-head {
    padding-inline: 16px;
  }
  .demo-frame {
    border-radius: 0;
  }
  .demo-fine {
    padding-inline: 16px;
  }
}
.demo-dialog video::cue {
  font: 500 1.05rem/1.4 var(--ui);
  background: rgb(6 15 34 / 0.72);
  color: #fff;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.demo-head h2 {
  margin: 0;
  font-family: var(--voice);
  font-weight: 300;
  font-size: var(--step-3, 1.75rem);
  color: var(--on-dark);
}
.demo-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
}
.demo-close svg {
  width: 18px;
  height: 18px;
}
.demo-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.demo-frame video {
  display: block;
  width: 100%;
  height: 100%;
}
.demo-fine {
  margin: 10px 2px 0;
  color: var(--on-dark-2);
  font-size: 0.8rem;
}
@media (prefers-reduced-motion: reduce) {
  .demo-watch {
    transition: none;
  }
}
.orbit-key {
  position: relative;
  z-index: 2;
  min-height: 124px; /* the count and three rows of label keys, reserved before the config arrives */
  align-content: start;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-top: 10px;
  color: var(--on-dark-3);
  font-size: 0.78rem;
  text-align: center;
}
.orbit-key b {
  color: var(--on-dark);
  font-weight: 600;
}
.orbit-key .legend {
  justify-content: center;
  max-width: 100%;
}
.orbit-key .key {
  padding: 3px 9px 3px 8px;
  font-size: 0.74rem;
}

/* The shared 3D canvas, wherever the director puts it: it fades in over the slot's still. */
.scene-canvas,
.scene-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.scene-canvas {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.scene-live > .scene-canvas {
  opacity: 1;
}
/* A slot on a light page has no tile to clip to: the canvas reaches past the slot on every side
   so orbits and glow fade out on the paper instead of stopping at an edge. The renderer measures
   the slot itself, so the form stays centred and sized to it. */
[data-ground="light"] > .scene-canvas {
  inset: -22%;
  width: 144%;
  height: 144%;
}
/* The coil already spans its column: it reaches past its stage only up and down. */
[data-ground="light"] .coil-stage > .scene-canvas {
  inset: -12% 0;
  height: 124%;
}
.scene-still {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.scene-baked > .scene-still {
  opacity: 1;
}
.scene-live > :is([data-fallback], .cp-still, .coil-still, .orb, .pg-orb),
.scene-baked > :is([data-fallback], .cp-still) {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

/* ---- The proof: three live tests, on their own stage ----
   The demo's best trick gets a band of its own: the challenge on ivory at the left, the instrument's
   answer console at the right. The console's height is reserved, so nothing below it moves. */
.proof-run {
  position: relative;
  padding: var(--section-y, clamp(72px, 4.6rem + 4.5vw, 136px)) var(--gut);
  background: var(--paper);
}
.proof-grid {
  width: min(var(--wide), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.proof-head {
  display: grid;
  gap: var(--sp-4, 16px);
  justify-items: start;
  align-content: center;
}
.proof-head h2 {
  font-size: var(--step-4, clamp(2rem, 1.62rem + 1.6vw, 3rem));
  letter-spacing: var(--track-4, -0.03em);
  line-height: var(--lh-head, 1.1);
  color: var(--ink);
  max-width: 13ch;
}
.proof-head p {
  max-width: var(--measure-lede, 44ch);
  color: var(--ink-2);
  font-size: var(--step-1, 1.125rem);
  line-height: var(--lh-body, 1.6);
}
.run {
  flex: none;
  margin-top: var(--sp-2, 8px);
  min-height: 48px;
  padding: 0 24px;
}
.run:disabled {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule-strong);
  box-shadow: none;
  transform: none;
  cursor: default;
}
/* The three tests as one segmented control: a stacked list on ivory, the pressed one raised. */
.proof-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  width: 100%;
  max-width: 420px;
  min-height: 164px; /* three 48px rows and the track, reserved before the script fills them */
  margin-top: var(--sp-3, 12px);
  padding: 4px;
  border-radius: var(--r-sm, 12px);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.pr-tab {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-xs, 8px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: var(--step-0, 1rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--dur-1, 160ms) var(--ease-out),
    box-shadow var(--dur-1, 160ms) var(--ease-out),
    color var(--dur-1, 160ms);
}
.pr-tab:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--paper) 60%, transparent);
}
.pr-tab[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--rule);
  box-shadow: var(--elev-1, 0 1px 2px rgb(11 27 58 / 0.05), 0 10px 28px -18px rgb(11 27 58 / 0.22));
}
.pr-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  font-family: var(--code);
  font-size: var(--step--2, 0.75rem);
  font-weight: 400;
  color: var(--ink-2);
}
.pr-tab[aria-pressed="true"] .pr-n {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
/* The console: the instrument's own surface, where the live answer lands. */
.proof-console {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 36px);
  border-radius: var(--r-lg, 28px);
  border: 1px solid var(--edge-dark, rgb(201 179 126 / 0.16));
  background:
    radial-gradient(80% 90% at 100% 0%, rgb(var(--lamp-rgb) / 0.06), transparent 62%),
    var(--carbon-1);
  box-shadow:
    var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5)),
    var(--elev-3, 0 40px 90px -40px rgb(6 15 34 / 0.55));
  color: var(--on-dark);
  transition: box-shadow 0.5s;
}
.proof-console:has(.pr-urgent) {
  box-shadow:
    var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5)),
    0 0 0 1px color-mix(in oklab, var(--rose) 60%, transparent),
    0 40px 90px -36px color-mix(in oklab, var(--rose) 45%, transparent);
}
.proof-out {
  min-height: 384px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}
.pr-typing {
  font-family: var(--code);
  font-size: 0.82rem;
  color: var(--on-dark-2);
}
.pr-typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--lamp);
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.pr-card {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
  animation: settle 0.5s var(--ease-out) both;
}
@keyframes settle {
  from {
    opacity: 0;
    translate: 0 8px;
  }
}
.pr-q {
  font-family: var(--code);
  font-size: var(--step--2, 0.75rem);
  line-height: 1.5;
  color: var(--on-dark-2);
}
.pr-asked {
  color: var(--on-dark-3);
}
.pr-layer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: var(--on-dark);
}
.pr-layer b {
  font-weight: 600;
}
.pr-ms {
  font-family: var(--code);
  font-size: var(--step--2, 0.75rem);
  color: var(--on-dark-3);
  margin-left: auto;
}
.pr-911 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pr-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--carbon-0);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.pr-call:nth-child(n + 2) {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--edge-dark-strong);
  font-weight: 600;
  font-size: 0.86rem;
}
.pr-say {
  font-family: var(--voice);
  font-weight: 300;
  font-size: var(--step-2, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--on-dark);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pr-cite {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-xs, 8px);
  border: 1px solid color-mix(in oklab, var(--hue) 35%, var(--edge-dark-strong));
  background: color-mix(in oklab, var(--hue) 8%, transparent);
  color: var(--on-dark);
  font: 400 var(--step--2, 0.75rem)/1 var(--code);
  cursor: pointer;
  text-align: left;
}
.pr-cite::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
}
.pr-cite:hover {
  background: color-mix(in oklab, var(--hue) 20%, transparent);
}
.pr-proves {
  color: var(--lamp);
  font-size: 0.84rem;
  font-weight: 600;
}
.pr-urgent .pr-proves {
  color: var(--rose);
}
.pr-more {
  appearance: none;
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark-2);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pr-more:hover {
  color: var(--on-dark);
}

/* ---- Measured, not claimed ---- */
.proof-band {
  padding: 0 var(--gut);
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
}
.stats {
  width: min(var(--wide), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 36px 28px 34px;
  border-left: 1px solid var(--rule);
  min-height: 176px;
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
/* If a number came from a label or a measurement, it is set in mono. Numbers never count up: they
   arrive complete, with a short fade. */
.stat dt {
  height: 3.25rem;
  display: flex;
  align-items: flex-end;
  font-family: var(--code);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: var(--step-mono-xl, clamp(2.25rem, 1.9rem + 1.5vw, 3.25rem));
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  min-height: 1em;
}
.stat dt:not(.pending) {
  animation: stat-in 240ms var(--ease-out) both;
}
@keyframes stat-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat dt:not(.pending) {
    animation-duration: 120ms;
  }
  .askbar,
  .ask-go,
  .ask-go svg,
  .pr-tab,
  .try,
  .faq summary::after {
    transition: none;
  }
  .ask-go:hover svg {
    translate: none;
  }
}
.stat dt.pending {
  font-family: var(--ui);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink-3);
}
.stat dt .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--step--1, 0.875rem);
  letter-spacing: -0.005em;
}
.stat dd {
  margin: 12px 0 0;
  max-width: 26ch;
  color: var(--ink-2);
  font-size: var(--step--1, 0.875rem);
  line-height: 1.5;
}

/* ---- Sections ---- */
.sec {
  padding: var(--section-y, clamp(72px, 4.6rem + 4.5vw, 136px)) var(--gut);
}
.sec.tinted {
  background: var(--paper-2);
}
.sec.page-top {
  padding-top: clamp(40px, 6vw, 72px);
  min-height: 70svh;
}
.sec > * {
  width: min(var(--wide), 100%);
  margin-inline: auto;
}
.sec-head {
  display: grid;
  gap: var(--sp-4, 16px);
  justify-items: start;
  margin-bottom: var(--sp-7, 48px);
}
.sec-head h2,
.glass h2 {
  font-size: var(--step-4, clamp(2rem, 1.62rem + 1.6vw, 3rem));
  letter-spacing: var(--track-4, -0.03em);
  line-height: var(--lh-head, 1.1);
}
.cta h2 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
}
.sec-head h2 em {
  color: var(--brand);
}
.sec-head > p:not(.kicker) {
  max-width: var(--measure-lede, 44ch);
  color: var(--ink-2);
  font-size: var(--step-1, 1.125rem);
  line-height: var(--lh-body, 1.6);
  text-wrap: pretty;
}
.sec-foot {
  padding-top: 30px;
  text-align: center;
}

/* ---- Cards that lean toward the pointer, with a lamp that follows it ---- */
.way,
.med-card {
  position: relative;
  transform: perspective(var(--depth)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.way.leaning,
.med-card.leaning {
  transition:
    transform 0.08s linear,
    box-shadow 0.3s,
    border-color 0.3s;
}

/* A medicine's centerpiece: a Darkfield stage for the 3D form, with its drawn still inside. This is
   the guide's own dark stage; on a prerendered page (data-ground="light") pages.css takes the tile
   away and the form floats on the paper. */
.centerpiece {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 46%, color-mix(in srgb, var(--hue) 22%, transparent), transparent 70%),
    radial-gradient(80% 60% at 30% 10%, rgb(var(--lamp-rgb) / 0.08), transparent 70%),
    var(--carbon-1);
  box-shadow:
    var(--key-highlight),
    inset 0 0 0 1px rgb(var(--lamp-rgb) / 0.1);
  isolation: isolate;
}
.centerpiece > .cp-still,
.centerpiece > [data-fallback] {
  transition: opacity 0.6s var(--ease);
}
/* A fake contact shadow anchors the form to its stage. */
.centerpiece::after {
  content: "";
  position: absolute;
  inset: auto 26% 8% 26%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent);
  pointer-events: none;
}
.cp-wrap {
  display: grid;
  gap: 10px;
  min-width: 0;
}
/* The form switch: one segmented control. A track in the second paper tone holds two equal
   segments; a paper thumb sits under the pressed one and slides across when the form changes
   (no slide under reduced motion). The buttons keep aria-pressed; 40px segments in a 48px track. */
.form-switch {
  position: relative;
  display: inline-grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  justify-content: center;
  gap: 0;
  width: max-content;
  padding: 4px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--rule);
  background: var(--paper-2);
  isolation: isolate;
}
.form-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: var(--r-pill, 999px);
  background: var(--paper);
  box-shadow: var(--elev-1, 0 1px 2px rgb(11 27 58 / 0.08), 0 6px 16px -10px rgb(11 27 58 / 0.3));
  transition: translate var(--dur-2, 240ms) var(--ease-move, cubic-bezier(0.65, 0, 0.35, 1));
}
.form-switch:not(:has(button[aria-pressed="true"]))::before {
  opacity: 0;
}
.form-switch:has(> button:nth-of-type(2)[aria-pressed="true"])::before {
  translate: 100% 0;
}
.form-switch button {
  appearance: none;
  min-width: 0;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill, 999px);
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 600 var(--step--1, 0.875rem)/1 var(--ui);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-1, 160ms);
}
.form-switch button:hover {
  color: var(--ink);
}
.form-switch button[aria-pressed="true"] {
  color: var(--ink);
}
.darkfield .form-switch,
.form-switch:is(.darkfield *) {
  border-color: var(--edge-dark-strong);
  background: var(--glass);
}
.darkfield .form-switch::before,
.form-switch:is(.darkfield *)::before {
  background: var(--lamp);
  box-shadow: none;
}
.darkfield .form-switch button,
.form-switch:is(.darkfield *) button {
  color: var(--on-dark);
}
.darkfield .form-switch button[aria-pressed="true"],
.form-switch:is(.darkfield *) button[aria-pressed="true"] {
  color: var(--carbon-0);
}
@media (prefers-reduced-motion: reduce) {
  .form-switch::before {
    transition: none;
  }
}

/* The drawn specimen: a pen or a tablet over two orbits, in its label's hue, on carbon. */
.specimen {
  position: relative;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}
.specimen i {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--hue);
  opacity: 0.7;
  transform: rotateX(70deg) rotateZ(0deg);
  animation: spin 16s linear infinite;
}
.specimen i:nth-child(2) {
  inset: -4%;
  opacity: 0.35;
  transform: rotateX(62deg) rotateY(26deg) rotateZ(0deg);
  animation-duration: 26s;
  animation-direction: reverse;
}
.specimen i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 14px var(--hue);
}
@keyframes spin {
  to {
    rotate: z 360deg;
  }
}
.specimen svg {
  width: 62%;
  height: 62%;
  overflow: visible;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.5));
}
.g-body {
  fill: rgb(var(--lamp-rgb) / 0.1);
  stroke: var(--on-dark);
  stroke-width: 2.4;
}
.g-window {
  fill: var(--hue);
  opacity: 0.9;
}
.g-cap {
  fill: var(--on-dark);
}
.g-line {
  fill: none;
  stroke: var(--on-dark);
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* ---- Two ways to take it ---- */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.way {
  display: grid;
  grid-template-columns: minmax(130px, 0.46fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius-3);
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: var(--lift-2);
}
.way:hover {
  border-color: var(--rule-strong);
}
/* Both cards start their words on the same baseline: the kicker row is reserved. */
.way-text {
  display: grid;
  gap: 12px;
  justify-items: start;
  min-width: 0;
}
.way-text .tag {
  min-height: 1.4em;
}
.tag {
  font-family: var(--code);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.way h3 {
  font-size: var(--step-2, clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem));
  letter-spacing: var(--track-2, -0.01em);
  line-height: 1.1;
}
.way-body {
  color: var(--ink-2);
}
.dots,
.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dots li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 500;
}
.dots li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 60%, var(--ink));
}
.points {
  display: grid;
  gap: 5px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.points li {
  padding-left: 20px;
  position: relative;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 1.5px;
  background: var(--brand);
}
.way-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* ---- The ruled box: the Boxed Warning, in ink, square, never animated ----
   The home instance of the one boxed-warning component (pages.css .bw-box): a square 2px ink rule
   on paper, a bold caps heading, the label's words in the label's serif. No shadow, no hue, no
   motion: safety never waits. */
.boxed-band {
  margin-top: var(--sp-7, 48px);
  padding: 20px 24px 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  display: grid;
  gap: 12px;
}
.boxed-band,
.boxed-band * {
  animation: none !important;
  transition: none !important;
}
.boxed-band .bw-head {
  margin: 0 0 10px;
  font: 700 var(--step--1, 0.875rem)/1.3 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.boxed-note,
.boxed-foot {
  color: var(--ink-2);
  font-size: var(--step--1, 0.875rem);
}
.boxed-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
}
.boxed-quotes blockquote {
  color: var(--ink);
  background: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
  font: 400 var(--step-0, 1rem)/1.6 var(--voice);
}

/* A citation: where a sentence or number came from. Mono, with the label's stain. */
.cite {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--hue) 60%, var(--rule));
  border-radius: 6px;
  background: color-mix(in srgb, var(--hue) 10%, var(--sheet));
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.cite::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 60%, var(--ink));
  translate: 0 -1px;
}
.cite:hover {
  background: color-mix(in srgb, var(--hue) 22%, var(--sheet));
}
.darkfield .cite {
  border-color: color-mix(in srgb, var(--hue) 50%, transparent);
  background: color-mix(in srgb, var(--hue) 9%, transparent);
  color: var(--on-dark);
}
/* The passage a citation flew to keeps a lamp for a moment. */
.cite-lit {
  animation: lit 1.6s var(--ease) both;
}
@keyframes lit {
  from {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 60%, transparent);
    background-color: color-mix(in srgb, var(--hue) 14%, transparent);
  }
}

/* ---- How it works: three steps that rise, like a dose schedule ---- */
.path {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.path li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px 22px 26px;
  border-radius: var(--radius-2);
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: var(--lift-1);
}
.path li:nth-child(1) {
  min-height: 190px;
}
.path li:nth-child(2) {
  min-height: 224px;
}
.path li:nth-child(3) {
  min-height: 258px;
}
.path .num {
  font-family: var(--code);
  font-size: 0.78rem;
  color: var(--brand);
}
.path h3 {
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}
.path p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.path-note {
  margin-top: var(--sp-6, 32px);
  color: var(--ink-2);
  font-family: var(--voice);
  font-style: italic;
  font-size: 1.2rem;
}

/* ---- The glass box ---- */
.glass {
  margin: 0 16px;
  padding: var(--section-y, clamp(72px, 4.6rem + 4.5vw, 136px)) var(--gut);
  border-radius: var(--r-lg, 28px);
  background:
    radial-gradient(46% 60% at 78% 46%, rgb(var(--lamp-rgb) / 0.07), transparent 74%),
    var(--carbon-0);
  box-shadow: var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5));
  overflow: hidden;
}
.glass-grid {
  width: min(var(--wide), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.glass-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
  min-width: 0;
}
.glass h2 em {
  color: var(--lamp);
}
.glass .lede {
  max-width: 54ch;
  color: var(--on-dark-2);
  font-size: 1.06rem;
}
/* The tries as one segmented control on glass: the pressed one takes the lamp. */
.tries {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid var(--edge-dark, rgb(201 179 126 / 0.16));
  background: var(--glass);
}
.try {
  appearance: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill, 999px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--on-dark-2);
  font-weight: 600;
  font-size: var(--step--1, 0.875rem);
  cursor: pointer;
  transition:
    background-color var(--dur-1, 160ms) var(--ease-out),
    border-color var(--dur-1, 160ms),
    color var(--dur-1, 160ms);
}
.try:hover {
  color: var(--on-dark);
  border-color: var(--edge-dark-strong);
}
.try[aria-pressed="true"] {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--brand);
}
.glass-out {
  width: 100%;
  min-height: 220px;
}
.glass-said {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-md, 20px);
  border: 1px solid var(--edge-dark);
  background: var(--carbon-1);
  box-shadow: var(--hairline-top, inset 0 1px 0 rgb(201 179 126 / 0.5));
}
.glass-said .card {
  display: none; /* the stack is the picture here; the cards open in the full guide */
}
.glass-stage {
  position: sticky;
  top: 90px;
  display: grid;
  justify-items: center;
}
.glass-stage .stack-view {
  position: relative;
  width: 100%;
  min-height: 520px;
}
.hint {
  color: var(--on-dark-3);
  font-size: 0.8rem;
}

/* ---- An answer pane: wherever the site shows a live reply ---- */
.screen {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 24px;
  border: 1px solid var(--edge-dark);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(var(--lamp-rgb) / 0.07), transparent 60%),
    linear-gradient(180deg, var(--carbon-2), var(--carbon-1));
  box-shadow: var(--lift-2);
  min-width: 0;
}
/* Checking the labels: a lamp runs around the pane while the reply is on its way. */
@property --beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.screen[aria-busy="true"] {
  border-color: transparent;
  background:
    linear-gradient(var(--carbon-1), var(--carbon-1)) padding-box,
    conic-gradient(from var(--beam), transparent 70%, var(--lamp) 85%, transparent) border-box;
  animation: beam 2.4s linear infinite;
}
@keyframes beam {
  to {
    --beam: 360deg;
  }
}
.screen-q {
  font-family: var(--code);
  font-size: 0.8rem;
  color: var(--on-dark-2);
}
.screen-q::before {
  content: "Asked live: ";
  color: var(--on-dark-3);
}
.screen-wait {
  color: var(--on-dark-2);
  font-family: var(--voice);
  font-size: 1.1rem;
  animation: wait 1.2s ease-in-out infinite;
}
@keyframes wait {
  50% {
    opacity: 0.45;
  }
}
.screen-more {
  appearance: none;
  justify-self: start;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark-strong);
  background: var(--glass);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.screen-more:hover {
  border-color: var(--lamp);
}

/* ---- Medications: each label as a specimen, its passages a ring of light ---- */
.meds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.med-card {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 14px 14px 20px;
  border-radius: var(--radius-3);
  border: 1px solid var(--rule);
  background: var(--sheet);
  box-shadow: var(--lift-1);
  text-decoration: none;
  overflow: hidden;
}
.med-card > :not(.ring) {
  margin-inline: 8px;
}
.med-card:hover {
  border-color: color-mix(in srgb, var(--hue) 70%, var(--rule));
  box-shadow:
    var(--lift-2),
    0 30px 45px -30px color-mix(in oklab, var(--hue) 45%, transparent);
}
.med-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / 0.5), transparent 70%);
}
.med-card.leaning::after {
  opacity: 1;
}
/* The label's passages as a tilted orbit of dots, turning slowly: one per passage, the first (the
   Boxed Warning) the one lamp-white dot, a pearl of lamp light at the centre. */
.ring {
  position: relative;
  height: 104px;
  margin-bottom: 6px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(50% 60% at 50% 55%, color-mix(in srgb, var(--hue) 18%, transparent), transparent 70%),
    var(--carbon-1);
  perspective: 600px;
  overflow: hidden;
}
.ring svg {
  width: 150px;
  height: 150px;
  transform: rotateX(72deg) rotate(0deg);
}
.ring .dot {
  fill: var(--hue);
}
.ring .dot.lead {
  fill: var(--lamp);
}
.ring .pearl {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--lamp) 45%, transparent 75%);
  box-shadow: 0 0 14px 3px rgb(var(--lamp-rgb) / 0.45);
}
.med-card h3 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}
.med-for {
  font-weight: 600;
  color: var(--ink);
}
.med-form {
  color: var(--ink-2);
  font-size: 0.92rem;
}
.boxed-tag {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-family: var(--code);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.med-go {
  font-family: var(--code);
  font-size: 0.74rem;
  color: var(--ink-2);
}
.med-go::after {
  content: "  \2192";
}

/* ---- Questions ----
   Hairline rows, not boxes: the question at reading size, a plus that turns to a cross. */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 940px);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.faq details {
  border-bottom: 1px solid var(--rule-strong);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  font-weight: 600;
  font-size: var(--step-1, 1.125rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--dur-1, 160ms);
}
.faq summary:hover {
  color: var(--brand);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--brand);
  transition: rotate var(--dur-2, 240ms) var(--ease-move, cubic-bezier(0.65, 0, 0.35, 1));
}
.faq details[open] summary::after {
  rotate: 45deg;
}
.faq .screen {
  max-width: var(--measure, 62ch);
  margin: 0 0 24px;
}

/* ---- The closing band: the footer's first row ----
   Full bleed, square, the same navy as the footer below it, so the close of the page and the footer
   read as one surface with one champagne hairline between them (the footer's top edge). */
.cta {
  margin: var(--section-y, 96px) 0 0;
  padding: clamp(64px, 8vw, 112px) var(--gut) clamp(56px, 7vw, 96px);
  border-radius: 0;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  color: var(--brand-ink);
  background:
    radial-gradient(56% 90% at 50% 0%, rgb(255 255 255 / 0.07), transparent 72%),
    var(--brand);
}
.site .cta {
  margin-inline: 0;
  border-radius: 0;
}
.cta h2 {
  font-size: var(--step-4);
  letter-spacing: var(--track-4);
}
.cta h2 em {
  display: block;
}
.cta p {
  max-width: var(--measure-lede, 54ch);
  color: color-mix(in oklab, var(--brand-ink) 84%, var(--brand));
  font-size: var(--step-1);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.cta .btn.light {
  background: var(--brand-ink);
  color: var(--brand);
}
.cta .btn.glassy {
  border-color: color-mix(in oklab, var(--brand-ink) 40%, transparent);
  background: transparent;
  color: var(--brand-ink);
}
.cta .btn.glassy:hover {
  border-color: var(--accent-lux);
}

/* ---- Footer ---- */
/* The footer closes the page in the brand: ivory on the tenant's navy, the champagne accent on the
   column titles and one hairline. Its greys are mixed from the brand ink, so they stay legible. */
.site-foot {
  --foot-ink: var(--brand-ink);
  --foot-ink-2: color-mix(in oklab, var(--brand-ink) 80%, var(--brand));
  --foot-rule: color-mix(in oklab, var(--brand-ink) 14%, var(--brand));
  --focus: var(--accent-lux);
  padding: clamp(48px, 6vw, 80px) var(--gut) 120px;
  background: var(--brand);
  color: var(--foot-ink);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent-lux) 40%, transparent);
}
.foot-grid {
  width: min(var(--wide), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-foot h3 {
  margin-bottom: 12px;
  font-family: var(--code);
  font-size: var(--step--2);
  font-weight: 400;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-lux);
}
/* Links: no standing underline anywhere; a 1px line draws left to right on hover and focus. */
.site-foot .foot-grid a,
.site-foot .link {
  display: block;
  width: fit-content;
  min-height: 0;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left calc(100% - 4px) / 0 1px no-repeat;
  color: var(--foot-ink-2);
  font: 400 var(--step--1) / 1.4 var(--ui);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition:
    color var(--dur-1) var(--ease-out),
    background-size var(--dur-1) var(--ease-out);
}
.site-foot .foot-grid a:hover,
.site-foot .link:hover,
.site-foot .foot-grid a:focus-visible,
.site-foot .link:focus-visible {
  color: var(--foot-ink);
  text-decoration: none;
  background-size: 100% 1px;
}
.site-foot .logo {
  font-size: 1.2rem;
  color: var(--foot-ink);
}
.site-foot .logo:has(.wm-main) {
  font-size: 1.5rem;
}
.foot-line {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--foot-ink-2);
  font-size: var(--step--1);
  line-height: 1.6;
}
/* The fine print: a set measure, 0.875rem, 78% ivory (about 9:1 on the navy). Never hidden,
   never faded in: it renders final on the first frame. */
.foot-fine {
  width: min(var(--wide), 100%);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--foot-rule, var(--rule));
  color: var(--foot-ink-2, var(--ink-2));
  font-size: var(--step--1);
  line-height: 1.65;
}
.site-foot .foot-fine {
  color: color-mix(in srgb, var(--foot-ink) 78%, transparent);
}
@media (max-width: 760px) {
  /* Phone: Medications and Explore side by side, The guide below, the fine print full width,
     and room at the bottom so the safety tray never covers its last line. */
  .site-foot .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
  .site-foot .foot-grid > :first-child,
  .site-foot .foot-grid > :last-child {
    grid-column: 1 / -1;
  }
  .site-foot .foot-grid > :last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 20px;
  }
  .site-foot .foot-grid > :last-child .foot-h,
  .site-foot .foot-grid > :last-child h3 {
    flex-basis: 100%;
  }
  .site-foot .foot-grid a,
  .site-foot .link {
    padding: 10px 0;
  }
}

/* ---- The launcher: the guide, one tap away on every page ---- */
.launch {
  appearance: none;
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px 7px 7px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark-strong);
  background: rgb(15 13 20 / 0.92);
  color: var(--on-dark);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 18px 50px rgb(0 0 0 / 0.4),
    0 0 60px rgb(var(--lamp-rgb) / 0.18);
  text-align: left;
  cursor: pointer;
  animation: arrive 0.5s var(--ease) both;
}
.launch:hover {
  border-color: var(--lamp);
}
.launch-face {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    var(--face) center / cover no-repeat,
    radial-gradient(circle at 50% 50%, #ffffff 0%, rgb(var(--lamp-rgb) / 0.85) 16%, var(--carbon-3) 62%, var(--carbon-1) 100%);
  box-shadow: 0 0 0 1px var(--edge-dark-strong);
}
.launch-face::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lamp);
  border: 2px solid var(--carbon-1);
}
.launch-text {
  display: grid;
  line-height: 1.2;
}
.launch-text b {
  font-size: 0.98rem;
}
.launch-text small {
  color: var(--on-dark-2);
  font-size: 0.74rem;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
}

/* ---- One medication ---- */
.med-top {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 340px);
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(50% 80% at 82% 46%, color-mix(in srgb, var(--hue) 22%, transparent), transparent 72%),
    linear-gradient(180deg, var(--carbon-1) 0%, var(--carbon-0) 100%);
}
.med-top > * {
  min-width: 0;
}
.med-words {
  display: grid;
  gap: 12px;
  justify-items: start;
  width: min(760px, 100%);
  margin-left: max(0px, (100vw - var(--wide)) / 2 - var(--gut));
}
.crumb {
  font-size: 0.84rem;
  color: var(--on-dark-2);
}
.med-top h1 {
  font-size: clamp(3rem, 1.6rem + 6vw, 6.4rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.med-sub {
  font-family: var(--code);
  font-size: 0.86rem;
  color: var(--on-dark-2);
}
.med-tag {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--hue);
  background: color-mix(in srgb, var(--hue) 14%, transparent);
  font-weight: 600;
  font-size: 0.92rem;
}
.med-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.med-meta {
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--on-dark-3);
}
.med-jump {
  position: sticky;
  top: 72px;
  z-index: 30;
  display: flex;
  gap: 6px;
  width: min(900px, 100% - 2 * var(--gut));
  margin: 18px auto 0;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--lift-1);
  overflow-x: auto;
  scrollbar-width: none;
}
.med-jump .chip {
  flex: none;
  border-color: transparent;
  background: none;
  color: var(--ink);
  white-space: nowrap;
}
.med-jump .chip:hover {
  background: var(--brand-soft);
}
.med-body {
  width: min(900px, 100% - 2 * var(--gut));
  margin: 0 auto;
  padding: 12px 0 40px;
}
.med-sec {
  padding-top: 44px;
  scroll-margin-top: 130px;
}
.med-sec h2,
.med-next h2 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.025em;
}
.med-next {
  width: min(900px, 100% - 2 * var(--gut));
  margin: 0 auto;
  padding: 26px 0 30px;
  border-top: 1px solid var(--rule);
}

/* ---- Compare ---- */
.pickers {
  display: grid;
  justify-items: start;
  gap: 8px;
}
.pick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.versus {
  padding-left: 6px;
  font-family: var(--voice);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-3);
}
.pick {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.pick::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hue) 60%, var(--ink));
}
.pick:hover:not(:disabled) {
  border-color: var(--hue);
}
.pick[aria-pressed="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.pick:disabled {
  opacity: 0.4;
  cursor: default;
}
.compare-out {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.compare-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: 18px 28px;
}
.compare-form {
  margin: 0;
  display: grid;
  gap: 8px;
  text-align: center;
  font-weight: 600;
}
.compare-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.86rem;
}

/* ---- Charts built from the page's own tables (web/motion/charts.ts) ---- */
@property --rise {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
.printed-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap;
}
.chart-btn {
  appearance: none;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--edge-dark-strong);
  background: none;
  color: var(--on-dark);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.chart-btn[aria-pressed="true"] {
  background: var(--lamp);
  border-color: var(--lamp);
  color: var(--carbon-0);
}
.terrace,
.stair-stage {
  position: relative;
  border-radius: var(--radius-3) var(--radius-3) 0 0;
  background:
    radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--hue) 10%, transparent), transparent 70%),
    radial-gradient(70% 60% at 20% 0%, rgb(var(--lamp-rgb) / 0.06), transparent 70%),
    var(--carbon-1);
  color: var(--on-dark);
  color-scheme: dark;
  overflow: hidden;
}
.terrace-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  border-radius: 0 0 var(--radius-3) var(--radius-3);
  border-top: 1px solid var(--edge-dark);
  background: var(--carbon-1);
  color: var(--on-dark);
  color-scheme: dark;
  --focus: var(--lamp);
}
.terrace-foot :focus-visible {
  outline-color: var(--lamp);
}
.chart-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chart-turn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--on-dark-2);
}
.chart-turn input {
  width: 150px;
  accent-color: var(--lamp);
}
.headline {
  display: grid;
  grid-template-columns: repeat(var(--arms, 2), minmax(0, 1fr));
  gap: 8px;
  padding: 16px 16px 0;
}
.headline:empty {
  display: none;
}
.headline .row-name {
  grid-column: 1 / -1;
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--on-dark-2);
}
.arm-num {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--edge-dark);
  background: var(--glass);
}
.arm-num b {
  font-family: var(--code);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.arm-num span {
  font-size: 0.78rem;
  color: var(--on-dark-2);
}
.arm-num.drug {
  border-color: color-mix(in srgb, var(--hue) 45%, transparent);
}
.terrace-view {
  position: relative;
  height: clamp(340px, 44vw, 500px);
  perspective: 1500px;
  perspective-origin: 50% 30%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.terrace-view.dragging {
  cursor: grabbing;
}
.t-deck {
  --cw: 128px;
  --rd: 96px;
  --turn: -30deg;
  --tilt: 52deg;
  --hmax: 210px;
  position: absolute;
  left: 50%;
  top: 60%;
  width: calc(var(--cols) * var(--cw));
  height: calc(var(--rows) * var(--rd));
  transform: translate(-50%, -50%) rotateX(var(--tilt)) rotateZ(var(--turn));
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
  background:
    linear-gradient(90deg, rgb(var(--lamp-rgb) / 0.12) 1px, transparent 1px) 0 0 / var(--cw) 100%,
    linear-gradient(0deg, rgb(var(--lamp-rgb) / 0.12) 1px, transparent 1px) 0 0 / 100% var(--rd),
    rgb(var(--lamp-rgb) / 0.02);
  outline: 1px solid rgb(var(--lamp-rgb) / 0.16);
}
.terrace-view.dragging .t-deck {
  transition: none;
}
.blk {
  --h: calc(var(--rise) * var(--v) * var(--hmax));
  position: absolute;
  left: calc(var(--c) * var(--cw) + var(--cw) * 0.2);
  top: calc(var(--r) * var(--rd) + var(--rd) * 0.23);
  width: calc(var(--cw) * 0.6);
  height: calc(var(--rd) * 0.54);
  transform-style: preserve-3d;
}
.blk > i {
  position: absolute;
  display: block;
  backface-visibility: hidden;
}
/* Faces lit by one key light from the upper left: top brightest, then the left and front. */
.blk .t {
  inset: 0;
  transform: translateZ(var(--h));
  background: var(--face-top);
}
.blk .f {
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--h);
  transform-origin: bottom;
  transform: rotateX(-90deg);
  background: var(--face-front);
}
.blk .b {
  left: 0;
  top: 0;
  width: 100%;
  height: var(--h);
  transform-origin: top;
  transform: rotateX(90deg);
  background: var(--face-side);
}
.blk .l {
  left: 0;
  top: 0;
  width: var(--h);
  height: 100%;
  transform-origin: left;
  transform: rotateY(-90deg);
  background: var(--face-side);
}
.blk .rt {
  right: 0;
  top: 0;
  width: var(--h);
  height: 100%;
  transform-origin: right;
  transform: rotateY(90deg);
  background: var(--face-dark);
}
.blk.drug {
  --fill: color-mix(in srgb, var(--hue) var(--shade, 80%), #ffffff);
  --face-top: color-mix(in srgb, var(--fill) 92%, white);
  --face-front: color-mix(in srgb, var(--fill) 70%, #0f0d14);
  --face-side: color-mix(in srgb, var(--fill) 52%, #0f0d14);
  --face-dark: color-mix(in srgb, var(--fill) 36%, #0f0d14);
}
/* Placebo is glass: present, measured, and plainly not the medicine. */
.blk.placebo {
  --face-top: rgb(var(--lamp-rgb) / 0.55);
  --face-front: rgb(var(--lamp-rgb) / 0.22);
  --face-side: rgb(var(--lamp-rgb) / 0.14);
  --face-dark: rgb(var(--lamp-rgb) / 0.1);
}
.blk.lit .t {
  outline: 2px solid #ffffff;
}
/* Values sit in a flat layer above the terrace, placed by script, so no block hides another's
   number; each appears only once its block has landed. */
.vals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vals span {
  position: absolute;
  left: var(--x, -100px);
  top: var(--y, -100px);
  translate: -50% -130%;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgb(8 7 11 / 0.76);
  font-family: var(--code);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--on-dark);
  opacity: 0;
  transition: opacity 0.3s;
}
.vals span.on {
  opacity: 1;
}
.axis {
  position: absolute;
  font-family: var(--code);
  font-size: 0.68rem;
  color: var(--on-dark-2);
  transform-style: preserve-3d;
  pointer-events: none;
}
.axis span {
  display: block;
  transform: rotateZ(calc(-1 * var(--turn))) rotateX(calc(-1 * var(--tilt)));
}
.axis.col {
  top: calc(var(--rows) * var(--rd) + 10px);
  left: calc(var(--c) * var(--cw));
  width: var(--cw);
  text-align: center;
}
.axis.row {
  top: calc(var(--r) * var(--rd));
  right: calc(100% + 10px);
  height: var(--rd);
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.axis.row span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) var(--shade, 80%), #ffffff);
}
.axis.row.placebo span::before {
  background: var(--lamp);
}
/* The series key: in flow above the deck, one line per arm, truncated with the full name as a title. */
.axis.row {
  display: none;
}
.t-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 6px;
  padding: 0 18px;
  list-style: none;
  font-family: var(--code);
  font-size: 0.68rem;
  color: var(--on-dark-2);
}
/* Axis titles, worded from the table (web/motion/table-model.ts terraceAxes). */
.t-axis-title {
  margin: 0;
  font-family: var(--code);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  pointer-events: none;
}
.t-axis-title.arms {
  padding: 14px 18px 4px;
}
.t-axis-title.value {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  white-space: nowrap;
}
.t-axis-title.cols {
  padding: 0 18px 14px;
  text-align: center;
}
.t-legend li {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t-legend li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hue) var(--shade, 80%), #ffffff);
}
.t-legend li.placebo::before {
  background: var(--lamp);
}
.tip {
  position: absolute;
  z-index: 5;
  left: var(--x, 0);
  top: var(--y, 0);
  display: grid;
  gap: 2px;
  max-width: 300px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--edge-dark-strong);
  background: rgb(8 7 11 / 0.94);
  font-family: var(--code);
  font-size: 0.7rem;
  line-height: 1.45;
  pointer-events: none;
  translate: 14px -50%;
}
.tip b {
  font-weight: 400;
  font-size: 1rem;
}
/* Rising: a class when the chart arrives, or the scroll itself where timelines exist. */
@media (prefers-reduced-motion: no-preference) {
  .terrace:not(.in) .blk {
    --rise: 0;
  }
  .terrace .blk {
    transition: --rise 0.9s var(--ease-out) calc(var(--c) * 80ms + var(--r) * 50ms);
  }
  @supports (animation-timeline: view()) {
    .terrace {
      view-timeline: --terrace block;
    }
    .terrace .blk {
      transition: none;
      animation: rise linear both;
      animation-timeline: --terrace;
      animation-range: entry calc(10% + var(--c) * 8%) cover calc(32% + var(--c) * 4%);
    }
  }
}
@keyframes rise {
  from {
    --rise: 0;
  }
  to {
    --rise: 1;
  }
}
/* The dose staircase. */
.stair-stage {
  padding: 52px 48px 20px 18px;
  perspective: 1100px;
}
.stair {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  align-items: end;
  height: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: rotateX(10deg) rotateY(-7deg);
  transform-origin: 0 100%;
  transform-style: preserve-3d;
}
.stair li {
  position: relative;
  height: calc(64px + var(--k) * 180px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 10px 10px 12px;
  border-left: 1px solid color-mix(in srgb, var(--hue) 50%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) calc(16% + var(--k) * 30%), var(--carbon-1)), color-mix(in srgb, var(--hue) 6%, var(--carbon-1)));
  transform-style: preserve-3d;
  transition:
    filter 0.4s,
    box-shadow 0.4s;
  filter: saturate(0.5) brightness(0.7);
}
.stair li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  transform-origin: top;
  transform: rotateX(-90deg);
  background: color-mix(in srgb, var(--hue) 70%, white 10%);
}
.stair li.open {
  border: 1px dashed color-mix(in srgb, var(--hue) 70%, transparent);
  background: transparent;
}
.stair li.open::before {
  background: transparent;
}
.stair li.on {
  filter: none;
  box-shadow: 0 0 40px color-mix(in srgb, var(--hue) 30%, transparent);
}
.stair b {
  font-family: var(--code);
  font-weight: 400;
  font-size: 1rem;
}
.stair li.open b {
  font-family: var(--voice);
  font-size: 0.84rem;
  line-height: 1.35;
}
.stair .when {
  font-family: var(--code);
  font-size: 0.72rem;
  color: var(--on-dark-2);
}
.stair .phase {
  position: absolute;
  top: -24px;
  left: 6px;
  font-family: var(--code);
  font-size: 0.6rem;
  color: var(--on-dark-3);
  white-space: nowrap;
}
.token {
  position: absolute;
  z-index: 2;
  left: var(--x, 0);
  top: var(--y, 0);
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--lamp) 40%, transparent 72%);
  box-shadow: 0 0 24px 6px rgb(var(--lamp-rgb) / 0.5);
  transition:
    left 0.55s var(--ease-out),
    top 0.55s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}
.stair-note {
  margin: 0;
  padding: 0 18px 12px;
  background: var(--carbon-1);
  color: var(--on-dark-3);
  font-size: 0.78rem;
}
/* The label, coiled. */
.coil-stage {
  position: relative;
  aspect-ratio: 7 / 6;
  width: 100%;
  border-radius: var(--radius-3);
  background:
    radial-gradient(55% 55% at 50% 50%, color-mix(in srgb, var(--hue) 12%, transparent), transparent 70%),
    var(--carbon-1);
  overflow: hidden;
  touch-action: pan-y;
}
.coil-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.coil-still .bead {
  fill: var(--hue);
  transition: opacity 0.3s;
}
.coil-still .bead.first {
  fill: var(--lamp);
}
/* On a medicine page the coil floats on the paper: a faint halo in the label's hue, no stage, and
   beads in the hue with the first one in ink (the 3D coil draws the same way on a light ground). */
[data-ground="light"] .coil-stage {
  border-radius: 0;
  overflow: visible;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hue) 13%, transparent), color-mix(in srgb, var(--hue) 4%, transparent) 60%, transparent);
}
[data-ground="light"] .coil-still .bead.first {
  fill: var(--brand);
}
.coil-still[data-focus] .bead {
  opacity: 0.2;
}
.coil-tip {
  position: absolute;
  z-index: 3;
  left: var(--x, 0);
  top: var(--y, 0);
  translate: 14px -50%;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--edge-dark-strong);
  background: rgb(8 7 11 / 0.94);
  color: var(--on-dark);
  font-family: var(--code);
  font-size: 0.68rem;
  pointer-events: none;
  white-space: nowrap;
}
.coil-caption {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.82rem;
}
/* On a medicine page: the coil beside its section list (the list is the coil without script). */
.pg-coil {
  display: grid;
  gap: 12px 20px;
  margin: 20px 0 8px;
}
.pg-coil .coil-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 2px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}
.pg-coil .coil-list a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
}
.pg-coil .coil-list a:hover,
.pg-coil .coil-list a:focus-visible {
  background: color-mix(in srgb, var(--hue, var(--tenant-brand)) 10%, transparent);
  color: var(--ink);
}
/* With script, the coil's final layout is set from the first paint and its stage's place is held
   (a carbon block of the same shape, plus the caption's line), so nothing moves when it mounts. */
.js .pg-coil:not([data-motion])::before {
  content: "";
  display: block;
  aspect-ratio: 7 / 6;
  width: 100%;
  margin-bottom: 52px;
  border-radius: var(--radius-3);
  background: var(--carbon-1);
}
.js .pg-coil[data-ground="light"]:not([data-motion])::before {
  border-radius: 0;
  background: none;
}
@media (min-width: 900px) {
  /* The coil and its caption sit centred, top to bottom, against the section list beside them:
     the two flexible rows above and below share whatever height the list has to spare. */
  .pg-coil[data-motion="coil"],
  .js .pg-coil {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    align-items: start;
  }
  .js .pg-coil:not([data-motion])::before,
  .pg-coil[data-motion="coil"] > .coil-stage {
    grid-column: 1;
    grid-row: 2;
  }
  .pg-coil[data-motion="coil"] > .coil-caption {
    grid-column: 1;
    grid-row: 3;
  }
  .pg-coil[data-motion="coil"] .coil-list,
  .js .pg-coil .coil-list {
    grid-column: 2;
    grid-row: 1 / span 4;
    grid-template-columns: 1fr;
  }
}

/* Page transitions, arrival reveals and the ring loop live in web/motion/motion.css. */

/* ---- Narrow ---- */
@media (max-width: 1020px) {
  .links {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--rule);
    background: var(--sheet);
    box-shadow: var(--lift-2);
  }
  .links.open {
    display: flex;
  }
  .links a {
    padding: 12px 14px;
  }
  .menu-btn {
    display: grid;
  }
  .nav-cta {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  .nav {
    height: 58px;
    gap: 8px;
  }
  .nav .btn.quiet {
    display: none;
  }
  .nav .btn.solid {
    padding: 8px 14px;
    font-size: 0.86rem;
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 32px;
  }
  .hero-copy {
    gap: 18px;
  }
  /* Phone and tablet: the same two lines as desktop. The size follows the column, so the italic
     half ("answered from the label.", about 9.4em of Spectral) always holds one line. */
  .hero h1 {
    font-size: min(3.25rem, calc((100vw - 2 * var(--gut)) / 9.8));
    line-height: 1.04;
  }
  .hero h1 em {
    white-space: nowrap;
  }
  .hero-chips {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gut));
    padding-inline: var(--gut);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .hero-chips::-webkit-scrollbar {
    display: none;
  }
  .hero-aside {
    margin-top: 0;
  }
  .panel-stage {
    min-height: 360px;
    padding: 20px 18px 18px;
  }
  .portal {
    width: min(100%, 176px);
  }
  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .proof-tabs {
    max-width: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 18px 14px;
    min-height: 0;
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .ways,
  .glass-grid,
  .boxed-quotes {
    grid-template-columns: minmax(0, 1fr);
  }
  .way {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: start;
  }
  .path {
    grid-template-columns: minmax(0, 1fr);
  }
  .path li {
    min-height: 0 !important;
  }
  .glass,
  .cta {
    margin-inline: 6px;
    border-radius: 26px;
  }
  .glass-stage {
    position: relative;
    top: 0;
    order: -1;
  }
  .glass-stage .stack-view {
    min-height: 380px;
  }
  .meds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .med-card h3 {
    font-size: 1.4rem;
  }
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .med-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .med-top .centerpiece {
    width: min(260px, 70%);
    justify-self: center;
  }
  .med-words {
    margin-left: 0;
  }
  .med-jump {
    top: 66px;
  }
  .launch {
    padding: 5px 16px 5px 5px;
  }
  .launch-face {
    width: 44px;
    height: 44px;
  }
  .t-deck {
    --cw: 66px;
    --rd: 54px;
    --hmax: 130px;
    --tilt: 50deg;
  }
  .vals span {
    font-size: 0.7rem;
  }
  .axis {
    font-size: 0.68rem;
  }
  .axis.row {
    display: none;
  }
  .terrace-view {
    height: 340px;
  }
  .headline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stair {
    height: 210px;
    transform: none;
  }
  .stair li {
    height: calc(52px + var(--k) * 140px);
    padding: 8px 5px 10px;
  }
  .stair b {
    font-size: 0.8rem;
  }
  .stair li.open b {
    font-size: 0.72rem;
  }
  .stair-stage {
    padding: 36px 14px 16px;
  }
}
/* Narrow: the phase names would overprint each other above the steps, so each step shows its dose
   and its weeks only (the phase is in the printed table, one tap away), and long words wrap inside
   their own step. */
@media (max-width: 600px) {
  .stair .phase {
    display: none;
  }
  .stair-stage {
    padding-top: 18px;
  }
  .stair li,
  .stair li.open b,
  .stair .when {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 560px) {
  .orbit-key {
    min-height: 116px;
  }
  .proof-console {
    margin-inline: calc(-1 * var(--gut) + 8px);
    border-radius: var(--r-md, 20px);
  }
  .ask-go {
    width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }
  .ask-go > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .askbar {
    padding-left: 18px;
  }
  /* The placeholder is set a step smaller than the typed text (which stays 16px+ so phones never
     zoom), so the whole prompt fits beside the send button instead of clipping. */
  .askbar input::placeholder {
    font-size: 0.84rem;
    letter-spacing: -0.005em;
  }
  .launch-text small {
    display: none;
  }
  .meds {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .way {
    grid-template-columns: minmax(0, 1fr);
  }
  .way .centerpiece {
    width: min(220px, 70%);
  }
  .compare-forms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
.boxed-quotes blockquote p {
  color: var(--ink);
}
.boxed-quotes blockquote + blockquote {
  margin-top: 0;
}

:root { --face: url("/_a/guide.8c60699079.webp"); }

:root { --logo-on-light: url("/_a/brand/nirvani-navy.e24f9f0cc8.webp"); --logo-on-dark: url("/_a/brand/nirvani-ivory.cf516ec411.webp"); }
/* Darkfield and Vellum: the one token set every stylesheet and every page template uses.

   Two materials, one light.
     Darkfield  the instrument: Gema, the 3D, every answer, every chart. Deep navy lit by one
                warm ivory lamp. The seven label stains are the only saturated colour on it, so a
                colour always means "this came from that label".
     Vellum     the clinic's paper: the site chrome and the long reading pages. Its paper, ink and
                brand colour are the tenant's own, read from the --tenant-* properties below.

   Tenant colours. The page shell sets these four from the tenant's theme (src/tenants.ts
   theme.colors), in a stylesheet rule (CSP allows no inline style attribute), for example
       :root[data-tenant="nirvani-glp"] { --tenant-brand: #0b1b3a; --tenant-brand-ink: #f5efe3; ... }
   app.ts also writes them from /api/config when the config carries a theme. Unset, the site
   falls back to the NIRVANI navy-on-white below.
       --tenant-brand      buttons, links, the bar's accents
       --tenant-brand-ink  text on a brand-coloured surface
       --tenant-paper      the page surface
       --tenant-ink        body text

   Three faces, three voices:
     --ui     Hanken Grotesk   the clinic and the interface
     --voice  Spectral         Gema speaking, and label text quoted word for word
     --code   IBM Plex Mono    provenance: section codes, table numbers, every number a label printed

   A label hue reaches any element through data-label="<labelId>" (it sets --hue), so a page
   rendered ahead of time needs no style attribute to carry a colour. */

/* Metric-matched fallbacks (sizes measured from the woff2 files against the metric-compatible system
   faces), so the text does not move when the site's own faces arrive. */
@font-face {
  font-family: "Hanken Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 100.5%;
  ascent-override: 99.5%;
  descent-override: 30.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Spectral Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Times");
  size-adjust: 106.3%;
  ascent-override: 99.6%;
  descent-override: 43.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Spectral Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Times Italic");
  size-adjust: 98.8%;
  ascent-override: 107.1%;
  descent-override: 46.8%;
  line-gap-override: 0%;
}

:root {
  /* ---- Vellum: the clinic, in the tenant's colours ---- */
  --brand: var(--tenant-brand, #0b1b3a);
  --brand-ink: var(--tenant-brand-ink, #ffffff);
  /* The metal accent (champagne for NIRVANI | GLP), for hairlines only; the brand stands in when unset. */
  --accent-lux: var(--tenant-accent, color-mix(in oklab, var(--brand) 55%, var(--paper)));
  --paper: var(--tenant-paper, #ffffff);
  --ink: var(--tenant-ink, #0f172a);
  --ink-2: color-mix(in oklab, var(--ink) 78%, var(--paper));
  --ink-3: color-mix(in oklab, var(--ink) 64%, var(--paper));
  /* Surface rhythm on the paper: two tones only, --paper and --paper-2. */
  --paper-2: color-mix(in oklab, var(--brand) 3%, var(--paper));
  --paper-3: color-mix(in oklab, var(--brand) 8%, var(--paper));
  --sheet: color-mix(in oklab, var(--paper) 96%, #ffffff);
  --rule: color-mix(in oklab, var(--brand) 14%, var(--paper));
  --rule-strong: color-mix(in oklab, var(--brand) 30%, var(--paper));
  --brand-soft: color-mix(in oklab, var(--brand) 9%, var(--paper));
  --brand-2: color-mix(in oklab, var(--brand) 84%, #000000);
  --shade: color-mix(in oklab, var(--brand) 60%, #000000);
  --focus: var(--brand);
  --vellum: var(--paper);
  /* The one accent, as a line: hairlines, the wordmark rule, the active nav item, focus on navy.
     Champagne is 1.97:1 on ivory, so it is never text on the paper; on navy it may be text. */
  --line-lux: color-mix(in oklab, var(--accent-lux) 70%, transparent);
  --hairline-top: inset 0 1px 0 var(--line-lux);
  /* One focus ring: 2px of the ground, then 2px of the brand (champagne on navy surfaces). */
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand);
  --focus-ring-dark: 0 0 0 2px var(--carbon-1), 0 0 0 4px var(--accent-lux);

  /* ---- Darkfield: the instrument, now set on white ----
     The whole site is white: dark is kept for type and icons only. The instrument keeps its
     names so every rule that reads them turns light at once; the one light source becomes the
     brand ink, so highlights, hairlines and focus read as navy on white. */
  --carbon-0: #ffffff;
  --carbon-1: #fdfcfa;
  --carbon-2: #f6f4f0;
  --carbon-3: #eeebe5;
  --lamp: var(--tenant-ink, #0a1530);
  --lamp-rgb: 10 21 48;
  --on-dark: var(--tenant-ink, #0a1530);
  --on-dark-2: #3b4661;
  --on-dark-3: #5d667b;
  --edge-dark: rgb(10 21 48 / 0.1);
  --edge-dark-strong: rgb(10 21 48 / 0.24);
  --glass: rgb(10 21 48 / 0.025);
  --glass-strong: rgb(10 21 48 / 0.055);
  --panel-dark: rgb(255 255 255 / 0.86);
  /* States, never used for a medicine: amber while listening, rose for an urgent reply. */
  --amber: #ffc56b;
  --rose: #ff7a86;

  /* ---- The label stains (web/labels.ts). Fills, dots, orbits and rules: never body text on paper. ---- */
  --ozempic: #5b93ff;
  --ozempic_tablets: #3ed3ff;
  --wegovy: #48efb2;
  --mounjaro: #ffd84d;
  --zepbound: #ff9e4d;
  --saxenda: #ff6397;
  --foundayo: #b98cff;
  --hue: #e9dcc8;

  /* ---- Type ---- */
  --voice: "Spectral", "Spectral Fallback", "Iowan Old Style", Georgia, serif;
  --ui: "Hanken Grotesk", "Hanken Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --code: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* ---- Type scale: nine steps, ratio about 1.25, fluid between 390 and 1440 px ----
     Every size on the site is one of these. Nothing sets below --step--2 (12px). */
  --step--2: 0.75rem; /* 12px  mono captions, eyebrows */
  --step--1: 0.875rem; /* 14px  meta, chips, table heads, footer legal */
  --step-0: 1rem; /* 16px  UI body, buttons */
  --step-1: 1.125rem; /* 18px  lede, quoted label text */
  --step-2: clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem); /* h3, card titles */
  --step-3: clamp(1.5rem, 1.29rem + 0.9vw, 2.125rem); /* h2 inside pages */
  --step-4: clamp(2rem, 1.62rem + 1.6vw, 3rem); /* inner h1, home section h2 */
  --step-5: clamp(2.5rem, 1.83rem + 2.9vw, 4.375rem); /* the home h1 only */
  --step-mono-xl: clamp(2.25rem, 1.9rem + 1.5vw, 3.25rem); /* stats numerals */
  /* One tracking rule per step, tighter as the type grows. */
  --track-5: -0.04em;
  --track-4: -0.03em;
  --track-3: -0.02em;
  --track-2: -0.01em;
  --track-eyebrow: 0.16em;
  --lh-display: 1.02;
  --lh-head: 1.1;
  --lh-body: 1.6;
  --lh-voice: 1.55;
  --w-head: 600; /* one heading weight, everywhere */

  /* ---- Space: an 8px rhythm with a 4px half step ---- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --section-y: clamp(72px, 4.6rem + 4.5vw, 136px); /* every home section, top and bottom */
  --measure: 62ch; /* body copy */
  --measure-lede: 44ch;

  /* ---- Radii: six, where there were eighteen ---- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;
  --r-rule: 0; /* ruled, regulatory boxes */

  /* ---- Light and depth ---- */
  /* One key light, upper left: the same vector the glass shader uses. */
  --key-highlight: inset 1px 1px 0 rgb(var(--lamp-rgb) / 0.12);
  --lift-1: 0 1px 2px color-mix(in oklab, var(--shade) 10%, transparent), 0 8px 24px -12px color-mix(in oklab, var(--shade) 22%, transparent);
  --lift-2: 0 2px 6px color-mix(in oklab, var(--shade) 8%, transparent), 0 26px 60px -28px color-mix(in oklab, var(--shade) 36%, transparent);
  --elev-1: 0 1px 2px rgb(11 27 58 / 0.05), 0 10px 28px -18px rgb(11 27 58 / 0.22);
  --elev-2: 0 2px 6px rgb(11 27 58 / 0.06), 0 28px 56px -28px rgb(11 27 58 / 0.32);
  --elev-3: 0 1px 2px rgb(10 21 48 / 0.05), 0 40px 90px -44px rgb(10 21 48 / 0.3); /* dialogs, the hero card, the menu card */
  --drop-dark: 0 1px 2px rgb(10 21 48 / 0.06), 0 24px 60px -24px rgb(10 21 48 / 0.22);

  /* ---- Motion ---- */
  --dur-press: 90ms; /* the pressed state going in; 140ms out */
  --dur-1: 160ms; /* hover, colour, border */
  --dur-2: 240ms; /* menus, popovers, a tab indicator */
  --dur-3: 420ms; /* sheets, the guide panel, dialogs */
  --dur-4: 640ms; /* reveals, opacity */
  --dur-5: 760ms; /* reveals, travel; the route change rise */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* entrances */
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2); /* exits, at 65% of the entrance's duration */
  --ease-move: cubic-bezier(0.65, 0, 0.35, 1); /* things that travel: indicators, underlines */
  --ease: var(--ease-out); /* the older name, kept working */
  /* How far every entrance travels. Named --rise-y: --rise is already a registered <number> that
     drives the chart bars (site.css @property --rise), so it cannot carry a length. */
  --rise-y: 14px;
  --depth: 1200px;
  --gut: clamp(16px, 4vw, 44px);
  --wide: 1220px;
  --radius-1: 12px;
  --radius-2: 20px;
  --radius-3: 30px;

  /* --face (the guide's still) is set by the build when it has one, and left unset otherwise. */
  color-scheme: light;
}

/* A label's hue, carried by data only. */
[data-label="ozempic"] {
  --hue: var(--ozempic);
}
[data-label="ozempic_tablets"] {
  --hue: var(--ozempic_tablets);
}
[data-label="wegovy"] {
  --hue: var(--wegovy);
}
[data-label="mounjaro"] {
  --hue: var(--mounjaro);
}
[data-label="zepbound"] {
  --hue: var(--zepbound);
}
[data-label="saxenda"] {
  --hue: var(--saxenda);
}
[data-label="foundayo"] {
  --hue: var(--foundayo);
}

/* A Darkfield surface: dark glass in any theme, wherever it sits. */
.night,
.darkfield,
.sheet,
.anatomy,
.site-foot,
.mm-feature,
.demo-dialog {
  --focus: var(--accent-lux);
  --focus-ring: var(--focus-ring-dark);
  color: var(--on-dark);
  color-scheme: light;
}

/* Glass gives way to solid carbon for visitors who ask for less transparency. */
/* Under reduced motion nothing travels and nothing scales: sheets and menus arrive at once. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --rise-y: 0px;
    --dur-2: 1ms;
    --dur-3: 1ms;
    --dur-5: 1ms;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass: var(--carbon-2);
    --glass-strong: var(--carbon-3);
    --panel-dark: var(--carbon-1);
  }
}

/* The site shell: the bar and its mega menus, the mobile sheet, search, the safety tray and the
   footer. A white clinical surface in the tenant's colours (theme stylesheet), with night glass
   only where the guide and the 3D scene live (the menus' featured panels). */

:root {
  --nav-space: 0px;
  --head-h: 64px;
  /* One token set (tokens.css). The shell's older names are aliases, so both sheets agree on every
     grey, rule and tint. */
  --navy: var(--brand);
  --navy-ink: var(--brand-ink);
  --ink-1: var(--ink);
  --tint: var(--paper-2);
  --radius: var(--r-sm);
}
@media (min-width: 1020px) {
  :root {
    --head-h: 72px;
  }
}
html {
  scroll-padding-top: calc(var(--head-h) + 24px);
}
body {
  background: var(--paper);
  color: var(--ink-1);
}
/* One focus ring everywhere: 2px of the brand, 2px clear of the control (the ground shows between,
   so it reads as the 2+2 ring). On navy and the Darkfield, --focus turns champagne (tokens.css).
   An outline, not a box-shadow, so no control's own shadow can hide it and forced colours keep it. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--navy-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.ribbon[hidden] {
  display: none;
}

/* ---- The bar ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Opaque on phones: page headings scrolling under the bar never ghost through it. */
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition:
    box-shadow var(--dur-2) var(--ease-out),
    background-color var(--dur-2) var(--ease-out);
}
.site-head.scrolled {
  box-shadow:
    0 1px 0 var(--rule),
    0 8px 24px -20px rgb(11 27 58 / 0.3);
}
/* On a desktop GPU the bar is frosted paper, 94% opaque: a hint of depth, never a ghosted heading. */
@media (min-width: 1020px) and (prefers-reduced-transparency: no-preference) {
  .site-head {
    background: color-mix(in oklab, var(--paper) 94%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
  }
  html.mm-open .site-head {
    background: var(--paper);
  }
}
.head-in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1320px;
  height: var(--head-h);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.site-head .logo {
  font-family: var(--ui);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-decoration: none;
}
.mm {
  flex: 1;
  min-width: 0;
}
.mm-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-item {
  position: static;
}
.mm-top,
.mm-trigger {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-xs);
  background: none;
  color: var(--ink-1);
  font: 600 0.9375rem/1 var(--ui);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out);
}
.mm-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform var(--dur-2) var(--ease-move);
}
.mm-trigger[aria-expanded="true"]::after {
  transform: translateY(3px) rotate(-135deg);
}
.mm-top:hover,
.mm-trigger:hover,
.mm-trigger[aria-expanded="true"] {
  background: var(--tint);
}
/* The current section and the open menu: a champagne hairline under the word, not a bar under
   the box. It draws from the centre out. */
.mm-top::before,
.mm-trigger::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--accent-lux);
  transform: scaleX(0);
  transition: transform var(--dur-2) var(--ease-out);
}
.mm-item[data-current] > .mm-top::before,
.mm-item[data-current] > .mm-trigger::before,
.mm-trigger[aria-expanded="true"]::before {
  transform: scaleX(1);
}
.mm-item[data-current] > .mm-top,
.mm-item[data-current] > .mm-trigger {
  color: var(--brand);
}
.head-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* The bar is chrome: its buttons are 40px and quiet in weight; the hero owns the big primary. */
.head-cta .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: var(--step--1);
}
.head-cta .btn.solid {
  background: var(--navy);
  color: var(--navy-ink);
  box-shadow: var(--hairline-top);
}
.head-cta .btn.quiet {
  border-color: var(--rule-strong);
  color: var(--ink-1);
}
.mm-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-xs);
  color: var(--ink-2);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
}
.mm-search svg {
  width: 18px;
  height: 18px;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}
.mm-search:hover {
  background: var(--tint);
}
.site-head .menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  color: var(--ink-1);
}

/* ---- The panel ---- */
.mm-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - 88px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 40px 80px -40px rgb(6 15 34 / 0.45);
}
/* The panel is opaque: the page behind it never shows through the menu columns. */
.mm-panel[hidden] {
  display: none;
}
/* Opening: the panel settles from half a rise above, then the columns arrive one after another,
   40ms apart, the feature card last. Transform and opacity only. */
.mm-panel.enter {
  animation: mm-in var(--dur-2) var(--ease-out) both;
}
.mm-panel.enter .mm-col,
.mm-panel.enter .mm-feature {
  animation: mm-rise var(--dur-3) var(--ease-out) both;
}
.mm-panel.enter .mm-col:nth-child(1) {
  animation-delay: 40ms;
}
.mm-panel.enter .mm-col:nth-child(2) {
  animation-delay: 80ms;
}
.mm-panel.enter .mm-col:nth-child(3) {
  animation-delay: 120ms;
}
.mm-panel.enter .mm-feature {
  animation-delay: 160ms;
}
@keyframes mm-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--rise-y, 14px) * -0.5));
  }
}
@keyframes mm-rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise-y, 14px));
  }
}
/* An open menu dims the page with a scrim under the bar. The page and the safety tray keep full
   opacity, so nothing paints through the Important Safety Information and its contrast holds. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  /* Above the page, below the safety tray (30) and the bar with its panel (50). */
  z-index: 25;
  /* A navy wash, never grey: the page behind stays in the brand's light. */
  background: rgb(6 15 34 / 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
html.mm-open body::after {
  opacity: 1;
}
@media (min-width: 1020px) {
  html.mm-open body::after {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}
.mm-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr minmax(300px, 0.95fr);
  align-items: start;
  gap: 32px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 32px) 28px;
}
.mm-cols.cols-2 {
  grid-template-columns: 1.1fr 1fr minmax(300px, 0.9fr);
}
.mm-cols.cols-1 {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
}
.mm-col.span-2 {
  grid-column: span 2;
  columns: 2;
  column-gap: 32px;
}
/* Column titles are eyebrows: mono, close set, led by the champagne rule. */
.mm-col-title {
  margin: 0 0 12px;
  font: 400 var(--step--2) / 1.4 var(--code);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-2);
}
.mm-col-title::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--line-lux);
}
.mm-group {
  margin: 12px 0 4px;
  font: 400 var(--step--2) / 1.4 var(--code);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  break-after: avoid;
}
.mm-col ul,
.mm-foot,
.mm-qs {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-col li {
  break-inside: avoid;
}
.mm-col a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-height: 40px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: var(--r-xs);
  color: var(--ink-1);
  font: 600 0.9375rem/1.35 var(--ui);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out);
}
/* A medicine's hue: a small dot that grows when its row is pointed at. */
.mm-col a[data-drug]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
  align-self: center;
  transform: scale(0.5);
  transition: transform var(--dur-2) var(--ease-out);
}
.mm-col a[data-drug]:hover::before,
.mm-col a[data-drug]:focus-visible::before,
.mm-col a[data-drug][aria-current="page"]::before {
  transform: scale(1);
}
.mm-col a:hover,
.mm-col a:focus-visible {
  background: var(--paper-2);
}
.mm-col a[aria-current="page"] {
  background: var(--paper-2);
  box-shadow: inset 2px 0 0 var(--accent-lux);
}
.mm-meta {
  flex-basis: 100%;
  padding-left: 18px;
  font: 400 var(--step--1) / 1.35 var(--ui);
  color: var(--ink-3);
}
.mm-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px) 22px;
  border-top: 1px solid var(--rule);
}
.mm-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--navy);
  text-decoration: none;
}
.mm-foot a::after {
  content: "\2192";
  margin-left: 8px;
  transition: transform var(--dur-1) var(--ease-out);
}
.mm-foot a:hover::after {
  transform: translateX(3px);
}

/* ---- Featured: the menu's one navy card, where the scene may come to rest ----
   The Darkfield's navy, a champagne hairline along the top and the deepest shadow on the page. */
.mm-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--carbon-2), var(--carbon-1) 60%);
  color: var(--on-dark);
  /* One champagne hairline along the top: the accent, used once per panel. */
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--accent-lux) 55%, transparent),
    var(--elev-3);
  overflow: hidden;
}
.mm-feature a {
  color: var(--on-dark);
}
/* Buttons on the card: the primary in ivory lamp, the rest as glass with a champagne edge. Never
   navy on navy. */
.mm-feature .btn.solid {
  min-height: 44px;
  padding: 0 20px;
  background: var(--lamp);
  color: var(--brand);
  box-shadow: none;
}
.mm-feature .btn.solid:hover {
  background: #ffffff;
}
.mm-feature .btn:not(.solid) {
  min-height: 44px;
  padding: 0 18px;
  color: var(--on-dark);
  border-color: var(--edge-dark-strong);
  background: var(--glass);
}
.mm-feature .btn:not(.solid):hover {
  border-color: var(--accent-lux);
}
.mm-feature .btn[disabled] {
  background: var(--glass);
  color: var(--on-dark-3);
}
.mm-scene-slot {
  position: relative;
  height: 150px;
  margin: -6px -6px 0;
  display: grid;
  place-items: center;
}
.mm-scene-slot .pg-orb,
.page-emblem .pg-orb,
.atlas-slot .pg-orb {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, color-mix(in srgb, var(--accent-lux) 55%, transparent) 35%, color-mix(in srgb, var(--navy) 30%, transparent) 70%, transparent 72%);
}
.mm-scene-slot .pg-orb i,
.page-emblem .pg-orb i,
.atlas-slot .pg-orb i,
.centerpiece .cp-still i {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: #5b93ff;
  border-right-color: #48efb2;
  animation: orbit 9s linear infinite;
}
.mm-scene-slot .pg-orb i:nth-child(2),
.page-emblem .pg-orb i:nth-child(2),
.atlas-slot .pg-orb i:nth-child(2),
.centerpiece .cp-still i:nth-child(2) {
  inset: -26px;
  border-top-color: #ffd84d;
  border-right-color: #ff9e4d;
  animation-duration: 14s;
  animation-direction: reverse;
}
.mm-scene-slot .pg-orb i:nth-child(3),
.page-emblem .pg-orb i:nth-child(3),
.atlas-slot .pg-orb i:nth-child(3),
.centerpiece .cp-still i:nth-child(3) {
  inset: -38px;
  border-top-color: #ff6397;
  border-right-color: #b98cff;
  animation-duration: 21s;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
.mm-note {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--on-dark-2);
}
.mm-card {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--edge-dark);
  background: var(--glass);
  box-shadow: inset 2px 0 0 var(--hue);
}
.mm-card[hidden] {
  display: none;
}
.mm-card p {
  margin: 0 0 4px;
}
.mm-card-brand {
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}
.mm-card-meta {
  font: 400 var(--step--2) / 1.5 var(--code);
  color: var(--on-dark-2);
}
.mm-card-meta span + span::before,
.label-line > span + span::before {
  content: " ";
}
.mm-bw {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: var(--r-xs);
  background: rgb(255 197 107 / 0.14);
  color: #ffd79a !important;
  font: 500 var(--step--2) / 1.4 var(--code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.mm-ask,
.askbar {
  display: flex;
  gap: 6px;
  align-items: center;
}
.mm-ask input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-dark-strong);
  background: var(--glass);
  color: var(--on-dark);
  font: inherit;
  font-size: var(--step--1);
}
.mm-ask input::placeholder {
  color: var(--on-dark-3);
}
.mm-ask button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--lamp);
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}
.mm-builder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mm-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge-dark-strong);
  background: transparent;
  color: inherit;
  font: 600 var(--step--1) / 1.2 var(--ui);
  cursor: pointer;
  transition:
    background-color var(--dur-1) var(--ease-out),
    border-color var(--dur-1) var(--ease-out);
}
.mm-chip:hover {
  border-color: var(--accent-lux);
}
.mm-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
}
.mm-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--hue) 26%, transparent);
  border-color: var(--hue);
}
.mm-build-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: var(--on-dark-2);
}
.mm-build-go[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.mm-emergency {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--on-dark);
}
/* The safety card's drawn shield: a fixed mark, no scene, so it reads the same with or without 3D. */
.mm-mark {
  display: grid;
  place-items: center;
  height: 120px;
  margin: -4px 0 0;
}
.mm-mark svg {
  width: 84px;
  height: 84px;
  overflow: visible;
}
.mm-mark .m-line {
  fill: color-mix(in srgb, var(--accent-lux) 8%, transparent);
  stroke: var(--accent-lux);
  stroke-width: 2;
  stroke-linejoin: round;
}
.mm-mark .m-fill {
  fill: none;
  stroke: var(--on-dark);
  stroke-width: 4;
  stroke-linecap: round;
}
.mm-mark .m-dot {
  fill: var(--on-dark);
}
.mm-mark .m-ring {
  fill: none;
  stroke: var(--edge-dark-strong);
  stroke-width: 1;
}
/* Links on the card as list rows with an arrow, ruled in the hairline. */
.mm-rows {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge-dark);
}
.mm-rows li {
  border-bottom: 1px solid var(--edge-dark);
}
.mm-rows a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  color: var(--on-dark);
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.35;
  text-decoration: none;
}
.mm-rows a::after {
  content: "\2192";
  flex: none;
  color: var(--accent-lux);
  transition: transform var(--dur-1) var(--ease-out);
}
.mm-rows a:hover::after,
.mm-rows a:focus-visible::after {
  transform: translateX(4px);
}
.mm-row-meta {
  display: block;
  margin-top: 2px;
  font: 400 var(--step--2) / 1.4 var(--code);
  color: var(--on-dark-3);
}
.mm-price {
  font-family: var(--voice);
  font-size: 1.6rem;
  font-weight: 300;
}
.mm-qs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pg-chip {
  appearance: none;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink-1);
  font: 600 13.5px/1.25 var(--ui);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.night .pg-chip {
  border-color: var(--edge-dark-strong);
  background: var(--glass);
  color: var(--on-dark);
}

/* ---- Laptop widths: the bar makes room for every menu ---- */
/* Below 1280 px the seven menus and the actions do not fit side by side, so Search keeps only its
   icon and the bar's "Ask" button steps aside (the guide's launcher, always on screen, opens the
   same guide). Nothing in the bar ever overprints another control. */
@media (min-width: 1020px) and (max-width: 1279px) {
  .head-cta .btn.quiet[data-guide-open] {
    display: none;
  }
}
@media (max-width: 1279px) {
  .mm-search-word {
    display: none;
  }
  .head-in {
    gap: 16px;
  }
}
@media (max-width: 1179px) {
  .mm-top,
  .mm-trigger {
    font-size: 14px;
    padding: 0 7px;
  }
  .head-in {
    gap: 12px;
  }
  .mm-bar {
    gap: 2px;
  }
}

/* ---- Mobile: the sheet ---- */
@media (max-width: 1019px) {
  .mm,
  .head-cta .btn.solid,
  .mm-search {
    display: none;
  }
  .head-in {
    justify-content: space-between;
  }
  .site-head .menu-btn {
    display: inline-grid;
  }
}
.mm-sheet {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 24px) max(24px, env(safe-area-inset-bottom));
  border: 0;
  background: var(--paper);
  color: var(--ink-1);
  overflow: auto;
  animation: sheet-in var(--dur-3) var(--ease-out) both;
}
/* Open, the sheet is a column: the menu up top, the emergency line and fine print at the foot. */
.mm-sheet[open] {
  display: flex;
  flex-direction: column;
}
.mm-sheet::backdrop {
  background: rgb(6 15 34 / 0.4);
}
body:has(dialog[open]) {
  overflow: hidden;
}
@keyframes sheet-in {
  from {
    transform: translateX(var(--rise-y, 14px));
    opacity: 0;
  }
}
.mm-sheet-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  margin-bottom: 8px;
}
.mm-sheet-head .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.mm-sheet-close,
.search-x {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule);
  background: none;
  color: inherit;
  cursor: pointer;
}
.mm-sheet-close svg,
.search-x svg {
  width: 20px;
  height: 20px;
}
.mm-sheet-search input,
.search-head input,
.search-page input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.mm-sheet-search input::placeholder,
.search-head input::placeholder,
.search-page input::placeholder {
  color: var(--ink-3);
}
.mm-sheet-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}
.mm-sheet-cta .btn {
  min-height: 52px;
}
.mm-sheet-cta .btn.solid {
  background: var(--navy);
  color: var(--navy-ink);
  box-shadow: var(--hairline-top);
}
.mm-acc h2 {
  margin: 0;
  font-size: inherit;
}
.mm-acc-head {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: inherit;
  font: 600 var(--step-2) / 1.2 var(--ui);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
}
/* A drawn plus, 20px with a 1.5px stroke, that turns 45 degrees into a cross when open. */
.mm-acc-head::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 16px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 16px no-repeat;
  transition: rotate var(--dur-2) var(--ease-move);
}
.mm-acc-head[aria-expanded="true"]::after {
  rotate: 45deg;
}
.mm-acc-body {
  display: grid;
  grid-template-rows: 1fr;
  padding: 6px 0 14px;
  animation: acc-in var(--dur-2) var(--ease-out) both;
}
.mm-acc-body[hidden] {
  display: none;
}
@keyframes acc-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.mm-acc-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-acc-body a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.mm-acc-body .mm-meta {
  display: none;
}
.mm-acc-body a[data-drug]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hue);
}
.mm-acc-body .mm-col-title,
.mm-acc-body .mm-group {
  margin: 14px 0 2px;
  font: 400 var(--step--2) / 1.4 var(--code);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--ink-2);
}
.mm-acc-hub {
  color: var(--navy) !important;
}
/* The emergency line and any notice sit at the foot of the sheet, clear of the home indicator. */
.mm-sheet-foot {
  margin-top: auto;
  padding: 28px 0 max(8px, env(safe-area-inset-bottom));
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-2);
}
.mm-sheet-foot .mm-emergency,
.mm-sheet-foot [data-copy="emergency"] {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink-1);
}

/* ---- Search dialog ---- */
.search-dialog {
  width: min(720px, 100vw - 24px);
  max-height: min(80dvh, 720px);
  margin: 10vh auto auto;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink-1);
  box-shadow: var(--elev-3);
}
.search-dialog::backdrop {
  background: rgb(6 15 34 / 0.45);
}
.search-head {
  display: flex;
  gap: 8px;
}
.search-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.search-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px;
  border-radius: var(--r-xs);
  color: inherit;
  text-decoration: none;
}
.search-list a:hover,
.search-list a:focus-visible {
  background: var(--paper-2);
}
.search-title {
  font-weight: 600;
}
.search-hub {
  font: 400 var(--step--2) / 1.6 var(--code);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.search-none {
  margin-top: 12px;
  color: var(--ink-2);
}

/* ---- The safety tray ---- */
.isi-tray {
  position: relative;
  z-index: 30;
  max-width: 1220px;
  margin: 48px auto 0;
  padding: 0 clamp(16px, 3vw, 32px);
}
/* Safety is ink, never champagne: the tray is ruled in the page's ink, and it never hides, shrinks
   or animates its presence. */
.isi-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 64px;
  padding: 12px 0;
  border-top: 2px solid var(--ink);
}
.isi-bar h2 {
  flex: none;
  margin: 0;
  font: 700 var(--step-0) / 1.2 var(--ui);
  letter-spacing: -0.005em;
}
/* The medicines as quiet text links with a hue dot: a table of contents, not a filter row. */
.isi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.isi-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--ink-1);
  font: 600 var(--step--1) / 1.2 var(--ui);
  text-decoration: none;
}
.isi-chips a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.isi-chips a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hue);
}
.isi-toggle {
  margin-left: auto;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 var(--step--1) / 1 var(--ui);
  cursor: pointer;
}
.isi-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(225deg) translate(-2px, -2px);
  transition: transform var(--dur-2) var(--ease-move);
}
.isi-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.isi-body {
  display: grid;
  gap: 24px;
  padding-bottom: 32px;
}
.isi-drug {
  padding: 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule);
  box-shadow: inset 4px 0 0 var(--hue);
}
.isi-drug h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.isi-drug h3 a {
  color: inherit;
  text-decoration: none;
}
.isi-drug h4 {
  margin: 16px 0 6px;
  font: 400 var(--step--2) / 1.4 var(--code);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--navy);
}
.isi-links a,
.isi-foot a {
  margin-right: 14px;
  font-weight: 600;
  color: var(--navy);
}
.isi-foot {
  font-weight: 600;
}
/* With script: a 56px bar fixed to the bottom of the viewport that expands to 60vh. */
.js .isi-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  box-shadow: 0 -18px 40px -24px rgb(6 15 34 / 0.3);
}
.js .isi-bar {
  max-width: 1220px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px clamp(16px, 3vw, 32px) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 0;
  flex-wrap: nowrap;
}
/* One line of medicines that scrolls; the cut at the right edge is a fade, never a clipped word. */
.js .isi-chips {
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding-right: 28px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.js .isi-chips::-webkit-scrollbar {
  display: none;
}
/* Chips keep their width and one line; the row scrolls instead of squeezing them into circles. */
.isi-chips > li {
  flex: 0 0 auto;
}
.isi-chips a {
  white-space: nowrap;
}
.js .isi-body {
  max-width: 1220px;
  max-height: 0;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.js .isi-tray.open .isi-body {
  max-height: 60vh;
  overflow: auto;
  padding-bottom: 24px;
}
.js body:has(.isi-tray) {
  padding-bottom: 66px;
}
.js body:has(.isi-tray) .launch {
  bottom: 82px;
}
/* On a phone the launcher is the avatar alone, a 56px circle above the tray, so it never sits on
   the boxed warning or a chart's controls; its words stay for screen readers. */
@media (max-width: 600px) {
  .launch {
    padding: 3px !important;
    gap: 0 !important;
  }
  .launch-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .js .isi-bar {
    gap: 14px;
  }
  .js .isi-bar h2 {
    font-size: var(--step--1);
    white-space: nowrap;
  }
  .isi-toggle {
    padding: 0 14px;
  }
  html {
    scroll-padding-bottom: 136px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mm-panel.enter,
  .mm-panel.enter .mm-col,
  .mm-panel.enter .mm-feature,
  .mm-sheet,
  .mm-acc-body {
    animation: none;
  }
  .mm-top::before,
  .mm-trigger::before,
  .mm-trigger::after,
  .mm-col a[data-drug]::before,
  .mm-acc-head::after,
  .isi-toggle::after,
  .mm-rows a::after,
  .mm-foot a::after,
  body::after {
    transition: none;
  }
  .js .isi-body {
    transition: none;
  }
  .mm-scene-slot .pg-orb i,
  .page-emblem .pg-orb i,
  .atlas-slot .pg-orb i,
  .centerpiece .cp-still i {
    animation: none;
  }
}

/* ---- Footer (the guide's own footer styles live in site.css) ---- */
/* Column heads: Plex Mono, champagne on the navy (8.3:1, the one place the accent is text). */
.site-foot .foot-h {
  margin: 0 0 12px;
  font: 400 var(--step--2) / 1.4 var(--code);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-lux);
}

/* A medicine's drawn still: its own pen or tablet in its label's hue, inside two orbits. This is
   what shows wherever 3D does not run, and the form switch changes it (data-shown). */
.centerpiece .cp-still {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.centerpiece .cp-still i {
  border-top-color: var(--hue, #5b93ff);
  border-right-color: transparent;
  opacity: 0.8;
}
.centerpiece .cp-still i:nth-child(2) {
  border-top-color: color-mix(in srgb, var(--hue, #5b93ff) 60%, #ffffff);
  border-right-color: transparent;
  opacity: 0.5;
}
.centerpiece .cp-still i:nth-child(3) {
  display: none;
}
.centerpiece .cp-still svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.5));
  transition:
    opacity 0.35s var(--ease, ease),
    transform 0.35s var(--ease, ease);
}
.centerpiece .cp-still .g-body {
  fill: rgb(255 255 255 / 0.1);
  stroke: #eef2fb;
  stroke-width: 2.4;
}
.centerpiece .cp-still .g-window {
  fill: var(--hue, #5b93ff);
  opacity: 0.9;
}
.centerpiece .cp-still .g-cap {
  fill: none;
  stroke: #eef2fb;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.centerpiece .cp-still .g-halo {
  fill: color-mix(in srgb, var(--hue, #5b93ff) 10%, transparent);
  stroke: color-mix(in srgb, var(--hue, #5b93ff) 26%, transparent);
  stroke-width: 0.6;
}
.centerpiece .cp-still .g-ring {
  fill: none;
  stroke: var(--hue, #5b93ff);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0.01 6.8;
  opacity: 0.7;
}
.centerpiece .cp-still .g-tick {
  stroke: #eef2fb;
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.55;
}
.centerpiece .cp-still .g-shine {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.35;
}
.centerpiece .cp-still .g-edge {
  fill: rgb(0 0 0 / 0.35);
  stroke: #eef2fb;
  stroke-width: 1.6;
  opacity: 0.7;
}
.centerpiece[data-form="both"] .cp-tab,
.centerpiece[data-shown="tablet"] .cp-pen {
  opacity: 0;
  transform: scale(0.85) rotate(-8deg);
}
.centerpiece[data-shown="tablet"] .cp-tab {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .centerpiece .cp-still {
    width: 96px;
  }
}

/* A hub's drawn mark in its emblem: drawn on as the page opens, still under reduced motion. */
.page-emblem .pg-mark {
  width: 46%;
  height: 46%;
  overflow: visible;
  filter: drop-shadow(0 10px 16px rgb(0 0 0 / 0.45));
}
.pg-mark .m-line,
.pg-mark .m-base {
  fill: none;
  stroke: #eef2fb;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pg-mark .m-base {
  stroke: rgb(238 242 251 / 0.45);
}
.pg-mark .m-fill {
  fill: #5b93ff;
  stroke: #9fc0ff;
  stroke-width: 3;
  stroke-linecap: round;
}
.pg-mark .m-dot {
  fill: #ffd84d;
}
.mark-safety .m-fill {
  fill: none;
  stroke: #ffd84d;
}
.mark-evidence .m-fill {
  fill: #48efb2;
  stroke: #b6f7df;
}
@media (prefers-reduced-motion: no-preference) {
  .pg-mark .m-line,
  .pg-mark .m-fill {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: mark-draw 1.2s var(--ease, ease) 0.1s forwards;
  }
}
@keyframes mark-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---- Stills on a light ground ----
   The drawn stills are what a visitor sees with no WebGL or with reduced motion, so on the paper
   they draw in ink like the 3D does: the brand navy for body and lines, the label's hue inside,
   the accent on a hub. The guide's own dark stages keep the light-on-dark drawing above. */
.centerpiece[data-ground="light"] .cp-still i {
  border-top-color: var(--hue, var(--navy));
  opacity: 0.6;
}
.centerpiece[data-ground="light"] .cp-still i:nth-child(2) {
  border-top-color: color-mix(in srgb, var(--hue, var(--navy)) 45%, var(--navy));
  opacity: 0.32;
}
.centerpiece[data-ground="light"] .cp-still svg {
  filter: drop-shadow(0 12px 12px color-mix(in srgb, var(--navy) 22%, transparent));
}
.centerpiece[data-ground="light"] .cp-still .g-body {
  fill: color-mix(in srgb, var(--navy) 90%, var(--hue, var(--navy)));
  stroke: var(--navy);
}
.centerpiece[data-ground="light"] .cp-still .g-cap {
  stroke: var(--navy);
}
.centerpiece[data-ground="light"] .cp-tab .g-cap {
  stroke: rgb(255 255 255 / 0.4);
}
.centerpiece[data-ground="light"] .cp-still .g-window {
  opacity: 1;
}
.centerpiece[data-ground="light"] .cp-still .g-tick {
  stroke: #ffffff;
}
.centerpiece[data-ground="light"] .cp-still .g-shine {
  opacity: 0.4;
}
.centerpiece[data-ground="light"] .cp-still .g-edge {
  fill: var(--navy);
  stroke: var(--navy);
  opacity: 1;
}
.centerpiece[data-ground="light"] .cp-still .g-halo {
  fill: color-mix(in srgb, var(--hue, var(--navy)) 9%, transparent);
  stroke: none;
}
.centerpiece[data-ground="light"] .cp-still .g-ring {
  stroke: color-mix(in srgb, var(--hue, var(--navy)) 80%, var(--navy));
  opacity: 0.8;
}
[data-ground="light"] .pg-orb {
  background: radial-gradient(circle at 35% 30%, #ffffff, color-mix(in srgb, var(--accent-lux) 70%, #ffffff) 20%, color-mix(in srgb, var(--accent-lux) 55%, var(--navy)) 62%, var(--navy));
  box-shadow: 0 18px 26px -16px color-mix(in srgb, var(--navy) 55%, transparent);
}
[data-ground="light"] .pg-orb i {
  border-top-color: var(--navy);
  border-right-color: transparent;
  opacity: 0.5;
}
[data-ground="light"] .pg-orb i:nth-child(2) {
  border-top-color: var(--accent-lux);
  border-right-color: transparent;
  opacity: 0.9;
}
[data-ground="light"] .pg-orb i:nth-child(3) {
  border-top-color: color-mix(in srgb, var(--navy) 35%, transparent);
  border-right-color: transparent;
}
.page-emblem[data-ground="light"] .pg-mark {
  width: 54%;
  height: 54%;
  filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--navy) 18%, transparent));
}
[data-ground="light"] .pg-mark .m-line {
  stroke: var(--navy);
}
[data-ground="light"] .pg-mark .m-base {
  stroke: color-mix(in srgb, var(--navy) 35%, transparent);
}
[data-ground="light"] .pg-mark .m-fill {
  fill: var(--accent-lux);
  stroke: color-mix(in srgb, var(--accent-lux) 70%, var(--navy));
}
[data-ground="light"] .pg-mark .m-dot {
  fill: color-mix(in srgb, var(--accent-lux) 80%, var(--navy));
}
.mark-safety[data-ground="light"] .m-fill {
  fill: none;
  stroke: color-mix(in srgb, var(--accent-lux) 80%, var(--navy));
}
/* Free of its tile, the drawn form takes the same weight the 3D form has in the head. */
.centerpiece[data-ground="light"] .cp-still {
  width: 150px;
}
@media (max-width: 860px) {
  .centerpiece[data-ground="light"] .cp-still {
    width: 86px;
  }
  .centerpiece[data-ground="light"] .cp-still i {
    inset: -8px;
  }
  .centerpiece[data-ground="light"] .cp-still i:nth-child(2) {
    inset: -16px;
  }
  .page-emblem[data-ground="light"] .pg-orb {
    width: 60px;
  }
  .page-emblem[data-ground="light"] .pg-orb i {
    inset: -8px;
  }
  .page-emblem[data-ground="light"] .pg-orb i:nth-child(2) {
    inset: -15px;
  }
  .page-emblem[data-ground="light"] .pg-orb i:nth-child(3) {
    inset: -22px;
  }
}

/* The prerendered pages: heads, quotes with their citation chips, verified tables, the boxed-warning
   box, tab bars, comparison grids and cards. White clinical layout; each label's hue marks its
   quotes, chips and columns ([data-label] rules in the generated hues stylesheet). */

.page-head,
.med-head,
body:not([data-template="home"]) #main > .tabs,
body:not([data-template="home"]) #main > .pg-med-body,
body:not([data-template="home"]) #main > .overview,
body:not([data-template="home"]) #main > .tab-cards,
body:not([data-template="home"]) #main > section,
body:not([data-template="home"]) #main > .lab-cards,
body:not([data-template="home"]) #main > .med-cards,
body:not([data-template="home"]) #main > .grid-groups,
body:not([data-template="home"]) #main > .link-grid,
body:not([data-template="home"]) #main > .cmp-picker,
body:not([data-template="home"]) #main > .tscroll,
body:not([data-template="home"]) #main > .caveat,
body:not([data-template="home"]) #main > .askbar,
body:not([data-template="home"]) #main > .more-row,
body:not([data-template="home"]) #main > .related,
body:not([data-template="home"]) #main > .bw-box,
body:not([data-template="home"]) #main > .cards,
body:not([data-template="home"]) #main > .ifu-steps,
body:not([data-template="home"]) #main > .pg-faq,
body:not([data-template="home"]) #main > .pg-steps,
body:not([data-template="home"]) #main > .offered,
body:not([data-template="home"]) #main > .lab-group,
body:not([data-template="home"]) #main > .notices,
body:not([data-template="home"]) #main > .from,
body:not([data-template="home"]) #main > .search-page,
body:not([data-template="home"]) #main > .search-results,
body:not([data-template="home"]) #main > .layers-list,
body:not([data-template="home"]) #main > .lede,
body:not([data-template="home"]) #main > .stat-row,
body:not([data-template="home"]) #main > .docs,
body:not([data-template="home"]) #main > .atlas-slot,
body:not([data-template="home"]) #main > p,
body:not([data-template="home"]) #main > h2,
body:not([data-template="home"]) #main > ul,
body:not([data-template="home"]) #main > div,
body:not([data-template="home"]) #main > figure {
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}
body:not([data-template="home"]) #main {
  outline: none;
  padding-bottom: 32px;
}
body:not([data-template="home"]) #main h1,
body:not([data-template="home"]) #main h2,
body:not([data-template="home"]) #main h3,
body:not([data-template="home"]) #main h4 {
  font-family: var(--ui);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
body:not([data-template="home"]) #main h1 {
  margin: 8px 0 12px;
  max-width: 22ch;
  font-size: var(--step-4, clamp(2rem, 1.62rem + 1.6vw, 3rem));
  font-weight: var(--w-head, 600);
  line-height: var(--lh-head, 1.1);
  letter-spacing: var(--track-4, -0.03em);
}
body:not([data-template="home"]) #main h2 {
  margin: 40px 0 12px;
  font-size: var(--step-3, clamp(1.5rem, 1.29rem + 0.9vw, 2.125rem));
  font-weight: var(--w-head, 600);
  letter-spacing: var(--track-3, -0.02em);
}
body:not([data-template="home"]) #main h3 {
  margin: 24px 0 8px;
  font-size: var(--step-2, clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem));
  font-weight: var(--w-head, 600);
  letter-spacing: var(--track-2, -0.01em);
}
body:not([data-template="home"]) #main p,
body:not([data-template="home"]) #main li {
  line-height: 1.6;
}
/* Text links take the clinic's navy; buttons keep their own ink (a navy label on a navy button
   would read as a blank pill). */
body:not([data-template="home"]) #main a:not(.btn) {
  color: var(--navy);
}

/* ---- Heads ---- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 22px 0 6px;
  padding: 0;
  list-style: none;
  font-size: var(--step--1, 0.875rem);
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  font-weight: 300;
  color: var(--rule-strong);
}
.crumbs a {
  color: var(--ink-2) !important;
  text-decoration: none;
}
/* A head is a balanced composition in two columns: the words, as wide as they are (never less
   than 30rem, so a short title does not pull the symbol to the middle of the page and every head
   keeps the same rhythm), and all the open space beside them. The symbol sits at the optical
   centre of that open space, level with the title block, never pinned to the page's right edge. */
.page-head-in,
.med-head-in {
  display: grid;
  grid-template-columns: minmax(min(30rem, 100%), max-content) minmax(280px, 1fr);
  gap: 24px;
  align-items: center;
}
.page-head .kicker,
.med-head .kicker {
  margin: 10px 0 0;
  font-size: var(--step--2, 0.75rem);
  letter-spacing: var(--track-eyebrow, 0.16em);
  color: var(--ink-2);
}
/* The eyebrow's champagne rule: the one place the accent shows on ivory, as a line, never text. */
.page-head .kicker::before,
.med-head .kicker::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--line-lux, var(--accent-lux));
}
.lede {
  max-width: var(--measure-lede, 44ch);
  font-size: var(--step-1, 1.125rem);
  line-height: 1.55;
  color: var(--ink-2);
}
/* A page's symbol floats free on the paper: no tile, no frame, no shadowed box. It is grounded by
   a soft halo (the medicine's hue, or the accent on a hub) and a faint contact shadow, and the 3D
   form and its still draw in ink for the light ground (data-ground="light"). It is centred in the
   head's visual column, a little larger than the old tile; its negative block margins keep the
   space it takes in the layout at the tile's 220px, so the head is no taller than before. */
.page-emblem,
.med-head-in .centerpiece {
  position: relative;
  --halo: var(--accent-lux);
  display: grid;
  place-items: center;
  justify-self: center;
  width: 252px;
  margin-block: -16px;
  aspect-ratio: 1;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}
.med-head-in .centerpiece {
  --halo: var(--hue, var(--accent-lux));
}
/* A two-form medicine: the form and its switch are one group, centred in the visual column, the
   switch centred under the form and tucked into the space below it, so the head is no taller than
   a one-form medicine's by much. */
.med-head-in > .cp-wrap {
  justify-self: center;
  justify-items: center;
  gap: 0;
}
.med-head-in > .cp-wrap > .centerpiece {
  margin-bottom: -24px;
}
.med-head-in > .cp-wrap > .form-switch {
  position: relative;
  z-index: 2;
  justify-content: center;
}
.page-emblem::before,
.med-head-in .centerpiece::before {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--halo) 24%, transparent), color-mix(in srgb, var(--halo) 9%, transparent) 52%, transparent);
  pointer-events: none;
}
.page-emblem::after,
.med-head-in .centerpiece::after {
  content: "";
  position: absolute;
  inset: auto 32% 7% 32%;
  height: 6%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--navy) 20%, transparent), transparent);
  pointer-events: none;
}
.pg-med-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.pg-med-sub span + span::before {
  content: " \00b7  ";
}
.label-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}
.label-line a {
  margin-left: 10px;
  font-weight: 600;
}
.h1-tab {
  display: block;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.med-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
  margin-bottom: 0;
}
.med-head h1 {
  box-shadow: none;
}
.med-head h1 > span:first-child::before {
  content: "";
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin-right: 0.3em;
  border-radius: 50%;
  background: var(--hue);
  vertical-align: 0.25em;
}

/* ---- The boxed warning ----
   One treatment everywhere: a square box ruled in ink, a bold caps heading, the label's words in
   the label's serif. Regulatory, so it never moves: no shadow, no hue, no transition, no reveal.
   It is final on the first frame. */
.bw-box {
  margin-top: var(--sp-5, 24px);
  padding: 20px 24px 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
.bw-box,
.bw-box * {
  animation: none !important;
  transition: none !important;
}
.bw-box,
.bw-box .pg-q {
  opacity: 1 !important;
  transform: none !important;
  translate: none !important;
}
body:not([data-template="home"]) #main .bw-box h2,
body:not([data-template="home"]) #main .bw-box h3,
body:not([data-template="home"]) #main .bw-box h4,
.bw-box .bw-head {
  max-width: none;
  margin: 0 0 10px;
  font: 700 var(--step--1, 0.875rem)/1.3 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.bw-box .pg-q {
  margin: 0;
  border: 0;
  padding: 0;
}
.bw-box blockquote,
.bw-box blockquote p,
.bw-box blockquote li {
  font: 400 var(--step-0, 1rem)/1.6 var(--voice);
  color: var(--ink);
}

/* ---- Tabs ---- */
.tabs {
  position: sticky;
  top: var(--head-h);
  z-index: 20;
  /* Opaque: headings scrolling underneath never read through the tab bar. */
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
/* The tab row says it scrolls: its far edge fades out, and each tab snaps into view. */
.tabs ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0 40px 0 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000, #000 calc(100% - 40px), transparent);
}
.tabs li {
  scroll-snap-align: start;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  color: var(--ink-2) !important;
  font-weight: 600;
  font-size: var(--step--1, 0.875rem);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a[aria-current="page"] {
  color: var(--ink-1) !important;
  border-bottom-color: var(--hue, var(--navy));
}
.pg-med-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  margin-top: 24px;
}
.pg-med-body:not(:has(.on-tab)) {
  grid-template-columns: minmax(0, 1fr);
}
.pg-med-body > .tab-content {
  min-width: 0;
}
.on-tab {
  position: sticky;
  top: calc(var(--head-h) + 64px);
  align-self: start;
  max-height: calc(100dvh - 160px);
  overflow: auto;
}
body:not([data-template="home"]) #main .on-tab h2 {
  margin: 0 0 8px;
  font: 500 12px/1.3 var(--code);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.on-tab ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.on-tab a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2) !important;
  text-decoration: none;
}
/* ---- Index rows ----
   Hubs, a medicine's tab list and the instructions list read as a printed formulary: hairline
   rows, each led by its number in mono, with an arrow that slides toward where it goes. Not a
   grid of identical boxes. */
.tab-cards,
.cards,
.link-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: var(--sp-4, 16px);
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  counter-reset: row;
}
.tab-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  column-gap: 40px;
  margin-top: 40px;
}
.tab-cards > li,
.cards > li,
.link-grid > li {
  counter-increment: row;
  border-bottom: 1px solid var(--rule);
}
.tab-card,
.cards .card,
.link-grid a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 36px 14px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink-1) !important;
  font: 600 var(--step-0, 1rem)/1.35 var(--ui);
  text-decoration: none;
  transition: color var(--dur-1, 160ms) var(--ease-out, ease);
}
.tab-card::before,
.cards .card::before,
.link-grid a::before {
  content: counter(row, decimal-leading-zero);
  flex: none;
  min-width: 2ch;
  font: 400 var(--step--2, 0.75rem)/1 var(--code);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.tab-card::after,
.cards .card::after,
.link-grid a::after {
  content: "\2192";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-weight: 400;
  color: var(--ink-3);
  transition:
    translate var(--dur-1, 160ms) var(--ease-out, ease),
    color var(--dur-1, 160ms);
}
.tab-card:hover,
.cards .card:hover,
.link-grid a:hover,
.tab-card:focus-visible,
.cards .card:focus-visible,
.link-grid a:focus-visible {
  color: var(--brand) !important;
}
.tab-card:hover::after,
.cards .card:hover::after,
.link-grid a:hover::after,
.tab-card:focus-visible::after,
.cards .card:focus-visible::after,
.link-grid a:focus-visible::after {
  translate: 4px -50%;
  color: var(--brand);
}
/* A medicine's own tab rows carry its hue in the numeral's place. */
.tab-card::before {
  content: "";
  min-width: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue, var(--brand));
}
/* The most important link on the Safety hub, the boxed warning, is visibly different: an ink rule. */
.link-grid a[href="/safety/boxed-warning"] {
  margin-left: -14px;
  padding-left: 12px;
  border-left: 2px solid var(--ink);
}
/* A counted row (symptoms): the link takes the line, its label count sits at the right in mono.
   A long counted index sets in two columns on a wide screen. */
.link-grid.counted {
  grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr));
  column-gap: 56px;
}
.link-grid.counted li {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 400 var(--step--2, 0.75rem)/1 var(--code);
  color: var(--ink-3);
}
.link-grid.counted a {
  flex: 1;
  margin-right: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .tab-card::after,
  .cards .card::after,
  .link-grid a::after {
    transition: color var(--dur-1, 160ms);
  }
  .tab-card:hover::after,
  .cards .card:hover::after,
  .link-grid a:hover::after,
  .tab-card:focus-visible::after,
  .cards .card:focus-visible::after,
  .link-grid a:focus-visible::after {
    translate: 0 -50%;
  }
}

/* ---- Quotes and chips ---- */
.sec-title {
  scroll-margin-top: calc(var(--head-h) + 70px);
}
.pg-q {
  margin: 14px 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--hue, var(--rule));
}
.pg-q blockquote {
  margin: 0;
  font-family: var(--voice);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-1);
}
.pg-q blockquote p,
.pg-q blockquote ul {
  margin: 0 0 8px;
}
/* The guide's own quote style (styles.css) is for night glass; on the page, ink on paper. */
.pg-q blockquote {
  padding-left: 0;
  border-left: 0;
}
.pg-q blockquote p,
.pg-q blockquote li {
  color: var(--ink-1);
  font: inherit;
  line-height: inherit;
}
.pg-q blockquote ul {
  padding-left: 1.2em;
}
.pg-q figcaption {
  margin-top: 6px;
}
.pg-q-head {
  margin: 0 0 4px;
  font-weight: 700;
}
.pg-q-more > summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
/* A citation is provenance, engineered: one line of mono, never wrapped inside its own outline,
   squared off (8px) so it never reads as a conversational chip. The full text is the link's. */
.cite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px 0 8px;
  border-radius: var(--r-xs, 8px);
  border: 1px solid color-mix(in oklab, var(--hue, var(--rule)) 35%, var(--rule));
  background: color-mix(in oklab, var(--hue, var(--paper)) 6%, var(--paper));
  color: var(--ink-2) !important;
  font: 400 var(--step--2, 0.75rem)/1 var(--code);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
/* Only the source name gives way when space is short; the section code and version always show. */
.cite > .cite-src {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cite > .cite-code,
.cite > .cite-ver {
  flex: none;
}
.cite::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue, var(--ink-3));
}
.cite-code {
  font-family: var(--code);
  font-weight: 500;
  color: var(--ink-1);
}
.cite-ver {
  color: var(--ink-3);
}
.cite:hover {
  border-color: var(--hue, var(--navy));
}
.lab-group + .lab-group {
  margin-top: 28px;
}
.lab-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lab-head::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hue, var(--navy));
}
.lab-head a {
  color: inherit !important;
  text-decoration: none;
}
.heads {
  margin: 8px 0;
  padding-left: 1.1em;
}
.heads a {
  text-decoration: none;
}
/* Each heading link is a 24px target with room around it. */
.heads li {
  min-height: 24px;
  padding-block: 3px;
}
.heads a {
  display: inline-block;
  min-height: 24px;
}
/* "How to read this page": a margin note on a champagne rule, aligned to the content edge. */
.caveat {
  max-width: var(--measure, 62ch);
  margin-top: 20px;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--line-lux, var(--accent-lux));
  border-radius: 0;
  background: none;
  color: var(--ink-2);
  font-size: var(--step--1, 0.875rem);
  line-height: 1.55;
}
/* A note placed straight in <main> starts at the content edge (the page column's left edge plus
   its gutter), not at the 1220px box's edge, so its rule lines up with the title above. */
body:not([data-template="home"]) #main > .caveat {
  max-width: var(--measure, 62ch);
  margin-left: max(clamp(16px, 3vw, 32px), calc((100% - 1220px) / 2 + clamp(16px, 3vw, 32px)));
  margin-right: clamp(16px, 3vw, 32px);
  padding: 4px 0 4px 16px;
}

/* ---- Verified tables ---- */
.tbl {
  margin: 22px 0;
}
.tscroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.tbl table,
table.cmp,
table.topic,
table.wmx,
table.labels-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl caption {
  padding: 14px 16px 10px;
  caption-side: top;
  text-align: left;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
}
.tbl th,
.tbl td,
.cmp th,
.cmp td,
.topic th,
.topic td,
.wmx th,
.wmx td,
.labels-table th,
.labels-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
/* Page tables are light: the guide panel's dark-theme th/td colours (styles.css) never reach them. */
.tbl th,
.tbl td,
.cmp th,
.cmp td,
.topic th,
.topic td,
.wmx th,
.wmx td,
.labels-table th,
.labels-table td,
.tbl thead th,
.cmp thead th {
  color: var(--ink);
}
.tbl tbody th,
.cmp tbody th,
.topic tbody th,
.wmx tbody th,
.labels-table tbody th {
  color: var(--ink-2);
}
.tbl td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tbl thead th,
.tbl .tgroup-head th {
  background: var(--tint);
  font-size: 12.5px;
  font-weight: 700;
}
.tbl tbody th {
  font-weight: 500;
  min-width: 220px;
}
.tbl.wide th[scope="row"] {
  position: sticky;
  left: 0;
  background: var(--paper);
}
.tnotes {
  margin: 8px 0 0;
  padding-left: 1em;
  font-size: 12.5px;
  color: var(--ink-3);
}
.tbl figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.tlink {
  font-size: 13.5px;
  font-weight: 600;
}

/* ---- Comparison ---- */
.cmp-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}
.cmp-picker .mm-chip {
  border-color: var(--rule);
  background: var(--paper);
}
.cmp-picker .mm-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--hue) 18%, var(--paper));
}
.cmp-picker .btn.solid {
  background: var(--navy);
  color: var(--navy-ink);
}
.cmp-scroll {
  margin-top: 20px;
}
/* The comparison: a fixed layout, so every medicine gets an equal column and all of them are on
   screen at once (an auto layout let the longest quote take the page and pushed the second
   medicine out of view). The row names take a fixed 168px. Selectors stop at the comparison's own
   rows (">"): a label table printed inside a cell keeps its own styles and scrolls in its cell. */
table.cmp {
  table-layout: fixed;
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}
table.cmp.cols-4 {
  min-width: 1060px;
}
table.cmp.cols-5,
table.cmp.cols-6,
table.cmp.cols-7 {
  min-width: calc(168px + 7 * 230px);
}
table.cmp.cols-5 {
  min-width: calc(168px + 5 * 230px);
}
table.cmp.cols-6 {
  min-width: calc(168px + 6 * 230px);
}
/* The desktop grid (a phone stacks the rows as cards, below). */
@media (min-width: 601px) {
  table.cmp > thead > tr > .corner,
  table.cmp > tbody > tr > th {
    width: 168px;
  }
  table.cmp > thead > tr > th,
  table.cmp > thead > tr > td,
  table.cmp > tbody > tr > th,
  table.cmp > tbody > tr > td {
    padding: 20px;
    border-top: 1px solid var(--rule);
    vertical-align: top;
  }
  table.cmp > thead > tr > th {
    min-width: 0;
    padding: 20px 20px 16px;
    border-top: 2px solid var(--hue, var(--ink));
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }
  table.cmp > thead > tr > .corner {
    border-top: 0;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }
  table.cmp > tbody > tr:first-child > * {
    border-top: 0;
  }
  table.cmp > * > tr > td + td,
  table.cmp > * > tr > th + th,
  table.cmp > * > tr > th + td {
    border-left: 1px solid var(--rule);
  }
  table.cmp > thead > tr > th a:not(.bw-chip) {
    font-size: var(--step-2, 1.25rem);
    font-weight: var(--w-head, 600);
    letter-spacing: var(--track-2, -0.01em);
    color: var(--ink-1) !important;
    text-decoration: none;
  }
  table.cmp > tbody > tr > th {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-left: 0;
    background: var(--paper);
    font: 400 var(--step--2, 0.75rem)/1.4 var(--code);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
  }
  table.cmp > tbody > tr > td {
    min-width: 0;
    overflow-wrap: break-word;
  }
  /* A printed label table inside a cell never widens its column: it scrolls inside the cell. */
  table.cmp > tbody > tr > td .tscroll {
    max-width: 100%;
  }
}
.cmp td .pg-q,
.topic td .pg-q {
  margin: 0 0 12px;
}
.cmp td .pg-q blockquote,
.topic td .pg-q blockquote {
  max-width: none;
  font-size: var(--step-0, 1rem);
  line-height: 1.55;
}
/* On a desktop, a comparison of two or three fits the page with no sideways scroll, so it lets go
   of its scroll box and each medicine's name stays pinned under the bar while its rows go by. */
@media (min-width: 1100px) {
  .cmp-scroll:has(> table.cols-2),
  .cmp-scroll:has(> table.cols-3) {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .cmp-scroll:has(> table.cols-2) > table > thead > tr > *,
  .cmp-scroll:has(> table.cols-3) > table > thead > tr > * {
    position: sticky;
    top: var(--head-h, 64px);
    z-index: 3;
  }
}
/* Between a phone and a desktop the table scrolls sideways; its far edge fades to say so. */
@media (min-width: 601px) and (max-width: 1099px) {
  .cmp-scroll {
    mask-image: linear-gradient(90deg, #000, #000 calc(100% - 32px), transparent);
  }
}
.col-sub {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.bw-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  font: 500 11px/1.5 var(--code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.topic th[scope="row"] {
  width: 210px;
}
.topic th a {
  font-weight: 700;
  color: var(--ink-1) !important;
  text-decoration: none;
}
.cmp-evidence ul {
  padding-left: 1.1em;
}
.cmp-evidence .ev-name {
  font-weight: 700;
  margin-right: 8px;
}
.cmp-evidence a + a {
  margin-left: 12px;
}

/* ---- Safety ---- */
/* Which labels carry a warning: one card per label, all seven on one row on a wide screen (never
   six and a lonely seventh), each a hue-topped card whose section number is the card's own link. */
.carried .mx {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 0;
  list-style: none;
}
@media (min-width: 1280px) {
  .carried .mx {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
.carried .mx li {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  padding: 14px 14px 12px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--hue, var(--rule));
  border-radius: 0;
  background: var(--paper);
  font: 400 var(--step--2, 0.75rem)/1.3 var(--code);
  color: var(--ink-3);
  transition: border-color var(--dur-1, 160ms);
}
.carried .mx li:has(a):hover {
  border-color: color-mix(in oklab, var(--hue, var(--brand)) 50%, var(--rule));
  border-top-color: var(--hue, var(--brand));
}
.carried .mx a {
  font: 500 var(--step--1, 0.875rem)/1 var(--code);
  color: var(--ink) !important;
  text-decoration: none;
}
.carried .mx a::before {
  content: "\00a7\00a0";
  color: var(--ink-3);
}
/* The whole card is the link's target (44px and up), not just the digits. */
.carried .mx a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.mx-name {
  display: block;
  font: 600 var(--step-0, 1rem)/1.25 var(--ui);
  color: var(--ink);
}
.carried-count {
  color: var(--ink-2);
}
.wmx td {
  text-align: center;
  font-family: var(--code);
}
.wmx thead th {
  font-size: 12.5px;
  border-top: 3px solid var(--hue, var(--rule));
}
.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  list-style: none;
}
.related a {
  font-weight: 600;
}

/* ---- Cards ---- */
.med-cards,
.lab-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
/* One rail only: the card's hue along its top. The quote inside keeps its own thin hue rail. The
   card is a column whose foot sits on the bottom edge, so every foot in a row lines up. */
.pg-med-card,
.lab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: var(--r-sm, 12px);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--hue, var(--rule));
  background: var(--paper);
  box-shadow: var(--elev-1, 0 1px 2px rgb(11 27 58 / 0.05), 0 10px 28px -18px rgb(11 27 58 / 0.22));
}
.pg-med-card > .pg-q,
.lab-card > .pg-q:last-of-type {
  margin-bottom: 18px;
}
.pg-med-card > .pg-q blockquote,
.lab-card > .pg-q blockquote {
  font-size: var(--step-0, 1rem);
  line-height: 1.55;
}
.lab-card > .bw-chip {
  align-self: flex-start;
  margin-top: auto;
}
body:not([data-template="home"]) #main .pg-med-card h2,
body:not([data-template="home"]) #main .lab-card h2,
body:not([data-template="home"]) #main .lab-card h3 {
  margin: 4px 0 10px;
  font-size: 1.35rem;
}
.pg-med-card h2 a,
.lab-card h2 a,
.lab-card h3 a {
  color: var(--ink-1) !important;
  text-decoration: none;
}
.med-card-ing,
.lab-card-sub {
  margin: 0;
  font: 500 12px/1.3 var(--code);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
/* The foot sits on the card's bottom edge in every card of a row: the boxed-warning chip, then the
   passage count in mono on one baseline. */
.pg-med-card > .med-card-foot {
  display: block;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font: 400 var(--step--2, 0.75rem)/1.4 var(--code);
  color: var(--ink-3);
}
.med-card-foot .bw-chip {
  margin: 0 10px 0 0;
  vertical-align: baseline;
}
.med-card-foot [data-count] {
  color: var(--ink);
}
.grid-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
  margin-top: 40px;
}
.grid-group {
  min-width: 0;
}
/* A column's heading, with its running count set in mono at the right (from data-n: layout only). */
body:not([data-template="home"]) #main .grid-group > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  max-width: none;
  margin: 0;
  font-size: var(--step-2, clamp(1.25rem, 1.16rem + 0.38vw, 1.5rem));
}
.grid-group > h2[data-n]::after,
.grid-sub[data-n]::after {
  content: attr(data-n);
  font: 400 var(--step--2, 0.75rem)/1 var(--code);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.grid-group .link-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 12px;
  padding: 0;
}

/* ---- Ask bars ---- */
.page-ask {
  flex-wrap: wrap;
  margin-top: 40px !important;
  padding: 18px clamp(16px, 3vw, 32px) !important;
  border-radius: 18px;
  background: linear-gradient(160deg, #0b1230, #04060f);
  color: #eef2fb;
}
.page-ask label {
  flex-basis: 100%;
  font-weight: 700;
}
.page-ask input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgb(214 224 255 / 0.22);
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
}
.page-ask button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0a1426;
  font-weight: 700;
  cursor: pointer;
}
.pg-chips,
.page-qs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
/* Suggested questions close a page, set as a band just above the ask bar. */
.ask-chips {
  margin-top: 48px;
}
.ask-chips > .page-qs {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.cmp-with h2 {
  font-size: 1.1rem !important;
}
.cmp-with .pg-chip::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--hue);
}

/* ---- Program ---- */
.pg-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.pg-steps li {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  counter-increment: step;
}
.pg-steps li::before {
  content: "0" counter(step);
  font: 500 12px/1 var(--code);
  letter-spacing: 0.1em;
  color: var(--navy);
}
.price-line {
  font-family: var(--voice);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--navy);
}
.from {
  font-size: 13.5px;
  color: var(--ink-3);
}
.offered {
  padding: 0;
  list-style: none;
}
.pg-faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.pg-faq summary {
  font-weight: 700;
  cursor: pointer;
}
.more-row {
  margin-top: 26px;
}
.more-row .btn.solid {
  background: var(--navy);
  color: var(--navy-ink);
}
.more-row .btn.quiet {
  border-color: var(--rule);
}

/* ---- Instructions for Use, Gema, utility ---- */
.ifu-steps {
  counter-reset: ifu;
  padding: 0;
  list-style: none;
}
.ifu-step {
  counter-increment: ifu;
  position: relative;
  padding-left: 48px;
}
.ifu-step::before {
  content: counter(ifu);
  position: absolute;
  left: 0;
  top: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--navy-ink);
  font-weight: 700;
}
/* A real sequence, so its numbering is earned: each step led by its number in mono, inside the
   column (never hung in the gutter, where a phone clips it), on a hairline. */
.layers-list {
  display: grid;
  gap: 0;
  max-width: var(--measure, 62ch);
  padding: 0;
  list-style: none;
  counter-reset: s;
  font-size: var(--step-1, 1.125rem);
}
.layers-list > li:first-child {
  border-top: 1px solid var(--rule);
}
.layers-list > li {
  position: relative;
  counter-increment: s;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--rule);
}
.layers-list > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(14px + 0.4em);
  font: 400 var(--step--2, 0.75rem)/1 var(--code);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
/* Two figures, each a mono numeral over its word, as the home stats band sets them. */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  font-size: var(--step--1, 0.875rem);
  color: var(--ink-2);
}
.stat-row [data-count] {
  font-weight: 700;
  color: var(--ink-1);
}
.stat-row .stat {
  display: grid;
  gap: 6px;
}
.stat-row .stat [data-count] {
  font: 400 var(--step-mono-xl, clamp(2.25rem, 1.9rem + 1.5vw, 3.25rem))/1 var(--code);
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* The labels in orbit, on the paper itself: an accent halo instead of a dark stage. */
.atlas-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 62vh;
  margin-top: 20px;
  background: radial-gradient(circle closest-side, color-mix(in srgb, var(--accent-lux) 22%, transparent), color-mix(in srgb, var(--accent-lux) 7%, transparent) 55%, transparent);
}
.notices {
  padding-left: 1.1em;
}
.search-page {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.search-page button {
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: var(--navy-ink);
  font-weight: 700;
}

@media (max-width: 860px) {
  .page-head-in,
  .med-head-in {
    grid-template-columns: minmax(0, 1fr);
  }
  /* On a phone the symbol sits above the title, smaller, centred on the screen. Nothing it paints
     reaches past either edge, so the page never scrolls sideways. */
  .page-emblem,
  .med-head-in .centerpiece {
    width: 120px;
    max-width: none;
    order: -1;
    justify-self: center;
    margin: 4px 0 -8px;
  }
  /* A two-form medicine's wrapper is the grid item: the symbol and its form switch, one centred row. */
  .med-head-in > .cp-wrap {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 4px 0 -8px;
  }
  .med-head-in > .cp-wrap > .centerpiece {
    flex: none;
    margin: 0;
  }
  .med-head-in > .cp-wrap > .form-switch {
    margin-top: 0;
  }
  /* minmax(0, ...) keeps a wide printed table from growing the column past the screen: the table
     scrolls inside its own .tscroll and the label text wraps at the viewport. */
  .pg-med-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .on-tab {
    position: static;
    max-height: none;
  }
  .on-tab ul {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }
  .on-tab a {
    padding: 6px 10px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    white-space: nowrap;
  }
  .tbl tbody th {
    min-width: 160px;
  }
}

/* The form switch is laid out from the first paint (no shift when script arrives) and shown only
   once script can make it work. */
.form-switch {
  min-height: 36px;
}
.no-js .form-switch {
  visibility: hidden;
}

/* A comparison on a phone: each row becomes a card (its label as a heading, then one block per
   medicine under that medicine's name and colour rule), so every medicine is on screen and nothing
   scrolls sideways. */
@media (max-width: 600px) {
  .cmp-scroll {
    overflow: visible;
  }
  table.cmp,
  table.cmp thead,
  table.cmp tbody,
  table.cmp tr,
  table.cmp th,
  table.cmp td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  table.cmp thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  table.cmp thead .corner {
    display: none;
  }
  table.cmp thead th {
    flex: 1 1 140px;
    width: auto;
    border-radius: 10px;
  }
  table.cmp tbody tr {
    margin-top: 16px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
  }
  table.cmp tbody th[scope="row"] {
    background: var(--tint);
    color: var(--ink);
    font-weight: 700;
    white-space: normal;
  }
  table.cmp td {
    border-left: 3px solid var(--hue, var(--rule));
    white-space: normal;
    overflow-wrap: anywhere;
  }
  table.cmp td::before {
    content: attr(data-name);
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    color: var(--ink);
  }
}

/* A hub column whose links are grouped (one medicine each) spans the row, its groups side by side. */
/* A column whose links are grouped (one medicine each) spans the page, and each group is one row
   of the index: the medicine's name and count in a 200px column, its links as rows beside it, in
   two columns. No group floats alone in a grid track with empty space beside it. */
.grid-group.wide {
  grid-column: 1 / -1;
}
.grid-group.wide > h2 {
  margin-bottom: 12px !important;
}
.grid-subgroup {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 12px 40px;
  align-items: start;
}
.grid-subgroup + .grid-subgroup {
  margin-top: 36px;
}
.grid-subgroup .link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin-top: 0;
  border-top: 0;
}
.grid-subgroup .link-grid > li:nth-child(-n + 2) {
  border-top: 1px solid var(--rule);
}
.grid-subgroup .link-grid > li:only-child {
  grid-column: 1 / -1;
}
/* The group's name heads its row on the same rule as its first links, in the medicine's hue. */
body:not([data-template="home"]) #main .grid-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 2px solid var(--hue, var(--ink));
  font: 600 var(--step-0, 1rem)/1.3 var(--ui);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
@media (max-width: 760px) {
  .grid-subgroup {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 18px 8px;
  }
  .grid-subgroup .link-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-subgroup .link-grid > li:nth-child(-n + 2) {
    border-top: 0;
  }
  .grid-subgroup + .grid-subgroup {
    margin-top: 28px;
  }
  body:not([data-template="home"]) #main .grid-sub {
    flex-direction: row;
    align-items: center;
    padding-bottom: 4px;
  }
  .grid-sub[data-n]::after {
    margin-left: auto;
  }
}

/* Phone: the compare-by-topic table and the warnings matrix stack as cards, so every quote and
   every section number is on screen with no sideways scroll (the desktop keeps the grid). */
@media (max-width: 600px) {
  .tscroll:has(> table.topic),
  .tscroll:has(> table.wmx) {
    overflow: visible;
    border: 0;
  }
  table.topic,
  table.topic tbody,
  table.topic tr,
  table.topic th,
  table.topic td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  table.topic tr {
    margin-top: 14px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--hue, var(--rule));
    border-radius: 12px;
    overflow: hidden;
  }
  .topic th[scope="row"] {
    width: 100%;
    background: var(--tint);
    border-top: 0;
  }
  table.topic td {
    overflow-wrap: anywhere;
  }
  table.wmx,
  table.wmx tbody,
  table.wmx tr,
  table.wmx th {
    display: block;
    width: 100%;
    min-width: 0;
  }
  table.wmx thead {
    display: none;
  }
  table.wmx tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding: 0 10px 12px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
  }
  table.wmx tbody th[scope="row"] {
    flex: 1 1 100%;
    margin: 0 -10px;
    width: auto;
    min-width: 0;
    white-space: normal;
    background: var(--tint);
    border-top: 0;
    color: var(--ink);
    font-weight: 700;
  }
  table.wmx td {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--hue, var(--rule));
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
  }
  table.wmx td:empty {
    display: none;
  }
  table.wmx td::before {
    content: attr(data-name) " ";
    font-family: var(--ui);
    font-weight: 600;
    color: var(--ink);
  }
}

/* /search?q=...: the results render client side into space held from the first paint. */
.has-q .search-results {
  min-height: 70vh;
}

/* A table caption printed inside a label passage: its own line, marked as the table it names. */
.pg-q blockquote .tcap {
  margin: 0.7em 0 0.4em;
  padding: 6px 10px;
  border-left: 3px solid var(--hue, var(--rule));
  background: var(--tint);
  font: 600 0.86rem/1.45 var(--ui);
  color: var(--ink);
}

/* A run-in subheading the label prints inside a passage ("Weight Reduction in Pediatric Patients
   Aged 12 Years and Older"): set on its own line, words unchanged. */
.pg-q blockquote .lsub {
  margin: 0.9em 0 0.3em;
  font: 650 0.92rem/1.4 var(--ui);
  color: var(--ink);
  letter-spacing: 0.005em;
}
.pg-q blockquote .lsub:first-child {
  margin-top: 0;
}

/* The first column's own heading in a label table ("Week", "Dose per Injection"). */
figure.tbl thead th.corner {
  text-align: left;
}

/* A trial or instructions title led by its medicine's name, in that label's hue. */
.h1-brand {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hue, var(--navy)) 55%, transparent);
  background: color-mix(in srgb, var(--hue, var(--navy)) 10%, var(--paper));
  color: var(--ink);
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
}

/* One motion system for the site and the guide (spec section 7, Track D). Loaded last in the site
   bundle (scripts/build-web.mjs), so these rules settle every transition, press and focus state.
   Rules: only transform and opacity move (box-shadow on hover), nothing hijacks scroll, every
   motion stops under prefers-reduced-motion, and safety content (the Boxed Warning, the ISI tray,
   caveats, any number) renders final on its first frame and never moves. The duration and easing
   tokens come from tokens.css; the fallbacks below keep this sheet working on its own. */

:root {
  --mo-press: var(--dur-press, 90ms);
  --mo-1: var(--dur-1, 160ms);
  --mo-2: var(--dur-2, 240ms);
  --mo-3: var(--dur-3, 420ms);
  --mo-4: var(--dur-4, 640ms);
  --mo-5: var(--dur-5, 760ms);
  --mo-out: var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  --mo-in: var(--ease-in, cubic-bezier(0.55, 0, 0.75, 0.2));
  --mo-move: var(--ease-move, cubic-bezier(0.65, 0, 0.35, 1));
  --mo-rise: var(--rise, 14px);
  /* One focus ring: 2 px of the ground, then 2 px of ink. */
  --mo-ring: var(--focus-ring, 0 0 0 2px var(--paper, #fff), 0 0 0 4px var(--navy, #0b1b3a));
}
.night,
.darkfield,
.theater,
.site-foot,
.terrace-foot,
.mm-feature,
.demo-dialog,
.launch {
  --mo-ring: var(--focus-ring-dark, 0 0 0 2px var(--carbon-1, #0f0d14), 0 0 0 4px var(--lamp, #ffe9c9));
}

/* ---- D1. Every tap is answered: hover, press and loading ---- */
:is(.btn, .chip, .mm-trigger, .mm-chip, .pg-chip, .key, .pr-tab, .form-switch button, .isi-toggle, .cite, .pr-cite,
  .cites button, .ask-go, .icon, .ctl, .go, .layers-btn, .more, .demo-watch, .demo-close, .menu-btn, .pick, .try, .run,
  .screen-more, .pr-more, .chart-btn, .search-x, .mm-sheet-close, .mm-acc-head, .page-ask button, .mm-ask button,
  .isi-chips a, .tabs a) {
  transition:
    scale var(--mo-1) var(--mo-out),
    transform var(--mo-1) var(--mo-out),
    background-color var(--mo-1),
    border-color var(--mo-1),
    box-shadow var(--mo-1),
    color var(--mo-1),
    opacity var(--mo-1);
  -webkit-tap-highlight-color: transparent;
}
/* The press: 0.97, in 90 ms, out at the hover speed. `scale` composes with any transform a control
   already carries, so nothing that is positioned by transform jumps. */
:is(.btn, .chip, .mm-trigger, .mm-chip, .pg-chip, .key, .pr-tab, .form-switch button, .isi-toggle, .cite, .pr-cite,
  .cites button, .ask-go, .icon, .ctl, .go, .layers-btn, .demo-watch, .demo-close, .menu-btn, .pick, .try, .run,
  .screen-more, .pr-more, .chart-btn, .search-x, .mm-sheet-close, .page-ask button, .mm-ask button, .isi-chips a,
  .launch):active:not(:disabled, [aria-disabled="true"]) {
  scale: 0.97;
  transition-duration: var(--mo-press);
}
/* Hover lifts only where there is a pointer that hovers; touch gets the press alone. */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }
}
/* Chips: the edge takes the brand and the label's dot grows from 6 to 8 px. */
.hero .chip:hover,
.med-jump .chip:hover,
.pg-chip:hover {
  border-color: var(--brand, #0b1b3a);
}
:is(.cite, .pr-cite, .cites button, .isi-chips a, .mm-chip)::before {
  transition: scale var(--mo-1) var(--mo-out);
}
:is(.cite, .pr-cite, .cites button, .isi-chips a, .mm-chip):is(:hover, :focus-visible)::before {
  scale: 1.33;
}
.cites button:hover {
  border-color: var(--hue);
}
/* Loading: a control that started work says so until the answer lands. */
:is(.btn, .icon, .ask-go, .go, .run, .page-ask button, .mm-ask button)[aria-busy="true"] {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
:is(.btn, .icon, .ask-go, .go, .run, .page-ask button, .mm-ask button)[aria-busy="true"] > * {
  opacity: 0;
}
:is(.btn, .icon, .ask-go, .go, .run, .page-ask button, .mm-ask button)[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  border-radius: 50%;
  border: 2px solid var(--mo-spin, currentColor);
  border-right-color: transparent;
  animation: mo-spin 700ms linear infinite;
}
.icon[aria-busy="true"] {
  --mo-spin: var(--carbon-0, #0b0a0f);
  opacity: 1;
}
.btn.solid[aria-busy="true"],
.ask-go[aria-busy="true"] {
  --mo-spin: var(--brand-ink, #fff);
}
@keyframes mo-spin {
  to {
    rotate: 1turn;
  }
}

/* ---- D2. Focus: one ring, shown at once, everywhere ---- */
/* The transparent outline keeps a visible ring in Windows high-contrast mode. */
:root :focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: var(--mo-ring);
  transition-property: scale, transform, background-color, border-color, color, opacity;
}
/* Rows that only tinted on focus now carry the ring as well (inset, so a scroller never clips it). */
:root :is(.mm-col a, .search-list a, .coil-list a, .thread):focus-visible {
  box-shadow: inset 0 0 0 2px var(--navy, #0b1b3a);
}
:root .thread:focus-visible {
  box-shadow: inset 0 0 0 2px var(--lamp, #ffe9c9);
}

/* ---- D3. Indicators: the current tab's rule draws out from its centre ---- */
.js .tabs a {
  position: relative;
}
.js .tabs a[aria-current="page"] {
  border-bottom-color: transparent;
}
.js .tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--hue, var(--navy, #0b1b3a));
  animation: mo-draw var(--mo-2) var(--mo-move) both;
}
@keyframes mo-draw {
  from {
    transform: scaleX(0);
  }
}

/* ---- D4. Mega menus: the panel settles, its columns follow ---- */
.mm-panel.enter {
  animation: mo-drop var(--mo-2) var(--mo-out) both;
}
.mm-panel.enter :is(.mm-col, .mm-feature) {
  animation: mo-rise var(--mo-3) var(--mo-out) both;
}
.mm-panel.enter .mm-col:nth-child(1) {
  animation-delay: 40ms;
}
.mm-panel.enter .mm-col:nth-child(2) {
  animation-delay: 80ms;
}
.mm-panel.enter .mm-col:nth-child(3) {
  animation-delay: 120ms;
}
.mm-panel.enter .mm-feature {
  animation-delay: 160ms;
}
/* Moving from one open menu to the next: no second entrance, the columns cross-fade. */
.mm-panel.swap,
.mm-panel.swap :is(.mm-col, .mm-feature) {
  animation: mo-fade 120ms linear both;
}
.mm-panel.leave {
  animation: mo-fade 160ms var(--mo-in) reverse both;
  pointer-events: none;
}
body::after {
  transition: opacity var(--mo-2) var(--mo-out);
}
@keyframes mo-drop {
  from {
    opacity: 0;
    translate: 0 calc(var(--mo-rise) * -0.5);
  }
}
@keyframes mo-rise {
  from {
    opacity: 0;
    translate: 0 var(--mo-rise);
  }
}
@keyframes mo-fade {
  from {
    opacity: 0;
  }
}
.mm-sheet[open] {
  animation: mo-rise var(--mo-3) var(--mo-out) both;
}

/* ---- Search dialog ---- */
.search-dialog[open] {
  animation: mo-drop var(--mo-2) var(--mo-out) both;
}
.search-dialog[open]::backdrop {
  animation: mo-fade var(--mo-2) linear both;
}
.search-list li {
  animation: mo-fade var(--mo-1) linear both;
}

/* ---- D5. ISI tray: the panel opens at once, its text present from the first paint ---- */
.js .isi-body {
  transition: none;
}

/* ---- D7. Arrival: things settle in by the order they reach the screen (motion/index.ts) ---- */
@media (prefers-reduced-motion: no-preference) {
  .anim :is(.reveal, [data-reveal]):not(.in) {
    opacity: 0;
    translate: 0 var(--mo-rise);
  }
  .anim :is(.reveal, [data-reveal]) {
    transition:
      opacity var(--mo-4) var(--mo-out) var(--d, 0ms),
      translate var(--mo-5) var(--mo-out) var(--d, 0ms),
      transform var(--mo-3) var(--mo-out),
      box-shadow var(--mo-1),
      border-color var(--mo-1);
  }
  .anim :is(.reveal, [data-reveal]).no-t {
    transition: none;
  }
  /* Never on safety content or a number: those are on screen as they are. */
  .anim :is(.bw-box, .boxed-band, .isi-tray, .caveat, .site-foot, .stats):is(.reveal, [data-reveal]) {
    opacity: 1;
    translate: none;
  }
  .ring svg {
    animation: ring-spin 60s linear infinite;
  }
  .med-card:hover .ring svg {
    animation-duration: 14s;
  }
  /* A decorative loop off screen holds still (motion/index.ts marks it). */
  .ring[data-off] svg {
    animation-play-state: paused;
  }
}
@keyframes ring-spin {
  to {
    transform: rotateX(72deg) rotate(360deg);
  }
}

/* ---- D8. Page changes: the page fades and rises, the bar and the safety tray hold still ---- */
@view-transition {
  navigation: auto;
}
::view-transition {
  pointer-events: none;
}
::view-transition-group(source) {
  animation-duration: 0.5s;
  animation-timing-function: var(--mo-out);
}
/* The names exist only while the router is changing pages (router.ts sets html.vt-route), so a
   citation's flight never takes the page with it. */
.vt-route #main {
  view-transition-name: page;
}
.vt-route .site-head {
  view-transition-name: site-head;
}
.vt-route #isi {
  view-transition-name: isi;
}
::view-transition-group(site-head),
::view-transition-group(isi) {
  animation: none;
  z-index: 100;
}
::view-transition-old(site-head),
::view-transition-old(isi) {
  display: none;
}
::view-transition-new(site-head),
::view-transition-new(isi) {
  animation: none;
}
::view-transition-group(page) {
  animation: none;
}
::view-transition-old(page) {
  animation: mo-out 160ms var(--mo-in) both;
}
::view-transition-new(page) {
  animation: mo-in 320ms var(--mo-out) 80ms both;
}
@keyframes mo-out {
  to {
    opacity: 0;
  }
}
@keyframes mo-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* ---- D10. Performance guards and reserved space ---- */
/* Late answers never push the page: the proof's answer area holds its tallest reply. */
.orbit-key {
  min-height: 90px;
}
.proof-out {
  min-height: 336px;
}
@media (max-width: 600px) {
  .proof-out {
    min-height: 420px;
  }
}
/* Blurred glass is for wide screens: on a phone the same surfaces are near-opaque and unblurred. */
@media (max-width: 1019px) {
  .launch,
  .talk,
  .ctl,
  .caption,
  .sheet,
  .sheet::backdrop,
  .anatomy::backdrop,
  .demo-dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .talk {
    background: color-mix(in srgb, var(--carbon-1, #0f0d14) 90%, transparent);
  }
  .sheet {
    background: color-mix(in srgb, var(--carbon-1, #0f0d14) 97%, transparent);
  }
}

/* ---- Reduced motion: nothing travels, scales or blurs ---- */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  :active,
  :active::before,
  :hover::before,
  :focus-visible::before {
    scale: none !important;
  }
  :is(.btn, .chip, .mm-chip, .pg-chip, .key, .pr-tab, .form-switch button, .isi-toggle, .icon, .ctl, .ask-go):active {
    filter: brightness(0.94);
  }
  .btn:hover {
    transform: none;
  }
  .mm-panel.enter,
  .mm-panel.enter :is(.mm-col, .mm-feature),
  .mm-panel.swap,
  .mm-panel.swap :is(.mm-col, .mm-feature),
  .mm-panel.leave,
  .mm-sheet[open],
  .search-dialog[open],
  .search-dialog[open]::backdrop,
  .search-list li,
  .js .tabs a[aria-current="page"]::after {
    animation: none;
  }
  .specimen i,
  .screen[aria-busy="true"] {
    animation: none;
  }
}

/* ---- All white ----
   Founder direction (2026-11-26): the whole site is white, and dark is used only for type and
   icons. The Darkfield palette in tokens.css is already remapped to white, so every panel built
   from it turns light together. This sheet loads last and catches what paints its own navy or
   near-black: the buttons, the closing band, the footer, the menus' featured card, the video
   dialog, the ask bars and the guide's furniture. The 3D keeps working: the director measures
   each slot's ground and draws in ink on white. */

:root {
  --white-edge: rgb(10 21 48 / 0.12);
  --white-edge-strong: rgb(10 21 48 / 0.3);
  --white-lift: 0 1px 2px rgb(10 21 48 / 0.05), 0 18px 44px -26px rgb(10 21 48 / 0.28);
  /* The ivory logo was for navy grounds; there are none now, so every place draws the navy one. */
  --logo-on-dark: var(--logo-on-light);
}

/* Primary actions: navy type and a navy hairline on white, filled with a breath of the brand on hover. */
.btn.solid,
.head-cta .btn.solid,
.mm-sheet-cta .btn.solid,
.cmp-picker .btn.solid,
.more-row .btn.solid,
.search-page button,
.ask-go,
.skip {
  background: #ffffff;
  color: var(--navy, var(--brand));
  border: 1.5px solid var(--navy, var(--brand));
  box-shadow: var(--white-lift);
}
.btn.solid:hover,
.head-cta .btn.solid:hover,
.mm-sheet-cta .btn.solid:hover,
.cmp-picker .btn.solid:hover,
.more-row .btn.solid:hover,
.search-page button:hover,
.ask-go:hover {
  background: color-mix(in srgb, var(--navy, var(--brand)) 6%, #ffffff);
}
.form-switch button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand) 8%, #ffffff);
  border-color: var(--brand);
  color: var(--brand);
}
.ifu-step::before {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

/* Gema's panel and the glass box: white stages with a soft lift. */
.mira-panel {
  border-color: var(--white-edge);
  background:
    radial-gradient(70% 46% at 50% 26%, rgb(10 21 48 / 0.035), transparent 70%),
    linear-gradient(180deg, #ffffff, #fbfaf7);
  box-shadow: var(--white-lift);
}
.glass {
  background:
    radial-gradient(46% 60% at 78% 46%, rgb(10 21 48 / 0.03), transparent 74%),
    linear-gradient(180deg, #ffffff, #fbfaf7);
  border: 1px solid var(--white-edge);
}
.screen {
  border-color: var(--white-edge);
  background: #ffffff;
  box-shadow: var(--white-lift);
}
.screen[aria-busy="true"] {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from var(--beam), transparent 70%, var(--navy, var(--brand)) 85%, transparent) border-box;
}
.proof-run,
.vals span {
  background: rgb(255 255 255 / 0.9);
  color: var(--ink);
}
.tip,
.coil-tip {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--white-edge);
  box-shadow: var(--white-lift);
}
.centerpiece::after {
  background: radial-gradient(closest-side, rgb(10 21 48 / 0.12), transparent);
}
.stair li {
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) calc(10% + var(--k) * 22%), #ffffff), color-mix(in srgb, var(--hue) 4%, #ffffff));
  filter: none;
}
.stair-note,
.terrace-foot,
.coil-stage,
.js .pg-coil:not([data-motion])::before {
  background-color: #fdfcfa;
}
.terrace-foot {
  color-scheme: light;
  border-top-color: var(--white-edge);
}

/* The closing band: white with navy type, the brand only in the words and the hairline. */
.cta {
  color: var(--brand);
  background:
    radial-gradient(44% 80% at 82% 70%, rgb(10 21 48 / 0.04), transparent 70%),
    #ffffff;
  border: 1px solid var(--white-edge);
  box-shadow: var(--white-lift);
}
.cta p {
  color: var(--ink-2, color-mix(in oklab, var(--brand) 72%, #ffffff));
}
.cta .btn.light {
  background: #ffffff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.cta .btn.glassy {
  border-color: var(--white-edge-strong);
  color: var(--brand);
}

/* The footer: white, navy type, one champagne hairline on top. */
.site-foot {
  --foot-ink: var(--brand);
  --foot-ink-2: color-mix(in oklab, var(--brand) 72%, #ffffff);
  --foot-rule: var(--white-edge);
  --focus: var(--brand);
  background: #fdfcfa;
  border-top: 1px solid var(--white-edge);
}
.site-foot :focus-visible {
  outline-color: var(--brand);
}

/* The menus' featured card: white glass, navy type; the scene above it draws in ink. */
.mm-feature {
  background:
    radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--accent-lux) 10%, transparent), transparent 60%),
    linear-gradient(160deg, #ffffff, #f7f5f1);
  color: var(--navy);
  border: 1px solid var(--white-edge);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--accent-lux) 55%, transparent),
    var(--white-lift);
}
.mm-feature a {
  color: var(--navy);
}
.mm-ask input,
.page-ask input {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--white-edge-strong);
}
.mm-ask input::placeholder,
.page-ask input::placeholder {
  color: var(--ink-2, #5d667b);
}
.night .pg-chip {
  border-color: var(--white-edge);
  background: #ffffff;
  color: var(--navy);
}
.mm-sheet::backdrop,
.search-dialog::backdrop {
  background: rgb(10 21 48 / 0.16);
}
.page-ask {
  background: linear-gradient(160deg, #ffffff, #f7f5f1);
  color: var(--navy);
  border: 1px solid var(--white-edge);
  box-shadow: var(--white-lift);
}

/* The video dialog: a white frame around the film. */
.demo-dialog {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--white-edge);
  box-shadow: 0 30px 120px rgb(10 21 48 / 0.22);
}
.demo-dialog::backdrop {
  background: rgb(250 249 246 / 0.82);
}

/* The guide: Gema's own page, white, with her presence kept framed in a soft halo. */
.theater {
  background:
    radial-gradient(70% 60% at 27% 36%, rgb(10 21 48 / 0.04) 0%, transparent 70%),
    #ffffff;
}
@media (max-width: 860px) {
  .theater {
    background:
      radial-gradient(90% 40% at 78% 16%, rgb(10 21 48 / 0.04) 0%, transparent 78%),
      #ffffff;
  }
}
.presence video {
  background: #f6f4f0;
  box-shadow:
    0 0 0 1px var(--white-edge-strong),
    0 0 0 9px rgb(10 21 48 / 0.03),
    0 30px 80px -30px rgb(10 21 48 / 0.35);
}
.caption {
  background: rgb(255 255 255 / 0.92);
  border-color: var(--white-edge);
  box-shadow: var(--white-lift);
}
.card {
  background: #ffffff;
  border-color: var(--white-edge);
  box-shadow: var(--white-lift);
}
.card.caution {
  background: color-mix(in srgb, var(--amber) 6%, #ffffff);
}
.card.boxed {
  background: color-mix(in srgb, var(--rose) 6%, #ffffff);
}
.stairs li {
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) calc(12% + 22% * var(--rise)), #ffffff), color-mix(in srgb, var(--hue) 5%, #ffffff));
}
.stairs li:last-child::after {
  background: color-mix(in srgb, var(--hue) 22%, #ffffff);
}
:root[data-embed],
:root[data-embed] body {
  background: #ffffff;
}
.launch-face {
  background:
    var(--face) center / cover no-repeat,
    radial-gradient(circle at 50% 50%, #ffffff 0%, #eeebe5 70%, #f6f4f0 100%);
}
.night :focus-visible {
  outline-color: var(--navy);
}
.mm-bw {
  background: rgb(180 110 20 / 0.1);
  color: #8a4b00 !important;
}
.theater *,
.mira-panel * {
  scrollbar-color: rgb(10 21 48 / 0.22) transparent;
}

/* The menus' featured card, line by line: ink tones in place of the old pale-on-navy greys. */
.mm-note,
.mm-card-meta {
  color: var(--on-dark-3);
}
.mm-card {
  border-color: var(--white-edge);
  background: #ffffff;
}
.mm-ask button {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

/* Controls that were lit by the lamp: a pale wash and a navy hairline, never a dark fill. */
.run,
.try[aria-pressed="true"],
.chart-btn[aria-pressed="true"],
.darkfield .form-switch button[aria-pressed="true"] {
  background: #ffffff;
  border: 1.5px solid var(--navy, var(--brand));
  color: var(--navy, var(--brand));
}
.pr-tab[aria-pressed="true"] {
  background: color-mix(in srgb, var(--navy, var(--brand)) 5%, #ffffff);
  border-color: var(--navy, var(--brand));
}

/* The floating launcher: a white pill, her face, navy type. */
.launch {
  background: rgb(255 255 255 / 0.96);
  border-color: var(--white-edge);
  color: var(--ink);
  box-shadow: var(--white-lift);
}
.launch:hover {
  border-color: var(--navy, var(--brand));
}
.launch-face::after {
  border-color: #ffffff;
}

/* The glass box: its layers are frosted white panes with navy edges; the one that answered is
   picked out in the brand, still with ink type, so the 3D stack reads on paper. */
.plane {
  border-color: var(--white-edge-strong);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.94), rgb(240 238 233 / 0.94));
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.6) inset,
    0 18px 40px -22px rgb(10 21 48 / 0.35);
  color: var(--ink);
}
.plane.on:not([data-s="hit"]) {
  background: linear-gradient(135deg, #ffffff, #f4f2ee);
  border-color: var(--navy, var(--brand));
}
.plane[data-s="hit"] {
  background: color-mix(in srgb, var(--navy, var(--brand)) 9%, #ffffff);
  border-color: var(--navy, var(--brand));
  color: var(--navy, var(--brand));
}
.plane[data-s="hit"] span {
  color: var(--on-dark-2);
}
.stack[data-route="urgent"] .plane[data-s="hit"] {
  background: color-mix(in srgb, var(--rose) 14%, #ffffff);
  color: var(--ink);
}

/* The 3D bars keep their depth with a soft slate shade on the side faces instead of black. */
.blk.drug {
  --face-front: color-mix(in srgb, var(--fill) 82%, #5a6378);
  --face-side: color-mix(in srgb, var(--fill) 68%, #5a6378);
  --face-dark: color-mix(in srgb, var(--fill) 55%, #5a6378);
}

/* The guide's furniture: the dock, the composer, the sheets and the anatomy view, all white. */
.dock {
  background: rgb(255 255 255 / 0.9);
  border-top-color: var(--white-edge);
}
.composer {
  background: #ffffff;
  border-color: var(--white-edge-strong);
  box-shadow: var(--white-lift);
}
.lead input[type="tel"],
.copy-fallback {
  background: #ffffff;
  color: var(--ink);
}
.sheet,
.anatomy {
  background: rgb(255 255 255 / 0.97);
  color: var(--ink);
  border-color: var(--white-edge);
  box-shadow: 0 40px 140px rgb(10 21 48 / 0.22);
}
.sheet::backdrop,
.anatomy::backdrop {
  background: rgb(250 249 246 / 0.6);
}
.orb {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0%, rgb(255 250 242 / 0.9) 18%, transparent 48%),
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.8), transparent 24%),
    radial-gradient(circle at 50% 50%, rgb(238 235 229 / 0.7), rgb(220 224 233 / 0.6) 70%);
  box-shadow:
    inset 0 0 0 1px var(--white-edge-strong),
    inset 0 0 44px rgb(10 21 48 / 0.06),
    0 30px 80px -30px rgb(10 21 48 / 0.3);
}

/* The guide's own buttons: the tour, the layers button and send, outlined in navy on white. */
.ctl.primary,
.layers-btn:hover,
.go,
.icon,
.btn.light {
  background: #ffffff;
  box-shadow: var(--white-lift);
  border: 1.5px solid var(--navy, var(--lamp));
  color: var(--navy, var(--lamp));
}
.ctl.primary:hover,
.go:hover:not(:disabled),
.icon:hover:not(:disabled),
.btn.light:hover {
  background: color-mix(in srgb, var(--navy, var(--lamp)) 6%, #ffffff);
}

/* ---- Audit fixes (2026-11-26) ---- */
/* Footer column titles: navy ink, not champagne, so they read on white (they measured far under
   the 4.5 contrast minimum). The champagne stays on the hairline above the footer. */
.site-foot h3,
.site-foot .foot-h {
  color: var(--foot-ink-2);
}
/* Page not found: the hubs as a row of quiet links. */
.search-page + .more-row {
  margin-top: 18px;
}
.nf-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.nf-hubs a {
  font-weight: 600;
  color: var(--navy);
}

/* ---- The start page: the brand's own form ---- */
.start-grid {
  width: min(var(--wide, 1180px), 100%);
  margin: 8px auto 0;
  padding: 0 var(--gut) 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.start-card {
  padding: clamp(20px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid var(--white-edge);
  background: #ffffff;
  box-shadow: var(--white-lift);
}
.start-form {
  display: grid;
  gap: 18px;
}
.start-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.start-row {
  display: grid;
  gap: 6px;
}
.start-row label,
.start-set legend {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.start-opt {
  font-weight: 400;
  color: var(--ink-2, #5d667b);
}
.start-row input {
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--white-edge-strong);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}
.start-row input:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.start-row input[aria-invalid="true"],
.start-consent input[aria-invalid="true"] {
  border-color: #b3261e;
  outline: 2px solid #b3261e;
  outline-offset: 1px;
}
.start-set {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}
.start-set legend {
  padding: 0;
  margin-bottom: 4px;
}
.start-inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.start-inline legend {
  grid-column: 1 / -1;
}
.start-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--white-edge);
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.start-pick:hover {
  border-color: var(--white-edge-strong);
}
.start-pick:has(input:checked) {
  border-color: var(--navy);
  background: color-mix(in srgb, var(--navy) 4%, #ffffff);
}
.start-pick input,
.start-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}
.start-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2, #3b4661);
}
.start-consent input {
  margin-top: 3px;
}
.start-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.start-msg {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fdf1f0;
  color: #8c1d18;
  font-size: 0.92rem;
}
.start-send {
  min-width: 220px;
  min-height: 52px;
  font-size: 1rem;
  cursor: pointer;
}
.start-send:disabled {
  opacity: 0.6;
  cursor: progress;
}
.start-done h2 {
  margin: 0 0 8px;
  font-family: var(--voice);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.start-done:focus {
  outline: none;
}
.start-side {
  padding-top: 8px;
}
#main .start-side h2 {
  margin: 0 0 14px;
  font-family: var(--code);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2, #3b4661);
}
.start-side ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 16px;
}
.start-side li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  color: var(--ink);
  line-height: 1.5;
}
.start-side li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
}
@media (max-width: 860px) {
  .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .start-two,
  .start-inline {
    grid-template-columns: minmax(0, 1fr);
  }
  .start-send {
    width: 100%;
  }
}

/* The guide's message field: the pill around it shows focus, so the field itself draws no second ring. */
.composer textarea:focus-visible,
.composer input:focus-visible {
  outline: none;
  box-shadow: none;
}
.composer:focus-within {
  border-color: var(--navy, var(--lamp));
  box-shadow: 0 0 0 3px rgb(10 21 48 / 0.1);
}

/* The menu card's Talk to Gema button: the same outlined navy as every other primary button (it
   kept a navy fill under navy type, which nobody could read). */
.mm-feature .btn.solid {
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: var(--white-lift);
}
.mm-feature .btn.solid:hover {
  background: color-mix(in srgb, var(--navy) 6%, #ffffff);
  color: var(--navy);
}

/* A hub's drawn mark gives way to its real 3D object once the canvas is live in that slot. */
.scene-live > .pg-mark {
  opacity: 0;
  visibility: hidden;
}

/* The recorded demo plays on studio white, so its frame is white too, and the button that appears
   when it ends sits centred under the fine print. */
.demo-frame {
  background: #ffffff;
}
.demo-cta {
  display: flex;
  width: fit-content;
  margin: 14px auto 2px;
}
.demo-cta[hidden] {
  display: none;
}

/* The consumer "find care near me" form (/match): a ZIP row and a phone row each carry their own
   button beside the field, and the consent wording sits in a quiet panel under its checkbox. */
.match-zip,
.match-phone {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
.match-found {
  margin: 8px 0 4px;
}
.match-terms {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgb(var(--lamp-rgb) / 0.14);
  border-radius: 10px;
  background: #f6f5f1;
  font-size: 0.86rem;
  line-height: 1.5;
}
.match-note {
  margin: 6px 0;
  font-size: 0.9rem;
}
.match-auth h2 {
  font-size: 1.05rem;
  margin: 16px 0 6px;
}
@media (max-width: 560px) {
  .match-zip,
  .match-phone {
    grid-template-columns: 1fr;
  }
}
