@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-wght.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-2: #000000;
  --surface: #000000;
  --surface-2: #0d0d0d;
  --border: #d9d9d9;
  --text: #f8f8f8;
  --muted: #999999;
  --frost: #ffffff;
  --ice: #f2f2f2;
  --ice-dim: #bfbfbf;
  --todo-bg: #2e2612;
  --todo-border: #8a6d22;
  --todo-text: #f0d48a;
  --radius: 10px;
  --gutter: 16px;
  --max: 1080px;
  --head: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 192, 226, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(185, 226, 245, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: var(--frost); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 6px 10px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.proto { background: var(--todo-bg); color: var(--todo-text); text-align: center; font-size: 13px; padding: 4px var(--gutter);
  border-bottom: 1px solid var(--todo-border); }

/* header and nav */
.top { position: relative; z-index: 5; background: rgba(11, 17, 24, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--frost); text-decoration: none;
  font-family: var(--head); font-weight: 700; letter-spacing: 0.12em; font-size: 20px; text-transform: uppercase; }
.brand img { border-radius: 7px; }
/* the site's sections as a horizontal tab bar: wraps on wide screens, scrolls sideways inside itself on phones */
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 2px; }
.tabs li { margin: 0; }
.tabs a { display: block; padding: 8px 12px 7px; color: var(--muted); text-decoration: none; font-size: 15px;
  border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: #111; }
.tabs a:focus-visible { outline: 2px solid var(--frost); outline-offset: -2px; }
.tabs a[aria-current="page"] { color: var(--frost); background: #000; border-color: var(--border);
  box-shadow: inset 0 -2px 0 var(--frost); }

@media (max-width: 760px) {
  .tabs .wrap { padding: 0; }
  .tabs ul { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
    padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .tabs a { padding: 10px 12px 9px; }
}

/* content */
main { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--frost); line-height: 1.25; letter-spacing: 0.02em; }
h1 { font-size: clamp(28px, 5vw, 40px); margin: 0.2em 0 0.5em; }
h2 { font-size: clamp(21px, 3.4vw, 27px); margin: 1.8em 0 0.6em; padding-bottom: 0.3em; border-bottom: 1px solid var(--border); }
h3 { font-size: 19px; margin: 1.4em 0 0.5em; }
h4 { font-size: 16px; margin: 1.2em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
main > p, main > ul:not(.stats), main > ol, main > blockquote { max-width: 72ch; }
li { margin: 0.25em 0; }
blockquote { margin: 1em 0; padding: 0.6em 1em; border-left: 3px solid var(--ice-dim); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
blockquote p { margin: 0; }
strong { color: #fff; }

mark.todo { background: var(--todo-bg); color: var(--todo-text); border: 1px solid var(--todo-border);
  border-radius: 4px; padding: 0 0.3em; font-size: 0.85em; font-weight: 700; letter-spacing: 0.04em; }
.callout { border-radius: var(--radius); padding: 12px 16px; margin: 1.2em 0; max-width: 72ch; }
.callout p { margin: 0; }
.todo-box { background: var(--todo-bg); border: 1px solid var(--todo-border); color: var(--todo-text); }
.todo-box mark.todo { border-color: var(--todo-text); }
.note { background: var(--surface); border: 1px solid var(--border); }

.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; padding: 10px 12px; font-family: var(--head); color: var(--frost); background: var(--surface-2);
  border-bottom: 1px solid var(--border); }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #fff; }
.src { font-size: 13px; color: var(--muted); }

/* home */
.hero { position: relative; margin: 8px 0 32px; padding: 48px 28px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(185, 226, 245, 0.08), rgba(11, 17, 24, 0) 70%),
    linear-gradient(160deg, #1a2a3a 0%, #0f1924 55%, #0b1118 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 68%, #dff 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 80%, #eef 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 74% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 56%, #dff 50%, transparent 51%),
    radial-gradient(2px 2px at 94% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 84%, #eef 50%, transparent 51%); }
.hero h1 { font-size: clamp(34px, 8vw, 64px); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.2em;
  text-shadow: 0 0 24px rgba(124, 192, 226, 0.35); }
.hero p { color: var(--text); font-size: clamp(17px, 2.4vw, 20px); max-width: 52ch; margin: 0 0 1.4em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 9px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--ice-dim); color: var(--frost); background: rgba(124, 192, 226, 0.08); }
.btn.primary { background: var(--ice); color: #06121b; border-color: var(--ice); }
.btn:hover { filter: brightness(1.12); color: inherit; }
.btn.primary:hover { color: #06121b; }

.stats { list-style: none; padding: 0; margin: 0 0 28px; max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 0; }
.stats b { display: block; font-family: var(--head); font-size: 26px; color: var(--frost); }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } .hero { padding: 32px 18px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { margin: 0 0 0.4em; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }

.cols { columns: 2 260px; column-gap: 24px; padding-left: 1.2em; }
.cols li { break-inside: avoid; }

/* mod list */
.filter { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr minmax(160px, 280px) auto;
  gap: 10px; align-items: center; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.filter input, .filter select { width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.filter input:focus, .filter select:focus { outline: 2px solid var(--ice-dim); outline-offset: 1px; }
.count { margin: 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 760px) {
  .filter { grid-template-columns: 1fr; }
  .count { white-space: normal; }
}
h2.group { margin-top: 1.6em; }
.cat { margin: 0 0 18px; }
.cat h3 { margin: 18px 0 8px; font-size: 17px; }
.cat h3 .n { font-family: var(--body); font-size: 13px; color: var(--muted); background: var(--surface-2);
  border-radius: 20px; padding: 1px 9px; margin-left: 6px; vertical-align: middle; }
.cat ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 18px; }
.cat li { display: flex; align-items: baseline; gap: 8px; padding: 6px 2px; border-bottom: 1px solid rgba(37, 52, 69, 0.6);
  margin: 0; min-width: 0; font-size: 15px; }
.cat li a { overflow-wrap: anywhere; }
.ver { margin-left: auto; color: var(--muted); font: 12px var(--mono); white-space: nowrap; padding-left: 6px; }
.badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 5px; white-space: nowrap; }
.badge.local { color: var(--todo-text); border-color: var(--todo-border); }
.none { color: var(--muted); }
@media (max-width: 420px) { .cat ul { grid-template-columns: 1fr; } }

/* footer */
.foot { border-top: 1px solid var(--border); background: var(--bg-2); color: var(--muted); font-size: 14px; padding: 22px 0; }
.foot p { margin: 0 0 0.5em; max-width: 80ch; }
.small { font-size: 13px; }

/* Norden UI - Black look (the owner, 2026-10-24: "black with the white or almost white frame and outlines ... match
   Norden black in appearance"): pure black panels, near-white hairline frames and text, grey hints, no blue tints. */
body { background-image: none; }
.top { background: #000; }
.hero { background: #000 !important; border: 1px solid var(--border); }
.hero::before, .hero::after { display: none !important; }
h1, h2, h3, .brand { text-shadow: none !important; color: var(--frost); }
.btn { background: #000; border: 1px solid var(--border); color: var(--text); }
.btn.primary { background: var(--frost); color: #000; border-color: var(--frost); }
.btn.primary:hover { background: #d9d9d9; color: #000; }
.cat li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
nav a[aria-current="page"] { background: #000; color: var(--frost); box-shadow: inset 0 -1px 0 var(--frost); }
nav a:hover { background: #111; }
.card, .panel, section.box, table, details, .callout, .note { border-color: var(--border); }

/* numbered step drop-downs (install, first launch) */
.steps { margin: 1.2em 0 1.6em; max-width: 80ch; }
details.step { border: 1px solid var(--border); border-radius: var(--radius); background: #000; margin: 0 0 10px; max-width: 80ch; }
details.step > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; font-family: var(--head); color: var(--frost); font-size: 18px; line-height: 1.3; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary::after { content: "+"; margin-left: auto; font-family: var(--body); color: var(--muted); font-size: 22px; line-height: 1; }
details.step[open] > summary::after { content: "\2212"; }
details.step > summary:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; border-radius: var(--radius); }
details.step > summary .num { flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--body); font-size: 15px; }
details.step > summary .st { min-width: 0; overflow-wrap: anywhere; }
details.step > summary mark.todo { font-family: var(--body); flex: 0 0 auto; }
details.step[open] > summary { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.step-body { padding: 4px 16px 6px; }
.step-body h3 { font-size: 17px; }
.step-body > p, .step-body > ul, .step-body > ol { max-width: 72ch; }

/* framed boxes that always show (the "Don't do this" box) */
aside.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px 4px; margin: 1.2em 0 1.4em;
  max-width: 80ch; background: #000; }
aside.box .box-title { font-size: 19px; margin: 0.2em 0 0.5em; padding: 0; border: 0; }
aside.box.dont { border-width: 1px 1px 1px 4px; }
aside.box ul { padding-left: 1.2em; }

/* plugin load order */
.plugins table { font-size: 14px; }
.plugins td { padding: 5px 10px; }
.plugins td.idx { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.plugins td.pl { overflow-wrap: anywhere; }
.plugins td.pm { color: var(--muted); overflow-wrap: anywhere; }
.badge.light { color: var(--text); border-style: dashed; }
@media (max-width: 600px) {
  .plugins th:first-child, .plugins td.idx { display: none; }
  .plugins td { padding: 5px 7px; }
}
dl.specs { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 6px 18px; max-width: 72ch;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 1em 0 1.4em; }
dl.specs dt { color: var(--muted); }
dl.specs dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { dl.specs { grid-template-columns: 1fr; gap: 2px; } dl.specs dd { margin-bottom: 8px; } }

/* control-map graphics (Controls page) */
.control-map { margin: 1.25rem 0 1.75rem; }
.control-map img { display: block; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #000; }
.control-map figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.control-map figcaption a { color: var(--text); }
