/* V273 — Keep the student side drawer fully expanded in light mode on narrow WebViews.
   V207 owns the mobile drawer geometry; V257 added light-theme overrides after it.
   Reassert the V207 geometry only for the light theme so the menu cannot collapse
   to a single visible row on Android WebView while preserving the dark-mode layout. */

@media (max-width: 980px) {
  html[data-theme="light"] .student-global-header,
  html[data-theme="light"] .student-global-bar {
    overflow: visible !important;
  }

  html[data-theme="light"] .student-global-nav {
    display: flex !important;
    position: fixed !important;
    top: calc(var(--vnt-student-header-base) + var(--vnt-student-safe-top)) !important;
    right: 8px !important;
    left: auto !important;
    bottom: max(8px, var(--vnt-student-safe-bottom)) !important;
    width: min(86vw, 320px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px !important;
    z-index: 240 !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(calc(100% + 20px)) !important;
  }

  html[dir="ltr"][data-theme="light"] .student-global-nav {
    right: auto !important;
    left: 8px !important;
    transform: translateX(calc(-100% - 20px)) !important;
  }

  html[data-theme="light"] .student-global-nav.open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  html[data-theme="light"] .student-global-nav > a {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: space-between !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  html[data-theme="light"] .student-global-logout {
    margin-top: auto !important;
  }
}
