/* Measured Sheets Read primitives. Loaded after site.css; adapters own layout.
   No legacy documentation rule is removed before its route adapter lands. */
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) { min-inline-size: 0; font-size: var(--sc-body); line-height: 1.7; }
body[data-sc-ui="measured-sheets"] .sc-article { max-inline-size: 72ch; }
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) :is(h2, h3) {
  margin-block: 32px 12px; color: var(--sc-text); font-weight: 650; scroll-margin-block-start: 6rem;
}
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) h2 { font-size: var(--sc-section); line-height: 1.3; }
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) h3 { font-size: var(--sc-subsection); line-height: 1.35; }
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) :is(p, ul, ol, dl) { margin-block: 0 20px; }
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) :is(a, code) { overflow-wrap: anywhere; }
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) a { color: var(--sc-action); }
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) :is(pre, code) {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--sc-measure); color: var(--sc-text);
}
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) pre {
  max-inline-size: 100%; overflow: auto; padding: 12px; margin-block: 20px;
  background: var(--sc-support); border-block: 1px solid var(--sc-rule); border-radius: 0;
  line-height: 1.5; direction: ltr; text-align: start; unicode-bidi: isolate;
}
body[data-sc-ui="measured-sheets"] .sc-contents { min-inline-size: 0; }
body[data-sc-ui="measured-sheets"] .sc-contents :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
body[data-sc-ui="measured-sheets"] .sc-contents a {
  display: block; padding-block: 8px; color: var(--sc-action); font-size: var(--sc-measure); overflow-wrap: anywhere;
}
body[data-sc-ui="measured-sheets"] .sc-contents [aria-current] { background: var(--sc-selected); color: var(--sc-text); }
/* Long supported-script prose and translated identifiers wrap before the sheet
   widens. Numeric/code islands retain their own local scrolling treatment. */
body[data-sc-ui="measured-sheets"] :is(.sc-article, .sc-reference) :is(p, li, dt, dd, h2, h3) { overflow-wrap: anywhere; }
