/* ===== shared phone polish (generated into each site's /assets/mobile.css) ===== */
@media (max-width: 640px) {
  /* React pages set small labels as inline styles: lift anything under 12px to 12px */
  [style*="font-size: 9px"], [style*="font-size: 9.5px"], [style*="font-size: 10px"], [style*="font-size: 10.5px"],
  [style*="font-size: 11px"], [style*="font-size: 11.5px"] { font-size: 12px !important; }

  /* bigger tap areas for small text links, without moving anything (padding offset by negative margin) */
  footer a, .footer-row a, .footer-social a, .legal a, .back-link, .article__back {
    display: inline-block; padding-top: 10px; padding-bottom: 10px; margin-top: -10px; margin-bottom: -10px;
  }
}

/* ===== glaiza.digital ===== */
@media (max-width: 640px) {
  /* labels under 12px */
  .svc-card__num, .sw-block__count, .tp-journey b, .stat__label, .case-meta__k, .glance__label, label.field span,
  .metric__l em, .insight__cat, .insight__meta, .hero__meta dt, .tag, .footer__col h5, .snapshot__live,
  .snapshot__big-label span, .certs__label, .tp-media__badge, .portrait__tag, .field__legend, .sw-card__visit,
  .article__row span, .sw-cal-card__kind, .book-trust__k { font-size: 12px !important; }

  /* services carousel dots: same look, fingertip-sized tap area */
  .svc-dots { gap: 14px; min-height: 32px; }
  .svc-dots button { position: relative; }
  .svc-dots button::after { content: ""; position: absolute; inset: -12px -7px; }

  /* small text links in the case study and contact area */
  .case-toggle, .tp-link, .contact a, .book-trust a { display: inline-block; padding-top: 10px; padding-bottom: 10px; margin-top: -10px; margin-bottom: -10px; }
}

/* narrowest phones (360px): stats and the carousel controls fit inside the screen */
@media (max-width: 400px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat { min-width: 0; padding-left: 14px !important; padding-right: 14px !important; }
  .stat__num { font-size: clamp(28px, 9vw, 40px) !important; }
  .svc-bar { gap: 10px; }
  .svc-ctrl { gap: 4px; }
  .svc-ctrl__count i { width: 16px; }
}
