:root {
  --storefront-section-inset: clamp(20px, 2.5vw, 36px);
}
#care.journey-section {
  padding-bottom: var(--storefront-section-inset);
}
#care-benefits,
#questions.questions {
  padding-block: var(--storefront-section-inset);
}
#care-benefits .benefits-heading {
  margin-bottom: clamp(16px, 1.5vw, 24px);
}
.film-content h1 {
  font-size: clamp(58px, 7.1vw, 110px);
  letter-spacing: -0.055em;
  line-height: 0.96;
}
.film-content > p {
  max-width: 39ch;
}
.film-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.film-actions .journey-secondary,
.medicine-entry {
  color: white;
}
.journey-secondary {
  border: 1px solid #fff9;
  border-radius: 99px;
  padding: 14px 24px;
  text-decoration: none;
  background: #16201e66;
  font-weight: 650;
}
.medicine-entry {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.92rem;
  text-underline-offset: 4px;
}
.header .account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding-inline: 18px;
  background: color-mix(in srgb, currentColor 7%, white);
  text-decoration: none;
}
.header .account:hover,
.header .account:focus-visible {
  background: color-mix(in srgb, currentColor 14%, white);
}
.support-menu {
  position: relative;
}
.support-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}
.support-menu summary::-webkit-details-marker {
  display: none;
}
.support-menu .icon {
  width: 21px;
  height: 21px;
}
.support-menu > div {
  position: absolute;
  inset: 100% 0 auto auto;
  z-index: 2;
  width: max-content;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}
.support-menu a {
  display: block;
  padding: 12px;
}
@media (max-width: 760px) {
  .support-menu {
    display: none;
  }
}
.panel-studio,
.studio-dialog {
  --paper: #f5f3ea;
  --line: #bccbc0;
  color: var(--ink);
  font-family: inherit;
}
.panel-studio {
  position: relative;
  background: var(--paper);
  padding: clamp(42px, 7vw, 104px) max(5%, calc((100vw - 1250px) / 2));
  scroll-margin-top: 20px;
}
.studio-intro {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  align-items: center;
  gap: 8%;
  margin-bottom: 36px;
}
.studio-intro h2 {
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.01;
  letter-spacing: -0.055em;
  font-weight: 550;
  max-width: 12em;
  margin: 0 0 16px;
}
.studio-intro h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.studio-intro p,
.studio-dialog p {
  line-height: 1.55;
  max-width: 55ch;
}
.result-card {
  background: #e1ebe1;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
}
.result-card span,
.price-note,
.panel-summary span,
.studio-bar,
.match-kind {
  font-size: 0.8rem;
}
.result-card strong {
  font-size: 1rem;
}
.result-card b {
  font-size: 2.6rem;
  line-height: 1;
}
.result-card small {
  font-size: 1rem;
}
.panel-toolbar,
.panel-summary,
.studio-bar,
.handoff-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.panel-toolbar {
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.panel-toolbar [role='group'] {
  display: flex;
  gap: 3px;
  background: #e7e9df;
  border-radius: 30px;
  padding: 3px;
}
.panel-toolbar button,
.studio-dialog button,
.panel-detail button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}
.panel-toolbar [data-family] {
  padding: 5px 15px;
  border-radius: 25px;
}
.panel-toolbar [aria-pressed='true'],
.studio-dialog .action,
.panel-detail .action {
  background: var(--ink);
  color: white;
}
.text-action,
.studio-dialog button:not(.action),
.panel-detail button:not(.action) {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.panel-studio details {
  border-bottom: 1px solid var(--line);
}
.panel-summary {
  cursor: pointer;
  min-height: 55px;
  padding: 9px 1px;
  list-style: none;
}
.panel-summary::-webkit-details-marker {
  display: none;
}
.panel-summary::after {
  content: '+';
  font-size: 1.2rem;
  width: 16px;
  text-align: center;
}
.panel-studio details[open] .panel-summary::after {
  content: '−';
}
.panel-summary strong {
  flex: 1;
}
.panel-summary span {
  margin-right: auto;
}
.panel-summary b {
  font-variant-numeric: tabular-nums;
}
.panel-detail {
  padding: 0 0 18px;
  max-width: 72ch;
}
.panel-detail p {
  margin: 3px 0 8px;
}
.panel-detail button,
.studio-dialog .action {
  border-radius: 99px;
  padding: 7px 14px;
}
.price-note {
  margin-top: 16px;
  line-height: 1.5;
}
.studio-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: 88dvh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 18px 68px #1234;
  overscroll-behavior: contain;
}
.studio-dialog::backdrop {
  background: #102923bb;
}
.studio-bar {
  padding: 8px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
#studio-body {
  padding: 18px 22px 26px;
}
#studio-body h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.studio-dialog label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.studio-dialog input,
.studio-dialog select {
  font: inherit;
  color: var(--ink);
  width: 100%;
  border: 1px solid #809b8e;
  border-radius: 7px;
  padding: 10px;
  background: white;
}
.search-row {
  display: flex;
  gap: 8px;
}
.search-results {
  padding: 0;
  list-style: none;
  margin: 10px 0;
}
.search-results li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.search-results strong,
.search-results small {
  display: block;
}
.search-results small {
  line-height: 1.5;
}
.handoff-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}
.report-fields {
  margin: 16px 0;
}
.report-fields div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.report-fields dd {
  font-weight: 650;
  text-align: right;
  margin: 0;
}
.panel-studio :focus-visible,
.studio-dialog :focus-visible,
.film-content :focus-visible {
  outline: 3px solid var(--focus-ink, #a16a24);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .film-content h1 {
    font-size: clamp(47px, 9.7vw, 73px);
  }
  .film-content {
    padding-top: clamp(160px, 31vh, 270px);
    padding-bottom: 28px;
  }
  .film-content > p {
    max-width: 36ch;
  }
  .film-actions {
    gap: 8px;
  }
  .film-actions .button,
  .journey-secondary {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  .studio-intro {
    display: block;
    margin-bottom: 20px;
  }
  .result-card {
    margin-top: 16px;
    width: 100%;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    padding: 13px 15px;
  }
  .result-card span:first-child {
    grid-column: 1/-1;
  }
  .result-card b {
    font-size: 1.5rem;
  }
  .result-card span:last-child {
    grid-column: 1/-1;
  }
  .panel-studio {
    padding: 32px 16px;
  }
  .panel-summary {
    min-height: 48px;
  }
  .panel-summary span {
    font-size: 0.72rem;
  }
  .panel-toolbar [data-family] {
    padding: 3px 10px;
  }
}
.panel-summary strong small {
  display: block;
  font-size: 0.76rem;
  line-height: 1.4;
  font-weight: 450;
  letter-spacing: normal;
}
.discovery-choices {
  display: grid;
  gap: 8px;
}
.studio-dialog .discovery-choices button {
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  text-decoration: none;
  padding: 8px 12px;
}
.studio-dialog .discovery-choices [aria-pressed='true'] {
  background: #e1ebe1;
}
@media (max-width: 460px) {
  .panel-summary {
    padding: 8px 0;
  }
  .studio-intro {
    margin-bottom: 12px;
  }
}

/* Medicine catalog photography: category palette, one camera height and a common contact plane. */
#options .catalog-rail {
  align-items: flex-start;
  gap: clamp(14px, 1.7vw, 26px);
  padding-bottom: 8px;
}
#options .catalog-card {
  --studio-top: #dfdbcc;
  --studio-wall: #b2ad9b;
  --studio-base: #d7d0bf;
  --studio-edge: #a69d87;
  flex: 0 0 calc((100% - 3 * clamp(14px, 1.7vw, 26px)) / 4);
  min-width: 0;
}
#options .catalog-product {
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
#options .catalog-picture.catalog-studio {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: auto;
  aspect-ratio: 1/0.99;
  overflow: hidden;
  border: 1px solid #16261d0d;
  border-radius: 8px;
  background: linear-gradient(125deg, var(--studio-top) 4%, var(--studio-wall) 91%);
}
#options .catalog-studio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(124deg, transparent 34%, #fff4 46%, #fff2 60%, transparent 69%);
  pointer-events: none;
}
#options .studio-floor {
  position: absolute;
  bottom: 0;
  left: -1%;
  width: 102%;
  height: 18%;
  background: linear-gradient(168deg, var(--studio-base), var(--studio-edge));
  clip-path: polygon(0 29%, 100% 0, 100% 100%, 0 100%);
}
#options .catalog-picture::after {
  content: '';
  position: absolute;
  left: 38%;
  bottom: 14%;
  width: 43%;
  height: 4%;
  border-radius: 50%;
  background: #2630254a;
  filter: blur(5px);
  transform: rotate(-6deg);
  z-index: 0;
}
#options .catalog-picture.catalog-studio img {
  position: absolute;
  inset: auto 7% 11%;
  width: 86%;
  height: 76%;
  padding: 0;
  object-fit: contain;
  object-position: center bottom;
  z-index: 1;
  animation: none;
  transform: none;
  filter: drop-shadow(3px 4px 2px #26332220);
  transition: transform 0.22s ease;
}
#options .studio-category {
  position: absolute;
  top: 14px;
  left: 15px;
  color: #233630;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  line-height: 1;
}
#options .catalog-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 0 3px;
}
#options .catalog-name {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
#options .catalog-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #b9c2bb;
  color: #263e35;
  font-size: 18px;
}
#options .catalog-caption {
  text-align: left;
  padding: 0 0 4px;
  color: #30483e;
}
#options .catalog-form {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: #495950;
}
#options .catalog-purpose {
  margin: 9px 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: #263c34;
}
#options .catalog-caution {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}
#options .catalog-product:focus-visible {
  outline: 3px solid var(--focus-ink, #335e49);
  outline-offset: 3px;
  border-radius: 8px;
}
#options .catalog-product:hover .catalog-arrow {
  background: var(--hover-fill, #213d33);
  color: white;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #options .catalog-product:hover .catalog-studio img {
    transform: scale(1.035);
  }
}
@media (max-width: 1050px) {
  #options .catalog-card {
    flex-basis: calc((100% - 36px) / 2.9);
  }
}
@media (max-width: 650px) {
  #options .catalog-card {
    flex-basis: min(76%, 330px);
  }
  #options .catalog-picture.catalog-studio {
    aspect-ratio: 1.12;
  }
  #options .studio-category {
    top: 12px;
    left: 13px;
    font-size: 10px;
  }
}
#options .studio-floor {
  display: none;
}
#options .catalog-studio::before {
  inset: 0;
  background: url('assets/catalog-studio-set.webp') center/100% 100% no-repeat;
  filter: grayscale(1);
  mix-blend-mode: luminosity;
  opacity: 0.82;
}
#options .catalog-picture.catalog-studio img {
  bottom: 5%;
  height: 83%;
}
#options .catalog-picture::after {
  bottom: 9%;
  height: 2.3%;
  left: 38%;
  width: 39%;
  filter: blur(3px);
}
#options .catalog-entry-title {
  margin: 0;
  font: inherit;
}
#options .catalog-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
#options .catalog-reference {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #bbcbbd;
  border-radius: 99px;
  background: #edf2eb;
  color: #2f4c38;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
#options .catalog-reference:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
#options .catalog-reference:focus-visible {
  outline: 2px solid var(--focus-ink, #335e49);
  outline-offset: 2px;
}

#brand-dialog select {
  width: 100%;
  min-height: 44px;
  display: block;
  margin-top: 7px;
  padding: 9px 12px;
  border: 1px solid #82948b;
  border-radius: 7px;
  background: white;
  color: #192f39;
  font: inherit;
}
#brand-dialog select:disabled {
  opacity: 0.55;
}
#brand-dialog #brand-reset {
  min-height: 44px;
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}
.film-hero .film-actions .button,
.discovery-bridge .conversion-actions .button,
.closing .button.accent {
  background: var(--accent);
  color: var(--on-accent, #192f39);
}
.header .brand {
  color: var(--text);
}
.care-scroll.care-scroll-ready .flow-copy .button,
.panel-studio .action,
#profile-save {
  background: var(--ink);
  color: var(--on-ink, #fff);
}
.film-actions a.button {
  text-decoration: none;
}
#brand-dialog .profile-goals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 4px 12px;
}
#brand-dialog .profile-goals label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 44px;
  font-weight: 500;
}
#brand-dialog .profile-goals input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ink);
}
.film-content h1 em {
  color: var(--accent);
}
body.custom-primary .film-actions .button {
  background: var(--ink);
  color: var(--on-ink);
}
/* Product offer and comparison share the active licensee's theme. */
#labs.panel-studio {
  color: var(--text, #21392f);
  padding: var(--storefront-section-inset) max(5%, calc((100vw - 1250px) / 2));
  background: #faf9f5;
}
#labs .lab-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 82px);
  align-items: center;
}
#labs .lab-marker-preview {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e8ece2;
  padding: clamp(14px, 2vw, 30px);
}
#labs .lab-result {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 1.2vw, 18px);
}
#labs .lab-result header {
  min-height: 24px;
}
#labs .lab-result h3 {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: normal;
  margin: 0;
}
#labs .lab-result .result-value {
  font-size: clamp(28px, 2.6vw, 38px);
  margin: 6px 0 10px;
}
@media (min-width: 721px) {
  #labs .lab-product:has(#lab-offer button.lab-select) .lab-marker-preview {
    contain: size;
    align-self: stretch;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
  }
  #labs .lab-results {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  #labs .lab-result-track {
    height: 100%;
  }
}
#labs .lab-result-rail:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#labs .lab-product-name {
  font-size: 0.98rem;
  font-weight: 650;
  margin: 0 0 12px;
}
#labs .lab-product h2 {
  font-size: clamp(44px, 5.3vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 550;
  margin: 0;
  max-width: 13ch;
}
#labs .lab-product h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
#labs .lab-pitch {
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 47ch;
}
#labs .lab-price {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 12px;
  font-size: 0.9rem;
}
#labs .lab-price strong {
  font-size: 2.1rem;
  letter-spacing: -0.05em;
  line-height: 1;
}
#lab-offer .lab-price {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#lab-offer .lab-price span {
  border-inline-start: 1px solid currentColor;
  padding-inline-start: 12px;
}
#labs .lab-select {
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--on-ink, #fff);
  background: var(--ink, #223b32);
  border: 0;
  border-radius: 30px;
  min-height: 44px;
  padding: 10px 22px;
  cursor: pointer;
}
#labs .text-action {
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 2px 0;
}
#labs .lab-shopping {
  margin-top: var(--storefront-section-inset);
  scroll-margin-top: 28px;
}
#labs h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}
#labs .panel-toolbar {
  justify-content: flex-start;
  border: 0;
  padding: 0;
  margin-bottom: 18px;
}
@media (max-width: 460px) {
  #labs .panel-toolbar button {
    padding-inline: 7px;
    font-size: 0.8125rem;
  }
}
#labs #panel-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  padding: 3px 3px 8px;
}
#labs #panel-list .lab-card {
  flex: 1 0 min(224px, 84%);
  scroll-snap-align: start;
  padding: clamp(16px, 1.3vw, 20px);
}
#labs .lab-rail-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
#labs .lab-rail-nav[hidden] {
  display: none;
}
#labs .lab-rail-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #bac6bd;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
#labs .lab-rail-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}
#labs .lab-rail-nav svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 700px) {
  #labs #panel-list .lab-card {
    flex-basis: min(84%, 300px);
  }
}
#labs .lab-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ced4c8;
  border-radius: 12px;
  padding: clamp(18px, 2.1vw, 28px);
  color: inherit;
  min-width: 0;
}
#labs .lab-card header {
  display: grid;
  justify-items: start;
  gap: 6px;
}
#labs .lab-card h4 {
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  line-height: 1.24;
  font-weight: 650;
  margin: 0;
}
#labs .lab-card-price {
  font-size: 1.3rem;
  white-space: nowrap;
}
#labs .lab-card-purpose {
  margin: 12px 0 6px;
  font-weight: 600;
  line-height: 1.35;
}
#labs .lab-card ul {
  list-style: none;
  padding-left: 0;
  margin: 5px 0 20px;
  font-size: 0.9rem;
  line-height: 1.55;
}
#labs .lab-card li {
  display: grid;
  grid-template-columns: 0.85rem minmax(0, 1fr);
  gap: 0.4rem;
}
#labs .lab-card li + li {
  margin-top: 0.35rem;
}
#labs .lab-card li::before {
  content: '';
  width: 0.33em;
  height: 0.65em;
  margin: 0.3em 0 0 0.15em;
  border: solid currentColor;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
}
#labs .lab-card-actions {
  display: grid;
  justify-items: start;
  align-content: end;
  gap: 2px;
  margin-top: auto;
}
#labs .lab-card-actions .lab-select {
  padding-inline: 16px;
}
#labs .lab-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  margin-top: var(--storefront-section-inset);
  border-radius: 14px;
  background: #efeee6;
  background: color-mix(in srgb, var(--wash, #e2e8de) 46%, #faf9f5);
}
#labs .lab-next-copy {
  padding: clamp(26px, 3.7vw, 54px);
  align-self: center;
}
#labs .lab-next h3 {
  font-size: clamp(36px, 3.9vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 0;
}
#labs .lab-next h3 em {
  font-family: Georgia, serif;
  font-weight: 400;
  white-space: nowrap;
}
#labs .lab-next ol {
  margin: clamp(18px, 2.2vw, 30px) 0 0;
  padding: 0;
  list-style: decimal inside;
}
#labs .lab-next li {
  padding: 13px 0;
  border-top: 1px solid #c8cabe;
}
#labs .lab-next li::marker {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
#labs .lab-next li strong {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-left: 4px;
}
#labs .lab-next li p {
  margin: 4px 0 0;
  padding-left: 1.5rem;
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: 46ch;
}
#labs .lab-visit-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 52% 48%;
}
@media (max-width: 700px) {
  #labs .lab-next {
    grid-template-columns: 1fr;
  }
  #labs .lab-next-copy {
    padding: 24px;
  }
  #labs .lab-visit-photo {
    grid-row: 1;
    height: clamp(145px, 46vw, 240px);
    object-position: 50% 47%;
  }
  #labs .lab-next li {
    padding: 11px 0;
  }
}
@media (max-width: 720px) {
  #labs.panel-studio {
    padding: var(--storefront-section-inset) 5%;
  }
  #labs .lab-product {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #labs .lab-product h2 {
    font-size: clamp(42px, 9.5vw, 60px);
    max-width: 100%;
  }
  #labs .lab-product-name {
    margin-bottom: 6px;
  }
  #labs .lab-pitch {
    margin: 10px 0 0;
  }
  #labs .lab-price {
    margin: 15px 0 10px;
  }
}

.compounding-note-link {
  display: inline-block;
  min-width: 1em;
  text-align: center;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}
#compounding-note a {
  color: inherit;
  text-decoration: underline;
}
#compounding-note:focus-visible,
.compounding-note-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.practice-settings {
  margin: 1rem 0;
  padding: 0.9rem 0;
  border-block: 1px solid currentColor;
}
.practice-settings summary,
#practice-disclosures summary {
  cursor: pointer;
  font-weight: 650;
}
.practice-settings textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 4rem;
  font: inherit;
  padding: 0.6rem;
}
#practice-disclosures {
  overflow-wrap: anywhere;
}
#practice-disclosures dl {
  max-width: 65ch;
  margin: 0.75rem 0;
}
#practice-disclosures dt {
  font-weight: 650;
}
#practice-disclosures dd {
  white-space: pre-line;
  margin: 0 0 0.65rem;
}

#options .catalog-picture.reference-photo img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
#options .reference-photo .studio-category {
  z-index: 3;
  background: #fcfaf3;
  color: #213a32;
  border-radius: 3px;
  padding: 0.25rem 0.45rem;
}
:is(#product-dialog, .treatment-sheet).reference-photo #product-overview-image {
  object-fit: cover;
  padding: 0;
}
#product-continue[hidden] {
  display: none;
}

#options .catalog-picture.licensee-art {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ink) 9%, #fff);
}
#options .catalog-picture.licensee-art::before {
  display: none;
}
.licensee-product-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.65rem;
  text-align: left;
  width: 80%;
  min-height: 58%;
  padding: clamp(0.8rem, 2vw, 1.5rem);
  color: var(--on-ink, #fff);
  background: var(--ink);
  border-bottom: 0.55rem solid var(--accent);
  border-radius: 5px;
  box-shadow: 0 12px 20px #26393021;
}
.licensee-label-brand {
  font-size: 0.8rem;
  letter-spacing: 0.045em;
}
.licensee-label-medicine {
  font-size: clamp(1.15rem, 1.85vw, 1.7rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.licensee-label-form {
  font-size: 0.8rem;
  text-transform: capitalize;
}
#options .catalog-picture .licensee-product-label img,
.product-overview-art .licensee-product-label img {
  position: static;
  width: auto;
  height: 25px;
  max-width: 85%;
  object-fit: contain;
  padding: 0;
  filter: none;
}
:is(#product-dialog, .treatment-sheet) #product-overview-image[hidden] {
  display: none;
}
.product-overview-art:has(.licensee-product-label) {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ink) 9%, white);
}

.published-storefront [hidden] {
  display: none !important;
}

.review-bar .audience-preview {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.8rem;
}
.audience-preview a {
  color: inherit;
  text-underline-offset: 0.25em;
}
.audience-preview a[aria-current] {
  font-weight: 750;
  text-decoration: none;
}
.review-bar:has(.audience-preview) {
  flex-wrap: wrap;
}

/* Type is positioned on the photographed label, so the same packshot works at card and detail sizes. */
.licensee-packshot {
  display: block;
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
  font-family: Georgia, 'Times New Roman', serif;
}
#options .catalog-picture.bottle-scene .licensee-packshot {
  position: absolute;
  height: 87%;
  max-width: 100%;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
#options .catalog-picture.bottle-scene .licensee-packshot img,
:is(#product-dialog, .treatment-sheet) .product-overview-art .licensee-packshot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(2px 4px 2px #28231925);
}
.packshot-print {
  position: absolute;
  z-index: 2;
  left: 29%;
  width: 40%;
  top: 45%;
  height: 32%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: #fcf9ed;
  text-align: center;
}
.vial .packshot-print {
  top: 47%;
  height: 30%;
  left: 29.5%;
  width: 39%;
}
.packshot-brand {
  display: block;
  margin: 0 3%;
  border-bottom: 1px solid #eee9d9b3;
  padding-bottom: 5%;
  font-size: 3.75cqw;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.packshot-name {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 5.7cqw;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.packshot-name.long-name {
  font-size: 4.3cqw;
}
.packshot-name.variant-name {
  font-size: 3.1cqw;
}
:is(#product-dialog, .treatment-sheet) .product-overview-art:has(.licensee-packshot) {
  display: grid;
  place-items: center;
  background: #eeeae0 url('assets/catalog-studio-set.webp') center/cover no-repeat;
}
:is(#product-dialog, .treatment-sheet) .product-overview-art .licensee-packshot {
  width: min(100%, 440px);
  max-height: 100%;
}

/* The hero scrolls away before narrower content opens its page gutters. */
.film-hero {
  position: relative;
}
.care-flow#how {
  --care-surface: color-mix(in srgb, var(--ink) 3%, var(--paper));
  background: var(--care-surface);
}
#how .flow-intro {
  background: transparent;
  color: inherit;
  padding-block: clamp(32px, 3.5vw, 48px);
}
#how .flow-intro h2,
#how .flow-intro p {
  color: inherit;
}
.licensee-storefront .footer-identity .footer-wordmark {
  width: clamp(132px, 13vw, 192px);
  height: auto;
  max-height: 65px;
  object-fit: contain;
}
.licensee-storefront .benefits-rail {
  scrollbar-color: var(--ink) color-mix(in srgb, var(--ink) 11%, white);
}
/* Keep the photo and its caption in separate tracks, including on narrow cards. */
.benefit-panel,
.licensee-storefront .journey-tile.branded-product-scene {
  display: grid;
  background: #f1eee8;
  color: #203039;
}
.benefit-panel::after,
.journey-tile.branded-product-scene::after {
  content: none;
}
/* Keep every shortcut in view. The heading is the single interactive label. */
#care-benefits .benefits-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  margin: 0;
  padding: 0;
}
.benefit-panel {
  grid-template-columns: minmax(0, 1fr) 34%;
  grid-template-rows: minmax(148px, auto);
  aspect-ratio: auto;
}
.benefit-panel > div {
  grid-area: 1 / 1;
  align-self: center;
  padding: clamp(16px, 2.4vw, 34px);
}
.benefit-panel h3 {
  margin: 0 0 7px;
}
.benefit-panel h3 .underlink {
  display: inline;
  font: inherit;
  line-height: inherit;
  color: inherit;
  text-decoration: none;
  text-align: start;
  margin: 0;
  padding: 0;
}
.benefit-panel .underlink::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.benefit-panel:has(.underlink:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.benefit-panel:hover .underlink,
.benefit-panel:focus-within .underlink {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.benefit-panel p {
  margin: 0;
}
.benefit-panel > img {
  position: absolute;
  grid-area: 1 / 2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: auto;
  object-fit: cover;
}
.benefit-product > img {
  object-fit: contain;
}
@media (max-width: 700px) {
  #care-benefits .benefits-rail {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .benefit-panel {
    grid-template-rows: minmax(132px, auto);
  }
  .benefit-panel h3 {
    font-size: 24px;
  }
}
#care .care-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}
#care .care-intro h2 {
  margin: 0;
}
#care .care-help {
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
#care .care-help svg {
  width: 16px;
  height: 16px;
}
#care .care-help:hover {
  background: var(--hover-fill, color-mix(in srgb, var(--ink) 88%, black));
}
#care .care-help:active {
  background: var(--pressed-fill, color-mix(in srgb, var(--ink) 78%, black));
}
#care .care-help:focus-visible {
  outline: 3px solid var(--focus-ink, var(--ink));
  outline-offset: 3px;
}
.licensee-storefront #hero-title em {
  color: inherit;
}
.card-product-photo {
  position: relative;
  overflow: hidden;
  container-type: size;
  background: #e9e4d8 url('assets/catalog-studio-set.webp') center / cover no-repeat;
}
.benefit-panel > .card-product-photo {
  grid-area: 1 / 2;
}
.card-product-photo > .feature-packshot {
  position: absolute;
  width: min(190cqw, 98cqh);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.feature-packshot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.journey-tile.branded-product-scene {
  container: care-product / inline-size;
  grid-template-columns: 55% 45%;
  grid-template-rows: minmax(0, 1fr) auto;
}
.journey-tile.branded-product-scene > .card-product-photo {
  grid-area: 1 / 1 / 2 / -1;
}
.journey-tile.branded-product-scene > div {
  position: static;
  grid-area: 2 / 1 / 3 / -1;
  padding: 16px 20px;
}
.journey-tiles .branded-product-scene p {
  min-height: 0;
  margin: 8px 0;
  color: inherit;
}
.branded-product-scene .tile-action {
  color: inherit;
  border-color: currentColor;
}
.branded-product-scene .tile-action:focus-visible {
  outline-color: currentColor;
}
@container care-product (min-width: 390px) {
  .journey-tile.branded-product-scene > .card-product-photo {
    grid-area: 1 / 2 / 3 / 3;
  }
  .journey-tile.branded-product-scene > div {
    grid-area: 1 / 1 / 3 / 2;
    align-self: end;
    padding: 24px;
  }
}

#collection .signature-heading h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.benefit-panel .underlink::before {
  content: '';
  position: absolute;
  right: calc(34% + 16px);
  bottom: 14px;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}

/* Give the first decision priority while keeping lab comparison one tap away. */
.film-actions .journey-secondary {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding-inline: 5px;
  text-decoration: underline;
  text-underline-offset: 0.26em;
}
.film-actions .journey-secondary[hidden] {
  display: none;
}

.studio-dialog .survey-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
}
.studio-dialog .survey-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}
.studio-dialog .action:disabled {
  opacity: 0.5;
  cursor: default;
}
.survey-review {
  margin: 1rem 0;
}
.survey-review > div {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}
.survey-review dt {
  font-size: 0.88rem;
}
.survey-review dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-weight: 650;
}
.survey-selection {
  font-weight: 650;
}
/* Reserve the practice color for actions. Keep questions and answers in reading ink. */
.studio-dialog {
  color: #203039;
}
.studio-dialog .studio-bar,
.studio-dialog .survey-review button {
  color: var(--ink);
}
.survey-review dt {
  color: #52615c;
}
.survey-review dd {
  line-height: 1.45;
}
/* The survey keeps its selected product in view while the question pane changes. */
.studio-dialog.survey-layout[open] {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: min(940px, calc(100vw - 48px));
  max-height: 90dvh;
  overflow: hidden;
  background: #fffefb;
}
.survey-layout .studio-bar {
  grid-column: 1/-1;
  padding: 6px 24px;
  min-height: 56px;
  background: #fffefb;
  border-color: #dcdcd4;
}
.survey-wordmark {
  display: block;
  max-width: min(155px, 48vw);
  height: 30px;
  object-fit: contain;
}
.survey-layout .studio-bar:has(.survey-wordmark) [data-brand] {
  display: none;
}
.survey-layout :is(#studio-close, .survey-close) {
  color: #364341;
  text-decoration: none;
}
.survey-layout :is(#studio-close, .survey-close):hover {
  text-decoration: underline;
}
.survey-context-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  background: #eae5d9;
  color: #233231;
}
.survey-photo {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.survey-caption {
  display: grid;
  gap: 5px;
  padding: 24px 26px;
  border-top: 1px solid #cfcabd;
  background: #efece3;
}
.survey-caption strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.1;
}
.survey-caption span {
  font-size: 0.88rem;
  color: #49544e;
}
.survey-layout :is(#studio-body, .survey-pane) {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 3.5vw, 46px);
  scrollbar-gutter: stable;
}
.survey-layout :is(#studio-body, .survey-pane) h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
  text-wrap: balance;
  margin: 0 0 14px;
}
.survey-layout :is(#studio-body, .survey-pane) > p {
  margin: 0 0 16px;
  line-height: 1.5;
}
.survey-layout :is(#studio-body, .survey-pane) > .discovery-choices {
  margin: 24px 0 0;
  gap: 0;
  border-top: 1px solid #c6cac4;
}
.survey-layout .discovery-choices button,
.survey-layout .discovery-choices .survey-check {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #c6cac4;
  border-radius: 0;
  min-height: 54px;
  padding: 12px 8px;
  line-height: 1.35;
  font-weight: 500;
}
.survey-layout .discovery-choices button {
  justify-content: space-between;
}
.survey-layout .discovery-choices button::after {
  content: '';
  width: 8px;
  height: 8px;
  flex: none;
  margin-right: 4px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.survey-layout .discovery-choices :is(button, .survey-check):hover,
.survey-layout .discovery-choices [aria-pressed='true'],
.survey-layout .survey-check:has(input:checked) {
  background: color-mix(in srgb, var(--ink) 7%, #fffefb);
}
.survey-layout .discovery-choices :focus-visible {
  outline-offset: -3px;
}
.survey-layout .handoff-actions {
  margin-top: 18px;
}
.survey-layout :is(#studio-body, .survey-pane) > .price-note {
  color: #545e59;
  margin: 20px 0 0;
  font-size: 0.78rem;
}
@media (max-width: 700px) {
  .studio-dialog.survey-layout[open] {
    width: min(100%, 520px);
    max-width: 100%;
    max-height: 100dvh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .survey-layout .studio-bar {
    min-height: 48px;
    padding: 2px 20px;
  }
  .survey-context-card {
    flex-direction: row;
    align-items: stretch;
  }
  .survey-photo {
    flex: none;
    width: 76px;
    height: 72px;
  }
  .survey-caption {
    flex: 1;
    align-content: center;
    gap: 2px;
    border: 0;
    padding: 8px 16px;
  }
  .survey-caption strong {
    font-size: 22px;
  }
  .survey-caption span {
    font-size: 0.8rem;
  }
  .survey-layout :is(#studio-body, .survey-pane) {
    padding: 24px 20px;
    scrollbar-gutter: auto;
  }
  .survey-layout :is(#studio-body, .survey-pane) > .discovery-choices {
    margin-top: 18px;
  }
}

#journey-dialog .studio-bar .survey-close {
  min-width: 44px;
}
#journey-dialog .survey-pane > #journey-intro {
  font-size: 1rem;
  line-height: 1.5;
  color: #465456;
}
#journey-dialog #journey-choices {
  gap: 0;
  margin: 22px 0 0;
}
#journey-dialog .choice {
  background: transparent;
  color: #203039;
  font-size: 1rem;
  text-decoration: none;
}
#journey-dialog .choice:hover {
  background: color-mix(in srgb, var(--ink) 7%, #fffefb);
}
#journey-dialog .choice small {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #52605d;
}
#journey-dialog #journey-back {
  text-decoration: none;
  padding: 0;
  align-items: center;
  gap: 6px;
}
#journey-dialog #journey-back:not([hidden]) {
  display: inline-flex;
  margin-bottom: 6px;
}
#journey-dialog #journey-back svg {
  width: 15px;
  height: 15px;
}
#journey-dialog .destination {
  display: block;
  text-align: center;
  border-radius: 100px;
  padding: 14px 20px;
  margin-top: 12px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 650;
  text-decoration: none;
}
#journey-dialog .destination::after {
  content: none;
}
#journey-dialog .destination.secondary {
  background: transparent;
  color: #203039;
  text-underline-offset: 0.2em;
  text-decoration: underline;
  margin: 0;
}
.survey-caption span:empty {
  display: none;
}

#collection[hidden],
[data-collection-link][hidden],
#collection-goals:empty,
#collection-status:empty {
  display: none;
}
#collection .signature-heading h2 {
  font-size: clamp(34px, 3.5vw, 52px);
}
#collection-goals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
#collection-goals button {
  border: 1px solid #a9b5b0;
  border-radius: 2rem;
  padding: 9px 18px;
  min-height: 44px;
}
#collection-goals button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}
#collection-content:not(:empty) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  background: #f1eee8;
  border-radius: 14px;
  overflow: hidden;
}
#collection-content > img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  min-height: 200px;
  object-fit: cover;
}
.collection-products {
  align-self: center;
  padding: clamp(20px, 3vw, 44px);
  color: #203039;
}
.collection-products h3 {
  font-size: clamp(26px, 2.5vw, 40px);
  font-weight: 500;
  margin: 0 0 20px;
}
.collection-product {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  border-top: 1px solid #bbc3bb;
  min-height: 52px;
  padding: 12px 4px;
  text-decoration: none;
  color: inherit;
}
.collection-product:hover strong {
  text-decoration: underline;
}
.collection-product small {
  grid-column: 1/-1;
}
.collection-product .icon {
  width: 18px;
  height: 18px;
}
.collection-retry {
  text-decoration: underline;
  min-height: 44px;
}
#collection .collection-product:focus-visible {
  outline-offset: -3px;
}
@media (max-width: 650px) {
  #collection-content:not(:empty) {
    grid-template-columns: 1fr;
  }
  #collection-content > img {
    height: 154px;
    min-height: 0;
    object-position: 50% 40%;
  }
}

/* Licensee interaction colors follow the selected ink, including custom light palettes. */
.licensee-storefront {
  --hover-fill: color-mix(in srgb, var(--ink) 84%, var(--contrast-pole));
  --pressed-fill: color-mix(in srgb, var(--ink) 69%, var(--contrast-pole));
  --hover-wash: color-mix(in srgb, var(--ink) 10%, white);
  --focus-ink: color-mix(in srgb, var(--ink) 61%, #101010);
  --focus-on-dark: color-mix(in srgb, var(--ink) 20%, white);
}
body.licensee-storefront
  :is(
    .film-actions .button:not(.journey-secondary),
    .flow-copy .button,
    .button.dark,
    .lab-select,
    .panel-studio .action,
    .catalog-start,
    .signature-card-copy .button,
    #profile-save
  ):hover,
body.licensee-storefront #options .catalog-product:hover .catalog-arrow {
  background: var(--hover-fill);
  color: var(--on-ink);
}
body.licensee-storefront
  :is(
    .film-actions .button:not(.journey-secondary),
    .flow-copy .button,
    .button.dark,
    .lab-select,
    .panel-studio .action,
    .catalog-start,
    .signature-card-copy .button,
    #profile-save
  ):active,
body.licensee-storefront #options .catalog-product:active .catalog-arrow {
  background: var(--pressed-fill);
  color: var(--on-ink);
}
.licensee-storefront .film-shade {
  background:
    linear-gradient(90deg, #101010c9, #1010100d 85%),
    linear-gradient(0deg, #10101059, transparent 30%);
}
.licensee-storefront .journey-tile:not(.branded-product-scene):has(> img) {
  background-color: #262626;
}
.licensee-storefront .journey-tile:not(.branded-product-scene):has(> img)::after {
  background: linear-gradient(0deg, #101010f0, transparent 95%);
}
@media (max-width: 760px) {
  .licensee-storefront .film-shade {
    background: linear-gradient(0deg, #101010ed, #10101014 90%);
  }
  .licensee-storefront .flow-panel:has(.care-story-scene),
  .licensee-storefront .flow-panel:has(.care-story-scene) .care-story-scene {
    background-color: #202020;
  }
  .licensee-storefront .flow-panel:has(.care-story-scene) .care-story-scene::after {
    background: linear-gradient(
      0deg,
      #202020 0%,
      #202020 calc(100% - 300px),
      #202020c2 calc(100% - 240px),
      #20202014 calc(100% - 70px)
    );
  }
  .licensee-storefront #flow-bloodwork .care-story-scene::after {
    background: linear-gradient(
      to bottom,
      transparent 0,
      transparent 310px,
      #202020 344px,
      #202020 100%
    );
  }
  .licensee-storefront .flow-panel .flow-copy .button {
    background: var(--ink);
    color: var(--on-ink);
  }
}

.licensee-storefront .care-scroll-nav a[aria-current='step'] {
  color: var(--focus-ink);
}
.licensee-storefront .review-bar,
.licensee-storefront .studio-dialog .discovery-choices [aria-pressed='true'] {
  background: var(--hover-wash);
}
.licensee-storefront .review-bar i {
  background: var(--ink);
}
.licensee-storefront .panel-toolbar [aria-pressed='true'],
.licensee-storefront .studio-dialog .action {
  color: var(--on-ink);
}

#brand-dialog .packaging-editors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
#brand-dialog #packaging {
  min-width: 0;
  scroll-margin-block: 12px;
}
#brand-dialog .packaging-editors fieldset {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #d8d5ce;
  border-radius: 8px;
}
#brand-dialog .packaging-editors label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 10px 0 0;
}
#brand-dialog .packaging-editors label:has(input[type='text']) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: 4px;
}
#brand-dialog .packaging-editors input[type='text'] {
  width: 100%;
  min-width: 0;
}
#brand-dialog .packaging-editors input[type='color'] {
  width: 48px;
  min-height: 36px;
  margin: 0;
  cursor: pointer;
}
.packaging-sample {
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eeeae0 url('assets/catalog-studio-set.webp') center/cover;
}
.packaging-sample .licensee-packshot {
  width: min(100%, 190px);
}
.packaging-sample .licensee-packshot img {
  display: block;
  width: 100%;
  height: auto;
}
.packshot-brand.long-brand {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 3.05cqw;
  line-height: 1.05;
}
.packshot-print[style] .packshot-brand {
  border-color: currentColor;
}
@media (max-width: 480px) {
  #brand-dialog .packaging-editors {
    grid-template-columns: 1fr;
  }
  .packaging-sample .licensee-packshot {
    width: 150px;
  }
}

/* Storefront sign-off and anchored product disclosures. */
.site-footer {
  padding-block: var(--storefront-section-inset);
  border-block-start: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 16%, transparent);
}
.site-footer .footer-top {
  grid-template-columns: minmax(12rem, 1.65fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3.5rem);
  align-items: start;
}
.site-footer .footer-identity,
.site-footer .footer-group,
.site-footer .footer-policies {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
}
.site-footer .footer-identity {
  gap: 0.75rem;
}
.site-footer .footer-group h3,
.site-footer .footer-notes h3 {
  margin: 0 0 0.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
}
.site-footer .footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.site-footer .footer-group a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.site-footer .footer-notes {
  margin-top: clamp(1.75rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.site-footer .footer-notes p {
  max-width: 85ch;
  font: inherit;
  margin: 0.5em 0 0;
  scroll-margin-block: 5rem;
}
.site-footer .footer-notes strong {
  font-weight: 650;
}
.packaging-note-link {
  align-self: center;
  margin-inline-end: auto;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (min-width: 801px) {
  .site-footer .footer-notes {
    columns: 2;
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .site-footer .footer-notes h3 {
    column-span: all;
  }
  .site-footer .footer-notes p {
    break-inside: avoid;
  }
}
@media (max-width: 800px) {
  .site-footer .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer .footer-identity {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .site-footer .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#pharmacy-information {
  display: none;
}
body[data-storefront-policy] > #main {
  display: none;
}
.storefront-policy:not([hidden]) {
  width: min(90%, 72ch);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.storefront-policy :is(h1, h2, p) {
  margin: 0 0 1em;
}
.storefront-policy h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
}
.storefront-policy h2 {
  margin-top: 1.5em;
  font-size: 1.2rem;
}
.storefront-policy a {
  text-decoration: underline;
}
body[data-pharmacy-directory]:not(.loading-live) > :not(#pharmacy-information) {
  display: none;
}
body[data-pharmacy-directory]:not(.loading-live) > #pharmacy-information {
  display: block;
  max-width: 52rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
}
#pharmacy-information h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  margin-block: 1.5rem;
}
#pharmacy-information a {
  text-decoration: underline;
}
#pharmacy-directory-content {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.care-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 0 6%;
}
.care-step {
  padding: clamp(1.6rem, 3.1vw, 3rem) 0;
  scroll-margin-top: 3rem;
}
.care-step + .care-step {
  border-top: 1px solid var(--line, #d3dbd0);
}
.care-step h3 {
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.care-step p {
  max-width: 48ch;
  margin: 0.75rem 0 0;
  line-height: 1.55;
}
.care-step .flow-detail {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.care-step .button {
  margin-top: 1.1rem;
  background: var(--ink);
  color: var(--on-ink, white);
}
.care-helix {
  --helix-height: clamp(16rem, min(40vw, 64svh), 33.75rem);
  position: sticky;
  top: max(1.5rem, calc(50svh - var(--helix-height) / 2));
  margin: clamp(1.6rem, 3.1vw, 3rem) 0;
  height: var(--helix-height);
  color: color-mix(in srgb, var(--ink) 78%, #192f39);
}
.care-helix canvas {
  display: block;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--ink) 50%, var(--accent));
}
.care-helix > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3.25rem, 6.8vw, 6rem);
  white-space: nowrap;
  paint-order: stroke fill;
  -webkit-text-stroke: 2px var(--care-surface);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  pointer-events: none;
}
@media (max-width: 760px) {
  .care-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .care-helix {
    grid-row: 1;
    position: relative;
    top: auto;
    height: clamp(12rem, 64vw, 17rem);
    margin: 1.25rem 0 0;
  }
  .care-helix > span {
    font-size: clamp(2.75rem, 15vw, 4.25rem);
  }
}

@media (max-width: 760px) and (min-height: 570px) {
  .care-steps {
    --art-height: min(68vw, 30svh, 17rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .care-helix {
    order: -1;
    position: sticky;
    top: 0;
    z-index: 1;
    height: var(--art-height);
    background: var(--care-surface);
  }
  .care-step,
  .care-step .button {
    scroll-margin-top: calc(var(--art-height) + 1rem);
  }
  .care-steps:has(:focus-visible) .care-helix {
    position: relative;
  }
}

@keyframes storefront-heading-arrival {
  from {
    translate: 0 12px;
    opacity: 0.87;
  }
  to {
    translate: 0 0;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :where(
      #care .care-intro h2,
      #flow-title,
      #catalog-title,
      #price-heading,
      #signature-title,
      #panel-heading,
      #benefits-title,
      #questions-title
    ) {
      animation: storefront-heading-arrival linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 18%;
    }
  }
}

#studio-dialog[data-page-checkout][open] {
  position: absolute;
  inset: 0 0 auto auto;
  box-sizing: border-box;
  width: min(56rem, 72vw);
  max-width: 100%;
  max-inline-size: 100%;
  min-height: 100dvh;
  border-radius: 1rem 0 0 1rem;
  height: auto;
  max-height: none;
  max-block-size: none;
  overflow: visible;
  overscroll-behavior: auto;
  margin: 0;
}
html:has(#studio-dialog[data-page-checkout][open]) {
  overflow-y: auto;
  min-height: max(100dvh, var(--panel-checkout-document-height, 100dvh));
  scroll-behavior: auto;
  overflow-anchor: none;
}
body:has(#studio-dialog[data-page-checkout][open]) {
  position: fixed;
  inset: var(--panel-storefront-offset, 0px) 0 auto;
  width: 100%;
}
#studio-dialog[data-page-checkout] .studio-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
@media (max-width: 760px) {
  #studio-dialog[data-page-checkout][open] {
    width: 100%;
    border-radius: 0;
  }
}

/* The numbered product page embeds its practice's own treatment guide. */
html[data-section='options'] body,
html[data-section='options'] #main {
  min-height: 0;
  margin: 0;
  padding: 0;
}
html[data-section='options'] body > :not(#main, #live-status, dialog),
html[data-section='options'] #main > :not(#options) {
  display: none !important;
}
html[data-section='options'] #options {
  margin-block: 0;
}

html[data-widget] #options {
  padding: clamp(12px, 2.5vw, 32px);
}
html[data-widget] #options .catalog-rail {
  margin-inline: 0;
  padding-inline: 0;
}
html[data-widget] #options .catalog-toolbar:not(:has(button:not([data-filter='all'], [hidden]))) {
  display: none;
}
html[data-widget] #options .rail-controls:has(#product-prev:disabled):has(#product-next:disabled) {
  visibility: hidden;
}
@media (min-width: 651px) {
  html[data-widget] #options .catalog-rail:not(:has(.catalog-card:nth-child(3))) .catalog-card {
    flex-basis: min(360px, calc((100% - clamp(14px, 1.7vw, 26px)) / 2));
  }
}

.licensee-packshot.bottle {
  font-family: var(--practice-bottle-font, Georgia, serif);
}
.licensee-packshot.vial {
  font-family: var(--practice-vial-font, Georgia, serif);
}

#options .catalog-entry-title {
  position: relative;
}
#options .card-photo-badges {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 4;
  display: inline-flex;
  flex-wrap: wrap;
  row-gap: 4px;
  max-width: calc(100% - 16px);
  border-radius: 6px;
  pointer-events: none;
}

#options .card-photo-badges > :is(span, a, button) {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: inherit;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
  box-sizing: border-box;
}

#options .card-rx-status {
  background: var(--ink, #233139);
  color: var(--on-ink, #fff);
}

#options .card-rx-status:has(+ a) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

#options .card-photo-badges a {
  pointer-events: auto;
  gap: 5px;
  background: #fffdf8;
  color: #253135;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

#options .card-photo-badges a::after {
  content: '';
  width: 7px;
  height: 7px;
  background: currentColor;
  clip-path: polygon(15% 0, 100% 0, 100% 85%, 81% 85%, 81% 33%, 14% 100%, 0 86%, 67% 19%, 15% 19%);
}

#options .card-starting-price,
#collection .card-starting-price {
  display: block;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

#options .card-photo-badges > button {
  pointer-events: auto;
  margin-inline-start: 8px;
  background: #ffce7d;
  color: #352a1c;
  cursor: pointer;
}
#options .card-photo-badges :is(button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

#options .card-photo-badges > .card-rx-status {
  margin: 0;
  background: var(--ink, #233139);
  color: var(--on-ink, white);
}
#options .card-photo-badges > .card-fda-info {
  margin: 0;
  background: #fffdf8;
  color: #253135;
}
