:root {
  --accent: #d86fac;
  --accent-deep: #8b285f;
  --accent-soft: #f8e6f0;
  --cream: #f5f0dc;
  --surface: #fffafc;
  --surface-strong: #ffffff;
  --text: #342b30;
  --text-soft: #675b61;
  --heading: #432d39;
  --focus: #76204f;
  --line: #d86fac;
  --content: 72rem;
  --reading: 54rem;
  --gutter: clamp(1rem, 4.2vw, 2.5rem);
  --shadow: 0 1.25rem 4rem rgba(68, 36, 52, 0.12);
  color-scheme: light;
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

html[data-font-size="12"] { font-size: 12px; }
html[data-font-size="14"] { font-size: 14px; }
html[data-font-size="16"] { font-size: 16px; }

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--surface);
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  z-index: -2;
  top: 5rem;
  right: -16rem;
  width: min(50rem, 105vw);
  aspect-ratio: 1;
  background: url("mandala.svg") center / contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,250,252,.82), rgba(255,250,252,.96) 42%, #fffafc 75%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

a {
  color: var(--accent-deep);
  text-decoration-thickness: .09em;
  text-underline-offset: .22em;
}

a:hover { text-decoration-thickness: .14em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: .5rem;
  left: .5rem;
  translate: 0 -180%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--focus);
  font-weight: 700;
}

.skip-link:focus { translate: 0 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  margin-inline: auto;
}

.accessibility-bar {
  position: sticky;
  z-index: 30;
  top: 0;
  color: var(--text-soft);
  background: rgba(255,250,252,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.accessibility-bar__inner {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
}

.accessibility-bar__label {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.font-controls {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.font-control {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: .2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.font-control:hover { background: var(--accent-soft); }
.font-control:active { transform: scale(.96); }
.font-control[aria-pressed="true"] {
  color: var(--focus);
  background: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: .12em;
  text-underline-offset: .18em;
}

.font-control--12 { font-size: 12px; }
.font-control--14 { font-size: 14px; }
.font-control--16 { font-size: 16px; }

.site-header {
  background: rgba(255,250,252,.86);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  gap: 1.15rem;
  padding-block: 1.35rem 1rem;
}

.brand {
  width: fit-content;
  color: var(--heading);
  text-decoration: none;
}

.brand__name {
  display: block;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.brand__subtitle {
  display: block;
  margin-top: .35rem;
  color: var(--text-soft);
  font-size: .94rem;
  letter-spacing: .035em;
}

.site-nav ul,
.topic-nav ul,
.footer-links,
.breadcrumb ol,
.condition-links,
.key-points,
.overview-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.2rem;
}

.site-nav a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--focus);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .45rem;
}

.topic-nav {
  background: rgba(248,230,240,.48);
  border-bottom: 1px solid var(--line);
}

.topic-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.05rem;
  padding-block: .55rem;
}

.topic-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.topic-nav a:hover,
.topic-nav a[aria-current="page"] {
  color: var(--focus);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .35rem;
}

main { display: block; }

.page-main {
  padding-block: clamp(2rem, 6vw, 4.8rem) clamp(4rem, 9vw, 7rem);
}

.breadcrumb {
  max-width: var(--reading);
  margin-bottom: clamp(1.35rem, 4vw, 2.2rem);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .55rem;
  color: var(--text-soft);
  font-size: .92rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .55rem;
  color: var(--accent);
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.page-hero {
  position: relative;
  max-width: var(--reading);
  padding-bottom: clamp(2.5rem, 7vw, 4.8rem);
}

.page-hero::after {
  content: "";
  display: block;
  width: min(9rem, 35vw);
  height: 1px;
  margin-top: clamp(2rem, 5vw, 3.2rem);
  background: var(--line);
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--accent-deep);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .135em;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.55rem, 10vw, 5rem);
  letter-spacing: -.052em;
}

h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.9rem, 7vw, 3.25rem);
  letter-spacing: -.038em;
}

h3 {
  margin: 0;
  font-size: clamp(1.25rem, 4.3vw, 1.65rem);
  letter-spacing: -.018em;
}

.lead {
  max-width: 49rem;
  margin: 1.55rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 3.8vw, 1.35rem);
  line-height: 1.55;
}

.page-hero > p:not(.eyebrow):not(.lead) {
  max-width: 49rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  margin-top: 1.8rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.15rem;
  border: 0;
  border-radius: .3rem;
  color: #fff;
  background: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover { background: #6f1649; text-decoration: none; }
.button:active { transform: translateY(1px); }
.button::after { content: "→"; font-size: 1.2em; line-height: 1; }

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
}

.text-link::after { content: "→"; font-size: 1.22em; line-height: 1; }

.overview-list {
  max-width: var(--reading);
  border-top: 1px solid var(--line);
}

.overview-item {
  display: grid;
  gap: .8rem 1.75rem;
  padding-block: clamp(2rem, 6vw, 3.6rem);
  border-bottom: 1px solid var(--line);
}

.overview-number {
  color: var(--accent-deep);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
}

.overview-copy p {
  max-width: 49rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.overview-copy .text-link { margin-top: 1rem; }

.key-section {
  max-width: var(--reading);
  margin-top: .5rem;
  padding: clamp(1.35rem, 4vw, 2rem);
  background: rgba(248,230,240,.56);
}

.key-section h2 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
}

.key-points { margin-top: 1rem; }

.key-points li {
  position: relative;
  padding: .85rem 0 .85rem 1.65rem;
}

.key-points li + li { border-top: 1px solid rgba(216,111,172,.55); }

.key-points li::before {
  content: "";
  position: absolute;
  top: 1.55em;
  left: .1rem;
  width: .55rem;
  height: 1px;
  background: var(--accent);
}

.section-intro {
  max-width: var(--reading);
  margin-top: clamp(3rem, 8vw, 5.2rem);
}

.section-intro p {
  max-width: 45rem;
  margin: 1rem 0 0;
  color: var(--text-soft);
}

.condition-links {
  max-width: var(--reading);
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.25rem;
}

.condition-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-weight: 700;
  text-decoration: none;
}

.condition-links a:hover { background: #f4d9e8; }

.detail-section {
  max-width: var(--reading);
  margin-top: clamp(3rem, 8vw, 5.2rem);
}

.details-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.details-heading-row h2 { font-size: clamp(1.8rem, 6vw, 2.8rem); }

.details-toggle {
  min-height: 44px;
  padding: .65rem .9rem;
  border: 0;
  border-radius: .2rem;
  color: var(--accent-deep);
  background: var(--accent-soft);
  cursor: pointer;
  font-weight: 700;
}

.content-disclosure { border-top: 1px solid var(--line); }
.content-disclosure:last-of-type { border-bottom: 1px solid var(--line); }

.content-disclosure > summary {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 1rem 2.7rem 1rem 0;
  color: var(--heading);
  cursor: pointer;
  font-size: clamp(1.08rem, 3.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
}

.content-disclosure > summary::-webkit-details-marker { display: none; }
.content-disclosure > summary::after {
  content: "+";
  position: absolute;
  right: .35rem;
  color: var(--accent-deep);
  font-size: 1.6rem;
  font-weight: 400;
}
.content-disclosure[open] > summary::after { content: "–"; }
.content-disclosure[open] > summary { color: var(--accent-deep); }

.disclosure-body {
  padding: 0 0 1.65rem;
}

.disclosure-body p {
  max-width: 49rem;
  margin: 0 0 1rem;
}

.disclosure-body p:last-child { margin-bottom: 0; }
.disclosure-body h3 { margin: 1.5rem 0 .65rem; }

.source-note {
  margin-top: 1.15rem !important;
  padding: 1rem 1.1rem;
  color: var(--text-soft);
  background: rgba(245,240,220,.72);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  counter-increment: process;
  padding: 1.25rem 0 1.25rem 3.2rem;
}

.process-list li + li { border-top: 1px solid rgba(216,111,172,.55); }

.process-list li::before {
  content: counter(process);
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-weight: 700;
}

.process-list h3 { margin-top: 0; }

.medical-note {
  max-width: var(--reading);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--heading);
  background: var(--cream);
}

.medical-note strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--accent-deep);
}

.medical-note p { margin: 0; }

.page-navigation {
  max-width: var(--reading);
  display: grid;
  gap: .65rem 1.5rem;
  margin-top: clamp(2.6rem, 7vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.page-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding-block: 2.4rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: grid;
  gap: 1rem;
  color: var(--text-soft);
  font-size: .92rem;
}

.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 42rem) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-block: 1.25rem;
  }

  .page-navigation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-navigation a:last-child { justify-self: end; text-align: right; }
}

@media (min-width: 56rem) {
  body::before { right: -8rem; width: min(58rem, 63vw); opacity: .052; }
  body::after { background: linear-gradient(90deg, #fffafc 0%, rgba(255,250,252,.96) 52%, rgba(255,250,252,.78) 100%); }
  .overview-item { grid-template-columns: 3.75rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
}

@media print {
  .accessibility-bar, .site-nav, .topic-nav, .skip-link, .page-actions,
  .details-toggle, .page-navigation { display: none !important; }
  body::before, body::after { display: none; }
  .page-main { padding: 1cm 0; }
  .content-disclosure > summary::after { display: none; }
  .content-disclosure:not([open]) > .disclosure-body { display: block; }
  a { color: #000; text-decoration: none; }
}
