/* The help menu and help search shared by Support, Documentation, Contact, Privacy and Terms. */
.help-nav-label { display: block; margin: 16px 12px 4px; color: var(--ink-3); font: 600 11px/1.4 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.help-nav .help-nav-child { padding-left: 24px; font-size: 14.5px; }
.legal-nav.help-nav a[aria-current="location"] { background: transparent; box-shadow: none; color: var(--ink); font-weight: 600; }
.legal-nav.help-nav a[aria-current="location"]:hover { background: var(--dusk-wash); }
@media (min-width: 861px) {
  .help-nav { max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin: -4px; }
}
@media (max-width: 860px) { .help-nav .help-nav-child, .help-nav-label { display: none; } }

.help-trigger {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; margin-bottom: 12px; padding: 0 10px 0 12px;
  border: 0; border-radius: var(--r-input); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink-3); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.help-trigger:hover { box-shadow: inset 0 0 0 1px var(--ink-3); color: var(--ink-2); }
.help-trigger:focus-visible { outline: 2px solid var(--dusk); outline-offset: 2px; }
.help-trigger svg { width: 18px; height: 18px; flex: none; }
.help-trigger span { flex: 1; }
.help-trigger kbd, .help-dialog-close {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-cell);
  box-shadow: inset 0 0 0 1px var(--hairline); font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
}
@media (pointer: coarse) { .help-trigger kbd { display: none; } }
@media (max-width: 860px) { .help-trigger { flex: 1 1 100%; margin-bottom: 8px; } }

.help-dialog {
  width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(720px, calc(100dvh - 96px)); margin: clamp(48px, 12vh, 128px) auto auto;
  padding: 0; border: 0; border-radius: var(--r-card); background: var(--sheet); color: var(--ink); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--frame-shadow);
}
.help-dialog[open] { animation: help-in 0.22s var(--ease); }
.help-dialog::backdrop { background: color-mix(in srgb, var(--paper) 60%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes help-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
html:has(.help-dialog[open]) { overflow: hidden; }
.help-dialog-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: inherit; }
.help-dialog-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.help-search-field { position: relative; border-bottom: 1px solid var(--hairline); }
.help-search-field:focus-within { box-shadow: inset 0 -2px 0 var(--dusk); }
.help-search-field svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.help-search-field input {
  width: 100%; height: 64px; padding: 0 92px 0 54px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 18px; outline: none; -webkit-appearance: none; appearance: none;
}
.help-search-field input::placeholder { color: var(--ink-3); }
.help-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-dialog-close { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; background: transparent; font-family: var(--f-sans); font-size: 14px; cursor: pointer; }
.help-dialog-close:hover { background: var(--dusk-wash); color: var(--ink); }
.help-dialog-close:focus-visible { outline: 2px solid var(--dusk); outline-offset: 2px; }
.help-dialog-body { display: grid; align-content: start; gap: 10px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; }

.help-search-try { margin: 0; padding: 4px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.help-search-try[hidden] { display: none; }
.help-search-try button { border: 0; border-radius: var(--r-chip); padding: 5px 10px; background: var(--dusk-wash); color: var(--dusk); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.help-search-try button:hover { background: var(--dusk-soft); }
.help-search-try button:focus-visible { outline: 2px solid var(--dusk); outline-offset: 2px; }
.help-search-status { margin: 0; padding: 0 6px; font-size: 14px; color: var(--ink-2); }
.help-search-status:empty { display: none; }
.help-search-status a { color: var(--dusk); text-underline-offset: 3px; }

.help-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-results[hidden] { display: none; }
.help-results a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-input); color: var(--ink); text-decoration: none; }
.help-results a:hover { background: var(--dusk-wash); }
.help-results a:focus-visible { outline: none; background: var(--dusk-wash); box-shadow: inset 0 0 0 2px var(--dusk); }
.help-result-source { font-size: 13px; color: var(--ink-3); }
.help-result-title { font-family: var(--f-display); font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.help-result-snippet { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.help-results mark { background: var(--dusk-soft); color: var(--ink); border-radius: var(--r-cell); padding: 0 2px; }
.help-more { width: 100%; border: 0; border-radius: var(--r-input); padding: 12px 16px; background: transparent; color: var(--dusk); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.help-more:hover { background: var(--dusk-wash); }
.help-more:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--dusk); }

@media (max-width: 640px) {
  .help-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .help-dialog-panel { height: 100%; }
}

/* The question or section a result points to, briefly marked after the jump. */
.help-flash { border-radius: var(--r-chip); animation: help-flash 1.8s var(--ease-soft); }
@keyframes help-flash {
  0%, 30% { background-color: var(--dusk-wash); box-shadow: 0 0 0 10px var(--dusk-wash); }
  100% { background-color: transparent; box-shadow: 0 0 0 10px transparent; }
}
@media (prefers-reduced-motion: reduce) { .help-dialog[open], .help-flash { animation: none; } }
