/* Phone polish across the whole site (Max, 12 Nov 2026: "make everything sized and perfect for mobile view").
   From a pass over all 43 pages at 375px. Loaded last on every page. Fixes that only make sense on a small screen
   sit inside the media queries; the two heading colours at the top were wrong at every width. */

/* dark call-to-action cards whose heading picked up the page's dark heading colour */
.ap-inner-page main .gr-cta h2,.ap-inner-page main .ac-case-cta h2{color:#fff;-webkit-text-fill-color:#fff}

@media (max-width:980px){
  /* blog tables: let them scroll sideways at a readable size instead of crushing four columns into the screen */
  .post-body table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-left:-4px;margin-right:-4px}
  .post-body table th,.post-body table td{min-width:118px;padding:10px 12px;font-size:14.5px;line-height:1.45;vertical-align:top}
  .post-body table th:first-child,.post-body table td:first-child{min-width:104px}
}

@media (max-width:640px){
  /* the page kept room at the bottom for a sticky button that is no longer shown: it left a white strip under the footer */
  body{padding-bottom:0!important}

  /* floating buttons: one is enough on a phone. The header is always there, so the back-to-top button goes,
     and the WhatsApp pill is a little smaller so it covers less of the page. */
  .float-top{display:none!important}
  .appro-whatsapp-button{right:12px;bottom:calc(12px + env(safe-area-inset-bottom));min-height:48px;padding:7px 14px 7px 9px;gap:8px}
  .appro-whatsapp-button img{width:28px;height:28px}
  .appro-whatsapp-button strong{font-size:12.5px}
  .appro-whatsapp-button small{font-size:11px}
  footer.af{padding-bottom:calc(76px + env(safe-area-inset-bottom))}

  /* small labels: nothing under 11px */
  .apw-status,.apw-number,.apw-tags span,.apw-meta span,.apw-eyebrow,.apc-eyebrow,.apc-hero-divider span,
  .pr-kicker,.pr-best,.pr-ribbon,.pr-list-label,.es-count,.svx-kicker,.sr-eyebrow,.sh-badge,.sh-stage,.post-meta{font-size:11px}
  main.svx .svx-kicker,.apc-hero .apc-hero-divider span{font-size:11px!important}
  .apc-eyebrow{letter-spacing:.08em}

  /* text links: a finger-sized tap area without moving anything */
  .gd-link,.ha-link,.gr-link,.sr-email,.sr-other,.gj-email,.apw-intro a,.apw-link{position:relative}
  .gd-link::before,.ha-link::before,.gr-link::before,.sr-email::before,.sr-other::before,.gj-email::before,.apw-intro a::before,.apw-link::before{content:"";position:absolute;inset:-13px -8px}

  /* "Not sure which package fits? Help me choose": read as one centred sentence instead of two squeezed columns */
  .pr-helper{display:block;text-align:center;padding:12px 16px;line-height:1.5;font-size:14.5px}
  .pr-helper-ico{display:inline-grid;vertical-align:middle;margin-right:8px;width:24px;height:24px;font-size:12.5px}
  .pr-helper-arr{display:inline-block;margin-left:6px}

  /* /app-development "From first call to live on the stores" cards */
  .pc-quote{padding-bottom:58px}
  .pc-quote-split{flex-wrap:wrap;gap:8px 16px}
  .pc-builds li{grid-template-columns:auto minmax(0,1fr);gap:4px 12px}
  .pc-builds li em{grid-column:2}
  .pc-store{grid-template-columns:auto minmax(0,1fr);gap:6px 12px}
  .pc-store .pc-status{grid-column:2;justify-content:flex-start;min-width:0}
  .pc-store .pc-status .b{right:auto;left:14px}
}
