a, button, .button {
  min-height: 44px;
  box-sizing: border-box;
}
a {
  display: inline-flex;
  align-items: center;
}
.brand, header a, #main-nav a, #main-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.a2hs-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  margin: 16px 0 24px;
}
.a2hs-title {
  color: #fff5e9;
  font-weight: 750;
  margin: 0 0 8px;
}
.a2hs-card p { margin: 0 0 12px; }
.a2hs-card button { width: 100%; margin-top: 8px; }
@media (max-width: 700px) {
  body:has(#main-nav) {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  #main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    border-block: 0;
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 6px 4px env(safe-area-inset-bottom, 0px);
  }
  #main-nav a,
  #main-nav button {
    flex: 1;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 4px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  /* Phone tab bar: 4 tabs max. Log out lives on the Me page. */
  #main-nav .nav-logout { display: none; }
}
@media (display-mode: standalone) {
  .skip { display: none; }
  header .button { display: none; }
}
.me-logout { margin: 32px 0 8px; }
.me-logout button { width: 100%; }
