/* LH-2044 User Manual — shared stylesheet (forked from the eSPi manual's, same component vocabulary).
   Palette is lifted from the LH-2044 faceplate: the blue-grey panel, its blue section rules, the cream
   LCD glass (ink #241D12) and the cream switch caps. Europa Grotesk SH Condensed for UI and prose
   (the forge's house face, used by the activation panel), Graph-35 pixel font for the LCD readouts. */


@font-face { font-family: "Europa"; src: url("/fonts/europa-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Europa"; src: url("/fonts/europa-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Graph35"; src: url("/fonts/graph35.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "UnsciiLCD"; src: url("fonts/unscii-lcd.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Bebas"; src: url("/fonts/bebas-neue.woff2") format("woff2"); font-display: swap; }/* ------------------------------------------------------------------ tokens */



:root {
  --bg: #161617;
  --surface: #1e1e1e;
  --surface-2: #262626;
  --surface-3: #333333;
  --manual-slate: #2b2e38;          /* sidebar rail */
  --face: #4f5872;           /* faceplate panel */
  --manual-line: #333333;
  --line-soft: #2a2a2a;
  --manual-text: #cccccc;
  --text-strong: #ececec;
  --text-dim: #8c8c8c;
  --accent: #7d9be0;
  --accent-soft: rgba(125, 155, 224, 0.15);
  --rec: #c0392b;
  --teal: #459a90;
  --amber: #f0a030;
  --lcd-bg: #ecd7a6;
  --lcd-bg-2: #c7ad78;
  --manual-lcd-ink: #241d12;
  --key-top: #ece6d8;
  --key-bot: #c4bba8;
  --key-ink: #2a2a2a;
  --shadow: 0 1px 0 rgba(255,255,255,0.03), 0 10px 30px rgba(0,0,0,0.35);
  --manual-radius: 4px;
  --font: "Europa", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-lcd: "Graph35", "UnsciiLCD", ui-monospace, monospace;
  --topbar-h: 56px;
  --sidebar-w: 272px;
  color-scheme: dark;
}/* Europa has Latin only: CJK and Cyrillic fall through to these per glyph, so Latin words keep the house face. */


:root:lang(zh-Hans) { --font: "Europa", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
:root:lang(zh-Hant) { --font: "Europa", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }
:root:lang(ja) { --font: "Europa", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", "Noto Sans JP", sans-serif; }
:root:lang(ru) { --font: "Europa", "Arial Narrow", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif; }

:root[data-theme="light"] {
  --bg: #f3f1ec;
  --surface: #faf9f6;
  --surface-2: #eeebe4;
  --surface-3: #e2ded4;
  --manual-slate: #e8e5dd;
  --face: #c3c9d6;
  --manual-line: #d8d3c8;
  --line-soft: #e6e2d9;
  --manual-text: #33332f;
  --text-strong: #111110;
  --text-dim: #6f6c64;
  --accent: #3a5aa6;
  --accent-soft: rgba(58, 90, 166, 0.10);
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  color-scheme: light;
}/* ------------------------------------------------------------------ base */



*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--manual-text);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
}
img:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { max-width: 100%; height: auto; }
a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--accent); text-decoration: none; }
a:hover:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }/* Section-title signature: bold first letter, regular rest, blue rule underneath (as on the faceplate). */



h1:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), h2:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), h3:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), h4:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--text-strong); font-weight: 400; line-height: 1.15; letter-spacing: 0.005em; }
h1:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::first-letter, h2:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::first-letter, .card h3:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::first-letter { font-weight: 700; }
h1:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 3.1rem; margin: 0 0 0.2em; }
h2:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  font-size: 2rem;
  margin: 2.6em 0 0.7em;
  padding-bottom: 0.25em;
  display: table;            /* rule hugs the text, like the app */
  border-bottom: 3px solid var(--accent);
}
h3:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 1.4rem; font-weight: 700; margin: 2em 0 0.5em; }
h4:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 1.1rem; font-weight: 700; margin: 1.6em 0 0.4em; color: var(--manual-text); text-transform: uppercase; letter-spacing: 0.08em; }
h2 .anchor, h3 .anchor { opacity: 0; margin-left: 0.35em; color: var(--text-dim); font-weight: 400; font-size: 0.8em; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
p:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), ul:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), ol:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), dl:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), table:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), figure:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), pre:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 0 0 1.1em; }
ul:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), ol:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { padding-left: 1.4em; }
li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 0.25em 0; }
li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::marker { color: var(--text-dim); }
strong:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--text-strong); font-weight: 700; }
hr:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { border: 0; border-top: 1px solid var(--manual-line); margin: 3em 0; }
code:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: var(--surface-3);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}/* ------------------------------------------------------------------ top bar */



.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--manual-line);
}
.brand { display: flex; align-items: baseline; gap: 12px; color: var(--text-strong); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo { font-size: 30px; line-height: 1; color: var(--text-strong); letter-spacing: 0; }
.logo .b { font-family: "Bebas", var(--font); letter-spacing: 0.01em; }
.brand-sub {
  font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--text-dim);
}
.topbar .spacer { flex: 1; }
.search-btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px;
  height: 36px; padding: 0 10px 0 12px;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--manual-line); border-radius: var(--manual-radius);
  font: inherit; font-size: 16px; cursor: pointer;
}
.search-btn:hover { border-color: var(--accent); color: var(--manual-text); }
.search-btn svg:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { flex: none; }
.search-btn .hint { margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--manual-line); border-radius: var(--manual-radius); cursor: pointer;
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--accent); }
.menu-btn { display: none; }
.lang { position: relative; }
.lang-btn {
  height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 9px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--manual-line); border-radius: var(--manual-radius); cursor: pointer;
  font: 700 13px/1 var(--font); letter-spacing: 0.04em;
}
.lang-btn:hover, .lang.open .lang-btn { color: var(--text-strong); border-color: var(--accent); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 70;
  min-width: 150px; padding: 6px;
  background: var(--surface); border: 1px solid var(--manual-line); border-radius: var(--manual-radius); box-shadow: var(--shadow);
  display: none;
}
.lang.open .lang-menu { display: block; }
.lang-menu a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; padding: 7px 10px; border-radius: 3px; color: var(--manual-text); font-size: 16px; white-space: nowrap; }
.lang-menu a:hover:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { background: var(--surface-2); color: var(--text-strong); text-decoration: none; }
.lang-menu a[aria-current]:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--accent); }/* ------------------------------------------------------------------ layout */



.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-h));
}
.sidebar {
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  background: var(--manual-slate);
  border-right: 1px solid var(--manual-line);
  padding: 22px 0 40px;
  scrollbar-width: thin;
}
.nav-group { margin-bottom: 18px; }
.nav-group-title {
  padding: 0 22px 6px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 22px 6px 19px;
  border-left: 3px solid transparent;
  color: var(--manual-text); font-size: 17px; line-height: 1.3;
}
.nav-link:hover { background: rgba(255,255,255,0.04); text-decoration: none; color: var(--text-strong); }
:root[data-theme="light"] .nav-link:hover { background: rgba(0,0,0,0.04); }
.nav-link .num { width: 20px; font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.nav-link.active { border-left-color: var(--accent); background: var(--accent-soft); color: var(--text-strong); }
.nav-link.active .num { color: var(--accent); }
.nav-sub { margin: 2px 0 8px 52px; padding: 0; list-style: none; border-left: 1px solid var(--manual-line); }
.nav-sub a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; padding: 3px 12px; font-size: 15px; color: var(--text-dim); }
.nav-sub a:hover:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), .nav-sub a.current:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--text-strong); text-decoration: none; }
.nav-sub a.current:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { box-shadow: inset 2px 0 0 var(--accent); }

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 800px) 220px;
  gap: 56px;
  justify-content: center;
  padding: 48px 40px 96px;
}
.doc { min-width: 0; }
.doc > :first-child { margin-top: 0; }
.toc { position: sticky; top: calc(var(--topbar-h) + 40px); align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 15px; }
.toc-title { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.toc a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; padding: 3px 0 3px 12px; color: var(--text-dim); border-left: 1px solid var(--manual-line); line-height: 1.35; }
.toc a.l3:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { padding-left: 24px; font-size: 14px; }
.toc a:hover:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--text-strong); text-decoration: none; }
.toc a.active:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--accent); border-left-color: var(--accent); }/* ------------------------------------------------------------------ chapter head */



.chapter-head { margin-bottom: 2.2em; padding-bottom: 1.6em; border-bottom: 1px solid var(--manual-line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
}
.eyebrow img:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { width: 16px; height: 16px; opacity: 0.9; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--manual-text); margin: 0.4em 0 0; max-width: 40em; }
.chapter-head .meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }/* ------------------------------------------------------------------ inline UI vocabulary */



kbd:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em 0.1em;
  font: 700 0.78em/1.35 var(--font);
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--key-ink);
  background: linear-gradient(180deg, var(--key-top), var(--key-bot));
  border: 1px solid #8f8879;
  border-radius: 3px;
  box-shadow: 0 2px 0 #6f6a5e, inset 0 1px 0 rgba(255,255,255,0.6);
  vertical-align: 0.08em;
  white-space: nowrap;
}
.ui {                      /* an on-screen label or button name */
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
}
.ui::before, .ui::after { content: ""; }
.lcd-inline {
  font-family: var(--font-lcd);
  font-size: 0.82em;
  padding: 0.12em 0.45em;
  border-radius: 2px;
  color: var(--manual-lcd-ink);
  background: var(--lcd-bg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
  white-space: pre;
  letter-spacing: 0.04em;
}
.badge {
  display: inline-block;
  padding: 0.1em 0.6em;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--manual-line); border-radius: 99px;
  color: var(--text-dim);
  vertical-align: 0.15em;
  white-space: nowrap;
}
.badge.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }/* ------------------------------------------------------------------ the LCD block */



.lcd-wrap { margin: 1.4em 0 1.6em; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.lcd {
  --cols: 20;
  display: inline-grid;
  padding: 12px 16px;
  min-width: calc(var(--cols) * 0.66em + 32px);
  font-family: var(--font-lcd);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  white-space: pre;
  color: var(--manual-lcd-ink);
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255,255,230,0.35), transparent 55%),
    linear-gradient(180deg, var(--lcd-bg), var(--lcd-bg-2));
  border: 6px solid #111;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #3a3a3a, inset 0 2px 8px rgba(0,0,0,0.35), var(--shadow);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.12);
}
.lcd > span:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; min-height: 1.25em; }
.lcd .blink { animation: lcd-blink 1s steps(1) infinite; }
@keyframes lcd-blink { 50% { opacity: 0; } }
.lcd-caption { font-size: 15px; color: var(--text-dim); max-width: 22em; align-self: center; }/* ------------------------------------------------------------------ steps */



ol.steps:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0 1.6em; }
ol.steps > li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  position: relative; counter-increment: step;
  padding: 0.2em 0 0.9em 3.1em;
  margin: 0;
  border-left: 1px dashed var(--manual-line);
  margin-left: 0.95em;
  padding-left: 2.2em;
}
ol.steps > li:last-child:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { border-left-color: transparent; padding-bottom: 0.2em; }
ol.steps > li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::before {
  content: counter(step);
  position: absolute; left: -0.95em; top: 0.1em;
  width: 1.9em; height: 1.9em;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85em;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}/* ------------------------------------------------------------------ callouts */



.callout {
  position: relative;
  margin: 1.6em 0;
  padding: 16px 20px 16px 22px;
  background: var(--surface-2);
  border: 1px solid var(--manual-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--manual-radius);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title {
  display: block; margin-bottom: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.callout.tip { border-left-color: var(--teal); }
.callout.tip .callout-title { color: var(--teal); }
.callout.warn { border-left-color: var(--amber); }
.callout.warn .callout-title { color: var(--amber); }
.callout.danger { border-left-color: var(--rec); }
.callout.danger .callout-title { color: #e2604f; }/* "From the hardware" — the history/character aside, styled after the faceplate. */


.callout.sp {
  border: 1px solid #5b626b;
  border-left: 4px solid var(--key-bot);
  background: linear-gradient(180deg, #3d434b, #353a41);
  color: #dfe3e8;
}
.callout.sp .callout-title { color: var(--key-top); }
.callout.sp strong:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: #fff; }
:root[data-theme="light"] .callout.sp { background: linear-gradient(180deg, #e6e3da, #dedad0); color: #33332f; border-color: #cfc9bb; border-left-color: #8f8879; }
:root[data-theme="light"] .callout.sp .callout-title { color: #6b6559; }
:root[data-theme="light"] .callout.sp strong:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: #111; }/* The app's sidebar icons are white line art: darken them on the light theme (the coloured LEDs stay as they are). */


:root[data-theme="light"] img[src*="assets/icons/"]:not([src*="/led-"]):not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { filter: invert(1) brightness(0.35); }/* ------------------------------------------------------------------ figures */



figure.shot:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 1.8em 0 2em; }
figure.shot .frame {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--manual-line);
  box-shadow: var(--shadow);
  background: #111;
  cursor: zoom-in;
}
figure.shot img:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; width: 100%; }
figure.shot.narrow:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { max-width: 520px; }
figure.shot.half:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { max-width: 400px; }/* Tall, thin shots (the sidebar) float beside the text that explains them. */


figure.shot.slim:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { float: right; width: 150px; margin: 0.3em 0 1.2em 32px; }
.doc h2:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { clear: both; }
figcaption:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin-top: 10px; font-size: 15px; color: var(--text-dim); line-height: 1.45; }
figcaption strong:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: var(--manual-text); }
.figs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.figs-2 figure.shot:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 0; }/* Numbered hotspots over a screenshot */



.annotated { position: relative; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  font: 700 14px/1 var(--font); color: #fff;
  background: var(--accent); border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  pointer-events: none;
}
ol.legend:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { list-style: none; counter-reset: pin; padding: 0; columns: 2; column-gap: 28px; font-size: 17px; }
ol.legend li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { counter-increment: pin; break-inside: avoid; padding-left: 2.2em; position: relative; margin: 0 0 0.6em; }
ol.legend li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::before {
  content: counter(pin);
  position: absolute; left: 0; top: 0.15em;
  width: 1.45em; height: 1.45em; display: grid; place-items: center;
  font-size: 0.8em; font-weight: 700; color: #fff; background: var(--accent); border-radius: 50%;
}/* ------------------------------------------------------------------ tables / definitions */



.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--manual-line); border-radius: var(--manual-radius); }
table.ref:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { width: 100%; border-collapse: collapse; font-size: 17px; margin: 0; }
table.ref th:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), table.ref td:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { text-align: left; vertical-align: top; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); }
table.ref th:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); font-weight: 400; background: var(--surface-2); border-bottom: 1px solid var(--manual-line); }
table.ref tr:last-child td:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { border-bottom: 0; }
table.ref tbody tr:hover td:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { background: rgba(127,127,127,0.05); }
table.ref td:first-child:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { white-space: nowrap; }
table.ref td.wrap:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { white-space: normal; }

dl.controls:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 1.2em 0 1.6em; }
dl.controls dt:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-weight: 700; color: var(--text-strong); }
dl.controls dd:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 0; }/* Fader map: the 8 performance faders as columns */



ol.fader-map:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  list-style: none; padding: 14px; margin: 1.4em 0 1.8em;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px;
  background: linear-gradient(180deg, #555866, #4e505c);
  border-radius: 6px; border: 1px solid #2a2d33;
  box-shadow: var(--shadow);
  counter-reset: fader;
}
ol.fader-map li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  counter-increment: fader;
  margin: 0; padding: 40px 6px 10px; position: relative;
  min-height: 132px;
  text-align: center; font-size: 14px; line-height: 1.25; color: #e8eaee;
  background: linear-gradient(90deg, transparent 47%, #1b1d21 47%, #1b1d21 53%, transparent 53%) no-repeat center 34px / 100% 54px;
}
ol.fader-map li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::before {
  content: counter(fader);
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  font-weight: 700; font-size: 15px; color: #fff;
}
ol.fader-map li span:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; margin-top: 64px; }
ol.fader-map li.off:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: #9aa1aa; }
ol.fader-map li:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::after {
  content: ""; position: absolute; left: 50%; top: 54px; transform: translateX(-50%);
  width: 34px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #f2f2f2, #b9b9b9);
  box-shadow: 0 2px 3px rgba(0,0,0,0.5);
}
ol.fader-map li.off:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *)::after { opacity: 0.35; }/* ------------------------------------------------------------------ cards (home + chapter grids) */



.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 1.4em 0 2em; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px;
  background: var(--surface-2);
  border: 1px solid var(--manual-line);
  border-radius: 6px;
  color: var(--manual-text);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); background: var(--surface-3); }
.card img:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { width: 34px; height: 34px; margin-bottom: 4px; }
.card h3:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 0; font-size: 1.25rem; font-weight: 400; color: var(--text-strong); }
.card p:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin: 0; font-size: 15px; color: var(--text-dim); line-height: 1.4; }
.card .num { font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }/* ------------------------------------------------------------------ prev / next */



.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4em; padding-top: 2em; border-top: 1px solid var(--manual-line); }
.pager a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; padding: 14px 18px; border: 1px solid var(--manual-line); border-radius: 6px; color: var(--text-strong); font-size: 19px; }
.pager a:hover:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { border-color: var(--accent); text-decoration: none; }
.pager small:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { display: block; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.pager .next { text-align: right; grid-column: 2; }/* ------------------------------------------------------------------ home */



.hero {
  position: relative;
  margin: -48px -40px 40px;
  padding: 88px 40px 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 10%, transparent) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("../img/faceplate-dialled.webp") right -60px center / auto 126.5% no-repeat;
  border-bottom: 1px solid var(--manual-line);
}
.hero-inner { max-width: 560px; }
.content-wrap:has(.home) { grid-template-columns: minmax(0, 1120px); }
.hero .logo { font-size: 104px; color: var(--text-strong); }
.hero .tagline { font-size: 13px; letter-spacing: 0.7em; text-transform: uppercase; color: var(--text-dim); margin: 6px 0 30px; }
.hero h1:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 2.6rem; }
.hero p:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 1.25rem; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--manual-radius);
  font: 700 16px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--text-strong); border-color: var(--manual-line); }
.btn.ghost:hover { border-color: var(--accent); }

.home-section-title { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); margin: 2.4em 0 0.6em; }/* ------------------------------------------------------------------ search palette */



.search-dialog {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: flex-start; justify-content: center;
  padding: 10vh 16px 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
}
.search-dialog.open { display: flex; }
.search-panel {
  width: min(680px, 100%);
  max-height: 72vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--manual-line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}
.search-panel input:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  width: 100%; padding: 18px 20px;
  font: 400 22px var(--font); color: var(--text-strong);
  background: transparent; border: 0; border-bottom: 1px solid var(--manual-line); outline: none;
}
.search-results { overflow-y: auto; padding: 6px; }
.search-results a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) {
  display: block; padding: 10px 14px; border-radius: 4px; color: var(--manual-text);
}
.search-results a:hover:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), .search-results a.sel:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { background: var(--accent-soft); text-decoration: none; }
.search-results .r-title { color: var(--text-strong); font-size: 18px; }
.search-results .r-path { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.search-results .r-snip { font-size: 15px; color: var(--text-dim); line-height: 1.4; margin-top: 2px; }
.search-results mark:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { background: none; color: var(--accent); font-weight: 700; }
.search-empty { padding: 26px; text-align: center; color: var(--text-dim); }
.search-foot { display: flex; gap: 16px; padding: 8px 16px; font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--manual-line); }/* ------------------------------------------------------------------ lightbox */



.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: none; place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { max-width: 100%; max-height: 92vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  background: var(--surface-2);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }/* ------------------------------------------------------------------ responsive */



@media (max-width: 1240px) {
  .content-wrap { grid-template-columns: minmax(0, 800px); }
  .toc { display: none; }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: grid; }
  .sidebar {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0; z-index: 60;
    width: min(320px, 86vw); height: auto;
    transform: translateX(-100%); transition: transform 0.2s ease, visibility 0.2s;
    visibility: hidden;
  }
  body.nav-open .sidebar { transform: none; visibility: visible; box-shadow: 20px 0 50px rgba(0,0,0,0.4); }
  body.nav-open::after { content: ""; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 55; background: rgba(0,0,0,0.5); }
  .content-wrap { padding: 32px 16px 72px; }
  .hero {
    margin: -32px -16px 32px; padding: 48px 16px 40px;
    /* Full-bleed, non-repeating veil: an offset gradient tile left a seam where the screenshot showed through. */
    background:
      linear-gradient(90deg, var(--bg) 0%, var(--bg) 40%, color-mix(in srgb, var(--bg) 82%, transparent) 70%, color-mix(in srgb, var(--bg) 45%, transparent) 100%),
      linear-gradient(0deg, var(--bg) 0%, var(--bg) 28%, transparent 60%),
      url("../img/faceplate-dialled.webp") right -180px top 20px / auto 70% no-repeat;
  }
  .search-btn { min-width: 0; }
  .search-btn .label, .search-btn .hint { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .topbar { gap: 10px; padding: 0 14px; }
  h1:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 2.4rem; }
  h2:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { font-size: 1.65rem; }
  .hero .logo { font-size: 72px; }/* Scale the 20-column LCD with the viewport so every line fits inside the glass. 18.2em covers
     20 cells plus the wider ♪ glyph; 72px = page gutters + LCD padding and bezel. */

  
  .lcd { font-size: min(19px, calc((100vw - 72px) / 18.2)); padding: 10px 12px; min-width: 0; max-width: 100%; }
  .figs-2 { grid-template-columns: 1fr; }/* Too narrow to float beside the table: stack it above the text instead. */

  
  figure.shot.slim:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { float: none; width: 160px; margin: 0 auto 1.6em; text-align: center; }
  ol.legend:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { columns: 1; }
  ol.fader-map:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  dl.controls:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { grid-template-columns: 1fr; gap: 2px; }
  dl.controls dd:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { margin-bottom: 10px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}/* ------------------------------------------------------------------ print */



@media print {
  .topbar, .sidebar, .toc, .pager, .back-to-top, .search-dialog { display: none !important; }
  .layout, .content-wrap { display: block; padding: 0; }
  body { background: #fff; color: #111; font-size: 12pt; }
  h1:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), h2:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *), h3:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: #000; }
  a:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { color: #000; }
  .callout, figure.shot:not(:where(lhs-skip-link, lhs-site-header, lhs-site-footer) *) { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
