@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; src: url('/fonts/font-0.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; src: url('/fonts/font-8.ttf') format('truetype'); font-display: swap; }
:root { color-scheme: light; --paper:#f3f2ee; --card:#fff; --ink:#171615; --muted:#5a554f; --line:#e2e0da; }
:root[data-theme="dark"] { color-scheme: dark; --paper:#131211; --card:#1c1b19; --ink:#eeece8; --muted:#ada79e; --line:#33302c; }
* { box-sizing: border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.65 'DM Sans',system-ui,sans-serif; overflow-wrap:anywhere; }
a { color:inherit; text-underline-offset:3px; }
a, button, summary, input, select { min-height:44px; }
:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
header, main, footer { max-width:900px; margin:auto; padding:20px; }
header { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; border-bottom:1px solid var(--line); }
header nav, .toc, .recovery-links, .footer-legal nav { display:flex; flex-wrap:wrap; gap:8px 16px; }
header a, .toc a, .recovery-links a, .footer-legal a { display:inline-flex; align-items:center; min-height:44px; }
header label { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.brand { font:800 20px 'Manrope',sans-serif; text-decoration:none; }
h1,h2 { font-family:'Manrope',sans-serif; line-height:1.25; }
h1 { font-size:clamp(30px,5vw,42px); margin:20px 0 12px; }
h2 { font-size:24px; margin:0 0 16px; }
h3 { font-size:18px; margin:24px 0 8px; }
[id] { scroll-margin-top:20px; }
section { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:24px; margin:24px 0; }
p { margin:8px 0 16px; }
ul,ol { padding-left:24px; }
li { margin:8px 0; }
.toc { margin:8px 0 24px; }
ol.toc { display:block; }
ol.toc li { margin:8px 0; }
.fine, time { font-size:14px; color:var(--muted); }
footer { border-top:1px solid var(--line); padding-bottom:40px; }
.footer-legal h2 { font-size:16px; }
.footer-legal .snapshot-version { margin-top:8px; }
.change-rows { list-style:none; padding:0; margin:0; }
.change-rows li { display:grid; grid-template-columns:155px minmax(0,1fr); gap:8px 20px; border-top:1px solid var(--line); padding:16px 0; margin:0; }
.change-rows p { margin:0; font-size:16px; }
.change-more { margin-top:8px; }
.change-more summary { cursor:pointer; padding:10px 0; font-weight:bold; }
.change-more[open] > summary { margin-bottom:8px; }
.recovery-search { display:grid; gap:8px; max-width:560px; margin:24px 0; }
input,button,select { font:inherit; color:var(--ink); background:var(--card); border:1px solid var(--muted); border-radius:6px; padding:8px 12px; max-width:100%; min-width:0; }
button { cursor:pointer; }
.skip-link { position:absolute; top:-100px; left:16px; padding:12px; background:var(--card); z-index:10; }
.skip-link:focus { top:8px; }
.page-bottom { display:none; }
@media (max-width:1080px) {
  body { padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
  .page-bottom { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; position:fixed; bottom:0; left:0; right:0; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); background:var(--card); border-top:1px solid var(--line); }
  .page-bottom a { display:flex; align-items:center; justify-content:center; font-size:14px; }
}
@media (max-width:600px) {
  header,main,footer { padding-left:16px; padding-right:16px; }
  section { padding:20px 16px; }
  .change-rows li { grid-template-columns:minmax(0,1fr); gap:4px; }
}
@media (max-width:1080px) {
  .page-bottom { transition:transform 160ms ease; }
  .page-bottom.is-scroll-hidden:not(:focus-within) { transform:translateY(110%); }
}
@media (prefers-reduced-motion:reduce) { .page-bottom { transition:none; } }
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-width:68px; min-height:44px; padding:10px; border:1px solid var(--muted); border-radius:12px; background:var(--card); color:var(--ink); cursor:pointer; }
.theme-toggle .icon { width:18px; height:18px; }
.theme-toggle[aria-pressed="false"] .icon:last-child, .theme-toggle[aria-pressed="true"] .icon:first-child { opacity:.45; }
.theme-toggle:hover { border-color:var(--ink); }
