/* Additive, namespaced presentation for the maintained public Russel guide. */
.bp-russel-help {
  --bp-help-ink: #061525;
  --bp-help-green: #0f7659;
  --bp-help-line: #d9e2ef;
  color: var(--bp-help-ink);
  font: 1rem/1.55 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.bp-russel-help *,
.bp-russel-help *::before,
.bp-russel-help *::after { box-sizing: border-box; }

.bp-russel-help .bp-russel-help__launcher,
.bp-russel-help button,
.bp-russel-help a {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  transition: none;
  touch-action: manipulation;
}

.bp-russel-help button { cursor: pointer; }
.bp-russel-help :is(button, a, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid #075cff;
  outline-offset: 3px;
}

.bp-russel-help .bp-russel-help__launcher {
  position: fixed;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 90;
  min-height: 48px;
  max-width: calc(100vw - 2rem);
  padding: .65rem 1.15rem;
  border: 1px solid var(--bp-help-green);
  border-radius: 8px;
  background: var(--bp-help-green);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 4px 16px rgb(6 21 37 / 15%);
}

/* In authenticated worker/employer workspaces the same guide is in normal flow.
   Keep the modal at body level so navigation cannot hide its ancestor. */
.bp-russel-help.bp-russel-help--inline { min-width: 0; margin-top: .75rem; }
.bp-russel-help.bp-russel-help--inline .bp-russel-help__launcher {
  position: static;
  inset: auto;
  z-index: auto;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bp-russel-help .bp-russel-help__dialog {
  position: fixed;
  inset: 0;
  width: min(32rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--bp-help-line);
  border-radius: 12px;
  background: #fff;
  color: var(--bp-help-ink);
  box-shadow: 0 18px 44px rgb(6 21 37 / 20%);
  font: inherit;
  text-align: start;
}

.bp-russel-help__dialog::backdrop { background: rgb(6 21 37 / 48%); }
.bp-russel-help__dialog:not([open]) { display: none; }
.bp-russel-help__header { display: flex; align-items: flex-start; gap: 1rem; }
.bp-russel-help .bp-russel-help__title {
  flex: 1;
  margin: 0;
  color: var(--bp-help-ink);
  font-size: 1.3rem;
  line-height: 1.4;
  letter-spacing: normal;
}

.bp-russel-help .bp-russel-help__close,
.bp-russel-help .bp-russel-help__back {
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid var(--bp-help-line);
  border-radius: 6px;
  background: #fff;
  color: var(--bp-help-ink);
  box-shadow: none;
}

.bp-russel-help .bp-russel-help__description {
  margin: 1rem 0 1.25rem;
  color: #48566c;
  font-size: .95rem;
}
.bp-russel-help .bp-russel-help__question {
  margin: 0 0 1rem;
  color: var(--bp-help-ink);
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: normal;
}
.bp-russel-help__choices { display: grid; gap: .6rem; }
.bp-russel-help .bp-russel-help__choice {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1px solid var(--bp-help-line);
  border-radius: 8px;
  background: #f7f9ff;
  color: var(--bp-help-ink);
  font-weight: 600;
  text-align: start;
  box-shadow: none;
}
.bp-russel-help .bp-russel-help__choice:hover { border-color: var(--bp-help-green); background: #ddf9ec; }
.bp-russel-help .bp-russel-help__body { margin: 0 0 1rem; }
.bp-russel-help .bp-russel-help__note {
  margin: 0 0 1.25rem;
  padding: .8rem;
  background: #f7f9ff;
  border-inline-start: 3px solid var(--bp-help-green);
}
.bp-russel-help .bp-russel-help__primary {
  display: block;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1px solid var(--bp-help-green);
  border-radius: 8px;
  background: var(--bp-help-green);
  color: #fff;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.bp-russel-help .bp-russel-help__primary:hover,
.bp-russel-help .bp-russel-help__launcher:hover { background: #095840; }
.bp-russel-help .bp-russel-help__back { display: block; margin: .75rem auto 0; }
.bp-russel-help__footer { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--bp-help-line); }
.bp-russel-help .bp-russel-help__cost { margin: 0 0 .4rem; font-size: .9rem; }
.bp-russel-help .bp-russel-help__recovery {
  display: inline-block;
  min-height: 44px;
  padding: .55rem 0;
  color: #095840;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 480px) {
  .bp-russel-help .bp-russel-help__dialog { padding: 1rem; }
  .bp-russel-help__header { gap: .5rem; }
}
@media print { .bp-russel-help { display: none; } }
@media (forced-colors: active) {
  .bp-russel-help .bp-russel-help__launcher,
  .bp-russel-help .bp-russel-help__primary { border: 2px solid ButtonText; }
}

/* Request Rescue keeps free-text facts and manual summary edits in page memory. */
.bp-russel-help .bp-russel-help__builder { margin: 0 0 1.25rem; }
.bp-russel-help .bp-russel-help__draft-title { margin: 0 0 .5rem; font-size: 1rem; }
.bp-russel-help .bp-russel-help__draft-help { margin: .5rem 0 .75rem; color: #48566c; font-size: .9rem; }
.bp-russel-help .bp-russel-help__fields { display: grid; gap: .8rem; margin: 1rem 0; }
.bp-russel-help .bp-russel-help__field { display: grid; gap: .35rem; min-width: 0; color: var(--bp-help-ink); font-weight: 600; }
.bp-russel-help .bp-russel-help__input,
.bp-russel-help .bp-russel-help__summary {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .6rem .7rem;
  border: 1px solid #738198;
  border-radius: 6px;
  background: #fff;
  color: var(--bp-help-ink);
  font: 400 1rem/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}
.bp-russel-help .bp-russel-help__input::placeholder { color: #526076; opacity: 1; }
.bp-russel-help .bp-russel-help__summary { resize: vertical; }
.bp-russel-help .bp-russel-help__checklist { padding: .75rem; background: #eef5ff; border-radius: 6px; overflow-wrap: anywhere; }
.bp-russel-help .bp-russel-help__draft-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.bp-russel-help .bp-russel-help__copy,
.bp-russel-help .bp-russel-help__draft-secondary {
  min-height: 44px;
  max-width: 100%;
  padding: .55rem .8rem;
  border: 1px solid #738198;
  border-radius: 6px;
  background: #fff;
  color: var(--bp-help-ink);
  white-space: normal;
  box-shadow: none;
}
.bp-russel-help .bp-russel-help__copy { background: #ddf9ec; border-color: var(--bp-help-green); font-weight: 650; }
.bp-russel-help .bp-russel-help__copy:hover { background: #c4f0dd; }
.bp-russel-help .bp-russel-help__draft-status { margin: .5rem 0; color: #095840; }
.bp-russel-help .bp-russel-help__draft-status:empty { display: none; }
.bp-russel-help .bp-russel-help__handoff { margin: .8rem 0 0; }
.bp-russel-help [hidden] { display: none !important; }
