/* Phone-only fixes (mobile review, Nov 2026). Nothing here applies above 760px. */
@media (max-width: 760px) {
  /* 1. Case "Outcomes" numbers stack instead of colliding */
  [data-gl-out] { grid-template-columns: minmax(0, 1fr) !important; row-gap: 48px !important; }

  /* 2. Rx blueprint table: keep columns readable and let it scroll sideways */
  [data-bp-scroll] { overflow-x: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  [role="table"][aria-label^="Service blueprint for duplicate"] { min-width: 820px; }
  [role="table"][aria-label^="Service blueprint for duplicate"] span { overflow-wrap: normal !important; hyphens: manual !important; }
  [role="table"][aria-label^="Service blueprint for duplicate"] span[style*="Geist Mono"] { font-size: 10px !important; }

  /* 3. Swipe hint + edge fade for sideways blueprints (added by mobile.js) */
  .mf-swipe { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .62; }
  .mf-swipe i { font-style: normal; display: inline-block; animation: mfNudge 1.6s ease-in-out infinite; }
  .mf-fade { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }

  /* 4. About menu: sound toggle shows just its icon so it fits */
  header nav button[aria-label="Toggle sound"] [data-l] { display: none !important; }
  header nav button[aria-label="Toggle sound"] { min-width: 32px; min-height: 44px; margin: -12px 0 !important; justify-content: center; }

  /* 5. Keep the footer credit clear of the back-to-top button, hide the chapter pill over the footer */
  footer { padding-bottom: 96px !important; }
  nav[aria-label="Case sections"] { transition: opacity .3s ease !important; }
  html.mf-foot nav[aria-label="Case sections"] { opacity: 0 !important; pointer-events: none !important; }

  /* 6. Bigger tap areas without moving anything visually */
  header nav a { padding: 12px 0 !important; margin: -12px 0 !important; }
  button[aria-label^="Step "] { height: 44px !important; margin: -11px 0 !important; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .mf-swipe i { animation: none; } }
@keyframes mfNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
/* Slice case on phones: shorter page (desktop unchanged) */
@media (max-width: 760px) {
  /* motion study tiles: swipe row instead of three stacked squares */
  [data-mo-tiles] { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px !important; margin-right: -18px !important; padding-right: 18px; }
  [data-mo-tiles] > * { flex: 0 0 78%; scroll-snap-align: start; }
  /* four designed moments: two per row */
  html[data-case="slice"] #breath-1 [data-hm-grid] > div:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 14px !important; }
  /* personas and the pizzeria photo: shorter crops */
  html[data-case="slice"] #who article > div:first-child { height: 240px !important; aspect-ratio: auto !important; }
  html[data-case="slice"] #who article > div:first-child img { height: 100% !important; object-fit: cover !important; }
  html[data-case="slice"] #human [data-px] { height: 320px !important; aspect-ratio: auto !important; }
  html[data-case="slice"] #human [data-px] img { height: 100% !important; object-fit: cover !important; }
  /* shipped flows: the phone and its counter are enough, hide the step list */
  html[data-case="slice"] [data-flow-protos] > div:first-child > div { display: none !important; }
}
/* Slice TV commercial play button */
[data-adplay] { border-radius: 50% !important; width: 84px !important; height: 84px !important; transition: transform .2s ease; }
[data-adplay]:hover { transform: scale(1.06); }
@media (max-width: 760px) { [data-adplay] { width: 64px !important; height: 64px !important; } }
