/* ==========================================================
   GSEWS Student Access Integration
   Offline prototype only.
========================================================== */

.gsews-student-access-menu {
  width: 310px;
  padding: 10px;
  z-index: 10020;
}

.gsews-student-access-menu-head {
  padding: 8px 9px 10px;
  border-bottom: 1px solid #e7eef7;
}

.gsews-student-access-menu-head > span,
.gsews-student-access-menu-head > small {
  display: block;
}

.gsews-student-access-menu-head > span {
  color: #10233e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.gsews-student-access-menu-head > small {
  margin-top: 3px;
  color: #63758c;
  font-size: 10.5px;
  line-height: 1.45;
}

.gsews-student-access-menu .gsews-student-access-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid #e3ebf5;
  background: #fff;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.gsews-student-access-menu .gsews-student-access-option:hover,
.gsews-student-access-menu .gsews-student-access-option:focus-visible {
  border-color: #b7d1ee;
  background: #f4f9ff;
  transform: translateY(-1px);
}

.gsews-student-access-option-icon {
  width: 38px;
  height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eaf3ff;
  color: #0b58b5;
}

.gsews-student-access-option.is-register .gsews-student-access-option-icon {
  background: #eaf8f2;
  color: #087b5c;
}

.gsews-student-access-option-icon svg,
.gsews-student-access-option-arrow svg {
  width: 18px;
  height: 18px;
}

.gsews-student-access-option-icon svg {
  fill: currentColor;
}

.gsews-student-access-option.is-register .gsews-student-access-option-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.gsews-student-access-option-copy,
.gsews-student-access-option-copy strong,
.gsews-student-access-option-copy small {
  min-width: 0;
  display: block;
}

.gsews-student-access-option-copy strong {
  color: #15263e;
  font-size: 12.5px;
  line-height: 1.25;
}

.gsews-student-access-option-copy small {
  margin-top: 3px;
  color: #65778d;
  font-size: 10.5px;
  line-height: 1.35;
}

.gsews-student-access-option-arrow {
  display: inline-flex !important;
  color: #7790ac;
}

.gsews-student-access-option-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gsews-student-access-security-note {
  margin: 9px 8px 2px;
  padding-left: 16px;
  position: relative;
  color: #74859a;
  font-size: 10px;
  line-height: 1.4;
}

.gsews-student-access-security-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: .24em;
  width: 9px;
  height: 9px;
  border: 2px solid #0a8f68;
  border-radius: 50%;
}

.gsews-mobile-student-note {
  margin: -2px 0 10px;
  color: #65778c;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

.gsews-footer-student-links .gsews-footer-portal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #d8e9ff;
  font-weight: 700;
}

.gsews-footer-student-links .gsews-footer-portal-link span {
  color: #69a8f2;
  transition: transform .2s ease;
}

.gsews-footer-student-links .gsews-footer-portal-link:hover span,
.gsews-footer-student-links .gsews-footer-portal-link:focus-visible span {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .gsews-mobile-student-access {
    text-align: center;
  }

  .gsews-mobile-student-actions a {
    min-height: 46px;
  }

  .gsews-footer-student-links .gsews-footer-portal-link {
    min-height: 40px;
    padding: 0 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gsews-student-access-menu .gsews-student-access-option,
  .gsews-footer-student-links .gsews-footer-portal-link span {
    transition: none;
  }
}

/* The legacy baseline contains older mobile-panel rules with !important.
   Preserve the approved right-side drawer architecture. */
@media (max-width: 1024px) {
  .gsews-phase1-header .gsews-mobile-menu-panel {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10020 !important;
    display: block;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-panel[hidden] {
    display: none !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-backdrop {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(5,21,43,.48) !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-drawer {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(88vw, 360px) !important;
    max-width: 360px !important;
    min-height: 100% !important;
    padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: -18px 0 50px rgba(4,26,58,.20) !important;
  }

  .gsews-phase1-header .gsews-mobile-navigation {
    display: block !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-panel .gsews-mobile-menu {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    list-style: none !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-panel .gsews-mobile-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-panel .gsews-mobile-menu a {
    display: flex !important;
    min-height: 45px !important;
    width: 100% !important;
    padding: 0 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #17243a !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    text-align: center !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-head,
  .gsews-phase1-header .gsews-mobile-student-access,
  .gsews-phase1-header .gsews-mobile-menu-contact {
    display: flex;
  }

  .gsews-phase1-header .gsews-mobile-menu-head {
    align-items: center !important;
    justify-content: space-between !important;
  }

  .gsews-phase1-header .gsews-mobile-student-access {
    display: block !important;
  }

  .gsews-phase1-header .gsews-mobile-student-actions,
  .gsews-phase1-header .gsews-mobile-menu-contact {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-contact .gsews-mobile-guidance {
    grid-column: 1 / -1 !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-toggle[aria-expanded="true"] {
    background: #0b4fb3 !important;
    border-color: #0b4fb3 !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-toggle[aria-expanded="true"] .gsews-mobile-menu-line {
    background: #fff !important;
  }
}
@media (max-width: 1024px) {
  .gsews-phase1-header .gsews-mobile-menu-panel {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  .gsews-phase1-header .gsews-mobile-menu-drawer {
    height: 100vh !important;
    height: 100dvh !important;
  }
}
