/* Global safety nets (no visual change on desktop) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
img, video, canvas, iframe, embed, object { max-width: 100%; }
img, video { height: auto; }
iframe, embed, object { display: block; }

/* Phone-only adjustments (below Tailwind's sm breakpoint) */
@media (max-width: 639px) {
    body { font-size: 16px; line-height: 1.6; }

    /* Body copy at least 16px (only raises small text; larger headings keep their size) */
    p, li, td, th, dd, dt, blockquote, label, input, select, textarea, button { font-size: 1rem; }
    .text-xs, .text-sm, .text-\[10px\], .text-\[11px\] { font-size: 1rem !important; }
    /* Short uppercase eyebrow / badge labels stay compact but legible */
    .text-\[10px\].uppercase, .text-\[11px\].uppercase, .text-xs.uppercase { font-size: 0.875rem !important; }

    /* Tap targets at least 44x44 */
    button, select, textarea,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    a.inline-flex, a.flex, a.block, a[class*="px-"], a[class*="py-"],
    label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
        min-height: 44px;
    }
    button, a[class*="px-"] { min-width: 44px; }
    a[class*="px-"]:not(.flex):not(.block):not(.hidden) { display: inline-flex; align-items: center; justify-content: center; }
    a.flex, label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { align-items: center; }
    input[type="checkbox"], input[type="radio"] { width: 1.25rem; height: 1.25rem; }
    /* Inline text links get a taller hit area without shifting layout */
    p a, li a, td a, a[href^="tel:"], a[href^="mailto:"] { padding-block: 0.75rem; }

    /* Prevent horizontal scroll from long words, URLs and emails */
    h1, h2, h3, h4, p, li, a, span, td { overflow-wrap: anywhere; }
    .whitespace-nowrap { white-space: normal !important; }
    td.whitespace-nowrap { white-space: nowrap !important; }
    .tracking-widest { letter-spacing: 0.08em !important; }
    pre, code { white-space: pre-wrap; word-break: break-word; }
    table { max-width: none; }
}

/* Collapsible mobile menu */
#mobile-menu[hidden] { display: none; }
#mobile-menu a { min-height: 48px; }

/* FAQ accordion */
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform 0.2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
