/* Compact mobile location guide: map first, then four benefits in a 2 x 2 grid. */
@media (max-width: 640px) {
  html body:not(.home) main.detail-page--location .location-reference-page {
    width: calc(100% - 32px) !important;
    padding: 20px 0 38px !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-intro {
    margin: 0 0 18px !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-intro > span,
  html body:not(.home) main.detail-page--location .location-reference-intro > p {
    display: none !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-intro h2 {
    font-size: 24px !important;
    line-height: 1.28 !important;
    letter-spacing: -.045em !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-map-frame {
    margin: 0 -16px !important;
    border-right: 0 !important;
    border-left: 0 !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-map-frame > img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-map .location-map-open,
  html body:not(.home) main.detail-page--location .location-reference-map figcaption {
    display: none !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-values {
    padding-top: 26px !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-values > header {
    display: block !important;
    padding-bottom: 16px !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-values > header > span {
    display: none !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-values h2 {
    font-size: 21px !important;
    line-height: 1.28 !important;
    letter-spacing: -.04em !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid article,
  html body:not(.home) main.detail-page--location .location-reference-grid article:nth-child(3) {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 15px 12px 16px !important;
    border-left: 1px solid var(--location-line) !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid article:nth-child(2n) {
    border-left: 0 !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid article b {
    margin: 0 0 9px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid article > span {
    margin-bottom: 4px !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
    letter-spacing: .08em !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid h3 {
    margin: 0 0 6px !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    letter-spacing: -.035em !important;
    word-break: keep-all !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid p {
    font-size: 10.5px !important;
    line-height: 1.48 !important;
    letter-spacing: -.02em !important;
    word-break: keep-all !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-notice {
    margin-top: 14px !important;
    font-size: 9.5px !important;
    line-height: 1.55 !important;
  }
}

@media (max-width: 350px) {
  html body:not(.home) main.detail-page--location .location-reference-grid article,
  html body:not(.home) main.detail-page--location .location-reference-grid article:nth-child(3) {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid h3 {
    font-size: 13px !important;
  }

  html body:not(.home) main.detail-page--location .location-reference-grid p {
    font-size: 9.5px !important;
  }
}
