/* signal-tokens: the one Signal token set; interactive pages carry this exact block. */
:root {
  --bg: #f5f8f7; --surface: #ffffff; --wash: #ecf2ef; --code-bg: #f1f5f3;
  --ink: #14201d; --muted: #4b5f5a; --line: #d3ded9; --line-strong: #a9bab4;
  --brand: #0b6b5c; --brand-strong: #07574a; --on-brand: #ffffff; --brand-tint: #e1f1ec;
  --app: #6639c9; --on-app: #ffffff; --app-tint: #efe9fc;
  --data: #d98a00; --data-ink: #8f4f00; --on-data: #1c1300; --data-tint: #fff1d9;
  --frame: #1a2623; --screen: #ffffff; --shadow: 0 1px 2px #14201d0f, 0 8px 24px #14201d0d;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --step--1: .875rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.5625rem; --step-3: 1.953rem; --step-4: 2.441rem; --step-5: 3.052rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1412; --surface: #131d1a; --wash: #192521; --code-bg: #0f1816;
    --ink: #e3ece8; --muted: #9eb2ac; --line: #263430; --line-strong: #3d504a;
    --brand: #4cc6ae; --brand-strong: #7ad8c5; --on-brand: #05201a; --brand-tint: #11302a;
    --app: #b8a0ff; --on-app: #160e2c; --app-tint: #231d3b;
    --data: #ffb444; --data-ink: #ffc56e; --on-data: #1c1300; --data-tint: #30240e;
    --frame: #030706; --screen: #101917; --shadow: 0 1px 2px #0006, 0 8px 24px #0004;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1412; --surface: #131d1a; --wash: #192521; --code-bg: #0f1816;
  --ink: #e3ece8; --muted: #9eb2ac; --line: #263430; --line-strong: #3d504a;
  --brand: #4cc6ae; --brand-strong: #7ad8c5; --on-brand: #05201a; --brand-tint: #11302a;
  --app: #b8a0ff; --on-app: #160e2c; --app-tint: #231d3b;
  --data: #ffb444; --data-ink: #ffc56e; --on-data: #1c1300; --data-tint: #30240e;
  --frame: #030706; --screen: #101917; --shadow: 0 1px 2px #0006, 0 8px 24px #0004;
  color-scheme: dark;
}
/* signal-tokens:end */
/* Signal theme. Tokens come from tokens.css, which the builder places first.
   Element typography is scoped to .prose so interactive pages can share this
   file without inheriting documentation styles. */
html { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; font-synthesis: none; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--data); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; min-height: 64px; padding: 10px max(20px, calc((100vw - 1400px) / 2)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); font-family: var(--font); line-height: 1.4; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.2rem; font-weight: 850; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--on-brand); font-size: 18px; font-weight: 900; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--data); border: 2px solid var(--surface); }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.top-nav a:hover { color: var(--ink); background: var(--wash); }
.top-nav a[aria-current] { color: var(--brand); background: var(--brand-tint); }
.header-tools { display: flex; gap: 8px; align-items: center; }
.search-button, .theme-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--wash); color: var(--ink); border-radius: 8px; padding: 6px 11px; font: 600 var(--step--1) var(--font); cursor: pointer; }
.search-button:hover, .theme-toggle:hover { border-color: var(--line-strong); }
.search-button kbd { font: 600 .75rem var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; background: var(--surface); }
.theme-toggle { width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 1rem; }
.mobile-nav { display: none; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 40; background: var(--surface); color: var(--brand); padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* Layout */
.page-layout { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 820px) 210px; gap: 40px; padding: 36px 24px 72px; }
main { min-width: 0; }
main:focus { outline: none; }

/* Sidebar: collapsible groups, current section open */
.sidebar, .on-this-page { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: var(--step--1); line-height: 1.45; overscroll-behavior: contain; }
.sidebar ul, .on-this-page ul { list-style: none; margin: 0; padding: 0; }
.nav-group { margin: 0 0 6px; }
.nav-group > summary { display: flex; align-items: center; gap: 6px; list-style: none; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; margin-right: 4px; }
.nav-group[open] > summary::before { transform: rotate(45deg); }
.nav-group > summary a { color: var(--ink); font-weight: 750; text-decoration: none; }
.nav-group > summary a[aria-current="page"] { color: var(--brand); }
.nav-group > summary:hover { background: var(--wash); }
.nav-group ul { margin: 4px 0 10px 13px; padding-left: 8px; border-left: 1px solid var(--line); }
.sidebar li a { display: block; padding: 4px 8px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.sidebar li a:hover { color: var(--ink); background: var(--wash); }
.sidebar li a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); font-weight: 650; }
.on-this-page { padding-left: 16px; border-left: 1px solid var(--line); font-size: .8rem; }
.on-this-page p { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.on-this-page li { margin: 0 0 7px; }
.on-this-page a { color: var(--muted); text-decoration: none; }
.on-this-page a:hover, .on-this-page a.active { color: var(--brand); }
.on-this-page .h3 { padding-left: 12px; }

/* Breadcrumbs, pager and page end */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span[aria-hidden] { color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.pager a { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; line-height: 1.35; }
.pager a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.pager small { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pager b { color: var(--brand); font-size: var(--step-0); }
.pager .pager-next { grid-column: 2; text-align: right; }
.page-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; }

/* Prose */
.prose { overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 96px; text-wrap: balance; }
.prose h1 { font-size: clamp(2rem, 4vw, var(--step-4)); font-weight: 850; margin: .2em 0 .5em; }
.prose h2 { font-size: var(--step-3); margin: 2.2em 0 .6em; }
.prose h3 { font-size: var(--step-1); margin: 1.8em 0 .5em; }
.prose h4 { font-size: var(--step-0); margin: 1.5em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 1em 0; }
.prose li + li { margin-top: .3em; }
.prose img { border-radius: 8px; max-width: 100%; height: auto; }
.prose svg { max-width: 100%; height: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose strong { font-weight: 700; }
.prose code { font-family: var(--mono); font-size: .875em; font-variant-numeric: tabular-nums; color: var(--app); background: var(--app-tint); padding: .1em .35em; border-radius: 4px; }
.prose a code { color: inherit; }
.code-block { position: relative; margin: 22px 0; border: 1px solid var(--line); border-left: 3px solid var(--app); border-radius: 10px; background: var(--code-bg); }
.code-label { display: block; padding: 7px 16px 0; font: 800 .68rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--app); }
.prose pre { margin: 0; padding: 12px 16px 16px; overflow: auto; font: .82rem/1.6 var(--mono); font-variant-numeric: tabular-nums; white-space: pre; color: var(--ink); background: none; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.table-scroll { margin: 24px 0; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-width: 100%; }
.prose table { overflow-wrap: normal; width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--wash); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

/* Callouts: note, warning, example */
.prose blockquote, .callout { margin: 24px 0; padding: 12px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; background: var(--brand-tint); }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-label { display: block; margin: 0 0 4px; font: 800 .7rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.callout-warning { border-left-color: var(--data); background: var(--data-tint); }
.callout-warning .callout-label { color: var(--data-ink); }
.callout-example { border-left-color: var(--app); background: var(--surface); }
.callout-example .callout-label { color: var(--app); }

/* Cards: one style everywhere */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0 0 8px; }
.doc-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.doc-card:hover { border-color: var(--line-strong); }
.prose .doc-card h3 { margin: 2px 0 10px; font-size: var(--step-1); font-weight: 800; line-height: 1.25; text-wrap: pretty; }
.doc-card p { margin: 0 0 14px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.doc-card > p:last-child { margin: auto 0 0; padding-top: 6px; }
.doc-card > p:last-child a { font-weight: 700; text-decoration: none; }
.doc-card a:has(> img) { display: block; margin: 0 0 16px; }
.prose .doc-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.doc-card.path-codebot { border-top: 4px solid var(--app); }
.doc-card.path-developer { border-top: 4px solid var(--brand); }
.doc-card.path-user { border-top: 4px solid var(--data); }
.card-kicker { margin: 0 0 6px !important; font: 800 .7rem var(--font) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; }

/* Light/dark image pairs: the builder turns a picture with a dark source into two images. */
img.theme-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.theme-light { display: none !important; }
  :root:not([data-theme="light"]) img.theme-dark { display: block !important; }
}
:root[data-theme="dark"] img.theme-light { display: none !important; }
:root[data-theme="dark"] img.theme-dark { display: block !important; }

/* Home */
.home .page-layout { display: block; max-width: 1240px; padding-top: 0; }
.hero { position: relative; padding: 64px 0 8px; }
.prose .hero-title { margin: 0; font-size: clamp(3.2rem, 9vw, 5.8rem); font-weight: 900; line-height: .95; letter-spacing: -.055em; }
.hero-tagline { margin: 14px 0 24px !important; max-width: 24ch; font-size: clamp(1.6rem, 3.6vw, var(--step-4)); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.hero .hero-subtitle { margin: 0; max-width: 56ch; font-size: clamp(1.1rem, 2vw, var(--step-1)); line-height: 1.45; color: var(--muted); }
.hero .hero-subtitle.hero-principle { margin: 16px 0 0; color: var(--ink); font-weight: 650; }
.hero > p:not([class]) { max-width: 68ch; }
.hero .app-authoring-note { margin: 18px 0 0; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px !important; }
.hero-actions > strong > a { display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--brand); color: var(--on-brand); text-decoration: none; box-shadow: var(--shadow); }
.hero-actions > strong > a:hover { background: var(--brand-strong); color: var(--on-brand); }
.hero-actions > strong + strong > a { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.hero-actions > strong + strong > a:hover { background: var(--brand-tint); color: var(--brand-strong); }
.hero .hero-claim { margin: 32px 0 0; max-width: none; font-size: clamp(1.6rem, 3.6vw, var(--step-4)); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.hero .hero-claim a { text-decoration: none; }
.hero .hero-claim a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.claim-ai, .claim-you { white-space: nowrap; } .claim-ai { color: var(--app); } .claim-you { color: var(--brand); }
.hero .hero-claim + .hero-actions { margin-top: 20px !important; }
.hero-note { max-width: 44ch; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
.hero-split > .signal-bar, .hero-split > .stat-strip { grid-column: 1 / -1; }
.hero-copy, .hero-visual { min-width: 0; }
.hero-visual { margin: 0; }
.hero-visual a { display: block; }
.prose .hero-visual img { display: block; width: 100%; border-radius: 0; }
.hero-visual figcaption { margin-top: 4px; font-size: .78rem; line-height: 1.4; color: var(--muted); text-align: center; }
.prose .stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 44px 0 0; padding: 0; list-style: none; }
.prose .stat-strip li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--wash); }
.stat-strip strong { font-size: var(--step-3); font-weight: 850; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.stat-strip span { font-size: .85rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 1000px) { .hero-split { grid-template-columns: minmax(0, 1fr); } .hero-visual { max-width: 560px; margin-top: 28px; } }
@media (max-width: 700px) { .prose .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.signal-bar { display: flex; gap: 6px; margin: 0 0 26px; }
.signal-bar i { display: block; height: 6px; border-radius: 3px; }
.signal-bar i:nth-child(1) { width: 56px; background: var(--app); }
.signal-bar i:nth-child(2) { width: 28px; background: var(--data); }
.signal-bar i:nth-child(3) { width: 84px; background: var(--brand); }
.prose.home-prose .card-section-title a { color: inherit; text-decoration: none; }
.prose.home-prose .card-section-title a:hover { text-decoration: underline; }
.prose.home-prose .card-section-title { margin: 56px 0 22px; padding-top: 40px; border-top: 1px solid var(--line); font-size: var(--step-3); }
.section-lede { margin: 0 0 22px !important; max-width: 70ch; font-size: clamp(1.05rem, 2vw, var(--step-1)); font-weight: 500; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.section-lede strong { font-weight: 700; color: var(--ink); }
/* Parallel claims, such as the home page paradigm section, share one larger style. */
.section-claim { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.4; }
.section-body { max-width: 70ch; color: var(--muted); }
.section-link { margin-top: 4px !important; }
.section-link a { font-weight: 700; text-decoration: none; }
.section-link a:hover { text-decoration: underline; }
.next-step { margin: 64px 0 8px; padding: 32px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); }
.prose .next-step h2 { margin: 0 0 12px; }
.next-step p { max-width: 78ch; margin: .7em 0 0; }

/* Examples page layout */
.example { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 4px; }
.prose .example h2 { margin-top: 24px; }
.example-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 28px; align-items: start; }
.example-code > .code-block:first-child { margin-top: 0; }
.prose .example-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.example-visuals { display: grid; gap: 22px; }
.example figure { margin: 0; max-width: 390px; }
.example figure img { display: block; width: 100%; border: 1px solid var(--line); }
.example figcaption { margin-top: 8px; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.example-focus { background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: 4px 24px 24px; }
.prose .example + h2 { margin-top: 56px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 32px max(24px, calc((100vw - 1400px) / 2)); border-top: 1px solid var(--line); background: var(--surface); font-family: var(--font); line-height: 1.5; }
.site-footer p { margin: 0; color: var(--muted); font-size: .85rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-footer nav a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--brand); }
.site-footer .brand { font-size: 1.05rem; }

/* Search */
.search-dialog { width: min(680px, calc(100% - 28px)); max-height: 80vh; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px #0005; font-family: var(--font); line-height: 1.5; }
.search-dialog::backdrop { background: #0a1210a0; }
.search-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-top h2 { margin: 0; font-size: var(--step-1); font-weight: 800; }
.close-search { border: 0; background: none; color: var(--muted); font: 600 .85rem var(--font); cursor: pointer; }
.search-dialog label { display: block; margin: 18px 0 8px; font-size: .85rem; color: var(--muted); }
.search-dialog input { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--ink); font: 1rem var(--font); }
.search-status { font-size: .8rem; color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 12px 0; border-top: 1px solid var(--line); }
.search-results a { font-weight: 700; text-decoration: none; }
.search-results p { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }

/* Interactive pages inside the site frame */
.interactive .breadcrumbs { margin: 0; }
.frame-crumbs { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; font-family: var(--font); line-height: 1.4; }
.explain-link { font-size: .82rem; font-weight: 650; text-decoration: none; }
.interactive-end { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.interactive-end .pager { margin-top: 8px; }

/* Responsive */
@media (max-width: 1180px) {
  .page-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .on-this-page { display: none; }
  .top-nav a { padding: 6px 8px; }
}
@media (max-width: 900px) {
  .site-header { gap: 10px; padding: 8px 16px; min-height: 56px; }
  .top-nav { display: none; }
  .header-tools { margin-left: auto; }
  .search-button kbd { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; font: 600 var(--step--1) var(--font); color: var(--ink); cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 2px; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-nav nav a { padding: 10px 8px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
  .mobile-nav nav a[aria-current] { color: var(--brand); background: var(--brand-tint); }
  .page-layout { display: block; padding: 22px 16px 48px; }
  .sidebar { display: none; }
  .hero { padding: 40px 0 4px; }
  .prose.home-prose .card-section-title { margin-top: 40px; padding-top: 28px; }
  .next-step { padding: 22px; }
  .site-footer { padding: 24px 16px; }
  .site-footer nav { margin-left: 0; width: 100%; }
  .example-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .example-visuals { justify-items: center; }
  .example-focus { padding: 4px 14px 18px; }
}
@media (max-width: 560px) {
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .pager-next { grid-column: 1; }
  .prose h2 { font-size: 1.6rem; }
}
@media (pointer: coarse) {
  .search-button, .theme-toggle, .mobile-nav summary, .close-search { min-height: 44px; }
  .theme-toggle { width: 44px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header, .sidebar, .on-this-page, .site-footer, .page-end, .pager, .search-dialog, .breadcrumbs { display: none; }
  .page-layout { display: block; padding: 0; }
  .prose pre, .table-scroll { overflow: visible; }
  a { color: inherit; }
}
