/* openfilm.dev: ink on paper, one accent (the playhead), monospace for what a machine reads. The colour is the films. */

/* The fonts come with the site (Google Fonts' latin files, one variable font each for the weights used): Google's
   own servers cannot be reached from mainland China, and a stylesheet there held the whole page blank. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-latin.c940764593.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.2c32b9b3ee.woff2) format('woff2'); }

:root {
  --bg: #fbfbfa;
  --card: #ffffff;
  --panel: #f3f3f1;
  --line: #e6e5e2;
  --line-strong: #d6d4d0;
  --text: #17171a;
  --muted: #5d5d66;
  --faint: #9a9aa2;
  --ink: #0e0e10;
  --on-ink: #f4f4f2;
  --on-ink-muted: #a4a4ab;
  --accent: #ff5a1f;
  --accent-soft: #fff0e9;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --col: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --body: #3e3e46;
  --solid-bg: var(--ink);
  --solid-fg: var(--on-ink);
  --code-bg: var(--ink);
  --logo-filter: none;
  color-scheme: light;
}

/* dark: the system's, unless the person chose light; or chosen (site.js keeps the choice, the page's head applies it) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11; --card: #17171a; --panel: #1d1d21; --line: #2a2a30; --line-strong: #3b3b42;
    --text: #ededef; --muted: #a3a3ad; --faint: #6e6e78; --body: #c8c8cf;
    --ink: #000; --accent-soft: #2b1810;
    --solid-bg: #ededef; --solid-fg: #0f0f11; --code-bg: #17171a; --logo-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11; --card: #17171a; --panel: #1d1d21; --line: #2a2a30; --line-strong: #3b3b42;
  --text: #ededef; --muted: #a3a3ad; --faint: #6e6e78; --body: #c8c8cf;
  --ink: #000; --accent-soft: #2b1810;
  --solid-bg: #ededef; --solid-fg: #0f0f11; --code-bg: #17171a; --logo-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
code { font-family: var(--mono); font-size: .88em; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--solid-bg); color: var(--solid-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 var(--pad); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -0.025em; text-decoration: none; }
.logo img { width: 24px; height: 24px; filter: var(--logo-filter); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 6px 12px; border-radius: 8px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top .end a { text-decoration: none; font-size: 14.5px; }
.top .end .quiet { color: var(--muted); padding: 6px 12px; }
.top .end .quiet:hover { color: var(--text); }
.top .stars { display: inline-flex; align-items: center; gap: 7px; }
.top .stars svg { width: 17px; height: 17px; }

/* the header's language menu and theme switch */
.icon-btn { appearance: none; border: 0; background: none; height: 34px; min-width: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; color: var(--muted); font: 400 14px/1 var(--sans); cursor: pointer; }
.icon-btn:hover, .lang.open > .icon-btn { color: var(--text); background: var(--panel); }
.icon-btn svg { width: 17px; height: 17px; flex: none; }
[data-theme-toggle] svg { display: none; }
/* the switch shows the theme it goes to: the moon on a light page, the sun on a dark one (by CSS alone, so it shows
   before site.js has loaded) */
[data-theme-toggle] [data-icon="dark"] { display: block; }
:root[data-theme="dark"] [data-theme-toggle] [data-icon="dark"] { display: none; }
:root[data-theme="dark"] [data-theme-toggle] [data-icon="light"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-toggle] [data-icon="dark"] { display: none; }
  :root:not([data-theme="light"]) [data-theme-toggle] [data-icon="light"] { display: block; }
}

/* the download for this computer's system (the head's script says which); a Mac's when it is neither */
.btn.dl-win, :root[data-os="win"] .btn.dl-mac { display: none; }
:root[data-os="win"] .btn.dl-win { display: inline-flex; }
.lang { position: relative; }
.lang .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 168px; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 40px -12px rgba(0, 0, 0, .3); display: none; }
.lang.open .pop { display: grid; }
.lang .pop a { padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.lang .pop a:hover { background: var(--panel); }
.lang .pop a[aria-current]::after { content: '✓'; float: right; color: var(--accent); }

/* on the English site, for a browser that prefers another language: one line offering it */
.suggest { border-bottom: 1px solid var(--line); background: var(--panel); font-size: 14px; }
.suggest .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding-block: 9px; }
.suggest a, .suggest button { font: 500 14px/1 var(--sans); }
.suggest a { color: var(--text); }
.suggest button { appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; }

/* a page that stays in English, or a translation the English version governs */
.note { margin: 0 0 20px; padding: 10px 14px; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .top nav { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font: 500 14.5px/1 var(--sans); color: var(--text); background: var(--card); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.btn:hover { border-color: var(--line-strong); }
.btn [hidden] { display: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.solid { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.btn.solid:hover { opacity: .86; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn.on-ink { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .22); }
.btn.on-ink:hover { border-color: rgba(255, 255, 255, .5); }
.btn.light { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.light:hover { opacity: .9; }
.arrow::after { content: '→'; font-family: var(--sans); transition: transform .15s; }
.arrow:hover::after { transform: translateX(2px); }

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 500 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(38px, 6.2vw, 68px); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 650; letter-spacing: -0.032em; text-wrap: balance; }
h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.012em; }
.sub { margin: 20px 0 0; max-width: 36em; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; text-wrap: pretty; }
.lede { margin: 14px 0 0; max-width: 40em; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > div { max-width: 44em; }

/* hero: centered, the command and the download side by side, then the film */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); text-align: center; }
.hero h1 { max-width: 12em; margin-inline: auto; }
.hero .sub { margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; }
.hero .actions { justify-content: center; }
.actions .btn { height: 48px; }

/* the start command: pick one, copy it */
.cmd { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); width: 100%; max-width: 440px; box-shadow: 0 1px 2px rgba(16, 16, 20, .04); }
.pick { appearance: none; border: 0; background: none; height: 46px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 14px; border-right: 1px solid var(--line); font: 500 13px/1 var(--sans); color: var(--muted); cursor: pointer; border-radius: 10px 0 0 10px; }
.pick:hover { color: var(--text); background: var(--panel); }
.pick svg { width: 12px; height: 12px; transition: transform .15s; }
.cmd.open .pick svg { transform: rotate(180deg); }
.menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 300px; width: max-content; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 16px 40px -10px rgba(0,0,0,.22); display: none; }
.cmd.open .menu { display: block; }
.menu button { appearance: none; border: 0; background: none; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 9px 10px; border-radius: 8px; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.menu button:hover { background: var(--panel); }
.menu b { font: 600 13px/1.3 var(--sans); }
.menu small { grid-column: 1; font: 400 12.5px/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.menu .ck { grid-row: 1 / span 2; grid-column: 2; color: var(--accent); visibility: hidden; }
.menu button[aria-checked="true"] .ck { visibility: visible; }
.cmd code { flex: 1; min-width: 0; padding: 0 8px 0 14px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; font-size: 13.5px; color: var(--text); }
.cmd code::before { content: '$ '; color: var(--faint); }
.copy { appearance: none; border: 0; background: none; color: var(--faint); cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 8px; }
.copy:hover { color: var(--text); }
.copy svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .actions .btn { flex: 1 1 0; padding: 0 10px; font-size: 13.5px; } .hero .cmd { max-width: none; } }

.cmd { text-align: left; }

/* the film, in a window */
.screen { margin-top: clamp(44px, 6vw, 72px); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(16, 16, 20, .08), 0 40px 80px -40px rgba(16, 16, 20, .45); }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* sections: a heading beside its content, or above it */
.section { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split .side { position: sticky; top: 104px; }
.head { max-width: 40em; margin-bottom: clamp(32px, 4vw, 48px); }
.more { display: inline-flex; gap: 6px; margin-top: 22px; font-weight: 550; font-size: 15px; text-decoration: none; }
.more::after { content: '→'; transition: transform .15s; }
.more:hover::after { transform: translateX(2px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split .side { position: static; } }

/* what it is: one line each, numbered */
.features { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.features li { counter-increment: f; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 0; padding: 20px 0; border-top: 1px solid var(--line); }
.features li:last-child { border-bottom: 1px solid var(--line); }
.features li::before { content: counter(f, decimal-leading-zero); grid-row: 1 / span 2; font: 500 12.5px/1.9 var(--mono); color: var(--accent); }
.features b { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.features span { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* what you can make: two sets (what it does to your footage, the films it makes), a page of six at a time; each plays under the pointer */
.showcase .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.showcase .tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.showcase .tabs button { appearance: none; border: 0; background: none; padding: 8px 16px; border-radius: 8px; font: 500 14.5px/1 var(--sans); color: var(--muted); cursor: pointer; }
.showcase .tabs button:hover { color: var(--text); }
.showcase .tabs button[aria-selected="true"] { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); }
.pager { display: flex; align-items: center; gap: 6px; }
.pager span { margin-right: 6px; font: 500 13px/1 var(--mono); color: var(--faint); }
.pager button { appearance: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--text); cursor: pointer; transition: border-color .15s; }
.pager button:hover:not(:disabled) { border-color: var(--line-strong); }
.pager button:disabled { color: var(--line-strong); cursor: default; }
.pager svg { width: 16px; height: 16px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.gallery[hidden], .gallery figure[hidden] { display: none; }
.gallery figure { animation: show .35s ease both; }
@keyframes show { from { opacity: 0; transform: translateY(6px); } }
.gallery figure { margin: 0; }
.gallery video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border-radius: 10px; cursor: pointer; box-shadow: 0 0 0 1px rgba(16, 16, 20, .06); }
.gallery figcaption { margin-top: 12px; display: grid; gap: 2px; }
.gallery figcaption b { font-size: 15px; font-weight: 600; }
.gallery figcaption span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.yours { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 10px; text-decoration: none; color: var(--text); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 16px 16px; }
.yours i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(0,0,0,.25); font: 300 24px/1 var(--sans); font-style: normal; transition: transform .2s; }
.yours:hover i { transform: scale(1.08); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* questions */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 19px 0; font-weight: 550; font-size: 16.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; font: 300 22px/1 var(--sans); color: var(--faint); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 20px; color: var(--muted); max-width: 62ch; }
details code { background: var(--panel); padding: 1px 5px; border-radius: 4px; }

/* the star */
.star { text-align: center; }
.star .lede { margin-inline: auto; }
.star .actions { justify-content: center; }
.btn svg + span .n, .stars .n { margin-left: 2px; padding-left: 9px; border-left: 1px solid currentColor; opacity: .7; font-variant-numeric: tabular-nums; }

/* footer: one line */
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .logo { font-size: 16px; }
.foot .logo img { width: 20px; height: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .fine { margin-left: auto; color: var(--faint); font-size: 13px; }
@media (max-width: 720px) { .foot .fine { margin-left: 0; width: 100%; } }

/* docs and legal pages */
.doc { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 0 clamp(24px, 3vw, 48px); padding: 0 var(--pad); }
.doc .side, .doc .toc { align-self: start; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 40px 0; }
.doc .side p, .doc .toc p { margin: 0 0 10px; padding: 0 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.doc .side ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 1px; }
.doc .side a { display: block; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--muted); text-decoration: none; }
.doc .side a:hover { color: var(--text); background: var(--panel); }
.doc .side a[aria-current] { color: var(--text); font-weight: 550; background: var(--panel); }
.doc .toc { font-size: 13px; }
.doc .toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.doc .toc a { color: var(--muted); text-decoration: none; }
.doc .toc a:hover { color: var(--text); }
.doc article { padding: 44px 0 96px; min-width: 0; max-width: 760px; }
.doc .crumb { margin: 0 0 14px; font: 500 12.5px/1 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .03em; }
.doc article h1 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -0.035em; margin-bottom: 10px; }
.doc .lead { color: var(--muted); margin: 0 0 24px; font-size: 17px; }
.doc article h2 { font-size: 22px; letter-spacing: -0.02em; margin: 52px 0 12px; scroll-margin-top: 88px; }
.doc article h3 { font-size: 16.5px; margin: 32px 0 8px; scroll-margin-top: 88px; }
.doc article p, .doc article li { color: var(--body); }
.doc article strong, .doc article b { color: var(--text); font-weight: 600; }
.doc article a { color: var(--text); text-decoration-color: var(--line-strong); }
.doc article a:hover { text-decoration-color: var(--text); }
.doc article ul, .doc article ol { padding-left: 22px; }
.doc article li { margin: 5px 0; }
.doc article :not(pre) > code { color: var(--text); background: var(--panel); padding: 1px 5px; border-radius: 4px; }
.doc article pre { background: var(--code-bg); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.65; }
.doc article blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.doc article blockquote p { margin: 0; }
.doc article .table, .doc article .lg-table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.doc article table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.doc article th, .doc article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc article th { color: var(--text); font-weight: 600; background: var(--panel); white-space: nowrap; }
.doc article tr:last-child td { border-bottom: 0; }
.doc .turn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 64px; }
.doc .turn a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 550; background: var(--card); }
.doc .turn a:hover { border-color: var(--line-strong); }
.doc .turn a small { font-size: 12px; font-weight: 400; color: var(--faint); }
.doc .turn a.next { text-align: right; grid-column: 2; }
.doc.legal-doc { grid-template-columns: 220px minmax(0, 1fr); }
.doc.legal-doc > aside { align-self: start; position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; padding: 44px 0; font-size: 13px; }
.doc.legal-doc > aside ol { list-style: none; margin: 0; padding: 0 0 0 12px; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.doc.legal-doc > aside a { color: var(--muted); text-decoration: none; }
.doc.legal-doc > aside a:hover { color: var(--text); }
.doc .tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--panel); margin-bottom: 36px; font-size: 14px; }
.doc .tabs a { color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 8px; }
.doc .tabs a[aria-current] { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); }
.doc .lg-short { border: 1px solid var(--line); background: var(--card); padding: 4px 22px 14px; border-radius: 10px; }
.doc .lg-short h2 { margin-top: 18px; }
.doc .fine { font-size: 13px; color: var(--faint); margin-top: 0; }
@media (max-width: 1120px) { .doc { grid-template-columns: 200px minmax(0, 1fr); } .doc .toc { display: none; } }
@media (max-width: 820px) { .doc, .doc.legal-doc { grid-template-columns: minmax(0, 1fr); } .doc.legal-doc > aside { display: none; }
  .doc .side { position: static; max-height: none; display: flex; gap: 4px; overflow-x: auto; padding: 12px 0; margin: 0 calc(-1 * var(--pad)); padding-inline: var(--pad); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .doc .side p { display: none; } .doc .side ul { display: contents; } .doc .side a { white-space: nowrap; }
  .doc article { padding-top: 28px; } }

.notfound { padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.notfound .lede { margin-inline: auto; }
.notfound .actions { justify-content: center; }
