/* vddhx site. Colors are vddhx's own dark and light themes (source/theme.d),
   so the page and the screenshots agree. */

@font-face {
    font-family: "DejaVu Sans Mono Web";
    src: url("fonts/dejavu-sans-mono.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "DejaVu Sans Mono Web";
    src: url("fonts/dejavu-sans-mono-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --mono: "DejaVu Sans Mono Web", "DejaVu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
    --serif: P052, "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "Book Antiqua", Georgia, serif;
    --ui: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;

    --top-h: 48px;
    --status-h: 26px;
    --max: 1120px;

    /* page */
    --bg: #0b0b0e;
    --bg2: #121216;
    --bg3: #19191f;
    --line: #24242c;
    --line2: #34343f;
    --ink: #e4e4e8;
    --ink2: #b4b4c0;
    --dim: #777784;
    --accent: #6eaaff;
    --brand: #e6aa3c;
    --brand-ink: #1b1305;

    /* byte classes and structure roles */
    --k-zero: #5a5a64;
    --k-printable: #dcdcdc;
    --k-whitespace: #78aac8;
    --k-control: #c8825a;
    --k-unmapped: #96be82;
    --k-magic: #f0cd73;
    --k-length: #78c3eb;
    --k-offset: #96aaff;
    --k-count: #69d2b9;
    --k-flags: #d796e6;
    --k-scalar: #cdd7e6;
    --k-text: #b9e1a0;
    --k-timestamp: #f5af7d;
    --k-checksum: #9b9bb4;

    /* hex view bits */
    --hv-canvas: #000;
    --hv-caret: #78aaeb;
    --hv-sel: #30548c;
    --wash: #121217;
    --minimap-wash: rgba(150, 185, 235, .22);
    --minimap-line: #bed7ff;

    /* app chrome */
    --ui-window-fg: #e6e6e6;
    --ui-tab: #26262c;
    --ui-status: #1e1e28;
    --ui-status-fg: #aaaab9;
    --ui-status-msg: #c8c896;
    --ui-list: #1e1e26;
    --ui-list-on: #34486e;
    --ui-list-hover: #3e3e4a;
    --ui-list-detail: #9696a5;
    --ui-input: #141418;
    --ui-border: #50505f;
    --shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f5f4f0;
    --bg2: #ecebe6;
    --bg3: #e3e2dc;
    --line: #dddbd3;
    --line2: #c9c7be;
    --ink: #1b1b20;
    --ink2: #3d3d48;
    --dim: #73737e;
    --accent: #006ed2;
    --brand: #d8961c;
    --brand-ink: #1b1305;

    --k-zero: #afafb9;
    --k-printable: #282828;
    --k-whitespace: #1e6ea0;
    --k-control: #af551e;
    --k-unmapped: #3c8232;
    --k-magic: #aa7800;
    --k-length: #1478aa;
    --k-offset: #3c50c8;
    --k-count: #00826e;
    --k-flags: #963caa;
    --k-scalar: #465064;
    --k-text: #3c8228;
    --k-timestamp: #be5a1e;
    --k-checksum: #646482;

    --hv-canvas: #fff;
    --hv-caret: #1e64d2;
    --hv-sel: #b4d2fa;
    --wash: #f2f2f5;
    --minimap-wash: rgba(60, 100, 170, .18);
    --minimap-line: #3c64aa;

    --ui-window-fg: #1e1e1e;
    --ui-tab: #e4e4e8;
    --ui-status: #e6e6ec;
    --ui-status-fg: #464650;
    --ui-status-msg: #785a00;
    --ui-list: #fafafc;
    --ui-list-on: #cde1fa;
    --ui-list-hover: #e8e8ee;
    --ui-list-detail: #6e6e78;
    --ui-input: #fff;
    --ui-border: #b4b4be;
    --shadow: 0 40px 90px -40px rgba(30, 30, 50, .45), 0 0 0 1px rgba(0, 0, 0, .1);
    color-scheme: light;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top-h) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.125rem/1.6 var(--serif);
    font-kerning: normal;
    padding-bottom: var(--status-h);
    overflow-x: hidden;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

code, kbd, pre { font-family: var(--mono); font-size: .86em; }
code { color: var(--k-text); white-space: nowrap; }
kbd {
    display: inline-block;
    padding: .05em .4em;
    border: 1px solid var(--line2);
    border-bottom-width: 2px;
    border-radius: 4px;
    color: var(--ink);
    background: var(--bg2);
    font-size: .78em;
    line-height: 1.5;
    white-space: nowrap;
}

img { max-width: 100%; height: auto; display: block; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::selection { background: var(--hv-sel); color: var(--ink); }

.skip {
    position: fixed; left: 1rem; top: -4rem; z-index: 100;
    padding: .5rem 1rem; background: var(--brand); color: var(--brand-ink);
    font-family: var(--mono); font-size: .875rem;
}
.skip:focus { top: .5rem; }

/* ------------------------------------------------------------------ top bar */

.topbar {
    position: fixed; inset: 0 0 auto 0; z-index: 40;
    height: var(--top-h);
    display: flex; align-items: center; gap: 1.75rem;
    padding: 0 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font: 400 .8125rem/1 var(--mono);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: .9375rem; letter-spacing: .02em; }
.brand img { border-radius: 5px; }
.topbar nav { display: flex; gap: 1.25rem; }
.topbar nav a { color: var(--dim); text-decoration: none; }
.topbar nav a:hover, .topbar nav a.on { color: var(--ink); }
.topbar nav a.on { box-shadow: 0 2px 0 var(--k-magic); }
.omni-btn {
    margin-left: auto;
    display: flex; align-items: center; gap: 2.5rem;
    min-width: 16rem;
    padding: .35rem .4rem .35rem .75rem;
    background: var(--bg2);
    border: 1px solid var(--line2);
    border-radius: 6px;
    color: var(--dim);
    font: inherit;
    cursor: text;
}
.omni-btn:hover { border-color: var(--accent); color: var(--ink2); }
.omni-btn kbd { margin-left: auto; font-size: .75rem; }
.gh { color: var(--dim); display: flex; }
.gh:hover { color: var(--ink); }

/* ------------------------------------------------------------------ sections */

main { padding-top: var(--top-h); }

main > section, .foot {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 7.5rem 3rem;
}
main > section + section::before {
    content: "";
    position: absolute; left: 3rem; right: 3rem; top: 0;
    border-top: 1px solid var(--line);
}

section[data-role="magic"] { --role: var(--k-magic); }
section[data-role="whitespace"] { --role: var(--k-whitespace); }
section[data-role="offset"] { --role: var(--k-offset); }
section[data-role="length"] { --role: var(--k-length); }
section[data-role="text"] { --role: var(--k-text); }
section[data-role="count"] { --role: var(--k-count); }
section[data-role="flags"] { --role: var(--k-flags); }
section[data-role="timestamp"] { --role: var(--k-timestamp); }
section[data-role="checksum"] { --role: var(--k-checksum); }
section[data-role="unmapped"] { --role: var(--k-unmapped); }

.label {
    display: flex; align-items: center; gap: .6rem;
    margin: 0 0 1.1rem;
    font: 400 .8125rem/1 var(--mono);
    color: var(--ink2);
    letter-spacing: .02em;
}
.label .chip { width: .8rem; height: .8rem; border-radius: 3px; background: var(--role); }

h2 {
    margin: 0 0 1.5rem;
    font: 700 clamp(2.1rem, 4.4vw, 3.5rem)/1.04 var(--serif);
    letter-spacing: -.015em;
    text-wrap: balance;
}
h3 { margin: 2rem 0 .6rem; font: 700 .9375rem/1.3 var(--mono); letter-spacing: .01em; }
.sec-head p { max-width: 36em; color: var(--ink2); }
.sec-head p strong { color: var(--ink); font-weight: 600; }
.sec-head.wide p { max-width: 46em; }
.aside { font-style: italic; }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; margin-top: 4rem; }
.stack > * + * { margin-top: 3rem; }
.stack > .sec-head + * { margin-top: 2.5rem; }

/* ------------------------------------------------------------------ hero */

.hero { padding-top: 6rem; padding-bottom: 5rem; }
.wordmark { margin: 0 0 2.25rem; line-height: 1; }
.wm-grid {
    --cell: clamp(5px, 1.18vw, 14.5px);
    display: grid;
    grid-template-columns: repeat(39, var(--cell));
    grid-auto-rows: var(--cell);
    gap: calc(var(--cell) * .24);
    width: max-content;
}
.wm-grid i {
    border-radius: 24%;
    background: color-mix(in srgb, var(--ink) 6%, transparent);
    transition: background-color .5s, transform .2s;
}
.wm-grid i.lit { background: var(--c); }
.wm-grid i:hover { transform: scale(1.18); box-shadow: 0 0 0 2px var(--hv-caret); }
.wm-grid i.cold { background: color-mix(in srgb, var(--ink) 6%, transparent) !important; }
.wm-static { font: 700 5rem/1 var(--mono); letter-spacing: -.02em; }
.wm-grid:not(:empty) + .wm-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.tagline {
    margin: 0 0 1.5rem;
    max-width: 16em;
    font: 400 clamp(2rem, 4.6vw, 3.7rem)/1.06 var(--serif);
    letter-spacing: -.02em;
    text-wrap: balance;
}
.lede { max-width: 37em; margin: 0 0 2.25rem; color: var(--ink2); font-size: 1.1875rem; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.btn {
    display: inline-flex; align-items: baseline; gap: 1.5rem;
    padding: .8rem 1rem .8rem 1.1rem;
    border: 1px solid var(--line2);
    border-radius: 6px;
    background: var(--bg2);
    text-decoration: none;
    font: 400 .9375rem/1 var(--mono);
}
.btn:hover { color: var(--ink); border-color: var(--ink2); background: var(--bg3); }
.btn-d { color: var(--dim); font-size: .75rem; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.btn.primary .btn-d { color: color-mix(in srgb, var(--brand-ink) 65%, transparent); font-weight: 400; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 85%, white); color: var(--brand-ink); }

.facts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; font: .8125rem/1.4 var(--mono); color: var(--dim); }
.facts span + span::before { content: "/"; margin-right: .4rem; color: var(--line2); }

/* ------------------------------------------------------------------ tour */

.tour-box { display: grid; grid-template-columns: minmax(0, 800px) minmax(15rem, 1fr); gap: 2rem; align-items: start; }
.tour-shot { position: sticky; top: calc(var(--top-h) + 1.5rem); }
.tour-shot img { width: 100%; aspect-ratio: 4 / 3; }
.tour-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: stop; }
.tour-list li { border-bottom: 1px solid var(--line); counter-increment: stop; }
.tour-list button {
    display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); align-items: baseline; gap: .3rem .4rem;
    width: 100%; padding: .8rem .5rem .8rem .75rem;
    border: 0; background: none; text-align: left; cursor: pointer;
    font: 400 .9375rem/1.35 var(--serif); color: var(--ink2);
}
.tour-list button::before { content: counter(stop, decimal-leading-zero); font: .75rem var(--mono); color: var(--dim); }
.tour-list button:hover { background: var(--bg2); color: var(--ink); }
.tour-list button[aria-pressed="true"] { background: var(--bg2); color: var(--ink); box-shadow: inset 3px 0 0 var(--role); }
.tour-list kbd { justify-self: start; }
.tour-list button span { grid-column: 2; }

/* Byte classes, for byte cells anywhere on the page. */
.k-zero { color: var(--k-zero); }
.k-printable { color: var(--k-printable); }
.k-whitespace { color: var(--k-whitespace); }
.k-control { color: var(--k-control); }
.k-unmapped { color: var(--k-unmapped); }

/* ------------------------------------------------------------------ omnibar */

.omni {
    position: fixed; z-index: 60;
    top: calc(var(--top-h) + 1rem); left: 50%; transform: translateX(-50%);
    width: min(640px, 94vw);
    background: var(--ui-list);
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .75);
    font: 400 13.5px/1 var(--ui);
    color: var(--ui-window-fg);
    overflow: hidden;
}
.omni-in { position: relative; padding: 6px; }
.omni input {
    width: 100%;
    padding: 7px 9px;
    background: var(--ui-input);
    color: var(--ui-window-fg);
    border: 1px solid var(--accent);
    border-radius: 5px;
    font: 400 14px/1.2 var(--mono);
    outline: none;
}
.omni-list { list-style: none; margin: 0; padding: 0 6px 6px; max-height: 21rem; overflow-y: auto; scrollbar-width: thin; }
.omni-list li {
    display: flex; align-items: center; gap: 1rem;
    min-height: 28px; padding: 0 9px;
    cursor: default;
}
.omni-list li.hover { background: var(--ui-list-hover); }
.omni-list li.on { background: var(--ui-list-on); box-shadow: inset 2px 0 0 var(--accent); }
.omni-list .l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.omni-list .l .n { font-family: var(--ui); color: var(--ui-list-detail); }
.omni-list li.help .l, .omni-list li.cmd .l { font-family: var(--ui); }
.omni-list .d { color: var(--ui-list-detail); font-size: 12.5px; white-space: nowrap; font-family: var(--mono); }
.omni-list kbd { border: 0; background: none; padding: 0; color: var(--ui-list-detail); font: 400 12px var(--ui); }
.omni-list li.err .l { color: var(--k-control); }
.omni-list li.hint .l { color: var(--ui-list-detail); }

/* ------------------------------------------------------------------ omnibar section */

.prefixes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prefixes li { border-bottom: 1px solid var(--line); }
.prefixes .pfx {
    display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: baseline;
    padding: 1.05rem .75rem 1.05rem .25rem;
    font: 400 .9375rem/1.45 var(--mono); color: var(--ink2);
}
.prefixes b { font-size: 1.6rem; line-height: 1; color: var(--role); text-align: center; }
.prefixes li:nth-child(2) b { color: var(--k-length); }
.prefixes li:nth-child(3) b { color: var(--k-text); }
.prefixes li:nth-child(4) b { color: var(--k-timestamp); }
.prefixes li:nth-child(5) b { color: var(--k-magic); }
.prefixes li:nth-child(6) b { color: var(--k-count); }
.prefixes li:nth-child(7) b { color: var(--k-flags); }
.prefixes em { font-style: normal; color: var(--dim); font-size: .75rem; padding-left: 1rem; }
.prefixes code { font-size: .86em; }

/* ------------------------------------------------------------------ structure */

.magic { font: 400 .9375rem/1 var(--mono); border-top: 1px solid var(--line); }
.mrow {
    display: grid; grid-template-columns: 9rem minmax(0, auto) 1fr; align-items: center; gap: 2rem;
    padding: .7rem .25rem; border-bottom: 1px solid var(--line);
}
.mrow > span:first-child { color: var(--ink); }
.mrow small { display: block; margin-top: .35rem; color: var(--dim); font-size: .75rem; }
.mhead { color: var(--dim); font-size: .75rem; padding: .6rem .25rem; }
.mhead > span:first-child { color: var(--dim); }
.mbytes { display: flex; flex-wrap: wrap; gap: 4px; }
.mbytes i {
    display: grid; place-items: center;
    width: 2.15rem; height: 1.9rem;
    font-style: normal; border-radius: 4px;
    background: var(--hv-canvas);
    box-shadow: inset 0 0 0 1px var(--line);
}
.mbytes i.wild { color: var(--dim); background: none; box-shadow: inset 0 0 0 1px var(--line2); border: 0; outline: 1px dashed var(--line2); outline-offset: -1px; box-shadow: none; }
.mtext { color: var(--dim); letter-spacing: .1em; white-space: pre; }
.mtext b { font-weight: 400; color: var(--k-magic); }

.shots.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
figure { margin: 0; }
figure img { border-radius: 8px; box-shadow: var(--shadow); background: #000; }
figcaption { margin-top: 1rem; font: .8125rem/1.5 var(--mono); color: var(--dim); }
figcaption span { display: inline-block; padding: .15rem .5rem; margin-right: .6rem; background: var(--ui-status); color: var(--ui-status-msg); border-radius: 3px; }

/* ------------------------------------------------------------------ syntax */

.pats-wrap { overflow-x: auto; }
.pats { width: 100%; border-collapse: collapse; font: .9375rem/1.3 var(--mono); }
.pats th { text-align: left; font-weight: 400; font-size: .75rem; color: var(--dim); padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.pats td { padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pats td:first-child { white-space: nowrap; }
.pats td:first-child code { font-size: 1em; }
.pats td:last-child { font: 1rem/1.4 var(--serif); color: var(--ink2); }
.pats tr:hover td { background: var(--bg2); }
.pats .bytes { white-space: nowrap; }
.pats .bytes i {
    display: inline-grid; place-items: center; width: 1.95rem; height: 1.7rem; margin-right: 3px;
    font-style: normal; border-radius: 3px; background: var(--hv-canvas); box-shadow: inset 0 0 0 1px var(--line);
}
.pats .bytes i.wild { color: var(--dim); background: none; box-shadow: none; outline: 1px dashed var(--line2); outline-offset: -1px; }
.pats .bytes i.range { width: calc(var(--w) * 1.95rem + (var(--w) - 1) * 3px); color: var(--k-length); }
.pats .same { color: var(--dim); font-size: .8125rem; }
.pats .err { color: var(--k-control); font-size: .875rem; }

/* ------------------------------------------------------------------ workspace */

.triad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.triad b {
    display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
    background: var(--ui-tab); color: var(--accent);
    font: 700 1rem var(--mono); box-shadow: inset 0 2px 0 var(--accent);
}
.triad h3 { margin-top: 1.1rem; }
.triad p { margin: 0; color: var(--ink2); }
.shot-wide img { width: 100%; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--ink2); margin-top: 0; }

/* ------------------------------------------------------------------ toolbox */

.sheet-groups { columns: 2; column-gap: 3rem; }
.sheet-group { break-inside: avoid; margin-bottom: 2rem; }
.sheet-group h3 { margin: 0 0 .25rem; font: 400 .8125rem/1 var(--mono); color: var(--dim); padding: .5rem .25rem; border-bottom: 1px solid var(--line2); }
.sheet { list-style: none; margin: 0; padding: 0; }
.sheet li {
    break-inside: avoid;
    display: flex; align-items: baseline; gap: 1.25rem; justify-content: space-between;
    padding: .8rem .25rem; border-bottom: 1px solid var(--line);
    font-size: 1.0625rem; color: var(--ink2);
}
.sheet li:hover { color: var(--ink); background: var(--bg2); }
.sheet kbd { flex: none; }
.sheet .keys { display: flex; gap: .3rem; flex: none; }

/* ------------------------------------------------------------------ settings */

.rc {
    margin: 0; padding: 1.5rem 1.75rem;
    background: var(--hv-canvas); border: 1px solid var(--line); border-radius: 10px;
    font: 400 .9375rem/1.65 var(--mono); color: var(--ink2); overflow-x: auto;
}
.rc code { color: inherit; white-space: pre; }
.rc .c { color: var(--dim); }
.rc .k { color: var(--k-magic); }
.rc .v { color: var(--k-length); }

.wipe { --x: 50%; position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.wipe img { width: 100%; box-shadow: none; border-radius: 0; }
.wipe-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.wipe-top img { height: 100%; object-fit: cover; }
.wipe::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--brand); pointer-events: none; }
.wipe input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.wipe input:focus-visible + .wipe-l { outline: 2px solid var(--accent); }
.wipe-l, .wipe-r {
    position: absolute; bottom: 1rem; padding: .3rem .6rem; border-radius: 4px;
    font: .75rem var(--mono); pointer-events: none;
}
.wipe-l { left: 1rem; background: #1e1e28; color: #c8c896; }
.wipe-r { right: 1rem; background: #e6e6ec; color: #785a00; }

/* ------------------------------------------------------------------ lineage */

.spec { margin: 0; font: .9375rem/1.4 var(--mono); border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--k-scalar); }
:root[data-theme="light"] .spec dt { color: var(--k-checksum); }
.spec dd { margin: 0; color: var(--ink); }

/* ------------------------------------------------------------------ download */

.downloads { list-style: none; margin: 2rem 0 1.25rem; padding: 0; border-top: 1px solid var(--line); }
.downloads li { border-bottom: 1px solid var(--line); }
.downloads a {
    display: grid; grid-template-columns: 9rem 1fr auto; align-items: baseline; gap: 1rem;
    padding: 1rem .25rem; text-decoration: none; font: .9375rem/1.3 var(--mono);
}
.downloads a::after { content: "↓"; color: var(--dim); }
.downloads a:hover { background: var(--bg2); }
.downloads a:hover::after { color: var(--k-unmapped); }
.downloads em { font-style: normal; color: var(--dim); font-size: .8125rem; }
.downloads li.mine a { box-shadow: inset 3px 0 0 var(--k-unmapped); padding-left: .9rem; }
.downloads li.mine span::after { content: " (yours)"; color: var(--k-unmapped); font-size: .75rem; }

.build h3 { margin-top: 0; font-size: 1.0625rem; }
.build p { color: var(--ink2); }
.term {
    position: relative; margin: 0 0 1.5rem; padding: 1.1rem 1.25rem;
    background: var(--hv-canvas); border: 1px solid var(--line); border-radius: 8px;
    font: .9375rem/1.65 var(--mono); overflow-x: auto;
}
.term code { color: var(--ink); white-space: pre; }
.term code::before { content: ""; }
.copy {
    position: absolute; top: .6rem; right: .6rem;
    padding: .25rem .55rem; border: 1px solid var(--line2); border-radius: 4px;
    background: var(--bg2); color: var(--dim); font: .75rem var(--mono); cursor: pointer;
}
.copy:hover { color: var(--ink); border-color: var(--ink2); }

/* ------------------------------------------------------------------ footer */

.foot { padding-top: 4rem; padding-bottom: 5rem; border-top: 1px solid var(--line); font: .875rem/1.6 var(--mono); color: var(--dim); }
.foot p { margin: 0 0 .75rem; max-width: 52em; }
.foot img { display: inline-block; vertical-align: -3px; margin-right: .4rem; border-radius: 4px; }
.foot .links { display: flex; gap: 1.5rem; margin-top: 1.5rem; }

/* ------------------------------------------------------------------ page chrome */

.pagemap {
    position: fixed; z-index: 30; right: 0; top: var(--top-h); bottom: var(--status-h); width: 10px;
    background: var(--wash); border-left: 1px solid var(--line);
    cursor: pointer;
}
.pagemap canvas { width: 100%; height: 100%; display: block; }

.statusbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: var(--status-h);
    display: flex; align-items: center; gap: 1.25rem;
    padding: 0 .9rem;
    background: var(--ui-status); color: var(--ui-status-fg);
    font: 400 12.5px/1 var(--mono);
    border-top: 1px solid var(--line);
}
.sb-crumb .last { color: var(--ink); }
.sb-crumb .sep { color: var(--dim); margin: 0 .35rem; }
.sb-msg { color: var(--ui-status-msg); }
.sb-theme { margin-left: auto; border: 0; background: none; color: var(--ui-status-fg); font: inherit; cursor: pointer; padding: 0 .25rem; }
.sb-theme::before { content: "theme "; color: var(--dim); }
.sb-theme:hover { color: var(--ink); }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 1080px) {
    .split, .split.even, .tour-box { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .tour-shot { position: static; }
    .omni-btn span { display: none; }
    .omni-btn { min-width: 0; gap: 0; }
}

@media (max-width: 860px) {
    main > section, .foot { padding: 5rem 1.25rem; }
    main > section + section::before { left: 1.25rem; right: 1.25rem; }
    .topbar nav { display: none; }
    .pagemap { display: none; }
    .triad, .shots.two { grid-template-columns: minmax(0, 1fr); }
    .sheet-groups { columns: 1; }
    .mrow { grid-template-columns: 5.5rem minmax(0, 1fr); }
    .mtext { display: none; }
    .sb-crumb { display: none; }
}

@media (max-width: 520px) {
    .btn { width: 100%; justify-content: space-between; }
}

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

/* Release assets, grouped: OS, package, an arch link each. */
.downloads.grouped li { display: grid; grid-template-columns: 7rem 7rem 1fr; align-items: baseline; gap: 1rem; padding: .8rem .25rem; font: .9375rem/1.3 var(--mono); }
.downloads.grouped li.cont { padding-top: 0; }
.downloads.grouped li:has(+ .cont) { border-bottom: 0; }
.downloads.grouped .arch { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.downloads.grouped .arch a {
    display: inline-block; padding: .3rem .6rem; border: 1px solid var(--line2); border-radius: 4px;
    font-size: .8125rem; text-decoration: none; white-space: nowrap;
}
.downloads.grouped .arch a::after { content: " ↓"; color: var(--dim); }
.downloads.grouped .arch a:hover { border-color: var(--k-unmapped); color: var(--ink); background: var(--bg2); }
.downloads.grouped li.mine { padding-left: .9rem; box-shadow: inset 3px 0 0 var(--k-unmapped); }
.downloads.grouped li.mine .arch a { box-shadow: none; padding-left: .6rem; }
.downloads.grouped li.mine span::after { content: none; }
.downloads.grouped li.mine > span:first-child:not(:empty)::after { content: "\a yours"; white-space: pre; color: var(--k-unmapped); font-size: .75rem; }
@media (max-width: 860px) {
    .downloads.grouped li { grid-template-columns: 6rem 1fr; }
    .downloads.grouped .arch { grid-column: 1 / -1; justify-content: flex-start; }
    .downloads.grouped li.cont .arch { margin-top: -.25rem; }
    .sb-msg { display: none; }
}
@media (max-width: 860px) {
    .pats .be { display: none; }
}
