/* Help-page SVG icons. Keep the existing local FontAwesome stylesheet as a
   compatibility fallback for future FAQ content; known controls render no font glyphs. */
.help-body {
  --help-svg-question:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M9.1%209a3%203%200%200%201%205.8%201c0%202-3%202-3%204M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
  --help-svg-search:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.5%22%2F%3E%3Cpath%20d%3D%22m15.5%2015.5%205%205%22%2F%3E%3C%2Fsvg%3E");
  --help-svg-close:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M18%206%206%2018%22%2F%3E%3C%2Fsvg%3E");
  --help-svg-chevron-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E");
  --help-svg-warning:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m10.3%203.6-8%2014a2%202%200%200%200%201.7%203h16a2%202%200%200%200%201.7-3l-8-14a2%202%200%200%200-3.4%200Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4M12%2017h.01%22%2F%3E%3C%2Fsvg%3E");
}

.help-page .fa-question-circle { --help-icon:var(--help-svg-question); }
.help-page .fa-search { --help-icon:var(--help-svg-search); }
.help-page .fa-times { --help-icon:var(--help-svg-close); }
.help-page .fa-chevron-down { --help-icon:var(--help-svg-chevron-down); }

.help-page .fa-question-circle,
.help-page .fa-search,
.help-page .fa-times,
.help-page .fa-chevron-down {
  display:inline-block;
  width:1em;
  height:1em;
  line-height:1;
  flex-shrink:0;
  font-family:inherit!important;
  font-style:normal;
  font-weight:normal;
  vertical-align:-.125em;
}

.help-page .fa-question-circle::before,
.help-page .fa-search::before,
.help-page .fa-times::before,
.help-page .fa-chevron-down::before,
.help-page .help-intro::before {
  content:""!important;
  display:block;
  width:1em;
  height:1em;
  background-color:currentColor;
  -webkit-mask-image:var(--help-icon);
  mask-image:var(--help-icon);
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-size:contain;
  mask-size:contain;
}

.help-page .help-intro::before {
  --help-icon:var(--help-svg-warning);
  width:18px;
  height:18px;
  font-family:inherit;
  font-size:0;
  line-height:1;
}

.help-page .help-search>i { font-size:18px; }
.help-page .help-search-clear>i { font-size:16px; }
.help-page .help-faq-item summary>i { font-size:16px; }

/* Use the existing labelled clear button instead of a second native glyph. */
.help-page .help-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance:none;
  appearance:none;
}

body.night .help-page .help-intro::before { color:#e6cf96; }
body.night .help-page .help-search>i,
body.night .help-page .help-search-clear,
body.night .help-page .help-faq-item summary>i,
body.night .help-page .help-empty>i { color:var(--help-muted); }
body.night .help-page .help-faq-item[open] summary>i { color:#d9e8fb; }
