/* MySmall.City logo and footer layout correction v1.0.1.
   All selectors scoped to the existing homepage; no city cards or links changed. */
.msc-v16 .msc-header {
  min-height: 144px !important;
  padding-top: 22px !important;
  padding-bottom: 18px !important;
  overflow: visible !important;
}
.msc-v16 .msc-header .msc-brand {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 100px !important;
  overflow: visible !important;
  flex: 0 1 auto;
}
.msc-v16 .msc-header .mysmall-approved-logo {
  display: block !important;
  width: clamp(190px, 19vw, 270px) !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 105px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  top: 15px !important;
  transform: none !important;
  clip-path: none !important;
  visibility: visible !important;
}
/* Preserve original three-part footer layout and city links. */
.msc-v16 .msc-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 14px 20px !important;
  min-height: 94px !important;
  padding: 14px 2.5% !important;
}
.msc-v16 .msc-footer .msc-footer-brand {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  overflow: visible !important;
}
.msc-v16 .msc-footer .mysmall-approved-logo {
  display: block !important;
  width: 168px !important;
  height: auto !important;
  max-height: 70px !important;
  object-fit: contain !important;
  background: #fff !important;
  padding: 4px 7px !important;
  border-radius: 3px !important;
}
.msc-v16 .msc-footer .msc-footer-motto {
  flex: 0 1 auto !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 12px !important;
  letter-spacing: 1.5px !important;
  white-space: normal !important;
}
.msc-v16 .msc-footer .msc-footer-links {
  flex: 1 1 310px !important;
  text-align: right !important;
  margin-left: auto !important;
  color: #fff !important;
}
@media (max-width: 900px) {
 .msc-v16 .msc-header { min-height: 125px !important; padding-top: 18px !important; }
 .msc-v16 .msc-header .msc-brand { min-height: 82px !important; }
 .msc-v16 .msc-header .mysmall-approved-logo { width: 225px !important; max-height: 85px !important; }
 .msc-v16 .msc-footer .msc-footer-links { text-align: center !important; margin-left: 0 !important; }
}
@media (max-width: 650px) {
 .msc-v16 .msc-header { min-height: 105px !important; padding: 12px 4% !important; }
 .msc-v16 .msc-header .msc-brand { min-height: 75px !important; }
 .msc-v16 .msc-header .mysmall-approved-logo { width: 200px !important; max-height: 75px !important; }
 .msc-v16 .msc-footer { justify-content: center !important; text-align: center !important; }
 .msc-v16 .msc-footer .msc-footer-motto { text-align: center !important; }
}

/* v1.0.2: retain extra room for lowered logo on small screens. */
@media (max-width: 900px) { .msc-v16 .msc-header .mysmall-approved-logo { top: 12px !important; } }
@media (max-width: 650px) { .msc-v16 .msc-header .mysmall-approved-logo { top: 9px !important; } }
