/* Phones (under 640 px) on the six older tools (ArchivePro, Epoch Converter, Favicon Generator, Lorem Ipsum,
   System Intelligence, UUID Generator) and their help and FAQ pages: text at 16 px and tap targets of 44 px
   (AdSense audit H-04, 8 Oct 2026). Linked last on each page; Tailwind's utilities sit in a cascade layer, so these
   plain rules win over them. Larger screens are unchanged. */
@media (max-width: 639.98px) {
    /* Text: small-text utilities and what they contain */
    :is(main, footer, aside, [role="dialog"], .fixed) :is(p.text-sm, p.text-xs, li.text-sm, li.text-xs, td.text-sm, td.text-xs, dd.text-sm),
    :is(main, footer, aside) :is(.text-sm, .text-xs) :is(p, li, td),
    main li, main td { font-size: 1rem; line-height: 1.5rem; } /* not the brand lines in headers */

    /* Tap targets */
    main button, header button, nav button, aside button, select, summary, [role="button"],
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="color"]) { min-height: 44px; }
    label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { min-height: 44px; display: inline-flex; align-items: center; }
    footer li > a, nav li > a, nav a.block, main a.toc-link { display: flex; align-items: center; min-height: 44px; }
    main li > a:only-child { display: inline-block; padding-block: 12px; }
    footer li > button { display: flex; align-items: center; min-height: 44px; }
    footer h3 > a { display: inline-flex; align-items: center; min-height: 44px; }
    main .grid > a:not(:has(div, p, h2, h3, h4)) { display: flex; align-items: center; min-height: 44px; } /* text links only; card links keep their layout */

    /* Icon-only buttons: 44 px wide as well */
    header button, nav button, .btn-icon, .btn-ghost, #closeMobileMenu, #advancedFiltersBtn, #gridViewBtn, #listViewBtn,
    aside button.p-1, main button.w-7, main button.w-9 { min-width: 44px; }
    button.flex-shrink-0 { min-width: 44px; min-height: 44px; }
    #closeMobileMenu { min-height: 44px; }
    aside button.text-xs, footer li > a { min-width: 44px; }

    /* The site footer's bottom line */
    .site-footer .footer-bottom p { font-size: 1rem; }
}
