@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #fff;
  --surface: #f3f5f7;
  --ink: #20252b;
  --muted: #606973;
  --line: #dce1e6;
  --link: #174bb7;
  --selection: #e5edff;
  --sidebar: 236px;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, summary { touch-action: manipulation; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 38px; font-weight: 650; line-height: 1.17; letter-spacing: -.8px; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 650; margin-bottom: 13px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 650; }
p, li { line-height: 1.6; }
p { margin-bottom: 18px; }
::selection { color: var(--ink); background: #d4e2ff; }
:focus-visible { outline: 3px solid #ca7a00; outline-offset: 3px; }
code, pre, kbd { font-family: Consolas, 'Courier New', monospace; }
kbd { padding: 2px 5px; font-size: 11px; border: 1px solid #c7ced6; border-radius: 3px; color: #5b646f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 12px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { display: none; }

/* Navigation is an index, with one stable location for each subject. */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 29px 20px 22px 26px; border-right: 1px solid var(--line); background: #f7f8fa; overflow-y: auto; z-index: 5; display: flex; flex-direction: column; }
.brand { font-size: 27px; font-weight: 750; letter-spacing: -.8px; text-decoration: none; color: #202731; line-height: 1.2; }
.brand-sub { font-size: 14px; color: var(--muted); margin: 7px 0 35px; }
.nav-primary { margin-bottom: 27px; }
.nav-primary .nav-link { font-size: 17px; padding-top: 12px; padding-bottom: 12px; color: #303b49; }
.nav-group { padding: 0; border-bottom: 1px solid var(--line); }
.nav-group>summary { padding: 13px 0; font-size: 15px; font-weight: 600; color: #515e6c; }
.nav-group-links { padding: 0 0 15px 10px; }
.nav-link { display: block; color: #59616b; font-size: 15px; line-height: 1.35; padding: 8px 11px; margin: 1px -11px; text-decoration: none; border-left: 2px solid transparent; }
.nav-link:hover { color: var(--link); text-decoration: underline; }
.nav-link.active { color: var(--link); background: #e8eefb; border-left-color: var(--link); font-weight: 650; }
.sidebar-footer { margin-top: auto; padding-top: 42px; font-size: 13px; }
.sidebar-footer a { color: #515c69; }
.sidebar-footer span { display: block; margin-top: 14px; line-height: 1.55; color: #67717b; }
.workspace { margin-left: var(--sidebar); }
.topbar { height: 67px; padding: 0 48px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 20px; }
.breadcrumb { font-size: 14px; display: flex; gap: 13px; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb>span:first-of-type { color: #a0a8b0; }
.search-trigger { margin-left: auto; display: flex; align-items: center; gap: 48px; border: 1px solid #cbd2da; background: #fff; border-radius: 4px; padding: 7px 10px; font-size: 14px; }
.language-select { margin-left: auto; padding: 7px 5px; border: 1px solid #cbd2da; border-radius: 4px; background: #fff; color: var(--ink); font-size: 14px; }
.language-select + .search-trigger { margin-left: 0; }
.breadcrumb { min-width: 0; }
#breadcrumb-page { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.document-status { font-size: 14px!important; color: #66552f!important; margin-bottom: 14px; }
.organization-context { border-left: 3px solid #b8a375; padding-left: 22px; max-width: 90ch; margin: 32px 0; }
.organization-context li { margin-bottom: 10px; }
.role-routes { margin: 40px 0; }
.role-route { padding: 20px 0; border-bottom: 1px solid var(--line); max-width: 90ch; }
.role-route h3 { margin-bottom: 5px; }
.role-route p { margin-bottom: 8px; }
.task-links { flex-wrap: wrap; }
.baseline-explanation { max-width: 90ch; }
.baseline-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0 20px; }
.baseline-filters label { display: block; font-size: 15px; margin-bottom: 8px; font-weight: 600; }
.baseline-filters select, .baseline-filters input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #a3b1bf; border-radius: 3px; background: #fff; }
.control-row { max-width: 95ch; }
.control-row summary { display: flex; gap: 18px; }
.control-row summary::before { content: '+'; color: var(--link); }
.control-row[open] summary::before { content: '−'; }
.control-reference { color: var(--muted); font-size: 13px; }
.control-evidence { display: grid; grid-template-columns: 170px 1fr; gap: 12px 20px; font-size: 16px; line-height: 1.6; }
.control-evidence dt { font-weight: 600; }
.control-evidence dd { margin: 0; }
.search-trigger:hover { border-color: #8b9aaa; background: #f7f9fc; }
.menu-toggle { display: none; }
#main { max-width: 1450px; padding: 43px 48px 72px; margin: auto; min-height: calc(100vh - 150px); outline: none; }
.page-footer { font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 48px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); }
.page-footer a { color: var(--muted); }

/* Start page: one main action, then a short explanation of the route. */
.home-intro h1 { font-size: 38px; margin-bottom: 10px; }
.home-intro p { color: #545e68; max-width: 70ch; font-size: 18px; margin-bottom: 25px; }
.simple-home { max-width: 780px; }
.simple-home .home-intro { max-width: 650px; }
.start-route { list-style: none; counter-reset: start-step; padding: 0; margin: 38px 0 23px; }
.start-route li { counter-increment: start-step; position: relative; padding: 20px 0 20px 43px; border-bottom: 1px solid var(--line); }
.start-route li::before { content: counter(start-step, decimal-leading-zero); position: absolute; left: 0; top: 20px; color: #6d7b8c; font-size: 18px; }
.start-route h2 { font-size: 22px; margin-bottom: 6px; }
.start-route p { margin: 0; color: #56616c; }
.start-example { font-size: 16px; }
.start-team { margin-top: 36px; padding-left: 18px; border-left: 2px solid #becddd; font-size: 16px; }
.start-team h2 { font-size: 19px; margin-bottom: 6px; }
.start-team p { margin-bottom: 7px; }
.task-links { display: flex; gap: 23px; font-size: 16px; }

/* Reference text. Decorative enumeration is intentionally absent. */
.page-intro { max-width: 76ch; margin-bottom: 32px; }
.page-intro>p { font-size: 18px; color: #56616c; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 36px 0 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 15px; }
.reading-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; column-gap: 44px; align-items: start; }
.reading-layout>.page-intro { grid-column: 1; grid-row: 1; }
.reading-body { min-width: 0; max-width: 76ch; grid-column: 1; grid-row: 2; }
.principle { scroll-margin-top: 25px; margin: 0 0 32px; }
.principle h2 { font-size: 23px; margin-bottom: 12px; }
.principle p { font-size: 18px; margin: 0; line-height: 1.62; }
.principle>span { display: none; }
.principle h3 { font-size: 21px; }
.on-this-page { position: sticky; top: 25px; border-left: 1px solid var(--line); padding-left: 22px; max-height: calc(100vh - 50px); overflow: auto; grid-column: 2; grid-row: 1 / 3; }
.on-this-page { padding-top: 0; padding-bottom: 0; border-bottom: 0; }
.on-this-page>summary { font-size: 15px; }
.on-this-page>nav { margin-top: 16px; }
.on-this-page h2, .on-this-page h3 { font-size: 15px; margin: 0 0 12px; }
.on-this-page h3 { margin-top: 22px; }
.on-this-page ul { margin: 0 0 12px; padding: 0; list-style: none; }
.on-this-page li { font-size: 14px; line-height: 1.4; margin: 0 0 11px; }
.on-this-page a { text-decoration: none; color: #526274; }
.on-this-page a:hover { color: var(--link); text-decoration: underline; }
.on-this-page>a { font-size: 14px; }
.chapter-check { margin: 40px 0; scroll-margin-top: 25px; }
.chapter-check ul { padding-left: 23px; }
.chapter-check li { margin-bottom: 9px; }
.callout { border-left: 3px solid #a5bad5; padding: 3px 0 3px 20px; margin: 28px 0; max-width: 80ch; }
.callout h3 { margin: 0 0 8px; font-size: 18px; }
.callout p { margin: 0; color: #505b68; font-size: 16px; }
.callout.warning { border-left-color: #b19164; }
.sources { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.sources h3 { font-size: 17px; }
.sources a { display: block; font-size: 15px; line-height: 1.5; margin: 9px 0; overflow-wrap: anywhere; }
.code-panel { background: #f1f4f7; border: 1px solid #d7dee6; border-radius: 4px; margin: 25px 0; overflow: hidden; }
.code-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 15px; border-bottom: 1px solid #d7dee6; font-size: 14px; color: #4e5d6d; }
.copy-button { padding: 5px 11px; border: 1px solid #b4c0cc; background: white; border-radius: 3px; color: #334b68; font-size: 13px; white-space: nowrap; }
.copy-button:hover { border-color: var(--link); color: var(--link); }
pre { padding: 19px; margin: 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; overflow: auto; max-height: 700px; color: #263647; }
details { padding: 17px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
summary { cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.5; }
summary::marker { color: #6e7e91; }
details p { margin: 16px 0 10px; }
.technical-detail>p { font-size: 17px; line-height: 1.65; }
.actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border: 1px solid var(--link); border-radius: 4px; background: var(--link); color: white; text-decoration: none; font-size: 15px; font-weight: 600; }
.button:hover { background: #123b90; text-decoration: none; }
.button.secondary { background: white; color: var(--link); border-color: #aebdce; }
.button.secondary:hover { background: #f0f5fc; }
.text-link { display: inline-block; font-size: 16px; margin-top: 12px; }

/* Process and selection controls. */
.project-picker { padding: 24px; background: #f3f6fa; margin-bottom: 35px; }
.project-picker h3 { margin-bottom: 7px; }
.project-picker>p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.segmented { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 20px; }
.segmented button { padding: 9px 20px; border: 1px solid #b1becc; background: white; font-size: 16px; margin-right: -1px; }
.segmented button:first-child { border-radius: 4px 0 0 4px; }
.segmented button:last-child { border-radius: 0 4px 4px 0; }
.segmented button[aria-pressed=true] { background: #e2eafa; color: #163f8d; font-weight: 650; border-color: #778eae; position: relative; }
.track-advice p { font-size: 16px; }
.track-advice strong { display: block; margin-bottom: 3px; }
.workflow-step { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 20px; padding: 34px 0; border-top: 1px solid var(--line); scroll-margin-top: 25px; }
.step-number { font-size: 24px; color: #7b8794; font-weight: 300; line-height: 1.3; }
.workflow-step>div { max-width: 80ch; }
.workflow-step p { font-size: 17px; }
.workflow-background { margin-top: 30px; }
.guided-workflow { max-width: 960px; }
.journey-nav ol { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0 0 20px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.journey-nav a { display: block; font-size: 15px; text-decoration: none; padding: 5px 0; color: var(--muted); border-bottom: 2px solid transparent; }
.journey-nav a span { margin-right: 6px; font-variant-numeric: tabular-nums; }
.journey-nav a[aria-current=step] { border-color: var(--link); font-weight: 650; color: var(--link); }
.journey-nav a:hover { text-decoration: underline; }
.journey-position { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.workflow-current { max-width: 80ch; }
.workflow-current h2 { font-size: 28px; }
.workflow-current p { font-size: 17px; }
.step-example { margin: 30px 0 20px; padding: 20px 24px; background: #f5f7f9; border-left: 3px solid #8fa7c3; }
.step-example h3 { font-size: 21px; margin-bottom: 8px; }
.step-example>p { margin-bottom: 8px; }
.step-example details { padding-bottom: 10px; }
.step-example summary { font-size: 16px; }
.journey-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 30px 0 15px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.journey-return { position: sticky; top: 0; z-index: 5; background: #fff; padding: 12px 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.journey-return a { font-weight: 600; }
#main:has(.journey-return) [id] { scroll-margin-top: 76px; }
.example-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 16px; margin: 16px 0 25px; }
.example-download { margin: 0 0 32px; }
.example-download p { margin-top: 10px; }
.domain-exercise { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.chapter-design .reading-body { max-width: none; }
.design-comparison { margin: 20px 0 32px; }
.design-comparison p.small, .design-critique { font-size: 15px; line-height: 1.6; }
.design-selector { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.design-selector button { font-size: 14px; padding: 8px 12px; background: #fff; border: 1px solid #9aa9b8; border-radius: 3px; }
.design-selector [aria-pressed=true] { background: #e8eefb; border-color: var(--link); color: var(--link); font-weight: 600; }
.design-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.design-pair figure { margin: 0; min-width: 0; }
.design-pair figcaption { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.design-specimen { border: 1px solid #cbd4dd; padding: 18px; min-height: 350px; font-size: 13px; line-height: 1.45; }
.design-specimen p { font-size: 13px; line-height: 1.5; margin: 10px 0; }
.specimen-brand { font-size: 10px; letter-spacing: 1px; font-weight: 700; margin-bottom: 20px; }
.specimen-generic { background: #f7f4ff; color: #49366e; }
.specimen-hero { text-align: center; padding: 12px 0 20px; }
.specimen-hero>span:first-child { font-size: 9px; letter-spacing: 1px; }
.specimen-hero strong { display: block; font-size: 22px; line-height: 1.1; margin: 10px 0 16px; }
.illustrated-action { display: inline-block; background: #214c40; color: #fff; border-radius: 3px; padding: 7px 10px; font-size: 11px; font-weight: 600; }
.specimen-generic .illustrated-action { background: #7253b4; border-radius: 30px; }
.specimen-counters { display: flex; justify-content: space-around; text-align: center; gap: 8px; margin-bottom: 16px; font-size: 10px; }
.specimen-counters b { display: block; font-size: 22px; }
.specimen-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.specimen-cards>div { padding: 12px; border: 1px solid #ded5f0; background: #fff; border-radius: 10px; font-size: 11px; }
.specimen-cards span { display: block; margin-top: 10px; font-size: 10px; }
.specimen-queue { color: #243e35; background: #fcfdfb; }
.specimen-title { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.specimen-title>strong { font-size: 24px; }
.specimen-note { color: #59685e; }
.specimen-task-list { list-style: none; padding: 0; margin: 16px 0; }
.specimen-task-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #ccd8cf; }
.specimen-task-list li>span:first-child { flex: 1; }
.specimen-task-list strong { font-size: 12px; }
.specimen-task-list small { display: block; font-size: 11px; margin-top: 5px; }
.illustrated-link { text-decoration: underline; font-size: 11px; }
.specimen-guided { color: #3c382e; background: #faf8f2; border-top: 4px solid #8d6d36; }
.specimen-guided .illustrated-action { background: #695127; }
.guided-task-title { display: block; font-family: Georgia, serif; font-size: 28px; font-weight: 400; line-height: 1.2; margin: 14px 0; }
.guided-secondary { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #d9d2c5; }
.design-critique { margin: 18px 0!important; color: #5e6570; }
.design-rationale { padding-left: 15px; border-left: 3px solid #8fa7a0; margin: 20px 0; }
.design-rationale h3 { font-size: 18px; margin-bottom: 6px; }
.design-rationale p { font-size: 16px; }
.step-gates { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0; font-size: 16px; line-height: 1.6; }
.step-gates strong { display: block; margin-bottom: 7px; font-weight: 650; }
.step-gates>div { border-left: 2px solid #becddd; padding-left: 16px; }

/* Comparison rows show the same attributes in the same position. */
.filter-row { display: flex; flex-wrap: wrap; gap: 3px 18px; border-bottom: 1px solid #bec7d1; margin: 25px 0 16px; }
.filter-button { padding: 10px 0; background: transparent; border: 0; border-bottom: 3px solid transparent; color: #5a6572; font-size: 16px; }
.filter-button[aria-pressed=true] { border-bottom-color: var(--link); color: var(--link); font-weight: 650; }
.tools-note { color: var(--muted); font-size: 14px; max-width: 90ch; }
.tool-table-head { display: grid; grid-template-columns: 1fr 1.3fr .85fr; gap: 24px; padding: 12px 10px 12px 28px; background: #f3f5f7; font-weight: 600; font-size: 14px; color: #5a6672; }
.tool-row { padding: 0; }
.tool-row>summary { display: grid; grid-template-columns: 1fr 1.3fr .85fr; gap: 24px; align-items: baseline; list-style: none; padding: 20px 10px 20px 28px; position: relative; }
.tool-row>summary::-webkit-details-marker { display: none; }
.tool-row>summary::before { content: '+'; position: absolute; left: 5px; top: 20px; color: #7b8793; font-size: 17px; font-weight: 400; }
.tool-row[open]>summary::before { content: '−'; }
.tool-row>summary:hover { background: #f7f9fc; }
.tool-row h2 { margin: 0; color: var(--link); font-size: 18px; font-weight: 600; }
.tool-verdict { color: #354351; font-size: 16px; font-weight: 400; }
.tool-category { color: #68727e; font-size: 14px; font-weight: 400; }
.tool-body { padding: 0 28px 25px; max-width: 90ch; }
.tool-body>p { margin-top: 0; }
.tool-detail h3 { margin: 19px 0 4px; font-size: 17px; }
.tool-detail p { margin: 0 0 13px; font-size: 16px; }
.tool-body>a { font-size: 15px; }
.prompt-card { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.prompt-card h2 { margin: 5px 0 9px; font-size: 23px; }
.prompt-card>p { max-width: 76ch; font-size: 16px; color: #596572; }
.prompt-card details { padding: 0; border: 0; }
.prompt-card summary { color: var(--link); font-size: 16px; font-weight: 400; }
.tag { font-size: 13px; color: #647080; }
.download-link { background: transparent; border: 0; padding: 5px 0; text-decoration: underline; color: var(--link); font-size: 15px; }

/* Checklist and long-form recommendation. */
.checklist-summary { background: #eef3fb; display: flex; align-items: center; gap: 24px; padding: 23px; margin: 25px 0 35px; }
.checklist-summary strong { font-size: 28px; font-weight: 650; white-space: nowrap; }
.checklist-summary p { font-size: 13px; color: #596575; margin: 2px 0 0; }
.checklist-summary progress { flex: 1; min-width: 100px; height: 8px; accent-color: var(--link); border: 0; }
progress::-webkit-progress-bar { background: #d4deec; }
progress::-webkit-progress-value { background: var(--link); }
.checklist-group { margin: 30px 0; max-width: 85ch; }
.checklist-group h2 { font-size: 22px; }
.check-row { display: flex; align-items: start; gap: 13px; border-bottom: 1px solid #e5e9ee; padding: 14px 0; line-height: 1.5; font-size: 17px; cursor: pointer; }
.check-row input { width: 19px; height: 19px; margin-top: 3px; flex-shrink: 0; accent-color: var(--link); }
.check-row:has(input:checked)>span { color: #62718a; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 35px 0; }
.recommendation { padding: 26px 0; max-width: 80ch; }
.recommendation-label { display: block; font-size: 14px; color: #667383; margin-bottom: 8px; }
.recommendation h2 { font-size: 24px; }
.recommendation li { margin-bottom: 8px; }
.recommendation ul { padding-left: 23px; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.comparison { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.comparison th { background: #f0f3f7; text-align: left; font-weight: 600; }
.comparison td, .comparison th { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* Search dialog is shared by the header and the start page. */
.search-dialog { width: min(720px,94vw); max-height: 86vh; padding: 25px; border: 1px solid #b6c2cf; border-radius: 6px; color: var(--ink); background: white; box-shadow: 0 12px 60px #1d2c4533; }
.search-dialog::backdrop { background: #29374b66; }
.search-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.search-heading h2 { font-size: 23px; margin: 0; }
.icon-button { background: transparent; border: 0; font-size: 28px; width: 42px; min-height: 42px; }
#search-input { width: 100%; font-size: 18px; border: 1px solid #9faebf; border-radius: 3px; padding: 12px; }
#search-count { font-size: 14px; margin: 17px 0 10px; }
#search-results { max-height: 48vh; overflow-y: auto; }
.search-result { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-result:hover { background: #f1f5fd; text-decoration: none; }
.search-result strong { display: block; font-size: 18px; font-weight: 600; }
.search-result small { display: block; color: #6d7987; font-size: 13px; margin: 3px 0; }
.search-result>span { display: block; color: #465565; font-size: 15px; line-height: 1.5; }
.search-foot { padding-top: 19px; font-size: 13px; color: #687581; }
.search-foot kbd { margin-left: 12px; }
.toast { position: fixed; bottom: 25px; left: calc(50% + 118px); transform: translateX(-50%); max-width: min(520px,90vw); padding: 15px 20px; background: #24344b; color: white; border-radius: 4px; font-size: 15px; line-height: 1.5; z-index: 50; opacity: 0; pointer-events: none; }
.toast.visible { opacity: 1; }
.noscript { position: fixed; top: 25%; left: 15%; right: 15%; padding: 30px; background: white; border: 1px solid #a24036; z-index: 100; }

@media(min-width:1001px) {
  #main:has(.journey-return) .on-this-page { top: 76px; max-height: calc(100vh - 100px); }
}
@media(min-width:1600px) {
  #main { padding: 50px 60px 80px; }
  .reading-layout { grid-template-columns: minmax(0,80ch) 250px; column-gap: 60px; }
}
@media(max-width:1200px) {
  :root { --sidebar: 214px; }
  .sidebar { padding-left: 20px; padding-right: 16px; }
  #main { padding: 35px 32px 60px; }
  .topbar { padding: 0 32px; }
  .page-footer { margin: 0 32px; }
  .reading-layout { grid-template-columns: minmax(0,1fr) 190px; column-gap: 26px; }
  .on-this-page { padding-left: 16px; }
  .tool-row>summary, .tool-table-head { gap: 16px; grid-template-columns: 1fr 1.1fr .8fr; }
}
@media(max-width:1000px) {
  .reading-layout { display: flex; flex-direction: column; gap: 28px; }
  .reading-layout>.page-intro { margin-bottom: 0; }
  .on-this-page { position: static; max-height: none; width: 100%; }
  .on-this-page ul { columns: 2; column-gap: 25px; }
  .on-this-page li { break-inside: avoid; }
  .tool-category { font-size: 13px; }
  .tool-table-head { display: none; }
  .tool-row>summary { grid-template-columns: 1fr 1.1fr; }
  .tool-category { grid-column: 1/-1; }
}
@media(max-width:760px) {
  .journey-nav ol { gap: 5px 16px; }
  .journey-nav a { font-size: 14px; }
  .step-example { padding: 18px; }
  .journey-actions { align-items: start; flex-direction: column-reverse; }
  .design-pair { grid-template-columns: 1fr; }
  .design-specimen { min-height: 0; }
  .baseline-filters, .control-evidence { grid-template-columns: 1fr; }
  .control-evidence { gap: 5px; }
  .control-evidence dd { margin-bottom: 12px; }
  .control-row summary { flex-wrap: wrap; gap: 5px 12px; }
  .topbar { gap: 10px; }
  .language-select { flex-shrink: 0; }
  :root { --sidebar: 0px; }
  .sidebar { display: none; width: 260px; top: 60px; box-shadow: 10px 0 30px #23334a22; }
  .sidebar.open { display: flex; }
  .sidebar .brand, .sidebar .brand-sub { display: none; }
  .sidebar-footer { margin-top: 20px; }
  .workspace { margin-left: 0; }
  .topbar { height: 60px; padding: 0 18px; gap: 12px; }
  .menu-toggle { display: block; margin-left: -7px; font-size: 24px; }
  .breadcrumb { font-size: 13px; gap: 8px; }
  .breadcrumb>a { display: none; }
  .breadcrumb>span:first-of-type { display: none; }
  .search-trigger { padding: 7px 10px; font-size: 14px; }
  .search-trigger kbd { display: none; }
  #main { padding: 27px 22px 48px; }
  h1, .home-intro h1 { font-size: 31px; letter-spacing: -.5px; }
  .home-intro p, .page-intro>p { font-size: 17px; }
  .task-links { gap: 24px; }
  .task-links a { padding: 6px 0; }
  .page-footer { margin: 0 22px; font-size: 13px; flex-direction: column; line-height: 1.5; }
  .page-intro { margin-bottom: 27px; }
  .principle p { font-size: 18px; }
  .on-this-page ul { columns: 1; }
  .on-this-page li { margin-bottom: 10px; }
  .on-this-page a { display: inline-block; padding: 3px 0; font-size: 15px; }
  .on-this-page { max-height: none; overflow: visible; padding-right: 12px; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 23px; }
  .workflow-step { grid-template-columns: 25px minmax(0,1fr); gap: 12px; }
  .step-number { font-size: 21px; }
  .workflow-step h2 { font-size: 23px; }
  .step-gates { grid-template-columns: 1fr; }
  .project-picker { padding: 20px; }
  .tool-row>summary { display: block; padding: 18px 0 18px 25px; }
  .tool-row>summary::before { top: 18px; left: 2px; }
  .tool-row h2 { font-size: 21px; }
  .tool-verdict { display: block; margin-top: 5px; font-size: 17px; }
  .tool-category { display: block; margin-top: 6px; font-size: 14px; }
  .tool-body { padding: 0 0 22px 25px; }
  .tool-body>p, .tool-detail p { font-size: 17px; }
  .filter-row { gap: 2px 18px; }
  .filter-button { padding: 11px 0; }
  .checklist-summary { flex-wrap: wrap; gap: 14px; padding: 20px; }
  .checklist-summary progress { flex-basis: 100%; }
  .code-heading { padding: 10px 12px; font-size: 13px; }
  pre { padding: 15px; font-size: 12px; }
  .toast { left: 50%; font-size: 14px; }
  .search-dialog { padding: 19px; }
  .search-heading h2 { font-size: 21px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; animation: none!important; }
}
@media print {
  .sidebar, .topbar, .page-footer, .actions, .filter-row, .copy-button, .download-link, .search-dialog, .toast, .checklist-actions, .skip-link, .on-this-page { display: none!important; }
  .workspace { margin: 0; }
  #main { max-width: none; padding: 0; }
  .reading-layout { display: block; }
  .code-panel { background: #eee; color: black; }
  pre { max-height: none; }
  details { display: block; }
  .button { display: none; }
}
