/* ============================================================
   CKB-WEB-MOBILE-RESPONSIVE-R2-R1
   Compact Mobile Footer Reclosure

   Scope: compact the existing footer on <= 860px without removing
   content or changing the desktop footer. Gallery, navigation,
   calendar and detail layouts remain owned by earlier layers.
   ============================================================ */

@media (max-width: 860px) {
  .site-footer-modern .site-footer-inner {
    width: calc(100vw - 24px) !important;
    padding-top: 32px !important;
    padding-bottom: 22px !important;
  }

  .footer-brandline h2 {
    margin-bottom: 22px !important;
    font-size: clamp(22px, 6vw, 24px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
  }

  /* Address + contact share the first row; Newsletter spans below. */
  .footer-modern-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 18px !important;
    row-gap: 24px !important;
    align-items: start !important;
  }

  .footer-newsletter-col {
    grid-column: 1 / -1 !important;
    padding-top: 2px;
  }

  .footer-modern-col .footer-label {
    margin-bottom: 10px !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    letter-spacing: .075em !important;
  }

  .footer-modern-col p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .footer-modern-col .footer-muted {
    margin-top: 8px !important;
  }

  .footer-contact-actions {
    margin-top: 16px !important;
  }

  .footer-contact-actions > a,
  .footer-newsletter-cta {
    min-height: 38px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    letter-spacing: .025em !important;
    padding-bottom: 2px !important;
  }

  .footer-social-wrap {
    margin-top: 16px !important;
  }

  .footer-social-label {
    margin-bottom: 9px !important;
    font-size: 10.5px !important;
  }

  .footer-social-row {
    gap: 5px !important;
    flex-wrap: wrap !important;
  }

  .footer-social-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .footer-newsletter-col > p:not(.footer-label) {
    max-width: 560px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  .footer-newsletter-cta {
    margin-top: 13px !important;
  }

  .site-footer-modern .footer-bottom {
    margin-top: 24px !important;
    padding-top: 14px !important;
  }

  /* Keep all legal destinations but collapse the former tall list into two lines. */
  .site-footer-modern .footer-legal {
    display: flex !important;
    flex-wrap: wrap !important;
    grid-template-columns: none !important;
    gap: 8px 18px !important;
    align-items: center !important;
  }

  .site-footer-modern .footer-legal a {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    letter-spacing: .055em !important;
  }

  .site-footer-modern .footer-legal a:first-child {
    flex-basis: 100%;
  }
}

/* Very narrow phones keep the same two-column information model.
   Long address strings may wrap naturally; content is not removed. */
@media (max-width: 360px) {
  .footer-modern-grid {
    column-gap: 14px !important;
    row-gap: 22px !important;
  }
  .footer-modern-col p,
  .footer-newsletter-col > p:not(.footer-label) {
    font-size: 14.5px !important;
  }
  .footer-social-icon {
    width: 32px !important;
    height: 32px !important;
  }
}
