/**
 * Badger Help (MMB-25737). The app's own look: the tokens below are copied from css/v2-theme.css :root
 * (tests/help-centre.test.js keeps them equal), fonts from /css/fonts.css. Mono only: no accent colour.
 */
:root {
  --bg: #0a0b0d;
  --s1: #101214;
  --s2: #15171a;
  --s3: #1b1e22;
  --line: rgba(255,255,255,.06);
  --line2: rgba(255,255,255,.13);
  --ink-hi: #f4f5f5;
  --ink: #c7cacc;
  --ink-mid: #8a8f93;
  --ink-low: #54585c;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --font-ui: 'Inter', -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

/* One platform's steps at a time. platform.js sets data-platform before the page paints; inside an app help.js
   also removes the other platforms' parts (data-locked). */
html[data-platform="web"] [data-only]:not([data-only~="web"]),
html[data-platform="ios"] [data-only]:not([data-only~="ios"]),
html[data-platform="android"] [data-only]:not([data-only~="android"]),
html[data-locked] [data-web-only],
html[data-locked] #hc-switch,
[hidden] {
  display: none !important;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--ink-hi);
  text-decoration: underline;
  text-decoration-color: var(--line2);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--ink-mid); }

:focus-visible {
  outline: 2px solid var(--ink-hi);
  outline-offset: 2px;
}

h1, h2, h3 { color: var(--ink-hi); margin: 0; }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 7vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: .01em;
}

/* A label exactly as it reads on screen. */
.ui {
  color: var(--ink-hi);
  font-weight: 600;
  background: var(--s3);
  border: 1px solid var(--line2);
  border-radius: 6px;
  padding: 0 .35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hc-skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink-hi);
  color: var(--bg);
  border-radius: var(--r-sm);
}
.hc-skip:focus { top: 8px; }

/* ---- Header ---- */
.hc-top {
  background: var(--s1);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.hc-top-in {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 12px max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.hc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-hi);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hc-brand img { width: 28px; height: 28px; border-radius: 7px; }

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  background: var(--s2);
  color: var(--ink-hi);
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 16px; /* 16px or more: iPhone doesn't zoom into the field */
}
input[type="search"]::placeholder { color: var(--ink-low); }
input[type="search"]:focus { border-color: var(--ink-mid); outline: none; }

button {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  background: var(--ink-hi);
  color: var(--bg);
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
button:hover { background: #ffffff; }

.hc-search {
  flex: 1 1 260px;
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 420px;
  margin-left: auto;
}
.hc-search input { flex: 1 1 auto; }

@media (max-width: 560px) {
  .hc-search { flex-basis: 100%; max-width: none; margin-left: 0; }
}

/* ---- Page ---- */
.hc-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px max(var(--gutter), env(safe-area-inset-right)) 40px max(var(--gutter), env(safe-area-inset-left));
}

.hc-crumbs {
  font-size: .875rem;
  color: var(--ink-mid);
  margin: 4px 0 16px;
}
.hc-crumbs a { color: var(--ink-mid); }

.hc-lede {
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 12px 0 0;
}

/* Section headings: small caps labels, like the app's settings sections. */
.hc-article h2,
.hc-related h2,
.hc-contact h2,
.hc-results-h,
.hc-kicker,
.hc-also,
.hc-switch-label {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.hc-article section { margin-top: 28px; }
.hc-article h2 { margin-bottom: 10px; }
.hc-article p { margin: 0; }
.hc-intro p { margin-top: 20px; }

/* Numbered steps. */
.hc-steps ol {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.hc-steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 46px;
  border-top: 1px solid var(--line);
}
.hc-steps li:first-child { border-top: 0; }
.hc-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--s3);
  border: 1px solid var(--line2);
  border-radius: 50%;
  color: var(--ink-hi);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.hc-result p {
  background: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.hc-notes ul,
.hc-related ul,
.hc-topic ul,
.hc-results,
.hc-answer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hc-notes li {
  position: relative;
  padding: 6px 0 6px 18px;
}
.hc-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-mid);
}

/* Web only: whose steps to read. */
.hc-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.hc-switch-label { margin-right: 4px; }
.hc-switch button {
  min-height: 36px;
  padding: 0 14px;
  background: var(--s2);
  color: var(--ink);
  border: 1px solid var(--line2);
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.hc-switch button:hover { background: var(--s3); }
.hc-switch button[aria-pressed="true"] {
  background: var(--ink-hi);
  color: var(--bg);
  border-color: var(--ink-hi);
}

.hc-related,
.hc-contact {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hc-related h2,
.hc-contact h2 { margin-bottom: 8px; }
.hc-related li { padding: 6px 0; }
.hc-contact p { margin: 0; }

/* ---- /help: Ask and the topics ---- */
.hc-hero { padding: 12px 0 8px; }
.hc-hero-sub { margin: 8px 0 16px; color: var(--ink-mid); }
.hc-ask {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.hc-ask input { flex: 1 1 auto; }

.hc-answer {
  margin-top: 16px;
  background: var(--s2);
  border: 1px solid var(--line2);
  border-radius: var(--r-md);
  padding: 16px;
}
.hc-answer h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 6px 0 10px;
}
.hc-answer h2 a { text-decoration: none; }
.hc-answer .hc-answer-lede { margin: 0 0 10px; color: var(--ink-mid); }
.hc-answer ol {
  margin: 0;
  padding-left: 1.4em;
}
.hc-answer ol li { padding: 4px 0; }
.hc-answer p { margin: 10px 0 0; }
.hc-kicker { margin: 0 !important; }
.hc-also { margin-top: 16px !important; }
.hc-answer ul li { padding: 4px 0; }
.hc-answer-idk h2 { margin-top: 0; }

.hc-results-slot:not(:empty) { margin-top: 16px; }
.hc-results-h { margin: 0 0 6px; }
.hc-results li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.hc-results li a { display: block; font-weight: 600; }
.hc-results li span {
  display: block;
  font-size: .875rem;
  color: var(--ink-mid);
}

.hc-topics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .hc-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hc-topic {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  scroll-margin-top: 16px;
}
.hc-topic h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hc-topic p {
  margin: 4px 0 8px;
  font-size: .9375rem;
  color: var(--ink-mid);
}
.hc-topic li { border-top: 1px solid var(--line); }
.hc-topic li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
}
.hc-topic li a:hover { text-decoration: underline; text-decoration-color: var(--ink-mid); }

/* ---- Footer ---- */
.hc-foot {
  border-top: 1px solid var(--line);
  color: var(--ink-low);
  font-size: .875rem;
}
.hc-foot-in {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px max(var(--gutter), env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
}
.hc-foot p { margin: 0; }
.hc-foot a { color: var(--ink-mid); }
