@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/PublicSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/PublicSans-Italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/PublicSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/PublicSans-Bold.woff2") format("woff2"); }
:root { color-scheme: light dark; --harbour:#12303F; --signal:#0E8A87; --amber:#E4913C; --dawn:#F2CDB6; --paper:#F7F5F1; --slate:#5C7079; --rule:#DCE0DD; --panel:#FCFBF9; --card:#FFFFFF; --mark:#12303F; }
/* Dark mode follows the reader's browser (screens only: print is always light). Values match the
   Platform's own dark palette; Harbour, the text colour, becomes the light ink. The diagrams get
   the same palette from build.py. */
@media screen and (prefers-color-scheme: dark) {
  :root { --harbour:#EDF2F1; --signal:#3FBDB6; --amber:#EBA45B; --dawn:#4A3226; --paper:#0D202A; --slate:#93AAB4; --rule:#2E4A59; --panel:#133040; --card:#16394A; --mark:#8FB6C7; }
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--harbour); background: var(--paper); font: 16px/1.55 "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
a { color: var(--harbour); text-decoration-color: var(--signal); text-underline-offset: 2px; }
a:hover { color: var(--signal); }
header.site { border-bottom: 2px solid var(--signal); background: var(--panel); }
header.site .in { max-width: 62rem; margin: 0 auto; padding: .9rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; }
.brand svg [stroke="#12303F"] { stroke: var(--mark); }
.brand svg [stroke="#0E8A87"] { stroke: var(--signal); }
.brand .wm { font-weight: 700; letter-spacing: -0.028em; font-size: 1.05rem; line-height: 1.1; }
.brand .wm small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); margin-top: .2rem; }
.tm { font-size: .62em; vertical-align: super; letter-spacing: normal; font-weight: 400; }
nav.guides { margin-left: auto; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .88rem; }
nav.guides a { text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav.guides a[aria-current="page"] { border-bottom-color: var(--signal); font-weight: 600; }
main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.kicker { font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: var(--slate); margin: 0 0 .4rem; }
h1 { font-size: 2.1rem; line-height: 1.12; letter-spacing: -0.026em; margin: 0 0 1rem; }
h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; margin: 2.4rem 0 .7rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.12rem; margin: 1.7rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: .25rem 0; }
ul { padding-left: 1.2rem; list-style: none; }
ul li { position: relative; }
ul li::before { content: ""; position: absolute; left: -1.1rem; top: .62em; width: .42rem; height: .42rem; border: 1.5px solid var(--signal); border-radius: 50%; }
ol { padding-left: 1.4rem; }
strong { font-weight: 700; }
em { font-style: italic; }
code { font-family: ui-monospace, Consolas, "Atkinson Mono", monospace; font-size: .92em; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: .05em .3em; }
pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: .8rem 1rem; overflow-x: auto; }
pre code { border: 0; padding: 0; background: none; }
blockquote { margin: 1rem 0 1.1rem; padding: .75rem 1rem .75rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--signal); border-radius: 0 10px 10px 0; max-width: 34rem; font-size: .95rem; }
blockquote p { margin: 0; }
blockquote + blockquote { margin-top: -.4rem; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .92rem; background: var(--panel); border: 1px solid var(--rule); }
th, td { text-align: left; vertical-align: top; padding: .5rem .65rem; border-bottom: 1px solid var(--rule); }
th { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
figure { margin: 1.5rem 0 1.8rem; }
figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
figcaption { font-size: .82rem; color: var(--slate); margin-top: .4rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
footer.site { border-top: 1px solid var(--rule); margin-top: 2rem; }
footer.site .in { max-width: 62rem; margin: 0 auto; padding: 1.2rem 1.25rem 2rem; font-size: .78rem; color: var(--slate); }
footer.site .legal { font-size: .68rem; letter-spacing: .01em; margin-top: .5rem; }
.pagebreak { break-before: page; }
@media (max-width: 640px) { h1 { font-size: 1.7rem; } nav.guides { margin-left: 0; } table { font-size: .85rem; } th, td { padding: .4rem .45rem; } }
@media print {
  @page { size: A4; margin: 18mm 16mm 20mm; }
  :root { color-scheme: light; }
  html, body { background: #fff; font-size: 10.5pt; }
  header.site { border-bottom: 1.5pt solid var(--signal); background: none; }
  header.site .in { padding: 0 0 4mm; }
  nav.guides { display: none; }
  main { max-width: none; padding: 6mm 0 0; }
  h2 { break-after: avoid; }
  h3 { break-after: avoid; }
  table, figure, blockquote, pre { break-inside: avoid; }
  tr { break-inside: avoid; }
  figure img { border: 0; }
  a { text-decoration: none; color: inherit; }
  footer.site { margin-top: 8mm; }
  footer.site .in { padding: 3mm 0 0; }
}
