/* =========================================================
   SAZEH SAZAN — STAGE 5 RELEASE HARDENING
   Accessible controls, configurable dropdowns, safe placeholders.
========================================================= */

a.stage5-link-unconfigured {
  cursor: not-allowed !important;
  opacity: .58;
  text-decoration: none;
}

.stage5-link-notice {
  position: fixed;
  z-index: 99999;
  inset-inline-end: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 17px;
  border: 1px solid rgba(246, 199, 68, .45);
  border-radius: 12px;
  background: #06142e;
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  font-size: 13px;
  line-height: 1.9;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.stage5-link-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stage5-nav-dropdown {
  position: relative;
}

.stage5-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.stage5-dropdown-toggle:focus-visible,
.stage5-dropdown-menu a:focus-visible {
  outline: 3px solid var(--primary, #f6c744);
  outline-offset: 3px;
}

.stage5-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 1000;
  display: none;
  min-width: 205px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(6, 20, 46, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(6, 20, 46, .16);
}

.stage5-nav-dropdown.is-open .stage5-dropdown-menu {
  display: block;
}

.stage5-dropdown-menu li {
  display: block;
  margin: 0;
}

.stage5-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #17253f;
  font-size: .92rem;
  line-height: 1.7;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.stage5-dropdown-menu a:hover {
  background: rgba(246, 199, 68, .16);
  color: #06142e;
}

@media (max-width: 760px) {
  .stage5-nav-dropdown {
    width: 100%;
  }

  .stage5-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: right;
  }

  .stage5-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 6px 0 10px;
    border-radius: 10px;
    box-shadow: none;
    background: rgba(255, 255, 255, .96);
  }

  .stage5-link-notice {
    inset-inline: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage5-link-notice,
  .stage5-dropdown-menu a {
    transition: none;
  }
}
