/* NorthStar Prime "How can we help?" guide. Sits under the sticky nav (z-index 9800). */
.nsp-guide {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 9700;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: calc(100vw - 24px);
  font-family: inherit;
  pointer-events: none;
}
.nsp-guide > * { pointer-events: auto; }

.nsp-guide button,
.nsp-guide a {
  box-sizing: border-box;
  min-height: 48px;
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}
.nsp-guide button:focus-visible,
.nsp-guide a:focus-visible,
.nsp-guide [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--nsp-shell-cyan, #65e7ef);
  outline-offset: 2px;
}

/* Every width: a 48px round icon, and room at the end of the page so it never covers the last content. */
body {
  padding-bottom: calc(max(72px, var(--nsp-dock-clearance, 0px)) + env(safe-area-inset-bottom)) !important;
}
.nsp-guide-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border: 1px solid var(--nsp-shell-gold, #f0cb68);
  border-radius: 50%;
  background: var(--nsp-shell-ink, #070912);
  color: var(--nsp-shell-gold, #f0cb68);
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.nsp-guide-toggle:hover,
.nsp-guide-toggle[aria-expanded="true"] {
  background: var(--nsp-shell-gold, #f0cb68);
  color: var(--nsp-shell-ink, #070912);
}
.nsp-guide-toggle-icon {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.nsp-guide-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nsp-guide-panel {
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 200px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--nsp-shell-line, rgba(227, 195, 105, .18));
  border-radius: 16px;
  background: linear-gradient(var(--nsp-shell-panel, rgba(10, 13, 25, .88)), var(--nsp-shell-panel, rgba(10, 13, 25, .88))), var(--nsp-shell-ink, #070912);
  color: var(--nsp-shell-copy, #f4f0e5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  animation: nsp-guide-in .16s ease-out;
}
@supports (height: 100dvh) {
  .nsp-guide-panel { max-height: min(640px, calc(100dvh - 200px)); }
}
.nsp-guide-panel[hidden] { display: none; }

.nsp-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nsp-guide-title {
  margin: 0;
  color: var(--nsp-shell-gold, #f0cb68);
  font-size: 20px;
  line-height: 1.25;
}
.nsp-guide-close {
  flex: none;
  min-width: 48px;
  padding: 0 14px;
  border: 1px solid var(--nsp-shell-line, rgba(227, 195, 105, .18));
  border-radius: 10px;
  background: transparent;
  color: var(--nsp-shell-copy, #f4f0e5);
}
.nsp-guide-note {
  margin: 8px 0 14px;
  color: var(--nsp-shell-muted, #a9adbd);
  font-size: 16px;
  line-height: 1.45;
}

.nsp-guide-choices {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nsp-guide-choice,
.nsp-guide-go,
.nsp-guide-back {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
}
.nsp-guide-choice {
  border: 1px solid var(--nsp-shell-line, rgba(227, 195, 105, .18));
  background: rgba(255, 255, 255, .03);
  color: var(--nsp-shell-copy, #f4f0e5);
}
.nsp-guide-choice:hover { border-color: var(--nsp-shell-gold, #f0cb68); }

.nsp-guide-topic {
  margin: 0 0 12px;
  color: var(--nsp-shell-copy, #f4f0e5);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  outline: 0;
}
.nsp-guide-actions {
  display: grid;
  gap: 8px;
}
.nsp-guide-go {
  border: 1px solid var(--nsp-shell-gold, #f0cb68);
  background: var(--nsp-shell-gold, #f0cb68);
  color: var(--nsp-shell-ink, #070912);
  font-weight: 700;
}
.nsp-guide-go:hover { color: var(--nsp-shell-ink, #070912); text-shadow: none; filter: brightness(1.08); }
.nsp-guide-back {
  border: 1px solid var(--nsp-shell-line, rgba(227, 195, 105, .18));
  background: transparent;
  color: var(--nsp-shell-copy, #f4f0e5);
}

@keyframes nsp-guide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nsp-guide-panel { animation: none; }
}
@media print {
  .nsp-guide { display: none; }
}
