/* Phone settings never break a page (user, 2026-11-22: "make sure that accesability settings on phones does not mess any
   text, layout, or image up. Nothing should be clipped, cut off, moved, etc. It should all look the same").
   What a phone can do to a page: iPhone Display Zoom lays it out 320 wide; Safari's aA page zoom and Chrome's own zoom
   lay it out narrower still (150% → ~262 wide, 200% → ~196); Firefox and Samsung Internet grow only the text, up to 2×.
   (iOS "Larger Text" doesn't reach these pages — they don't use Apple's system-font keyword.) At a phone's normal
   settings — 320 wide and up, the text its own size — nothing here changes a pixel: the rules either only act when a
   thing can't fit, or wait for a screen narrower than any phone draws unzoomed. tests/webkit/phone-a11y.cjs plays each
   setting on every page in Safari's engine.
   Linked on every page just before the shared header's styles, so it wins over a page's own <style>. */

/* the text is the size the page sets — no phone "inflating" some of it on its own (iOS turned sideways, Android's font
   boosting), so every block keeps the same size as its neighbours */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* a word too long for its line breaks rather than running out of its box — only ever when it can't fit whole (it's
   inherited, so every bit of text on the page has it) */
body { overflow-wrap: break-word; }

/* a pill's words may wrap — only ever when it has no room for them on one line (larger text on a narrow phone) — and it is
   never wider than its column, so it never pushes the column past the screen's edge */
.pill { white-space: normal; max-width: 100%; text-align: center; }

/* zoomed past any phone's own width: a button's design width and height give way to the screen, and its words wrap
   inside it instead of pushing it (and the column it's in) past the edge — each still a 48px target (Fitts) */
@media (max-width: 319px) {
  /* a column or a row's item that never set its own least width may shrink below its content's longest line, so a
     grid or row never runs wider than the screen (:where — no specificity: a page's own min-width still wins) */
  :where(body *) { min-width: 0; overflow-wrap: anywhere; }   /* and a word that still can't fit breaks wherever it must */
  .pill, .btn, .btn-line, .btn-cal { min-width: 0 !important; max-width: 100%; height: auto !important; min-height: 48px;
    padding-top: 10px !important; padding-bottom: 10px !important; white-space: normal !important; text-align: center; line-height: 1.15; }
}
