/* StructOp identity: shared inks, paper, signal and locally served type. */
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}
:root {
  --carbon: #0E1722; --slate: #26394A; --mint: #6EE7C8; --silver: #B6C5D0; --paper: #F6F8F7;
  --sans: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  --bg: var(--paper); --surface: #fff; --sunken: #e9eff1;
  --ink: var(--carbon); --ink-2: var(--slate); --muted: #4e6373; --line: #d2dce1; --line-2: var(--silver);
  --accent: #096452; --accent-ink: white; --accent-soft: #d8f4eb; --link: #085e50;
  --ok: var(--accent); --warn: #8a5900; --code-bg: #f0f4f5;
  --term-bg: var(--carbon); --term-ink: var(--paper); --term-dim: var(--silver);
  --radius: 4px; --shadow: 0 2px 5px rgb(14 23 34 / 6%);
  --h-c: #526672; --h-s: #07654f; --h-k: #234a69; --h-b: #604675; --h-r: #155c81;
  --h-t: #7d4e0d; --h-m: #8a4335; --h-a: var(--slate); --h-p: var(--h-b); --h-n: var(--h-t);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--carbon); --surface: #162432; --sunken: #203141; --ink: var(--paper); --ink-2: #dae4e9;
    --muted: var(--silver); --line: #324655; --line-2: #506574; --accent: var(--mint); --accent-ink: var(--carbon);
    --accent-soft: #193c39; --link: var(--mint); --code-bg: #131f2c; --warn: #ffcc83;
    --h-c: #a4b6c0; --h-s: var(--mint); --h-k: #97cffe; --h-b: #d4b3f1; --h-r: #b2daf2;
    --h-t: #f2c68a; --h-m: #ffb8a5; --h-a: var(--paper); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: var(--carbon); --surface: #162432; --sunken: #203141; --ink: var(--paper); --ink-2: #dae4e9;
    --muted: var(--silver); --line: #324655; --line-2: #506574; --accent: var(--mint); --accent-ink: var(--carbon);
    --accent-soft: #193c39; --link: var(--mint); --code-bg: #131f2c; --warn: #ffcc83;
    --h-c: #a4b6c0; --h-s: var(--mint); --h-k: #97cffe; --h-b: #d4b3f1; --h-r: #b2daf2;
    --h-t: #f2c68a; --h-m: #ffb8a5; --h-a: var(--paper); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--sunken); border: 1px solid var(--line); border-radius: 5px; padding: .08em .35em; white-space: nowrap; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(16px, 3.5vw, 56px); background: var(--carbon); border-bottom: 1px solid var(--slate); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none;
  font: 650 22px/1 var(--sans); letter-spacing: -.05em; }
.brand img { display: block; background: var(--mint); padding: 4px; color-scheme: light; }
.tagline { text-decoration: none; color: var(--silver); font: 12px/1.5 var(--mono);
  border-left: 1px solid #516471; padding-left: 14px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; }
.top-right a { color: var(--paper); text-decoration: none; }
.top-right a:hover, .tagline:hover { color: var(--mint); }
.topbar :focus-visible, .cover :focus-visible { outline-color: var(--mint); }
.theme, .menu { border: 1px solid #576b79; background: var(--carbon); color: var(--paper); border-radius: 3px;
  width: 34px; height: 34px; cursor: pointer; font-size: 16px; }
.menu { display: none; }
.menu.sidebar-toggle { display: inline-block; }

/* layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 44px; max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.layout.wide { grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; padding: 28px 6px 40px 0; }
.nav-group { margin-bottom: 22px; }
.nav-title { font-family: var(--mono); font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 10px; }
.nav-group:has(.nav-title button) { margin-bottom: 6px; }
.nav-title:has(button) { margin: 0; }
.nav-title button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 3px; color: inherit; background: transparent; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; }
.nav-title button:hover { background: var(--sunken); color: var(--ink); }
.nav-title button::after { content: ''; flex: none; width: 6px; height: 6px; margin-right: 3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.nav-title button[aria-expanded="true"]::after { transform: rotate(45deg); }
.sidebar a { display: block; padding: 5px 10px; border-radius: 3px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.sidebar a:hover { background: var(--sunken); color: var(--ink); }
.sidebar a[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); color: var(--link); font-weight: 600; }
.content { min-width: 0; padding: 36px 0 80px; }
.layout:not(.wide) .content { max-width: 800px; }
.toc { position: sticky; top: 60px; align-self: start; padding: 36px 0; font-size: 13.5px; }
.toc-title { font-family: var(--mono); font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--accent); }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; padding: 26px 16px 40px; }

/* type */
h1 { font: 600 clamp(32px, 4.2vw, 44px)/1.12 var(--sans); letter-spacing: -.035em; margin: 6px 0 12px; }
h2 { font: 600 27px/1.25 var(--sans); margin: 52px 0 14px; padding-top: 4px; }
h3 { font-size: 18px; margin: 32px 0 10px; }
h2, h3 { position: relative; }
.anchor { margin-left: 8px; color: var(--line-2); text-decoration: none; font-weight: 400; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; color: var(--link); }
p, ul, ol { margin: 0 0 16px; }
li { margin: 4px 0; }
.lede { font-size: 19px; color: var(--ink-2); line-height: 1.55; margin-bottom: 18px; max-width: 46em; }
.muted { color: var(--muted); font-size: 14px; }
strong { font-weight: 650; }

/* Handbook cover and contents */
.layout.home { display: block; max-width: 1220px; }
.layout.home .content { max-width: none; padding-top: 28px; }
.cover { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--carbon); color: var(--paper);
  border: 1px solid var(--slate); }
.cover-copy { align-self: center; padding: clamp(28px, 4.2vw, 65px); }
.brand-line { font: 600 12px/1.5 var(--mono); letter-spacing: .12em; color: var(--silver); margin: 0 0 23px; }
.brand-line span { color: var(--mint); padding: 0 .28em; }
.cover h1 { font: 650 clamp(60px, 7.3vw, 106px)/.94 var(--sans); letter-spacing: -.06em; margin: 0 0 22px; }
.cover h1 span { font-weight: 300; color: var(--mint); }
.cover-tagline { color: var(--paper); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.4; }
.actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 28px; }
.button.primary { background: var(--mint); color: var(--carbon); padding: 11px 16px; border-radius: 2px;
  font: 600 15px/1.5 var(--sans); text-decoration: none; }
.button.primary:hover { background: #a1f3dc; }
.cover-link { color: var(--paper); text-underline-offset: 4px; font-size: 14px; }
.mark-drawing { display: grid; place-items: center; position: relative; overflow: hidden; background-color: var(--mint);
  background-image: linear-gradient(0deg, #26394a24 1px, transparent 1px), linear-gradient(90deg, #26394a24 1px, transparent 1px);
  background-size: 32px 32px; background-position: center; }
.mark-drawing::before, .mark-drawing::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed #26394a73; }
.mark-drawing::after { inset: 0 auto 0 50%; border: 0; border-left: 1px dashed #26394a73; }
.mark-frame { display: grid; place-items: center; position: relative; width: 65%; aspect-ratio: 4/3;
  border: 1px solid #26394a70; z-index: 1; }
.mark-frame::before, .mark-frame::after { content: ""; position: absolute; width: 7px; height: 7px;
  background: var(--paper); border: 1px solid var(--slate); }
.mark-frame::before { top: -4px; left: -4px; } .mark-frame::after { bottom: -4px; right: -4px; }
.mark-frame img { width: 100%; height: 100%; color-scheme: light; }
.cover-example { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.5fr 1fr; align-items: center;
  margin: 0; padding: 18px clamp(20px, 4.2vw, 65px); gap: 18px; border-top: 1px solid #516471; background: var(--slate); }
.cover-example figcaption a { color: var(--paper); font: 600 21px/1.3 var(--sans); text-decoration: none; }
.cover-example figcaption a:hover { text-decoration: underline; }
.cover-example figcaption span { color: var(--mint); }
.cover-file { margin: 0 0 6px; color: var(--silver); font: 12px/1.4 var(--mono); }
.cover-example pre, .cover-example samp { margin: 0; color: var(--paper); font: 13px/1.45 var(--mono); }
.cover-example > div { min-width: 0; }
.cover-output { border-left: 1px solid #647787; padding-left: 24px; }
.cover-example pre { overflow-x: auto; }
.cover-example pre code { font: inherit; }
.cover-example .keyword, .cover-example samp { color: var(--mint); }
.cover-example .literal { color: var(--paper); }
.plan-example { grid-template-columns: 1fr 1fr 1.7fr; align-items: start; padding-top: 22px; padding-bottom: 22px; }
.cover + .home-note { margin-top: 18px; }
.cover-headline { margin: 26px 0 12px; color: var(--paper); font: 600 clamp(20px, 1.9vw, 25px)/1.3 var(--sans); letter-spacing: -.015em; max-width: 30em; }
.cover-intro { margin: 0 0 12px; color: #dae4e9; font-size: 16px; line-height: 1.6; max-width: 38em; }
.cover-motto { margin: 18px 0 0; color: var(--mint); font: 600 13px/1.5 var(--mono); letter-spacing: .08em; }
.home h2 { margin: 40px 0 20px; font-size: clamp(31px, 4vw, 40px); }
.home .cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.home-split { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 36px; align-items: center; }
.home-split .diagram { margin: 0; }
.home-split p, .home-split ol { max-width: 60ch; }
.home-note { max-width: 80ch; color: var(--ink-2); font-size: 15px; }
.contents-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.contents-grid section { grid-column: span 2; border: 1px solid var(--line); border-top: 4px solid var(--mint); background: var(--surface); padding: 20px; }
.contents-grid section:nth-child(n+5) { grid-column: span 3; border-top-color: var(--silver); }
.contents-grid .chapter { grid-column: 1 / -1; }
.contents-grid .chapter ul { columns: 3; column-gap: 28px; }
.contents-grid .chapter li { break-inside: avoid; }
.contents-grid h3 { margin: 0; font: 600 24px/1.35 var(--sans); }
.contents-grid p { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.contents-grid ul { list-style: none; padding: 0; margin: 0; }
.contents-grid li { margin: 0; border-bottom: 1px solid var(--line); }
.contents-grid a { display: block; padding: 7px 0; text-decoration: none; }
.contents-grid a:hover { text-decoration: underline; }
.part-label, .part-label a { font-size: 13px; color: var(--muted); }
.part-label { margin-bottom: 12px; font-family: var(--mono); }
.sidebar .contents-link { font-weight: 650; color: var(--link); margin-bottom: 20px; }
.content > p, .content > ul, .content > ol { max-width: 70ch; }
.content > h1 + p { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.footer a { color: var(--ink-2); }
.skip-link { position: fixed; left: 12px; top: -120px; z-index: 50; background: var(--surface); padding: 10px; }
.skip-link:focus { top: 6px; }
.toc-inline { display: none; }

/* code */
.code { background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; overflow: hidden; }
.code pre { margin: 0; padding: 14px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; tab-size: 4; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px 7px 16px; border-bottom: 1px solid var(--line); background: var(--sunken); font: 12.5px var(--mono); color: var(--muted); }
.copy { font: 12px var(--sans); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: 3px 9px; cursor: pointer; }
.copy.done { color: var(--ok); border-color: var(--ok); }
.hc { color: var(--h-c); font-style: italic; } .hs { color: var(--h-s); } .hk { color: var(--h-k); font-weight: 600; }
.hb { color: var(--h-b); } .hr { color: var(--h-r); } .ht { color: var(--h-t); } .hm { color: var(--h-m); }
.ha { color: var(--h-a); font-weight: 600; } .hp { color: var(--h-p); } .hn { color: var(--h-n); }

/* terminal */
.terminal { background: var(--term-bg); color: var(--term-ink); border-radius: var(--radius); margin: 18px 0; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.65); border: 1px solid var(--slate); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--slate); border-bottom: 1px solid var(--slate); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--silver); display: inline-block; }
.term-bar i:nth-child(1) { background: var(--mint); } .term-bar i:nth-child(2) { background: var(--silver); } .term-bar i:nth-child(3) { background: var(--paper); }
.term-bar span { margin-left: 10px; font: 12.5px var(--mono); color: var(--term-dim); }
.terminal pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.38; max-height: 560px; }

/* Match the recording player to the handbook while preserving ANSI colour meanings. */
.player-wrap .asciinema-player-theme-structop {
  --term-color-foreground: var(--paper); --term-color-background: var(--carbon);
  --term-color-0: var(--carbon); --term-color-1: #ff9d93; --term-color-2: var(--mint);
  --term-color-3: #f2c68a; --term-color-4: #97cffe; --term-color-5: #d4b3f1;
  --term-color-6: #94d8e3; --term-color-7: var(--silver); --term-color-8: #91a4b2;
  --term-color-15: var(--paper);
}

/* example page */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.badge.rust { background: var(--accent-soft); color: var(--link); border-color: transparent; }
.badge { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); color: var(--ink-2); font-family: var(--mono); }
.demo { margin: 22px 0 8px; }
.player-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.65); background: var(--term-bg); }
.player-wrap .ap-wrapper { border-radius: var(--radius); }
.player-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.still { margin: 0 0 14px; }
.still img { max-width: min(100%, 560px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.still figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 12px 0; }
.fold > summary { cursor: pointer; padding: 11px 16px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; align-items: center; gap: 10px; }
.fold > summary::before { content: "▸"; color: var(--accent); transition: transform .15s; }
.fold[open] > summary::before { transform: rotate(90deg); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > .code, .fold > video, .fold > p { margin: 0 14px 14px; }
.fold video { width: calc(100% - 28px); border-radius: 8px; }
.tabs [role="tablist"] { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: 8px; }
.tabs [role="tab"] { font: 13px var(--mono); border: 1px solid transparent; border-bottom: none; background: none; color: var(--muted); padding: 7px 12px; border-radius: 8px 8px 0 0; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--code-bg); border-color: var(--line); color: var(--ink); margin-bottom: -1px; }
.tabs [role="tabpanel"] .code { margin-top: 0; border-top-left-radius: 0; }
.runbox { margin-top: 26px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.pager a { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pager a small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pager .next { text-align: right; }

/* galleries and cards */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 14px 0 6px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.thumb { height: 150px; background: var(--term-bg); overflow: hidden; position: relative; }
.thumb pre { margin: 0; padding: 10px 12px; color: var(--term-ink); font-size: 8.6px; line-height: 1.25; white-space: pre; }
.thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: var(--slate); }
.thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 36px; background: linear-gradient(transparent, var(--term-bg)); }
.tile-body { padding: 11px 14px 13px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.tile-body strong { font-size: 15px; }
.tile-body span { font-size: 12.5px; color: var(--muted); }
.tile-body .rec { position: absolute; right: 12px; top: 12px; color: var(--accent); font: 600 11px var(--mono); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 18px 0; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.card strong { display: block; font: 600 17px/1.3 var(--sans); margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 14px; }
.card:hover { border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 22px 0; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stats b { display: block; font: 600 30px/1.1 var(--sans); color: var(--accent); }
.stats span { font-size: 13px; color: var(--muted); }

/* callouts, tables, filters */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); border-radius: 8px; padding: 12px 16px; margin: 18px 0; }
.callout p:last-child { margin: 0; }
.callout.tip { border-left-color: var(--ok); } .callout.warning { border-left-color: var(--warn); }
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sunken); }
th, td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td code { white-space: normal; }
.req { font: 600 10.5px var(--sans); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.filter input { width: 100%; max-width: 380px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 14px var(--sans); }
/* Provider directory and versioned reference */
.registry .content { padding-top: 28px; }
.registry .sidebar .contents-link { margin-bottom: 20px; }
.registry .sidebar [aria-current="location"] { color: var(--link); box-shadow: inset 3px 0 var(--accent); }
.registry-head { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 3vw, 40px);
  color: var(--paper); background: var(--carbon); border-left: 5px solid var(--mint); border-radius: var(--radius); }
.registry-head::before { content: ""; position: absolute; z-index: -1; inset: 0 0 0 45%; pointer-events: none;
  background: linear-gradient(90deg, var(--carbon), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 27px, #293d4a 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, #293d4a 27px 28px); }
.registry-head h1 { color: var(--paper); overflow-wrap: anywhere; margin: 0; }
.registry-head p { margin: 10px 0 0; max-width: 58ch; color: #dae4e9; }
.registry-head code { background: var(--slate); color: var(--mint); border-color: #486172; }
.registry-head .crumbs { margin: 0 0 14px; color: var(--silver); }
.registry-head .crumbs a { color: var(--mint); }
.registry-head :focus-visible { outline-color: var(--mint); }
.provider-meta { display: flex; flex-wrap: wrap; gap: 5px 18px; margin-top: 18px; font: 13px var(--mono); color: var(--silver); }
.registry-filter { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: 4px 18px; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 14px 0 28px; }
.registry-filter label { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.registry-filter > label { grid-area: 1 / 1; }
.registry-filter > input { grid-area: 2 / 1; width: 100%; max-width: none; height: 40px; border-radius: 4px; }
.registry-facets { grid-area: 1 / 2 / 3 / 3; display: flex; gap: 12px; }
.registry-facets > div { display: grid; gap: 4px; flex: 1; }
.registry-facets select { min-height: 40px; padding: 6px 10px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 4px; font: 14px var(--sans); }
.registry-filter .filter-status { align-self: center; margin: 6px 0 0; }
.filter-reset { justify-self: end; border: 0; background: transparent; color: var(--link); padding: 5px 0; font: inherit; text-decoration: underline; cursor: pointer; }
.registry-group { margin: 28px 0; }
.registry-group h2 { margin: 0; font-size: 23px; }
.registry-group .cards { margin: 10px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card.provider-card { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--accent); }
.provider-card strong { margin: 0; font: 600 17px var(--mono); color: var(--link); overflow-wrap: anywhere; }
.provider-card > span { flex: 1; color: var(--ink-2); }
.provider-card small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.provider-card small span { font: 12px var(--mono); color: var(--muted); }
.registry-contribute { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 18px; }
.registry-contribute h2 { margin: 0; font-size: 20px; }
.registry-contribute p { margin: 6px 0; }
.version-list, .registry-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 16px 0; }
.version-list > span { font-weight: 600; margin-right: 5px; }
.version-list strong, .version-list a { padding: 4px 9px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 14px var(--mono); }
.version-list strong { color: var(--accent-ink); font-weight: 600; background: var(--accent); border-color: var(--accent); }
.registry-jumps { gap: 8px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.registry .content > h2 { margin-top: 32px; }
.registry details.ability { background: var(--surface); padding: 0; }
.registry details.ability summary { padding: 9px 14px; cursor: pointer; color: var(--link); }
.registry details.ability summary code { border: 0; background: transparent; }
.registry details.ability[open] summary { background: var(--accent-soft); }
.registry details.ability > :not(summary) { margin: 12px; }
.registry .filter + details { margin-top: 12px; }
@media (max-width: 680px) {
  .registry-filter { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px; }
  .registry-filter > input { grid-area: 2 / 1 / 3 / -1; }
  .registry-facets { grid-area: 3 / 1 / 4 / -1; flex-wrap: wrap; }
  .registry .content { padding-top: 16px; }
}
.filter-status { margin: 0; color: var(--muted); font-size: 14px; }
.filter-status:not(:empty) { margin: 8px 0; }
.ability { border-top: 1px solid var(--line); padding-top: 4px; }
.errors { display: grid; gap: 10px; margin: 16px 0; }
.error-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.error-card > summary { cursor: pointer; padding: 10px 14px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.error-card > summary span { color: var(--muted); font-size: 13.5px; }
.error-card > .code, .error-card > .terminal { margin: 0 14px 14px; }
.checks { columns: 2; column-gap: 36px; font-size: 14px; }
.hidden-by-filter { display: none !important; }

/* diagrams: inline SVG drawn with the theme's inks, so they follow light and dark */
.diagram { margin: 22px 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.diagram svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.diagram figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.diagram text { font: 13px var(--sans); fill: var(--ink); }
.diagram .t { font-weight: 600; }
.diagram .s { font-size: 11.5px; fill: var(--muted); }
.diagram .m { font: 11.5px var(--mono); fill: var(--ink-2); }
.diagram .c { font-size: 12px; fill: var(--ink-2); }
.diagram .big { font-size: 21px; font-weight: 650; letter-spacing: -.03em; }
.diagram .box { fill: var(--surface); stroke: var(--line-2); }
.diagram .key { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .core { stroke-width: 2; }
.diagram .chip { fill: var(--surface); stroke: var(--line); }
.diagram .link { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.diagram .loop { stroke-dasharray: 4 3; }
.diagram .head { fill: var(--muted); }
/* a drawing of structop graph -changed output: theme inks on chapter pages, panel inks on the home page */
.graph-drawing { --g-ink: var(--ink); --g-dim: var(--muted); --g-box: var(--surface); --g-line: var(--line-2);
  --g-mark: var(--accent-soft); --g-mark-line: var(--accent); overflow-x: auto; }
.cover .graph-drawing { --g-ink: var(--paper); --g-dim: var(--silver); --g-box: var(--carbon); --g-line: #647787;
  --g-mark: #193c39; --g-mark-line: var(--mint); }
.graph-drawing svg { display: block; width: 100%; min-width: 316px; max-width: 380px; height: auto; margin: 0 auto; }
.graph-drawing text { font: 12px var(--mono); fill: var(--g-ink); }
.graph-drawing .e { font: 12px var(--sans); fill: var(--g-dim); }
.graph-drawing .n { fill: var(--g-box); stroke: var(--g-line); }
.graph-drawing .changed { fill: var(--g-mark); stroke: var(--g-mark-line); stroke-width: 2.5; }
.graph-drawing .moved { stroke-dasharray: 6 2 1 2; }
.graph-drawing .edge { fill: none; stroke: var(--g-dim); stroke-width: 1.3; }
.graph-drawing .dep { stroke-dasharray: 4 3; }
.graph-drawing .head { fill: var(--g-dim); }
.graph-example { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding-top: 22px; padding-bottom: 22px; }
.graph-caption { grid-column: 1 / -1; color: var(--silver); font-size: 13px; line-height: 1.5; max-width: 80ch; }
.graph-caption code { color: var(--paper); background: none; border: 0; padding: 0; }
blockquote.callout { margin-inline: 0; font-size: 18px; color: var(--ink-2); }

/* small screens */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 230px minmax(0, 1fr); }
  .toc { display: none; }
  .toc-inline { display: block; border-block: 1px solid var(--line); padding: 10px 0; margin: 24px 0; }
  .toc-inline summary { color: var(--link); cursor: pointer; font-weight: 600; }
  .toc-inline a { display: block; padding: 3px 0; }
}
@media (min-width: 861px) {
  .sidebar-collapsed .sidebar { display: none; }
  .sidebar-collapsed .layout { grid-template-columns: minmax(0, 1fr) 210px; }
  .sidebar-collapsed .layout.wide { grid-template-columns: minmax(0, 1fr); }
  .sidebar-collapsed .layout .content { max-width: none; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .sidebar-collapsed .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout, .layout.wide { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }
  .menu { display: inline-block; }
  .tagline, .top-right a { display: none; }
  .home-header .top-right a:first-child { display: inline; }
  .sidebar { position: fixed; inset: 60px auto 0 0; width: 280px; background: var(--bg); border-right: 1px solid var(--line); padding: 20px 14px; transform: translateX(-102%); transition: transform .2s; z-index: 30; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
  body.nav-open .sidebar { transform: none; }
  .layout.home .content { padding-top: 16px; }
  .contents-grid { gap: 18px; }
  .home-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .graph-example { grid-template-columns: minmax(0, 1fr); }
  .graph-example .cover-output { border: 0; padding: 0; }
  .sidebar { visibility: hidden; }
  body.nav-open .sidebar { visibility: visible; }
  .checks { columns: 1; }
  .pager { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .cover, .contents-grid { grid-template-columns: minmax(0, 1fr); }
  .cover-copy { padding: 26px 20px; }
  .cover h1 { font-size: clamp(50px, 12vw, 70px); }
  .brand-line { margin-bottom: 16px; }
  .mark-drawing { min-height: 144px; }
  .mark-frame { width: 144px; }
  .cover-example { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cover-output { border: 0; padding: 0; }
  .contents-grid section, .contents-grid section:nth-child(n+5) { grid-column: auto; }
  .contents-grid .chapter ul { columns: 1; }
  .cover-example pre, .cover-example samp { font-size: 13px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
  th, td { padding: 8px; }
  .diagram { padding: 12px 4px; }
}
@media (min-width: 360px) and (max-width: 680px) {
  td:first-child code { overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* A graph drawn by structop graph: the line height at which its box characters join, as in a terminal. */
pre.drawing{line-height:1.3}
