.ensosp-shell-nav,
.ensosp-shell-subnav {
  width: 100%;
}

.ensosp-shell-nav__list,
.ensosp-shell-subnav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.ensosp-shell-nav__list {
  align-items: flex-start;
}

.ensosp-shell-subnav__list {
  align-items: center;
}

.ensosp-shell-nav__link,
.ensosp-shell-nav__toggle,
.ensosp-shell-subnav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: #26305b;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ensosp-shell-nav__badge,
.ensosp-shell-subnav__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e03030;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(224, 48, 48, 0.35);
  pointer-events: none;
}

.ensosp-shell-nav__toggle {
  gap: 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.ensosp-shell-nav__link:hover,
.ensosp-shell-nav__link:focus,
.ensosp-shell-nav__toggle:hover,
.ensosp-shell-nav__toggle:focus,
.ensosp-shell-subnav__link:hover,
.ensosp-shell-subnav__link:focus {
  color: #192248;
  background: rgba(32, 46, 102, 0.08);
}

.ensosp-shell-nav__link.is-active,
.ensosp-shell-nav__toggle.is-active,
.ensosp-shell-subnav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1f2b63 0%, #3555b5 100%);
  box-shadow: 0 14px 28px rgba(31, 43, 99, 0.18);
}

/* ── Portal nav dropdown ─────────────────────────────────── */

.ensosp-shell-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.ensosp-shell-nav__item--has-children {
  max-width: 100%;
}

.ensosp-shell-nav__chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ensosp-shell-nav__item.is-open .ensosp-shell-nav__chevron {
  transform: rotate(180deg);
}

.ensosp-shell-nav__submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90vw, 42rem);
  margin: 0;
  padding: 0;
  z-index: 20;
}

.ensosp-shell-nav__submenu[hidden] {
  display: none;
}

/* ─────────────────────────────────────────────────────────── */

.ensosp-shell-subnav {
  margin-top: 0.5rem;
}

.ensosp-shell-subnav__link {
  background: #f6f8fc;
  color: #42507e;
  font-size: 0.9rem;
}

.ensosp-shell-nav__link.is-active,
.ensosp-shell-nav__link.is-active:hover,
.ensosp-shell-nav__link.is-active:focus,
.ensosp-shell-nav__toggle.is-active,
.ensosp-shell-nav__toggle.is-active:hover,
.ensosp-shell-nav__toggle.is-active:focus,
.ensosp-shell-subnav__link.is-active,
.ensosp-shell-subnav__link.is-active:hover,
.ensosp-shell-subnav__link.is-active:focus {
  color: #fff;
}

.ensosp-shell-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem;
  min-height: calc(100vh - 8rem);
  background: linear-gradient(180deg, #fbfcff 0%, #f2f5fb 100%);
}

.ensosp-shell-sidebar__header {
  padding: 0.5rem 0.25rem 0.25rem;
}

.ensosp-shell-sidebar__eyebrow {
  margin-bottom: 0.35rem;
  color: #5c6994;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ensosp-shell-sidebar__title {
  color: #1f2b63;
  font-size: 1.15rem;
  font-weight: 700;
}

.ensosp-shell-sidebar__links {
  display: grid;
  gap: 0.45rem;
}

.ensosp-shell-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: #2d3c6b;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ensosp-shell-sidebar__link:hover,
.ensosp-shell-sidebar__link:focus {
  color: #1f2b63;
  background: rgba(53, 85, 181, 0.08);
  transform: translateX(2px);
}

.ensosp-shell-sidebar__link.is-active {
  color: #fff;
  background: linear-gradient(140deg, #1f2b63 0%, #3555b5 100%);
  box-shadow: 0 18px 30px rgba(31, 43, 99, 0.18);
}

.ensosp-shell-sidebar__bullet {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.4;
  flex-shrink: 0;
}

.ensosp-shell-sidebar__link.is-active .ensosp-shell-sidebar__bullet {
  opacity: 1;
}

.ensosp-shell-sidebar__label {
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .ensosp-shell-sidebar {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .ensosp-shell-nav__list,
  .ensosp-shell-subnav__list {
    justify-content: flex-start;
  }

  .ensosp-shell-nav__item,
  .ensosp-shell-nav__item--has-children,
  .ensosp-shell-nav__submenu {
    width: 100%;
  }

  .ensosp-shell-nav__submenu {
    position: static;
    transform: none;
    max-width: 100%;
  }

  .ensosp-shell-subnav__list {
    justify-content: center;
  }
}
