/* Target-size floor (WCAG 2.5.8: 24 CSS px) for standalone links and buttons.
   Padding only: these rules never change `display`, so Tailwind's `hidden`, `flex` and `block` keep working.
   Links inside a sentence are exempt and untouched; a link that already has its own padding classes is left as designed. */
:is(.flex, .grid, .inline-flex) > a:not([class*="p-"]):not([class*="py-"]),
:is(li, td, th, dd, dt):not(.prose) > a:only-child:not([class*="p-"]):not([class*="py-"]) {
  padding-block: 0.25rem;
}
button, summary, select { min-height: 24px; }
input[type="radio"], input[type="checkbox"] { width: 1.125rem; height: 1.125rem; accent-color: #14b8a6; }
label:has(> input[type="radio"]), label:has(> input[type="checkbox"]) { min-height: 24px; }

/* Native dropdown lists: the page's text colour on a solid background in both themes
   (otherwise light text can land on the browser's white list in dark mode and the options look empty) */
html:not(.light) select, html:not(.light) input, html:not(.light) textarea { color-scheme: dark; }
html.light select, html.light input, html.light textarea { color-scheme: light; }
select option, select optgroup { background-color: rgb(var(--slate-900)); color: rgb(var(--slate-100)); }
html.light select option, html.light select optgroup { background-color: #fff; color: #0f172a; }
