/* MORPH_WEB — the dynamic help (web/help/help.js + help-window.js). Works on the home page and on a project's MORPHEUS:
   it uses MORPHEUS's colour variables when they exist and dark defaults otherwise. */
/* the «?» = a title-bar button (ATENEA's .tb-btn): full height, no border, a Flaticon; ON = the accent colour */
.mw-help-btn { width: 46px; height: 100%; margin-left: auto; flex: none; padding: 0; border: none; background: transparent; color: var(--dim, #8b93a7);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mw-help-btn .fi { font-size: 14px; line-height: 1; }
.mw-help-btn:hover { background: color-mix(in srgb, var(--text, #e7e9ee) 7%, transparent); color: var(--text, #e7e9ee); }
.mw-help-btn.on { color: var(--accent, #3b74ff); }
.mw-help-btn.on:hover { color: var(--accent, #3b74ff); }
#titlebar .mw-help-btn { -webkit-app-region: no-drag; }

/* MORPHEUS's own help bubbles (src/ui/tooltip.js): never on their own — the dynamic help shows its richer bubble instead */
.tip-bubble { display: none !important; }

/* the notice when it is switched on / off */
.mw-help-notice { position: fixed; top: 56px; right: 16px; z-index: 2147483200; max-width: 380px; padding: 14px 16px; border-radius: 12px;
  background: var(--panel, #0e1016); color: var(--text, #e7e9ee); border: 1px solid var(--accent, #3b74ff); box-shadow: 0 10px 40px rgba(0,0,0,.45);
  font: 11px/1.45 var(--font-ui, system-ui); }
.mw-help-notice .mhn-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.mw-help-notice button, .mw-help-bubble a { font: inherit; color: inherit; background: transparent; border: 1px solid var(--edge, #23262f); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.mw-help-notice button:hover { border-color: var(--accent, #3b74ff); }

/* the bubble */
.mw-help-bubble { position: fixed; z-index: 2147483100; max-width: 340px; padding: 10px 12px; border-radius: 10px; background: var(--panel, #0e1016);
  color: var(--text, #e7e9ee); border: 1px solid var(--edge, #23262f); box-shadow: 0 8px 30px rgba(0,0,0,.45); font: 11px/1.45 var(--font-ui, system-ui); }
.mw-help-bubble .hb-title { font-weight: 700; margin-bottom: 4px; }
.mw-help-bubble .hb-own { color: var(--dim, #8b93a7); margin-top: 6px; white-space: pre-line; }
.mw-help-bubble .hb-cmd { margin-top: 6px; font-family: var(--font-mono, monospace); color: var(--accent, #3b74ff); }
.mw-help-bubble a { display: inline-block; margin-top: 8px; text-decoration: none; border-color: var(--accent, #3b74ff); }

/* the full help window */
.mw-help-win .hw-index { flex: none; width: 170px; overflow-y: auto; border-right: 1px solid var(--edge, #23262f); padding: 8px; }
.mw-help-win .hw-index div { padding: 5px 8px; border-radius: 6px; cursor: pointer; color: var(--dim, #8b93a7); }
.mw-help-win .hw-index div:hover, .mw-help-win .hw-index div.cur { color: var(--text, #e7e9ee); background: color-mix(in srgb, var(--text, #e7e9ee) 8%, transparent); }
.mw-help-win .hw-page { flex: 1; overflow-y: auto; padding: 4px 18px 18px; }
.mw-help-win .hw-page h1 { font-size: 15px; margin: 14px 0 8px; }
.mw-help-win .hw-page h2 { font-size: 12px; margin: 18px 0 6px; color: var(--accent, #3b74ff); }
.mw-help-win .hw-page h2.hit { outline: 1px dashed var(--accent, #3b74ff); outline-offset: 4px; border-radius: 4px; }
.mw-help-win .hw-page code { font-family: var(--font-mono, monospace); background: color-mix(in srgb, var(--text, #e7e9ee) 8%, transparent); padding: 0 4px; border-radius: 4px; }
.mw-help-win .hw-page ul { padding-left: 20px; margin: 6px 0; }
.mw-help-win .hw-page p { margin: 6px 0; }
