/* Neonesis type: three open-source variable faces (SIL OFL 1.1, licences next to this file), each with
   Latin + Cyrillic. Served from our own files: no third-party font host.
     Inter Tight  display: headlines, the big numbers (weights 600-900, caps for HUD titles)
     Geist        text: paragraphs, buttons, UI (400-600)
     Geist Mono   HUD captions, codes, labels (caps, wide tracking)
   Paths are relative to this file. */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/inter-tight-cyrillic-ext-wght-normal.woff2?v=c00f57e4c1") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/inter-tight-cyrillic-wght-normal.woff2?v=8beeaad1d2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/inter-tight-latin-ext-wght-normal.woff2?v=3bd3cbc3bb") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/inter-tight-latin-wght-normal.woff2?v=4179443c53") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-cyrillic-ext-wght-normal.woff2?v=c984835cd9") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-cyrillic-wght-normal.woff2?v=e64a504991") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-latin-ext-wght-normal.woff2?v=999bb767bb") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-latin-wght-normal.woff2?v=f49f83effe") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-mono-cyrillic-ext-wght-normal.woff2?v=9d00022300") format("woff2-variations");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-mono-cyrillic-wght-normal.woff2?v=de4414b3bc") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-mono-latin-ext-wght-normal.woff2?v=055f596ea5") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/brand/fonts/geist-mono-latin-wght-normal.woff2?v=8c3cbed783") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Neonesis design tokens (generated by brand/tools/tokens.mjs: edit that file, not this one).
   Usage rules: brand/README.md. Fonts: brand/fonts/fonts.css (load it too). */

:root {
  --nn-void: #07080C;
  --nn-deep: #0D0F16;
  --nn-panel: #121521;
  --nn-raised: #181C2A;
  --nn-line: #1E2433;
  --nn-line-strong: #2C3448;
  --nn-text: #E8ECF4;
  --nn-text-2: #B4BCCB;
  --nn-muted: #7A8499;
  --nn-faint: #4A5266;
  --nn-cyan: #00E5FF;
  --nn-cyan-hi: #A6F8FF;
  --nn-cyan-lo: #00A9CC;
  --nn-cyan-ink: #00768A;
  --nn-on-cyan: #03141A;
  --nn-magenta: #FF2E88;
  --nn-magenta-hi: #FF7AB3;
  --nn-magenta-ink: #D9136B;
  --nn-on-magenta: #1A0510;
  --nn-yellow: #F4E409;
  --nn-yellow-ink: #7A7200;
  --nn-on-yellow: #141300;
  --nn-violet: #7A5CFF;
  --nn-success: #3DFFA2;
  --nn-danger: #FF3B5C;
  --nn-info: #00E5FF;
  --nn-paper: #F3F5F9;
  --nn-ink: #0D0F16;

  --nn-grad-neon: linear-gradient(90deg, #00E5FF 0%, #7A5CFF 52%, #FF2E88 100%);
  --nn-grad-cyan: linear-gradient(180deg, #A6F8FF 0%, #00E5FF 42%, #00A9CC 100%);
  --nn-grad-magenta: linear-gradient(180deg, #FF7AB3 0%, #FF2E88 50%, #C8146A 100%);
  --nn-grad-hazard: repeating-linear-gradient(-45deg, #F4E409 0 10px, #07080C 10px 20px);
  --nn-grad-scanlines: repeating-linear-gradient(0deg, rgba(232,236,244,0.035) 0 1px, transparent 1px 3px);
  --nn-grad-grid: linear-gradient(rgba(0,229,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,255,0.06) 1px, transparent 1px);
  --nn-grad-fade-down: linear-gradient(180deg, rgba(7,8,12,0) 0%, #07080C 100%);
  --nn-grad-vignette: radial-gradient(120% 90% at 50% 0%, rgba(7,8,12,0) 40%, rgba(7,8,12,0.85) 100%);

  --nn-glow-cyan-sm: 0 0 6px rgba(0,229,255,0.55);
  --nn-glow-cyan: 0 0 12px rgba(0,229,255,0.45), 0 0 34px rgba(0,229,255,0.18);
  --nn-glow-cyan-lg: 0 0 18px rgba(0,229,255,0.55), 0 0 60px rgba(0,229,255,0.25);
  --nn-glow-magenta: 0 0 12px rgba(255,46,136,0.45), 0 0 34px rgba(255,46,136,0.18);
  --nn-glow-yellow: 0 0 12px rgba(244,228,9,0.4), 0 0 30px rgba(244,228,9,0.15);
  --nn-glow-text-cyan: 0 0 8px rgba(0,229,255,0.6), 0 0 24px rgba(0,229,255,0.28);
  --nn-glow-text-magenta: 0 0 8px rgba(255,46,136,0.6), 0 0 24px rgba(255,46,136,0.28);

  --nn-cut-xs: 6px;
  --nn-cut-sm: 10px;
  --nn-cut-md: 16px;
  --nn-cut-lg: 24px;
  --nn-cut-xl: 36px;
  --nn-radius-none: 0px;
  --nn-radius-xs: 2px;
  --nn-radius-sm: 4px;
  --nn-radius-pill: 999px;

  --nn-space-0: 0px;
  --nn-space-1: 4px;
  --nn-space-2: 8px;
  --nn-space-3: 12px;
  --nn-space-4: 16px;
  --nn-space-5: 20px;
  --nn-space-6: 24px;
  --nn-space-8: 32px;
  --nn-space-10: 40px;
  --nn-space-12: 48px;
  --nn-space-16: 64px;
  --nn-space-20: 80px;
  --nn-space-24: 96px;
  --nn-space-32: 128px;

  --nn-font-display: "Inter Tight", "Geist", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --nn-font-text: "Geist", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --nn-font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --nn-text-display-xl: clamp(3rem, 1.6rem + 6.2vw, 8rem);
  --nn-text-display-xl-line: 0.9;
  --nn-text-display-xl-weight: 900;
  --nn-text-display-xl-tracking: -0.02em;
  --nn-text-display: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);
  --nn-text-display-line: 0.95;
  --nn-text-display-weight: 900;
  --nn-text-display-tracking: -0.015em;
  --nn-text-h1: clamp(2.125rem, 1.5rem + 2.8vw, 4rem);
  --nn-text-h1-line: 1;
  --nn-text-h1-weight: 800;
  --nn-text-h1-tracking: -0.01em;
  --nn-text-h2: clamp(1.75rem, 1.3rem + 2vw, 2.875rem);
  --nn-text-h2-line: 1.05;
  --nn-text-h2-weight: 800;
  --nn-text-h2-tracking: -0.005em;
  --nn-text-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --nn-text-h3-line: 1.2;
  --nn-text-h3-weight: 700;
  --nn-text-h3-tracking: 0;
  --nn-text-body-lg: 1.1875rem;
  --nn-text-body-lg-line: 1.6;
  --nn-text-body-lg-weight: 400;
  --nn-text-body-lg-tracking: 0;
  --nn-text-body: 1rem;
  --nn-text-body-line: 1.65;
  --nn-text-body-weight: 400;
  --nn-text-body-tracking: 0;
  --nn-text-small: 0.875rem;
  --nn-text-small-line: 1.5;
  --nn-text-small-weight: 400;
  --nn-text-small-tracking: 0;
  --nn-text-hud: 0.75rem;
  --nn-text-hud-line: 1.2;
  --nn-text-hud-weight: 500;
  --nn-text-hud-tracking: 0.2em;
  --nn-text-hud-sm: 0.6875rem;
  --nn-text-hud-sm-line: 1.2;
  --nn-text-hud-sm-weight: 500;
  --nn-text-hud-sm-tracking: 0.18em;

  --nn-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nn-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nn-ease-glitch: steps(2, jump-none);
  --nn-dur-fast: 120ms;
  --nn-dur-base: 220ms;
  --nn-dur-slow: 480ms;
  --nn-max-width: 1320px;
  --nn-gutter: clamp(16px, 4vw, 48px);
}

/* ---- type */
.nn-display-xl { font-family: var(--nn-font-display); font-size: var(--nn-text-display-xl); line-height: var(--nn-text-display-xl-line); font-weight: var(--nn-text-display-xl-weight); letter-spacing: var(--nn-text-display-xl-tracking); text-transform: uppercase; }
.nn-display { font-family: var(--nn-font-display); font-size: var(--nn-text-display); line-height: var(--nn-text-display-line); font-weight: var(--nn-text-display-weight); letter-spacing: var(--nn-text-display-tracking); text-transform: uppercase; }
.nn-h1 { font-family: var(--nn-font-display); font-size: var(--nn-text-h1); line-height: var(--nn-text-h1-line); font-weight: var(--nn-text-h1-weight); letter-spacing: var(--nn-text-h1-tracking); text-transform: uppercase; }
.nn-h2 { font-family: var(--nn-font-display); font-size: var(--nn-text-h2); line-height: var(--nn-text-h2-line); font-weight: var(--nn-text-h2-weight); letter-spacing: var(--nn-text-h2-tracking); text-transform: uppercase; }
.nn-h3 { font-family: var(--nn-font-display); font-size: var(--nn-text-h3); line-height: var(--nn-text-h3-line); font-weight: var(--nn-text-h3-weight); letter-spacing: var(--nn-text-h3-tracking); }
.nn-body-lg { font-family: var(--nn-font-text); font-size: var(--nn-text-body-lg); line-height: var(--nn-text-body-lg-line); font-weight: var(--nn-text-body-lg-weight); letter-spacing: var(--nn-text-body-lg-tracking); }
.nn-body { font-family: var(--nn-font-text); font-size: var(--nn-text-body); line-height: var(--nn-text-body-line); font-weight: var(--nn-text-body-weight); letter-spacing: var(--nn-text-body-tracking); }
.nn-small { font-family: var(--nn-font-text); font-size: var(--nn-text-small); line-height: var(--nn-text-small-line); font-weight: var(--nn-text-small-weight); letter-spacing: var(--nn-text-small-tracking); }
.nn-hud { font-family: var(--nn-font-mono); font-size: var(--nn-text-hud); line-height: var(--nn-text-hud-line); font-weight: var(--nn-text-hud-weight); letter-spacing: var(--nn-text-hud-tracking); text-transform: uppercase; }
.nn-hud-sm { font-family: var(--nn-font-mono); font-size: var(--nn-text-hud-sm); line-height: var(--nn-text-hud-sm-line); font-weight: var(--nn-text-hud-sm-weight); letter-spacing: var(--nn-text-hud-sm-tracking); text-transform: uppercase; }

/* ---- chamfers: the cut corner (top-left + bottom-right) is the brand's shape.
   .nn-cut cuts the box itself; for a 1 px line around a cut box use .nn-frame (draws the line inside). */
.nn-cut { --nn-c: var(--nn-cut-md); clip-path: polygon(var(--nn-c) 0, 100% 0, 100% calc(100% - var(--nn-c)), calc(100% - var(--nn-c)) 100%, 0 100%, 0 var(--nn-c)); }
.nn-cut-sm { --nn-c: var(--nn-cut-sm); }
.nn-cut-lg { --nn-c: var(--nn-cut-lg); }
.nn-cut-tr { clip-path: polygon(0 0, calc(100% - var(--nn-c, var(--nn-cut-md))) 0, 100% var(--nn-c, var(--nn-cut-md)), 100% 100%, 0 100%); }
.nn-frame { --nn-c: var(--nn-cut-md); --nn-frame: var(--nn-line-strong); position: relative; clip-path: polygon(var(--nn-c) 0, 100% 0, 100% calc(100% - var(--nn-c)), calc(100% - var(--nn-c)) 100%, 0 100%, 0 var(--nn-c)); background: var(--nn-frame); }
.nn-frame > .nn-frame-in { position: relative; height: 100%; background: var(--nn-deep); clip-path: polygon(calc(var(--nn-c) - 0.41px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - var(--nn-c) + 0.41px), calc(100% - var(--nn-c) + 0.41px) calc(100% - 1px), 1px calc(100% - 1px), 1px calc(var(--nn-c) - 0.41px)); }

/* ---- HUD details */
.nn-label { font-family: var(--nn-font-mono); font-size: var(--nn-text-hud); letter-spacing: var(--nn-text-hud-tracking); text-transform: uppercase; color: var(--nn-cyan); }
.nn-label::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.6em; background: currentColor; vertical-align: 0.05em; }
.nn-glow-text { text-shadow: var(--nn-glow-text-cyan); }
.nn-scanlines { position: relative; }
.nn-scanlines::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--nn-grad-scanlines); mix-blend-mode: overlay; }
.nn-hazard { background: var(--nn-grad-hazard); }

/* ---- a glitch, used once per screen at most and only on a big title */
@keyframes nn-glitch {
  0%, 92%, 100% { transform: none; clip-path: inset(0 0 0 0); }
  93% { transform: translate(-3px, 0); clip-path: inset(18% 0 62% 0); }
  95% { transform: translate(4px, 0); clip-path: inset(58% 0 22% 0); }
  97% { transform: translate(-2px, 0); clip-path: inset(38% 0 44% 0); }
}
@keyframes nn-flicker { 0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: 0.55; } 43% { opacity: 1; } 77% { opacity: 1; } 78% { opacity: 0.7; } 79% { opacity: 1; } }
.nn-glitch { animation: nn-glitch 7s var(--nn-ease-glitch) infinite; }
.nn-flicker { animation: nn-flicker 5s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .nn-glitch, .nn-flicker { animation: none; }
}


/* Neonesis components: the few shapes every surface shares (website, launcher, wiki, forum theme).
   Needs neonesis.css (the --nn-* variables) and ../fonts/fonts.css.
   The chamfer is drawn by a ::before layer, never by clip-path on the element itself: focus outlines
   stay visible, and the glow (filter: drop-shadow) follows the cut shape. */

/* ---------------------------------------------------------------------------------------------- buttons */
.nn-btn {
  --b-bg: var(--nn-panel);
  --b-fg: var(--nn-text);
  --b-line: var(--nn-line-strong);
  --b-c: var(--nn-cut-sm);
  --b-h: 48px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--b-h);
  padding: 0 24px;
  border: 0;
  background: none;
  color: var(--b-fg);
  font: 700 0.9375rem/1 var(--nn-font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--nn-dur-base) var(--nn-ease-out), transform var(--nn-dur-fast) var(--nn-ease-out), color var(--nn-dur-base);
  -webkit-tap-highlight-color: transparent;
}
.nn-btn::before,
.nn-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  transition: background var(--nn-dur-base) var(--nn-ease-out);
}
.nn-btn::before {
  inset: 0;
  background: var(--b-line);
  clip-path: polygon(var(--b-c) 0, 100% 0, 100% calc(100% - var(--b-c)), calc(100% - var(--b-c)) 100%, 0 100%, 0 var(--b-c));
}
.nn-btn::after {
  inset: 1px;
  background: var(--b-bg);
  clip-path: polygon(calc(var(--b-c) - 0.6px) 0, 100% 0, 100% calc(100% - var(--b-c) + 0.6px), calc(100% - var(--b-c) + 0.6px) 100%, 0 100%, 0 calc(var(--b-c) - 0.6px));
}
.nn-btn:hover { --b-line: var(--nn-cyan); }
.nn-btn:active { transform: translateY(1px); }
.nn-btn:focus-visible { outline: 2px solid var(--nn-cyan-hi); outline-offset: 4px; }
.nn-btn[disabled], .nn-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: none; }
.nn-btn svg { width: 18px; height: 18px; flex: none; }

/* the one main action in view: solid cyan, glows on hover */
.nn-btn--primary { --b-bg: var(--nn-cyan); --b-line: var(--nn-cyan); --b-fg: var(--nn-on-cyan); }
.nn-btn--primary:hover { --b-bg: var(--nn-cyan-hi); --b-line: var(--nn-cyan-hi); filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.55)) drop-shadow(0 0 26px rgba(0, 229, 255, 0.25)); }
/* the accent action (rare): magenta */
.nn-btn--accent { --b-bg: var(--nn-magenta); --b-line: var(--nn-magenta); --b-fg: var(--nn-on-magenta); }
.nn-btn--accent:hover { --b-bg: var(--nn-magenta-hi); --b-line: var(--nn-magenta-hi); filter: drop-shadow(0 0 10px rgba(255, 46, 136, 0.5)); }
/* a quiet action: a line around nothing */
.nn-btn--ghost { --b-bg: var(--nn-void); }
.nn-btn--ghost:hover { --b-bg: var(--nn-deep); }
.nn-btn--lg { --b-h: 58px; --b-c: 14px; padding: 0 32px; font-size: 1rem; }
.nn-btn--sm { --b-h: 38px; --b-c: 8px; padding: 0 16px; font-size: 0.8125rem; }

/* ----------------------------------------------------------------------------------------------- panels */
/* a cut panel with a 1 px line: <div class="nn-panel">…</div> (content sits above the two layers) */
.nn-panel {
  --p-bg: var(--nn-deep);
  --p-line: var(--nn-line);
  --p-c: var(--nn-cut-md);
  position: relative;
  isolation: isolate;
}
.nn-panel::before,
.nn-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.nn-panel::before {
  inset: 0;
  background: var(--p-line);
  clip-path: polygon(var(--p-c) 0, 100% 0, 100% calc(100% - var(--p-c)), calc(100% - var(--p-c)) 100%, 0 100%, 0 var(--p-c));
}
.nn-panel::after {
  inset: 1px;
  background: var(--p-bg);
  clip-path: polygon(calc(var(--p-c) - 0.6px) 0, 100% 0, 100% calc(100% - var(--p-c) + 0.6px), calc(100% - var(--p-c) + 0.6px) 100%, 0 100%, 0 calc(var(--p-c) - 0.6px));
}
.nn-panel--lg { --p-c: var(--nn-cut-lg); }
.nn-panel--glow { --p-line: rgba(0, 229, 255, 0.55); filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.18)); }

/* HUD corner brackets around anything: <div class="nn-brackets">…</div> */
.nn-brackets {
  --k: 14px;
  --kc: var(--nn-cyan);
  background:
    linear-gradient(var(--kc), var(--kc)) top left / var(--k) 1px no-repeat,
    linear-gradient(var(--kc), var(--kc)) top left / 1px var(--k) no-repeat,
    linear-gradient(var(--kc), var(--kc)) top right / var(--k) 1px no-repeat,
    linear-gradient(var(--kc), var(--kc)) top right / 1px var(--k) no-repeat,
    linear-gradient(var(--kc), var(--kc)) bottom left / var(--k) 1px no-repeat,
    linear-gradient(var(--kc), var(--kc)) bottom left / 1px var(--k) no-repeat,
    linear-gradient(var(--kc), var(--kc)) bottom right / var(--k) 1px no-repeat,
    linear-gradient(var(--kc), var(--kc)) bottom right / 1px var(--k) no-repeat;
}

/* ------------------------------------------------------------------------------------------ small parts */
.nn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font: 500 0.6875rem/1 var(--nn-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nn-cyan);
  background: rgba(0, 229, 255, 0.08);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.nn-chip--magenta { color: var(--nn-magenta-hi); background: rgba(255, 46, 136, 0.1); }
.nn-chip--yellow { color: var(--nn-yellow); background: rgba(244, 228, 9, 0.1); }
.nn-chip--muted { color: var(--nn-text-2); background: rgba(232, 236, 244, 0.06); }

.nn-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--nn-text);
  background: var(--nn-panel);
  border: 1px solid var(--nn-line-strong);
  border-radius: var(--nn-radius-xs);
  font: 400 1rem/1.4 var(--nn-font-text);
  transition: border-color var(--nn-dur-base);
}
.nn-input::placeholder { color: var(--nn-muted); }
.nn-input:focus { outline: none; border-color: var(--nn-cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18); }

/* a warning: the hazard stripe on the left, yellow only here */
.nn-warn {
  position: relative;
  padding: 14px 16px 14px 28px;
  color: var(--nn-text);
  background: rgba(244, 228, 9, 0.07);
  border: 1px solid rgba(244, 228, 9, 0.35);
}
.nn-warn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--nn-grad-hazard); }

/* a line with a lit piece: section dividers */
.nn-rule { height: 1px; background: linear-gradient(90deg, var(--nn-cyan) 0 48px, var(--nn-line) 48px); border: 0; margin: 0; }

/* a link in running text */
.nn-link { color: var(--nn-cyan); text-decoration: underline; text-decoration-color: rgba(0, 229, 255, 0.4); text-underline-offset: 3px; }
.nn-link:hover { text-decoration-color: var(--nn-cyan); text-shadow: var(--nn-glow-text-cyan); }


/* Neonesis Wiki: layout and components. Built on the brand kit (Desktop\Neonesis\brand): the build puts
   brand/fonts/fonts.css, brand/tokens/neonesis.css and brand/tokens/components.css in front of this file, so every
   colour, face, cut and glow here is a --nn-* token. Rules (brand/README.md): the chamfer is the shape, 1 px lines,
   cyan marks what is active, yellow only warns ("soon" included), one glowing element per view. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --top-h: 64px;
  --side-w: 296px;
  --toc-w: 236px;
  color-scheme: dark;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--nn-font-text);
  font-size: var(--nn-text-body);
  line-height: var(--nn-text-body-line);
  color: var(--nn-text);
  background: var(--nn-void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: rgba(0, 229, 255, 0.28);
  color: var(--nn-text);
}
:focus-visible {
  outline: 2px solid var(--nn-cyan-hi);
  outline-offset: 2px;
}
a {
  color: var(--nn-cyan);
}
img {
  max-width: 100%;
  height: auto;
}
svg.i {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--nn-cyan);
  color: var(--nn-on-cyan);
  font-weight: 600;
}
.skip:focus {
  left: 12px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--nn-line-strong) transparent;
}
.hud {
  font-family: var(--nn-font-mono);
  font-size: var(--nn-text-hud);
  font-weight: var(--nn-text-hud-weight);
  letter-spacing: var(--nn-text-hud-tracking);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- the top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: rgba(7, 8, 12, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nn-line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
  padding: 6px 0;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
}
.brand .nn-chip {
  height: 22px;
  padding: 0 8px;
}
.icon-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--nn-line-strong);
  background: var(--nn-deep);
  color: var(--nn-text);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--nn-cyan);
  color: var(--nn-cyan);
}
.icon-btn svg.i {
  width: 20px;
  height: 20px;
}
.search {
  position: relative;
  flex: 1 1 auto;
  max-width: 520px;
  margin: 0 auto;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 10px 0 13px;
  background: var(--nn-panel);
  border: 1px solid var(--nn-line-strong);
  border-radius: var(--nn-radius-xs);
  color: var(--nn-muted);
  cursor: text;
  transition: border-color var(--nn-dur-base), box-shadow var(--nn-dur-base);
}
.search-box:focus-within {
  border-color: var(--nn-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.18);
  color: var(--nn-cyan);
}
.search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nn-text);
  font: 400 15px var(--nn-font-text);
}
.search-box input::placeholder {
  color: var(--nn-muted);
}
.search-box input::-webkit-search-cancel-button {
  display: none;
}
.search-kbd {
  font: 500 11px/1 var(--nn-font-mono);
  color: var(--nn-muted);
  border: 1px solid var(--nn-line-strong);
  padding: 3px 6px;
}
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(660px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  overflow: auto;
  background: var(--nn-deep);
  border: 1px solid var(--nn-line-strong);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
  z-index: 60;
}
.search-results[hidden] {
  display: none;
}
.sr {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--nn-line);
  color: var(--nn-text-2);
}
.sr:last-child {
  border-bottom: 0;
}
.sr:hover,
.sr.active {
  background: var(--nn-raised);
  box-shadow: inset 2px 0 0 var(--nn-cyan);
}
.sr-path {
  display: block;
  font: 500 var(--nn-text-hud-sm) / 1.4 var(--nn-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nn-muted);
}
.sr-title {
  display: block;
  margin: 3px 0 2px;
  font: 700 16px/1.3 var(--nn-font-display);
  color: var(--nn-text);
}
.sr-text {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--nn-text-2);
}
.sr mark {
  background: rgba(0, 229, 255, 0.16);
  color: var(--nn-cyan-hi);
  padding: 0 1px;
}
.sr-empty {
  padding: 16px;
  color: var(--nn-muted);
  font-size: 14px;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.top-link {
  font: 500 var(--nn-text-hud-sm) / 1 var(--nn-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nn-text-2);
  text-decoration: none;
  padding: 10px 10px;
}
.top-link:hover {
  color: var(--nn-cyan);
}
.langs {
  display: flex;
  flex: none;
  border: 1px solid var(--nn-line-strong);
}
.lang {
  font: 600 var(--nn-text-hud-sm) / 1 var(--nn-font-mono);
  letter-spacing: 0.12em;
  padding: 8px 9px;
  color: var(--nn-muted);
  text-decoration: none;
}
.lang.active {
  color: var(--nn-on-cyan);
  background: var(--nn-cyan);
}
.lang.disabled {
  color: var(--nn-faint);
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- layout */
.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  max-width: 1500px;
  margin: 0 auto;
}
.sidebar {
  position: sticky;
  top: var(--top-h);
  height: calc(100vh - var(--top-h));
  overflow-y: auto;
  padding: 22px 14px 48px 18px;
  border-right: 1px solid var(--nn-line);
}
.scrim {
  display: none;
}
.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--toc-w);
  gap: 56px;
  padding: 30px 40px 40px 52px;
  min-width: 0;
}
.article {
  min-width: 0;
  max-width: 820px;
}
.toc-col {
  position: sticky;
  top: calc(var(--top-h) + 30px);
  align-self: start;
  max-height: calc(100vh - var(--top-h) - 50px);
  overflow-y: auto;
}

/* ---------------------------------------------------------------- the menu */
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14.5px;
}
.nav-link,
.nav-group > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  color: var(--nn-text-2);
  text-decoration: none;
  line-height: 1.35;
  transition: color var(--nn-dur-fast), background var(--nn-dur-fast);
}
.nav-link > span:first-of-type {
  flex: 1;
}
.nav-home,
.nav-top,
.nav-group > summary {
  font: 700 13px/1.35 var(--nn-font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nn-text);
}
.nav-home svg.i,
.nav-top svg.i,
.nav-group > summary svg.i {
  color: var(--nn-muted);
  width: 18px;
  height: 18px;
}
.nav-group > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
  margin-top: 4px;
}
.nav-group > summary::-webkit-details-marker {
  display: none;
}
.nav-group > summary span {
  flex: 1;
}
.nav-group > summary .chev {
  width: 14px;
  height: 14px;
  transition: transform var(--nn-dur-base) var(--nn-ease-out);
}
.nav-group[open] > summary .chev {
  transform: rotate(90deg);
}
.nav-group[open] > summary > svg.i:first-child {
  color: var(--nn-cyan);
}
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 10px 19px;
  padding-left: 10px;
  border-left: 1px solid var(--nn-line);
}
.nav-link:hover,
.nav-group > summary:hover {
  color: var(--nn-text);
  background: var(--nn-deep);
}
.nav-link.active,
.nav-group > summary.active {
  color: var(--nn-cyan);
  background: var(--nn-deep);
  box-shadow: inset 1px 0 0 var(--nn-cyan);
}
.nav-items .nav-link.active {
  margin-left: -11px;
  padding-left: 21px;
}
.nav-link.active svg.i {
  color: var(--nn-cyan);
}
.nav-overview {
  color: var(--nn-muted);
  font-size: 13.5px;
}
.nav .nn-chip {
  height: 18px;
  padding: 0 6px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

/* small parts */
.chip-all {
  color: var(--nn-magenta-hi) !important;
  background: rgba(255, 46, 136, 0.1) !important;
}
.prose .nn-chip {
  height: 20px;
  padding: 0 7px;
  margin: 2px 3px 2px 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
.ftag {
  display: inline-block;
  font: 600 11.5px/1.6 var(--nn-font-mono);
  letter-spacing: 0.08em;
  padding: 0 6px;
  color: var(--fc);
  border: 1px solid var(--fc);
}

/* ---------------------------------------------------------------- page head */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font: 500 12px/1.4 var(--nn-font-mono);
  letter-spacing: 0.04em;
  color: var(--nn-muted);
  margin-bottom: 24px;
}
.crumbs a {
  color: var(--nn-muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--nn-cyan);
}
.crumbs .sep {
  color: var(--nn-faint);
}
.crumbs [aria-current] {
  color: var(--nn-text-2);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 14px;
  color: var(--nn-cyan);
}
.eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: currentColor;
}
.page-head {
  position: relative;
  padding-bottom: 22px;
  margin-bottom: 6px;
}
.page-head h1 {
  margin: 0;
  font-family: var(--nn-font-display);
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.1rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--nn-text);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--nn-cyan) 0 64px, var(--nn-line) 64px);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 18px;
  font: 500 12.5px/1.4 var(--nn-font-mono);
  color: var(--nn-muted);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.meta-item svg.i {
  width: 15px;
  height: 15px;
}
.toc-mobile {
  display: none;
}

/* ---------------------------------------------------------------- the text */
.prose {
  padding-top: 6px;
}
.prose > :first-child {
  margin-top: 20px;
}
.prose p {
  margin: 0 0 16px;
}
.prose h2,
.prose h3,
.prose h4 {
  position: relative;
  color: var(--nn-text);
  text-wrap: balance;
}
.prose h2 {
  margin: 56px 0 16px;
  font-family: var(--nn-font-display);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.prose h3 {
  margin: 36px 0 12px;
  font-family: var(--nn-font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.2;
  font-weight: 700;
}
.prose h4 {
  margin: 26px 0 8px;
  font: 600 16.5px/1.35 var(--nn-font-text);
}
.anchor {
  position: absolute;
  left: -26px;
  top: 0.05em;
  width: 22px;
  text-align: center;
  font: 500 0.8em var(--nn-font-mono);
  color: var(--nn-faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--nn-dur-fast);
}
.prose h2:hover .anchor,
.prose h3:hover .anchor,
.prose h4:hover .anchor,
.anchor:focus {
  opacity: 1;
}
.anchor:hover {
  color: var(--nn-cyan);
}
.prose a {
  color: var(--nn-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  text-decoration-color: var(--nn-cyan);
}
.prose a.ext::after {
  content: "\2197";
  font-size: 0.8em;
  margin-left: 2px;
}
.prose strong {
  color: var(--nn-text);
  font-weight: 600;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose li > ul,
.prose li > ol {
  margin: 6px 0 4px;
}
.prose ul > li::marker {
  color: var(--nn-cyan);
  content: "\25AA  ";
}
.prose ol > li::marker {
  color: var(--nn-cyan);
  font: 600 0.88em var(--nn-font-mono);
}
.prose hr {
  border: 0;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, var(--nn-cyan) 0 48px, var(--nn-line) 48px);
}
.prose blockquote {
  margin: 20px 0;
  padding: 2px 0 2px 18px;
  border-left: 1px solid var(--nn-cyan);
  color: var(--nn-text-2);
}
.prose code {
  font: 500 0.88em var(--nn-font-mono);
  color: var(--nn-cyan-hi);
  background: var(--nn-panel);
  border: 1px solid var(--nn-line-strong);
  padding: 1px 5px;
  white-space: nowrap;
}
.prose pre.code {
  margin: 18px 0;
  padding: 14px 18px;
  overflow-x: auto;
  background: var(--nn-deep);
  border: 1px solid var(--nn-line);
  font: 500 13.5px/1.6 var(--nn-font-mono);
}
.prose pre.code code {
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
}
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 7px 2px;
  font: 600 12.5px/1.6 var(--nn-font-mono);
  text-align: center;
  color: var(--nn-text);
  background: var(--nn-raised);
  border: 1px solid var(--nn-line-strong);
  border-bottom-color: var(--nn-faint);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  vertical-align: 1px;
  white-space: nowrap;
}
.kbd-plus {
  margin: 0 3px;
  color: var(--nn-muted);
}
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* tables: a cut frame around a scrolling box */
.table-box {
  --p-c: var(--nn-cut-sm);
  --p-bg: var(--nn-deep);
  margin: 22px 0 26px;
}
.table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}
.prose th {
  text-align: left;
  font: 500 var(--nn-text-hud-sm) / 1.4 var(--nn-font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nn-muted);
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--nn-line-strong);
  vertical-align: bottom;
}
.prose thead th:first-child {
  padding-left: 18px;
}
.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--nn-line);
  vertical-align: top;
  color: var(--nn-text-2);
}
.prose td:first-child {
  padding-left: 18px;
}
.prose tbody tr:last-child td,
.prose tbody tr:last-child th {
  border-bottom: 0;
}
.prose tbody tr:hover td {
  background: var(--nn-panel);
}
.prose td strong {
  font-weight: 600;
  color: var(--nn-text);
}
.prose .al-right {
  text-align: right;
}
.prose .al-center {
  text-align: center;
}
.table-facts th[scope="row"] {
  width: 52%;
  padding: 10px 14px 10px 18px;
  text-transform: none;
  letter-spacing: 0;
  font: 400 14.5px/1.5 var(--nn-font-text);
  color: var(--nn-text-2);
  border-bottom: 1px solid var(--nn-line);
  vertical-align: top;
}
.table-facts td {
  color: var(--nn-text);
}
.table-cars td:first-child {
  min-width: 230px;
}
.table-ranks td:last-child {
  min-width: 240px;
}

/* callouts: a line on the left in the callout's colour; warnings get the hazard stripe (yellow only there) */
.callout {
  --cc: var(--nn-cyan);
  --cb: rgba(0, 229, 255, 0.05);
  position: relative;
  margin: 22px 0;
  padding: 14px 18px 14px 20px;
  background: var(--cb);
  border: 1px solid var(--nn-line);
  border-left: 2px solid var(--cc);
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font: 500 var(--nn-text-hud) / 1.3 var(--nn-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cc);
}
.callout-title svg.i {
  width: 16px;
  height: 16px;
}
.callout-body > :last-child {
  margin-bottom: 0;
}
.callout-body p {
  margin-bottom: 10px;
}
.callout-tip,
.callout-draft {
  --cc: var(--nn-magenta-hi);
  --cb: rgba(255, 46, 136, 0.06);
}
.callout-warning,
.callout-soon {
  --cc: var(--nn-yellow);
  --cb: rgba(244, 228, 9, 0.06);
}
.callout-warning {
  padding-left: 30px;
  border-left: 0;
  border-color: rgba(244, 228, 9, 0.35);
}
.callout-warning::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: var(--nn-grad-hazard);
}
.callout-danger {
  --cc: var(--nn-danger);
  --cb: rgba(255, 59, 92, 0.06);
}
.callout-ok {
  --cc: var(--nn-success);
  --cb: rgba(61, 255, 162, 0.05);
}
.callout-example {
  --cc: #a995ff;
  --cb: rgba(122, 92, 255, 0.07);
}

/* cards: a cut panel with a 1 px line (the kit's .nn-panel) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.card {
  --p-bg: var(--nn-deep);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 116px;
  padding: 18px 42px 18px 20px;
  text-decoration: none !important;
  color: var(--nn-text);
  transition: transform var(--nn-dur-fast) var(--nn-ease-out);
}
.card::before,
.card::after {
  transition: background var(--nn-dur-base) var(--nn-ease-out);
}
.card:hover {
  --p-line: var(--nn-cyan);
  --p-bg: var(--nn-panel);
}
.card-icon {
  color: var(--nn-cyan);
  margin-bottom: 4px;
}
.card-icon svg.i {
  width: 24px;
  height: 24px;
}
.card-title {
  font: 700 17px/1.25 var(--nn-font-display);
  color: var(--nn-text);
}
.card-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--nn-text-2);
}
.card-arrow {
  position: absolute;
  top: 18px;
  right: 16px;
  color: var(--nn-muted);
  transition: transform var(--nn-dur-base) var(--nn-ease-out), color var(--nn-dur-base);
}
.card:hover .card-arrow {
  color: var(--nn-cyan);
  transform: translateX(3px);
}

/* the RP terms */
.term {
  --p-bg: var(--nn-deep);
  margin: 18px 0;
  padding: 20px 22px 8px;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.term-abbr {
  flex: none;
  min-width: 78px;
  padding: 7px 10px 6px;
  text-align: center;
  font: 900 22px/1 var(--nn-font-display);
  letter-spacing: 0.02em;
  color: var(--nn-on-cyan) !important;
  text-decoration: none !important;
  background: var(--nn-cyan);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.term-names {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.term-full {
  font: 500 var(--nn-text-hud-sm) / 1.3 var(--nn-font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nn-muted);
}
.term-ru {
  font: 700 18px/1.25 var(--nn-font-display);
  color: var(--nn-text);
}
.term-body p {
  margin-bottom: 12px;
}

/* numbered rules */
.rule {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--nn-line);
}
.rule-num {
  align-self: start;
  padding: 5px 0 4px;
  text-align: center;
  font: 600 13px/1.4 var(--nn-font-mono);
  color: var(--nn-cyan) !important;
  text-decoration: none !important;
  background: rgba(0, 229, 255, 0.08);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.rule-body > p:last-of-type {
  margin-bottom: 10px;
}
.rule-penalty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1.4 var(--nn-font-mono);
  color: var(--nn-magenta-hi);
  padding: 4px 10px;
  background: rgba(255, 46, 136, 0.08);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.rule-penalty svg.i {
  width: 14px;
  height: 14px;
}

/* step lists */
.steps ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}
.steps ol > li {
  counter-increment: step;
  position: relative;
  padding: 3px 0 16px 52px;
  margin: 0;
}
.steps ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  font: 600 12.5px/1 var(--nn-font-mono);
  color: var(--nn-on-cyan);
  background: var(--nn-cyan);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.steps ol > li::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 4px;
  width: 1px;
  background: var(--nn-line-strong);
}
.steps ol > li:last-child::after {
  display: none;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 28px;
}

/* previous / next */
.prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 60px 0 8px;
}
.pn {
  --p-bg: var(--nn-deep);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  text-decoration: none;
}
.pn::before,
.pn::after {
  transition: background var(--nn-dur-base) var(--nn-ease-out);
}
.pn:hover {
  --p-line: var(--nn-cyan);
  --p-bg: var(--nn-panel);
}
.pn-next {
  text-align: right;
  align-items: flex-end;
}
.pn-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nn-muted);
}
.pn-label svg.i {
  width: 14px;
  height: 14px;
}
.pn-title {
  font: 700 17px/1.3 var(--nn-font-display);
  color: var(--nn-text);
}
.pn-empty {
  visibility: hidden;
}

/* the contents */
.toc-title {
  margin: 8px 0 12px;
  color: var(--nn-muted);
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--nn-line);
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--nn-muted);
  text-decoration: none;
  border-left: 1px solid transparent;
  transition: color var(--nn-dur-fast), border-color var(--nn-dur-fast);
}
.toc .toc-l3 a {
  padding-left: 26px;
  font-size: 13px;
}
.toc a:hover {
  color: var(--nn-text);
}
.toc a.active {
  color: var(--nn-cyan);
  border-left-color: var(--nn-cyan);
}

/* footer */
.footer {
  margin-top: 44px;
  padding: 24px 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--nn-muted);
  border-top: 1px solid var(--nn-line);
}
.footer p {
  margin: 0 0 8px;
}
.footer-meta {
  font: 500 12px var(--nn-font-mono);
  color: var(--nn-faint);
}

/* ---------------------------------------------------------------- the home page */
.main-home {
  display: block;
  padding: 0 40px 40px 52px;
}
.home {
  max-width: 1120px;
}
.hero {
  position: relative;
  margin: 0 0 8px;
  padding: 72px 0 40px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 -40px 0 -52px;
  z-index: -1;
  background: var(--nn-grad-grid);
  background-size: 48px 48px;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-kicker {
  color: var(--nn-cyan);
}
.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  background: currentColor;
  vertical-align: 0.05em;
}
.hero-title {
  margin: 18px 0 0;
  font-family: var(--nn-font-display);
  font-size: clamp(2.6rem, 1.5rem + 4.8vw, 5.6rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: var(--nn-text-display-tracking);
  text-transform: uppercase;
  color: var(--nn-text);
}
.hero-title .glow {
  color: var(--nn-cyan-hi);
  text-shadow: var(--nn-glow-text-cyan);
}
.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: var(--nn-text-body-lg);
  line-height: var(--nn-text-body-lg-line);
  color: var(--nn-text-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.home .nn-btn {
  text-decoration: none;
}
.home-section {
  margin-top: 48px;
}
.home h2 {
  position: relative;
  margin: 52px 0 6px;
  font-family: var(--nn-font-display);
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--nn-text);
}
.home h2 .anchor {
  display: none;
}
.home .prose > p {
  max-width: 780px;
  color: var(--nn-text-2);
}
.home .cards {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 14px;
  margin: 22px 0 8px;
}
.quick-item {
  --p-bg: var(--nn-deep);
  padding: 18px 20px;
}
.quick-item b {
  display: block;
  margin-bottom: 8px;
  font: 600 1.7rem/1 var(--nn-font-mono);
  color: var(--nn-cyan);
}
.quick-item > span {
  display: block;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--nn-text-2);
}
.recent h2 {
  margin-top: 56px;
}
.recent-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0 28px;
}
.recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--nn-line);
}
.recent-list a {
  color: var(--nn-text);
  text-decoration: none;
}
.recent-list a:hover {
  color: var(--nn-cyan);
}
.recent-list time {
  flex: none;
  font: 500 12px var(--nn-font-mono);
  color: var(--nn-muted);
}

/* 404 */
.notfound {
  padding-top: 40px;
}
.nf-code {
  font: 900 clamp(5rem, 3rem + 8vw, 9rem) / 0.9 var(--nn-font-display);
  color: var(--nn-text);
}
.notfound h1 {
  font: 800 clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem) / 1.05 var(--nn-font-display);
  text-transform: uppercase;
  color: var(--nn-text);
}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1260px) {
  .main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .toc-col {
    display: none;
  }
  .toc-mobile {
    display: block;
    margin: 20px 0 0;
    border: 1px solid var(--nn-line);
    background: var(--nn-deep);
  }
  .toc-mobile > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    color: var(--nn-text-2);
  }
  .toc-mobile > summary::-webkit-details-marker {
    display: none;
  }
  .toc-mobile[open] > summary .chev {
    transform: rotate(90deg);
  }
  .toc-mobile .toc {
    padding: 0 14px 12px;
  }
  .toc-mobile .toc-title {
    display: none;
  }
}
@media (max-width: 1080px) {
  .top-links {
    display: none;
  }
}
@media (max-width: 960px) {
  :root {
    --top-h: 58px;
  }
  .layout {
    display: block;
  }
  .icon-btn {
    display: inline-flex;
  }
  .topbar {
    gap: 10px;
    padding: 0 12px;
  }
  .brand {
    margin-right: auto;
  }
  .search {
    display: none;
    position: fixed;
    top: calc(var(--top-h) + 8px);
    left: 12px;
    right: 12px;
    max-width: none;
    z-index: 70;
  }
  .search-open .search {
    display: block;
  }
  .search-results {
    width: 100%;
  }
  .search-kbd {
    display: none;
  }
  .sidebar {
    position: fixed;
    z-index: 55;
    top: var(--top-h);
    left: 0;
    bottom: 0;
    height: auto;
    width: min(86vw, 330px);
    background: var(--nn-void);
    border-right: 1px solid var(--nn-line-strong);
    transform: translateX(-102%);
    transition: transform var(--nn-dur-base) var(--nn-ease-out);
    padding-bottom: 60px;
  }
  .nav-open .sidebar {
    transform: none;
    box-shadow: 30px 0 60px rgba(0, 0, 0, 0.6);
  }
  .scrim {
    position: fixed;
    inset: var(--top-h) 0 0 0;
    z-index: 50;
    background: rgba(7, 8, 12, 0.7);
  }
  .nav-open .scrim {
    display: block;
  }
  .main,
  .main-home {
    padding: 22px 16px 32px;
  }
  .hero::before {
    inset: 0 -16px;
  }
  .prose h2 .anchor,
  .prose h3 .anchor {
    display: none;
  }
  .hero {
    padding-top: 40px;
  }
}
@media (max-width: 560px) {
  .brand-logo {
    height: 28px;
  }
  .brand .nn-chip {
    display: none;
  }
  .langs {
    display: none;
  }
  .prose h2 {
    margin-top: 44px;
  }
  .prevnext {
    grid-template-columns: 1fr;
  }
  .pn-next {
    text-align: left;
    align-items: flex-start;
  }
  .prose table {
    font-size: 13.5px;
  }
  .prose th,
  .prose td {
    padding: 8px 10px;
  }
  .prose td:first-child,
  .prose thead th:first-child {
    padding-left: 14px;
  }
  .term-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .rule {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .rule-num {
    justify-self: start;
    padding: 3px 10px;
  }
  .cards,
  .home .cards {
    grid-template-columns: 1fr;
  }
  .hero-actions .nn-btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .topbar,
  .sidebar,
  .toc-col,
  .toc-mobile,
  .prevnext,
  .scrim {
    display: none !important;
  }
  .layout,
  .main {
    display: block;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* the kit's buttons inside the text keep their own colours */
.prose a.nn-btn,
.home a.nn-btn {
  color: var(--b-fg);
  text-decoration: none;
}
.hero-title .glow {
  white-space: nowrap;
}

/* an old anchor kept for links made before a rename (#vdm: the term is DB now) */
.anchor-alias {
  height: 0;
  overflow: hidden;
}
