/* Watership site styles. watership-tokens.css loads first: it holds the fonts (served from this site,
   SIL Open Font License 1.1, fonts-OFL.txt), the colors for both themes, type, space, and the shared
   component classes the framework sites use too. This file maps the site's own names onto those tokens
   and styles the pages.

   The console look: dark by default, with a day/night toggle in the header for light. Inter carries the prose,
   JetBrains Mono carries the structure: navigation, labels, numbers (as key caps), and code. The accent is blue;
   the wordmark keeps its sail red. Hairlines do the work; blocks and controls have a small radius (6px, pills 4px).

   Line breaks: text runs the full width of its column and wraps where the browser wraps it. No
   text-wrap: balance or pretty, no max-width on headings or paragraphs, no <br> in copy.
   check.mjs enforces this. */

:root {
  --paper: var(--ws-paper);
  --card: var(--ws-paper);
  --sheet: var(--ws-sheet);
  --ink: var(--ws-ink);
  --body: var(--ws-body);
  --soft: var(--ws-soft);
  --faint: var(--ws-faint);
  --rule: var(--ws-rule);
  --rule-strong: var(--ws-rule-strong);
  --accent: var(--ws-accent);
  --accent-dark: var(--ws-accent-strong);
  --wash: var(--ws-wash);
  --never-bg: var(--ws-never-bg);
  --never-fg: var(--ws-never-fg);
  --avoid-bg: var(--ws-avoid-bg);
  --avoid-fg: var(--ws-avoid-fg);
  --prefer-bg: var(--ws-prefer-bg);
  --prefer-fg: var(--ws-prefer-fg);
  --mean-bg: var(--ws-mean-bg);
  --mean-fg: var(--ws-mean-fg);
  --font-head: var(--ws-font-head);
  --font-body: var(--ws-font-text);
  --font-ui: var(--ws-font-ui);
  --font-mono: var(--ws-font-mono);
  --radius: var(--ws-radius);
  --radius-sm: var(--ws-radius-sm);
  /* The page column: 1368px of content inside the side padding. */
  --page-w: 1480px;
  --page-pad: 56px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ws-header-h) + 16px); scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding: 0 0 64px;
  background: var(--paper);
  color: var(--body);
  font: var(--ws-type-body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header: sticky, translucent paper with a blur, one hairline. The wordmark on the left, the site's links on the right. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--ws-header-h);
  background: var(--ws-header-bg);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
/* The html scroll-padding also applies to focus inside the sticky header, so without this, tabbing to a header link
   while scrolled down would scroll the page by the padding. Wide screens only: on phones the header is static. */
@media (min-width: 701px) { .site-header * { scroll-margin-top: calc(-1 * (var(--ws-header-h) + 16px)); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px 32px; height: 100%; width: min(100%, var(--page-w)); margin: 0 auto; padding: 0 var(--page-pad); }
.name { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.wordmark { display: inline-flex; }
.wordmark img { display: block; width: auto; height: 22px; }
.wordmark img.ws-only-light { display: none; }
:root[data-theme="light"] .wordmark img.ws-only-light { display: block; }
:root[data-theme="light"] .wordmark img.ws-only-dark { display: none; }
.links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; font: var(--ws-weight-regular) var(--ws-text-sm)/1 var(--font-ui); }
.links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: var(--radius); color: var(--soft); text-decoration: none; transition: color var(--ws-dur) var(--ws-ease), background-color var(--ws-dur) var(--ws-ease); }
.links a:hover { color: var(--ink); background: var(--wash); }
.links a[aria-current] { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: .45em; }
.links .nav-short { display: none; }
/* A nav item with a menu (Examples): the sub-links drop below it on hover or keyboard focus. */
.nav-menu { position: relative; display: inline-flex; }
.nav-sub { display: none; position: absolute; top: 100%; right: 0; z-index: 20; min-width: 190px; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.nav-menu:hover .nav-sub, .nav-menu:focus-within .nav-sub { display: flex; }
.nav-sub a { justify-content: flex-start; white-space: nowrap; }
.nav-menu:first-child .nav-sub { left: 0; right: auto; }
/* Numbered Content Model pages, in the drop-down and the phone menu. */
.links .nav-num, .nav-phone-panel .nav-num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; margin-right: 6px; padding: 1px 5px; border-radius: var(--radius-sm); background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.3; }
.links a[aria-current] .nav-num, .nav-phone-panel a[aria-current] .nav-num { background: var(--accent); box-shadow: none; color: var(--ws-on-accent); }
.links a[aria-current] { text-decoration: none; color: var(--ink); background: var(--ws-accent-wash); }
/* The day/night toggle: a sun in the dark theme (switch to light), a moon in the light theme (switch to dark). */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin-left: 4px; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: var(--soft); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); background: var(--wash); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
/* Phones (700px and under): a Menu button beside the theme toggle replaces the links row. Its panel drops over the
   page below the header, lists every section, and puts each menu's pages under it. */
.nav { position: relative; }
.nav-phone { display: none; }
.nav-phone > summary { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); font: var(--ws-weight-strong) var(--ws-text-sm)/1 var(--font-ui); list-style: none; cursor: pointer; user-select: none; }
.nav-phone > summary::-webkit-details-marker { display: none; }
.nav-phone > summary:hover, .nav-phone[open] > summary { background: var(--wash); }
.nav-phone-icon { position: relative; width: 14px; height: 10px; border-block: 1.5px solid currentColor; }
.nav-phone-icon::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1.5px solid currentColor; transform: translateY(-50%); }
.nav-phone[open] .nav-phone-icon { height: 0; border-bottom: 0; transform: rotate(45deg); }
.nav-phone[open] .nav-phone-icon::after { inset: 0 0 auto; transform: translateY(-1.5px) rotate(-90deg); }
.nav-phone-panel { position: absolute; top: calc(100% + 6px); left: var(--page-pad); right: var(--page-pad); z-index: 30; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 32px rgb(0 0 0 / .22); }
.nav-phone-panel ul { margin: 0; padding: 0; list-style: none; }
.nav-phone-panel li { margin: 0; }
.nav-phone-panel > ul > li + li { margin-top: 2px; padding-top: 2px; border-top: 1px solid var(--rule); }
.nav-phone-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink); font: var(--ws-weight-strong) 15px/1.25 var(--font-ui); text-decoration: none; }
.nav-phone-panel ul ul { margin: 0 0 6px 14px; padding-left: 6px; border-left: 1px solid var(--rule); }
.nav-phone-panel ul ul a { min-height: 40px; color: var(--soft); font-weight: var(--ws-weight-regular); }
.nav-phone-panel a:hover { background: var(--wash); color: var(--ink); }
.nav-phone-panel a[aria-current] { background: var(--ws-accent-wash); color: var(--ink); }
@media (max-width: 700px) {
  .nav > .links { display: none; }
  .nav-phone { display: block; flex: none; margin-left: 8px; }
}

/* The page column. Prose sections read in the family's 46rem column, aligned with the wordmark; a .wide row
   (the home page) uses the whole page width for its grids. */
.card { width: min(100%, var(--page-w)); margin: 0 auto; padding: 0 var(--page-pad) 48px; }
.row, .row.wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
.row:last-of-type { border-bottom: 0; }
.main { width: 100%; margin-inline: auto; min-width: 0; }
/* Prose pages: one column, centered on the page. */
.row:not(.wide) > .main, .row:not(.wide) > .margin { max-width: var(--ws-content-w); margin-inline: auto; }
/* The three-up take blocks keep the page width: their mono columns would wrap a word at a time at 46rem. */
.row:not(.wide) { container-type: inline-size; }

.row:not(.wide) > .main > .take { width: 100cqi; }
.margin {
  width: 100%;
  margin-inline: auto;
  padding: 2px 0 2px 18px;
  display: grid;
  gap: 10px;
  border-left: 1px solid var(--rule-strong);
  color: var(--soft);
  font: var(--ws-type-ui);
}
.margin p { margin: 0; }
.margin b { color: var(--ink); }
.margin ul, .margin ol { list-style: none; margin: 0; padding: 0; }

/* Type */
.kicker, .eyebrow { margin: 0 0 var(--ws-space-4); color: var(--faint); font: var(--ws-type-ui); }
/* One rhythm with the framework sites: 20px under blocks, 4px between list items, 48/12 around h2,
   32/8 around h3 (12 above it straight after an h2), 24/8 around h4, 12px from h1 to the lead and 24px from the lead to the body. */
h1 { margin: 0 0 var(--ws-space-3); color: var(--ink); font: var(--ws-type-h1); letter-spacing: var(--ws-tracking-head); }
.dek { margin: 0 0 var(--ws-space-6); color: var(--soft); font: var(--ws-type-lead); }
h2 { margin: 0 0 var(--ws-space-3); color: var(--ink); font: var(--ws-type-h2); letter-spacing: var(--ws-tracking-head); }
.main > h2:not(:first-child) { margin-top: var(--ws-space-12); }
.main > .kicker + h2, .main > .eyebrow + h2 { margin-top: 0; }
h3 { margin: var(--ws-space-8) 0 var(--ws-space-2); color: var(--ink); font: var(--ws-type-h3); }
h2 + h3 { margin-top: var(--ws-space-3); }  /* an h3 straight after an h2 joins it as one heading group */
h4, h5, h6 { margin: var(--ws-space-6) 0 var(--ws-space-2); color: var(--ink); font: var(--ws-type-h4); }
p { margin: 0 0 var(--ws-space-5); }
.main > p:last-child { margin-bottom: 0; }
strong, b { color: var(--ink); font-weight: var(--ws-weight-strong); }
small { font-size: inherit; }
.small { color: var(--faint); font-size: var(--ws-text-md); }
.num { font-variant-numeric: tabular-nums; }
/* Inline code is one step below the text around it: 15 in prose, 13 in tables and chrome, inherited in headings. */
code { color: var(--soft); font: var(--ws-weight-regular) var(--ws-text-md) var(--font-mono); }
:is(td, th, .margin, .rule-head, .finding, .take-item, .small, .status, .diff, .stat-block, .scope-note, .answer-summary, .field, .picker, .package-list, .pager, footer, nav) code { font-size: var(--ws-text-sm); }
:is(h1, h2, h3, h4, h5, h6) code { font-size: inherit; }
pre { margin: 0 0 var(--ws-space-5); padding: 16px 18px; overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--soft); font: var(--ws-type-code); }
pre code { color: inherit; font-size: inherit; }
blockquote { margin: 0 0 var(--ws-space-5); padding: 2px 0 2px 18px; border-left: 1px solid var(--rule-strong); color: var(--soft); }
.main ul, .main ol { margin: 0 0 var(--ws-space-5); padding-left: 1.35em; }
.main li { margin-bottom: var(--ws-space-1); }
.main li::marker { color: var(--accent); }
.section-intro { margin-bottom: 30px; }
.section-intro p:last-child { margin-bottom: 0; }

/* Actions */
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 2rem; }
.actions.tight { margin-bottom: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ws-target); padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--ws-on-ink); cursor: pointer; text-decoration: none; font: var(--ws-weight-strong) var(--ws-text-sm)/1.2 var(--font-ui); transition: background-color var(--ws-dur) var(--ws-ease), border-color var(--ws-dur) var(--ws-ease), color var(--ws-dur) var(--ws-ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ws-on-accent); }
.btn.secondary-btn { background: transparent; border-color: var(--ws-control-border); color: var(--ink); }
.btn.secondary-btn:hover { background: var(--wash); border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.quiet { min-height: 36px; display: inline-flex; align-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; font: var(--ws-type-ui); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }
.status { margin: 0 0 var(--ws-space-6); padding: 2px 0 2px 18px; border-left: 1px solid var(--rule-strong); color: var(--soft); font: var(--ws-type-ui); }
.status p { margin: 0; }
.tag, .availability { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--ws-on-ink); font: var(--ws-weight-strong) var(--ws-text-sm)/1 var(--font-ui); }
.tag.planned, .availability.planned { background: var(--prefer-bg); color: var(--prefer-fg); }
.availability.now { background: var(--accent); color: var(--ws-on-accent); }

/* Home */
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; margin-bottom: 44px; }
.hero-text .dek { margin-bottom: 28px; }
.diff { margin: 0 0 12px; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.diff-head { padding: 10px 16px; border-bottom: 1px solid var(--rule); color: var(--faint); font: var(--ws-type-ui); }
.diff p { margin: 0; padding: 14px 18px 14px calc(18px + 1.4em); text-indent: -1.4em; font: var(--ws-weight-regular) var(--ws-text-sm)/var(--ws-leading-code) var(--font-ui); }
.diff .del { background: var(--wash); color: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
.diff .del small { color: var(--accent); }
.diff .add { background: var(--mean-bg); color: var(--mean-fg); }
.diff .del + .del { padding-top: 0; }
.diff s { text-decoration: line-through; text-decoration-color: var(--faint); }
.diff small { display: block; text-indent: 0; }
.hero-diff { margin: 0; }
.hero-diff p { padding: 12px 16px 12px calc(16px + 1.4em); line-height: var(--ws-leading-code); }
/* "voice." (the word and its period, so the period never wraps alone), circled once in sail red the way an editor marks a proof. It draws on load and then stays. */
.circled { position: relative; display: inline-block; }
.circled .ring { position: absolute; left: -9%; top: -2%; width: 124%; height: 120%; overflow: visible; pointer-events: none; opacity: .6; }
.circled .ring path { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ring-draw 1.1s cubic-bezier(.45, .1, .3, 1) .5s forwards; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .circled .ring path { animation: none; stroke-dashoffset: 0; } }
.stat-block { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 24px; margin: 0 0 28px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--soft); font: var(--ws-weight-regular) var(--ws-text-sm)/var(--ws-leading-ui) var(--font-ui); }
.stat-block dt { color: var(--faint); }
.stat-block dd { margin: 0; color: var(--ink); }
/* On the home page the row's own rule closes the facts list, so the list draws only its top line. */
.home-intro .stat-block { margin-bottom: 0; border-bottom: 0; }
.twin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.twin ul { margin: 0 0 14px !important; }
.twin li::marker { color: var(--faint); }
.twin .go { font: var(--ws-type-ui); }
.tool-shelf { border-top: 1px solid var(--rule-strong); }
.tool-entry { display: grid; grid-template-columns: 42px 270px minmax(0, 1fr) 230px; gap: 18px 24px; align-items: center; margin: 0; padding: 24px 12px; border-bottom: 1px solid var(--rule); transition: background-color var(--ws-dur) var(--ws-ease); }
.tool-entry:last-child { border-bottom-color: var(--rule-strong); }
/* The list's ink rule closes the services section, so the section drops its own hairline (no second line below an empty band). */
.row.tool-section { border-bottom: 0; }
.tool-number { color: var(--accent); font: var(--ws-type-ui); }
.tool-name { display: flex; flex-direction: column; gap: 4px; }
.tool-name h3 { margin: 0; }
.tool-name h3 a { text-decoration: none; }
.tool-name h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.tool-status { color: var(--faint); font: var(--ws-type-label); }
.tool-entry > p { margin: 0; padding-inline: 40px 64px; color: var(--soft); font: var(--ws-type-small); }
.tool-action { justify-self: start; min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; font: var(--ws-type-ui); }
.tool-entry:focus-within, .tool-entry:hover { background: var(--wash); border-radius: var(--radius); }

/* Explainer */
.workflow { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.workflow li { margin: 0; padding: 22px 24px 26px; border-right: 1px solid var(--rule); }
.workflow li:last-child { border-right: 0; }
.workflow h3 { margin-top: 1.4em; }
.workflow p { margin: 0; font: var(--ws-type-small); }
.choice-stack { border-top: 1px solid var(--rule-strong); }
.choice-stack article { display: grid; grid-template-columns: 120px 190px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.choice-stack article:last-child { border-bottom-color: var(--rule-strong); }
.choice-stack h3, .choice-stack p { margin: 0; }
.choice-stack .tag { justify-self: start; }
.choice-stack a { font: var(--ws-type-ui); white-space: nowrap; }

/* Definition lists and structured content */
.reach { list-style: none; margin: 0 0 1.4em !important; padding: 0 !important; border-top: 1px solid var(--rule-strong); }
.reach li { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.reach li:last-child { border-bottom-color: var(--rule-strong); }
.reach .k { color: var(--ink); font-weight: var(--ws-weight-strong); }
.gets { list-style: none; margin: 0 0 1.3em !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.gets li { margin: 0; }
.gets h3 { margin-top: 0; }
.gets p { margin: 0; }
.steps { list-style: none; margin: 0 !important; padding: 0 !important; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; margin: 0; padding: 18px 0; border-top: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); color: var(--accent); font: var(--ws-type-ui); padding-top: 4px; }
.steps h3 { margin: 0 0 var(--ws-space-2); }
.steps p { margin: 0; }
.stack { display: grid; gap: 8px; margin: 0 0 1.4em; }
.layer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 18px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.layer.top { border-color: var(--rule-strong); }
.layer .lname { color: var(--ink); font-weight: var(--ws-weight-strong); }
.layer .owner { color: var(--faint); font: var(--ws-type-ui); text-align: right; }
.layer .what { grid-column: 1 / -1; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.tier, .plan { padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.tier p, .plan p { margin: .6em 0; }
.tier ul, .plan ul { font: var(--ws-type-small); }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan .price { color: var(--ink); font: var(--ws-type-h3); }
.plan .btn, .plan .quiet { margin-top: auto; align-self: start; }

/* Tables: mono heads on a wash, 15px prose in the cells, row hairlines only */
.tablewrap { max-width: 100%; overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font: var(--ws-type-small); }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { color: var(--faint); font: var(--ws-type-label); }
thead th { background: var(--wash); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: var(--ws-weight-strong); }
td.group { background: var(--wash); color: var(--ink); font: var(--ws-type-small); font-weight: var(--ws-weight-strong); }
.lock { margin-left: 8px; color: var(--never-fg); font: var(--ws-type-label); }

/* Tiers, rules, examples */
.pill { display: inline-block; padding: 1px 7px; border-radius: var(--radius-sm); white-space: nowrap; font: var(--ws-weight-strong) var(--ws-text-sm)/1.4 var(--font-ui); }
.pill.small { margin-right: 6px; padding: 1px 5px; }
.pill.never { background: var(--never-bg); color: var(--never-fg); }
.pill.avoid { background: var(--avoid-bg); color: var(--avoid-fg); }
.pill.prefer { background: var(--prefer-bg); color: var(--prefer-fg); }
.rule { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); scroll-margin-top: calc(var(--ws-header-h) + 16px); }
.rule:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ws-accent-wash); }
.rule-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 10px; color: var(--faint); font: var(--ws-type-ui); }
.rule-head .rid, .floor-meta .rid { font-family: var(--font-mono); overflow-wrap: anywhere; }
.rule-head .anchor { margin-left: auto; text-decoration: none; }
.rule h3.rule-name { margin: 0 0 var(--ws-space-2); }
.rule p:last-child { margin-bottom: 0; }
.ex { display: grid; gap: 4px; margin-top: 10px; }
.ex-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 9px 11px; border-radius: var(--radius-sm); background: var(--wash); }
.ex-row.good { background: var(--mean-bg); }
.ex-row .lab { padding-top: 2px; color: var(--faint); font: var(--ws-type-label); }
.ex-row.good .lab { color: var(--mean-fg); }
.floor-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: 6px; vertical-align: middle; color: var(--faint); font: var(--ws-type-ui); }
.floor-rule { scroll-margin-top: calc(var(--ws-header-h) + 16px); }

/* Take blocks and forms */
.take { margin: 0 0 1.6em; padding: 20px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.take-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.take-item { display: flex; flex-direction: column; gap: 7px; color: var(--soft); font: var(--ws-type-ui); }
.take-item b { color: var(--ink); font: var(--ws-type-label); }
.take-item p { margin: 0; }
.take-item .btn { align-self: start; margin-top: auto; }
.take .small { margin: 14px 0 0; }
.form { display: grid; gap: 16px; margin: 0 0 1.4em; }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink); font: var(--ws-type-label); }
.field .help, .form .help { color: var(--faint); font: var(--ws-type-ui); }
.field input { width: 100%; max-width: 32rem; padding: 11px 12px; background: var(--card); border: 1px solid var(--ws-control-border); border-radius: var(--radius); color: var(--ink); font: var(--ws-weight-regular) var(--ws-text-base)/1.4 var(--font-body); }
.picker { margin: 0 0 1.4em; padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--radius); }
.picker .q { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; }
.picker legend { color: var(--ink); font: var(--ws-type-label); }
.picker label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; cursor: pointer; font: var(--ws-type-ui); }
.picker input { accent-color: var(--accent); }
.guess { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); }
.guess .q { color: var(--ink); font-weight: var(--ws-weight-strong); }
.guess .g { color: var(--soft); font: var(--ws-type-ui); }
.guess .confirm { grid-row: 1 / span 2; padding: 6px 11px; align-self: center; background: var(--card); border: 1px solid var(--ws-control-border); border-radius: var(--radius); cursor: pointer; }

/* Customizer */
.path-choices { display: grid; gap: 10px; margin: 1.5em 0 2em; }
.path-choice { width: 100%; padding: 19px 20px; display: flex; flex-direction: column; gap: 5px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--soft); text-align: left; cursor: pointer; font: var(--ws-type-ui); }
.path-choice:hover, .path-choice.active { border-color: var(--rule-strong); box-shadow: inset 3px 0 0 var(--accent); }
.path-choice strong { color: var(--ink); font: var(--ws-type-h3); }
.path-choice .recommend { align-self: flex-start; color: var(--accent); font: var(--ws-type-label); }
.path-panel { scroll-margin-top: calc(var(--ws-header-h) + 16px); }
.scope-note { margin: -.2em 0 var(--ws-space-5); color: var(--faint); font: var(--ws-type-ui); }
.question-progress { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-strong); color: var(--faint); font: var(--ws-type-ui); }
.question-card { margin: 0; padding: 28px 0 10px; border: 0; }
.question-card legend { padding: 0; color: var(--ink); font: var(--ws-type-h2); }
.question-help { color: var(--soft); }
.question-card label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 13px 4px; border-top: 1px solid var(--rule); color: var(--ink); cursor: pointer; font: var(--ws-weight-regular) var(--ws-text-md)/1.45 var(--font-ui); }
.question-card label:last-child { border-bottom: 1px solid var(--rule); }
.question-card input, .element-choice input { margin-top: 4px; accent-color: var(--accent); }
.question-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 20px; }
.element-choice { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.element-choice:first-of-type { border-top-color: var(--rule-strong); }
.element-choice:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.element-choice label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; cursor: pointer; font: var(--ws-type-ui); }
.element-choice label span { display: flex; flex-direction: column; gap: 2px; }
.element-choice small { color: var(--faint); }
.element-choice select { width: 100%; padding: 9px 10px; background: var(--card); border: 1px solid var(--ws-control-border); border-radius: var(--radius); color: var(--ink); font: var(--ws-weight-regular) var(--ws-text-base)/1.4 var(--font-body); }
.element-choice select:disabled { opacity: .45; }
.element-details { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px 16px; border-radius: var(--radius); background: var(--wash); }
.element-details label { display: grid; grid-template-columns: 1fr; gap: 5px; color: var(--ink); font: var(--ws-type-label); }
.element-details textarea, .element-details select { width: 100%; padding: 9px 10px; resize: vertical; background: var(--card); border: 1px solid var(--ws-control-border); border-radius: var(--radius); color: var(--ink); font: var(--ws-weight-regular) var(--ws-text-base)/1.4 var(--font-body); }
.form-error { padding: 10px 12px; margin-top: 12px; border-radius: var(--radius); box-shadow: inset 3px 0 0 var(--never-fg); background: var(--never-bg); color: var(--never-fg); font: var(--ws-type-ui); }
.package-summary { padding: 26px 28px; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.package-summary:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.package-list { list-style: none; margin: 1.2em 0 !important; padding: 0 !important; border-top: 1px solid var(--rule-strong); }
.package-list li { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); font: var(--ws-type-ui); }
.package-list li:last-child { border-bottom-color: var(--rule-strong); }
.package-list strong { display: flex; flex-direction: column; gap: 2px; }
.package-list strong small { color: var(--faint); font-weight: var(--ws-weight-regular); }
.package-list li > span { color: var(--faint); text-align: right; }
.answer-summary { margin: 16px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--wash); font: var(--ws-type-ui); }
.answer-summary > strong { display: block; margin-bottom: 5px; }
.answer-summary ul { margin: 0 !important; padding-left: 1.2em !important; }
.answer-summary li { margin: 0 0 2px; }
.brief-fallback { display: grid; gap: 6px; margin-top: 14px; color: var(--ink); font: var(--ws-type-label); }
.brief-fallback textarea { width: 100%; padding: 12px; resize: vertical; background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); font: var(--ws-weight-regular) var(--ws-text-md)/var(--ws-leading-code) var(--font-mono); }
.element-help { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.element-help summary { padding: 18px 0; color: var(--ink); cursor: pointer; font: var(--ws-type-h4); }
.element-map { list-style: none; margin: 0 !important; padding: 0 !important; }
.element-map li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; margin: 0; padding: 15px 0; border-top: 1px solid var(--rule); }
.element-map h3, .element-map p { margin: 0; }
.element-number { color: var(--accent); font: var(--ws-type-ui); }
.starter-fill { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.starter-fill h3 { margin-top: 0; }

/* Guide indexes, voices, articles */
.toc-list { list-style: none; margin: 0 0 var(--ws-space-5) !important; padding: 0 !important; counter-reset: sec; border-top: 1px solid var(--rule-strong); }
.toc-list li { counter-increment: sec; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 14px; margin: 0; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.toc-list li::before { content: counter(sec, decimal-leading-zero); color: var(--accent); font: var(--ws-type-ui); }
.toc-list a { color: var(--ink); font-weight: var(--ws-weight-strong); text-decoration: none; }
.toc-list .sum { grid-column: 2; }
.toc-list .cnt { color: var(--faint); font: var(--ws-type-ui); white-space: nowrap; }
.toc-list.plain { counter-reset: none; }
.toc-list.plain li { grid-template-columns: minmax(0, 1fr) auto; }
.toc-list.plain li::before { content: none; }
.toc-list.plain .sum { grid-column: 1; }
.voice { margin: 0 0 12px; padding: 17px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.voice h2 { margin: 0 0 var(--ws-space-1); font: var(--ws-type-h3); letter-spacing: 0; }
.voice .reg { color: var(--faint); font: var(--ws-type-ui); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 2.2em; padding-top: 18px; border-top: 1px solid var(--rule); font: var(--ws-type-ui); }
.pager a { text-decoration: none; }
.pager .next { margin-left: auto; text-align: right; }
.pager small { display: block; color: var(--faint); }
details.rule-list summary { cursor: pointer; }

/* Review specimen */
.review { margin: 0; overflow: hidden; border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.review .head { display: flex; justify-content: space-between; gap: 10px 18px; padding: 10px 15px; border-bottom: 1px solid var(--rule-strong); color: var(--faint); font: var(--ws-type-ui); }
.draft { margin: 0; padding: 20px 22px; }
mark.m { padding: 1px 2px; background: transparent; color: inherit; text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
mark.m.on { background: var(--never-bg); }
.findings { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--rule-strong); }
.finding { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 3px 14px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--rule); font: var(--ws-type-ui); }
.finding:last-child { border-bottom: 0; }
.finding .what { color: var(--ink); font-weight: var(--ws-weight-strong); }
.finding .fix { grid-column: 2; }
.finding .rid { color: var(--faint); font: var(--ws-type-ui); }

/* Availability and prompts */
.availability-list { border-top: 1px solid var(--rule-strong); }
.availability-list article { display: grid; grid-template-columns: 120px 210px minmax(0, 1fr); gap: 16px 22px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.availability-list article:last-child { border-bottom-color: var(--rule-strong); }
.availability-list h2, .availability-list h3, .availability-list p { margin: 0; }
.availability-list h2, .availability-list h3 { font: var(--ws-type-h3); letter-spacing: 0; }
.status-date { margin-top: 18px; color: var(--faint); font: var(--ws-type-ui); }
.prompt-example { margin-top: 24px; }
.prompt-example > span { display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: var(--radius-sm); background: var(--ink); color: var(--ws-on-ink); font: var(--ws-type-label); }

/* Services: the personal note on pricing */
.personal-note { margin: 1.6em 0 0; padding: 24px 26px; }
.personal-note p { margin: 0 0 1em; }
.personal-note .signed { margin: 0; color: var(--ink); font-style: italic; }

/* Voice and tone: the six scales, each a mean between two failures */
.scale { padding: 18px 0 6px; border-top: 1px solid var(--rule); }
.scale:first-of-type { border-top: 0; padding-top: 4px; }
.scale h3 { margin: 0 0 10px; }
.triad { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 8px; margin: 0 0 12px; }
.mean-section .triad { margin-top: 1.2em; }
.tri { padding: 13px 15px; border-radius: var(--radius); font: var(--ws-type-small); }
.tri p { margin: 6px 0 0; color: var(--ink); }
.tri-lab { font: var(--ws-type-label); }
.tri-vice { background: var(--never-bg); }
.tri-vice .tri-lab { color: var(--never-fg); }
.tri-mean { background: var(--mean-bg); }
.tri-mean .tri-lab { color: var(--mean-fg); }
.tone-grid { font: var(--ws-type-small); }
.tone-grid th, .tone-grid td { padding: 9px 8px; }
.tone-grid th[scope="row"] { color: var(--ink); font: var(--ws-type-label); min-width: 150px; }
.tone-grid th[scope="row"] .lock { display: block; margin: 3px 0 0; }
.tone-grid td.same { color: var(--faint); }
.tone-grid .locked-row th, .tone-grid .locked-row td { background: var(--wash); }
.scale-chips { list-style: none; margin: 14px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scale-chips li { margin: 0; }
.scale-chips a { display: grid; gap: 3px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--body); text-decoration: none; }
.scale-chips a:hover { border-color: var(--ink); }
.scale-chips b { color: var(--ink); font: var(--ws-weight-strong) var(--ws-text-md)/1.2 var(--font-head); }
.scale-chips span { font: var(--ws-type-ui); }
.scale-chips em { color: var(--mean-fg); font-style: normal; font-weight: var(--ws-weight-strong); }

/* Footer: the wordmark and tagline, then Work with Watership and Framework, then the fine line */
footer { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 24px; padding-top: 40px; border-top: 1px solid var(--rule); color: var(--faint); font: var(--ws-type-ui); }
.footer-lead { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-lead p { margin: 0; }
.footer-lead .wordmark img { height: 20px; }
footer .col { display: flex; flex-direction: column; gap: 6px; }
footer .col b { margin-bottom: 4px; color: var(--ink); font: var(--ws-type-label); }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline 1px var(--accent); text-underline-offset: .25em; }
footer .fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; border-top: 1px solid var(--rule); }

@media (max-width: 900px) {
  :root { --page-pad: 40px; }
  .tool-entry { grid-template-columns: 36px 230px minmax(0, 1fr); }
  .tool-entry > p { padding-inline: 0; }
  .tool-action { grid-column: 3; }
  footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-lead { grid-column: 1 / -1; }
}

/* Phones: the links take their own row under the wordmark, so the header scrolls away with the page. */
@media (max-width: 700px) {
  :root { --page-pad: 16px; }
  html { scroll-padding-top: 16px; }
  body { padding-bottom: 40px; }
  .card { padding-bottom: 32px; }
  .site-header { position: static; height: auto; }
  .nav { gap: 0; padding-block: 12px; }
  /* Phones: the wordmark on the left, the theme toggle and the Menu button on the right. */
  .theme-toggle { margin-left: auto; }
  .wordmark img { height: 20px; }
  .row, .row.wide { padding-block: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .twin { grid-template-columns: 1fr; }
  .tool-entry { grid-template-columns: 32px minmax(0, 1fr); gap: 7px 14px; padding-inline: 8px; }
  .tool-entry > p, .tool-action { grid-column: 2; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .workflow li:last-child { border-bottom: 0; }
  .choice-stack article, .availability-list article { grid-template-columns: 1fr; gap: 8px; }
  .choice-stack article > a { justify-self: start; }
  .tiers, .gets, .take-row { grid-template-columns: 1fr; }
  .take-item { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
  .take-item:last-child { padding-bottom: 0; border-bottom: 0; }
  .reach li, .element-choice { grid-template-columns: 1fr; }
  .element-choice { gap: 8px; }
  .element-details { grid-template-columns: 1fr; }
  .package-summary { padding: 22px 18px; }
  .package-list li { flex-direction: column; gap: 3px; }
  .package-list li > span { text-align: left; }
  .ex-row, .finding { grid-template-columns: 1fr; }
  .finding .fix { grid-column: 1; }
  .review .head { flex-direction: column; }
  .layer { grid-template-columns: 1fr; }
  .layer .owner { text-align: left; }
  .layer .what { grid-column: 1; }
  footer .fine { flex-direction: column; gap: 4px; }
}
@media (max-width: 760px) {
  .triad, .scale-chips { grid-template-columns: 1fr; }
}
/* On phones a note's date sits under its title, and the summary takes the full width. */
@media (max-width: 560px) {
  .toc-list.plain li { grid-template-columns: minmax(0, 1fr); }
  .toc-list.plain .cnt, .toc-list.plain .sum { grid-column: 1; }
}
@media (max-width: 430px) {
  .actions > .btn { width: 100%; }
  .question-progress { flex-direction: column; gap: 3px; }
  .toc-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .toc-list .cnt, .toc-list .sum { grid-column: 2; }
  footer { grid-template-columns: 1fr; }
}

/* Contact form (contact.html; the form is built only when TURNSTILE_SITE_KEY is set) */
.contact-form { max-width: 36rem; }
.contact-form .field input { max-width: none; }
.field textarea { width: 100%; padding: 11px 12px; resize: vertical; background: var(--card); border: 1px solid var(--ws-control-border); border-radius: var(--radius); color: var(--ink); font: var(--ws-weight-regular) var(--ws-text-base)/1.5 var(--font-body); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--ws-never-fg); }
.field-error, .contact-status { color: var(--ws-never-fg); font: var(--ws-type-ui); }
.field-error:empty, .contact-status:empty { display: none; }
.contact-sent { color: var(--ink); }
.contact-sent:focus { outline: none; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* A collapsed section of reference detail (system.html's tone table) */
details.more { margin: 1.2em 0; border: 1px solid var(--rule); border-radius: var(--radius); }
details.more > summary { cursor: pointer; padding: 12px 16px; color: var(--ink); font: var(--ws-type-label); list-style-position: inside; }
details.more > summary:hover { background: var(--wash); }
details.more[open] > summary { border-bottom: 1px solid var(--rule); }
details.more > :not(summary) { margin: 12px 16px; }
details.more .table-wrap, details.more > div { overflow-x: auto; }

/* Examples: the brief, the version tabs, and each draft shown as a specimen. */
.ex-brief { white-space: pre-wrap; }
.ex-list { padding-left: 1.2em; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.ex-tabs[hidden] { display: none; }
.ex-tabs button { min-height: 40px; padding: 0 14px; border: 1px solid var(--ws-control-border); border-radius: var(--radius); background: transparent; color: var(--ink); font: var(--ws-type-label); cursor: pointer; }
.ex-tabs button:hover { background: var(--wash); }
.ex-tabs button[aria-selected="true"] { background: var(--ws-accent-wash); border-color: var(--accent); }
.ex-panel { margin-bottom: 28px; }
.ex-meta { color: var(--soft); }
.specimen { padding: 4px 24px 8px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); overflow-wrap: anywhere; }
.specimen pre { overflow-x: auto; }
@media (max-width: 700px) { .specimen { padding: 2px 14px 6px; } }

/* Ollama docs replica: a page list beside the page, three views, and numbered change markers. */
.od-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; width: min(100%, var(--page-w)); margin: 0 auto; padding: 0 var(--page-pad); }
.od-side { font: var(--ws-weight-regular) var(--ws-text-sm)/1.4 var(--font-ui); }
.od-side-box > summary { display: none; }
.od-side ul { list-style: none; margin: 0 0 10px; padding: 0; }
.od-side li a { display: block; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--soft); text-decoration: none; }
.od-side li a:hover { background: var(--wash); color: var(--ink); }
.od-side li a[aria-current] { background: var(--ws-accent-wash); color: var(--ink); }
.od-tab { margin: 18px 0 4px; color: var(--ink); font-weight: 600; }
.od-tab:first-of-type { margin-top: 0; }
.od-group { margin: 10px 0 2px; padding-left: 8px; color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.od-view { margin: 0 0 8px; color: var(--soft); font: var(--ws-type-label); }
.od-doc img { max-width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.od-doc table { display: block; overflow-x: auto; }
ins.od-chg { text-decoration: none; background: var(--ws-accent-wash); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 2px; }
.od-ref, .od-q { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; margin: 0 2px; padding: 0 4px; border-radius: var(--radius-sm); font: 600 11px/1.5 var(--font-ui); text-decoration: none; vertical-align: super; }
.od-ref { background: var(--accent); color: var(--ws-on-accent); }
.od-q { background: var(--ink); color: var(--card); }
.od-marks { margin: 4px 0; }
.od-notes { padding-left: 0; list-style: none; }
.od-notes li { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); }
.od-notes li:target { border-color: var(--accent); }
.od-notes li p { margin: 0 0 4px; }
.od-kind { font: var(--ws-type-label); }
.od-was, .od-rules, .od-audit-note { color: var(--soft); font-size: .92em; }
.od-verdict { padding: 0 6px; border-radius: var(--radius-sm); font: var(--ws-type-label); }
.od-improved { background: var(--ws-accent-wash); }
.od-neutral { background: var(--wash); }
.od-regression { background: var(--ink); color: var(--card); }
.od-audit { padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); }
.od-list { padding-left: 1.1em; }
.od-grouprow th { padding-top: 16px; text-align: left; font: var(--ws-type-label); }
@media (max-width: 900px) {
  .od-grid { grid-template-columns: 1fr; gap: 16px; }
  .od-side-box > summary { display: list-item; cursor: pointer; font: var(--ws-type-label); }
}


/* Get Started: audience routes, the four steps, the level chooser, the five-point check, and the pilot timeline */
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.route { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); color: var(--body); text-decoration: none; transition: border-color var(--ws-dur) var(--ws-ease), background-color var(--ws-dur) var(--ws-ease); }
.route:hover { border-color: var(--accent); background: var(--ws-accent-wash); }
.route b { color: var(--ink); font: var(--ws-weight-strong) 1.05rem/1.3 var(--font-ui); }
.route span { font-size: .95rem; }
.route-icon, .step-icon, .five svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.np-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.np-step { position: relative; margin: 0; padding: 20px 20px 20px 72px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); }
.np-step .step-n { position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ws-on-accent); font: var(--ws-weight-strong) 1rem/1 var(--font-ui); }
.np-step .step-icon { position: absolute; right: 18px; top: 18px; opacity: .8; }
.np-step h3 { margin: 6px 40px 8px 0; font-size: 1.05rem; }
.np-step p { margin: 0; font-size: .95rem; }
.aside-note { padding: 14px 16px; border-left: 3px solid var(--rule-strong); background: var(--wash); font-size: .95rem; }
.levels { list-style: none; padding: 0; margin: 24px 0; }
.lv-row { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 28px; padding-bottom: 28px; }
.lv-row:not(.lv-last)::after { content: "No"; position: absolute; left: 22px; bottom: 4px; padding-left: 14px; border-left: 2px solid var(--rule-strong); height: 26px; line-height: 26px; color: var(--soft); font: var(--ws-type-label); }
.lv-row.lv-last { padding-bottom: 0; }
.lv-q { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); }
.lv-q p, .lv-a p { margin: 0; }
.lv-qn { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 6px; border-radius: var(--radius-sm); background: var(--wash); color: var(--ink); font: var(--ws-type-label); }
.lv-a { position: relative; padding: 12px 16px; border-radius: var(--radius); font-size: .95rem; }
.lv-a b { display: block; font: var(--ws-weight-strong) 1.1rem/1.3 var(--font-ui); margin-bottom: 2px; }
.lv-yes { position: absolute; left: -24px; top: 14px; color: var(--soft); font: var(--ws-type-label); }
.lv-none { background: var(--ws-prefer-bg); color: var(--ws-prefer-fg); }
.lv-self { background: var(--ws-mean-bg); color: var(--ws-mean-fg); }
.lv-check { background: var(--ws-avoid-bg); color: var(--ws-avoid-fg); }
.lv-verify { background: var(--ws-never-bg); color: var(--ws-never-fg); }
.lv-a b, .lv-a p { color: inherit; }
.five { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.five li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius); text-align: center; }
.five b { color: var(--ink); font: var(--ws-weight-strong) .98rem/1.25 var(--font-ui); }
.five span { font-size: .88rem; color: var(--soft); }
.timeline { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; gap: 6px; }
.timeline li { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--wash); border-top: 4px solid var(--accent); }
.timeline li:last-child { border-top-style: dashed; }
.tl-when { color: var(--accent); font: var(--ws-type-label); }
.timeline b { color: var(--ink); font: var(--ws-weight-strong) 1.05rem/1.3 var(--font-ui); }
.timeline p { margin: 0; font-size: .93rem; }
.tl-cost { margin-top: auto; color: var(--soft); font-size: .85rem; }
.effort th[scope="row"] { white-space: nowrap; }
@media (max-width: 900px) {
  .routes { grid-template-columns: 1fr; }
  .np-steps { grid-template-columns: 1fr; }
  .five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .five li:last-child { grid-column: 1 / -1; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .lv-row { grid-template-columns: 1fr; gap: 8px; }
  .lv-yes { position: static; display: block; margin-bottom: 2px; }
  .lv-row:not(.lv-last)::after { position: static; display: block; height: 22px; line-height: 22px; margin: 6px 0 0 22px; }
  .lv-row { padding-bottom: 6px; }
}
.main .np-steps, .main .levels, .main .five, .main .timeline { padding-left: 0; margin-left: 0; }
.lv-a { align-self: start; }
/* A small caret marks the nav items that open a menu (wide screens; phones use the Menu button). */
.nav-menu > .nav-top::after { content: ""; width: 5px; height: 5px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
@media (max-width: 700px) { .nav-menu > .nav-top::after { display: none; } }

/* Diagrams on the Content Model pages (content/figures/*.html). Built from text, so they reflow on phones and follow the theme. */
.main .fig { margin: 32px 0 36px; padding: 22px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--wash); font-family: var(--font-body); }
.main .fig ul, .main .fig ol { list-style: none; margin: 0; padding: 0; }
.main .fig li { margin: 0; }
.main .fig p { margin: 0; }
.fig figcaption { margin-top: 18px; color: var(--soft); font-size: var(--ws-text-sm); line-height: 1.5; }
.fig figcaption a { white-space: nowrap; }
.fig svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fig b { display: block; color: var(--ink); font: var(--ws-weight-strong) var(--ws-text-sm)/1.3 var(--font-ui); }
.fig-box, .fig-part, .fig-lane, .fig-hub-flow > li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); font-size: var(--ws-text-sm); line-height: 1.45; color: var(--soft); }
.main .fig .fig-tag { margin-bottom: 8px; color: var(--soft); font: 12px/1.3 var(--font-ui); }

/* The Thursday deck: three stages, the outer two unsolved. */
.fig-stages { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px; }
.fig-stage { position: relative; display: flex; flex-direction: column; }
.fig-stage:not(:last-child)::after { content: "\2192"; position: absolute; right: -21px; top: 55%; color: var(--soft); font: 18px/1 var(--font-ui); }
.fig-stage .fig-box { flex: 1; justify-content: center; }
.main .fig .fig-gap .fig-tag { color: var(--ws-never-fg); }
.fig-gap .fig-box { border-style: dashed; }
.main .fig .fig-fast .fig-tag { color: var(--ws-prefer-fg); }
.fig-fast .fig-box { border-color: var(--accent); }
.main .fig .fig-scatter { flex: 1; display: grid; gap: 6px; padding: 10px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); background: var(--card); }
.fig-scatter li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.3; color: var(--soft); }
.fig-scatter li:nth-child(odd) { transform: translateX(3px) rotate(-.6deg); }
.fig-scatter li:nth-child(even) { transform: translateX(-2px) rotate(.5deg); }
.fig-scatter svg { width: 18px; height: 18px; stroke: var(--soft); }

/* The four parts. */
.fig-part { position: relative; text-decoration: none; transition: border-color var(--ws-dur) var(--ws-ease); }
.fig-part:hover { border-color: var(--accent); }
.fig-part:hover b { text-decoration: underline 1px; text-underline-offset: .2em; }
.fig-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--accent); color: var(--ws-on-accent); font: var(--ws-weight-strong) 13px/1 var(--font-ui); }
.fig-standards { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; align-items: center; border-color: var(--accent); background: var(--ws-accent-wash); }
.fig-standards > span:last-child { grid-column: 2; }
.main .fig .fig-feeds { text-align: center; padding: 8px 0; color: var(--soft); font: 12px/1.3 var(--font-ui); }
.fig-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fig-flow > li { position: relative; display: flex; }
.fig-flow > li > a { flex: 1; }
.fig-flow > li:not(:last-child)::after { content: "\2192"; position: absolute; right: -21px; top: 50%; color: var(--soft); font: 18px/1 var(--font-ui); }
.fig-when { color: var(--accent); font: 12px/1.3 var(--font-ui); }
.main .fig .fig-loop { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius); color: var(--ink); font-size: var(--ws-text-sm); line-height: 1.4; }

/* The bar moves with the job. */
.main .fig .fig-stakes { display: flex; justify-content: space-between; margin: 0 0 10px 34%; padding-bottom: 7px; color: var(--soft); font: 12px/1 var(--font-ui); background: linear-gradient(90deg, var(--ws-mean-fg), var(--ws-avoid-fg), var(--ws-never-fg)) bottom / 100% 3px no-repeat; }
.fig-bar table { width: 100%; min-width: 0; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; font-size: var(--ws-text-sm); }
.fig-bar th, .fig-bar td { padding: 9px 8px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: center; vertical-align: middle; }
.fig-bar thead th, .fig-bar thead td { vertical-align: top; }
.fig-bar tbody th { text-align: left; font-weight: 400; color: var(--ink); line-height: 1.35; }
.fig-bar thead tr > :first-child { width: 34%; }
.fig-level { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); font: var(--ws-weight-strong) 13px/1.3 var(--font-ui); }
.fig-eg { display: block; margin-top: 6px; color: var(--soft); font-weight: 400; font-size: 13px; line-height: 1.3; }
.dot { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--rule-strong); border-radius: 50%; font-size: 0; color: transparent; vertical-align: middle; }
.dot.on { border-color: var(--accent); background: var(--accent); }
.fig-cost td { color: var(--ink); font: var(--ws-weight-strong) 13px/1.3 var(--font-ui); }
.fig-bar .fig-cost th, .fig-bar .fig-cost td { border-bottom: 0; }

/* The core team and everyone else. */
.fig-hub-flow { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 28px; }
.fig-hub-flow > li { position: relative; }
.fig-hub-flow > li:not(:last-child)::after { content: "\2192"; position: absolute; right: -21px; top: 50%; color: var(--soft); font: 18px/1 var(--font-ui); }
.fig-hub-flow > li.fig-hub-core { border-color: var(--accent); background: var(--ws-accent-wash); }
.main .fig .fig-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.fig-people li { padding: 3px 9px; border: 1px solid var(--rule); border-radius: 999px; font: 12px/1.4 var(--font-ui); color: var(--soft); }

/* Nothing in between. */
.fig-axis { display: flex; justify-content: space-between; padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--rule-strong); color: var(--soft); font: 12px/1 var(--font-ui); }
.fig-axis span:first-child::before { content: "\2190  "; }
.fig-axis span:last-child::after { content: "  \2192"; }
.fig-track + .fig-track { margin-top: 16px; }
.main .fig .fig-track-label { margin-bottom: 6px; color: var(--ink); font: var(--ws-weight-strong) 13px/1.3 var(--font-ui); }
.fig-track-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fig-chip { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--radius); font: var(--ws-weight-strong) 13px/1.3 var(--font-ui); }
.fig-chip small { font: 400 12px/1.35 var(--font-body); opacity: .9; }
.fig-none { background: var(--card); border: 1px dashed var(--rule-strong); color: var(--ink); }
.fig-queue { background: var(--ink); color: var(--ws-on-ink); }
.fig-void { display: flex; align-items: center; justify-content: center; align-self: center; padding-top: 6px; border-top: 2px dotted var(--ws-never-fg); color: var(--ws-never-fg); font: italic 13px/1.2 var(--font-body); text-align: center; }

/* A review's three kinds of findings. */
.fig-source { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; margin: 0 auto; padding: 8px 14px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--card); }
.fig-source b { display: inline; }
.main .fig .fig-lanes { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.fig-lanes::before { content: ""; position: absolute; top: -14px; left: 16.6%; right: 16.6%; height: 14px; border: 1.5px solid var(--rule-strong); border-bottom: 0; border-radius: 8px 8px 0 0; }
.fig-lanes::after { content: ""; position: absolute; top: -26px; left: 50%; height: 12px; border-left: 1.5px solid var(--rule-strong); }
.fig-lane { border-top-width: 4px; }
.fig-fix { border-top-color: var(--ws-prefer-fg); }
.fig-suggest { border-top-color: var(--ws-mean-fg); }
.fig-question { border-top-color: var(--ws-never-fg); }
.fig-q { color: var(--ink); font-style: italic; }
.fig-who { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rule); font: 12px/1.35 var(--font-ui); color: var(--soft); }
.fig-question .fig-who { color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .main .fig { padding: 16px; }
  .fig-stages, .fig-flow, .fig-hub-flow { grid-template-columns: 1fr; gap: 26px; }
  .fig-stage:not(:last-child)::after, .fig-flow > li:not(:last-child)::after, .fig-hub-flow > li:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .main .fig .fig-stakes { margin-left: 30%; }
  .fig-bar thead tr > :first-child { width: 30%; }
  .fig-bar th, .fig-bar td { padding: 8px 4px; }
  .fig-eg { font-size: 12px; }
  .main .fig .fig-lanes { grid-template-columns: 1fr; margin-top: 12px; }
  .fig-lanes::before, .fig-lanes::after { display: none; }
  .fig-track-row { grid-template-columns: 1fr; }
  .fig-void { justify-content: flex-start; align-self: stretch; margin-left: 14px; padding: 6px 0 6px 10px; border-top: 0; border-left: 2px dotted var(--ws-never-fg); }
}
