@media(max-width:950px){
  .main-nav.is-open{left:12px;right:12px;border:1px solid var(--line);border-radius:16px;padding:12px;gap:4px 12px;max-height:calc(100dvh - 100px);overflow-y:auto;box-shadow:0 14px 32px #17241e24}
  .main-nav a{min-height:44px;display:flex;align-items:center;padding:10px 12px;border-radius:8px}
  .main-nav a[aria-current]{background:#b2f6e326}
  .header-actions{flex-shrink:0}
}
@media(max-width:700px){
  .care-scene{height:clamp(235px,64vw,290px)}
  .home-page .hero-grid{gap:20px}
  .inner-page .doctor-card .call-mini,.inner-page .doctor-card .save-button,.spotlight-save{min-width:44px;min-height:44px}
  .inner-page .doctor-card .card-bottom .text-link{min-height:44px}
  .filters input,.filters select,.journal-search input,.contact-form input,.contact-form textarea{font-size:16px}
  .breadcrumbs{line-height:1.65;row-gap:5px;overflow-wrap:anywhere}
  .section-heading>*,.profile-heading>*,.facility-heading>*{min-width:0}
  .button-row{flex-wrap:wrap}
}
@media(max-width:360px){
  .site-header .brand-wordmark{font-size:25px}
  .site-header .brand .brand-symbol svg{width:30px;height:30px}
  .site-header .header-actions{gap:4px}
  .site-header .header-inner{gap:8px}
  .specialty-card h2,.specialty-card h3{font-size:17px;overflow-wrap:anywhere}
}

@media(min-width:951px){.main-nav{gap:18px}.main-nav a{white-space:nowrap}}
@media(min-width:951px) and (max-width:1200px){.header-actions>a[href="/cities"]{display:none}.header-inner{gap:18px}.main-nav{gap:14px}}

/* Homepage spacing is needed even when the desktop navigator is not downloaded. */
@media(max-width:700px){.home-page .care-strip-inner{grid-template-columns:minmax(0,1fr)}.home-page .care-strip-inner>*{min-width:0}.home-page .care-strip h2{font-size:clamp(28px,7.5vw,40px)}}
@media(max-height:500px){.home-journey-dock{bottom:10px;max-height:calc(100dvh - 20px);overflow-y:auto}}
@media(max-width:700px){.home-page .care-strip-inner{grid-template-columns:minmax(0,1fr)}.home-page .care-strip-inner>*{min-width:0}.home-page .care-strip h2{font-size:clamp(28px,7.5vw,40px)}}

/* Keep content centered while leaving room for the right-hand navigator. */
@media(min-width:951px) and (max-width:1399px){
 .home-page main>.wrap:not(.hero),.home-page main>section:not(.hero)>.wrap{width:calc(100% - 160px);max-width:1240px;margin-inline:auto}
}
@media(max-width:950px){
 .home-journey-dock{display:none!important}
 .home-page main>.wrap:not(.hero),.home-page main>section:not(.hero)>.wrap{width:calc(100% - 40px);max-width:none;margin-inline:auto}
 .home-page:has(.main-nav.is-open) .back-to-top{visibility:hidden}
}
@media(max-width:700px){
 .home-page .section-heading{align-items:flex-start;gap:16px}
 .home-page .section-heading>.action-link{align-self:flex-start}
 .doctors-directory .filters>form{padding:16px}
 .doctors-directory .filter-heading{margin-bottom:14px}
 .doctors-directory .filter-heading h2{font-size:16px}
 .filter-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;margin-top:8px;padding:8px 0;border:0;background:none;color:#193d30;text-align:left}
 .filter-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
 .filter-options[hidden]{display:none}
 .doctors-directory .filters .button{margin-top:8px}
 .page-listing .rating-method{margin-block:0 16px;border-radius:12px;box-shadow:none}
 .page-listing .rating-method>summary{padding:14px 16px;min-height:58px}
 .page-listing .rating-method .rating-method-heading{font-size:17px}
 .page-listing .rating-method .rating-method-heading>span{font-size:12px}
 .page-contact .contact-layout{gap:18px}
 .page-contact .contact-layout>div:first-child{padding:0;background:none;border:0;border-radius:0}
 .page-contact .contact-layout>div:first-child>h2{font-size:21px;margin-bottom:8px}
 .page-contact .contact-layout>div:first-child>p{font-size:14px;line-height:1.6;margin:0}
 .page-contact .contact-layout .notice{margin-top:12px;padding-top:12px}
 .page-contact .contact-layout .notice p{font-size:12px;line-height:1.6}
 .page-contact .page-heading{padding-bottom:20px}
 .site-footer{padding-top:32px;padding-bottom:20px}
 .site-footer .footer-top{gap:24px 18px}
 .site-footer .footer-brand{grid-column:1/-1}
 .site-footer .footer-brand>p{font-size:17px;line-height:1.5;margin-top:12px;margin-bottom:6px}
 .site-footer .footer-brand>p br{display:none}
 .site-footer .footer-country{display:none}
 .site-footer .footer-social{margin-top:12px}
 .site-footer .footer-top h3{margin-bottom:10px}
 .site-footer .footer-top>div:not(.footer-brand)>a{display:flex;align-items:center;min-height:32px;margin:0;line-height:1.4;padding-block:5px}
 .site-footer .footer-top>div:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:18px}
 .site-footer .footer-top>div:last-child>h3{grid-column:1/-1}
 .site-footer .footer-note{margin-top:24px;padding-block:18px}
 .site-footer .footer-bottom{padding-top:18px;gap:14px}
}

@media(max-width:700px){
 .doctors-directory .filters>form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px}
 .doctors-directory .filters>form>.filter-heading,.doctors-directory .filters>form>label,.doctors-directory .filter-search,.doctors-directory .filter-options{grid-column:1/-1}
 .doctors-directory .filters>form>label{margin-top:4px}
 .doctors-directory .filter-toggle{grid-column:1;grid-row:4;width:100%;white-space:nowrap;justify-content:flex-start}
 .doctors-directory .filters>form>.button{grid-column:2;grid-row:4;width:auto;align-self:center;padding-inline:18px}
 .doctors-directory .filter-options{grid-row:5}
 .doctors-directory .page-heading .breadcrumbs{margin-bottom:18px}
 .doctors-directory .directory-layout{gap:18px}
 .page-contact .contact-layout .notice{margin-bottom:0}
}
.filter-options{grid-column:1/-1}

/* Mobile controls retain readable text and forgiving tap areas. */
@media(max-width:700px){
 .editor-form select{font-size:16px;min-height:44px}
 .filter-heading>a{display:inline-flex;align-items:center;justify-content:flex-end;min-height:32px;min-width:44px;font-size:12px}
 .breadcrumbs a{display:inline-flex;align-items:center;min-height:28px}
 .site-footer .footer-bottom>div{display:flex;flex-wrap:wrap;gap:4px 16px}
 .site-footer .footer-bottom a{display:inline-flex;align-items:center;min-height:36px;font-size:12px}
 .inner-page .doctor-card .card-location small{font-size:13px;line-height:1.6}
 .facts a[href^="tel:"]{display:inline-flex;align-items:center;min-height:36px;overflow-wrap:anywhere}
 .rating-source-row,.spotlight-rating .rating-source-row{min-height:38px;gap:8px}
 .rating-source-trigger,.spotlight-rating .rating-source-trigger{min-height:38px}
 .rating-source-row>.rating-source-panel{transform:translate(4px,2px)}
 .rating-source-panel a{font-size:11px;line-height:14px;min-height:24px}
 .rating-source-row>.rating-source-panel>.rating-recorded{font-size:10px;line-height:14px}
 .rating-source-row.rating-branches{min-height:44px}
 .rating-branches>.rating-source-trigger{min-height:44px}
 .rating-branches>.rating-source-panel>.rating-branch-count{font-size:11px;line-height:15px}
 .rating-branches>.rating-source-panel>.rating-branch-note{font-size:10px;line-height:15px}
}
