/*
 * Service & Maintenance — mobile polish gaps vs template
 * Source: html_maket/neweditsandmobile/jby-service-maintenance-2-handoff
 *
 * Most tablet/desktop responsive rules already live in service-maintenance-page.css
 * (page was rebuilt from the earlier jby-service-maintenance-2 template).
 * This file only fills phone/mobile gaps from the handoff: hero svh, ports rail,
 * ≤680 CTAs/help/certs/modal, certs logos spacing.
 * Header/footer not touched.
 */

@media (max-width: 980px) {
  html:has(#jb_body.page-service-maintenance),
  html:has(#jb_body.page-service-maintenance) body {
    overflow-x: hidden;
  }

  /* template: hero sized with svh so CTA clears the mobile browser chrome */
  #jb_body.page-service-maintenance .hero {
    height: 85svh;
    min-height: 520px;
  }

  #jb_body.page-service-maintenance .hero-text {
    padding: 0 24px;
    bottom: 40px;
  }

  #jb_body.page-service-maintenance .hero-text p {
    font-size: 17px;
    line-height: 26px;
    margin-bottom: 24px;
  }

  /* single-line scrollable location filters */
  #jb_body.page-service-maintenance .ports-head h2 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.3;
  }

  #jb_body.page-service-maintenance .loc-filter {
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #jb_body.page-service-maintenance .loc-filter::-webkit-scrollbar {
    display: none;
  }

  #jb_body.page-service-maintenance .loc-filter button {
    font-size: 15px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  #jb_body.page-service-maintenance .certs-logos {
    gap: 56px;
  }

  #jb_body.page-service-maintenance .tmon-inner {
    padding: 0 24px;
  }
}

@media (max-width: 680px) {
  #jb_body.page-service-maintenance .help h2 {
    white-space: nowrap;
    font-size: clamp(16px, 5.8vw, 28px);
    line-height: 1.25;
  }

  #jb_body.page-service-maintenance .help .btn-ghost,
  #jb_body.page-service-maintenance .help .btn {
    width: 100%;
    justify-content: center;
  }

  #jb_body.page-service-maintenance .hero-cta,
  #jb_body.page-service-maintenance .band-ctas {
    width: 100%;
  }

  #jb_body.page-service-maintenance .hero-cta .btn-solid,
  #jb_body.page-service-maintenance .hero-cta .btn-ghost,
  #jb_body.page-service-maintenance .band-ctas .btn-solid,
  #jb_body.page-service-maintenance .band-ctas .btn-ghost {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }

  #jb_body.page-service-maintenance .certs h2 {
    white-space: nowrap;
    font-size: clamp(14px, 4.2vw, 28px);
    line-height: 1.3;
  }

  #jb_body.page-service-maintenance .loc-modal {
    padding: 14px;
  }

  #jb_body.page-service-maintenance .loc-modal-panel {
    max-height: 88vh;
  }

  #jb_body.page-service-maintenance .loc-modal-photo {
    aspect-ratio: 16 / 9;
  }

  #jb_body.page-service-maintenance .loc-modal-body {
    padding: 18px 20px 22px;
  }

  #jb_body.page-service-maintenance .loc-modal-body h3 {
    font-size: 20px;
    line-height: 26px;
  }

  #jb_body.page-service-maintenance .loc-modal-subtitle {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 14px;
  }

  #jb_body.page-service-maintenance .loc-modal-row {
    grid-template-columns: 78px 1fr;
    gap: 14px;
  }

  #jb_body.page-service-maintenance .loc-modal-row dt {
    font-size: 12px;
  }

  #jb_body.page-service-maintenance .loc-modal-row dd {
    font-size: 14px;
    line-height: 20px;
  }

  #jb_body.page-service-maintenance .loc-modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 600px) {
  #jb_body.page-service-maintenance .cert-logo {
    min-width: 44%;
    height: 82px;
    font-size: 16px;
  }
}
