/* Keep all four header controls visible on the narrowest supported screens. */
@media (max-width: 319.98px) {
    .h-nav > .container { padding-inline: 8px; }
    .h-nav-inner > .h-brand .national-wordmark { font-size: .68rem; }
    .h-nav-inner > .h-mobile-wrap { gap: 2px; }
}

/* The region count is a single label; the heading may wrap beside it. */
.national-region-label h3 { min-width: 0; }
.national-region-label > span { flex: none; white-space: nowrap; }

/* Long page ranges wrap within the catalog instead of being clipped. */
.catalog-pagination-wrap { max-width: 100%; min-width: 0; }
.catalog-pagination {
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Keep the selected place readable above its clear action on small phones. */
@media (max-width: 575.98px) {
    .location-current {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }
    .location-current > i { display: none; }
    .location-current > div { min-width: 0; }
    .location-current > a { grid-column: 1; justify-self: start; margin-left: 0; }
}

/* Keep brand and controls separate between phone and desktop layouts. */
@media(max-width:1199.98px){
 .h-nav-inner{gap:12px}
 .h-nav-inner>.h-brand{flex:none}
}
@media(min-width:768px) and (max-width:991.98px){
 .h-mobile-wrap a.h-phone .h-mobile-label{display:none}
 .h-mobile-wrap a.h-phone{width:44px;padding-inline:0}
 .h-mobile-wrap{min-width:0}
 footer.f-main>.container>.row{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
 footer.f-main>.container>.row>.f-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
 footer.f-main .f-intro .f-desc{grid-row:2;grid-column:1/-1;max-width:none}
 footer.f-main .f-intro .f-socials{grid-column:2;grid-row:1;margin-top:0}
 footer.f-main>.container>.row>.f-contacts{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
 footer.f-main .f-contacts>.f-heading{grid-column:1/-1}
 footer.f-main .f-contacts>.f-contact--email{grid-column:1/-1;grid-row:3}
}
@media(max-width:374.98px){
 .h-nav-inner{gap:8px}
 .h-nav-inner>.h-brand .national-wordmark{font-size:clamp(.58rem,3.3vw,.77rem)}
}
