:root {
  --paper: #f4f1e8; --card: #fffdf6; --ink: #1b1b1f; --dim: #77726a; --rule: #d9d4c7;
  --yellow: #ffc21a; --yellow-dark: #f0ab00; --red: #d0201a; --road: #3a3a40; --green: #2e7d4f; --grey: #9a958a;
  --night: #0d1a3a; --night-dim: #8b93b0; --night-text: #e9e6dc;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 "IBM Plex Mono", ui-monospace, Menlo, monospace; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 80px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.dim { color: var(--dim); }
.small { font-size: 12px; color: var(--dim); }
h1 { font-size: 40px; line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 0; }
main > section, .block { margin-top: 72px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* header */
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; flex-wrap: wrap; }
header .wm { height: 24px; width: 96px; display: block; }
nav a { text-decoration: none; margin-left: 14px; white-space: nowrap; }
nav a:hover, nav a[aria-current] { background: var(--yellow); }

/* command box */
.cmd { display: flex; border: 1.5px solid var(--ink); background: var(--card); }
.cmd code { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-weight: 600; overflow-wrap: anywhere; }
.cmd button { font: inherit; border: 0; border-left: 1.5px solid var(--ink); background: var(--yellow); padding: 0 14px; width: calc(4ch + 28px); padding: 0; text-align: center; flex: none; cursor: pointer; color: var(--ink); transition: background-color .12s, box-shadow .06s; }
.cmd button:hover { background: var(--yellow-dark); }
.cmd button:active { box-shadow: inset 2px 2px 0 rgba(0,0,0,.18); }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; padding-top: 72px; }
.hero > *, .two > * { min-width: 0; }
.hero p.sub { font-size: 17px; margin: 18px 0 22px; }
pre.term { margin: 0; font: 12.5px/1.7 "IBM Plex Mono", monospace; background: var(--card); border: 1.5px solid var(--ink); padding: 16px 18px; overflow-x: auto; }
pre.term .ok { color: var(--green); font-weight: 600; }
.qs { margin: 16px 0 0; }
.qs > div { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 12px 0; border-top: 1px solid var(--rule); }
.qs > div:last-child { border-bottom: 1px solid var(--rule); }
.qs h3 { font-size: inherit; font-weight: 600; margin: 0; }
.qs p { margin: 0; }
@media (max-width: 760px) { .qs > div { grid-template-columns: 1fr; gap: 4px; } }
pre.term .bad { color: var(--red); font-weight: 600; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { transition: background-color .12s, transform .06s; }
.chip:hover { background: var(--paper); } .chip[aria-pressed="true"]:hover { background: var(--yellow-dark); }
.chip:active { transform: translateY(1px); }
.chip, .search { font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); padding: 6px 10px; cursor: pointer; }
.chip .box { color: var(--dim); font-weight: 600; margin-right: 6px; }
.chip[aria-pressed="true"] { background: var(--yellow); }
.chip[aria-pressed="true"] .box { color: var(--green); }
.search { cursor: text; min-width: 160px; }
.search::placeholder { color: var(--dim); }
.chips a.all { align-self: center; text-decoration: none; font-size: 13px; padding: 6px 4px; }

/* road */
.road { position: relative; height: 200px; margin-top: 20px; touch-action: pan-y; overflow: hidden; }   /* the bus comes in from behind the edge */
.asphalt { position: absolute; left: 0; right: 0; bottom: 18px; height: 46px; background: var(--road); }
.asphalt::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, transparent 18px 36px); }
.curb { position: absolute; left: 0; right: 0; bottom: 64px; height: 2px; background: var(--ink); }
.stop { position: absolute; bottom: 66px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.stop .sign { font-size: 11px; line-height: 1; padding: 5px 6px; border: 1.5px solid var(--ink); background: var(--card); white-space: nowrap; }
.stop .pole { width: 2px; height: 44px; background: var(--ink); }
.stop.here .sign, .stop:hover .sign { background: var(--yellow); }
.stop.more .sign { background: var(--ink); color: var(--paper); font-weight: 600; }
.stop.more { transform: translateX(-100%); align-items: flex-end; }
.bus { position: absolute; bottom: 26px; left: 0; width: 174px; transform: translateX(-50%); cursor: grab; user-select: none; touch-action: none; z-index: 2; }
.bus svg { display: block; width: 100%; height: auto; overflow: visible; }
.bus.dragging { cursor: grabbing; }
.bus .s { display: none; }
.bus[data-f="0"] .s0, .bus[data-f="1"] .s1, .bus[data-f="2"] .s2, .bus[data-f="3"] .s3 { display: inline; }
/* bounce off for now. To bring it back: .bus.driving[data-b="1"] .body { transform: translateY(-1px); }  (1px = one bus pixel) */
.bus.rock[data-dir="1"] .body { transform: translateX(1px); }
.bus.rock[data-dir="-1"] .body { transform: translateX(-1px); }
.bus .sign { transform-box: fill-box; transform-origin: center; transition: transform .12s steps(2); }
.bus.arm .sign { transform: scale(1.2); }
.honk { position: absolute; bottom: 150px; font-size: 12px; font-weight: 600; background: var(--card); border: 1.5px solid var(--ink); padding: 3px 7px; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 3; }
.honk.on { opacity: 1; }
.caption { min-height: 1.7em; margin: 12px 0 0; max-width: 46em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .caption .pos { display: none; } .caption { font-size: 13px; } }
.pick-foot { display: flex; gap: 24px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.pick-foot .cmd { flex: 0 1 auto; max-width: 100%; }

/* lists with boxes */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
ul.boxes { list-style: none; margin: 16px 0 0; padding: 0; }
ul.boxes li { display: flex; gap: 14px; padding: 11px 0; border-top: 1px dashed var(--rule); }
ul.boxes li:last-child { border-bottom: 1px dashed var(--rule); }
ul.boxes li::before { content: "✓"; flex: none; width: 18px; height: 18px; line-height: 16px; text-align: center; border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; color: var(--green); margin-top: 2px; }
ul.boxes.no li::before { content: "✗"; color: var(--red); }
ul.boxes.ask li::before { content: "–"; color: var(--ink); }
ul.boxes b { font-weight: 600; display: block; }
ul.boxes span { color: var(--dim); font-size: 14px; }
.foot { font-size: 12px; color: var(--dim); margin-top: 40px; max-width: 60em; }
code.c { background: var(--card); border: 1px solid var(--rule); padding: 0 4px; font: inherit; font-size: .92em; }

/* questions */

/* night */
.night { background: var(--night); color: var(--night-text); margin-top: 80px; padding: 72px 0 40px; overflow: hidden; }
.night .small { color: var(--night-dim); }
/* the night bus: it stays put and the world goes by. Wheels turn, lane marks slide back,
   the headlight breathes, exhaust drifts off behind. */
.cruise { position: relative; height: 96px; margin-top: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent); }
.cruise .nbus { position: absolute; left: 22%; bottom: 8px; width: 174px; }
.cruise .nbus svg { display: block; width: 100%; height: auto; filter: brightness(.62) saturate(.85); }
.cruise .nbus .s { opacity: 0; animation: turn .32s steps(1) infinite; }
.cruise .nbus .s1 { animation-delay: -.24s; } .cruise .nbus .s2 { animation-delay: -.16s; } .cruise .nbus .s3 { animation-delay: -.08s; }
@keyframes turn { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
.cruise .lane { position: absolute; left: 0; right: 0; bottom: 2px; height: 3px;
  background: linear-gradient(90deg, rgba(233,230,220,.55) 18px, transparent 18px) 0 0 / 54px 3px repeat-x; animation: slide .5s linear infinite; }
@keyframes slide { to { background-position: -54px 0; } }
.cruise .beam { position: absolute; left: calc(22% + 168px); bottom: 14px; width: 230px; height: 44px;
  background: linear-gradient(90deg, rgba(255,240,190,.5), rgba(255,240,190,0)); clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 62%);
  animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .9; } 50% { opacity: 1; } 62% { opacity: .82; } 66% { opacity: .97; } }
.cruise .puff { position: absolute; left: calc(22% - 4px); bottom: 14px; width: 6px; height: 6px; background: rgba(139,147,176,.5); opacity: 0; animation: puff 1.8s steps(6) infinite; }
.cruise .puff.p2 { animation-delay: .9s; width: 4px; height: 4px; bottom: 17px; }
@keyframes puff { 0% { opacity: .7; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-48px, -10px) scale(2); } }
@media (prefers-reduced-motion: reduce) { .cruise *, .cruise *::before, .cruise *::after { animation: none !important; } .cruise .nbus .s0 { opacity: 1; } }
table.board { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.board th, table.board td { text-align: center; padding: 6px 6px; border-bottom: 1px solid #22305a; white-space: nowrap; }
table.board th { font-weight: 600; color: var(--night-dim); font-size: 11px; }
table.board th:first-child, table.board td:first-child { text-align: left; }
table.board td + td { color: #3c4a76; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 56px; font-size: 12px; color: var(--night-dim); }
footer .wm { height: 16px; width: 64px; filter: invert(1); }
.paper-foot { background: none; color: var(--dim); border-top: 1.5px solid var(--ink); margin-top: 72px; padding: 20px 0 48px; }
.paper-foot .wm { filter: none; }

/* roll call */
.counts { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 20px; font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.dot.passed { background: var(--green); } .dot.untested, .dot.none { background: var(--grey); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.rc { margin-top: 28px; }
.rc-head, .rc-row { display: grid; grid-template-columns: 200px 1fr 1.3fr 180px 16px; gap: 0 20px; }
.rc-head { font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.rc-group { padding: 26px 0 8px; font-weight: 600; }
.rc-group .n { font-weight: 400; color: var(--dim); font-size: 12px; margin-left: 8px; }
.rc-row { padding: 11px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.rc-row:hover { background: var(--card); }
.rc-row b { font-weight: 600; display: block; }
.rc-row small { font-size: 11.5px; color: var(--dim); }
.rc-row .lbl { display: none; color: var(--dim); }
.rc-row .arr { color: var(--dim); }
.rc-row[hidden], .rc-group[hidden] { display: none; }

/* tool page */
.crumb { font-size: 12px; color: var(--dim); }
.crumb a { text-decoration: none; }
.tool-top { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: end; padding-top: 64px; }
.tool-top > * { min-width: 0; }
.name-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.name-row .st { font-size: 12px; }
.tool-top p.sub { font-size: 17px; margin: 14px 0 20px; }
.vig { position: relative; height: 150px; overflow: hidden; }
.vig .asph { position: absolute; left: 0; right: 0; bottom: 12px; height: 40px; background: var(--road); }
.vig .asph::after { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 3px; background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, transparent 16px 32px); background-position: var(--scroll, 0) 0; }
.vig .curb { bottom: 52px; }
.vig .vbus { left: 18%; bottom: 22px; transform: none; cursor: pointer; touch-action: auto; z-index: 1; }
.vstop { position: absolute; inset: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .js .vstop { transform: translateX(110vw); } }   /* start off to the right, so it never flashes at the finish */
.vig .vpole { position: absolute; left: calc(18% + 192px); bottom: 54px; width: 2px; height: 60px; background: var(--ink); }
.vig .vsign { position: absolute; left: calc(18% + 193px); bottom: 114px; transform: translateX(-50%); font-size: 11px; padding: 4px 6px; border: 1.5px solid var(--ink); background: var(--yellow); }
.vig .nb { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--dim); z-index: 2; }
.vig .nb a { text-decoration: none; }
.nights { display: flex; gap: 4px; margin-top: 16px; }
.nights i { width: 14px; height: 28px; border: 1px solid var(--rule); background: var(--card); }
.prevnext { display: flex; justify-content: space-between; border-top: 1.5px solid var(--ink); margin-top: 56px; padding-top: 16px; }
.prevnext a { text-decoration: none; }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  h1 { font-size: 28px; }
  h2 { font-size: 19px; }
  main > section, .block { margin-top: 48px; }
  header { flex-direction: column; align-items: flex-start; padding-top: 20px; }
  nav a { margin: 0 14px 0 0; }
  .hero, .two, .tool-top { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; } .tool-top { padding-top: 40px; }
  .hero p.sub, .tool-top p.sub { font-size: 15px; }
  .cmd code { font-size: 12px; padding: 11px 10px; }
  .road { height: 150px; }
  .asphalt { height: 38px; bottom: 14px; } .asphalt::after { top: 17px; background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 28px); }
  .curb { bottom: 52px; }
  .stop { bottom: 54px; } .stop .pole { height: 32px; }
  .stop:not(.here):not(.more) .sign { font-size: 0; padding: 0; width: 12px; height: 12px; }
  .bus { width: 116px; bottom: 20px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; }
  .filters .chip { flex: none; }
  .rc-head { display: none; }
  .rc-group { border-bottom: 1.5px solid var(--ink); padding-top: 22px; }
  .rc-row { grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 0; }
  .rc-row .t { grid-column: 1; } .rc-row .s { grid-column: 2; grid-row: 1; text-align: right; font-size: 12px; }
  .rc-row .can, .rc-row .wont { grid-column: 1 / -1; font-size: 13px; }
  .rc-row .lbl { display: inline; }
  .rc-row .arr { display: none; }
  .vig { height: 120px; } .vig .nb { display: none; }
  .vig .vbus { width: 116px; left: 10%; bottom: 18px; } .vig .asph { height: 34px; } .vig .curb { bottom: 46px; }
  .vig .vpole { left: calc(10% + 132px); bottom: 48px; height: 48px; } .vig .vsign { left: calc(10% + 133px); bottom: 96px; }
  .nights { gap: 3px; } .nights i { width: 8px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { .bus .sign { transition: none; } }

/* links styled as chips; the board on paper */
a.chip { text-decoration: none; }
a.chip[aria-current] { background: var(--yellow); }
.rc-group a { text-decoration: none; }
.rc-group a:hover { background: var(--yellow); }
table.board.day td, table.board.day th { border-bottom: 1px solid var(--rule); }
table.board.day th { color: var(--dim); }
table.board.day td + td { color: var(--grey); }
table.board.day td a { text-decoration: none; font-weight: 600; }

/* nightly results */
.dot.failed { background: var(--red); }
.nights i.passed { background: var(--green); border-color: var(--green); }
.nights i.failed { background: var(--red); border-color: var(--red); }
.nights i.none { background: var(--rule); }
table.board td .dot { margin: 0; }
/* the board's squares: click one and a small card says what ran (.pop, made by BOARD_JS) */
table.board td.ck { cursor: pointer; -webkit-tap-highlight-color: transparent; }
table.board td.ck .dot { transition: transform .08s; }
table.board td.ck:hover .dot, table.board td.ck.on .dot, table.board td.ck:focus-visible .dot { transform: scale(1.4); }
table.board td.ck.on .dot, table.board td.ck:focus-visible .dot { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.night table.board td.ck.on .dot, .night table.board td.ck:focus-visible .dot { box-shadow: 0 0 0 2px var(--night), 0 0 0 3.5px var(--night-text); }
.pop { position: fixed; z-index: 50; max-width: min(300px, calc(100vw - 24px)); padding: 8px 10px 9px; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 11.5px/1.5 "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.pop-h { font-weight: 600; margin-bottom: 3px; }
.pop-st { font-weight: 400; padding: 0 5px; margin-left: 2px; color: #fff; }
.pop-st.passed { background: var(--green); } .pop-st.failed { background: var(--red); } .pop-st.not-run { background: var(--grey); }
.pop code { display: block; font: inherit; color: var(--dim); overflow-wrap: anywhere; }
.pop div:last-child:not(.pop-h) { color: var(--dim); }
small.why { display: block; font-size: 11px; color: var(--dim); font-weight: 400; white-space: normal; }
small.why.bad { color: var(--red); }

/* docs */
.docs section { margin-top: 48px; max-width: 760px; }
.docs h2 { margin-bottom: 12px; }
.docs p { margin: 0 0 12px; }
.docs pre.term { margin: 0 0 14px; }
.docs table.board { margin: 4px 0 14px; }
.docs table.board td { white-space: normal; text-align: left; }
.docs table.board td + td { color: var(--ink); }
.docs code.c { overflow-wrap: anywhere; }
.docs table.board { display: block; overflow-x: auto; }
@media (max-width: 760px) { .docs table.board td { padding: 6px 6px 6px 0; } }

/* Known good */
.btn { display: inline-block; padding: 9px 14px; background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 600; text-decoration: none; margin-right: 14px; transition: background-color .12s, transform .06s, box-shadow .06s; }
.btn:hover { background: var(--yellow-dark); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.kg pre.term { margin-top: 6px; }
form.lost .cmd { margin-top: 8px; max-width: 32em; }
form.lost input { flex: 1; min-width: 0; padding: 11px 14px; font: inherit; border: 0; background: transparent; color: var(--ink); }
form.lost input:focus { outline: none; } form.lost .cmd:focus-within { box-shadow: 0 0 0 2px var(--yellow); }

/* versions */
ul.vlist { list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; }
ul.vlist li { padding: 5px 0; border-top: 1px dashed var(--rule); display: flex; gap: 12px; }
ul.vlist li a { font-weight: 600; min-width: 6.5em; }
.v-works { color: var(--green); } .v-fails { color: var(--red); } .v-mixed { color: var(--dim); }
table.vtable td { white-space: normal; text-align: left; } table.vtable td .dot { margin-right: 8px; }
table.vtable td:last-child { color: var(--dim); font-size: 11.5px; overflow-wrap: anywhere; }

/* footer links */
.foot-links { display: flex; gap: 16px; font-size: 12px; }
.foot-links a { color: inherit; text-decoration: none; } .foot-links a:hover { text-decoration: underline; }

ol.steps { margin: 8px 0 0; padding-left: 1.4em; } ol.steps li { margin: 0 0 8px; padding-left: 4px; }

/* a third list (Stripe: can / asks first / can't), side by side on wide screens */
@media (min-width: 761px) { section.two.three { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* docs: menu | page | on this page */
.docs-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr) 170px; gap: 48px; padding-top: 48px; }
.doc-nav, .doc-toc { position: sticky; top: var(--doc-top, 100px); align-self: start; font-size: 13px; max-height: calc(100vh - var(--doc-top, 100px) - 16px); overflow-y: auto; }
.doc-nav ul, .doc-toc ul { list-style: none; margin: 4px 0 18px; padding: 0; }
.doc-nav li a, .doc-toc li a { display: block; padding: 4px 8px; text-decoration: none; color: var(--ink); }
.doc-nav li a:hover, .doc-toc li a:hover { background: var(--card); }
.doc-nav li a[aria-current] { background: var(--yellow); font-weight: 600; }
.doc-group { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 0 8px; margin-top: 6px; }
.doc-search { display: flex; align-items: center; border: 1.5px solid var(--ink); background: var(--card); margin-bottom: 18px; }
.doc-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 7px 8px; color: var(--ink); }
.doc-search input:focus { outline: none; } .doc-search:focus-within { box-shadow: 0 0 0 2px var(--yellow); }
.doc-search kbd { font: inherit; font-size: 11px; color: var(--dim); padding: 0 8px; }
.docs-grid .docs { max-width: 720px; }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.doc-head h1 { margin: 0; }
.doc-copy { font: inherit; font-size: 12px; background: none; border: 1.5px solid var(--rule); padding: 3px 8px; cursor: pointer; color: var(--dim); flex: none; transition: background-color .12s; }
.doc-copy:hover { background: var(--card); color: var(--ink); }
.docs h2 { margin-top: 36px; }
pre.term.diagram { font-size: 11.5px; line-height: 1.5; background: var(--card); margin: 0 0 22px; overflow-x: auto; box-shadow: 5px 5px 0 var(--rule); }
ul.doc-links { padding-left: 0; list-style: none; } ul.doc-links li { padding: 6px 0; border-top: 1px dashed var(--rule); } ul.doc-links li:last-child { border-bottom: 1px dashed var(--rule); }
ul.doc-links a { font-weight: 600; margin-right: 6px; }
.docs .prevnext { margin-top: 48px; }
@media (max-width: 960px) { .docs-grid { grid-template-columns: 170px minmax(0, 1fr); } .doc-toc { display: none; } }
@media (max-width: 760px) { .docs-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } .doc-nav { position: static; } .doc-nav ul { display: flex; flex-wrap: wrap; gap: 4px; } }
.docs-grid > * { min-width: 0; }
.docs .cmd { margin: 0 0 16px; }
table.board.checks td { white-space: normal; text-align: left; vertical-align: top; padding: 10px 12px 10px 0; }
table.board.checks th { text-align: left; }
table.board.checks td:first-child { white-space: nowrap; width: 8em; }
table.board.checks td + td { color: var(--ink); }
table.board.checks td:last-child { color: var(--dim); }
@media (max-width: 760px) { table.board.checks, table.board.checks tbody, table.board.checks tr, table.board.checks td { display: block; width: auto; }
  table.board.checks thead { display: none; } table.board.checks tr { padding: 8px 0; border-bottom: 1px solid var(--rule); } table.board.checks td { border: 0; padding: 2px 0; } }
/* docs: the top bar and both side columns stay put; only the page in the middle scrolls */
body.docs-page { --doc-top: 92px; }
.doc-top { position: sticky; top: 0; z-index: 20; background: var(--paper); padding-bottom: 16px; max-width: none; }
.doc-top header { max-width: 960px; margin: 0 auto; }
body.docs-page .docs-grid { padding-top: 24px; padding-bottom: 80px; }
@media (max-width: 760px) { .doc-top { position: static; } }
ul.boxes.inline b { display: inline; }
table.board.cmds td:first-child { white-space: nowrap; }
form.lost .cmd button { width: auto; padding: 0 18px; white-space: nowrap; }

/* one focus outline, everywhere you can Tab to */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--night-text); }
table.board td.ck:focus-visible { outline-offset: -4px; }
.cmd input:focus-visible, .doc-search:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* docs search box (opens the palette) and the palette */
button.doc-search { width: 100%; font: inherit; font-size: 13px; color: var(--dim); text-align: left; cursor: pointer; justify-content: space-between; padding: 7px 0 7px 8px; }
button.doc-search:hover { color: var(--ink); }
.palette { position: fixed; inset: 0; z-index: 60; background: rgba(27,27,31,.25); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.pal-box { width: min(560px, 100%); background: var(--card); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.pal-box input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 14px 16px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
.pal-box input:focus { outline: none; }
.pal-box ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.pal-box li { padding: 8px 10px; cursor: pointer; font-size: 13px; }
.pal-box li b { display: block; }
.pal-box li span { color: var(--dim); font-size: 12px; }
.pal-box li[aria-selected="true"] { background: var(--yellow); }
.pal-box li[aria-selected="true"] span { color: var(--ink); }
.pal-box li.none { color: var(--dim); cursor: default; }
.pal-box mark { background: none; color: var(--ink); font-weight: 600; text-decoration: underline; }
.pal-foot { border-top: 1px solid var(--rule); padding: 7px 12px; font-size: 11px; color: var(--dim); }
