/*
 * onboarding — the ? in the header and its help sheet
 * (src/views/onboarding/, ch. 16 E-NEW-onboarding-1). Linked by the four
 * screens: the dashboard, Final Drive, The Show, Assistant Coach. Colours are literal, like shell.css, so the rules read
 * the same on a page that defines --border and one that does not.
 */

/* ---- the four seat lines (the sheet's map of the screens) ------------- */
.onb-seats {
  display: grid;
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.onb-seats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #d6dae2;
  font-size: 0.9rem;
  line-height: 1.35;
}
.onb-seats li b {
  color: #f2f4f7;
}
.onb-seats .onb-ic {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #9aa3b2;
}
.onb-seats .onb-ic svg {
  display: block;
  width: 18px;
  height: 18px;
}
/* Final Drive, the key screen: its name in the live purple. */
.onb-seats li.onb-key b {
  color: #8b8ff5;
}
/* ---- the ? in the header ---------------------------------------------- */
.onb-help {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.onb-help span {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #999;
  font:
    700 19px/36px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  text-align: center;
}
.onb-help:hover span {
  color: #fff;
  border-color: #3a3a3a;
}
.onb-help.is-open span {
  color: #fff;
  border-color: #8b8ff5;
}
.onb-help:focus-visible span {
  outline: 2px solid #f0913f;
  outline-offset: 2px;
}

/* ---- the sheet -------------------------------------------------------- */
.onb-ov {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}
.onb-ov[hidden] {
  display: none;
}
.onb-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #14171c;
  border: 1px solid #2a2f38;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  color: #f2f4f7;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.onb-sheet:focus {
  outline: none;
}
@media (min-width: 601px) {
  .onb-ov {
    align-items: center;
  }
  .onb-sheet {
    padding: 24px;
    border-bottom: 1px solid #2a2f38;
    border-radius: 16px;
  }
}
.onb-eyebrow {
  margin: 0 0 6px;
  color: #9aa3b2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.onb-sheet h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
}
.onb-sheet p {
  margin: 0 0 8px;
  color: #d6dae2;
  font-size: 0.98rem;
  line-height: 1.45;
}
.onb-sheet p.onb-eyebrow {
  color: #9aa3b2;
  font-size: 0.72rem;
  line-height: 1.2;
  margin: 0 0 6px;
}
.onb-sheet p.onb-key {
  color: #f2f4f7;
}
.onb-sheet .onb-seats {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #262b33;
}
.onb-sheet .onb-seats li.is-here,
.onb-sheet .onb-seats li.is-here b {
  color: #fff;
}
.onb-sheet .onb-seats li.is-here .onb-ic {
  color: #8b8ff5;
}
.onb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.onb-btn {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #6366f1;
  color: #fff;
  font:
    700 0.95rem -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  cursor: pointer;
}
.onb-btn.sec {
  background: #1f242c;
  border: 1px solid #2a2f38;
  color: #d6dae2;
}
.onb-btn:focus-visible {
  outline: 2px solid #f0913f;
  outline-offset: 2px;
}
.onb-hint {
  flex-basis: 100%;
  margin-top: 2px;
  color: #8a92a0;
  font-size: 0.8rem;
}
