/* Arborwake wiki. System fonts only: the wiki must render offline from file://. */
:root {
  --bg: #f6f8f6;
  --panel: #ffffff;
  --ink: #17262a;
  --muted: #5b6d70;
  --line: #d9e2df;
  --accent: #1f7a62;
  --accent-soft: #e2f3ec;
  --code: #eef3f1;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 5%);
  --st-integrated: #1d7a4a;
  --st-integrated-bg: #dcf3e6;
  --st-prototype: #8a5a00;
  --st-prototype-bg: #fff0cc;
  --st-proposed: #3c5aa8;
  --st-proposed-bg: #e3e9fb;
  --st-rejected: #8f2f3a;
  --st-rejected-bg: #f8dfe2;
  --st-alpha: #0b6f80;
  --st-alpha-bg: #d8f1f5;
  --st-approved: #6a3fa0;
  --st-approved-bg: #ece2f8;
  --red-link: #c0392b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0d1a1e;
    --panel: #132428;
    --ink: #e2ece8;
    --muted: #93a9a6;
    --line: #27403f;
    --accent: #67c6a4;
    --accent-soft: #173a33;
    --code: #0f2024;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
    --st-integrated: #7fe0a8;
    --st-integrated-bg: #143a28;
    --st-prototype: #ffd27a;
    --st-prototype-bg: #3d2f10;
    --st-proposed: #a9bdff;
    --st-proposed-bg: #1f2a4a;
    --st-rejected: #ff9eaa;
    --st-rejected-bg: #45202a;
    --st-alpha: #7fdbea;
    --st-alpha-bg: #123a42;
    --st-approved: #d2b6ff;
    --st-approved-bg: #33224d;
    --red-link: #ff8a7a;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0d1a1e;
  --panel: #132428;
  --ink: #e2ece8;
  --muted: #93a9a6;
  --line: #27403f;
  --accent: #67c6a4;
  --accent-soft: #173a33;
  --code: #0f2024;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%);
  --st-integrated: #7fe0a8;
  --st-integrated-bg: #143a28;
  --st-prototype: #ffd27a;
  --st-prototype-bg: #3d2f10;
  --st-proposed: #a9bdff;
  --st-proposed-bg: #1f2a4a;
  --st-rejected: #ff9eaa;
  --st-rejected-bg: #45202a;
  --st-alpha: #7fdbea;
  --st-alpha-bg: #123a42;
  --st-approved: #d2b6ff;
  --st-approved-bg: #33224d;
  --red-link: #ff8a7a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.88em; }
:not(pre) > code { background: var(--code); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; text-align: center;
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px; background: var(--panel);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--panel); padding: 8px; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search { position: relative; flex: 1; max-width: 560px; margin-left: auto; }
.search input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--ink); font: inherit;
}
.theme, .menu { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }
.menu { display: none; }

/* Layout */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 32px; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
.side, .toc { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; padding: 20px 0; font-size: 0.92em; }
.side ul, .toc ul { list-style: none; margin: 0 0 14px; padding: 0; }
.side a, .toc a { display: block; padding: 3px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.side a:hover, .toc a:hover { background: var(--accent-soft); }
.side a[aria-current='page'] { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.toc li.l3 a { padding-left: 22px; color: var(--muted); }
.toc a.on { color: var(--accent); font-weight: 600; }
.nav-title { margin: 0 0 4px 10px; font-size: 0.75em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
main { min-width: 0; padding: 24px 0 48px; }
.page-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.audience { margin: 0; font-size: 0.78em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 4px 0 6px; font-size: 2.1rem; line-height: 1.2; }
.lede { margin: 0; font-size: 1.12em; color: var(--muted); }
.updated { margin: 6px 0 0; font-size: 0.82em; color: var(--muted); }
h2 { margin: 36px 0 10px; font-size: 1.5rem; line-height: 1.25; padding-top: 6px; }
h3 { margin: 26px 0 8px; font-size: 1.18rem; }
h4 { margin: 20px 0 6px; font-size: 1rem; }
.anchor { margin-left: 8px; color: var(--line); text-decoration: none; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor { opacity: 1; }
p, ul, ol { margin: 0 0 12px; }
li { margin: 3px 0; }
img { max-width: 100%; height: auto; }
main img { border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; background: var(--panel); }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.muted { color: var(--muted); }
.foot { margin-top: 48px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.82em; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.93em; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--accent-soft); font-weight: 650; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
table.features td:first-child { min-width: 170px; }
table.features td:nth-child(2) { white-space: nowrap; }
table.features .evidence { margin: 0; padding-left: 16px; font-size: 0.92em; }
table.features .where { margin-top: 4px; font-size: 0.9em; }
table.features .blockers { margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: var(--st-rejected-bg); font-size: 0.9em; }
tr:target { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Badges */
.badge, .chip {
  display: inline-block; padding: 0.08em 0.55em; border-radius: 999px; font-size: 0.78em; font-weight: 700;
  line-height: 1.5; vertical-align: 0.1em; white-space: nowrap;
}
.st-integrated { color: var(--st-integrated); background: var(--st-integrated-bg); }
.st-prototype { color: var(--st-prototype); background: var(--st-prototype-bg); }
.st-proposed { color: var(--st-proposed); background: var(--st-proposed-bg); }
.st-rejected { color: var(--st-rejected); background: var(--st-rejected-bg); }
.st-alpha { color: var(--st-alpha); background: var(--st-alpha-bg); }
.st-approved { color: var(--st-approved); background: var(--st-approved-bg); }
.chip { font-weight: 600; background: var(--code); color: var(--muted); border: 1px solid var(--line); margin-top: 3px; }
.vf-lead-verified { color: var(--st-integrated); }
.vf-lead-blocked { color: var(--st-rejected); }
.vf-wiki-checked { color: var(--st-proposed); }

/* Status tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.tile { display: flex; flex-direction: column; padding: 14px; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow); }
.tile .n { font-size: 2rem; font-weight: 800; line-height: 1; }
.tile .l { font-weight: 700; }
.tile .h { font-size: 0.82em; opacity: 0.85; }


/* Callouts */
.callout { margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { margin: 0 0 4px; font-weight: 700; }
.callout.warning { border-color: var(--st-prototype); background: var(--st-prototype-bg); }
.callout.important { border-color: var(--st-rejected); background: var(--st-rejected-bg); }
.callout.status { border-color: var(--st-proposed); background: var(--st-proposed-bg); }
blockquote { margin: 0 0 14px; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--muted); }

/* Code */
.code { position: relative; margin: 0 0 14px; }
.code pre { margin: 0; padding: 12px 14px; overflow: auto; border-radius: 10px; background: var(--code); border: 1px solid var(--line); }
.copy, .copy-inline {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 6px; cursor: pointer; font: 12px system-ui, sans-serif;
}
.code .copy { position: absolute; top: 6px; right: 6px; padding: 2px 8px; }
.gitref code { overflow-wrap: anywhere; }
.copy-inline { padding: 0 6px; margin-left: 4px; vertical-align: 0.1em; }
.code, .code pre { max-width: 100%; }

/* Figures, gallery and demos */
figure { margin: 0 0 18px; }
figcaption { margin-top: 6px; font-size: 0.9em; color: var(--muted); }
figcaption strong { color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 20px; }
.gallery figure { margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0b1c22; }
.gallery img.pix { image-rendering: pixelated; }
.demo { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.demo-stage { position: relative; }
.demo-stage img { width: 100%; display: block; }
.demo-stage iframe { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 8px; background: #0b1c22; display: block; }
.demo-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: 700 16px system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 18px rgb(0 0 0 / 35%);
}
:root[data-theme='dark'] .demo-play { color: #08201a; }

/* Filters and changelog */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.filters button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); cursor: pointer; font: 13px system-ui, sans-serif; }
.filters button.on { background: var(--accent); border-color: var(--accent); color: var(--panel); }
.log-day { margin: 22px 0 6px; font-size: 1rem; color: var(--muted); }
.log-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.log-item { padding: 7px 10px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--line); font-size: 0.93em; }
.log-item:last-child { border-bottom: 0; }
.log-time { display: inline-block; width: 3.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-item .sha { margin-right: 6px; }
.log-item .chip.br { margin-right: 6px; }
.log-stat { margin-left: 8px; font-size: 0.85em; color: var(--muted); }
.log-item details { margin: 4px 0 0 3.4em; }
.log-item pre { white-space: pre-wrap; font-size: 0.85em; margin: 4px 0; color: var(--muted); }
.br-main { border-left-color: var(--st-integrated); }
.br-a { border-left-color: #c98a1b; }
.br-b { border-left-color: #b45cc9; }
.br-art { border-left-color: #3c8bd9; }
.br-env { border-left-color: #2fae9c; }
.br-wiki { border-left-color: #8e8e8e; }
.br-alpha { border-left-color: var(--st-alpha); }
.br-hud { border-left-color: #d9603c; }
.br-vfx { border-left-color: #e0b400; }
.task { display: inline-block; width: 0.9em; height: 0.9em; margin-right: 6px; border: 2px solid var(--muted); border-radius: 3px; vertical-align: -0.1em; }
.task.done { background: var(--accent); border-color: var(--accent); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgb(0 0 0 / 82%); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 86vh; border: 0; cursor: zoom-out; image-rendering: auto; }
.lightbox p { color: #eee; margin: 8px 0 0; text-align: center; }
.lightbox button { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }

/* Search suggestions (header) */
#results {
  position: absolute; top: 44px; left: 0; right: 0; max-height: 75vh; overflow: auto; padding: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 40;
}
#results .opt-head { margin: 6px 8px 2px; font-size: 0.72em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
#results .opt { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
#results .opt:hover, #results .opt.sel { background: var(--accent-soft); }
#results .opt img, #results .opt-letter { flex: none; width: 36px; height: 36px; object-fit: contain; border-radius: 6px; border: 1px solid var(--line); background: #0b1c22; cursor: pointer; }
#results .opt-letter { display: grid; place-items: center; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
#results .opt-main { flex: 1; min-width: 0; }
#results .opt.all { color: var(--accent); font-weight: 600; }
#results .rt { font-weight: 650; }
#results .rh { color: var(--muted); }
#results .rx { display: -webkit-box; font-size: 0.83em; color: var(--muted); overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
mark { background: var(--st-prototype-bg); color: inherit; border-radius: 2px; }

/* Wiki links: existing pages, and red links to pages that do not exist yet */
a.wl { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
a.wl.new { color: var(--red-link); text-decoration-style: dotted; }
.random { width: 100%; padding: 6px 10px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.random:hover { background: var(--accent-soft); }

/* Article head: categories above the title, as on Fandom */
.cats-top { margin: 0; font-size: 0.8em; color: var(--muted); }
.cats-top a { color: var(--muted); }

/* Infobox (portable-infobox style) */
.infobox {
  float: right; width: 300px; margin: 0 0 16px 22px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden; font-size: 0.9em;
}
.ib-title { margin: 0; padding: 10px 12px; text-align: center; font-weight: 800; font-size: 1.15em; color: var(--panel); background: var(--accent); }
.ib-image { margin: 0; padding: 10px; text-align: center; background: #0b1c22; }
.ib-image img { max-height: 280px; width: auto; border: 0; image-rendering: pixelated; }
.ib-image figcaption { color: #c7d6d2; font-size: 0.85em; }
.infobox .table-wrap, .infobox table { font-size: 1em; }
.infobox th { width: 38%; white-space: normal; background: transparent; color: var(--muted); font-weight: 650; }
.infobox td, .infobox th { padding: 6px 10px; }
.infobox .ib-group th { text-align: center; background: var(--accent-soft); color: var(--ink); width: auto; }

/* Navbox */
.navbox { clear: both; margin: 28px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.navbox summary { padding: 8px 12px; text-align: center; font-weight: 750; background: var(--accent-soft); cursor: pointer; }
.navbox summary a { font-weight: 400; font-size: 0.85em; }
.navbox table { font-size: 0.9em; }
.navbox th { width: 1%; text-align: right; background: var(--bg); color: var(--muted); }
.navbox td a { white-space: nowrap; }
.navbox .sep { color: var(--muted); }

/* Category bar, backlinks and sources */
.catbar { clear: both; margin: 18px 0 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 0.88em; }
.catbar .cat-status a { color: var(--muted); }
.backlinks { margin: 8px 0; font-size: 0.9em; }
.backlinks summary { cursor: pointer; color: var(--muted); }
.backlinks ul { columns: 3 180px; margin-top: 6px; }
ol.sources { font-size: 0.88em; }
ol.sources li { overflow-wrap: anywhere; }

/* Callouts that Fandom uses as templates */
.callout.stub { border-color: var(--muted); background: var(--code); }
.callout.spoiler { border-color: var(--st-rejected); background: var(--st-rejected-bg); }
.callout.spoiler summary { font-weight: 700; cursor: pointer; }
.callout.spoiler[open] summary { margin-bottom: 6px; }
figure.quote { margin: 0 0 16px; padding: 12px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
figure.quote blockquote { border: 0; margin: 0; padding: 0; color: var(--ink); font-style: italic; font-size: 1.05em; }
figure.quote blockquote::before { content: '\201C'; font-size: 2em; line-height: 0; vertical-align: -0.35em; margin-right: 4px; color: var(--accent); }
figure.quote figcaption::before { content: '\2014\00a0'; }

/* Link preview card */
.preview {
  position: fixed; z-index: 45; width: 300px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); box-shadow: 0 8px 30px rgb(0 0 0 / 22%); pointer-events: none; font-size: 0.88em;
}
.preview img { float: right; width: 80px; height: 80px; object-fit: contain; margin: 0 0 6px 8px; border-radius: 6px; background: #0b1c22; image-rendering: pixelated; }
.preview p { margin: 0 0 4px; }
.pv-t { font-weight: 750; }
.pv-k { color: var(--muted); font-size: 0.9em; }

/* Article cards (category pages and hubs) */
ul.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 22px; }
ul.cards li { margin: 0; }
a.card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--accent); }
a.card img, .card-letter { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border: 0; border-radius: 8px; background: #0b1c22; image-rendering: pixelated; cursor: pointer; }
.card-letter { display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); }
.card-t { font-weight: 750; }
.card-s { flex: 1; font-size: 0.85em; color: var(--muted); }
a.card .badge { align-self: flex-start; }

/* Main page portal */
ul.portal { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 0 24px; }
ul.portal li { margin: 0; }
a.portal-tile { position: relative; display: flex; flex-direction: column; min-height: 170px; padding: 12px; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(160deg, #1f7a62, #0b2a33); box-shadow: var(--shadow); }
a.portal-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; border: 0; border-radius: 0; image-rendering: pixelated; cursor: pointer; }
a.portal-tile span { position: relative; }
.pt-t { margin-top: auto; font-size: 1.2em; font-weight: 800; text-shadow: 0 1px 4px rgb(0 0 0 / 60%); }
.pt-n { font-size: 0.8em; font-weight: 700; opacity: 0.9; }
.pt-h { font-size: 0.85em; opacity: 0.95; text-shadow: 0 1px 3px rgb(0 0 0 / 60%); }
a.portal-tile:hover { outline: 3px solid var(--accent); }
.hero { margin: 0 0 20px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line); }
.hero p:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 28px; }
ul.recent { padding-left: 18px; }

/* A-to-Z lists and the search page */
.letter { margin: 18px 0 4px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
ul.index-list { list-style: none; padding: 0; }
ul.index-list li { padding: 3px 0; }
ul.index-list.cats { columns: 3 220px; }
.search-page { display: flex; gap: 8px; margin: 0 0 8px; }
.search-page input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; }
.search-page button { padding: 8px 16px; border: 0; border-radius: 8px; background: var(--accent); color: var(--panel); font: inherit; font-weight: 700; cursor: pointer; }
#search-kinds button { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); cursor: pointer; font: 13px system-ui, sans-serif; }
#search-kinds button.on { background: var(--accent); border-color: var(--accent); color: var(--panel); }
ol.search-results { list-style: none; padding: 0; }
ol.search-results li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ol.search-results img { flex: none; width: 72px; height: 72px; object-fit: contain; background: #0b1c22; image-rendering: pixelated; }
.sr-t { font-weight: 700; font-size: 1.05em; }
.sr-k { margin: 2px 0; font-size: 0.8em; color: var(--muted); }
.sr-x { margin: 0; font-size: 0.9em; }
.go-exact { padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); }
details.tips { margin: 0 0 10px; font-size: 0.85em; color: var(--muted); }

@media (max-width: 1180px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menu { display: block; }
  .side { display: none; position: fixed; inset: 56px 0 0 0; z-index: 30; max-height: none; padding: 16px; background: var(--panel); }
  body.nav-open .side { display: block; }
  .brand span { display: none; }
  h1 { font-size: 1.7rem; }
  .demo-stage iframe { height: 520px; }
  .infobox { float: none; width: auto; margin: 0 0 16px; }
  .navbox td a { white-space: normal; }
}
@media print {
  .top, .side, .toc, .demo-play { display: none; }
  .layout { display: block; }
}
