/* One mobile frame for Home, Book and every account section. */
.mobile-header-actions,.mobile-header-auth { display: none; }
.rider-dock { display: none; }

@media (max-width: 720px) {
  :root { --dock-height: calc(3.875rem + env(safe-area-inset-bottom)); }
  body { display: flex; flex-direction: column; min-height: 100svh; padding-bottom: 0; }
  body.admin-bar { min-height: calc(100svh - var(--wp-admin--admin-bar--height, 46px)); }
  body:has(.rider-dock) { padding-bottom: var(--dock-height); }
  body .app-main { flex: 1 0 auto; width: 100%; min-height: 0; }
  body .app-main h1 { min-width: 0; overflow-wrap: anywhere; }
  body .site-header {
    display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: space-between;
    width: calc(100% - 2 * clamp(16px, 5vw, 24px)); min-height: 64px; height: auto;
    margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 0 10px; gap: 16px; border-bottom: 1px solid var(--nrc-line);
  }
  body .site-header .site-brand { min-height: 44px; }
  body .site-header .site-brand img { width: 112px; }
  body .site-header .primary-nav { display: none; }
  body .site-header .mobile-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; max-width: 100%; }
  body .site-header :is(.mobile-header-home,.mobile-header-auth) {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    min-height: 44px; padding: 8px 0 8px 12px; color: var(--nrc-heading);
    font: 600 1rem/1.5 var(--font-sans); text-decoration: none;
  }
  body .site-header .mobile-header-auth:hover { text-decoration: underline; text-underline-offset: 3px; }
  body .site-header .mobile-header-home:hover, body .site-header .mobile-header-home[aria-current=page] { text-decoration: underline; text-underline-offset: 3px; }
  .account-design .rider-logout { display: none; }
  body .site-footer { flex: none; margin-top: 0; }
  .rider-dock {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nrc-line); background: white;
  }
  .rider-dock a { display: grid; gap: 2px; align-content: center; justify-items: center; min-height: 3.1875rem; min-width: 0; color: var(--nrc-muted); font-size: .75rem; text-decoration: none; overflow-wrap: anywhere; }
  .rider-dock a[aria-current=page] { font-weight: 700; color: var(--nrc-green); }
  .rider-dock a span { display: grid; place-items: center; width: 42px; height: 24px; border-radius: 16px; }
  .rider-dock a[aria-current=page] span { background: var(--nrc-sage); }
  .rider-dock svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
}
