/* Contextual menu helper — click-to-open popover */

.menu-help {
  position: relative;
  flex-shrink: 0;
}

.menu-help__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(0, 95, 170, 0.18);
  background: rgba(0, 95, 170, 0.06);
  color: #005faa;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.menu-help__btn:hover,
.menu-help__btn[aria-expanded="true"] {
  background: rgba(0, 95, 170, 0.12);
  border-color: rgba(0, 95, 170, 0.28);
  box-shadow: 0 1px 2px rgba(0, 95, 170, 0.08);
}

.menu-help__btn:focus-visible {
  outline: 2px solid #005faa;
  outline-offset: 2px;
}

.menu-help__btn-icon {
  font-size: 1.15rem;
}

.menu-help__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 60;
  width: min(22.5rem, calc(100vw - 1.5rem));
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.14));
}

.menu-help__panel[hidden] {
  display: none !important;
}

.menu-help__panel-inner {
  position: relative;
  padding: 1rem 1.05rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  color: #0f172a;
}

.menu-help__panel-inner::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 1.15rem;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid rgba(148, 163, 184, 0.28);
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  transform: rotate(45deg);
  background: #fff;
}

.menu-help__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.menu-help__badge {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #005faa;
  background: rgba(0, 95, 170, 0.1);
}

.menu-help__badge .material-symbols-outlined {
  font-size: 1.25rem;
}

.menu-help__head-text {
  min-width: 0;
  flex: 1;
  padding-top: 0.1rem;
}

.menu-help__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.menu-help__title {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}

.menu-help__close {
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.menu-help__close:hover {
  background: rgba(100, 116, 139, 0.1);
  color: #0f172a;
}

.menu-help__close .material-symbols-outlined {
  font-size: 1.1rem;
}

.menu-help__lead {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
}

.menu-help__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.menu-help__steps li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}

.menu-help__step-num {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #005faa;
  background: rgba(0, 95, 170, 0.1);
}

.menu-help__visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.menu-help__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.35rem;
  border-radius: 0.7rem;
  background: rgba(241, 245, 249, 0.85);
  text-align: center;
}

.menu-help__visual .material-symbols-outlined {
  font-size: 1.35rem;
  color: #005faa;
}

.menu-help__visual span:last-child {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #64748b;
}

.menu-help__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.85rem;
}

.menu-help__gotit {
  min-height: 2.1rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 0.65rem;
  background: #005faa;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.menu-help__gotit:hover {
  background: #004d8c;
}

@media (max-width: 640px) {
  .menu-help__btn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .menu-help__btn {
    width: 2.25rem;
    justify-content: center;
    padding-inline: 0;
  }

  .menu-help__panel {
    right: -0.35rem;
  }
}
