/**
 * Mobile menu overlay
 *
 * Custom overlay panel (L1/L2) replacing mmenu's page-shifting behaviour.
 * See docs/superpowers/plans/2026-07-28-mobile-menu-overlay.md (Task 4)
 * and docs/superpowers/specs/2026-07-28-mobile-menu-overlay-design.md.
 */

.nka-mnav[hidden] {
  display: none !important;
}

.nka-mnav {
  position: fixed;
  inset: 0;
  z-index: 100000; /* above #navbar (99) and admin bar */
}

.nka-mnav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.nka-mnav__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(100%, 360px); /* leave strip of page visible on wider phones */
  max-width: 92vw;
  background: #fff;
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nka-mnav__view {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.nka-mnav__view[hidden] {
  display: none !important;
}

.nka-mnav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 16px 16px 12px 20px;
  border-bottom: 1px solid #e6eded;
}

.nka-mnav__title,
.nka-mnav__title--link {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #1a1a1a;
}

.nka-mnav__title--link {
  text-decoration: none;
}

.nka-mnav__title--link:hover,
.nka-mnav__title--link:focus,
.nka-mnav__title--link:visited {
  color: #1a1a1a;
  text-decoration: none;
}

.nka-mnav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -2px -4px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
}

.nka-mnav__close img {
  display: block;
  width: 17px;
  height: 17px;
}

.nka-mnav__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.nka-mnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nka-mnav__list li {
  border-bottom: 1px solid #e6eded;
}

.nka-mnav__list a,
.nka-mnav__list button.nka-mnav__row,
.nka-mnav__search {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
}

.nka-mnav__list a.nka-mnav__link--parent {
  color: #E7000B;
  font-weight: 500;
}

.nka-mnav__back {
  margin: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 0;
  border-radius: 4px;
  background: #eef2f2;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
}

.nka-mnav__search-item {
  border-bottom: 1px solid #e6eded;
}

.nka-mnav__search-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  line-height: 1.3;
  color: #1a1a1a;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.nka-mnav__search-input::placeholder {
  color: #1a1a1a;
  opacity: 1;
}

.nka-mnav__search-input::-webkit-search-decoration,
.nka-mnav__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.nka-mnav__search-submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  line-height: 1;
  cursor: pointer;
}

.nka-mnav__search-submit img {
  display: block;
  width: 16px;
  height: 16px;
}

.nka-mnav__ctas {
  flex-shrink: 0;
  margin-top: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.nka-mnav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 0;
  color: #fff !important;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.nka-mnav__cta svg,
.nka-mnav__cta img {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
}

.nka-mnav__cta--red {
  background: #c5372a;
}

.nka-mnav__cta--black {
  background: #1a1a1a;
}

.nka-mnav__cta span:last-child {
  margin-left: auto;
}

body.nka-mnav-open {
  overflow: hidden;
}
