/* Tap size on phones and tablets. Every page loads this after its own styles.
   44 × 44 px is Apple's minimum touch target (WCAG 2.5.5); the floor uses iPads and phones, often with gloves.
   Only touch screens (pointer: coarse) are changed, so the desktop layout stays as it was. Sizes are minimums:
   a control that is already bigger is left alone. Links inside running text are exempt (WCAG's inline exception);
   tick boxes grow to 24 px and their label row to 44 px, so the whole row is the target. Display is never changed
   here (a page's own block / flex / grid layout stays); an inline link styled as a button gets its size from its page. */
@media (pointer: coarse) {
    button, .btn, .t-btn, a.btn, a.t-btn, a.brand-icon, input[type=button], input[type=submit], input[type=reset],
    select, input:not([type]), input[type=text], input[type=search], input[type=number], input[type=email],
    input[type=tel], input[type=password], input[type=date], input[type=time], input[type=datetime-local],
    input[type=month], input[type=url], textarea, summary {
        min-height: 44px !important;
    }
    /* Width only for the one-character buttons (↻, ‹ ›, −/+, ×). A min-width on every button would replace the
       automatic "never narrower than the label" minimum of flex and grid items, so tab bars squeezed their labels
       over each other (MyClock Admin tabs, QA 2026-10-25). */
    .icon, .btn.icon, .t-btn.icon, a.brand-icon, button.step, #refresh, #menuToggle, #focusBtn, #pubRefresh,
    .qty button, button.close, .x, [aria-label="Close"] {
        min-width: 44px !important;
    }
    input[type=checkbox], input[type=radio] { width: 24px !important; height: 24px !important; flex: none; }
    label:has(> input[type=checkbox]), label:has(> input[type=radio]) { min-height: 44px; }   /* applies where the page lays the label out as a block or flex row */
    input[type=file] { min-height: 44px; }
}
