/* Classroom Booking R18 - navigation only, matching original theme.
   Strictly scoped to <=800px; keep other mobile pages and desktop unchanged. */
@media screen and (max-width: 800px) {
  html.mobile-r18-ready .sidebar{padding:11px 15px!important;min-height:0!important;max-width:100%;background:var(--white);border-bottom:1px solid var(--border)}
  html.mobile-r18-ready .sidebar .brand{gap:11px!important;font-size:18px!important;font-weight:700;line-height:1.25;letter-spacing:0;max-width:100%}
  html.mobile-r18-ready .sidebar .brand-mark{width:42px!important;height:42px!important;font-size:24px!important;border-radius:12px}
  html.mobile-r18-ready .sidebar .brand small{font-size:11px!important;line-height:1.6;letter-spacing:0;color:var(--muted)}
  html.mobile-r18-ready .sidebar>nav{display:none!important}
  html.mobile-r18-ready .sidebar>.nav-label{display:none!important}
  html.mobile-r18-ready body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
  html.mobile-r18-ready .mobile-nav-r18,html.mobile-r18-ready .mobile-nav-r18 *{box-sizing:border-box}
  .mobile-nav-r18{position:fixed;z-index:65;left:0;right:0;bottom:0;width:100%;padding:7px max(10px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));background:var(--white);border-top:1px solid var(--border);box-shadow:0 -7px 26px rgba(33,58,50,.09)}
  .mobile-nav-r18-inner{display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;align-items:stretch;gap:4px;max-width:760px;margin:0 auto}
  .mobile-nav-r18-tab{appearance:none;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:58px;border:1px solid transparent;border-radius:12px;padding:6px 2px!important;color:var(--muted);background:transparent;text-decoration:none;font-size:14px!important;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer}
  .mobile-nav-r18-tab.is-current{background:var(--green-light);color:var(--green);border-color:var(--border)}
  .mobile-nav-r18-tab:active{background:var(--green-light)}
  .mobile-nav-r18-tab:focus-visible{outline:2px solid var(--green);outline-offset:1px}
  .mobile-nav-r18-icon{display:inline-flex;justify-content:center;align-items:center;flex:none;width:23px;height:23px}
  .mobile-nav-r18-icon svg{display:block;width:22px;height:22px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
  .mobile-nav-r18-tab-label{font-size:14px;line-height:1.25;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .mobile-nav-r18-sheet{position:fixed;inset:auto 10px calc(78px + env(safe-area-inset-bottom,0px));margin:0 auto;width:min(480px,calc(100% - 20px));max-width:none;max-height:min(68dvh,520px);padding:0;background:var(--white);border:1px solid var(--border);border-radius:18px;box-shadow:0 15px 44px rgba(33,58,50,.2);color:var(--ink);overflow:hidden}
  .mobile-nav-r18-sheet::backdrop{background:rgba(19,34,28,.38)}
  .mobile-nav-r18-sheet:not([open]){display:none}
  .mobile-nav-r18-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 18px 12px;border-bottom:1px solid var(--border)}
  .mobile-nav-r18-sheet-title{display:grid;gap:1px}.mobile-nav-r18-sheet-title strong{font-size:19px;color:var(--ink)}.mobile-nav-r18-sheet-title small{font-size:12px;color:var(--muted)}
  .mobile-nav-r18-close{display:grid;place-items:center;width:42px;height:42px;flex:none;min-height:42px;padding:0;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--green)}
  .mobile-nav-r18-sheet-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:14px;overflow-y:auto;max-height:calc(min(68dvh,520px) - 80px);overscroll-behavior:contain}
  .mobile-nav-r18-sheet-link{display:flex;align-items:center;gap:7px;min-width:0;min-height:54px;padding:11px 9px;border:1px solid var(--border);border-radius:12px;color:var(--ink);background:var(--bg);font-size:14px;font-weight:600;line-height:1.35}
  .mobile-nav-r18-sheet-link[aria-current=page]{background:var(--green-light);color:var(--green)}
  .mobile-nav-r18-sheet-link-icon{display:inline-flex;flex:none;color:var(--green)}
  .mobile-nav-r18-sheet-link .mobile-nav-r18-icon{width:18px;height:18px}
  .mobile-nav-r18-sheet-link .mobile-nav-r18-icon svg{width:17px;height:17px}
  .mobile-nav-r18-sheet-link-text{min-width:0;overflow-wrap:anywhere}
}
@media screen and (max-width: 350px) {
  .mobile-nav-r18{padding-left:5px;padding-right:5px}
  .mobile-nav-r18-inner{gap:1px}
  .mobile-nav-r18-tab{font-size:13px!important;gap:3px;padding:6px 1px!important}
  .mobile-nav-r18-tab-label{font-size:13px}
  .mobile-nav-r18-sheet-link{font-size:13px;padding:9px 7px}
}
