/**
 * Mobile navigation.
 *
 * The page templates hide the nav links below 860px and put nothing in their
 * place, so narrow windows and every phone lost the menu entirely. This adds
 * the missing control. It loads on every MyCyberStatus page, including the
 * ones that do not load the scanner assets.
 *
 * The templates' own rule (.mcs .nav nav{display:none}) sits in a <style>
 * block inside the body, so it comes after this file in document order. The
 * open-state selector below carries one extra class to outrank it rather than
 * relying on !important, which is reserved here for beating inline styles.
 */

.mcs .mcs-burger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line, #263150);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mcs .mcs-burger:hover { border-color: var(--cy, #35D6F0); }
.mcs .mcs-burger i {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--tx, #E6EBF7);
  transition: transform .18s ease, opacity .18s ease;
}
.mcs .mcs-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mcs .mcs-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.mcs .mcs-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .mcs .nav .w { position: relative; }
  .mcs .mcs-burger { display: flex; }

  /* Extra class outranks the template's display:none. */
  .mcs .nav nav.mcs-navopen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0E1322;
    border-top: 1px solid var(--line2, #1B2338);
    border-bottom: 1px solid var(--line2, #1B2338);
    padding: 6px 0 12px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    max-height: calc(100vh - 62px);
    overflow-y: auto;
  }
  .mcs .nav nav.mcs-navopen a {
    padding: 13px 24px;
    font-size: 15.5px;
    color: var(--tx, #E6EBF7);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
  }
  .mcs .nav nav.mcs-navopen a:last-child { border-bottom: 0; }

  /* The call-to-action link carries inline padding/font-size in the template,
     so beating it here needs !important. */
  .mcs .nav nav.mcs-navopen a.b {
    margin: 12px 20px 2px;
    padding: 13px 18px !important;
    font-size: 15.5px !important;
    text-align: center;
    border-radius: 8px;
    border-bottom: 0;
  }
}

@media (min-width: 861px) {
  /* Never leave the panel open when the window grows back. */
  .mcs .nav nav.mcs-navopen { position: static; flex-direction: row; box-shadow: none; padding: 0; background: none; border: 0; }
}

/* Keep the header above ordinary theme furniture regardless. */
.mcs .nav { z-index: 120; }
