/* Legal and utility pages: the site's header, a reading column, a compact footer. */
.doc { max-width: 760px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(80px, 10vw, 140px); }
.doc h1 { margin: 0; font-family: var(--poster); font-weight: 900; font-stretch: 78%; text-transform: uppercase; font-size: clamp(56px, 2rem + 6vw, 112px); line-height: .86; letter-spacing: -0.01em; }
.doc .upd { margin-top: 18px; font: 12.5px var(--mono); color: var(--ink-3); }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.doc .toc a { padding: 7px 12px; border-radius: 99px; background: var(--ghost); font-size: 13.5px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.doc .toc a:hover { background: var(--ghost-2); color: var(--ink); }
.doc .note { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--blue) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 28%, transparent); font-size: 15px; line-height: 1.55; }
.doc h2 { margin-top: 52px; font-family: var(--sans); font-size: clamp(22px, 1rem + .6vw, 27px); font-weight: 600; letter-spacing: -0.02em; text-transform: none; scroll-margin-top: calc(var(--bar) + 20px); }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 20px; }
.doc li { margin-top: 8px; }
.doc li b, .doc p b { color: var(--ink); font-weight: 600; }
.doc a:not(.btn), .doc .linkish { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.doc a:not(.btn):hover, .doc .linkish:hover { text-decoration-color: currentColor; }
.doc .toc a { text-decoration: none; }
.doc .linkish { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.doc table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { font-weight: 600; color: var(--ink); }
.doc td { color: var(--ink-2); }
.doc code { font: 13px var(--mono); color: var(--ink); }
.doc .doc-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.lfoot { padding: 36px 0 30px; background: #0A0A09; color: #A3A199; font-size: 14px; }
.lfoot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.lfoot .mark { color: #EDEBE5; margin-right: auto; }
.lfoot .mark-g { background: #2E4BFF; color: #fff; }
.lfoot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lfoot a, .lfoot .linkish { color: #A3A199; transition: color .2s; }
.lfoot a:hover, .lfoot .linkish:hover, .lfoot a[aria-current="page"] { color: #EDEBE5; }
.lfoot .linkish { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.lfoot-base { margin-top: 22px; padding-top: 18px; border-top: 1px solid #262521; font-size: 13px; color: #75736B; }
@media (max-width: 600px) { .doc table { font-size: 13px; } .doc th:nth-child(3), .doc td:nth-child(3) { display: none; } }
.doc .toc { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.doc table, .doc th, .doc td { border-left: 0; border-right: 0; border-top: 0; background: none; }
.doc thead th { border-bottom: 1px solid var(--line-2); font: 600 12px var(--mono); text-transform: none; color: var(--ink-3); }
.doc h1 { font-family: var(--sans); font-weight: 500; font-stretch: normal; text-transform: none; font-size: clamp(44px, 1.4rem + 3.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
.doc .upd { font-family: var(--sans); font-size: 14px; text-transform: none; letter-spacing: 0; }

/* short pages: the footer sits at the bottom of the screen, never mid-page */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }

/* 404 */
.nf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 48px 20px 72px; text-align: center; }
.nf-code { display: flex; gap: .02em; margin: 0; font-family: var(--poster); font-weight: 500; font-stretch: 75%; font-size: clamp(120px, 22vw, 260px); line-height: .85; letter-spacing: -0.01em; color: var(--ink); }
.nf-code span { display: inline-block; animation: nf-in .9s cubic-bezier(.2,.8,.2,1) both; }
.nf-code span:nth-child(2) { animation-delay: .08s; }
.nf-code span:nth-child(3) { animation-delay: .16s; }
.nf-code .nf-0 { color: var(--blue); transform: rotate(-12deg) translateY(.06em); animation-name: nf-tip; }
[data-theme="dark"] .nf-code .nf-0 { color: #9DB0FF; }
@keyframes nf-in { from { opacity: 0; transform: translateY(.25em); } }
@keyframes nf-tip { from { opacity: 0; transform: translateY(.25em) rotate(0); } }
.nf-t { margin: 28px 0 0; font-family: var(--sans); font-size: clamp(28px, 1.2rem + 1.6vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-transform: none; }
.nf-p { max-width: 34em; text-wrap: balance; margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
@media (max-width: 480px) { .nf-btns { flex-direction: column; align-self: stretch; } .nf-btns .btn { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .nf-code span { animation: none; } }

/* phone header, same as the home page: logo left, button right, links centred below */
@media (max-width: 760px) {
  .top nav { justify-content: center; gap: 4px; }
  .top nav a { padding-inline: 10px; }
}
@media (max-width: 440px) {
  .top .theme { display: none; }
  .top .btn-sm { margin-left: auto; }
}
