/*
 * Site-wide mobile fixes (loaded after each page's own styles).
 * Keeps the top bar (logo, "Join a demo", Menu) inside the screen on phones.
 */
html, body { max-width: 100%; }
img { max-width: 100%; }
/* Photos and icons in a row keep their size; only the large founders photo may shrink. */
[style*="display: flex"] > img { flex-shrink: 0; }
img[style*="flex: 0 0 320px"] { flex-shrink: 1 !important; min-width: 0; }

/* Big headings with long words ("participants", "certification") must fit small phones. */
@media (max-width: 420px) {
  h1 { font-size: clamp(28px, 8.6vw, 36px) !important; overflow-wrap: break-word; }
  h2[style*="font-size: 3"], h2[style*="font-size: 4"], h2[style*="font-size: 5"] { font-size: clamp(24px, 7.4vw, 30px) !important; overflow-wrap: break-word; }
}

@media (max-width: 560px) {
  .ax-h-in { padding: 10px 16px !important; gap: 8px !important; }
  .ax-logo img { height: 28px !important; }
  .ax-r { gap: 8px !important; min-width: 0; }
  .ax-r .ax-btn { padding: 9px 14px !important; font-size: 14px !important; }
  .ax-mp { padding: 12px 16px 20px !important; }
  .ax-f-in { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Card grids with wide minimum columns become a single column on small phones. */
@media (max-width: 420px) {
  [style*="minmax(2"], [style*="minmax(3"], [style*="minmax(4"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="display: grid"] > *, [style*="display: flex"] > * { min-width: 0; }
}

@media (max-width: 374px) {
  .ax-logo img { height: 24px !important; }
  .ax-r .ax-btn { padding: 8px 10px !important; font-size: 13px !important; }
}

/* Mobile menu: hamburger icon that turns into a close (X) icon when open. */
.ax-mob summary {
  width: 44px; height: 44px; padding: 0 !important; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px !important; font-size: 0 !important;
}
.ax-mob summary:focus-visible { outline: 2px solid #5878BB; outline-offset: 2px; }
.ax-burger { position: relative; display: block; width: 22px; height: 16px; }
.ax-burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: #1A204C; transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.ax-burger span:nth-child(1) { top: 0; }
.ax-burger span:nth-child(2) { top: 7px; }
.ax-burger span:nth-child(3) { top: 14px; }
.ax-mob[open] .ax-burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.ax-mob[open] .ax-burger span:nth-child(2) { opacity: 0; }
.ax-mob[open] .ax-burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
@media (max-width: 374px) { .ax-mob summary { width: 40px; height: 40px; } }
