
@media (max-width: 640px) {

  .beta-bar .beta-pill { display: none !important; }
  .beta-bar .beta-clip, .beta-bar .beta-rotator { flex: 1 1 auto; max-width: none; }
  
  .beta-bar { height: auto !important; min-height: 40px; padding: 5px 0 !important; }
  .beta-bar.is-rotating .beta-clip {
    -webkit-mask-image: none !important; mask-image: none !important; padding-left: 12px;
  }
  .beta-bar .beta-rotator .beta-item { padding-right: 4px; }
  
  header.nav a.logo, header.nav a.logo .logo-mark { width: 94px !important; height: 52px !important; background-size: contain !important; }
  header.nav .nav-inner { min-height: 0; padding-top: 6px; padding-bottom: 6px; }
  header.nav .nav-coffee { padding: 8px 14px; font-size: 0.9rem; min-height: 40px; }

  #chatLauncher { width: 50px !important; height: 50px !important; }
  .chat-teaser { display: none !important; }
  
  .ach-toast { left: 10px !important; right: 72px !important; bottom: 12px !important; max-width: none !important;
    padding: 8px 12px !important; gap: 10px !important; border-radius: 14px !important; }
  .ach-toast * { font-size: 0.82rem !important; line-height: 1.25 !important; }
  .ach-toast svg, .ach-toast img, .ach-toast [class*="icon"] { width: 34px !important; height: 34px !important; min-width: 34px !important; }

  body:has(.hero-map) .hero-map .wow-ui,
  body:has(.hero-map) .hero-map .map-legend,
  body:has(.hero-map) .hero-map .mw-row,
  body:has(.hero-map) .hero-map .map-times,
  body:has(.hero-map) .hero-map .mh,
  body:has(.hero-map) .hero-map .map-label { display: none !important; }
  
  body:has(.hero-map) .tb2-hero { display: none !important; }
  
  body:has(.hero-map) #about:not(.page-first) p:not(:first-of-type) { display: none !important; }
  body:has(.hero-map) #about:not(.page-first) .btn-facebook,
  body:has(.hero-map) #about:not(.page-first) .btn-linkedin,
  body:has(.hero-map) #about:not(.page-first) .btn-foundation { display: none !important; }
  
  body:has(.hero-map) #schedule .countdown { display: none !important; }

  .about-photo-wrap { max-width: 180px !important; margin-left: auto !important; margin-right: auto !important; }
  .about-photo-wrap .badge-row { display: none !important; }
  .about-photo { max-width: 100% !important; height: auto !important; }

  .ftx-logo, .ftx-logo img { max-width: 140px !important; height: auto !important; }

  .taa-link-pill { font-size: 11px !important; }
  main small, section small { font-size: max(11px, 0.85em); }
  .tool-link, .qt-all, .hiw-more, .map-fs-btn, .wow-grow-btn {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 640px) {
  
  .next-class-actions, .replay-more, .ht-actions {
    flex-direction: column !important; flex-wrap: nowrap !important; align-items: center !important; gap: 12px !important; }
  .next-class-actions > .btn, .replay-more > .btn, .ht-actions > .btn {
    width: 100%; max-width: 340px; margin-left: 0 !important; margin-right: 0 !important; justify-content: center; text-align: center; }
  
  .map-toggle button { min-height: 40px; padding: 6px 14px; }
  .stories-pause { min-height: 40px; }
  .sp-copy { min-height: 40px; }
  .dl-listen-btn { min-height: 40px; }
}

@media (max-width: 374px) {
  .dl-grid { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 640px) {
  
  body:has(.hero-map) .hero-map .map-toast,
  body:has(.hero-map) .hero-map .map-badge { display: none !important; }
  body:has(.hero-map) .hero-map .map-toggle { transform: scale(0.85); transform-origin: top right; }

  body:has(.hero-map) #tools .qt-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    overflow: visible !important; margin: 0 !important; padding: 0 !important; }
  body:has(.hero-map) #tools .qt-chip { justify-content: flex-start; min-width: 0; padding: 10px 12px; font-size: 0.86rem; }
  body:has(.hero-map) #tools .qt-chip > *:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hiw-perks { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; max-width: 420px; }
  .hiw-perks li { justify-content: center; padding: 10px 8px; font-size: 0.84rem; text-align: center; }
  .rp-chips { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 6px !important; max-width: 300px; }
  .rp-chips li { justify-content: center; }

  .footer.ftx .ftx-social { gap: 12px; flex-wrap: nowrap; justify-content: center; }
  .footer.ftx .ftx-follow { font-size: 0.95rem; margin-right: 0; }
  .footer.ftx .ftx-social a svg { width: 34px; height: 34px; }
  .footer.ftx .ftx-social a[title="YouTube"] svg { width: 44px; height: 32px; } 
}

@media (max-width: 640px) {
  body:has(.hero-map) .hero-map:not(.map-fs):not(:fullscreen) .map-card { display: none !important; }
  .map-phonebar { display: flex; align-items: center; justify-content: center; gap: 8px 10px; flex-wrap: wrap; padding: 10px 8px 0; } 
  .map-phonebar > * { position: static !important; inset: auto !important; transform: none !important; opacity: 1 !important; margin: 0 !important; }
  .map-phonebar .mapf-counter { order: 1; }
  .map-phonebar .map-live-pill { order: 2; }
  .map-phonebar .map-toggle { order: 3; }
  .map-phonebar .map-fs-btn { order: 4; }
  .map-phonebar .map-live-pill[hidden] { display: none !important; }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="submit"]):not([type="button"]),
textarea, select { font-size: 16px !important; }
