/* G-LP-QA-REAL-FIX-01-R4 — targeted iPad REAL-07/08 corrections.
   R3 swipe handler and R3 stylesheet are no longer loaded.
   Original coach cards, portrait source files, iPhone styling, focus visibility,
   modal behaviour, and the original rail button/counter JS remain unchanged. */

/* REAL-08: use the same browser-driven horizontal pan as on iPhone.
   Restore scroll snap, which an earlier tablet/desktop override disabled.
   Do NOT use pan-y or custom touchend/scrollTo on the coach rail. */
@media (min-width:761px) and (pointer:coarse) {
  #coaches .coach-grid {
    touch-action:auto;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:0;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
  }
  #coaches .coach-grid > .coach-card {
    touch-action:auto;
    scroll-snap-align:start;
    scroll-snap-stop:normal;
  }
  /* Suppress sticky tablet hover-only lift, retain keyboard focus styles. */
  #coaches .coach-card:hover { transform:none; }
}

/* REAL-07: portrait iPad photographs, equal visual hairline/headroom target.
   These are per-asset adjustments within the existing fixed card frames.
   0/1/2 retain their previously approved crop, now listed as the reference;
   do not stretch, reconstruct, or alter any original image file. */
@media (min-width:761px) and (max-width:1100px) and (orientation:portrait) {
  #coaches .coach-card .coach-visual {overflow:hidden;}
  /* Masagome / Itaya / Tokida: existing full-bleed top framing is the reference. */
  #coaches .coach-card[data-coach="0"] .coach-portrait {object-position:50% 0%;}
  #coaches .coach-card[data-coach="1"] .coach-portrait {object-position:50% 0%;}
  #coaches .coach-card[data-coach="2"] .coach-portrait {object-position:50% 0%;}
  /* Eri's landscape source has an intrinsic black upper background. */
  #coaches .coach-card[data-coach="3"] .coach-portrait {
    top:-5%;height:108%;object-position:40% 50%;transform:none;
  }
  /* Erick: do not reintroduce the 10–12px top gap seen in R1/R2. */
  #coaches .coach-card[data-coach="4"] .coach-portrait {
    top:0;height:100%;object-position:50% 19%;transform:none;
  }
  /* Gongman: slightly reduce larger original hairline margin, keep 120% frame zoom. */
  #coaches .coach-card[data-coach="5"] .coach-portrait {
    top:-17%;height:120%;object-position:50% 50%;
  }
}
