/* Q-Expert accent override for help.css — help.css hardcodes
   --color-accent-explorator in a few selectors (help-code .k, help-tip);
   this file repoints those same selectors to --color-accent-expert,
   scoped to .help-page--expert so it never touches help-explorator.html. */
.help-page--expert .help-code .k { color: var(--color-accent-expert); font-weight: 500; }
.help-page--expert .help-tip { border-left-color: var(--color-accent-expert); background: rgba(63, 168, 184, 0.08); }
.help-page--expert .help-tip strong { color: var(--color-accent-expert); }
.help-page--expert .help-card__tag { color: var(--color-accent-expert); }
.help-page--expert .help-steps li::before { background: var(--color-accent-expert); }

/* Screenshots render as plain images — no macOS-window chrome (title bar,
   traffic-light dots). help.css's own .device-frame wraps every shot in a
   light-gray (#f4f4f4) frame meant for full browser/desktop captures; on a
   narrow app-dialog crop that background shows through as a pale strip
   above and beside the image, which read as a rendering bug rather than
   intentional chrome. These two rules replace that wrapper for the Q-Expert
   page: a small caption label above a plain bordered image. */
.help-page--expert .help-shot__caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: .4px; color: var(--color-text-label); margin-bottom: 6px; }
.help-page--expert .help-shot img { max-width: 640px; }
.help-page--expert .help-shot--wide img { max-width: 900px; }

/* Main page scrollbar — the browser default (light gray/white) clashes
   with this site's dark surfaces. Themed on <html> (the element that
   actually owns the page scrollbar), class added there alongside <body>'s. */
html.help-page--expert { scrollbar-width: thin; scrollbar-color: var(--color-border) var(--color-bg); }
html.help-page--expert::-webkit-scrollbar { width: 12px; }
html.help-page--expert::-webkit-scrollbar-track { background: var(--color-bg); }
html.help-page--expert::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius); border: 3px solid var(--color-bg); }
html.help-page--expert::-webkit-scrollbar-thumb:hover { background: var(--color-accent-expert); }

/* The sticky rail (help.css's .help-rail) scrolls internally once its own
   nav list is taller than the viewport — same light-on-dark mismatch as
   the page scrollbar above, themed the same way. */
.help-page--expert .help-rail { scrollbar-width: thin; scrollbar-color: var(--color-border) var(--color-bg); }
.help-page--expert .help-rail::-webkit-scrollbar { width: 8px; }
.help-page--expert .help-rail::-webkit-scrollbar-track { background: var(--color-bg); }
.help-page--expert .help-rail::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius); }
.help-page--expert .help-rail::-webkit-scrollbar-thumb:hover { background: var(--color-accent-expert); }

/* In-guide search (help-search.js) — a text input above the rail's nav
   that indexes every section's title + body text via MiniSearch, jumps to
   the chosen result and highlights every match inside that section. */
.help-page--expert .help-search { position: relative; margin-bottom: var(--space-2); }
.help-page--expert .help-search input[type="search"] {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 10px;
}
.help-page--expert .help-search input[type="search"]:focus {
  outline: none;
  border-color: var(--color-accent-expert);
}
.help-page--expert .help-search__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-height: 60vh;
  overflow-y: auto;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-surface);
}
/* Chromium/WebKit don't honor scrollbar-color — the native scrollbar
   otherwise renders light/white on this dark dropdown. */
.help-page--expert .help-search__results::-webkit-scrollbar { width: 8px; }
.help-page--expert .help-search__results::-webkit-scrollbar-track { background: var(--color-surface); }
.help-page--expert .help-search__results::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius); }
.help-page--expert .help-search__results::-webkit-scrollbar-thumb:hover { background: var(--color-accent-expert); }
.help-page--expert .help-search__result {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 8px 10px;
  cursor: pointer;
}
.help-page--expert .help-search__result:last-child { border-bottom: none; }
.help-page--expert .help-search__result:hover,
.help-page--expert .help-search__result:focus {
  background: rgba(63, 168, 184, 0.1);
  color: var(--color-text);
}
.help-page--expert .help-search__empty {
  padding: 10px;
  font-size: 12.5px;
  color: var(--color-text-label);
}
.help-page--expert mark.help-search-hit {
  background: var(--color-accent-expert);
  color: var(--color-bg);
  border-radius: 2px;
  padding: 0 1px;
}
