/*
 * openRon-Manager on touch screens (m4.2.15).
 *
 * Every page links this file with media="(pointer: coarse)", just before
 * phone.css: iPads, phones and touch-screen laptops. A desktop with a mouse
 * never applies it.
 *
 * It makes small controls easier to hit with a finger WITHOUT changing how
 * anything looks: each control gets an invisible ::after hit box centred on
 * it, at least 36px each way (a tap on the box is a tap on the control).
 * Nothing here may change a colour, border, font, size or margin that shows;
 * tests/touch-ui.test.mjs allows only the properties a hit box needs.
 *
 * Every control listed is position: static on its own, so making it
 * position: relative (the hit box's anchor) doesn't move it. The template
 * card's Edit button is absolute and only shows on hover, so it is left out.
 */

/* ── Hit boxes: centred, at least 36 x 36 ── */
:is(
  .btn-sm,
  .manager-brand,
  .open-instance-btn,
  .kebab-trigger,
  .detail-value > a,
  #deploy-access-list td > a,
  .tv-tuning-table .tv-edit-btn,
  .tv-queue-section.open .tv-queue-head .tv-edit-btn
) { position: relative; }

:is(
  .btn-sm,
  .manager-brand,
  .open-instance-btn,
  .kebab-trigger,
  .detail-value > a,
  #deploy-access-list td > a,
  .tv-tuning-table .tv-edit-btn,
  .tv-queue-section.open .tv-queue-head .tv-edit-btn
)::after {
  content: "";
  position: absolute;
  top: min(0px, calc(50% - 18px));
  bottom: min(0px, calc(50% - 18px));
  left: min(0px, calc(50% - 18px));
  right: min(0px, calc(50% - 18px));
}
