/*
 * MSA Menu Overlay — standalone file.
 * Can be linked to any page. Menu is always hidden by default
 * (position:fixed, visibility:hidden) and only shown when JS sets aria-hidden="false".
 * Safe for desktop: overlay is invisible until explicitly opened.
 */

/* ── Base: always hidden, fixed over viewport ── */
.msa-menu {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
}

.msa-menu[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

/* ── Backdrop ── */
.msa-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 31, 56, 0.52);
  opacity: 0;
  transition: opacity 0.24s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.msa-menu[aria-hidden="false"] .msa-menu__backdrop {
  opacity: 1;
}

/* ── Slide-in panel ── */
.msa-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 86vw);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 32px;
  background: #fff;
  border-radius: 28px 0 0 28px;
  box-shadow: -20px 0 60px rgba(7, 31, 56, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Inter, -apple-system, Arial, Helvetica, sans-serif;
}

.msa-menu[aria-hidden="false"] .msa-menu__panel {
  transform: translateX(0);
}

/* ── Header row ── */
.msa-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8f1f8;
}

.msa-menu__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: #071f38;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.msa-menu__brand:hover {
  text-decoration: none;
  color: #071f38;
}

.msa-menu__brand img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

/* ── Close button ── */
.msa-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #e0ebf6;
  border-radius: 12px;
  background: #f5f8fc;
  color: #071f38;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.msa-menu__close:hover {
  background: #eef5ff;
}

/* ── Nav list ── */
.msa-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.msa-menu__link {
  display: block;
  padding: 13px 14px;
  border-radius: 16px;
  color: #071f38;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.14s;
}

.msa-menu__link:hover,
.msa-menu__link:active {
  background: #eef5ff;
  color: #071f38;
  text-decoration: none;
}

/* ── CTA button ── */
.msa-menu__cta {
  display: block;
  margin-top: 20px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #0668f5, #14a6f5);
  color: #fff;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s;
}

.msa-menu__cta:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}
