/* touch.css: phone-only fixes for two v2 design findings (SimplifiedOS QA-1098, 17 Nov 2026).
   The SAME FILE ships in artistic-site-rebuild (assets/touch.css, linked last) and in SimplifiedOS
   (public/artistic/v2/touch.css, linked last by ArtisticV2View), so the two do not drift.
   Everything is inside max-width:760px, the site's own phone breakpoint (service-contact.css's .m-bar),
   so 768 and 1440 render exactly as before. Selectors start `html body` so they outrank the page
   sheets that load after this file in the static build, without !important.

   D2. A text field under 16px makes iOS Safari zoom the page when it gets focus. Fields were 15px.

   D3. Tap targets under 44x44 at 390 wide. Each fix grows the HIT AREA, never the type:
     - links in short lines (contact details, crumbs, inline actions): padding with an equal negative
       margin, so the box a finger can hit grows and the layout does not move. Field labels already
       carry their checkboxes' hit area, so those are left alone;
     - footer link lists: each link becomes a 44px row. The list's 11px gap goes, so the rows sit
       closer than 44 + 11 would; the column is about a third taller than before;
     - small buttons: a 44px minimum height or width, a few pixels more box on each. */
@media (max-width: 760px) {
  /* !important, and only here: the form pages size their fields with class selectors that outrank
     any element selector, and this rule exists only to stop the zoom. */
  html body input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']):not([type='submit']):not([type='button']):not([type='reset']):not([type='image']),
  html body select,
  html body textarea {
    font-size: 16px !important;
  }

  html body .footer ul {
    gap: 0;
  }
  html body .footer li a,
  html body .footer li button {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  html body .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }

  /* Padding with an equal negative margin: each rule adds exactly what that link is short of 44px,
     so its outer box, and with it the layout, stays where it was. Where the link already had padding
     or a margin of its own, the values below are the original plus the addition (measured on all 37
     pages of the static build at 390). !important on BOTH halves of each pair, because the pair only
     works together: on two pages a page sheet out-specified the margin but not the padding, and the
     link grew into the layout (measured 17 Nov: the architects hero 18px taller). */
  html body dd a {
    position: relative !important; /* the contact rows are positioned and would otherwise sit over the grown area */
    z-index: 1;
    padding: 12px 8px !important;
    margin: -12px -8px !important;
  }
  html body .contact-details {
    row-gap: 24px; /* was 21px: one 44px link per 23px row needs a 44px pitch, with a pixel to spare */
  }
  html body dd small a {
    padding-block: 15px !important;
    margin-block: -15px !important;
  }
  html body .ask-alt a,
  html body .m-urgent a,
  html body .openings-also a {
    position: relative; /* over the words that follow it on the line */
    z-index: 1;
    padding: 14px 8px !important;
    margin: -14px -8px !important;
  }
  html body .eyebrow a {
    position: relative; /* over the rest of the crumb, which follows it on the line */
    z-index: 1;
    padding: 24px 8px 8px !important; /* mostly upward: the heading sits close below */
    margin: -24px -8px -8px !important;
  }
  html body .gallery-footer-link {
    padding-block: 11px !important; /* was 0 */
    margin-block: -11px !important;
  }
  html body .quiet-route {
    padding-block: 12px !important; /* was 10px */
    margin-block: -2px !important;
  }
  html body .ce-proof-link {
    padding-block: 14px !important; /* was 12px, with a 22px top margin */
    margin-block: 20px -2px !important;
  }
  html body .hero-alt {
    padding-bottom: 20px !important; /* was 2px. Sits flush under a button, so it grows downward only. */
    margin-bottom: -18px !important;
  }

  html body .config-opt,
  html body .spec-expand,
  html body .hb-btn,
  html body .lm-more,
  html body .square,
  html body .ps-ctrl button {
    min-height: 44px;
    min-width: 44px;
  }
  html body .ps-ctrl button {
    position: relative; /* the slides beside them are positioned */
    z-index: 1;
  }
}
