/* NZXT-ESC FAQ (/faq/, /<code>/faq/), rendered by functions/faq and
   functions/[lang]/faq (server/faq/). Not part of the Vite bundle: copied
   verbatim to dist/faq.css. Same visual family as public/gallery.css: dark
   shell, DMSans, purple accent, squared corners everywhere except small dots.
   Layout "A" from the 2026-09-29 design demos: sticky topics, content, rail. */

@font-face {
  font-family: 'DMSans';
  src: url('/fonts/DMSans-Variable.ttf') format('truetype-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0e;
  --surface: #121216;
  --surface-2: #18181d;
  --surface-3: #202027;
  --line: #26262d;
  --line-2: #3a3a43;
  --text: #ececf1;
  --muted: #a1a1ad;
  --muted-2: #7c7c88;
  --accent: #a855f7;
  --accent-2: #c084fc;
  --accent-ink: #faf5ff;
  --ok: #4ade80;
  --no: #f87171;
  --warn: #fbbf24;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 DMSans, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
button, input { font: inherit; color: inherit; }
[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.f-i { flex: none; display: block; }
.f-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Header / footer ---------- */
.f-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 24px;
  background: rgba(11, 11, 14, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.f-brand { display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.f-brand:hover { text-decoration: none; }
.f-brand b { font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-brand small { color: var(--muted); font-size: 11px; }
.f-nav { display: flex; align-items: center; gap: 4px; }
.f-nav > a:not(.f-btn) { display: inline-flex; padding: 8px 10px; color: var(--muted); }
.f-nav > a:not(.f-btn):hover, .f-nav > a[aria-current] { color: var(--text); text-decoration: none; }
.f-nav > a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.f-lang { position: relative; margin: 0 4px; }
.f-lang summary { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.f-lang summary::-webkit-details-marker { display: none; }
.f-lang[open] summary { color: var(--text); background: var(--surface-2); }
.f-lang ul { position: absolute; inset-inline-end: 0; top: 38px; z-index: 30; width: 230px; max-height: min(70vh, 460px); margin: 0; padding: 6px; overflow: auto; list-style: none; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.f-lang li a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--muted); font-size: 13px; }
.f-lang li a img { width: 20px; height: 14px; object-fit: cover; }
.f-lang li a small { margin-inline-start: auto; color: var(--muted-2); }
.f-lang li a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.f-lang li a[aria-current] { color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
[dir='rtl'] .f-lang li a[aria-current] { box-shadow: inset -3px 0 0 var(--accent); }
.f-foot {
  max-width: var(--max); margin: 56px auto 0; padding: 24px;
  border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.f-foot p { margin: 0 0 6px; max-width: 720px; }
.f-foot a { color: var(--muted); }
.f-foot nav { display: flex; align-items: center; gap: 16px; }

/* ---------- Buttons ---------- */
.f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.f-btn:hover { background: var(--surface-3); text-decoration: none; }
.f-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.f-btn--primary:hover { background: #9333ea; border-color: #9333ea; }
.f-btn--small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.f-btn--block { display: flex; width: 100%; margin-top: 10px; white-space: normal; text-align: center; }
.f-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }

/* ---------- Head ---------- */
.f-wrap { max-width: var(--max); margin: 0 auto; padding: 24px 24px 0; }
.f-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.f-crumbs li + li::before { content: '›'; margin-inline-end: 6px; color: var(--muted-2); }
.f-crumbs a { color: var(--muted); }
.f-crumbs [aria-current] { color: var(--text); }
.f-eyebrow { margin: 0 0 12px; color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.f-head { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: end; padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.f-head h1 { font-size: clamp(32px, 4vw, 52px); }
.f-lead { margin: 14px 0 0; max-width: 860px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.f-product { margin: 10px 0 0; max-width: 860px; color: var(--muted-2); font-size: 14px; }
.f-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; color: var(--muted-2); font-size: 13px; }
.f-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--line-2); background: var(--surface); }
.f-search:focus-within { border-color: var(--accent); }
.f-search .f-i { color: var(--muted); }
.f-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.f-search input::-webkit-search-cancel-button { filter: invert(0.7); }
.f-search kbd { padding: 2px 6px; border: 1px solid var(--line-2); color: var(--muted-2); font: 12px ui-monospace, monospace; }
.f-search-status { margin: 10px 0 0; min-height: 20px; color: var(--muted); font-size: 13px; }

/* ---------- Three columns ---------- */
.f-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 32px; margin-top: 28px; }
.f-side, .f-rail { position: sticky; top: 84px; align-self: start; display: grid; gap: 12px; }
/* One shrinkable column: a panel can never be wider than the rail (it used to overflow and look cut off). */
.f-rail { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 100px); overflow-x: hidden; overflow-y: auto; scrollbar-width: none; }
/* The rail still scrolls with the mouse wheel when it is taller than the screen; no visible bar. */
.f-rail::-webkit-scrollbar { display: none; }
.f-content { min-width: 0; }
.f-panel { padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.f-panel p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.f-panel__title { display: block; margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.f-toc { display: grid; gap: 2px; }
.f-toc a { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.3; border: 1px solid transparent; }
.f-toc a small { margin-inline-start: auto; color: var(--muted-2); font-size: 12px; }
.f-toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.f-toc a.is-active { background: var(--surface-2); border-color: var(--line-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
[dir='rtl'] .f-toc a.is-active { box-shadow: inset -3px 0 0 var(--accent); }
.f-pop { margin: 0; padding: 0; list-style: none; }
.f-pop a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; line-height: 1.4; }
.f-pop li:last-child a { border-bottom: 0; }
.f-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.f-dcard { display: block; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.f-dcard:hover { border-color: var(--line-2); text-decoration: none; }
.f-dcard__m { display: grid; place-items: center; aspect-ratio: 1; padding: 13%; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 42%, rgba(168, 85, 247, 0.1), transparent 55%), #0e0e12; }
.f-dcard__m img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px #1d1d23, 0 0 0 7px #34343d; }
.f-dcard__t { display: block; padding: 7px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Start card ---------- */
.f-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); margin-bottom: 40px; border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(168, 85, 247, 0.14), transparent 60%), var(--surface); }
.f-start__txt { padding: 24px; }
.f-start h2 { margin: 10px 0 8px; font-size: 24px; }
.f-start p { margin: 0 0 14px; color: var(--muted); }
.f-start__auto { margin: 14px 0 0 !important; font-size: 14px; }
.f-start__vid { display: grid; place-items: center; border-inline-start: 1px solid var(--line-2); background: #000; }
.f-start__vid video { display: block; width: 100%; height: 100%; object-fit: contain; }
.f-badge { display: inline-flex; padding: 3px 7px; border: 1px solid var(--line-2); background: var(--bg); color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.f-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; }
.f-steps li { counter-increment: s; padding: 5px 9px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); font-size: 12px; }
.f-steps li::before { content: counter(s) '. '; color: var(--accent-2); font-weight: 800; }

/* ---------- Setup dialog (guide "Quick start", same content as the gallery's) ---------- */
.f-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.f-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.f-dialog h2 { margin: 0 0 8px; padding-inline-end: 40px; font-size: 24px; }
.f-dialog__close { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
.f-dialog__close button { width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 20px; line-height: 1; }
.f-dialog__lead { margin: 0; color: var(--muted); }
.f-dialog__steps { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.f-dialog__step { padding: 16px; border: 1px solid var(--line); background: var(--bg); }
.f-dialog__step h3 { margin: 0 0 6px; font-size: 16px; }
.f-dialog__step > p { margin: 0 0 12px; color: var(--muted); }
.f-dialog__substeps { margin: 0 0 12px; padding-inline-start: 20px; color: var(--muted); }
.f-dialog__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }

/* ---------- Copy box ---------- */
.f-copy { display: flex; margin: 4px 0 12px; }
.f-copy code { flex: 1; min-width: 0; direction: ltr; unicode-bidi: isolate; text-align: left; padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line-2); border-inline-end: 0; background: var(--bg); color: var(--text); font-size: 14px; }
.f-copy button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--surface-3); cursor: pointer; font-size: 13px; font-weight: 700; }
.f-copy button:hover { background: var(--line-2); }
.f-copy__label { margin: 0 0 4px !important; font-size: 13px; }

/* ---------- Categories and questions ---------- */
.f-cat, .f-cmp { margin-bottom: 40px; }
.f-cat__h { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.f-cat__ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--accent-2); }
.f-cat__h h2 { font-size: 22px; }
.f-cat__intro { margin: 0 0 14px; color: var(--muted); }
.f-qa { border: 1px solid var(--line); background: var(--surface); }
.f-qa + .f-qa { border-top: 0; }
.f-qa summary { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; cursor: pointer; list-style: none; }
.f-qa summary::-webkit-details-marker { display: none; }
.f-qa summary:hover { background: var(--surface-2); }
.f-qa summary h3 { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.f-qa__chev { margin-top: 2px; color: var(--muted-2); transition: transform 0.15s; }
.f-qa[open] { background: var(--surface-2); }
.f-qa[open] .f-qa__chev { transform: rotate(180deg); color: var(--accent-2); }
.f-qa__body { padding: 0 16px 16px; color: var(--muted); line-height: 1.7; }
.f-qa__body p { margin: 0 0 10px; }
.f-qa__body ol, .f-qa__body ul { margin: 0 0 12px; padding-inline-start: 22px; }
.f-qa__body li { margin: 2px 0; }
.f-qa__body strong { color: var(--text); }
.f-qa__body :not(pre) > code { padding: 1px 5px; background: var(--bg); border: 1px solid var(--line); }
.f-qa.is-hidden { display: none; }
mark { background: rgba(168, 85, 247, 0.35); color: var(--text); }

/* ---------- Tables ---------- */
.f-scroll { overflow-x: auto; }
.f-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.f-table th, .f-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.f-table th { background: var(--surface-2); color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.f-table--models { margin-bottom: 16px; }
.f-table--cmp td:not(:first-child), .f-table--cmp th:not(:first-child) { width: 120px; text-align: center; }
.f-m { font-weight: 800; }
.f-m--yes { color: var(--ok); }
.f-m--no { color: var(--no); }
.f-m--partial { color: var(--warn); }
.f-cmp__more summary { padding: 12px 14px; border: 1px solid var(--line); border-top: 0; background: var(--surface); color: var(--accent-2); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.f-cmp__more summary::-webkit-details-marker { display: none; }
.f-cmp__more[open] summary { display: none; }
.f-cmp__more .f-table { border-top: 0; }
.f-cmp__more thead { display: none; }
.f-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Guide links on the hub ---------- */
.f-qa__badges { display: flex; gap: 6px; margin-top: 2px; text-decoration: none; cursor: pointer; }
.f-qa__badges:hover { text-decoration: none; }
.f-qa__badges:hover .f-tag { border-color: currentColor; }
.f-tag { display: inline-flex; align-items: center; padding: 2px 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.f-tag--video { color: var(--ok); }
/* Answer footer: "Read the full guide" on the left (when there is a guide), "Was this helpful?" on the right. */
.f-qa__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.f-qa__foot:not(:has(.f-qa__more)):has(> .f-helpful[hidden]) { display: none; }
.f-qa__foot .f-helpful { margin: 0 0 0 auto; }
[dir='rtl'] .f-qa__foot .f-helpful { margin: 0 auto 0 0; }
.f-qa__more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 !important; }
.f-qa__more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.f-qa__more small { color: var(--muted-2); font-size: 12px; }
.f-i--next { transform: rotate(-90deg); }
.f-i--back { transform: rotate(90deg); }
[dir='rtl'] .f-i--next { transform: rotate(90deg); }
[dir='rtl'] .f-i--back { transform: rotate(-90deg); }

/* ---------- Guide page ---------- */
.f-guide { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 40px; margin-top: 8px; }
.f-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.f-qlist { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.f-qlist a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.4; }
.f-qlist a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.f-qlist a[aria-current] { background: var(--surface-2); border-color: var(--line-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
[dir='rtl'] .f-qlist a[aria-current] { box-shadow: inset -3px 0 0 var(--accent); }
.f-article { min-width: 0; max-width: 860px; }
.f-article h1 { font-size: clamp(30px, 3.4vw, 44px); }
.f-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }
.f-tldr { margin: 24px 0 0; padding: 18px 20px; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--accent); background: var(--surface); }
.f-tldr strong { display: block; margin-bottom: 6px; color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.f-tldr p { margin: 0; font-size: 17px; line-height: 1.65; }
.f-tldr .f-copy { margin: 12px 0 0; }
.f-prose { margin-top: 8px; }
.f-prose > h2, .f-related h2, .f-gdesigns h2 { margin: 40px 0 12px; font-size: 26px; }
.f-prose > p, .f-prose > ul, .f-prose > ol { color: #cfcfd8; font-size: 16px; line-height: 1.75; }
.f-prose > ul, .f-prose > ol { padding-inline-start: 24px; }
.f-prose > ol.f-gsteps { padding: 0; }
.f-prose > .f-cmp { margin-top: 40px; }
.f-prose code { padding: 1px 5px; background: var(--bg); border: 1px solid var(--line); }
.f-prose .f-copy code { padding: 9px 12px; }
.f-prose strong { color: var(--text); }
.f-figure { margin: 20px 0; }
.f-figure img, .f-gstep__fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); background: #000; }
.f-figure figcaption { margin-top: 8px; color: var(--muted-2); font-size: 13px; }
/* Video block: chapters under the player (the videos have no speech, the chapter labels are the text equivalent). */
.f-video { margin: 22px 0; border: 1px solid var(--line-2); background: var(--surface); }
.f-video__stage { position: relative; }
.f-video video { display: block; width: 100%; height: auto; background: #000; cursor: pointer; }
/* Our own play button: the browser's is faint on dark screen recordings. */
.f-video video::-webkit-media-controls-overlay-play-button, .f-video video::-webkit-media-controls-start-playback-button { display: none; }
.f-video__play { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.35); background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55); cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.f-video__play:hover { background: #9333ea; transform: scale(1.06); }
.f-video__play[hidden] { display: none; }
.f-video figcaption { display: grid; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; }
.f-video figcaption strong { color: var(--text); font-size: 15px; }
.f-chapters { padding: 4px 16px 14px; }
.f-chapters__title { display: block; margin: 4px 0 8px; color: var(--muted-2); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.f-chapters ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.f-chapters button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.f-chapters button:hover { border-color: var(--line-2); background: var(--surface-2); }
.f-chapters button.is-active { border-color: var(--accent); }
.f-chapters time { flex: none; color: var(--accent-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }

/* "Was this helpful" (shown by faq.js). */
.f-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.f-helpful__btns { display: flex; gap: 3px; }
.f-helpful > [hidden] { display: none; }
.f-helpful button { min-width: 64px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.f-helpful button:hover:not(:disabled) { background: var(--line-2); }
.f-helpful button:disabled { cursor: default; opacity: 0.55; }
.f-helpful button.is-picked { border-color: var(--accent); opacity: 1; }
.f-helpful__thanks { margin: 0 !important; color: var(--ok); font-size: 13px; }
.f-article > .f-helpful { margin-top: 32px; padding: 16px; border: 1px solid var(--line); background: var(--surface); }

.f-gsteps { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; counter-reset: gs; }
.f-gstep { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 0.9fr); gap: 18px; align-items: start; padding: 18px; border: 1px solid var(--line); background: var(--surface); counter-increment: gs; }
.f-gstep::before { content: counter(gs); display: grid; place-items: center; width: 40px; height: 40px; background: rgba(168, 85, 247, 0.16); color: var(--accent-2); font-weight: 800; font-size: 18px; }
.f-gstep h3 { margin: 0 0 6px; font-size: 18px; }
.f-gstep p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.f-gstep__fig { margin: 0; }
.f-gstep:not(:has(.f-gstep__fig)) { grid-template-columns: 44px minmax(0, 1fr); }
.f-note { display: grid; gap: 4px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line-2); border-inline-start: 3px solid var(--accent-2); background: var(--surface); }
.f-note strong { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.f-note p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.f-note--warning { border-color: rgba(251, 191, 36, 0.35); border-inline-start-color: var(--warn); background: rgba(251, 191, 36, 0.06); }
.f-note--warning strong { color: var(--warn); }
.f-note--info { border-inline-start-color: var(--muted); }
.f-note--info strong { color: var(--muted); }
.f-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.f-related__grid a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.f-related__grid a:hover { border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.f-dgrid--wide { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.f-otp { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.f-otp a { display: block; padding: 6px 10px; border-inline-start: 2px solid var(--line); color: var(--muted); font-size: 13px; }
.f-otp a:hover, .f-otp a.is-active { border-inline-start-color: var(--accent); color: var(--text); text-decoration: none; }
.f-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.f-langs a { padding: 4px 8px; border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; font-weight: 700; }
.f-langs a[aria-current] { border-color: var(--accent); color: var(--text); }
.f-rail .f-copy { margin-top: 10px; }
.f-rail .f-copy__label { margin: 14px 0 6px !important; color: var(--muted); }
.f-rail .f-copy__label + .f-copy { margin-top: 0; }

/* ---------- Error page ---------- */
.f-error { padding-top: 80px; padding-bottom: 80px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .f-guide { grid-template-columns: 230px minmax(0, 1fr); }
  .f-guide .f-rail { grid-column: 2; }
  .f-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .f-rail { position: static; grid-column: 2; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 960px) {
  .f-head, .f-layout, .f-start, .f-guide { grid-template-columns: minmax(0, 1fr); }
  .f-side { grid-template-columns: minmax(0, 1fr); }
  .f-guide .f-side { order: 3; }
  .f-guide .f-rail { grid-column: auto; order: 2; }
  .f-gstep { grid-template-columns: 44px minmax(0, 1fr); }
  .f-gstep__fig { grid-column: 2; }
  .f-related__grid { grid-template-columns: 1fr; }
  .f-side { position: static; }
  /* Topics become one scrollable row so the answers start right below. */
  .f-side .f-panel { padding: 10px; }
  .f-side .f-panel__title { margin-bottom: 6px; }
  .f-toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
  .f-toc a { flex: none; min-height: 34px; border-color: var(--line); white-space: nowrap; }
  .f-toc a small { display: none; }
  .f-rail { grid-column: auto; }
  .f-start__vid { border-inline-start: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 680px) {
  .f-top { padding: 0 16px; }
  .f-nav > a:not(.f-btn) { display: none; }
  .f-brand b { font-size: 13px; letter-spacing: 0.02em; }
  .f-wrap { padding: 16px 16px 0; }
  .f-table--cmp td:not(:first-child), .f-table--cmp th:not(:first-child) { width: 64px; }
  .f-foot { padding: 20px 16px; }
}
@media (max-width: 420px) {
  .f-nav .f-btn--small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .f-qa__chev { transition: none; }
}

/* GitHub Stargazers panel (server/stargazers.ts): same block in the gallery's left column and
   the FAQ's right column. GitHub pictures are people, so they are round; hover is the accent. */
.sg-title { display: flex; align-items: center; gap: 6px; }
.sg-title .sg-star { flex-shrink: 0; color: #fde68a; }
.sg-count { margin-left: auto; color: var(--muted-2); font-weight: 700; letter-spacing: 0; }
.sg-join { margin: -4px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sg-join a { color: var(--accent-2); }
.sg-wall { display: flex; flex-wrap: wrap; gap: 4px; }
.sg-av { display: block; width: 24px; height: 24px; border-radius: 50%; line-height: 0; }
.sg-av img { display: block; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--surface-3); transition: box-shadow 0.15s ease; }
.sg-av:hover img, .sg-av:focus-visible img { box-shadow: 0 0 0 2px var(--accent); }
.sg-av:focus-visible { outline: none; }
