/* mobile-fixes.css
   Corrections for the replica pages from the 27 Nov 2026 mobile audit: carousel swipe on phones, the case study
   gallery carousel, and the Maya orb on phones. Desktop is untouched.
   The grid rules for phones and tablets live in responsive-grid.css (built by scripts/build-responsive-grid.mjs). */

/* Swipe: a carousel reads pointerdown and pointerup. With the default touch action a phone treats a sideways
   drag as its own gesture and cancels the pointer, so the swipe never arrived. Vertical scrolling stays native. */
.user-items-list-carousel__gutter,
.user-items-list-carousel__slides { touch-action: pan-y; }
.user-items-list-carousel img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

/* Case study gallery carousel (built by mobile-fixes.js on phones) */
.ws-gallery { grid-column: 2 / 10; min-width: 0; position: relative; }
.ws-gallery__track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; border-radius: 12px; outline-offset: 3px; }
.ws-gallery__track::-webkit-scrollbar { display: none; }
.ws-gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; position: relative; aspect-ratio: 2 / 3; margin: 0 !important; min-height: 0 !important; height: auto; overflow: hidden; background: #f4f4f2; }
.ws-gallery__slide > .sqs-block, .ws-gallery__slide .sqs-block-content, .ws-gallery__slide .image-block-outer-wrapper, .ws-gallery__slide .fluid-image-animation-wrapper, .ws-gallery__slide .fluid-image-container, .ws-gallery__slide .js-content-mode-element-wrapper, .ws-gallery__slide .intrinsic { height: 100% !important; width: 100% !important; max-width: none !important; }
.ws-gallery__slide img { object-fit: contain !important; width: 100% !important; height: 100% !important; }
.ws-gallery__bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 14px; }
.ws-gallery__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; font: inherit; }
.ws-gallery__btn svg { width: 20px; height: 20px; }
.ws-gallery__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.ws-gallery__btn:focus-visible, .ws-gallery__zoom:focus-visible { outline: 3px solid #4f46e5; outline-offset: 3px; }
.ws-gallery__count { min-width: 64px; text-align: center; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: .04em; }
.ws-gallery__zoom { margin: 12px auto 0; display: block; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid currentColor; background: transparent; color: inherit; font: inherit; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ws-gallery__hint { text-align: center; font-size: 13px; line-height: 1.4; color: #5b5b5b; margin-top: 10px; }

@media (max-width: 767px) {
  /* Maya orb: no repeating tooltip over the page, smaller, inside the safe areas, and it steps aside for buttons */
  #mya-bubble { display: none !important; }
  #mya-wrap { right: max(12px, env(safe-area-inset-right)) !important; bottom: max(14px, env(safe-area-inset-bottom)) !important; transition: opacity .2s ease, transform .2s ease; }
  #mya-btn { width: 52px !important; height: 52px !important; font-size: 10px !important; }
  #mya-wrap.ws-orb-quiet { opacity: 0; pointer-events: none; transform: translateY(8px); }

  /* Footer links are 16px high, below a comfortable touch size. Padding grows the stand-alone links only; links inside a sentence stay inline. */
  footer a { padding-block: 12px; }
  footer p a, footer li a { padding-block: 0; }
}

/* Tablets (touch screens from 768 to 1199px): footer links get the same tap height as on phones */
@media (min-width: 768px) and (max-width: 1199px) and (pointer: coarse) {
  footer a { padding-block: 12px; }
  footer p a, footer li a { padding-block: 0; }
}

/* Footer (shared by every page). On tablets the sign-up form is centred in a tall box that starts level with the line
   introducing it, so the form can print over that line: the box keeps some space above the form.
   The Terms of Service link is the only one not centred in its box; on phones and tablets it matches the others. */
@media (min-width: 768px) and (max-width: 1199px) {
  .fluid-engine.fe-686fb1948b3ae0307d19244a > .fe-block-yui_3_17_2_1_1752480559978_1689 .sqs-block-content { padding-top: 56px; box-sizing: border-box; }
}
@media (max-width: 1199px) {
  .fluid-engine.fe-686fb1948b3ae0307d19244a > .fe-block-b1a10884f86425c740ac pre { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-gallery__track { scroll-behavior: auto; }
  #mya-wrap { transition: none; }
}
