/* unifold.md. One hand-written stylesheet; no fonts or scripts from elsewhere. Flat: no shadows,
   bands of colour, headings that carry a highlighter bar. */
@font-face {                         /* served from this site; one weight, used for every heading */
  font-family: "Patua One"; src: url("/patua-one.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg-2: #f5f6f6; --paper: #ffffff; --ink: #141c20; --ink-2: #33424a; --muted: #5d6c73;
  --line: #e2e6e7; --line-2: #c9d1d3; --code: #f3f5f5; --code-inline: #eaeef0; --code-line: #d5dcdf;
  --accent: #0a7462; --accent-2: #5cc4ae; --accent-soft: #dcf2ec;
  --dark: #0f1416; --dark-2: #1a2226; --dark-ink: #e6ecee; --dark-muted: #9aa9b0;
  --term-err: #ff7b72; --term-wrn: #f2c56b; --term-ok: #7ee2c8;
  --err: #c2321f; --wrn: #8f5f00; --on-accent: #fff;
  --teal: #0a7462; --teal-hl: #bfeadf; --blue: #245cc0; --blue-hl: #cfdcf8;
  --amber: #9a5b00; --amber-hl: #ffe1a3; --coral: #b93a24; --coral-hl: #ffd2c6;
  --violet: #6646b8; --violet-hl: #e1d7fa;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --slab: "Patua One", Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
}
/* dark: chosen with the button in the header (data-theme on <html>, set by the script in the head of every
   page), or asked for by the system when nothing is chosen. A selector and a media query cannot share a
   rule, so both blocks hold the same tokens; build.py --check keeps them equal. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1214; --bg-2: #141a1d; --paper: #12181b; --ink: #e8eef0; --ink-2: #c3cfd3; --muted: #8e9ea5;
  --line: #222c31; --line-2: #33414a; --code: #161d21; --code-inline: #25313a; --code-line: #3a4a54;
  --accent: #5fd3bb; --accent-2: #2c8f7d; --accent-soft: rgba(95, 211, 187, .12);
  --dark: #070a0b; --dark-2: #12181b;
  --err: #ff8f85; --wrn: #e5b657; --on-accent: #06100d;
  --teal: #5fd3bb; --teal-hl: rgba(95, 211, 187, .28); --blue: #8db4ff; --blue-hl: rgba(110, 155, 255, .3);
  --amber: #f2c56b; --amber-hl: rgba(242, 180, 60, .28); --coral: #ff9d88; --coral-hl: rgba(255, 120, 95, .28);
  --violet: #b9a3ff; --violet-hl: rgba(160, 130, 255, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1214; --bg-2: #141a1d; --paper: #12181b; --ink: #e8eef0; --ink-2: #c3cfd3; --muted: #8e9ea5;
    --line: #222c31; --line-2: #33414a; --code: #161d21; --code-inline: #25313a; --code-line: #3a4a54;
    --accent: #5fd3bb; --accent-2: #2c8f7d; --accent-soft: rgba(95, 211, 187, .12);
    --dark: #070a0b; --dark-2: #12181b;
    --err: #ff8f85; --wrn: #e5b657; --on-accent: #06100d;
    --teal: #5fd3bb; --teal-hl: rgba(95, 211, 187, .28); --blue: #8db4ff; --blue-hl: rgba(110, 155, 255, .3);
    --amber: #f2c56b; --amber-hl: rgba(242, 180, 60, .28); --coral: #ff9d88; --coral-hl: rgba(255, 120, 95, .28);
    --violet: #b9a3ff; --violet-hl: rgba(160, 130, 255, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.65 var(--sans); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem .75rem; z-index: 20; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
code, pre { font-family: var(--mono); font-size: .875em; }
:not(pre) > code { background: var(--code-inline); border: 1px solid var(--code-line); padding: .04em .3em; border-radius: 3px; font-size: .86em; }   /* inline code: a tint and a hairline, lighter than the page in dark */
pre { margin: 1.1rem 0; padding: 1rem 1.1rem; background: var(--code); border-radius: 4px; overflow-x: auto; line-height: 1.55; tab-size: 2; }
pre code { font-size: .8125rem; }
pre .c { color: var(--muted); }
pre .k { color: var(--accent); }
pre .err { color: var(--err); font-weight: 600; }
pre .wrn { color: var(--wrn); font-weight: 600; }
pre .cmd { font-weight: 600; }
pre .hl { background: var(--accent-soft); }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.icon.sm { width: 1.05em; height: 1.05em; }
.icon.lg { width: 2.25rem; height: 2.25rem; }

/* header and footer */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .75rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font: 700 1.3rem/1 var(--slab); text-decoration: none; }
.mark .m1 { fill: var(--accent); }
.mark .m2 { fill: var(--accent-2); }
.version { font: 600 .75rem/1 var(--mono); color: var(--muted); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; font-size: 1rem; }
.top nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.top nav a:hover { border-color: var(--line-2); }
.top nav a[aria-current] { border-color: var(--accent); }
.top nav .gh { display: inline-flex; align-items: center; gap: .4rem; }
/* search: the field shows the best sections under it as you type; without the script it leads to /search */
.top .wrap { position: relative; }
.site-search { position: relative; display: flex; align-items: center; margin-left: .6rem; }
.site-search input { width: 10.5rem; padding: .4rem .6rem .4rem 2rem; border: 2px solid var(--line-2); border-radius: 3px; background: var(--bg); color: var(--ink); font: .9375rem/1.2 var(--sans); -webkit-appearance: none; appearance: none; }
.site-search input::placeholder { color: var(--muted); }
.site-search input:focus { outline: none; border-color: var(--accent); }
.site-search button { position: absolute; left: .55rem; display: flex; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.search-page .site-search { display: none; }
/* light or dark: the button beside the search; hidden until the script in the head shows it */
.theme { display: flex; align-items: center; justify-content: center; flex: none; width: 2.175rem; height: 2.175rem; padding: 0; border: 2px solid var(--line-2); border-radius: 3px; background: var(--bg); color: var(--ink); cursor: pointer; }
.theme:hover { border-color: var(--ink); }
.theme[hidden], .theme[aria-pressed="true"] .sun, .theme:not([aria-pressed="true"]) .moon { display: none; }
.hits { position: absolute; z-index: 10; top: calc(100% + .6rem); right: 0; width: min(32rem, calc(100vw - 2rem)); max-height: min(36rem, 75vh); overflow-y: auto; margin: 0; padding: .35rem 0; list-style: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--teal-hl); }
.hits a { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; }
.hits a:hover { background: var(--bg-2); }
.hits [aria-selected="true"] a { background: var(--accent-soft); }
.hits .title { display: block; font: 700 1.05rem/1.3 var(--slab); color: var(--accent); }
.hits .snip { display: block; margin-top: .15rem; font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.hits .more a { border-top: 1px solid var(--line); margin-top: .35rem; padding: .7rem 1rem .4rem; font-weight: 700; font-size: .9375rem; color: var(--accent); }
.hits .note { padding: .6rem 1rem; color: var(--muted); font-size: .9375rem; }
.bottom { background: var(--dark); color: var(--dark-muted); padding: 3.5rem 0 3rem; font-size: .9375rem; }
.bottom .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 2rem 3rem; }
.bottom .brand { color: #fff; }
.foot-brand p { margin: .9rem 0 0; max-width: 22rem; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.foot-cols h2 { font: 700 .8125rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: .35rem 0 1rem; }
.foot-cols a { display: block; color: var(--dark-muted); text-decoration: none; padding: .22rem 0; }
.foot-cols a:hover { color: #fff; }
.fine { grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid #263035; font-size: .8438rem; }
.fine a { color: var(--dark-ink); }

/* prose */
.prose { min-width: 0; }
.prose > * { max-width: 46rem; }
.prose > .table-wrap, .prose > pre, .prose > figure { max-width: 100%; }
.prose h1 { font: 700 clamp(2rem, 1.4rem + 2.2vw, 2.75rem)/1.12 var(--slab); margin: 0 0 1.25rem; }
.prose h2 { font: 700 1.6rem/1.2 var(--slab); margin: 3rem 0 .8rem; padding-top: .25rem; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: .9rem 0; }
.prose li { margin: .35rem 0; }
.prose li > p { margin: .4rem 0; }
.anchor { margin-left: .4rem; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
:is(h1, h2, h3, h4):hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: .45; } }
h1 .anchor { display: none; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: .9063rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: .6rem .85rem; border-bottom: 1px solid var(--line); min-width: 7rem; }
tr:last-child td { border-bottom: 0; }
th { font-size: .7813rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; background: var(--bg-2); }
td code { white-space: nowrap; }
td:first-child:empty, th:first-child:empty { min-width: 0; }
.source { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

/* diagrams: Mermaid flowcharts rendered at build time, coloured here */
.diagram { margin: 1.25rem 0; }
.diagram > svg { display: block; height: auto; font: 15px var(--sans); }
.diagram .node :is(rect, polygon, circle, ellipse, path) { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25px; }
.diagram .node .label rect, .diagram rect.text { fill: none; stroke: none; }
.diagram .label text, .diagram text { fill: var(--ink); stroke: none; }
.diagram .node .label text { text-anchor: middle; }
.diagram .cluster rect { fill: none; stroke: var(--muted); stroke-dasharray: 4 3; }
.diagram .flowchart-link { stroke: var(--accent); stroke-width: 1.5px; fill: none; }
.diagram .edge-pattern-dashed { stroke-dasharray: 4 3 !important; }
.diagram .edge-pattern-dotted { stroke-dasharray: 2 3 !important; }
.diagram .edge-thickness-thick { stroke-width: 3px; }
.diagram .marker, .diagram .arrowMarkerPath { fill: var(--accent); stroke: var(--accent); }
.diagram .edgeLabel rect { fill: var(--bg); stroke: none; }
.diagram .edgeLabel text { fill: var(--accent); font-family: var(--mono); font-size: 13px; }
.diagram details { margin-top: .5rem; font-size: .8125rem; color: var(--muted); }
.diagram summary { cursor: pointer; width: max-content; }

/* chapter pages */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 4rem; padding-top: 3rem; }
.side { font-size: .9375rem; }
.chapters { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; }
.chapters ul, .side ol { list-style: none; margin: 0; padding: 0; }
.chapters a { display: block; padding: .3rem .75rem; color: var(--ink-2); text-decoration: none; border-left: 3px solid var(--line); }
.chapters a:hover { color: var(--accent); }
.chapters > ul > li > a[aria-current] { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.chapters ol a { padding: .2rem .75rem .2rem 1.5rem; font-size: .8438rem; color: var(--muted); line-height: 1.35; }
.chapters li.kind { margin: 1.1rem 0 .4rem; padding-left: .75rem; font: 700 .7188rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chapters li.kind:first-child { margin-top: 0; }
.toc-small { display: none; }
@media (max-width: 56rem) {
  .doc { display: block; padding-top: 1.5rem; }
  .chapters { position: static; max-height: none; margin-bottom: 1.75rem; }
  .chapters ul { display: flex; flex-wrap: wrap; gap: .35rem; }
  .chapters ol, .chapters li.kind { display: none; }
  .chapters a { border: 1px solid var(--line); border-radius: 3px; padding: .2rem .7rem; font-size: .8438rem; }
  .chapters > ul > li > a[aria-current] { background: var(--accent-soft); }
  .side { display: flex; flex-direction: column-reverse; }
  .toc-small { display: block; margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 4px; padding: .55rem .85rem; }
  .toc-small summary { cursor: pointer; font-weight: 700; }
  .toc-small ol { padding: .4rem 0 .2rem; }
  .toc-small a { display: block; padding: .3rem 0; }
}

/* buttons: flat, upper case */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border: 2px solid var(--ink); border-radius: 3px; font: 700 .9375rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink); background: var(--bg); }
.button:hover { background: var(--ink); color: var(--bg); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* start page: the first screen */
.home .hero { padding: 6rem 0 5rem; }
.home .hero { --hl: var(--teal-hl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem 4.5rem; align-items: center; }
.hero h1 { font: 700 clamp(2.6rem, 1.3rem + 3.5vw, 4.3rem)/1.05 var(--slab); letter-spacing: -.01em; margin: 0; }
.subtitle { margin: 1.5rem 0 0; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); line-height: 1.4; color: var(--ink-2); max-width: 44rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2.25rem; }
.hero-actions .button { padding: 1.05rem 1.4rem; font-size: 1rem; }
.install { flex-basis: 100%; margin: .4rem 0 0; font-size: .9375rem; color: var(--muted); }
.hero .sheet { grid-template-columns: 1fr; margin: 0; box-shadow: 10px 10px 0 var(--teal-hl); }
.hero .panel + .panel { border-left: 0; border-top: 2px dashed var(--line-2); }
.install code { background: none; border: 0; padding: 0; font-size: .9375rem; color: var(--ink-2); }
.install code::before { content: "$ "; color: var(--muted); }
.intro { background: var(--bg-2); padding: 3.5rem 0; }
.lead { max-width: 52rem; font-size: clamp(1.15rem, 1.02rem + .45vw, 1.375rem); line-height: 1.6; color: var(--ink); }
.lead p { margin: 0; }
.lead p + p { margin-top: 1rem; }

/* start page: bands; each heading carries the highlighter bar of its colour */
.home .band { padding: 5rem 0; }
.home .band + .band { border-top: 1px solid var(--line); }
.band h2 { font: 700 clamp(2rem, 1.4rem + 1.9vw, 2.9rem)/1.1 var(--slab); margin: 0 0 2rem; }
.band h2 span { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding: 0 .12em; margin: 0 -.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.band.teal { --hl: var(--teal-hl); --c: var(--teal); }
.band.blue { --hl: var(--blue-hl); --c: var(--blue); }
.band.amber { --hl: var(--amber-hl); --c: var(--amber); }
.band.coral { --hl: var(--coral-hl); --c: var(--coral); }
.band.violet { --hl: var(--violet-hl); --c: var(--violet); }
.band h3 { font: 700 1.5rem/1.2 var(--slab); color: var(--c); margin: 0 0 .75rem; }
.band .text { max-width: 50rem; font-size: 1.1875rem; line-height: 1.65; color: var(--ink-2); }
.band .text p { margin: 0 0 1rem; }
.section-lede { max-width: 50rem; font-size: 1.1875rem; margin: -.75rem 0 2.5rem; }

/* How it works: the manifests are one flat sheet with two creases */
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: 4px; margin: 0 0 2.25rem; background: var(--paper); }
.panel { margin: 0; min-width: 0; padding: 1rem 1.15rem 1.15rem; }
.panel + .panel { border-left: 2px dashed var(--line-2); }
.panel figcaption, .diagram-card figcaption { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--muted); margin-bottom: .7rem; }
.panel figcaption code, .diagram-card figcaption code { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 700; font-size: .8438rem; }
.role { margin-left: auto; font: 700 .6875rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: .32rem .5rem; border-radius: 2px; color: var(--ink); background: var(--hl, var(--accent-soft)); }
.role.generated { background: none; border: 1px solid var(--line-2); color: var(--muted); }
.panel pre { margin: 0 -1.15rem; padding: 0 1.15rem; background: none; border-radius: 0; }
.panel pre code { font-size: .8438rem; line-height: 1.7; }
.panel pre .hl { display: inline-block; vertical-align: top; min-width: calc(100% + 2.3rem); margin: 0 -1.15rem; padding: 0 1.15rem; background: var(--hl); box-shadow: 0 1px 0 var(--hl); }
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 50rem; margin: 1.75rem 0 2rem; }
.terminal { margin: 0; background: var(--dark); color: var(--dark-ink); border-radius: 4px; overflow: hidden; }
.terminal figcaption { display: flex; align-items: center; padding: .65rem 1rem; background: var(--dark-2); color: var(--dark-muted); font: .75rem var(--mono); }
.terminal .dots { display: inline-flex; gap: .4rem; margin-right: .7rem; }
.terminal .dots i { width: .66rem; height: .66rem; border-radius: 50%; background: #34444b; }
.terminal pre { margin: 0; padding: 1.1rem 1.2rem 1.25rem; background: none; border-radius: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal pre code { font-size: .8125rem; line-height: 1.7; color: var(--dark-ink); }
.terminal .line { display: block; padding-left: 2.2em; text-indent: -2.2em; }
.terminal .prompt { color: var(--term-ok); }
.terminal .cmd { color: #fff; font-weight: 700; }
.terminal .err { color: var(--term-err); font-weight: 700; }
.terminal .wrn { color: var(--term-wrn); font-weight: 700; }
.terminal .fix { color: var(--term-ok); font-weight: 700; }
.terminal .tick { color: #fff; }
.diagram-card { margin: 0; padding: 1rem 1.1rem 1.2rem; border: 2px solid var(--ink); border-radius: 4px; overflow-x: auto; }
.wiring { display: block; width: 100%; max-width: 36rem; min-width: 26rem; height: auto; margin: 0 auto; font-family: var(--sans); }
.wiring .frame { fill: var(--bg-2); stroke: var(--line-2); stroke-dasharray: 5 4; }
.wiring .frame-name { font: 700 14px var(--mono); fill: var(--ink); }
.wiring .frame-summary { font-size: 13px; fill: var(--muted); }
.wiring .box { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.wiring .box-name { font: 700 15px var(--mono); fill: var(--ink); }
.wiring .box-summary { font-size: 12px; fill: var(--muted); }
.wiring .edge { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.wiring .head { fill: var(--accent); }
.wiring .edge-label { font: 700 13px var(--mono); fill: var(--accent); }

/* What a unit has: tiles in the manner of the arc42 overview */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.tile { padding: 1.25rem 1.25rem 1.4rem; border-radius: 4px; background: var(--tc); color: var(--ink); }
.tile.t0 { --tc: var(--teal-hl); }
.tile.t1 { --tc: var(--blue-hl); }
.tile.t2 { --tc: var(--amber-hl); }
.tile.t3 { --tc: var(--violet-hl); }
.tile.generated { background: transparent; outline: 3px dashed var(--tc); outline-offset: -3px; }
.tile p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.tile .tile-name { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.tile .tile-name code { background: none; border: 0; padding: 0; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.tile .tile-name span { font: 700 .6875rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: .3rem .45rem; background: var(--bg); border-radius: 2px; color: var(--ink-2); }

/* columns without cards, as on rust-lang.org */
.cols { display: grid; gap: 2.5rem 3.5rem; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col { display: flex; flex-direction: column; align-items: flex-start; }
.col p { margin: 0 0 1rem; font-size: 1.0625rem; color: var(--ink-2); }
.col .button { margin-top: auto; }
.band.dark { background: var(--dark); color: var(--dark-ink); border-top: 0 !important; }
.band.dark h2 { color: #fff; }
.band.dark h2 span { --hl: rgba(255, 255, 255, .18); }
.band.dark .section-lede, .band.dark .col p { color: var(--dark-muted); }
.band.dark h3 { color: #fff; margin-top: 1rem; }
.band.dark .icon.lg { color: var(--term-ok); }
.band.dark a { color: var(--term-ok); }
.band.dark :not(pre) > code { background: var(--dark-2); border-color: rgba(255, 255, 255, .14); color: var(--dark-ink); }
.band.dark .button { color: #fff; border-color: #fff; background: transparent; }
.band.dark .button:hover { background: #fff; color: var(--dark); }
.band.dark + .band { border-top: 0; }

.faq { max-width: 50rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-size: 1.1875rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--sans); color: var(--c); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--c); }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-2); font-size: 1.0625rem; }
.faq .answer p { margin: 0; }

.run { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: start; }
.run pre { margin: 0; background: var(--dark); color: var(--dark-ink); padding: 1.1rem 1.25rem; }
.run pre code { color: var(--dark-ink); }
.run pre .c { color: var(--dark-muted); }
.needs p { margin: 0; font-size: 1.0625rem; color: var(--ink-2); }

.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.index { border-top: 4px solid var(--c); padding-top: 1rem; }
.index:nth-child(5n+1) { --c: var(--teal); }
.index:nth-child(5n+2) { --c: var(--blue); }
.index:nth-child(5n+3) { --c: var(--amber); }
.index:nth-child(5n+4) { --c: var(--coral); }
.index:nth-child(5n) { --c: var(--violet); }
.index h3 { margin: 0 0 .75rem; font: 700 .8438rem/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { margin: .35rem 0; font-size: 1rem; color: var(--muted); }
.index li a { font-weight: 700; text-decoration: none; }
.index li a:hover { text-decoration: underline; }
.index p { margin: .8rem 0 0; font-size: .9375rem; color: var(--muted); }
.home .band.closing { padding-bottom: 5rem; }
.band.closing h2 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.closing .text { font-size: 1rem; }

main.notfound { padding-top: 4rem; min-height: 50vh; }

/* the search page */
main.search-main { padding-top: 3rem; padding-bottom: 4rem; min-height: 60vh; }
.search-main > * { max-width: 46rem; }
.search-main h1 { font: 700 clamp(2rem, 1.4rem + 2.2vw, 2.75rem)/1.12 var(--slab); margin: 0 0 1.25rem; }
.search-big input { width: 100%; padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink); font: 1.25rem/1.3 var(--sans); -webkit-appearance: none; appearance: none; }
.search-big input:focus { outline: none; box-shadow: 6px 6px 0 var(--teal-hl); }
.search-status { margin: 1.5rem 0 .5rem; color: var(--muted); font-size: .9375rem; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { border-top: 1px solid var(--line); padding: 1rem 0; }
.results a { display: block; text-decoration: none; }
.results a:hover .title { text-decoration: underline; text-decoration-thickness: .07em; }
.crumb { display: block; margin-bottom: .25rem; font: 700 .7188rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.results .title { font: 700 1.3rem/1.25 var(--slab); }
.results p { margin: .35rem 0 0; font-size: .9688rem; line-height: 1.55; color: var(--ink-2); }
mark { background: var(--teal-hl); color: inherit; border-radius: 2px; padding: 0 .06em; }

@media (max-width: 64rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr; }
  .panel + .panel { border-left: 0; border-top: 2px dashed var(--line-2); }
  .run { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols.three, .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .site-search { position: static; margin-left: 0; }
  .site-search input { display: none; }
  .site-search button { position: static; color: var(--ink); }
  .site-search.open input { display: block; position: absolute; z-index: 11; left: 1rem; right: 1rem; top: 50%; transform: translateY(-50%); width: auto; padding: .55rem .7rem .55rem 2.2rem; border-color: var(--accent); font-size: 1rem; }
  .site-search.open button { position: absolute; z-index: 12; left: 1.7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
  .theme { width: auto; height: auto; border: 0; background: none; }
  .hits { top: calc(100% - .35rem); left: 1rem; right: 1rem; width: auto; }
}
@media (max-width: 48rem) {
  .home .hero { padding: 3.5rem 0 3rem; }
  .home .band { padding: 3.75rem 0; }
  .cols.two, .cols.three, .index-grid, .tiles { grid-template-columns: 1fr; }
  .bottom .wrap { grid-template-columns: 1fr; }
  .top nav { gap: 1rem; font-size: .9375rem; }
  .top nav a[href="/tool/"], .top nav .gh span { display: none; }
}
/* below 34.5rem the header holds the version only without the link to the standard */
@media (max-width: 34.5rem) {
  .top nav a[href="/spec/"] { display: none; }
}
@media (max-width: 30rem) {
  .wrap { padding: 0 1rem; }
  .version, .top nav a[href="/spec/"], .top nav .gh { display: none; }
  .top .wrap { gap: .6rem; }
  .top nav { gap: .9rem; }
  body { font-size: 1rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero .sheet { box-shadow: 6px 6px 0 var(--teal-hl); margin-right: 6px; }
  .panel { padding: .9rem .9rem 1rem; }
  .panel pre { margin: 0 -.9rem; padding: 0 .9rem; }
  .panel pre code { font-size: .75rem; }
  .panel pre .hl { min-width: calc(100% + 1.8rem); margin: 0 -.9rem; padding: 0 .9rem; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 24rem) {
  .top .wrap { gap: .5rem; }
  .top nav { gap: .65rem; font-size: .875rem; }
  .top .brand { font-size: 1.15rem; }
}
@media (max-width: 22rem) {
  .top .wrap { padding: 0 .75rem; }
  .theme { display: none; }               /* no room left: the system or an earlier choice decides */
}
@media print { .top nav, .site-search, .theme, .side, .anchor, .hero-actions, .bottom { display: none; } .doc { display: block; } }
