/* iPhone web app: the status bar is see-through, so the dark app bar runs up behind it.
   These keep buttons clear of the notch, the rounded corners and the home bar, in portrait and landscape. */
.appbar { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
main { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
.actionbar, .tabbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.sheet { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.viewer { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
/* stop iOS from bumping the text size up when the phone is turned sideways */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* one-time tip in Safari: how to put it on the Home Screen */
.a2hs { position: fixed; left: 0; right: 0; bottom: calc(5.25rem + env(safe-area-inset-bottom)); z-index: 70; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.a2hs-in { pointer-events: auto; max-width: 30rem; display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--chrome); color: var(--chrome-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: .9375rem; line-height: 1.35; }
.a2hs-in b { font-weight: 600; }
.a2hs-share { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; vertical-align: -0.4rem; color: var(--led); }
.a2hs-share svg { width: 1.25rem; height: 1.25rem; }
.a2hs-x { justify-self: end; min-height: 2.75rem; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--f-body); }
