/* Lens Flash: the site. White ground, oxblood ink, the system's own type.
   intro.css holds the intro mechanism; this file holds everything else. */

:root {
  --ink: #6E0504;                    /* the brand's oxblood: accents, links, the chosen answer */
  --ink-deep: #4F0403;
  --ink-wash: rgb(110 5 4 / .055);
  --ink-line: rgb(110 5 4 / .32);
  --text: #1C1616;
  --text-2: #4F4646;
  --text-3: #6B6160;                 /* the faintest text; AA on white and on the code ground */
  --line: #ECE6E4;
  --line-2: #DCD3D1;
  --ground-2: #FAF8F7;               /* code and output */
  --ground-3: #F4F0EF;               /* a command line, inline code */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --gut: clamp(20px, 5vw, 56px);
  --wrap: 1180px;
  --nav-h: 56px;
  --r: 12px;
  --shadow: 0 1px 2px rgb(28 22 22 / .04), 0 28px 56px -28px rgb(110 5 4 / .16);
}
@media (min-width: 1800px) { :root { --wrap: 1280px; } html { font-size: 106.25%; } }

html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }   /* after load: a link's target on arrival is a jump */
body {
  margin: 0; background: #fff; color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (max-width: 640px) { body { font-size: 1rem; } .cmd { font-size: 13px; } }
*, *::before, *::after { box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 650; text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgb(110 5 4 / .14); }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: .875em; background: var(--ground-3); border-radius: 5px; padding: .12em .36em; white-space: nowrap; }
@media (max-width: 640px) { :not(pre) > code { white-space: normal; overflow-wrap: anywhere; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 40; padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: var(--shadow); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }

/* ---- buttons -------------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--text);
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink-line); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-text { border: 0; background: none; padding: 8px 4px; color: var(--text-2); font: 500 .95rem var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .25em; }
.btn-text:hover { color: var(--ink); text-decoration-color: currentColor; }

/* the copy button, added by site.js beside every command and code block */
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--text-2);
  font: 500 12.5px/1 var(--sans); cursor: pointer; transition: color .15s, border-color .15s;
}
.copy svg { width: 14px; height: 14px; }
.copy:hover { color: var(--ink); border-color: var(--ink-line); }
.copy.is-done { color: var(--ink); border-color: var(--ink-line); }
.copy-icon { width: 28px; height: 28px; padding: 0; justify-content: center; border-color: transparent; background: transparent; color: var(--text-3); }
.copy-icon:hover { background: #fff; }

/* ---- the masthead and the navigation ------------------------------------------------------------ */

.nav {
  position: sticky; top: 0; z-index: 5;     /* under the intro layer (10) and the brand frame (20) */
  background: rgb(255 255 255 / .92); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  transition: border-color .2s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.masthead { padding-top: clamp(10px, 2.2vw, 36px); }
html.inner { --band-max: clamp(72px, 8.5vw, 132px); }   /* the other pages: the same banner, smaller */
html.inner .masthead { padding-top: clamp(6px, 1.2vw, 20px); }
.brand-link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }   /* under the intro layer (10) */
.nav-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: var(--nav-h); width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.nav-mark { flex: none; width: 22px; color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.nav.is-stuck .nav-mark { opacity: 1; transform: none; }
.nav-mark svg { width: 22px; height: 25px; }
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 0; color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current=page] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-end { justify-self: end; }
.nav-version { display: none; }
@media (min-width: 900px) { .nav-version { display: inline; font: 500 12.5px var(--mono); color: var(--text-3); white-space: nowrap; } }
@media (max-width: 520px) {
  .nav-in { gap: 8px; }
  .nav-links { gap: 10px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
  .nav-links a { white-space: nowrap; font-size: .85rem; }
  .nav-links .home { display: none; }
  .nav-end { display: none; }
  .nav-mark { opacity: 1; transform: none; }
  .nav-in { grid-template-columns: 22px minmax(0, 1fr); }
  .nav-links { justify-content: center; padding-right: 22px; }
}

/* ---- the landing ------------------------------------------------------------------------------- */

.hero { padding-block: clamp(36px, 5vw, 76px) clamp(60px, 8vw, 112px); text-align: center; }
.eyebrow { margin: 0 0 18px; font: 600 12.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.hero h1 {
  /* set like the wordmark: capitals, widely tracked, at a calm weight; the padding balances the last letter's tracking */
  max-width: none; margin: 0 auto; padding-left: .16em;
  font-size: clamp(1.7rem, 1.05rem + 2.4vw, 3.1rem); font-weight: 500; line-height: 1.15; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1:focus { outline: none; }
.hero-lead { max-width: 60ch; margin: 26px auto 0; color: var(--text-2); font-size: 1.15rem; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero-meta { margin-top: 22px; color: var(--text-3); font-size: .92rem; }

.section { padding-block: clamp(64px, 8.5vw, 116px); border-top: 1px solid var(--line); }
.section { scroll-margin-top: -1px; }                 /* its rule lands under the navigation's */
.doc > section, .doc h2, .doc h3, .landing, .welcome, .page-head { scroll-margin-top: 24px; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.section-head .lead, .page-head .lead { margin-top: 16px; color: var(--text-2); font-size: 1.12rem; max-width: 64ch; }

/* what flash does: text on the left, the command and its output on the right */
.caps-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.cap { display: grid; align-items: start; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 72px); padding-block: clamp(30px, 4vw, 44px); border-top: 1px solid var(--line); }
.cap h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.3; }
.cap p { margin-top: 12px; color: var(--text-2); max-width: 46ch; }
@media (max-width: 920px) { .cap { grid-template-columns: minmax(0, 1fr); } }

/* a session: three steps side by side, joined by a rule */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 20px; border-top: 2px solid var(--ink); }
.step + .step { border-top-color: var(--line-2); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-2); }
.steps-note { margin-top: 36px; color: var(--text-2); }
@media (max-width: 920px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* where to go next: three cards */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trio > * { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; }
.trio h3 { font-size: 1.2rem; }
.trio p { color: var(--text-2); font-size: .97rem; }
a.go { color: var(--text); text-decoration: none; transition: border-color .15s, background-color .15s; }
a.go:hover { border-color: var(--ink-line); background: var(--ground-2); }
a.go h3 { color: var(--ink); }
.more { margin-top: 28px; }
@media (max-width: 920px) { .trio { grid-template-columns: minmax(0, 1fr); } }

/* the head of every page but Home */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); }
.page-head h1 { max-width: 26ch; font-size: clamp(2rem, 1.4rem + 1.9vw, 3rem); font-weight: 600; line-height: 1.12; letter-spacing: -.024em; }

/* ---- commands, output and code ------------------------------------------------------------------- */

.term { min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--ground-2); overflow: hidden; }
.cmd {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 8px 8px 16px;
  background: var(--ground-3); font: 500 14px/1.55 var(--mono); color: var(--text);
}
.cmd code { flex: 1; min-width: 0; padding: 4px 0; background: none; font-size: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .tok { display: inline-block; max-width: 100%; white-space: nowrap; }
.cmd code::before { content: "$"; margin-right: 1ch; color: var(--ink); opacity: .7; }
.term > .cmd + .out, .term > .out + .cmd, .term > .cap-label + .out { border-top: 1px solid var(--line); }
.out {
  margin: 0; padding: 14px 16px; overflow-x: auto; color: #3B3333; background: var(--ground-2);
  font: 13px/1.6 var(--mono); white-space: pre; tab-size: 4;
}
.out-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.cap-label { display: block; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--ground-3); color: var(--text-3); font: 500 12px var(--mono); }
.cmd-solo { border: 1px solid var(--line); border-radius: 10px; }
.v { color: var(--ink); font-weight: 650; }        /* a verdict in output */
.m { color: var(--text-3); }                        /* a muted line or an elision */
.k { color: var(--ink); }                           /* a Lean keyword */
.cm { color: var(--text-3); }                       /* a comment */

.code { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--ground-2); overflow: hidden; }
.code figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 8px 6px 16px;
  border-bottom: 1px solid var(--line); background: var(--ground-3); color: var(--text-3); font: 500 12.5px/1.3 var(--mono);
}
.code figcaption .fc-actions { display: flex; gap: 8px; align-items: center; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.6 var(--mono); color: var(--text); tab-size: 2; }
.code + .code, .term + .term { margin-top: 16px; }

/* ---- small shared pieces ------------------------------------------------------------------------ */

.q-note { margin-top: 12px; color: var(--text-2); font-size: .95rem; }
.card { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }

/* ---- the welcome: a few cards after the film docks, first visits only ------------------------------ */

.welcome { position: relative; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: calc(100svh - var(--fh) * var(--band) - var(--nav-h)); padding: clamp(16px, 4vh, 56px) var(--gut) clamp(40px, 8vh, 96px); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 50% at 50% 42%, rgb(110 5 4 / .055), transparent 70%); }
.welcome-card { min-width: 0; width: min(640px, 100%); padding: clamp(28px, 5vw, 52px); border-radius: 24px; }
.w-step[hidden], .w-nav [hidden] { display: none; }
.w-step { min-height: 15.5em; }
.w-step h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.15rem); font-weight: 500; line-height: 1.2; letter-spacing: -.018em; }
.w-step h2:focus { outline: none; }
.w-step p { margin-top: 16px; color: var(--text); font-size: clamp(1.06rem, 1rem + .25vw, 1.2rem); line-height: 1.65; max-width: 52ch; }
.w-step p + p { color: var(--text-2); }
.w-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.w-actions .spacer { flex: 1; }
.w-last { margin-top: 30px; }
.w-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; color: var(--text-3); font: 500 12.5px var(--mono); }
.w-dots { display: flex; gap: 7px; }
.w-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color .2s, transform .2s; }
.w-dots span.on { background: var(--ink); transform: scale(1.15); }
@media (max-width: 640px) { .w-step { min-height: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .w-step:not([hidden]) { animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
/* the welcome comes in after the film's frame has landed in the masthead (from the dock, and when opened directly) */
/* timed from the glide's start (the welcome itself opens earlier, during the hold, where it is still hidden) */
[data-welcome] .welcome-card { will-change: opacity, transform; }
[data-intro=dock][data-welcome] .welcome-card, [data-intro=welcome] .welcome-card { animation: card-in .6s cubic-bezier(.2, .7, .2, 1) calc(var(--t-dock) * .7) both; }
[data-intro=dock][data-welcome] .welcome::before, [data-intro=welcome] .welcome::before { animation: glow-in .8s ease calc(var(--t-dock) * .5) both; }
@keyframes card-in { from { opacity: .002; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  [data-intro=dock][data-welcome] .welcome-card, [data-intro=welcome] .welcome-card { animation: fade-in .5s ease calc(var(--t-dock) * .6) both; }
  @keyframes fade-in { from { opacity: .002; } to { opacity: 1; } }
}
.qa-welcome .welcome-card, .qa-welcome .welcome::before { animation: none !important; }
/* while the welcome is open it is the whole stage: the rest of the site waits below it */
[data-welcome] .rest, [data-welcome] .site-footer { display: none; }

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

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dl-card { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); min-width: 0; }
.dl-card h3 { font-size: 1.3rem; }
.dl-kind { margin-top: 4px; color: var(--text-2); }
.dl-file { font: 500 14px/1.5 var(--mono); overflow-wrap: anywhere; }
.dl-hash { margin: 0; }
.dl-hash dt { margin-bottom: 6px; color: var(--text-3); font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dl-hash dd { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.dl-hash .hash { background: none; padding: 0; white-space: normal; }
.hash { flex: 1; min-width: 0; font: 500 13px/1.6 var(--mono); color: var(--text); overflow-wrap: anywhere; word-break: break-all; letter-spacing: .02em; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 6px; }
.dl-actions a:not(.btn) { font-size: .93rem; }
.dl-more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.dl-more h3 { margin-bottom: 16px; font-size: 1.2rem; }
.dl-more .doc > * + h2 { margin-top: clamp(40px, 5vw, 56px); }
.dl-more .doc li > .cmd-solo { margin-top: 10px; }
.dl-more p { margin-top: 14px; color: var(--text-2); }
.req { margin: 0; padding: 0; list-style: none; }
.req li { position: relative; padding: 0 0 12px 22px; }
.req li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); transform: rotate(45deg) scale(.8); }
.licence { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 920px) { .dl-grid, .dl-more { grid-template-columns: minmax(0, 1fr); } }

/* ---- documentation: the rail, the page, the sections ------------------------------------------ */

.docs-page { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.rail { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding: 32px 4px 24px 0; }
.rail-group + .rail-group { margin-top: 22px; }
.rail-group > a { display: block; padding: 4px 0; color: var(--text); font-weight: 650; font-size: .95rem; text-decoration: none; }
.rail-group > a[aria-current=page] { color: var(--ink); }
.rail-group > p { margin: 0 0 2px; color: var(--text-3); font: 600 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rail ul { margin: 4px 0 0; padding: 0; list-style: none; }
.rail li a { display: block; padding: 5px 0 5px 14px; border-left: 2px solid var(--line); color: var(--text-2); font-size: .89rem; line-height: 1.35; text-decoration: none; }
.rail li a:hover { color: var(--ink); border-left-color: var(--ink-line); }
.rail li a.is-current { color: var(--ink); border-left-color: var(--ink); font-weight: 600; }
@media (max-width: 1100px) {
  .docs-page { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; overflow: visible; padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px; }
  .rail-group + .rail-group { margin-top: 0; }
  .rail-group:not(.is-here) ul { display: none; }
}

.doc { min-width: 0; max-width: 800px; }
.doc-head { padding-block: clamp(28px, 4vw, 56px) 8px; }
.doc-head h1 { font-size: clamp(2rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 600; line-height: 1.12; letter-spacing: -.024em; }
.doc-head .lead { margin-top: 14px; color: var(--text-2); font-size: 1.12rem; max-width: 62ch; }
.on-page { margin-top: 26px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground-2); }
.on-page p { margin: 0 0 6px; color: var(--text-3); font: 600 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.on-page ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.on-page a { text-decoration: none; }
.on-page a:hover, .on-page a.is-current { text-decoration: underline; }
.doc > section { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.doc h2 { margin-bottom: 16px; font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); font-weight: 600; letter-spacing: -.016em; line-height: 1.2; }
.doc h3 { margin: 36px 0 10px; font-size: 1.12rem; }
.doc p, .doc ul, .doc ol, .doc .table-wrap, .doc .code, .doc .term, .doc .cmd-solo, .doc .note, .doc .stats { margin-top: 14px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--ink); }
.anchor { margin-left: .35em; color: var(--line-2); font-weight: 400; text-decoration: none; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover, .anchor:focus-visible { color: var(--ink); }
.xref { font-weight: 600; text-decoration: none; }
.xref:hover { text-decoration: underline; }
.doc-next { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(56px, 7vw, 88px); padding-top: 24px; border-top: 1px solid var(--line); }
.doc-next a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.doc-next a span { color: var(--text-3); font-size: .85rem; }
.doc-next a strong { font-weight: 600; }
.doc-next a:last-child { margin-left: auto; text-align: right; }

.table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
.doc th { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: bottom; color: var(--text-3); font: 600 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.doc td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc td:first-child { white-space: nowrap; }
.doc td code { white-space: nowrap; }
.doc td.wrap code, .doc td.wrap { white-space: normal; }
.doc caption { caption-side: top; text-align: left; padding-bottom: 8px; color: var(--text-2); font-size: .92rem; }

.ref { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; margin-top: 16px; }
.ref-group h3 { margin: 18px 0 6px; color: var(--ink); font: 600 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ref dl { margin: 0; }
.ref dl > div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ref dt { display: flex; align-items: center; gap: 2px; }
.ref dd { margin: 2px 0 0; color: var(--text-2); font-size: .9rem; line-height: 1.45; }
@media (max-width: 760px) { .ref { grid-template-columns: minmax(0, 1fr); } }

.note { padding: 14px 18px; border-left: 2px solid var(--ink); background: var(--ground-2); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: .95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pills li { margin: 0 !important; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px/1.6 var(--mono); color: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.stat-v { margin: 0 !important; font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.stat-v small { font-size: .5em; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.stat-l { margin: 0 !important; font-weight: 600; font-size: .98rem; }
.stat-d { margin: 0 !important; color: var(--text-2); font-size: .88rem; }
.stat-c { margin: auto 0 0 !important; padding-top: 4px; color: var(--text-3); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
[data-measure] { font-variant-numeric: tabular-nums; }

/* the source download, offered or not (tools/source.sh sets <html data-source>) */
[data-source=off] .if-source, [data-source=on] .if-no-source { display: none !important; }

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

.site-footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 88px); }
.foot { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px 48px; align-items: center; }
.foot-lockup { width: 168px; height: auto; }
.foot-line { font-weight: 600; font-size: 1.05rem; }
.foot-meta { margin-top: 6px; color: var(--text-2); font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 920px) { .foot { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *:not(.intro):not(.brand-frame):not(.brand-photo):not(.site-ui):not(.welcome-card),
  *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .nav, .intro, .copy, .welcome, .hero-actions { display: none !important; }
  .section { padding-block: 32px; }
}

.doc.wide { max-width: 920px; }
.bordered { border: 1px solid var(--line); border-radius: var(--r); }
.side-h { margin-bottom: 14px; font-size: 1.15rem; }
.dl-card h2 { font-size: 1.3rem; }
.doc .note { max-width: 68ch; }
.page-pad { padding-bottom: clamp(64px, 8vw, 112px); }
.dl-start { max-width: 760px; margin-bottom: clamp(40px, 5vw, 56px); }
.dl-start > p { margin-top: 16px; color: var(--text-2); }
.dl-start > .cmd-solo { margin-top: 10px; }
.dl-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dl-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 920px) { .dl-grid.three { grid-template-columns: minmax(0, 1fr); } }

/* ---- get started: three steps, what you need beside them, and what to do if something goes wrong ----- */

.gs { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.gs-need { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nav-h) + 24px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--ground-2); }
.gs-need h2 { margin-bottom: 14px; font-size: 1.05rem; }
.gs-need .req li { padding-bottom: 8px; font-size: .95rem; }
.gs-steps { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding: 0; list-style: none; max-width: 760px; }
.gs-step { padding: 0 0 clamp(36px, 5vw, 56px) 28px; border-left: 2px solid var(--line); position: relative; }
.gs-step::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.gs-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.gs-n { margin: 0 0 6px; color: var(--ink); font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.gs-step h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem); font-weight: 600; letter-spacing: -.016em; }
.gs-step > p, .gs-step > ul, .gs-step > .cmd-solo, .gs-step > .code, .gs-step > .term { margin-top: 14px; max-width: 68ch; }
.gs-step > ul { padding-left: 1.2em; }
.gs-step li + li { margin-top: 6px; }
.gs-step li::marker { color: var(--ink); }
.gs-trouble { grid-column: 1; max-width: 760px; margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.gs-trouble h2 { margin-bottom: 16px; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.65rem); font-weight: 600; }
.trouble { margin: 0; }
.trouble > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.trouble dt { font-weight: 600; }
.trouble dd { margin: 6px 0 0; color: var(--text-2); max-width: 68ch; }
@media (max-width: 920px) {
  .gs { grid-template-columns: minmax(0, 1fr); }
  .gs-need { grid-column: 1; grid-row: auto; position: static; }
  .gs-steps { grid-row: auto; }
}
.trouble code { white-space: normal; overflow-wrap: anywhere; }   /* quoted messages are sentences: they wrap like text */
