/* Long-form clinical copy. Add .ds-prose to a wrapper and write plain HTML inside —
   no per-element classes. Everything below is scoped, so it cannot leak into components. */

.ds-prose{font-family:var(--font-body);font-size:var(--text-body);line-height:var(--leading-body);color:var(--text-secondary);max-width:var(--measure);text-wrap:pretty}
.ds-prose>*+*{margin-top:var(--space-5)}

/* Headings. Display face, light weight, tight leading. Generous space above, close below —
   a heading belongs to the copy that follows it. */
.ds-prose h2,.ds-prose h3,.ds-prose h4{font-family:var(--font-display);font-weight:var(--weight-display-light);color:var(--ink);line-height:var(--leading-heading);letter-spacing:var(--tracking-normal);max-width:28ch}
.ds-prose h2{font-size:var(--text-display-md)}
.ds-prose h3{font-size:var(--text-display-sm)}
.ds-prose h4{font-family:var(--font-body);font-size:var(--text-body);font-weight:var(--weight-body-bold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--deep-sage)}
.ds-prose>*+h2{margin-top:var(--space-12)}
.ds-prose>*+h3{margin-top:var(--space-10)}
.ds-prose>*+h4{margin-top:var(--space-8)}
.ds-prose>h2+*,.ds-prose>h3+*,.ds-prose>h4+*{margin-top:var(--space-4)}

/* Lead paragraph — the first paragraph after a heading block, opted into. */
.ds-prose .lead{font-size:var(--text-body-lg);color:var(--ink)}

/* Lists. Sage markers, hanging indent, tighter internal rhythm than between blocks. */
.ds-prose ul,.ds-prose ol{padding-left:var(--space-5);margin-block:0}
.ds-prose li+li{margin-top:var(--space-2)}
.ds-prose li::marker{color:var(--sage)}
.ds-prose li>ul,.ds-prose li>ol{margin-top:var(--space-2)}

/* Definition lists — fee schedules, item numbers, plain term/value pairs. */
.ds-prose dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;margin:0}
.ds-prose dt,.ds-prose dd{padding-block:var(--space-3);border-bottom:var(--rule-hairline);margin:0}
.ds-prose dt{color:var(--ink)}
.ds-prose dd{text-align:right;font-variant-numeric:tabular-nums;padding-left:var(--space-6)}

/* Links: underline present by default — in clinical copy a link must be visible without hover. */
.ds-prose a{color:var(--deep-sage);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--sage);transition:text-decoration-color var(--dur-quick) var(--ease-inout),color var(--dur-quick) var(--ease-inout)}
.ds-prose a:hover{color:var(--link-hover);text-decoration-color:currentColor}

.ds-prose strong{color:var(--ink);font-weight:var(--weight-body-bold)}
.ds-prose em{font-family:var(--font-serif-text);font-style:italic;font-size:1.05em}

/* Pull quote — patient voice or a clinical principle. Never for emphasis of ordinary copy. */
.ds-prose blockquote{margin:var(--space-10) 0;padding-left:var(--space-6);border-left:2px solid var(--dusty-rose);font-family:var(--font-display);font-weight:var(--weight-display-light);font-size:var(--text-display-sm);line-height:var(--leading-tight);color:var(--ink);max-width:32ch}
.ds-prose blockquote cite{display:block;margin-top:var(--space-3);font-family:var(--font-body);font-style:normal;font-size:var(--text-caption);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--text-muted)}

/* Aside — practical notes that sit beside the argument, not inside it. */
.ds-prose .note{background:var(--surface-sunken);border-left:2px solid var(--sage);padding:var(--space-5) var(--space-6);font-size:var(--text-body-sm)}
.ds-prose .note>*+*{margin-top:var(--space-3)}

.ds-prose hr{border:0;border-top:var(--rule-hairline);margin-block:var(--space-12)}
.ds-prose figure{margin:var(--space-10) 0;max-width:none}
.ds-prose figcaption{margin-top:var(--space-3);font-size:var(--text-caption);color:var(--text-muted)}
.ds-prose img{max-width:100%;height:auto;display:block;border-radius:var(--radius-lg)}

/* Tables — fee schedules, comparisons. Scrolls rather than shrinking below --bp-md. */
.ds-prose table{width:100%;border-collapse:collapse;font-size:var(--text-body-sm)}
.ds-prose th{text-align:left;font-weight:400;font-size:var(--text-caption);letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;color:var(--text-muted);padding:0 var(--space-4) var(--space-3) 0;border-bottom:var(--rule-strong)}
.ds-prose td{padding:var(--space-3) var(--space-4) var(--space-3) 0;border-bottom:var(--rule-hairline);vertical-align:top}
.ds-prose th:last-child,.ds-prose td:last-child{padding-right:0}
.ds-prose td:not(:first-child){font-variant-numeric:tabular-nums}

/* Wide variant — for a prose column that must hold a table or figure at full container width. */
.ds-prose--wide{max-width:none}
.ds-prose--wide>p,.ds-prose--wide>ul,.ds-prose--wide>ol,.ds-prose--wide>blockquote{max-width:var(--measure)}

/* Reverse — on Deep Sage panels only. */
.ds-prose--reverse{color:var(--mushroom-40)}
.ds-prose--reverse h2,.ds-prose--reverse h3,.ds-prose--reverse strong,.ds-prose--reverse blockquote{color:var(--cream)}
.ds-prose--reverse h4{color:var(--sage)}
.ds-prose--reverse a{color:var(--cream);text-decoration-color:var(--sage)}
.ds-prose--reverse a:hover{text-decoration-color:var(--cream)}

@media print{.ds-prose{color:var(--ink);max-width:none}.ds-prose a{color:var(--ink);text-decoration-color:var(--mushroom)}}
