/* Phone lock. The header is the status bar (Rule 15 kit paints the clock).
   Sideways motion stays inside a scroller and does not drag the page. */
:root { --header-h: calc(64px + env(safe-area-inset-top, 0px)); }

html {
  background: #f4f1e9;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
  touch-action: pan-y;
}

body {
  width: 100%;
  max-width: 100%;
  padding-top: var(--header-h);
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

body:before { z-index: 1; }

.nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: auto;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: border-box;
  background: #f4f1e9;
  -webkit-user-select: none;
  user-select: none;
}

footer {
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

@media (hover: none) and (pointer: coarse) {
  html { scroll-behavior: auto; }
  a, button { touch-action: manipulation; }
}
