/* Layout: one calm reading column; the "how to reach us" routing table is the page's centrepiece. */
:root {
  --paper: #fbfafd;
  --surface: #ffffff;
  --ink: #221c2e;
  --muted: #5d5569;
  --rule: #e2dcea;
  --purple: #4f2683;        /* Western purple */
  --purple-tint: #f1ecf8;
  --urgent: #a3301f;
  --urgent-tint: #fbefec;
  --ok: #2e6b3f;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-head: "Newsreader", "Iowan Old Style", Georgia, serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 2.9rem);
  --measure: 40rem;
  --wide: 64rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17131e; --surface: #1f1a28; --ink: #ece8f2; --muted: #b3aac0; --rule: #352d42;
    --purple: #c4a8ee; --purple-tint: #2a2238; --urgent: #f19a87; --urgent-tint: #34201d; --ok: #8fd3a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #17131e; --surface: #1f1a28; --ink: #ece8f2; --muted: #b3aac0; --rule: #352d42;
  --purple: #c4a8ee; --purple-tint: #2a2238; --urgent: #f19a87; --urgent-tint: #34201d; --ok: #8fd3a0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; max-width: var(--measure); }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { text-decoration: none; color: var(--ink); display: grid; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.brand-sub { font-size: var(--step--1); color: var(--muted); }
.nav-toggle {
  display: none; font: inherit; font-weight: 600; color: var(--ink); background: transparent;
  border: 1.5px solid var(--rule); border-radius: 8px; padding: 8px 14px; cursor: pointer; min-height: 44px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1); padding-block: 6px; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--purple); color: var(--purple); }

@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); margin-top: 6px; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav a { display: block; padding-block: 14px; font-size: var(--step-0); border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--purple); padding-left: 10px; }
}

main { display: block; }
.section { padding-block: clamp(36px, 6vw, 64px); }
.section + .section { border-top: 1px solid var(--rule); }
.stack { display: grid; gap: 14px; align-content: start; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 36rem; }

/* Page intro */
.intro { padding-block: clamp(36px, 7vw, 72px) clamp(24px, 4vw, 40px); }
.intro .stack { gap: 16px; }
.location { font-size: var(--step-0); color: var(--muted); }

/* Routing table: who you are → what to do */
.routes { border-top: 2px solid var(--ink); margin-top: 8px; }
.route {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 32px;
  padding-block: 24px; border-bottom: 1px solid var(--rule);
}
.route-who { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
.route-body { display: grid; gap: 10px; min-width: 0; }
.number { font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; line-height: 1.2; }
.number a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--purple); }
.number-label { font-size: var(--step--1); color: var(--muted); font-weight: 600; display: block; margin-bottom: 2px; }
.numbers { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.route-urgent { background: var(--urgent-tint); border-bottom: 0; padding-inline: 20px; margin-top: 20px; border-left: 4px solid var(--urgent); }
.route-urgent .route-who { color: var(--urgent); }
.note { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 640px) {
  .route { grid-template-columns: 1fr; }
  .route-urgent { padding-inline: 16px; }
}

/* Recovery assistant band */
.band { background: var(--purple-tint); }
.band .wrap { padding-block: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.band .stack { flex: 1 1 26rem; min-width: 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  background: var(--purple); color: var(--surface); border: 0; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 36rem; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: var(--step--1); }
.field .hint { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px var(--purple-tint); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 40px; }
.check input { width: 22px; height: 22px; accent-color: var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--urgent); }
.warning { border-left: 4px solid var(--purple); background: var(--purple-tint); padding: 12px 16px; max-width: 36rem; }

/* Lists of links (resources, downloads, education) */
.link-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.link-list > li { padding-block: 22px; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.link-list h3 a { color: var(--ink); text-decoration-color: var(--purple); text-decoration-thickness: 2px; }
.link-list .meta { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.more-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--step--1); font-weight: 600; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 20px 56px; }
.site-footer strong { color: var(--ink); display: block; margin-bottom: 4px; }
.site-footer .fine { flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header nav, .nav-toggle, .band, form { display: none !important; } }
.tnum { font-variant-numeric: tabular-nums; }

/* Embedded Microsoft Forms (LHSC Microsoft 365) */
.ms-form { width: 100%; max-width: 44rem; margin-top: 8px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #fff; }
.ms-form iframe { display: block; width: 100%; border: 0; }

/* Lab requisition filler */
.req-form { max-width: 40rem; gap: 28px; }
.req-form > fieldset.field { gap: 14px; }
.req-form legend h2 { margin-bottom: 4px; }
.req-form .warning { max-width: none; }
.test-list { display: grid; gap: 8px; }
.test { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--surface); cursor: pointer; min-height: 56px; }
.test input { width: 24px; height: 24px; flex: none; accent-color: var(--purple); }
.test > span { display: grid; gap: 2px; min-width: 0; }
.test .hint { font-size: var(--step--1); color: var(--muted); }
.test:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.inline-checks { display: flex; gap: 24px; }
.form-row-3 { grid-template-columns: 2fr 1fr 1.2fr; }
@media (max-width: 560px) { .form-row-3 { grid-template-columns: 1fr 1fr; } .form-row-3 .field:first-child { grid-column: 1 / -1; } }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-quiet { background: transparent; color: var(--purple); border: 1.5px solid var(--purple); }
.req-result { border: 2px solid var(--ok); border-radius: 10px; padding: 20px; display: grid; gap: 12px; background: var(--surface); }

[hidden] { display: none !important; }

/* Change-appointment page */
.clinic-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 36rem; }
.clinic-days > div { border: 1.5px solid var(--rule); border-radius: 8px; padding: 12px 14px; background: var(--surface); display: grid; gap: 2px; }
.clinic-days strong { font-family: var(--font-head); font-size: var(--step-1); }
@media (max-width: 480px) { .clinic-days { grid-template-columns: 1fr; } }
.route-body .button { font-size: var(--step-0); }

/* Long-form guide (Releasing Pelvic Pain) */
.guide-head .button-row { margin-top: 6px; }
.guide-byline { font-weight: 600; color: var(--muted); }
.toc { border-top: 2px solid var(--ink); padding-top: 18px; max-width: var(--measure); }
.toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.toc li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-block: 7px; border-bottom: 1px solid var(--rule); }
.toc .toc-num { color: var(--muted); font-size: var(--step--1); font-weight: 600; padding-top: 2px; }
@media (max-width: 520px) { .toc li { grid-template-columns: 1fr; gap: 0; } }
.guide { max-width: var(--measure); }
.guide .chapter { padding-block: clamp(36px, 6vw, 56px); border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.guide .chapter:first-child { border-top: 0; padding-top: 8px; }
.guide .chapter > * + * { margin-top: 16px; }
.guide .chapter-num { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: -8px; }
.guide h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.2rem); }
.guide h3 { margin-top: 28px; }
.guide ul, .guide ol { padding-left: 1.3em; margin-bottom: 0; }
.guide li + li { margin-top: 6px; }
.guide .signoff { font-weight: 600; }
.guide .signoff span { font-weight: 400; color: var(--muted); }
.guide .story, .guide .practice, .guide .keypoints, .guide .callout, .guide .note-box, .guide .worksheet {
  border-radius: 10px; padding: 20px clamp(16px, 4vw, 26px); margin-top: 24px;
}
.guide .story > * + *, .guide .practice > * + *, .guide .keypoints > * + *, .guide .callout > * + *, .guide .worksheet > * + * { margin-top: 12px; }
.guide .story { background: var(--purple-tint); border-left: 5px solid var(--purple); }
.guide .story h3, .guide .practice h3, .guide .keypoints h3, .guide .worksheet h3 { margin-top: 0; }
.guide .story-label, .guide .practice-label { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); margin-bottom: -6px; }
.guide .story-lesson { border-top: 1px solid var(--rule); padding-top: 12px; }
.guide .practice { background: var(--surface); border: 1.5px solid var(--purple); }
.guide .keypoints { background: var(--surface); border: 1px solid var(--rule); }
.guide .callout { background: var(--purple-tint); }
.guide .callout.warn { background: var(--urgent-tint); border-left: 5px solid var(--urgent); }
.guide .note-box { background: var(--surface); border: 1px solid var(--rule); font-size: var(--step--1); }
.guide .cycle-figure { margin: 24px 0 0; }
.guide .cycle { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 12px; counter-reset: cyc; }
.guide .cycle li { counter-increment: cyc; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px 14px 52px; position: relative; margin: 0; }
.guide .cycle li::before { content: counter(cyc); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: var(--surface); font-weight: 700; display: grid; place-items: center; }
.guide .cycle-figure figcaption { margin-top: 12px; color: var(--muted); font-style: italic; }
.guide .plan li { padding-left: 4px; }
.guide .resources li { margin-top: 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guide .grid-table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--step--1); background: var(--surface); }
.guide .grid-table th, .guide .grid-table td { border: 1px solid var(--rule); padding: 8px; text-align: left; vertical-align: top; }
.guide .grid-table td { height: 2.2em; }
.guide .grid-table thead th { background: var(--purple-tint); }
.guide .fill dt { font-weight: 600; margin-top: 14px; }
.guide .fill dd { margin: 6px 0 0; min-height: 2.6em; border-bottom: 1px solid var(--muted); }
.guide .fill dd.prefilled { min-height: 0; padding-bottom: 6px; font-style: italic; }
.guide .worksheet { background: var(--surface); border: 1px solid var(--rule); }
.download-box { background: var(--purple-tint); border-radius: 10px; padding: 20px clamp(16px, 4vw, 26px); display: grid; gap: 10px; max-width: var(--measure); }
.download-box h2 { font-size: var(--step-1); }

/* Prostate cancer treatment decision aid */
:root { --amber: #8a5200; --amber-tint: #fbf1e0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --amber: #f0b35c; --amber-tint: #33281a; } }
:root[data-theme="dark"] { --amber: #f0b35c; --amber-tint: #33281a; }
.da-keys { display: grid; gap: 12px; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); max-width: var(--wide); margin-top: 8px; }
.da-keys > div { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--purple); border-radius: 10px; padding: 14px 16px; }
.da-keys strong { display: block; margin-bottom: 2px; }
.da-steps { position: sticky; top: 0; z-index: 5; background: var(--paper); border-block: 1px solid var(--rule); }
.da-steps ol { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.da-steps ol::-webkit-scrollbar { display: none; }
.da-steps a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 12px 6px 6px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: var(--step--1); font-weight: 600; border: 1px solid var(--rule); background: var(--surface); }
.da-steps a span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--purple); color: var(--surface); font-size: 0.8rem; }
.da-part { scroll-margin-top: 56px; }
.da-part > .wrap > * + * { margin-top: 18px; }
.da-kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.da-part h2 { font-size: var(--step-3); margin-top: 2px; }
.da-lead { max-width: var(--measure); font-size: var(--step-1); color: var(--muted); }
.da-small, .da-help { font-size: var(--step--1); color: var(--muted); }
.da-empty { color: var(--muted); font-style: italic; }
.da-form { display: grid; gap: 22px; max-width: var(--measure); }
.da-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.da-q legend, .da-label { font-weight: 600; padding: 0; margin-bottom: 6px; display: block; }
.da-q .da-help { margin: -2px 0 8px; }
.da-choices { display: grid; gap: 8px; }
.da-choices-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.da-scale label, .da-yn label { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px; padding: 11px 14px; cursor: pointer; line-height: 1.4; }
.da-choices label { display: block; position: relative; padding: 11px 14px 11px 42px; background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px; cursor: pointer; line-height: 1.4; }
.da-choices label input { position: absolute; left: 14px; top: 13px; }
.da-choices label span { color: var(--muted); }
.da-choices input, .da-scale input, .da-yn input { margin: 3px 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--purple); flex: none; }
.da-choices label:has(input:checked), .da-scale label:has(input:checked), .da-yn label:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.da-input { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--rule); border-radius: 10px; padding: 10px 12px; min-height: 46px; }
.da-input:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 3px var(--purple-tint); }
#da-psa, .da-input-short { width: 9rem; }
select.da-input { width: 100%; max-width: 26rem; }
.da-text { width: 100%; resize: vertical; }
.da-unit { color: var(--muted); margin-left: 6px; }
.da-row { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); align-items: start; max-width: var(--wide); gap: 20px; }
@media (max-width: 640px) { .da-row { grid-template-columns: 1fr; } .da-choices-row { grid-template-columns: 1fr 1fr 1fr; } }
.da-shortcut { border: 1px dashed var(--rule); border-radius: 10px; padding: 12px 14px; }
.da-shortcut summary { cursor: pointer; font-weight: 600; color: var(--purple); }
.da-shortcut[open] summary { margin-bottom: 10px; }
.da-result { max-width: var(--measure); background: var(--purple-tint); border-radius: 12px; padding: 18px 20px; }
.da-result > * + * { margin-top: 10px; }
.da-badge { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); line-height: 1.15; padding-bottom: 4px; border-bottom: 4px solid currentColor; }
.da-tone-ok { color: var(--ok); } .da-tone-mid { color: var(--amber); } .da-tone-high { color: var(--urgent); }
.da-notes { padding-left: 1.2em; font-size: var(--step--1); }
.da-subpart { max-width: var(--wide); border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 30px !important; }
.da-subpart > * + * { margin-top: 12px; }
.da-subpart h3, .da-topic h3, .da-not h3, .da-aside h3, .da-lineup h3 { font-size: var(--step-2); }
.da-options, .da-not-list { display: grid; gap: 16px; max-width: var(--measure); }
.da-option { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px clamp(16px, 4vw, 22px); }
.da-option > * + * { margin-top: 10px; }
.da-option h3 { font-size: var(--step-2); }
.da-oneline { font-weight: 600; margin-top: 4px; }
.da-fit { display: inline-block; margin-top: 8px; font-size: var(--step--1); font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--purple-tint); color: var(--purple); }
.da-fit-first { background: var(--ok); color: var(--surface); }
.da-option ul { padding-left: 1.2em; margin: 0; }
.da-option li + li { margin-top: 6px; }
.da-option details { border-top: 1px solid var(--rule); padding-top: 10px; }
.da-option summary { cursor: pointer; font-weight: 700; color: var(--purple); list-style-position: outside; }
.da-option details[open] summary { margin-bottom: 8px; }
.da-dim { background: transparent; }
.da-dim h3 { color: var(--muted); }
.da-not { max-width: var(--measure); padding-top: 10px; }
.da-not > * + * { margin-top: 12px; }
.da-aside { max-width: var(--measure); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; }
.da-aside > * + * { margin-top: 8px; }
.da-aside ul { padding-left: 1.2em; margin-bottom: 0; }
.da-evidence { max-width: var(--measure); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; font-size: var(--step--1); }
.da-evidence > * + * { margin-top: 8px; }
.da-evidence h3 { font-size: var(--step-1); }
.da-topic { max-width: var(--measure); border-top: 1px solid var(--rule); padding-top: 24px; }
.da-topic > * + * { margin-top: 12px; }
.da-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 12px; }
.da-fig { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 12px; }
.da-fig-name { font-weight: 700; margin-bottom: 8px; }
.da-fig-num { font-size: var(--step--1); margin: 4px 0 10px; }
.da-fig-num:last-child { margin-bottom: 0; }
.da-icons { display: grid; grid-template-columns: repeat(10, 7px); gap: 2px; }
.da-icons i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.da-icons i.on { background: var(--purple); }
.da-icons[data-kind="bad"] i.on { background: var(--urgent); }
.da-icons[data-kind="warn"] i.on { background: var(--amber); }
.da-icons[data-kind="good"] i.on { background: var(--ok); }
.da-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.da-rows li { border-left: 3px solid var(--purple); padding-left: 12px; }
.da-values { display: grid; gap: 14px; max-width: var(--wide); }
.da-value { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; margin: 0; background: var(--surface); min-width: 0; }
.da-value legend { float: left; width: 100%; font-weight: 600; margin-bottom: 10px; padding: 0; }
.da-scale { clear: both; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.da-scale label { padding: 9px 10px; font-size: var(--step--1); align-items: center; }
.da-scale input { margin-top: 0; }
@media (min-width: 860px) { .da-values { grid-template-columns: 1fr 1fr; } }
.da-lineup { max-width: var(--wide); }
.da-lineup > * + * { margin-top: 12px; }
.da-lu-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.da-lu { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.da-lu > * + * { margin-top: 10px; }
.da-lu h4 { font-family: var(--font-head); font-size: var(--step-1); margin: 0; }
.da-lu h5 { margin: 0 0 4px; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; }
.da-lu ul { margin: 0; padding-left: 1.1em; font-size: var(--step--1); }
.da-lu li + li { margin-top: 4px; }
.da-lu-fit h5 { color: var(--ok); } .da-lu-part h5 { color: var(--amber); } .da-lu-trade h5 { color: var(--urgent); }
.da-vi { font-size: 0.78rem; font-weight: 700; color: var(--purple); background: var(--purple-tint); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.da-yn { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.da-yn label { padding: 7px 12px; align-items: center; }
.da-yn input { margin: 0; }
.da-sure .da-help { margin-top: 10px; }
.da-checks label { font-size: var(--step--1); }
.da-summary { max-width: var(--measure); background: var(--surface); border: 2px solid var(--purple); border-radius: 12px; padding: 20px; }
.da-summary > * + * { margin-top: 12px; }
.da-sum-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.da-sum-head h3 { font-size: var(--step-1); }
.da-sum-head p { color: var(--muted); font-size: var(--step--1); }
.da-sum { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.da-sum dt { font-weight: 700; } .da-sum dd { margin: 0; }
@media (max-width: 520px) { .da-sum { grid-template-columns: 1fr; gap: 2px; } .da-sum dd { margin-bottom: 10px; } }
.da-summary h4 { font-size: var(--step-0); margin: 0; }
.da-summary ul { padding-left: 1.2em; margin-bottom: 0; }
.da-actions { margin-top: 16px !important; }
.da-sources { max-width: var(--measure); font-size: var(--step--1); color: var(--muted); }
.da-sources summary { cursor: pointer; font-weight: 600; color: var(--purple); }
.da-sources ul { padding-left: 1.2em; }
@media print {
  .da-steps, .site-header, .site-footer, .skip { display: none !important; }
  .da-icons i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  details > *:not(summary) { display: block !important; }
  .da-print-mode main > *:not(#part-summary),
  .da-print-mode #part-summary > .wrap > *:not(.da-summary) { display: none !important; }
  .da-print-mode .da-summary { border: 0; padding: 0; }
  .da-print-mode body { background: #fff; color: #000; }
}
.da-topic, .da-option, .da-subpart { scroll-margin-top: 64px; }
.da-agenote { background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: 8px; padding: 10px 14px; font-size: var(--step--1); }
.da-lu-age { background: var(--amber-tint); border-radius: 8px; padding: 8px 12px; font-size: var(--step--1); }

/* BEGIN rebuilt page styles (generated from each page's extra.css) */
/* cystectomy-prehab */
/* Cystectomy prehab page (prefix pre-) */
/* Guard: an empty first rule, so a stray token before this file (see NOTES.md) can't swallow a real rule. */
.pre-css-guard {}
.pre-urgent { max-width: var(--measure); background: var(--urgent-tint); border-left: 5px solid var(--urgent); border-radius: 10px; padding: 18px clamp(16px, 4vw, 22px); }
.pre-urgent > * + * { margin-top: 10px; }
.pre-urgent h3 { font-size: var(--step-1); color: var(--urgent); }
.pre-urgent ul { padding-left: 1.2em; margin-bottom: 0; }
.pre-urgent li + li { margin-top: 4px; }
.pre-part .da-topic .pre-urgent { margin-top: 16px; }

.pre-daily { max-width: var(--measure); }
.pre-ex { max-width: var(--measure); }
.pre-ex .da-option h3 { font-size: var(--step-1); }
.pre-steps { padding-left: 1.3em; margin: 0; }
.pre-steps li + li { margin-top: 10px; }
.pre-foods li { padding-block: 2px; }
.pre-follow { background: var(--purple-tint); border-radius: 8px; padding: 12px 16px; }
.pre-part .da-topic ul:not(.da-rows), .pre-part .da-topic ol { padding-left: 1.3em; margin-bottom: 0; }
.pre-part .da-topic ul:not(.da-rows) li + li { margin-top: 6px; }
.pre-part .da-shortcut { max-width: var(--measure); }
.pre-part .da-shortcut > * + * { margin-top: 10px; }
.pre-part .da-shortcut ul, .pre-part .da-shortcut ol { padding-left: 1.3em; margin-bottom: 0; }
.pre-part .da-shortcut li + li { margin-top: 6px; }
.pre-part .da-aside { max-width: var(--measure); }
.pre-bring ul { padding-left: 1.2em; margin: 0; }
.pre-bring li + li { margin-top: 6px; }
.pre-bring { gap: 6px 40px; }
.pre-bring ul + ul { margin-top: 0; }

/* The 4-week checklist */
.pre-tracker { max-width: 46rem; display: grid; gap: 14px; }
.pre-tracker-head { display: grid; gap: 8px; }
.pre-tracker-head h3 { font-size: var(--step-2); }
.pre-start { display: grid; gap: 4px; justify-items: start; }
.pre-start .da-label { margin-bottom: 0; }
.pre-start .da-input { min-width: 12rem; }
.pre-week { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.pre-week > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 14px 16px; min-height: 52px; }
.pre-week > summary::-webkit-details-marker { display: none; }
.pre-week > summary::before { content: "+"; font-weight: 700; color: var(--purple); width: 1em; flex: none; }
.pre-week[open] > summary::before { content: "−"; }
.pre-week-name { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; flex: 1 1 12rem; }
.pre-week-count { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.pre-week[open] > summary { border-bottom: 1px solid var(--rule); }
.pre-week-body { padding: 14px 16px 18px; display: grid; gap: 14px; }
.pre-goals { margin: 0; padding-left: 1.2em; }
.pre-goals li + li { margin-top: 4px; }
.pre-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: var(--step--1); }
.pre-grid th, .pre-grid td { border-bottom: 1px solid var(--rule); padding: 0; text-align: center; vertical-align: middle; }
.pre-grid thead th { font-weight: 700; padding: 6px 0; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.pre-grid th:first-child { width: 25%; text-align: left; }
.pre-grid tbody th { font-weight: 400; padding: 6px 4px 6px 0; line-height: 1.25; }
.pre-dayn { display: block; font-weight: 700; }
.pre-date { display: block; color: var(--muted); font-size: 0.8rem; }
.pre-tick { display: flex; align-items: center; justify-content: center; min-height: 48px; cursor: pointer; border-radius: 8px; margin: 2px; }
.pre-tick input { width: 24px; height: 24px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.pre-tick:has(input:checked) { background: var(--purple-tint); }
.pre-grid tr.pre-today th, .pre-grid tr.pre-today td { background: var(--amber-tint); }
.pre-grid tr.pre-today .pre-dayn::after { content: " · today"; font-weight: 600; color: var(--amber); }
.pre-tasks-head { font-size: var(--step-0); font-family: var(--font-body); margin: 0; }
.pre-tasks { display: grid; gap: 8px; }
.pre-task { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: 10px; cursor: pointer; line-height: 1.4; }
.pre-task input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ok); }
.pre-task:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.pre-task:has(input:checked) span { color: var(--muted); }
.pre-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pre-selfcheck { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.pre-selfcheck h3 { font-size: var(--step-1); }
.pre-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pre-result-col { display: grid; gap: 4px; align-content: start; min-width: 0; }
.pre-result-h { font-weight: 700; color: var(--purple); }
.pre-result-col .da-label { margin: 6px 0 0; font-size: var(--step--1); }
.pre-in { width: 100%; }
@media (max-width: 420px) { .pre-results { gap: 10px; } .pre-selfcheck { padding: 14px 12px; } }
.pre-actions { margin-top: 4px; }
.pre-status:empty { display: none; }

.pre-downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); max-width: var(--wide); }
.pre-downloads .download-box { align-content: start; }
.pre-downloads .button { margin-top: 4px; }

@media print {
  .pre-actions, .pre-start, .pre-status, .pre-part .button { display: none !important; }
  .pre-week, .pre-selfcheck { break-inside: avoid; border-color: #999; }
  .pre-tick:has(input:checked), .pre-task:has(input:checked) { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pre-print-mode main > *:not(#part-plan),
  .pre-print-mode #part-plan > .wrap > *:not(.pre-tracker) { display: none !important; }
  .pre-print-mode body { background: #fff; color: #000; }
  .pre-print-mode .pre-week { break-before: page; }
  .pre-print-mode .pre-week:first-of-type { break-before: auto; }
}
.pre-nw { white-space: nowrap; }
.pre-part p + .da-rows { margin-top: 10px; }
.pre-start .da-input { max-width: 16rem; }
.pre-dates { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.pre-plan-note { background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: 8px; padding: 10px 14px; font-size: var(--step--1); max-width: var(--measure); }
.pre-rest { color: var(--muted); font-size: 0.78rem; }
.pre-rest span { display: inline-block; padding: 2px 0; }
.pre-tag { display: block; font-size: 0.75rem; font-weight: 700; color: var(--amber); }
.pre-tag:empty { display: none; }
.pre-grid tr.pre-taper th { box-shadow: inset 4px 0 0 var(--amber); padding-left: 8px; }
.pre-grid tr.pre-after th, .pre-grid tr.pre-after td { opacity: 0.5; }
.pre-grid tr.pre-after .pre-tag { opacity: 1; }
.pre-key { max-width: var(--measure); background: var(--purple-tint); border-left: 4px solid var(--purple); border-radius: 8px; padding: 12px 16px; }

/* intravesical-therapy */
/* Bladder treatments (intravesical therapy) page: only what the shared classes don't cover. */
.guide .callout .ivt-callout-h { font-size: var(--step-1); margin-top: 0; }
.guide .callout ul { margin-top: 10px; }
.ivt-small { font-size: var(--step--1); color: var(--muted); }
.da-lu .ivt-small { margin-top: 2px; }
.da-lu p { max-width: none; }
.da-lu h4 + h5, .da-lu .ivt-small + h5 { margin-top: 10px; }
.da-lu ul + h5 { margin-top: 14px; }
.da-option .da-figs { max-width: 22rem; margin-top: 10px; }
.ivt-faq summary { padding-block: 4px; }
.ivt-faq details + details { margin-top: 10px; }
.ivt-faq details p { margin-top: 8px; }
.ivt-choices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ivt-choices-4 label { padding-left: 38px; }
@media (max-width: 640px) { .ivt-choices-4 { grid-template-columns: 1fr 1fr; } }
.ivt-date { max-width: 14rem; }
.da-subpart > .da-rows { margin-top: 14px; max-width: var(--measure); }
.ivt-faq details:first-child { border-top: 0; padding-top: 0; }
.ivt-cal .da-sum { margin-top: 14px; }

/* Calendar output */
.ivt-cal { max-width: 44rem; }
.ivt-est { background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: 8px; padding: 10px 14px; }
.ivt-legend { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ivt-key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--purple); }
.ivt-key-cy { background: var(--ok); margin-left: 8px; }
.da-summary h4.ivt-year { font-family: var(--font-head); font-size: var(--step-1); margin-top: 22px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.ivt-list { list-style: none; margin: 0 !important; padding: 0; }
.ivt-ev { display: grid; grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr); gap: 2px 14px; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--rule); border-left: 4px solid var(--purple); }
.ivt-ev-cy { border-left-color: var(--ok); background: var(--surface); }
.ivt-ev-cy .ivt-when { color: var(--ok); }
.ivt-when { font-weight: 700; font-variant-numeric: tabular-nums; }
.ivt-what { min-width: 0; }
.ivt-sub { display: block; font-size: var(--step--1); color: var(--muted); }
.ivt-after { font-size: var(--step--1); color: var(--muted); }
.ivt-print-only { display: none; }
@media (max-width: 520px) { .ivt-ev { grid-template-columns: 1fr; } }

@media print {
  .ivt-print-mode main > *:not(#part-calendar),
  .ivt-print-mode #part-calendar > .wrap > *:not(#ivt-cal) { display: none !important; }
  .ivt-print-mode #part-calendar { padding: 0; border: 0; }
  .ivt-print-mode .ivt-cal { border: 0; padding: 0; max-width: none; }
  .ivt-print-mode body { background: #fff; color: #000; }
  .ivt-print-only { display: block; }
  .ivt-print-foot { margin-top: 16px; border-top: 1px solid #999; padding-top: 8px; font-size: 10pt; }
  .ivt-ev { break-inside: avoid; padding-block: 5px; }
  .ivt-ev, .ivt-key, .ivt-est { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ivt-year { break-after: avoid; }
}

/* male-pelvic-pain */
/* Male pelvic pain page (education/male-pelvic-pain) */
.mpp-guide { border-left: 5px solid var(--purple); margin-top: 8px; }
.mpp-guide h2 { font-size: var(--step-2); }
.mpp-guide .da-kicker { margin-bottom: -4px; }
.mpp-urgent-line { font-size: var(--step--1); background: var(--urgent-tint); border-left: 4px solid var(--urgent); border-radius: 8px; padding: 10px 14px; max-width: var(--measure); }
.mpp-urgent-line a { color: var(--urgent); font-weight: 700; }

.mpp-h3 { font-size: var(--step-2); margin-top: 30px !important; }
.mpp-list { padding-left: 1.2em; margin: 0; max-width: var(--measure); }
.mpp-list li + li { margin-top: 8px; }
.da-part .da-rows { max-width: var(--measure); }
.mpp-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); max-width: var(--wide); }
.mpp-two > .da-aside { max-width: none; }
.da-aside h3 + p, .da-aside h3 + ul { margin-top: 8px; }
.da-aside li + li { margin-top: 6px; }

.mpp-more { color: var(--ink); font-size: var(--step-0); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; background: var(--surface); }
.mpp-more[open] > summary { margin-bottom: 10px; }
.mpp-more > * + * { margin-top: 10px; }
.mpp-more ul { margin-bottom: 0; }
.mpp-more li + li { margin-top: 6px; }

.mpp-base { border: 1.5px solid var(--purple); }
.mpp-upoint { max-width: var(--wide); grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); align-items: start; }
.mpp-upoint .da-option header { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
.mpp-upoint .da-option header > :not(.mpp-letter) { grid-column: 2; }
.mpp-letter { grid-row: 1 / span 2; align-self: start; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: var(--surface); font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1; }
.mpp-upoint .da-option h3 { font-size: var(--step-1); }
.mpp-upoint .da-oneline { font-weight: 400; color: var(--muted); }
.mpp-upoint .da-option p + p { margin-top: 8px; }

.mpp-cards { max-width: var(--wide); }
.mpp-cards > div a { display: inline-block; margin-top: 4px; font-weight: 600; font-size: var(--step--1); }

.mpp-clinics .da-lu > * + * { margin-top: 6px; }
.mpp-tel { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--step-1); }
.mpp-tel a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--purple); }

/* NIH-CPSI tracker */
.mpp-cpsi { gap: 26px; }
.mpp-group { border: 1px solid var(--rule); border-radius: 12px; padding: 14px clamp(14px, 4vw, 20px) 18px; background: var(--surface); display: grid; gap: 22px; }
.mpp-group > legend { padding: 0 6px; margin-left: -6px; }
.mpp-domain { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.mpp-group .da-yn label, .mpp-group .da-choices label { background: var(--paper); }
.mpp-group .da-yn:last-child { border-bottom: 0; }
.mpp-opts { grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr)); }
.mpp-opts label { padding-right: 38px; }
.mpp-opts label .mpp-pts { position: absolute; right: 12px; top: 11px; font-size: 0.8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.mpp-scale11 { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.mpp-scale11 label { position: relative; display: grid; place-items: center; min-height: 46px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--paper); cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; }
.mpp-scale11 input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mpp-scale11 label:has(input:checked) { background: var(--purple); border-color: var(--purple); color: var(--surface); }
.mpp-scale11 label:has(input:focus-visible) { outline: 3px solid var(--purple); outline-offset: 2px; }
.mpp-scale-ends { display: flex; justify-content: space-between; gap: 12px; font-size: var(--step--1); color: var(--muted); margin-top: 6px; }
.mpp-scale-ends span:last-child { text-align: right; max-width: 12rem; }
@media (max-width: 380px) { .mpp-scale11 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.mpp-subs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mpp-subs > div { background: var(--surface); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mpp-subs dt { font-size: var(--step--1); color: var(--muted); font-weight: 600; line-height: 1.25; }
.mpp-subs dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.mpp-subs dd small { font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.mpp-subs .mpp-total { background: var(--purple); color: var(--surface); }
.mpp-subs .mpp-total dt, .mpp-subs .mpp-total dd small { color: var(--surface); opacity: 0.9; }
@media (max-width: 420px) { .mpp-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mpp-progress { font-size: var(--step--1); color: var(--muted); }

.mpp-save { max-width: var(--measure); display: grid; gap: 12px; }
.mpp-save .da-input { width: 12rem; max-width: 100%; }
.mpp-status { font-weight: 600; color: var(--ok); min-height: 1.6em; }

.mpp-history { max-width: var(--measure); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px clamp(14px, 4vw, 20px); }
.mpp-history > * + * { margin-top: 12px; }
.mpp-history h3 { font-size: var(--step-1); }
.mpp-chart { width: 100%; height: auto; display: block; color: var(--purple); overflow: visible; }
.mpp-chart .grid { stroke: var(--rule); stroke-width: 1; }
.mpp-chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--font-body); }
.mpp-chart .line { fill: none; stroke: var(--purple); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mpp-chart .dot { fill: var(--purple); stroke: var(--surface); stroke-width: 2; }
.mpp-chart .goal { stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 5 4; }
.mpp-chart .goal-label { fill: var(--ok); font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.mpp-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.mpp-table th, .mpp-table td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--rule); }
.mpp-table th:first-child, .mpp-table td:first-child { text-align: left; }
.mpp-table thead th { color: var(--muted); font-weight: 600; }
.mpp-table td:nth-child(5) { font-weight: 700; }
.mpp-del { font: inherit; font-size: 0.8rem; color: var(--urgent); background: none; border: 0; padding: 4px; cursor: pointer; text-decoration: underline; }
.mpp-change { border-left: 3px solid var(--purple); padding-left: 12px; }

/* Urgent help */
.mpp-urgent { max-width: var(--measure); background: var(--urgent-tint); border-left: 5px solid var(--urgent); border-radius: 10px; padding: 18px clamp(16px, 4vw, 22px); }
.mpp-urgent > * + * { margin-top: 10px; }
.mpp-urgent h3 { color: var(--urgent); font-size: var(--step-1); }
.mpp-urgent ul { padding-left: 1.2em; margin-bottom: 0; }
.mpp-urgent li + li { margin-top: 6px; }
.mpp-urgent.mpp-soon { background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--amber); }
.mpp-urgent.mpp-soon h3 { color: var(--ink); }

@media print {
  .mpp-print-mode main > *:not(#tracker),
  .mpp-print-mode #tracker > .wrap > *:not(.mpp-history):not(h2) { display: none !important; }
  .mpp-print-mode .mpp-history button, .mpp-print-mode .mpp-history .button-row { display: none !important; }
  .mpp-print-mode body { background: #fff; color: #000; }
}

/* psa-decision-aid */
/* Raised PSA decision aid (psa-decision-aid): only what the shared decision-aid classes don't cover */
details.da-option { max-width: var(--measure); }
details.da-option > summary { cursor: pointer; font-weight: 700; color: var(--purple); list-style-position: inside; }
details.da-option[open] > summary { margin-bottom: 8px; }
.da-part .da-topic > details.da-option, .da-subpart > details.da-option { margin-top: 16px; }

/* Urgent box */
.psa-urgent { background: var(--urgent-tint); border: 0; border-left: 5px solid var(--urgent); }
.psa-urgent h3 { color: var(--urgent); }

/* The usual path: numbered steps joined by a line */
.psa-path { list-style: none; margin: 0; padding: 0; max-width: var(--measure); counter-reset: psa-step; }
.psa-path li { counter-increment: psa-step; position: relative; padding: 0 0 20px 52px; }
.psa-path li::before { content: counter(psa-step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: var(--surface); font-weight: 700; display: grid; place-items: center; }
.psa-path li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--rule); }
.psa-path li:last-child { padding-bottom: 0; }
.psa-path li:last-child::after { display: none; }
.psa-path strong { display: block; font-family: var(--font-head); font-size: var(--step-1); line-height: 1.25; padding-top: 3px; margin-bottom: 2px; }
.psa-path a { font-size: var(--step--1); font-weight: 600; white-space: nowrap; }

/* "Where am I" cards */
.psa-stages { display: grid; gap: 10px; max-width: var(--measure); }
.psa-stage { padding-block: 14px; }
.psa-stage ul { padding-left: 1.2em; margin: 0; }
.psa-stage li + li { margin-top: 6px; }
.psa-stages.psa-picked .psa-stage { border-color: var(--purple); border-width: 2px; }

/* Small tables (life expectancy, PI-RADS) */
.psa-table { border-collapse: collapse; width: 100%; font-size: var(--step--1); background: var(--surface); }
.psa-table caption { text-align: left; color: var(--muted); padding-bottom: 6px; }
.psa-table th, .psa-table td { border: 1px solid var(--rule); padding: 7px 9px; text-align: left; vertical-align: top; }
.psa-table thead th { background: var(--purple-tint); }
.psa-pirads { max-width: 30rem; }
.psa-pirads tbody th { width: 5.5rem; text-align: center; font-size: var(--step-0); }

/* PSA density calculator */
.psa-calc { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); max-width: var(--measure); gap: 18px 24px; }
.psa-calc input[type="text"] { width: 8rem; }
.psa-calc .da-q .da-help { margin: 6px 0 0; }
.psa-wide { grid-column: 1 / -1; }
@media (min-width: 520px) { .psa-choices-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.psa-psad { font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.psa-psad-band { display: inline-block; margin-left: 10px; font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; padding: 3px 10px; border-radius: 8px; vertical-align: middle; background: var(--surface); }
.psa-band-low { color: var(--ok); } .psa-band-mid { color: var(--amber); } .psa-band-high { color: var(--urgent); }
.psa-scale { position: relative; height: 12px; border-radius: 6px; max-width: 26rem;
  background: linear-gradient(90deg, var(--ok) 0 33.3%, var(--amber) 33.3% 50%, var(--urgent) 50% 100%); opacity: 0.85; }
.psa-scale i { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.psa-scale-labels { position: relative; height: 1.3em; max-width: 26rem; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.psa-scale-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.psa-scale-labels span:first-child { transform: none; }
.psa-scale-labels span:last-child { transform: translateX(-100%); }

/* Grade Groups */
.psa-grades { display: grid; gap: 8px; max-width: var(--measure); }
.psa-grade { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--purple); border-radius: 10px; padding: 12px 16px; }
.psa-grade > * + * { margin-top: 4px; }
.psa-grade-name { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
.psa-grade-name span { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.psa-grade-1 { border-left-color: var(--ok); }
.psa-grade-2, .psa-grade-3 { border-left-color: var(--amber); }
.psa-grade-4, .psa-grade-5 { border-left-color: var(--urgent); }

@media print {
  .psa-path li::before { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.psa-tel { white-space: nowrap; }
.psa-sub { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); }

/* uti */
/* Urinary tract infections page (education/uti): only what the shared classes don't cover. */
.uti-urgent-line { font-size: var(--step--1); background: var(--urgent-tint); border-left: 4px solid var(--urgent); border-radius: 8px; padding: 10px 14px; max-width: var(--measure); }
.uti-urgent-line a { color: var(--urgent); font-weight: 700; }

.uti-h3 { font-size: var(--step-2); margin-top: 30px !important; }
.uti-h3.uti-first { margin-top: 8px !important; }
.uti-list { padding-left: 1.2em; margin: 0; max-width: var(--measure); }
.uti-list li + li { margin-top: 8px; }
.uti-two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); max-width: var(--wide); }
.uti-two > .da-aside { max-width: none; }
.uti-two .da-aside h3 { font-size: var(--step-1); }
.uti-two .da-aside h3 + p, .uti-two .da-aside h3 + ul { margin-top: 8px; }
.uti-two .da-aside p + h3 { margin-top: 18px; }
.uti-two .da-aside li + li { margin-top: 6px; }
.uti-kidney { border-left: 5px solid var(--urgent); }

.uti-more { color: var(--ink); font-size: var(--step-0); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; background: var(--surface); }
.uti-more[open] > summary { margin-bottom: 10px; }
.uti-more > * + * { margin-top: 10px; }
.uti-more ul, .uti-more ol { margin-bottom: 0; padding-left: 1.3em; }
.uti-more li + li { margin-top: 6px; }
.da-part .da-rows { max-width: var(--measure); }
.da-option .da-oneline { color: var(--muted); font-weight: 600; }
.da-option header > * + * { margin-top: 4px; }
.da-option header .da-fit { margin-top: 8px; }
.da-option details > * + * { margin-top: 8px; }
.uti-fit-no { background: var(--urgent-tint); color: var(--urgent); }
.uti-fit-weak { background: var(--amber-tint); color: var(--amber); }
.uti-opts .da-option { scroll-margin-top: 64px; }

/* "First" step box in prevention */
.uti-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; max-width: var(--measure); background: var(--purple-tint); border-radius: 12px; padding: 18px clamp(16px, 4vw, 22px); }
.uti-step > div > * + * { margin-top: 8px; }
.uti-step h3 { font-size: var(--step-1); }
.uti-step-num { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); color: var(--surface); background: var(--purple); border-radius: 8px; padding: 2px 10px; align-self: start; }
@media (max-width: 420px) { .uti-step { grid-template-columns: 1fr; } .uti-step-num { justify-self: start; } }

/* Simple bar pairs: trial results */
.uti-bars { display: grid; gap: 6px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.uti-bars-title { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.uti-bar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 2.6rem; gap: 10px; align-items: center; font-size: var(--step--1); }
.uti-bar-label { line-height: 1.25; }
.uti-bar-track { display: block; height: 14px; border-radius: 7px; background: var(--rule); overflow: hidden; }
.uti-bar-fill { display: block; height: 100%; width: var(--v, 0%); min-width: 4px; background: var(--purple); border-radius: 7px; }
.uti-bar-fill.uti-bar-base { background: var(--muted); }
.uti-bar-num { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 420px) { .uti-bar { grid-template-columns: minmax(0, 1fr) 2.6rem; } .uti-bar-track { grid-column: 1 / -1; grid-row: 2; } .uti-bar-label { grid-column: 1; } }

.uti-uro { border-left: 5px solid var(--purple); margin-top: 30px !important; }
.uti-uro li + li { margin-top: 6px; }

/* Where to get care: ladder */
.uti-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: var(--measure); }
.uti-rung { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--purple); border-radius: 10px; padding: 14px clamp(14px, 4vw, 20px); }
.uti-rung > * + * { margin-top: 6px; }
.uti-rung-when { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.uti-rung-er { border-left-color: var(--urgent); background: var(--urgent-tint); }
.uti-rung-er .uti-rung-when { color: var(--urgent); }
.uti-rung-today { border-left-color: var(--amber); }
.uti-rung-soon { border-left-color: var(--purple); }
.uti-rung-pharm { border-left-color: var(--ok); }

/* Triage guide */
.uti-triage { background: var(--surface); border: 1.5px solid var(--purple); border-radius: 12px; padding: 18px clamp(14px, 4vw, 22px); max-width: var(--measure); }
.uti-disclaim { font-size: var(--step--1); background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: 8px; padding: 10px 14px; }
.uti-triage .da-choices label, .uti-plan .da-choices label { background: var(--paper); }
.uti-triage .da-choices label:has(input:checked), .uti-plan .da-choices label:has(input:checked) { background: var(--purple-tint); }
.uti-none { font-style: italic; }
.uti-result { background: var(--paper); border: 2px solid var(--purple); }
.uti-result.uti-res-er { border-color: var(--urgent); background: var(--urgent-tint); }
.uti-result.uti-res-today { border-color: var(--amber); }
.uti-result.uti-res-pharm, .uti-result.uti-res-none { border-color: var(--ok); }
.uti-result h3 { font-size: var(--step-1); }
.uti-result ul { padding-left: 1.2em; margin-bottom: 0; }
.uti-result li + li { margin-top: 6px; }
.uti-why { font-size: var(--step--1); color: var(--muted); border-top: 1px solid var(--rule); padding-top: 10px; }
.uti-call { font-size: var(--step-1); font-weight: 700; }
.uti-call a { color: inherit; }

/* Prevention plan */
.uti-plan { max-width: var(--measure); gap: 18px; }
.uti-group { border: 1px solid var(--rule); border-radius: 12px; padding: 14px clamp(14px, 4vw, 20px) 18px; background: var(--surface); display: grid; gap: 18px; }
.uti-group-h { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple); }
.uti-row3 label { padding-left: 38px; }
@media (max-width: 480px) { .uti-row3 { grid-template-columns: 1fr; } }
.uti-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.da-choices label .uti-tag { display: inline-block; margin-left: 6px; font-size: 0.78rem; font-weight: 700; color: var(--ok); background: var(--paper); border: 1px solid var(--ok); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.uti-log-rows { display: grid; gap: 12px; }
.uti-log-rows:empty { display: none; }
.uti-log { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; background: var(--paper); display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); }
.uti-log .da-label { font-size: var(--step--1); margin-bottom: 4px; }
.uti-log .da-input { width: 100%; }
.uti-log-del { justify-self: start; align-self: end; font: inherit; font-size: var(--step--1); color: var(--urgent); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; }
.uti-status { font-weight: 600; color: var(--ok); min-height: 1.4em; }
.uti-summary h4 { margin-top: 6px; }
.uti-summary .uti-sum-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.uti-summary .uti-sum-table th, .uti-summary .uti-sum-table td { border-bottom: 1px solid var(--rule); padding: 6px 4px; text-align: left; vertical-align: top; }
.uti-summary .uti-sum-table thead th { color: var(--muted); font-weight: 600; }
.uti-sum-lines { border-bottom: 1px solid var(--muted); height: 1.8em; }
.uti-print-only { display: none; }
@media (max-width: 560px) {
  .uti-summary .uti-sum-table thead { display: none; }
  .uti-summary .uti-sum-table tr { display: block; border-bottom: 1px solid var(--rule); padding: 6px 0; }
  .uti-summary .uti-sum-table td { display: block; border: 0; padding: 2px 0; }
  .uti-summary .uti-sum-table td::before { content: attr(data-h) ": "; font-weight: 700; }
}

/* Urgent help */
.uti-urgent { max-width: var(--measure); background: var(--urgent-tint); border-left: 5px solid var(--urgent); border-radius: 10px; padding: 18px clamp(16px, 4vw, 22px); }
.uti-urgent > * + * { margin-top: 10px; }
.uti-urgent h3 { color: var(--urgent); font-size: var(--step-1); }
.uti-urgent ul { padding-left: 1.2em; margin-bottom: 0; }
.uti-urgent li + li { margin-top: 6px; }
.uti-urgent.uti-soon { background: var(--surface); border: 1px solid var(--rule); border-left: 5px solid var(--amber); }
.uti-urgent.uti-soon h3 { color: var(--ink); }

/* For clinicians */
.uti-clin { background: var(--surface); border-top: 4px solid var(--purple) !important; }
.uti-keys { max-width: var(--measure); padding-left: 1.4em; margin: 0; }
.uti-keys li + li { margin-top: 12px; }
.uti-keys li::marker { font-weight: 700; color: var(--purple); }
.uti-clin .da-aside { background: var(--paper); }
.uti-clin .da-aside h3, .uti-clin .uti-urgent h3 { font-size: var(--step-1); }
.uti-clin .da-aside li + li { margin-top: 6px; }
.uti-clin-refer { display: grid; gap: 16px; max-width: var(--wide); grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); align-items: start; }
.uti-clin-refer > * { max-width: none; }
.uti-noref { border-left: 5px solid var(--ok); }
.uti-clin-more { display: grid; gap: 12px; max-width: var(--measure); }
.uti-clin .uti-more { background: var(--paper); }

@media print {
  .uti-print-mode main > *:not(#plan),
  .uti-print-mode #plan > .wrap > *:not(#uti-summary) { display: none !important; }
  .uti-print-mode #plan { padding: 0; border: 0; }
  .uti-print-mode .uti-summary { border: 0; padding: 0; max-width: none; }
  .uti-print-mode body { background: #fff; color: #000; }
  .uti-print-only { display: block; }
  .uti-summary .uti-sum-table thead { display: table-header-group; }
  .uti-summary .uti-sum-table tr { display: table-row; }
  .uti-summary .uti-sum-table td { display: table-cell; border-bottom: 1px solid #999; }
  .uti-summary .uti-sum-table td::before { content: none; }
  .uti-bar-fill, .uti-rung { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
/* END rebuilt page styles */
