/* Treatment stages: deliberately readable as stacked articles before enhancement. */
.treatment-stage {
  --stage-pine: #101b1d;
  --stage-deep: #103d37;
  --stage-teal: #218c82;
  --stage-paper: #f4f3ed;
  --stage-muted: #5b6964;
  --stage-line: rgba(16, 61, 55, 0.18);
  background: var(--stage-paper);
  color: var(--stage-pine);
}

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

.treatment-stage .stage-heading {
  max-width: 920px;
  margin-bottom: clamp(26px, 3.4vw, 48px);
}

.treatment-stage .stage-heading > .eyebrow {
  margin-bottom: 13px;
  color: var(--stage-deep);
}

.treatment-stage .stage-heading > p {
  max-width: 720px;
  margin-top: 20px;
  color: var(--stage-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
}

.treatment-stage .stage-shell {
  min-width: 0;
  border: 1px solid var(--stage-line);
  border-radius: 8px;
  background: var(--stage-paper);
}

.treatment-stage .stage-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 10px;
  scrollbar-width: thin;
  scrollbar-color: #93b5aa var(--stage-pine);
  background: var(--stage-pine);
  border-radius: 7px 7px 0 0;
}

.treatment-stage .stage-tab {
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  min-height: 56px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--stage-paper);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.treatment-stage .stage-tab > span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.treatment-stage .stage-tab:hover {
  border-color: rgba(244, 243, 237, 0.35);
  background: rgba(244, 243, 237, 0.08);
}

.treatment-stage .stage-tab[aria-selected='true'] {
  border-color: var(--stage-paper);
  background: var(--stage-paper);
  color: var(--stage-deep);
}

.treatment-stage .stage-tab[aria-selected='true'] > span {
  opacity: 1;
}

.treatment-stage .stage-tab:focus-visible {
  outline: 2px solid var(--stage-paper);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 2px var(--stage-teal);
}

.treatment-stage .stage-panels {
  min-width: 0;
}

.treatment-stage .stage-panel {
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  min-width: 0;
  margin: 0;
  border-radius: 0 0 7px 7px;
}

.treatment-stage:not(.is-enhanced) .stage-panel + .stage-panel {
  border-top: 1px solid var(--stage-line);
}

/* Author display rules must never override the native hidden state. */
.treatment-stage .stage-panel[hidden] {
  display: none !important;
}

.treatment-stage .stage-panel:focus-visible {
  outline: 3px solid var(--stage-teal);
  outline-offset: 5px;
}

.treatment-stage .stage-media {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-width: 0;
  padding: clamp(22px, 2.8vw, 42px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 72% 24%, rgba(33, 140, 130, 0.12), transparent 64%),
    linear-gradient(145deg, #f4f3ed 12%, #eae9df 62%, #dce8df 100%);
  border-bottom-left-radius: 7px;
}

.treatment-stage .stage-halo {
  position: absolute;
  z-index: -1;
  top: 10%;
  left: 15%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(16, 61, 55, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 243, 237, 0.58), transparent 72%);
  pointer-events: none;
}

.treatment-stage .stage-index {
  position: relative;
  justify-self: start;
  color: var(--stage-deep);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.treatment-stage .stage-product {
  position: relative;
  display: block;
  align-self: center;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-block: 12px;
  object-fit: contain;
  object-position: center;
}

.treatment-stage .stage-image-note {
  position: relative;
  max-width: 400px;
  margin: 0;
  color: var(--stage-muted);
  font-size: 11px;
  line-height: 1.6;
}

.treatment-stage .stage-copy {
  min-width: 0;
  padding: clamp(28px, 3.1vw, 48px);
  border-left: 1px solid var(--stage-line);
  overflow-wrap: anywhere;
}

.treatment-stage .stage-copy > .eyebrow {
  margin-bottom: 16px;
  color: var(--stage-deep);
}

.treatment-stage .stage-copy h3 {
  margin: 0;
  color: var(--stage-pine);
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.treatment-stage .stage-summary {
  margin: 18px 0 0;
  color: var(--stage-muted);
  font-size: 16px;
  line-height: 1.65;
}

.treatment-stage .stage-facts {
  margin: 25px 0 0;
  border-top: 1px solid var(--stage-line);
}

.treatment-stage .stage-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--stage-line);
}

.treatment-stage .stage-facts dt {
  margin: 0;
  color: var(--stage-deep);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.treatment-stage .stage-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--stage-muted);
  font-size: 13px;
  line-height: 1.65;
}

.treatment-stage .stage-status {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--stage-teal);
  background: rgba(33, 140, 130, 0.07);
  color: var(--stage-deep);
  font-size: 13px;
  line-height: 1.65;
}

.treatment-stage .stage-details {
  margin-top: 18px;
  border-bottom: 1px solid var(--stage-line);
}

.treatment-stage .stage-details > summary {
  display: list-item;
  min-height: 44px;
  padding-block: 12px;
  color: var(--stage-deep);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.treatment-stage .stage-details > summary::marker {
  color: var(--stage-teal);
}

.treatment-stage .stage-details > p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--stage-muted);
  font-size: 13px;
  line-height: 1.7;
}

.treatment-stage .stage-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--stage-deep);
  border-radius: 4px;
  background: var(--stage-deep);
  color: var(--stage-paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.treatment-stage .stage-cta:hover {
  background: var(--stage-pine);
}

.treatment-stage .stage-cta:focus-visible,
.treatment-stage .stage-details > summary:focus-visible {
  outline: 3px solid var(--stage-teal);
  outline-offset: 4px;
}

.treatment-stage .stage-footnote {
  max-width: 1000px;
  margin: 20px 0 0;
  color: var(--stage-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 759px) {
  .treatment-stage .stage-tabs {
    gap: 5px;
    padding: 9px;
  }

  .treatment-stage .stage-tab {
    flex: 1 0 auto;
    gap: 11px;
    min-height: 50px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .treatment-stage .stage-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .treatment-stage .stage-media {
    padding: 22px;
    border-radius: 0;
  }

  .treatment-stage .stage-product {
    max-width: 620px;
    margin: 4px auto 10px;
  }

  .treatment-stage .stage-copy {
    padding: 28px 24px 32px;
    border-top: 1px solid var(--stage-line);
    border-left: 0;
  }

  .treatment-stage .stage-copy h3 {
    font-size: clamp(28px, 5.8vw, 38px);
  }
}

@media (max-width: 420px) {
  .treatment-stage .stage-tab {
    min-height: 48px;
    padding-inline: 15px;
  }

  .treatment-stage .stage-media {
    padding: 18px;
  }

  .treatment-stage .stage-copy {
    padding: 25px 20px 28px;
  }

  .treatment-stage .stage-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .treatment-stage *,
  .treatment-stage *::before,
  .treatment-stage *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    scroll-behavior: auto !important;
  }
}

.treatment-stage .stage-cta { gap: 12px; }
.treatment-stage .stage-related { display: block; width: fit-content; margin-top: 16px; color: var(--stage-deep); font-size: 13px; line-height: 1.6; text-underline-offset: 4px; }
.treatment-stage .stage-related:focus-visible { outline: 3px solid var(--stage-teal); outline-offset: 4px; }
.treatment-stage .stage-image-note { font-size: 12px; }
