/* Phone-only details (iPhone Safari pass, 2026-11-18; research dossier docs/research-dossiers/2026-11-18-iphone-safari in the vault).
   One file so the touch rules live together and never collide with the other pages' own styles. */

/* No sideways drift: in Italian, a scattered strip of a section title (ana-title.js) ended 0.3 px past the screen edge, so the whole page
   could be dragged 1 px sideways on a 430 px iPhone. <main> is the full width of the screen, so clipping it sideways hides nothing anyone can see
   (the footer already does the same). clip, not hidden: no scroll box, sticky elements keep working. */
main { overflow-x: clip; }

/* The assistant panel takes the focus when a finger opens it (assistant-core.js focusOnOpen): no ring around the whole panel for that,
   a keyboard user still gets it. */
#psaPanel:focus:not(:focus-visible) { outline: none; }
#psaPanel:focus-visible { outline: 2px solid var(--psa-plum, #5B3563); outline-offset: 2px; }

/* Bigger tap areas, same look (Apple asks for 44 x 44 pt; WCAG 2.5.8's minimum is 24 x 24 px). An invisible ::after grows the area each
   control answers to; it never reaches into a neighbour's (each inset is at most half the gap to the next control), so where two controls
   sit closer than 44 px apart the area stops at the midpoint. Phones and tablets only: a mouse aims fine. Measured gaps (WebKit, 390 px):
   intro languages sit 31 px apart (30 px tall), so they cannot grow upward or downward without a layout change: left as they are (>= 24). */
@media (pointer: coarse) {
  a.logo, #introThm, #hmenu .mlangs a, .rp-brand, .rp-langs a, .an-tab, .an-arrow, .an-bottom a, .lg-foot a { position: relative; }
  :is(a.logo, #introThm, #hmenu .mlangs a, .rp-brand, .rp-langs a, .an-tab, .an-arrow, .an-bottom a, .lg-foot a, .psa-launch)::after {
    content: ""; position: absolute; inset: var(--hit, -5px); }
  a.logo { --hit: -5px; }                                   /* 34 -> 44 */
  #introThm { --hit: -2px 0 -7px; }                         /* 35 -> 44 (5 px gap above to FRANÇAIS) */
  #hmenu .mlangs a { --hit: -9px -8px; }                    /* 27 -> 45 tall, ~20 px gaps side by side */
  .rp-brand { --hit: -6px -5px; }                           /* 32/34 -> 44 */
  .rp-langs a { --hit: -8px -1px; }                         /* 29 -> 45 tall; 2 px gaps: they meet in the middle */
  :is(.an-tab, .an-arrow) { --hit: -5px -4px; }             /* 34 -> 44; 8 px gaps */
  .an-bottom a { --hit: -4px -6px; }                        /* 24 -> 32: the two footer rows are 32 px apart */
  .an-bottom nav { row-gap: 8px; }                          /* if the legal links wrap (320-360 px), their 4 px tap edges still never overlap */
  .lg-foot a { --hit: -6px -8px; }                          /* 32 -> 44 */
  .psa-launch { --hit: -2px; }                              /* 41 -> 45 */
}
