/* Code is art — V2 editorial system. Paper, ink, restrained teal. */
:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fcfcf8;
  --ink: #1d302f;
  --muted: #526360;
  --teal: #17675e;
  --teal-dark: #0d5049;
  --tint: #e4eee8;
  --line: #cbd5ce;
  --line-dark: #8b9e95;
  --code: #edf0e9;
  --focus: #9a4612;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-width: 0; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { min-width: 0; }
button, select, input:not([type='checkbox']):not([type='radio']) { min-height: 44px; }
button:disabled { cursor: default; opacity: .55; }
.skip, .skip-link {
  position: fixed; z-index: 100; top: -100px; left: 16px;
  padding: 10px 18px; background: var(--ink); color: white;
  border-radius: 3px; font-weight: 650;
}
.skip:focus, .skip-link:focus { top: 12px; }

/* The shell allows 750px of reading space and a distinct contents rail. */
body > header.shell, .shell, footer {
  width: min(100%, 1248px);
  margin-inline: auto;
  padding-inline: 40px;
}
body > header.shell {
  min-height: 92px; display: flex; gap: 28px; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  font-size: 25px; font-weight: 750; line-height: 1.15;
  letter-spacing: -.9px; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand .mark {
  flex: 0 0 auto; width: 35px; height: 35px; border: 1px solid var(--teal);
  display: grid; place-items: center; color: var(--teal);
  font-family: var(--mono); font-size: 17px; letter-spacing: -2px;
}
.brand-dot { color: var(--teal); }
body > header.shell nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
body > header.shell nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  border-bottom: 2px solid transparent;
}
body > header.shell nav a:hover, body > header.shell nav a[aria-current='page'] { color: var(--teal); border-bottom-color: var(--teal); }
body > header.shell .edition { font: 10px/1.5 var(--mono); color: var(--muted); letter-spacing: 1px; }
main.shell { padding-top: 0; padding-bottom: 80px; }
.eyebrow {
  display: block; font: 600 11px/1.6 var(--mono); letter-spacing: 1.4px;
  color: var(--teal); text-transform: uppercase;
}
.intro { padding-block: 48px 30px; max-width: 840px; }
h1, h2, h3, h4 { overflow-wrap: anywhere; }
.intro h1 {
  font: 500 42px/1.16 var(--serif); letter-spacing: -1.2px;
  margin: 14px 0 18px; max-width: 750px;
}
.lede { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 750px; }
.intro .lede { margin-block: 0 22px; }
.searchbar { display: flex; gap: 10px; max-width: 750px; margin-block: 22px 8px; }
input[type='search'], input[type='text'], textarea, select {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-dark);
  border-radius: 3px; padding: 10px 13px; line-height: 1.4;
}
input::placeholder, textarea::placeholder { color: #667570; opacity: 1; }
.searchbar input { width: 100%; flex: 1 1 auto; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 44px; border: 1px solid var(--teal); border-radius: 3px;
  padding: 10px 18px; background: var(--teal); color: white;
  font-size: 14px; font-weight: 650; line-height: 1.45; text-decoration: none;
}
button:hover, .button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: white; text-decoration: none; }
.plain-button, #reset, .button.secondary {
  background: transparent; color: var(--teal); border-color: var(--line-dark);
}
.plain-button:hover, #reset:hover, .button.secondary:hover { background: var(--tint); color: var(--teal-dark); border-color: var(--teal); }
.section-heading {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px 30px; margin-block: 40px 18px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.section-heading h2 { font: 500 29px/1.25 var(--serif); margin: 0; letter-spacing: -.4px; }
.section-heading a { font-size: 14px; font-weight: 600; flex-shrink: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-grid .topic {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start;
  gap: 6px 14px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-top: 3px solid var(--teal);
  color: var(--ink); text-decoration: none; min-width: 0;
}
.topic-grid .topic:hover { background: var(--tint); border-color: var(--line-dark); }
.topic-grid .topic h2, .topic-grid .topic h3, .topic-grid .topic .name, .topic-grid .topic strong {
  font-size: 17px; line-height: 1.4; margin: 0; font-weight: 650;
}
.topic-grid .topic .count, .topic-grid .topic small { color: var(--teal); font: 12px/1.8 var(--mono); }
.topic-grid .topic p, .topic-grid .topic .summary { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.reading-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-block: 24px; }
.path-card { padding: 24px; border: 1px solid var(--line); background: var(--tint); min-width: 0; }
.path-card h2, .path-card h3 { font: 500 24px/1.3 var(--serif); margin: 8px 0 12px; }
.path-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.path-card ol, .path-card ul { margin: 10px 0 0; padding-left: 22px; }
.path-card li { margin-block: 8px; font-size: 14px; }
.path-card > a:last-child { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 650; }

/* Dense journal rows: metadata is secondary, titles and useful excerpts lead. */
.article-list { list-style: none; padding: 0; margin: 0; }
.article-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 16px;
  padding: 22px 0; margin: 0; border-bottom: 1px solid var(--line);
  min-width: 0;
}
.article-row > time, .article-row > .date { color: var(--muted); font: 12px/1.8 var(--mono); white-space: nowrap; }
.article-row > .topic, .article-row > .category, .article-row > .article-topic {
  align-self: start; justify-self: start; font-size: 12px; line-height: 1.8;
  color: var(--teal); margin: 0; background: none; border: 0; padding: 0;
}
.article-row h2 { grid-column: 1 / -1; font: 600 22px/1.35 var(--sans); letter-spacing: -.35px; margin: 3px 0 2px; }
.article-row h2 a { color: var(--ink); text-decoration: none; }
.article-row h2 a:hover { color: var(--teal); text-decoration: underline; }
.article-row p, .article-row .desc { grid-column: 1 / -1; color: var(--muted); margin: 0; max-width: 850px; font-size: 15px; line-height: 1.65; }
.article-row .article-meta, .article-row .row-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.catalog-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .45fr) auto;
  align-items: end; gap: 12px; padding: 20px; margin: 24px 0 0;
  background: var(--tint); border: 1px solid var(--line);
}
.catalog-controls label { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; }
.catalog-controls input, .catalog-controls select { width: 100%; }
.result-count, .catalog-controls .result-count { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding-top: 28px; }
.pager a, .pager button, .pager [aria-current='page'] {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px;
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-dark);
  border-radius: 3px; background: var(--surface); color: var(--teal); font-size: 14px; text-decoration: none;
}
.pager [aria-current='page'] { background: var(--teal); color: white; border-color: var(--teal); }
.pager a:hover { background: var(--tint); }
.pager .pagination-status, .pager p { color: var(--muted); font-size: 13px; margin-inline: 10px; }

/* Reading template and body primitives. No global hiding of overflow. */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--muted); padding-block: 26px 12px; }
.breadcrumb a { color: var(--muted); }
.article-heading { padding-block: 12px 30px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-heading h1 { max-width: 970px; font: 500 42px/1.18 var(--serif); letter-spacing: -1px; margin: 10px 0 18px; }
.article-heading .lede { margin-block: 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.article-meta a { color: var(--teal); }
.reading-layout { display: grid; grid-template-columns: 210px minmax(0, 750px); gap: 42px; align-items: start; }
.toc { position: sticky; top: 24px; min-width: 0; padding: 0 20px 0 0; border-right: 1px solid var(--line); font-size: 13px; }
.toc h2, .toc h3, .toc strong, .toc summary { display: block; font: 650 12px/1.6 var(--sans); letter-spacing: .6px; margin: 0 0 12px; color: var(--muted); }
.toc ol, .toc ul { margin: 0; padding-left: 18px; }
.toc li { padding-block: 4px; }
.toc a { display: block; min-height: 44px; padding-block: 8px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.toc a:hover, .toc a[aria-current='location'] { color: var(--teal); text-decoration: underline; }
.toc details { margin: 0; padding: 0; border: 0; background: none; }
.toc details summary { min-height: 44px; cursor: pointer; padding-block: 9px; }
.prose { min-width: 0; max-width: 750px; color: var(--ink); font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font: 500 30px/1.3 var(--serif); letter-spacing: -.4px; margin: 1.6em 0 .65em; }
.prose h3 { font: 650 22px/1.4 var(--sans); letter-spacing: -.2px; margin: 1.5em 0 .6em; }
.prose h4 { font-size: 18px; line-height: 1.5; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.6em; margin: 0 0 1.4em; }
.prose li { margin-block: .45em; padding-left: .15em; }
.prose li > p { margin-block: .45em; }
.prose blockquote { margin: 1.6em 0; padding: 5px 0 5px 22px; border-left: 3px solid var(--teal); color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font: .84em/1.6 var(--mono); padding: .13em .28em; background: var(--code); border-radius: 2px; }
.prose pre, .code-scroll {
  max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain;
  padding: 20px; margin: 1.5em 0; background: var(--code);
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 3px; font: 14px/1.75 var(--mono);
  white-space: pre; overflow-wrap: normal; word-break: normal; tab-size: 2;
  scrollbar-color: var(--line-dark) var(--code);
}
.prose pre code { font: inherit; padding: 0; background: transparent; border: 0; white-space: inherit; }
.code-scroll pre { padding: 0; margin: 0; border: 0; overflow: visible; }
.table-scroll {
  width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain;
  border: 1px solid var(--line-dark); border-radius: 3px; margin: 1.6em 0;
  scrollbar-color: var(--line-dark) var(--surface);
}
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; line-height: 1.65; background: var(--surface); }
.table-scroll table { display: table; width: 100%; overflow: visible; margin: 0; }
.prose caption { text-align: left; font-weight: 650; color: var(--ink); padding: 10px 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; min-width: 100px; }
.prose th { background: var(--tint); font-weight: 650; color: var(--ink); }
.prose tbody tr:nth-child(even) { background: #f2f5ef; }
.prose figure { margin: 1.7em 0; }
.prose figure img, .prose picture img, .prose > p > img { display: block; margin-inline: auto; max-width: 100%; height: auto; }
.prose figure img { border: 1px solid var(--line); background: white; border-radius: 3px; }
.prose figure a { display: block; }
.prose figcaption { max-width: 680px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 34px; }
.editor-note { margin: 1.5em 0; padding: 16px 19px; background: var(--tint); border-left: 3px solid var(--teal); font-size: 14px; line-height: 1.75; }
.editor-note p:last-child { margin-bottom: 0; }
.series-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; margin-block: 34px; padding-block: 18px; border-block: 1px solid var(--line); font-size: 14px; }
.series-nav a { max-width: 340px; }
.related { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font: 500 27px/1.3 var(--serif); margin: 0 0 14px; }
.related ul { padding-left: 20px; }
.related li { margin-block: 9px; font-size: 15px; }

/* Laboratory: all controls remain visible and keyboard operable. */
.tool { max-width: 1020px; }
.textareas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.textareas > label { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
.textareas textarea { display: block; width: 100%; min-height: 220px; resize: vertical; padding: 16px; font-size: 16px; font-weight: 400; line-height: 1.7; }
.tool-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-block: 22px; }
.tool-controls label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.tool-controls select { min-width: 80px; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; padding: 26px; margin-top: 26px; border: 1px solid var(--line); background: var(--tint); }
.result strong { display: block; font: 500 56px/1.25 var(--serif); color: var(--teal-dark); margin-block: 8px; letter-spacing: -1px; }
.result p { font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.result dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; margin: 0; align-content: center; font-size: 14px; }
.result dd { font-family: var(--mono); font-size: 13px; margin: 0; }
details:not(.toc details) { border: 1px solid var(--line); padding: 16px 20px; margin-block: 24px; background: var(--surface); }
summary { cursor: pointer; min-height: 44px; padding-block: 9px; font-size: 14px; font-weight: 650; }
details p { max-width: 750px; font-size: 15px; }
.empty, .not-found { padding: 32px; margin-block: 26px; border: 1px solid var(--line); background: var(--surface); }
.empty h2, .not-found h1 { font: 500 32px/1.25 var(--serif); margin: 0 0 16px; }
.empty p, .not-found p { max-width: 700px; color: var(--muted); }
.empty .searchbar, .not-found .searchbar { margin-top: 24px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 20px 40px; border-top: 1px solid var(--line); padding-block: 28px 36px; }
footer .brand { font-size: 21px; }
footer p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 380px; }
footer nav, footer > div { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 1060px) {
  .article-list { max-width: 100%; }
  .article-row { grid-template-columns: 130px minmax(0, 1fr); column-gap: 28px; padding-block: 23px; }
  .article-row > time, .article-row > .date { grid-column: 1; grid-row: 1; padding-top: 5px; }
  .article-row > .topic, .article-row > .category, .article-row > .article-topic { grid-column: 1; grid-row: 2; }
  .article-row h2 { grid-column: 2; grid-row: 1; margin: 0 0 5px; }
  .article-row p, .article-row .desc { grid-column: 2; grid-row: 2; }
  .article-row .article-meta, .article-row .row-meta { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  body > header.shell, .shell, footer { padding-inline: 28px; }
  body > header.shell .edition { display: none; }
  .reading-layout { grid-template-columns: 175px minmax(0, 750px); gap: 28px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body > header.shell, .shell, footer { padding-inline: 20px; }
  body > header.shell { min-height: 0; padding-block: 18px 12px; align-items: start; flex-direction: column; gap: 9px; }
  .brand { font-size: 23px; letter-spacing: -.6px; max-width: 100%; }
  body > header.shell nav { width: 100%; gap: 4px 22px; }
  body > header.shell nav a { font-size: 14px; }
  main.shell { padding-bottom: 48px; }
  .intro { padding-block: 30px 20px; }
  .intro h1 { font-size: clamp(31px, 8.8vw, 39px); line-height: 1.17; letter-spacing: -.7px; margin-block: 12px 15px; }
  .lede { font-size: 17px; line-height: 1.7; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .searchbar { gap: 8px; }
  .searchbar button { padding-inline: 14px; flex: 0 0 auto; }
  .section-heading { margin-top: 30px; padding-top: 20px; flex-wrap: wrap; gap: 8px 18px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading a { font-size: 13px; }
  .topic-grid { gap: 9px; }
  .topic-grid .topic { padding: 14px; gap: 5px 8px; }
  .topic-grid .topic h2, .topic-grid .topic h3, .topic-grid .topic .name, .topic-grid .topic strong { font-size: 15px; }
  .topic-grid .topic .count { font-size: 11px; }
  .topic-grid .topic p, .topic-grid .topic .summary { font-size: 12px; }
  .reading-paths { grid-template-columns: 1fr; gap: 12px; }
  .path-card { padding: 20px; }
  .path-card h2, .path-card h3 { font-size: 23px; }
  .article-row { padding-block: 19px; gap: 5px 12px; }
  .article-row h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.2px; }
  .article-row p, .article-row .desc { font-size: 14px; }
  .catalog-controls { grid-template-columns: minmax(0, 1fr) auto; padding: 15px; gap: 12px 10px; }
  .catalog-controls > input, .catalog-controls > label:first-child { grid-column: 1 / -1; }
  .catalog-controls select, .catalog-controls > label:not(:first-child) { grid-column: 1; }
  .catalog-controls #reset { grid-column: 2; padding-inline: 13px; }
  .result-count { font-size: 12px; }
  .pager { gap: 7px; }
  .pager .pagination-status, .pager p { flex-basis: 100%; text-align: center; }
  .breadcrumb { font-size: 12px; padding-top: 20px; }
  .article-heading { padding-bottom: 24px; margin-bottom: 22px; }
  .article-heading h1 { font-size: clamp(29px, 8.2vw, 36px); line-height: 1.2; letter-spacing: -.55px; margin-block: 8px 15px; }
  .article-meta { font-size: 12px; gap: 5px 15px; }
  .reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); padding: 16px 18px; background: var(--surface); }
  .toc h2, .toc h3, .toc strong { margin-bottom: 7px; }
  .toc details summary { margin: 0; }
  .prose { font-size: 17px; line-height: 1.8; }
  .prose h2 { font-size: 27px; margin-top: 1.45em; }
  .prose h3 { font-size: 21px; }
  .prose pre, .code-scroll { font-size: 14px; line-height: 1.7; padding: 15px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose figcaption { font-size: 13px; }
  .editor-note { padding: 14px 16px; font-size: 14px; }
  .series-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .series-nav a { max-width: 100%; }
  .textareas { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .textareas textarea { min-height: 200px; padding: 14px; font-size: 16px; }
  .tool-controls { gap: 14px; }
  .tool-controls .button, .tool-controls button[type='submit'] { width: 100%; }
  .result { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px; }
  .result strong { font-size: 50px; }
  .result dl { font-size: 13px; gap: 12px; }
  .result dd { font-size: 12px; }
  details:not(.toc details) { padding: 12px 16px; }
  .empty, .not-found { padding: 23px 20px; }
  .empty h2, .not-found h1 { font-size: 28px; }
  footer { padding-block: 24px 30px; gap: 15px; }
  footer p, footer nav, footer > div { width: 100%; }
}
@media (max-width: 360px) {
  body > header.shell, .shell, footer { padding-inline: 16px; }
  body > header.shell nav { gap: 3px 16px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-controls { grid-template-columns: minmax(0, 1fr); }
  .catalog-controls #reset, .catalog-controls select, .catalog-controls > label { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { --paper: white; --ink: black; }
  body > header.shell nav, .toc, .searchbar, .catalog-controls, .pager, footer nav { display: none; }
  body > header.shell, .shell, footer { width: 100%; padding-inline: 0; }
  .reading-layout { display: block; }
  .prose { max-width: none; font-size: 11pt; }
  .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .prose table { display: table; }
  a { color: black; }
}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.selector-lab{max-width:800px;margin:0 auto 70px}.selector-lab form{display:flex;flex-wrap:wrap;gap:14px;align-items:center}.selector-lab input{min-height:44px;padding:10px;border:1px solid #6d8a84;min-width:0}.selector-lab #selector-root{padding:24px;margin:24px 0;background:#fffdf8;border:1px solid #a9bcb6}.selector-match{outline:3px solid #176d66;outline-offset:2px;background:#e2eddf}

.mobile-toc{display:none}@media(max-width:900px){.desktop-toc{display:none}.mobile-toc{display:block;padding:14px;border:1px solid #b9c8c2;margin-bottom:22px}.mobile-toc summary{cursor:pointer;min-height:30px}.mobile-toc .toc{position:static;max-height:none}}

/* Match the actual nested metadata/content row markup. */
.article-row{grid-template-columns:minmax(0,1fr) 24px}
.article-row>.row-meta{grid-column:1/-1;grid-row:1}
.article-row>.row-content{grid-column:1;grid-row:2;min-width:0}
.article-row>.row-arrow{grid-column:2;grid-row:2;align-self:start;color:var(--teal)}
.catalog-controls>div{display:grid;gap:6px;min-width:0}
.media-example{max-width:520px;margin:28px auto}
.media-example img{display:block;max-width:100%;height:auto;margin-inline:auto}
@media(min-width:1060px){
 .article-row{grid-template-columns:130px minmax(0,1fr) 24px}
 .article-row>.row-meta{grid-column:1;grid-row:1;flex-direction:column;padding-top:4px}
 .article-row>.row-content{grid-column:2;grid-row:1}
 .article-row>.row-arrow{grid-column:3;grid-row:1}
}
@media(max-width:900px){.reading-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .catalog-controls{grid-template-columns:minmax(0,1fr)}
 .catalog-controls>div,.catalog-controls #reset{grid-column:1/-1}
 .catalog-controls #reset{justify-self:start}
}

/* Essential diagrams outside article.prose use the full reading width too. */
.diagram{margin:28px 0;max-width:750px}
.diagram img{display:block;width:100%;height:auto}
.diagram figcaption{font-size:14px;line-height:1.6;color:var(--muted);margin-top:12px}

/* API method names and prose retain readable columns; scroll stays local. */
.table-scroll table{min-width:720px;overflow-wrap:normal;word-break:normal}
.table-scroll td,.table-scroll th{overflow-wrap:normal;word-break:normal}
.table-scroll td:first-child,.table-scroll th:first-child{min-width:150px}
.table-scroll code{overflow-wrap:normal;word-break:normal}
