/* Public pages only. :root keeps these mobile rules ahead of page styles
   that are loaded after the shared header. Desktop and print are unchanged. */
@media screen and (max-width: 700px) {
  /* Keep every header control visible, with less space around the two rows. */
  :root .header .header-inner,
  :root .header.is-compact .header-inner { height: 100px; grid-template-rows: 56px 44px; }
  :root .header .header-actions,
  :root .header.is-compact .header-actions { max-height: 44px; }

  /* Inventory: do not reserve blank tag space or push facts down to match
     the neighbouring car's title. Long names and actual tags stay visible. */
  :root :is(.new-inventory, .inventory-catalogue) .car-grid { align-items: start; row-gap: 20px; }
  :root .car-grid:not(.list-mode) .card-body { flex: none; padding-top: 10px; }
  :root .car-grid:not(.list-mode) .car-grade { min-height: 0; }
  :root .car-grid:not(.list-mode) .car-description { min-height: 0; margin: 5px 0 0; white-space: normal; }
  :root .car-grid:not(.list-mode) .car-description:empty { display: none; }
  :root .car-grid:not(.list-mode) .car-spec { margin-top: 8px; }
  :root .car-grid:not(.list-mode) .card-price { margin-top: 8px; padding-top: 7px; }
  :root .car-grid:not(.list-mode) .card-actions { margin-top: 6px; gap: 4px; }
  :root :is(.new-inventory, .inventory-catalogue) .detail-link { min-height: 36px; }
  :root :is(.new-inventory, .inventory-catalogue) .card-line { min-height: 38px; }
  :root .new-inventory.section { padding: 24px 0; }
  :root .new-inventory .home-inventory-links { padding: 6px 8px; margin-bottom: 16px; }
  :root .new-inventory .section-heading { margin-bottom: 16px; }
  :root .new-inventory-bottom { margin-top: 20px; }
  :root .inventory-filter .model-tabs { padding-block: 0; }
  :root .inventory-filter .model-tab { min-height: 46px; min-width: 80px; flex-basis: 80px; padding: 4px; font-size: 18px; gap: 0; }
  :root .inventory-filter .model-tab:first-child { font-size: 13px; }
  :root .inventory-filter .model-tab.maker-tab,
  :root .inventory-filter .model-tab[data-category=OTHER] { font-size: 11px; }
  :root .inventory-filter .filter-scroll { height: 44px; }
  :root .catalogue-categories { padding: 8px 10px 0; }
  :root .inventory-catalogue .stock-filters { padding: 10px; }
  :root .inventory-catalogue.section { padding: 20px 0 32px; }

  /* A smaller vertical rhythm across the public home and information pages. */
  :root .section { padding-block: 30px; }
  :root .section-heading { margin-bottom: 18px; }
  :root .consult-band { padding-block: 20px; }
  :root .feature-copy { padding: 20px; }
  :root .feature-copy .text-link { margin-top: 16px; }
  :root .gstyle-section, :root .about-section { padding-block: 30px; }
  :root .last-contact { padding-block: 30px; }
  :root .last-contact > div { margin-top: 16px; }
  :root .exclusive-section { padding-block: 28px 22px; }
  :root .exclusive-heading { gap: 16px; margin-bottom: 20px; }
  :root .exclusive-grid { gap: 20px; }
  :root .page-heading { padding-block: 18px 20px; }
  :root .stock-back { margin-bottom: 12px; }
  :root .editorial-page { padding-bottom: 40px; }
  :root .editorial-page h2 { margin: 28px 0 12px; }
  :root .editorial-page p { line-height: 1.85; }
  :root .faq details { padding-block: 14px; }
  :root .article-shell { padding-block: 20px 32px; }
  :root .article-heading { margin-block: 20px; }
  :root .article-footer { margin-top: 30px; padding-top: 20px; }
  :root .footer { padding-top: 24px; }
  :root .footer-links { padding-block: 18px; }

  /* Vehicle summaries: four facts in two rows, all values retained. */
  :root .vehicle-layout { gap: 20px; }
  :root .vehicle-summary .detail-price { padding-block: 12px; margin: 14px 0 6px; }
  :root .vehicle-summary .detail-price > span { margin-bottom: 5px; }
  :root .detail-price small { margin-top: 5px; line-height: 1.65; }
  :root .vehicle-summary .spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  :root .vehicle-summary .spec-table > div { display: block; padding-block: 9px; min-width: 0; }
  :root .vehicle-summary .spec-table dt { line-height: 1.5; }
  :root .vehicle-summary .spec-table dd { text-align: left; margin-top: 3px; line-height: 1.5; overflow-wrap: anywhere; }
  :root .vehicle-summary .contact-buttons { margin-block: 16px 10px; gap: 8px; }
  :root .gallery-controls { padding-block: 8px; }
  :root .photo-thumbnails { margin-top: 10px; }
  :root .vehicle-information { padding-block: 28px 24px; }
  :root .vehicle-description { line-height: 1.85; }
  :root .specs-panel { margin-top: 24px; padding: 20px 18px; }
  :root .specs-panel h3 { padding-bottom: 12px; }
  :root .full-specs { line-height: 1.8; }
  :root .vehicle-loan { margin-block: 22px; padding: 18px; gap: 12px; }
  :root .vehicle-loan-content > p { line-height: 1.8; margin-bottom: 12px; }
  :root .ownership-note { padding-block: 22px; }
  :root .return-stock { padding-bottom: 38px; }

  /* Retain the PREMIUM black/gold treatment at the same compact rhythm. */
  :root .premium-vehicle-page .page-heading { padding-block: 18px 20px; }
  :root .premium-vehicle-page .breadcrumbs { margin-bottom: 16px; }
  :root .premium-vehicle-page .vehicle-layout { gap: 20px; }
  :root .premium-vehicle-page .vehicle-summary { padding: 16px; }
  :root .premium-vehicle-page .vehicle-summary h2 { margin-top: 12px; line-height: 1.5; }
  :root .premium-vehicle-page .vehicle-summary .detail-price { padding-block: 12px; margin: 14px 0 6px; }
  :root .premium-vehicle-page .vehicle-summary .detail-price > span { font-size: 13px; margin-bottom: 5px; }
  :root .premium-vehicle-page .vehicle-summary .detail-price strong { font-size: 23px; line-height: 1.4; }
  :root .premium-vehicle-page .detail-price small { line-height: 1.65; }
  :root .premium-vehicle-page .spec-table > div { padding-block: 9px; }
  :root .premium-vehicle-page .spec-table dt { font-size: 13px; }
  :root .premium-vehicle-page .gallery-controls { padding-block: 8px; }
  :root .premium-vehicle-page .contact-buttons .button { min-height: 46px; }
  :root .premium-vehicle-page .vehicle-summary > .text-link { margin-bottom: 6px; }
  :root .premium-vehicle-page .vehicle-information { padding-top: 28px; }
  :root .premium-vehicle-page .section-heading { padding-top: 20px; gap: 12px; }
  :root .premium-vehicle-page .vehicle-description { line-height: 1.85; }
  :root .premium-vehicle-page .full-specs { line-height: 1.8; }
  :root .premium-vehicle-page .specs-panel { padding: 20px 18px; }
  :root .premium-vehicle-page .vehicle-loan { padding: 18px; gap: 12px; }
  :root .premium-vehicle-page .ownership-note { padding-block: 22px; }
  :root .premium-vehicle-page .return-stock { padding-bottom: 38px; }

  /* Form spacing only; keep controls, message generation and confirmation. */
  :root .contact-layout { gap: 22px; padding-bottom: 32px; }
  :root .contact-panel { padding: 18px; }
  :root .contact-panel label { margin-top: 14px; }
  :root .contact-panel textarea { min-height: 180px; }
  :root .contact-method-heading { margin-top: 22px; }
  :root .contact-sidebar { padding-top: 20px; }

  /* The separate parts, goods and collection layouts use the same rhythm. */
  :root .gs-brandbar { padding-block: 18px; }
  :root .gs-hero { padding-block: 24px; }
  :root .gs-section, :root .gs-lip-section, :root .gs-enquiry { padding-block: 34px; }
  :root .gs-section-heading { margin-bottom: 20px; }
  :root .gs-section-heading > p { margin-top: 12px; }
  :root .gs-features article, :root .gs-material-options article { padding-block: 16px; }
  :root .goods-section { padding-block: 32px; }
  :root .goods-section-head { margin-bottom: 18px; }
  :root .goods-categories { padding-block: 16px; }
  :root .goods-order { padding-block: 28px 32px; }
  :root .collection-entry { padding-block: 24px; gap: 18px; }
  :root .collection-facts { padding-block: 12px; gap: 12px 18px; }
  :root .collection-detail-layout { gap: 22px; padding-bottom: 28px; }
  :root .collection-story-section, :root .collection-record-section { padding-block: 28px; }
}
