/* Generated by scripts/build-docs-site.ts from docs/brand/tokens.json (design system "Factory · Plumb", light only). Do not edit. */

/* Design tokens, generated from docs/brand/tokens.json. Every colour in this stylesheet is here. */
:root {
  color-scheme: light;
  --ink: #080d1a;
  --muted: #58627b;
  --rail: #f3f6fa;
  --rule: #dce2ec;
  --blue: #075bea;
  --blue-dark: #0547b8;
  --select: #dceaff;
  --ok: #1f9a4b;
  --warn: #b25400;
  --problem: #b42318;
  --hover: #f7f9fc;
  --canvas: #ffffff;
  --nav-hover: #e8eef7;
  --notice-bg: #f5f8fe;
  --warn-bg: #fff8f0;
  --ok-bg: #f1f9f4;
  --blocked-bg: #fdecea;
  --stale-bg: #fff1e0;
  --input-border: #b8c1d1;
  --mark-off: #9aa3b5;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --focus: 0 0 0 3px #ffffff, 0 0 0 6px #075bea;
  --rail-width: 258px;
  --inset: 40px;
  --control-height: 48px;
  --touch-min: 44px;
  --mark-lg: 72px;
  --mark-md: 64px;
  --mark-sm: 56px;
  --mark-min: 48px;
  --illustration: 128px;
  --status-icon: 40px;
  --icon: 24px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* End of design tokens. */

/* Type styles (tokens.json type.groups); each sets its .type-<name> class and the elements listed. */
.type-page-title, .page-header h1, .doc h1 { font-family: var(--font-sans); font-size: 48px; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
.type-metric-value { font-family: var(--font-sans); font-size: 44px; line-height: 1.15; font-weight: 750; }
.type-wordmark, .wordmark { font-family: var(--font-sans); font-size: 40px; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em; }
.type-section-heading, .doc h2 { font-family: var(--font-sans); font-size: 26px; line-height: 1.2; font-weight: 750; }
.type-status-title { font-family: var(--font-sans); font-size: 24px; line-height: 1.4; font-weight: 650; }
.type-panel-heading { font-family: var(--font-sans); font-size: 22px; line-height: 1.2; font-weight: 750; }
.type-blocker-title { font-family: var(--font-sans); font-size: 20px; line-height: 1.4; font-weight: 650; }
.type-subtitle { font-family: var(--font-sans); font-size: 24px; line-height: 1.4; font-weight: 400; }
.type-nav-item, .nav-item { font-family: var(--font-sans); font-size: 20px; line-height: 1.4; font-weight: 400; }
.type-item-title, .card-title { font-family: var(--font-sans); font-size: 19px; line-height: 1.4; font-weight: 650; }
.type-body, body { font-family: var(--font-sans); font-size: 18px; line-height: 1.4; font-weight: 400; }
.type-label { font-family: var(--font-sans); font-size: 18px; line-height: 1.4; font-weight: 500; }
.type-control, .skip-link, .mobile-page-nav summary { font-family: var(--font-sans); font-size: 18px; line-height: 1.4; font-weight: 650; }
.type-subheading, .doc h3, .doc h4, .doc h5, .doc h6 { font-family: var(--font-sans); font-size: 18px; line-height: 1.4; font-weight: 650; }
.type-compact, .doc td, .card-text, .page-nav a { font-family: var(--font-sans); font-size: 17px; line-height: 1.4; font-weight: 400; }
.type-supporting, .supporting, .rail-footer, .page-nav-title, .page-meta, .site-footer, .doc thead th, .doc figcaption { font-family: var(--font-sans); font-size: 16px; line-height: 1.4; font-weight: 400; }
.type-badge, .badge { font-family: var(--font-sans); font-size: 16px; line-height: 1.4; font-weight: 500; }
.type-small { font-family: var(--font-sans); font-size: 15px; line-height: 1.4; font-weight: 400; }
.type-caption, .badge.planned, .doc td[data-label]::before { font-family: var(--font-sans); font-size: 14px; line-height: 1.3; font-weight: 400; }
.type-code, code { font-family: var(--font-mono); font-size: 0.88em; line-height: 1.4; font-weight: 400; }
.type-path, .path { font-family: var(--font-mono); font-size: 16px; line-height: 1.4; font-weight: 400; }

/* Site measures: not design-system tokens yet (docs/brand/design-language.md). The reading measure, the narrowest page,
   the narrowest table with four or with six columns before it scrolls, the narrowest diagram before it scrolls, and a module card's narrowest column. */
:root { --measure: 70ch; --page-min: 320px; --table-min: 44rem; --table-wide-min: 60rem; --figure-min: 40rem; --card-min: 15rem; }

/* Components, after the dashboard (apps/dashboard/src/styles.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: var(--page-min); background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
strong { font-weight: 650; }
pre { font-family: var(--font-mono); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
/* Keyboard focus: links and linked cards show a 3 px blue outline; the skip link and scrollable regions, which act as controls, show the focus ring. */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-sm); }
.skip-link:focus-visible, pre:focus-visible, .table-scroll:focus-visible, .figure-scroll:focus-visible { outline: none; box-shadow: var(--focus); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--blue);
  color: var(--canvas);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-8)));
}
.skip-link:focus { transform: none; }

/* Layout: a navigation rail on rail beside the main column, inset by --inset. */
.layout { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-4);
  background: var(--rail);
}
/* The mark's canvas keeps its transparent margin; the negative margins leave about half a bob width of clear
   space, and bottom alignment sets the live wordmark's baseline near the bob's tip. Never below --mark-min. */
.wordmark { --mark: var(--mark-lg); display: flex; align-items: flex-end; min-height: var(--touch-min); padding: 0 var(--space-3); color: var(--ink); text-decoration: none; }
.brand-mark { flex: none; width: var(--mark); height: var(--mark); min-width: var(--mark-min); min-height: var(--mark-min); margin: calc(var(--mark) * -0.1) calc(var(--mark) * -0.23) 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.nav-item { display: flex; align-items: center; min-height: var(--control-height); padding: 0 var(--space-4); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.nav-item:hover { background: var(--nav-hover); }
.nav-item[aria-current] { background: var(--select); color: var(--blue); font-weight: 500; }
.rail-footer { margin: auto 0 0; padding: 0 var(--space-3); color: var(--muted); }

.content { display: flex; flex-direction: column; min-width: 0; }
main { flex: 1 0 auto; min-width: 0; padding: var(--space-8) var(--inset) var(--space-12); }
.site-footer { padding: var(--space-4) var(--inset); border-top: 1px solid var(--rule); color: var(--muted); }
.site-footer p { max-width: var(--measure); margin: 0; }

/* Page header: one page title, then the module's status as a word in a badge. */
.page-header { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-8); padding-bottom: var(--space-8); border-bottom: 1px solid var(--rule); }
.page-header h1 { margin: 0; overflow-wrap: anywhere; }
.page-status { margin: 0; }

/* Status badges: always a word. Accepted and In progress are the default badge; Planned is quiet. */
.badge { display: inline-block; padding: var(--space-1) var(--space-3); border-radius: var(--radius-md); background: var(--select); color: var(--blue-dark); white-space: nowrap; }
.badge.planned { padding: 0 var(--space-2); background: var(--rail); color: var(--muted); }

/* Notices: limits, what is not established and the reference note, on notice-bg behind a blue border. */
.notice { margin: 0 0 var(--space-6); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--blue); background: var(--notice-bg); }
main > .notice { max-width: var(--measure); }
.doc .notice > :first-child { margin-top: 0; }
.doc .notice > :last-child { margin-bottom: 0; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }

/* Article prose keeps a readable measure; tables, code, figures and cards may use the whole column. */
.doc { min-width: 0; overflow-wrap: break-word; }
.doc > * { max-width: var(--measure); }
.doc > .table-scroll, .doc > pre, .doc > figure, .doc > ul.cards { max-width: none; }
.doc > :first-child { margin-top: 0; }
.doc h1 { margin: 0 0 var(--space-4); }
.doc h2 { margin: var(--space-10) 0 var(--space-3); }
.doc h3 { margin: var(--space-8) 0 var(--space-2); }
.doc h4, .doc h5, .doc h6 { margin: var(--space-6) 0 var(--space-2); }
.doc p, .doc ul, .doc ol, .doc blockquote, .doc pre, .doc figure, .doc .table-scroll { margin: 0 0 var(--space-4); }
.doc ul, .doc ol { padding-left: var(--space-6); }
.doc li { margin: var(--space-1) 0; }
.doc li > p { margin: 0 0 var(--space-2); }
.doc li > ul, .doc li > ol { margin: var(--space-1) 0 var(--space-2); }
.doc blockquote { padding: var(--space-1) var(--space-4); border-left: 3px solid var(--rule); color: var(--muted); }
.doc hr { margin: var(--space-8) 0; border: 0; border-top: 1px solid var(--rule); }
.supporting { color: var(--muted); }

/* Code on rail with small corners. */
.doc code { padding: 0 var(--space-1); border-radius: var(--radius-sm); background: var(--rail); overflow-wrap: anywhere; }
.doc pre { padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--rail); overflow-x: auto; }
.doc pre code { padding: 0; background: none; white-space: pre; overflow-wrap: normal; }
.doc th code, .doc td code { overflow-wrap: normal; }
.mermaid-source figcaption { margin-bottom: var(--space-1); color: var(--muted); }

/* Tables: hairline rows, no striped fill, headers in muted. */
.table-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc th:first-child, .doc td:first-child { padding-left: 0; }
.doc thead th { vertical-align: bottom; color: var(--muted); }
.doc table:has(th:nth-child(4)) { min-width: var(--table-min); }
.doc table:has(th:nth-child(6)) { min-width: var(--table-wide-min); }

/* Figures. Brand plates are always whole, never cropped: no fixed height, no object-fit, no clipping corners. */
.doc img { max-width: 100%; height: auto; }
.figure img { display: block; }
.figure.diagram img { border: 1px solid var(--rule); background: var(--canvas); }
.figure-scroll { overflow-x: auto; }
.figure-scroll img { min-width: var(--figure-min); }
/* A plate is wide enough (six illustration widths, 768 px) for its module labels and its "not status or progress" line to stay legible. */
.figure.plate img { width: calc(var(--illustration) * 6); max-width: 100%; height: auto; border: 1px solid var(--rule); }
.figure.illustration img { width: var(--illustration); height: auto; }

/* Module cards on the home page: the whole card is the link; its status is a word in a badge. */
.doc ul.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr)); gap: var(--space-3); }
.doc ul.cards > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-4); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.doc ul.cards > li:hover { background: var(--hover); }
.doc .card-title, .doc .card-text, .doc .card-status { margin: 0; }
.doc .card-status { margin-top: auto; }
.card-text { color: var(--muted); }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.card-title a:focus-visible { outline: none; }
.card-title a:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }

/* A sticky disclosure above the article on mobile and tablet; a sidebar on desktop. */
.desktop-page-nav { display: none; }
.mobile-page-nav { position: sticky; top: 0; z-index: 2; margin-bottom: var(--space-6); background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--radius-md); }
.mobile-page-nav summary { min-height: var(--touch-min); padding: var(--space-3) var(--space-4); cursor: pointer; color: var(--blue); }
.mobile-page-nav[open] summary { border-bottom: 1px solid var(--rule); }
.mobile-page-nav-panel { max-height: calc(100vh - var(--touch-min) - var(--space-8)); max-height: calc(100dvh - var(--touch-min) - var(--space-8)); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4); }
.doc [id] { scroll-margin-top: calc(var(--touch-min) + var(--space-8)); }
.page-nav-block + .page-nav-block { margin-top: var(--space-6); }
.page-nav-title { margin: 0 0 var(--space-2); color: var(--muted); }
.page-nav ul { list-style: none; margin: 0; padding: 0; }
.page-nav a { display: flex; align-items: center; min-height: var(--touch-min); padding: var(--space-1) var(--space-3); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; }
.page-nav a:hover { background: var(--nav-hover); }
.page-nav a[aria-current="page"] { background: var(--select); color: var(--blue); font-weight: 500; }

.page-meta { max-width: var(--measure); margin: var(--space-12) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--rule); color: var(--muted); }
.doc .doc-list { list-style: none; padding: 0; }
.doc .doc-list li { margin: 0 0 var(--space-3); }
.doc-list .path { display: block; color: var(--muted); }

@media (min-width: 1281px) {
  .page-body.has-page-nav { grid-template-columns: minmax(0, 1fr) var(--rail-width); }
  .mobile-page-nav { display: none; }
  .desktop-page-nav { display: block; position: sticky; top: var(--space-8); align-self: start; max-height: calc(100vh - var(--space-8) * 2); overflow-y: auto; padding-top: 0; border-top: 0; }
}

/* At 1280 px and below: the tokens' notes, then layout. */
@media (max-width: 1280px) {
  :root { --rail-width: 224px; --inset: 32px; }
  .type-wordmark, .wordmark { font-size: 34px; }

  .wordmark { --mark: var(--mark-md); }
}

/* At 960 px and below: the tokens' notes, then layout. */
@media (max-width: 960px) {
  :root { --inset: 20px; }
  .type-page-title, .page-header h1, .doc h1 { font-size: 36px; }
  .type-metric-value { font-size: 36px; }
  .type-wordmark, .wordmark { font-size: 28px; }
  .type-section-heading, .doc h2 { font-size: 22px; }
  .type-subtitle { font-size: 20px; }
  .type-nav-item, .nav-item { font-size: 17px; }
  .type-body, body { font-size: 17px; }

  /* The rail becomes a top bar. */
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--inset); border-bottom: 1px solid var(--rule); }
  .wordmark { --mark: var(--mark-sm); padding: 0; }
  .nav-list { display: flex; flex-wrap: wrap; gap: var(--space-1); }
  .nav-item { min-height: var(--touch-min); padding: 0 var(--space-3); }
  .rail-footer { display: none; }
  main { padding-top: var(--space-6); }
  .page-header { margin-bottom: var(--space-6); padding-bottom: var(--space-6); }

  /* Tables: one block per row, each cell labelled with its column heading. */
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: auto; }
  .doc table:has(th:nth-child(4)), .doc table:has(th:nth-child(6)) { min-width: 0; }
  .doc tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); }
  .doc td, .doc td:first-child { padding: var(--space-1) 0; border: 0; }
  .doc td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); }
  .doc td[data-label=""]::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
