/* App design/tokens.json and 2026-10-19 help template. Scoped to help / app mode. */
html.app-mode,
.help-page {
  --bg: #0c1721;
  --s1: #15252f;
  --line: #22333f;
  --text: #f4ecdc;
  --text2: #a9b5ba;
  --text3: #8a9aa2;
  --saf: #f2a93b;
  --saf-t: #f2a93b24;
  --saf-icon: #f2a93b1f;
  --saf-line: #f2a93b4d;
}
html.app-mode body {
  background: var(--bg);
}
html.app-mode .header,
html.app-mode body > footer,
html.app-mode .language-menu,
html.app-mode .skip {
  display: none;
}
.help-page {
  max-width: 740px;
  margin: auto;
  padding: 32px 20px 40px;
  color: var(--text);
  font-family: var(--body);
  overflow-wrap: anywhere;
}
.help-page h1 {
  font-size: 1.6rem;
  margin: 0 0 18px;
}
.help-page .help-intro {
  color: var(--text2);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
.help-card {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
.help-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.help-card-head h2 {
  flex: 1 1 90px;
  min-width: 0;
  margin: 0;
  font: 700 0.96875rem/1.4 var(--body);
  letter-spacing: normal;
}
.help-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: var(--saf-icon);
  border: 1px solid var(--saf-line);
  color: var(--saf);
}
.help-icon svg {
  width: 20px;
  height: 20px;
}
.help-badge {
  max-width: 100%;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--saf-t);
  color: var(--saf);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: end;
}
.help-card dl {
  margin: 0;
}
.help-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.help-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.help-row dt {
  flex: 1 1 0;
  color: var(--text2);
  font-size: 0.84375rem;
  min-width: 0;
}
.help-row dd {
  flex: 0 1 auto;
  max-width: 58%;
  min-width: 0;
  margin: 0;
  text-align: end;
  font-size: 0.875rem;
  font-weight: 600;
  unicode-bidi: plaintext;
}
.help-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  color: var(--text2);
  font-size: 0.84375rem;
  line-height: 1.6;
}
.help-bullets li {
  position: relative;
  padding-inline-start: 16px;
  margin: 0 0 8px;
}
.help-bullets li:last-child {
  margin-bottom: 0;
}
.help-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--saf);
}
.help-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--text2);
  font-size: 0.78125rem;
  line-height: 1.55;
}
.help-note p {
  margin: 0;
}
.help-note svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: var(--text3);
  margin-top: 2px;
}
.help-empty,
#help-status {
  color: var(--text2);
  font-size: 0.8125rem;
  line-height: 1.55;
}
#help-status:empty {
  display: none;
}
#help-status:not(:empty) {
  margin-bottom: 14px;
}
#help-retry {
  margin-bottom: 14px;
}
.help-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.help-page a {
  display: inline-block;
  padding: 10px 0;
  color: var(--saf);
  font-size: 0.875rem;
  text-underline-offset: 4px;
}
.help-page a:focus-visible,
.help-page button:focus-visible {
  outline: 2px solid var(--saf);
  outline-offset: 3px;
}
html.app-mode .help-page {
  padding-top: 12px;
}
/* The app owns the back button and page title. Keep the document heading accessible. */
html.app-mode .help-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html.app-mode .legal,
html.app-mode .support-page {
  margin: auto;
  padding: 20px;
  max-width: 900px;
  overflow-wrap: anywhere;
}
html.app-mode .legal-head {
  padding-top: 0;
}
html.app-mode .legal-head .eyebrow {
  display: none;
}
html.app-mode .legal-head h1 {
  font-size: 1.5rem;
}
html.app-mode .legal-layout {
  display: block;
}
html.app-mode .legal-layout aside {
  display: none;
}
html.app-mode .legal article {
  background: var(--s1);
  color: var(--text);
  border-radius: 18px;
  padding: 18px;
}
html.app-mode .legal article p {
  color: var(--text2);
}
html.app-mode .legal article section {
  border-color: var(--line);
}
html.app-mode .legal article h2 {
  color: var(--text);
  font-size: 1.1rem;
}
html.app-mode .legal article a {
  color: var(--saf);
}
html.app-mode .policy-contact {
  border-color: var(--line);
}
@media (max-width: 430px) {
  html.app-mode .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  html.app-mode .legal-head {
    margin-bottom: 20px;
  }
}
html.app-mode .policy-contact {
  background: var(--bg);
}
html.app-mode .legal article h2 span {
  color: var(--saf);
}
/* Currency glyphs match App design/lib.js; only the numeral is visible text. */
.help-money {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  vertical-align: baseline;
  unicode-bidi: isolate;
}
.help-money svg {
  flex: none;
  width: 12px;
  height: 12px;
}
.help-badge .help-money svg {
  width: 13px;
  height: 13px;
}
.help-note + .help-card {
  margin-top: 12px;
}
