@charset "utf-8";

/* r17: remove rectangular focus outlines from the three disclosure titles. */
:root {
  color-scheme: dark;
  --help-bg: #111315;
  --help-ink: #f1f1f3;
  --help-text: #c3c4c8;
  --help-muted: #9c9ea5;
  --help-line: #303237;
  --help-divider: #4c4f56;
  --help-link: #edaaa3;
  --help-accent: #b53630;
}

* { box-sizing: border-box; }

html {
  background: var(--help-bg);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--help-bg);
  color: var(--help-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #74322d; color: #fff; }

a {
  color: var(--help-link);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover { color: #fff; }
a:active { color: var(--help-ink); }

a:focus, button:focus {
  outline: 2px solid var(--help-link);
  outline-offset: 4px;
}

.m-help-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 28px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  overflow-wrap: break-word;
}

.m-help-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--help-line);
}

.m-help-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--help-text);
  font-size: .875rem;
}

.m-help-top .m-help-brand {
  color: var(--help-ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.m-help-shell h1 {
  margin: 24px 0 12px;
  color: var(--help-ink);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.4;
}

.m-help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--help-line);
}

.m-help-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--help-link);
  font-size: 1rem;
  font-weight: 600;
}

.m-help-toc a:link, .m-help-toc a:visited, .m-help-toc a:hover,
.m-help-toc a:focus, .m-help-toc a:active {
  color: var(--help-link);
}

.m-help-toc a:hover, .m-help-toc a:focus {
  text-decoration-thickness: 2px;
}

.m-help-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--help-line);
  scroll-margin-top: 20px;
}

.m-help-section h2 {
  margin: 0 0 12px;
  color: var(--help-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.m-help-section h3 {
  margin: 20px 0 6px;
  color: var(--help-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.m-help-section h2 + h3 { margin-top: 0; }
.m-help-section p { margin: 0; }
#browse, #report { scroll-margin-top: 20px; }

.m-help-benefits { margin: 20px 0 16px; }
.m-help-benefits > div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--help-divider);
}

.m-help-benefits dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  color: var(--help-ink);
  font-weight: 600;
}

.m-help-benefits dt span {
  color: var(--help-muted);
  font-size: .875rem;
  font-weight: 400;
}

.m-help-benefits dd { margin: 4px 0 0; }

.m-help-section .m-help-note {
  color: var(--help-muted);
  font-size: .875rem;
}

.m-help-steps { margin: 0 0 16px; padding-left: 1.5em; }
.m-help-steps li + li { margin-top: 8px; }
.m-help-steps li::marker { color: var(--help-muted); }

.m-help-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--help-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.m-help-primary:hover { background: #a6302a; color: #fff; }
.m-help-primary:active { background: #932923; }

.m-help-question { margin-top: 16px; }

.m-help-question > summary, .m-help-disclosure > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  color: var(--help-link);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.m-help-question > summary:focus, .m-help-disclosure > summary:focus {
  outline: none;
}

.m-help-question > summary:focus-visible, .m-help-disclosure > summary:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.m-help-question[open] > summary, .m-help-disclosure[open] > summary {
  color: var(--help-ink);
}

.m-help-question[open] > summary { margin-bottom: 4px; }
.m-help-question p + p { margin-top: 12px; }

.m-help-disclosure > summary {
  margin: -8px 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
}

.m-help-disclosure > summary h2 {
  display: inline;
  margin: 0;
  color: inherit;
}

.m-help-disclosure > summary + h3 { margin-top: 0; }

.m-help-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
}

.m-help-email { display: inline-block; }

.m-help-report p + p { margin-top: 12px; }

.m-help-footer {
  padding-top: 20px;
  color: var(--help-muted);
  font-size: .875rem;
  text-align: center;
}

.m-help-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  margin: 0 auto;
  padding: 32px 20px;
  color: var(--help-text);
  text-align: center;
}

.m-help-loading strong { color: var(--help-ink); }
.m-help-loading small { color: var(--help-muted); font-size: .875rem; }

.m-help-loading button {
  min-height: 44px;
  padding: 8px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--help-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.m-help-loading button:hover { background: #a6302a; }
.m-help-loading button:active { background: #932923; }

@media (max-width: 359px) {
  .m-help-shell {
    padding-left: 16px;
    padding-right: 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .m-help-toc { column-gap: 16px; }
}
