/* The branch templates, guide shell and corporate homepage share this mobile layer. */
@media (max-width: 700px) {
  :is(.hero-copy, .section-head, .contact-copy, .contact-form, .product-description,
      .detail-aside, .dialog-inner, .help-intro, .help-block, .fleet-card,
      .transport-heading, .transport-feature, .agent-card, .product-card,
      .index-intro, .broadcast-hero-copy, .broadcast-home-copy,
      .monument-teaser-copy, .company-copy, .transport-support, .page-heading,
      .service-row) > p,
  .service-row p,
  .index-row p,
  .support-step p,
  .social-package p,
  .discounts p,
  .award-band p,
  .transport-support p,
  .branch-card .hours,
  .help-block > .visit-note,
  .quick li p,
  .package-summary,
  .package-highlights li,
  .catalog-note,
  .article-body,
  .article-body table,
  .packages-footnote p,
  .detail-disclaimer,
  .form-status,
  .lead-form :is(.field > label, .consent, .consent a),
  #callback-form :is(label, .consent a) {
    font-size: 14px;
  }

  :is(.lead-form, #callback-form) :is(input:not([type="checkbox"]), textarea, select),
  [data-search] {
    font-size: 16px;
  }

  :is(.lead-form, #callback-form) .field > :is(input:not([type="checkbox"]), textarea, select) {
    min-block-size: 44px;
  }

  :is(.lead-form, #callback-form) .consent {
    line-height: 1.55;
  }

  :is(.lead-form, #callback-form) .consent input {
    inline-size: 20px;
    block-size: 20px;
  }

  .btn,
  .hero-actions > .btn,
  .photo-hero-grid .hero-actions > :is(.btn, .text-button),
  .package-card .btn,
  .monument-card .btn,
  .compare-table .btn,
  .help-actions .btn,
  .social-package .link-arrow,
  .transport-heading > .link-arrow,
  .hero-actions .text-action,
  .hero-actions .text-button,
  .link-arrow,
  .package-details-link,
  .compare-button,
  .fleet-request,
  .disclosure-trigger {
    font-size: 14px;
  }

  .btn {
    min-block-size: 44px;
  }

  .hero-actions {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .hero-actions .text-action,
  .hero-actions .text-button {
    min-block-size: 44px;
  }

  .mobile-bar {
    gap: 8px;
  }

  .mobile-bar .btn {
    min-inline-size: 0;
    padding-inline: 12px;
    font-size: 12px;
  }

  .mobile-bar .bar-price {
    min-inline-size: 0;
    font-size: 12px;
    line-height: 1.3;
  }

  .mobile-bar .bar-price strong {
    margin-top: 2px;
    white-space: nowrap;
  }

  .mobile-bar > a:not(.call):not(.bar-price) {
    gap: 5px;
  }

  .city-button,
  .site-header .city-button,
  .site-header .city-display,
  .city-display,
  .city-display > span,
  .compare-table,
  .spec-list > div,
  .fleet-description,
  .fleet-features,
  .footer-top .footer-links a,
  .site-footer .footer-links a,
  .footer-links a,
  .footer-links > span,
  .hub-footer-inner,
  .hub-nav > a,
  .hub-city-picker summary {
    font-size: 12px;
  }

  .hub-city-address {
    font-size: 13px;
  }

  .hub-nav {
    gap: clamp(9px, 3vw, 18px);
  }

  .hub-footer-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .hero-assurance {
    row-gap: 9px;
  }

  .branch-card .branch-bottom {
    gap: 8px 14px;
  }

  .footer-links,
  .site-footer .footer-links {
    gap: 8px 14px;
  }
}

@media (max-width: 370px) {
  .hub-header .header-inner,
  .hub-nav {
    gap: 8px;
  }

  .hub-header .brand img {
    width: 86px;
  }

  .hub-nav > a,
  .hub-city-picker summary {
    white-space: nowrap;
  }

  .hub-nav svg {
    width: 12px;
  }

  .mobile-bar .bar-price {
    flex: 0 1 84px;
  }

  .mobile-bar .bar-price + .btn {
    gap: 5px;
    padding-inline: 8px;
    white-space: nowrap;
  }

  .mobile-bar .bar-price + .btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Phone and tablet type. Layout, responsive navigation and heading scales stay
   in their original stylesheets. */
@media (max-width: 1024px) {
  body :is(.hero-copy, .section-head, .page-heading, .contact-copy, .contact-form,
           .dialog-inner, .detail-aside, .product-description, .agent-card,
           .product-card, .index-row, .index-intro, .quick-heading, .help-intro,
           .transport-feature, .transport-support, .monument-teaser-copy,
           .monuments-hero, .material-card, .monument-services, .company-copy,
           .service-row, .showroom-copy, .showroom-contact-row, .support-step,
           .broadcast-home-copy, .rail-contact, .branch-card) > p:where(:not(.audit-article-byline)),
  body :is(.service-row, .support-step, .index-row, .monument-services) p,
  body :is(.related-content, .package-highlights, .composition-group, .packages-footnote) :is(p, li),
  body :is(.package-summary, .package-alternatives, .package-alternatives a, .detail-disclaimer,
           .package-highlights li span, .catalog-note, .compare-table, .broadcast-home-note,
           .form-status, .form-status a, .help-block .visit-note, .related-content,
           .sources, .faq-item summary, .toc li a, .branch-card .hours),
  body :is(.lead-form, #callback-form) :is(.field > label, label small, .consent, .consent a),
  body :is(.disclosure-trigger, .package-details-link, .compare-button, .link-arrow,
           .text-action, .hero-actions .text-button, .package-card .btn, .monument-card .btn,
           .help-actions .btn, .detail-aside .btn, .dialog-inner .btn, .showroom-page .btn,
           .branch-bottom a, .articles-nav-link) {
    font-size: 14px;
  }

  body :is(.lead-form, #callback-form) :is(input:not([type="checkbox"]), textarea, select),
  body [data-search] {
    font-size: 16px;
  }

  body :is(.header-phone, .header-phone > span, .header-phone small,
           .site-header .header-call, .site-header .header-cta, .site-header .city-button,
           .site-header .city-display, .site-header .city-display span) {
    font-size: 14px;
  }

  body .lead-form .local-form-note {
    font-size: 14px !important;
  }
  body :is(.hero-actions, .broadcast-hero-actions, .photo-hero-grid .hero-actions) > .btn,
  body :is(.fleet-request, .fleet-description, .fleet-features, .fleet-features li span,
           .transport-support-actions a small, .reading-rail .rail-contact,
           .fleet-section .section-head p, .section-head > div > p, .discounts article p, .award-band p, .monuments-hero p,
           .social-package p, .transport-support p, .catalog-bottom-info p, .emergency p, .quick li p,
           .inline-help p span, .inline-help .btn, .lead-form .btn, .product-description .btn,
           .catalog-bottom-info .btn, .award-band .btn, .help-intro .btn,
           .site-header .desktop-nav a, .site-header .main-nav a,
           .mobile-bar .bar-price, .mobile-bar .btn, .mobile-bar > a) {
    font-size: 14px;
  }
}

/* Keep the compact phone labels above and retain the tablet readability scale. */
@media (min-width: 701px) and (max-width: 1024px) {
  body :is(.site-footer .footer-top > p, .footer-top > p, .footer-links a,
           .site-footer .footer-links a, .footer-bottom, .footer-bottom p, .footer-bottom a,
           .footer-bottom span, .hub-footer-inner, .hub-city-address, .hub-nav > a,
           .hub-city-picker summary, .hub-branches h2),
  body :is(.breadcrumbs, .breadcrumbs > a, .breadcrumbs > span,
           .dialog-phone small,
           .detail-aside small, .agent-card small, .showroom-phone small,
           .eyebrow, .hero-location, .eyebrow > span, .article-meta, .article-meta > span,
           .catalog-count, .catalog-list small, .catalog-feature-label small,
           .price-caption, .package-number, .package-tag, .company-image-tag,
           .hero-assurance, .hero-ribbon > span, .mini-prices a, .company-facts span,
           .quick li > span, .showroom-display figcaption, .generated-note,
           .help-brand, .help-call > span, .fleet-make, .fleet-number,
           .transport-cover figcaption, .transport-cover figcaption span,
           .disclosure-trigger > span, .service-row > span:first-child) {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  body :is(.audit-specs, .audit-package-table) :is(th, td),
  body :is(.audit-contact-grid section p, .audit-contact-grid section p a, .audit-article-byline,
           .product-card .product-caption h2, .landscape-item h3, .support-step h3,
           .quick li h3) {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .product-caption h2 {
    overflow-wrap: anywhere;
  }
}

/* The compact tablet header shows the hotline, callback and menu together. */
@media (min-width: 701px) and (max-width: 730px) {
  body .site-header button.btn:is(.header-call, .header-cta) {
    font-size: 13px;
  }
}
