/* Shared by the home page and the seven subpages (Dokumi-2ns2). */

/* The menu bar floats as a pill 28px below the top edge. On a phone, upright or held sideways (a
   touch screen at most 500px tall and no wider than the bar's 1080px), the page showed through
   that gap, so there it becomes a band flush with the top. */
[data-nav-shell] { top: 14px; padding: 14px 20px 0; }
[data-nav-shell] > nav { min-height: 62px; padding: 8px 10px 8px 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; }
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) and (max-width: 1080px) {
  [data-nav-shell] { top: 0; padding: 0; }
  [data-nav-shell] > nav { border: 0; border-bottom: 1px solid var(--wa-border); border-radius: 0; }
}

/* On a screen at most 500px tall (a phone held sideways) the bar's 62px took too much of it. 48px
   still holds the 44px buttons. */
@media (max-height: 500px) {
  [data-nav-shell] > nav { min-height: 48px; padding-block: 2px; }
}

/* A finger needs a 44px target on a narrow screen and on any touch screen, including a phone held
   sideways, which can be up to 932px wide. Targets grow through min-height or padding, never bigger
   text; min-height also wins over an inline height. */
@media (max-width: 767px), (pointer: coarse) {
  [data-nav-shell] > nav > a:first-child,
  [data-nav-shell] > nav button { min-height: 44px; }
  [data-nav-links] a, [data-nav-signin] { display: inline-flex; align-items: center; min-height: 44px; }
  /* The link columns' inline 11px gap goes, so the 44px links meet without overlapping. The 28px
     logo link grows to 44px without moving, its margin taking back the 8px above and below. */
  footer a { display: flex; align-items: center; min-height: 44px; }
  footer div:has(> a + a) { gap: 0 !important; }
  footer a:has(> img) { margin-block: -8px; }
}
