/* File: D:\Google Drive\MB-Workspace\manifestbitch\assets\css\mobile-fix.css */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-shell {
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-rows: auto auto auto;
    overflow-x: hidden;
  }

  .site-header {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .header-logo-wrap {
    display: none;
  }

  .header-logo {
    position: relative;
    top: auto;
    left: auto;
    height: 120px;
    margin: 0 auto 0.75rem;
  }

  .header-phrase-wrap {
    padding: 0.5rem;
  }

  .phrase {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }

  .site-main {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    overflow: visible;
  }

  .left-pane {
    width: 100%;
    overflow: visible;
  }

  .left-pane__inner {
    height: auto;
    padding: 1rem;
    overflow: visible;
  }

  .page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .nav-link {
    width: 100%;
    min-height: 44px;
    font-size: 0.8rem;
    text-align: center;
  }

  .nav-group {
    grid-column: 1 / -1;
  }

  .essay-submenu {
    max-height: 180px;
  }

  .right-pane {
    width: 100%;
    min-height: 65vh;
    padding: 0.75rem;
    overflow: hidden;
  }

  .reader-stage {
    min-width: 0;
    width: 100%;
    height: 65vh;
    margin: 0;
    padding: 0.35rem;
  }

  .document-frame {
    width: 100%;
    height: 100%;
    max-width: none;
  }

  .site-shell > img[src*="mbgirl"] {
    position: fixed !important;
    right: 0.5rem !important;
    bottom: 4.75rem !important;
    height: 145px !important;
    width: auto !important;
    z-index: 50 !important;
    opacity: 0.85;
    pointer-events: none;
  }

  .site-footer {
    min-height: auto;
    padding: 0.75rem 1rem;
  }

  .footer-line {
    font-size: 0.72rem;
  }

  .footer-disclaimer {
    font-size: 0.58rem;
    line-height: 1.35;
  }
}

/* File: D:\Google Drive\MB-Workspace\manifestbitch\assets\css\mobile-fix.css */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10001;
    width: 42px;
    height: 36px;
    border: 1px solid rgba(143, 191, 155, 0.45);
    border-radius: 10px;
    background: rgba(2, 5, 4, 0.88);
    color: rgba(242, 242, 242, 0.95);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
  }

  .left-pane {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: min(78vw, 280px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    background: rgba(2, 5, 4, 0.96);
    border-right: 1px solid rgba(143, 191, 155, 0.25);
    overflow-y: auto;
  }

  body.menu-open .left-pane {
    transform: translateX(0);
  }

  .left-pane__inner {
    padding: 4rem 0.75rem 1rem;
  }

  .page-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .nav-link {
    min-height: 32px;
    height: 32px;
    padding: 0.2rem 0.55rem;
    font-size: 0.76rem;
    border-radius: 8px;
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .right-pane {
    min-height: calc(100vh - 170px);
    padding: 0.5rem;
  }

  .reader-stage {
    min-width: 0;
    width: 100%;
    height: calc(100vh - 185px);
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}