/*
 * Final mobile accessibility contract.
 * This file must remain the last stylesheet in the shared bundle so page-level
 * density rules cannot reduce controls below Safari's focus-zoom threshold.
 */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body,
a,
button,
input,
select,
textarea,
label,
summary,
[role="button"],
[role="tab"] {
    /* Keeps pan and pinch zoom, but removes the double-tap zoom gesture. */
    touch-action: manipulation;
}

@media (max-width: 760px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
    select,
    textarea {
        /* Safari/iOS zooms focused form controls rendered below 16px. */
        font-size: 16px !important;
        line-height: 1.5;
    }

    button,
    [role="button"],
    [role="tab"] {
        font-size: max(14px, 1em) !important;
    }

    small,
    .field-label,
    .field-hint,
    .section-copy,
    .item-meta,
    .feedback,
    .booking-detail,
    .service-card p,
    .scheduler-step-note,
    .scheduler-week-day-label,
    .scheduler-week-day-state,
    footer {
        font-size: 14px !important;
        line-height: 1.5;
    }
}
