/* MWhite Clinic — P01-K2W-M shared visual contract.
   Loaded LAST on both authenticated and public layouts.
   Keep page identity, CMS semantics, SEO, image copyrights and noindex gates unchanged.
   Purpose: one consistent geometry, font and brand palette across all site pages. */
:root {
  --mw-layout-max: 1360px;
  --mw-layout-gutter: clamp(18px, 3vw, 40px);
  --mw-layout-radius: 29px;
  --mw-layout-radius-small: 20px;
  --mw-type-family: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mw-type-xl: clamp(2.75rem, 5vw, 5rem);
  --mw-type-h2: clamp(2.15rem, 3.6vw, 3.55rem);
  --mw-blue-action: #247fb9;
  --mw-blue-soft: #eff9fe;
  --mw-title-color: #243f58;
  --mw-body-color: #455d71;
}
body {
  font-family: var(--mw-type-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--mw-body-color);
  background: #fff;
}
.mw-container {
  width: min(calc(100% - (2 * var(--mw-layout-gutter))), var(--mw-layout-max));
  max-width: none;
  margin-inline: auto;
}
.mw-nav-shell {
  width: min(calc(100% - (2 * var(--mw-layout-gutter))), var(--mw-layout-max));
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
}
.mw-display,
.mw-section-heading h2,
.mw-services-hero h1,
.mw-listing-intro h1,
.mw-contact-hero h1,
.mw-service-feature-copy h2 {
  font-family: var(--mw-type-family);
  font-weight: 750;
  color: var(--mw-title-color);
  letter-spacing: -.052em;
  line-height: 1.09;
}
.mw-kicker {
  color: var(--mw-blue-action);
  font-family: var(--mw-type-family);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .145em;
}
.mw-display,
.mw-services-hero h1,
.mw-listing-intro h1,
.mw-contact-hero h1 {
  text-wrap: balance;
}
.mw-hero-carousel,
.mw-services-hero {
  width: min(calc(100% - (2 * var(--mw-layout-gutter))), var(--mw-layout-max));
  max-width: none;
  margin: 20px auto 0;
  border-radius: var(--mw-layout-radius);
  overflow: hidden;
}
.mw-services-hero {
  min-height: 545px;
  box-shadow: 0 22px 52px rgba(30,90,135,.07);
}
.mw-services-hero .mw-container.mw-services-hero-content {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: clamp(46px, 5vw, 65px) clamp(30px, 4.2vw, 62px);
  box-sizing: border-box;
}
.mw-hero-carousel .mw-hero-inner,
.mw-hero-carousel .mw-carousel-controls {
  width: 100%;
  max-width: none;
}
.mw-hero-carousel .mw-hero-inner {
  padding-inline: clamp(30px, 4.2vw, 62px);
}
.mw-services-hero h1,
.mw-listing-intro h1,
.mw-hero-carousel .mw-display,
.mw-contact-hero h1 {
  font-size: var(--mw-type-xl);
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -.058em;
}
.mw-services-hero h1 {
  max-width: 13ch;
}
.mw-listing-intro {
  margin: 20px 0 26px;
  width: 100%;
  min-width: 0;
  border-radius: var(--mw-layout-radius);
  padding: clamp(48px, 5.1vw, 76px) clamp(30px, 4.2vw, 62px);
  background: linear-gradient(112deg, #fff 0%, #eff9fe 75%, #f2fcfd);
}
.mw-listing-intro h1 {
  max-width: 23ch;
}
.mw-listing-intro p {
  max-width: 66ch;
  color: #526d81;
  line-height: 1.7;
}
.mw-section-heading h2,
.mw-service-feature-copy h2 {
  font-size: var(--mw-type-h2);
}
.mw-services-redesign {
  padding-top: clamp(38px, 4.4vw, 65px) !important;
}
.mw-service-feature {
  border-radius: var(--mw-layout-radius);
}
.mw-contact-hero {
  border-radius: var(--mw-layout-radius);
}
.mw-button,
.mw-service-jumps a,
.mw-footer-primary,
.mw-footer-secondary,
.mw-nav-links .mw-nav-accent {
  font-family: var(--mw-type-family);
  font-weight: 700;
  border-radius: 999px;
}
.mw-button:not(.mw-button-outline),
.mw-footer-primary,
.mw-nav-links .mw-nav-accent {
  background: var(--mw-blue-action);
  border-color: var(--mw-blue-action);
}
.mw-button-outline,
.mw-footer-secondary {
  color: var(--mw-blue-action);
}
.mw-card,
.mw-clinic-location,
.mw-location-map-entry {
  border-radius: var(--mw-layout-radius-small);
}
@media(max-width:900px) {
  .mw-hero-carousel .mw-hero-inner {
    padding-inline: clamp(25px, 4vw, 40px);
  }
  .mw-services-hero .mw-container.mw-services-hero-content {
    padding-inline: clamp(25px, 4vw, 40px);
  }
}
@media(max-width:700px) {
  :root {
    --mw-layout-gutter: 16px;
    --mw-layout-radius: 21px;
    --mw-layout-radius-small: 17px;
    --mw-type-xl: clamp(2.5rem, 9vw, 3.5rem);
    --mw-type-h2: clamp(2rem, 7.5vw, 2.9rem);
  }
  .mw-nav-shell { padding-inline: 0; }
  .mw-hero-carousel,
  .mw-services-hero {
    margin-top: 14px;
  }
  .mw-hero-carousel .mw-hero-inner {
    padding-inline: 22px;
  }
  .mw-services-hero {
    min-height: 420px;
  }
  .mw-services-hero .mw-container.mw-services-hero-content {
    padding: 38px 22px 40px;
  }
  .mw-listing-intro {
    margin-top: 14px;
    padding: 40px 24px;
  }
  .mw-services-hero h1,
  .mw-listing-intro h1,
  .mw-contact-hero h1 {
    max-width: 100%;
  }
}
@media(prefers-reduced-motion: reduce) {
  .mw-hero-carousel,
  .mw-services-hero,
  .mw-listing-intro {
    scroll-behavior: auto;
  }
}

/* Identical computed H1 font stack and scale across every hero.
   Selector specificity intentionally exceeds older immersive templates. */
.mw-hero-carousel .mw-hero-slide h1.mw-display,
.mw-services-hero h1.mw-display,
.mw-listing-intro h1.mw-display,
.mw-contact-hero h1.mw-display {
  font-family: var(--mw-type-family);
  font-size: var(--mw-type-xl);
  font-weight: 750;
  letter-spacing: -.058em;
  line-height: 1.07;
}

/* P01 live-release: six doctors on home, three equal columns at desktop. */
.mw-home-doctor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
/* Only the doctor directory: avoid the excessive gap after its intro banner. */
.mw-doctor-directory > .mw-section {
  padding-top: clamp(10px, 1.5vw, 22px);
}
.mw-doctor-directory > .mw-section > .mw-card-grid {
  margin-top: 12px;
}
@media (max-width: 900px) {
  .mw-home-doctor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .mw-home-doctor-grid { grid-template-columns: 1fr; }
}
