:root {
  --modena-teal: #2e8094;
  --modena-teal-dark: #185d6e;
  --modena-blue: #7faab8;
  --modena-taupe: #947666;
  --modena-sand: #f5f1ef;
  --modena-mist: #eef5f4;
  --modena-ink: #17283b;
}

.accessibility-dyslexia-mode,
.accessibility-dyslexia-mode * {
  font-family: Arial, Verdana, sans-serif !important;
}

.location-office-gallery-link:focus-visible {
  outline-color: var(--modena-teal);
}

/* Keep legacy and SEO component families on the same vertical rhythm. */
.page-section-container {
  margin-bottom: clamp(78px, 8vw, 120px);
}

/* Navigation lists must not inherit the editorial list rhythm. */
.one-col-menu .one-col-menu-back,
.one-col-menu .one-col-main-menu .menu-column {
  margin-bottom: 0 !important;
}

.one-col-menu .top-menu li .menu-direct-action {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: the-seasons, serif;
  font-size: min(max(21px, 2.1428571429vw), 30px);
  font-weight: 400;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.one-col-menu .top-menu li .menu-direct-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* The preloaded menu background should render on the first visible frame. */
.one-col-menu .one-col-menu-featured-image {
  transition: none;
}

/* Keep one complete logo visible while the full-screen menu is open. */
html.open .header .nav-logo-container {
  animation: none;
  opacity: 1;
}

html.open .header .gatsby-image-wrapper.has-scrolled-logo {
  opacity: 1;
  transition: none;
}

html.open .header .gatsby-image-wrapper.navbar__logo__scrolled {
  opacity: 0;
  transition: none;
}

.one-col-menu .one-col-main-menu .menu-submenu-action {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff !important;
  font-family: RedHatDisplay, sans-serif;
  font-size: min(max(16px, 1.4285714286vw), 20px);
  font-weight: 300;
  line-height: 1;
  text-align: start;
  cursor: pointer;
}

.one-col-menu .one-col-main-menu .menu-submenu-action:hover {
  color: var(--modena-taupe) !important;
}

.one-col-menu .one-col-main-menu .menu-submenu-action:focus-visible,
.smartbar .smartbar-direct-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.smartbar .smartbar-direct-action {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

/* Desktop menu content already fits; legacy bottom padding created a false scrollbar. */
@media (min-width: 841px) {
  .one-col-menu .top-menu .top-menu-wrapper {
    padding-bottom: 0;
    -webkit-mask: none;
    mask: none;
  }
}

/* Light split heroes require an opaque header and dark navigation controls. */
html:not(.open) body.service-index-page:not(.scrolled) .header,
html:not(.open) body.service-individual-page:not(.scrolled) .header {
  background-color: #fff;
}

html:not(.open) body.service-index-page:not(.scrolled) .navbar__logo,
html:not(.open) body.service-index-page:not(.scrolled) .menu-button,
html:not(.open) body.service-index-page:not(.scrolled) .nav-left-link,
html:not(.open) body.service-index-page:not(.scrolled) .nav-right-subtext,
html:not(.open) body.service-index-page:not(.scrolled) .second-nav-link-right,
html:not(.open) body.service-individual-page:not(.scrolled) .navbar__logo,
html:not(.open) body.service-individual-page:not(.scrolled) .menu-button,
html:not(.open) body.service-individual-page:not(.scrolled) .nav-left-link,
html:not(.open) body.service-individual-page:not(.scrolled) .nav-right-subtext,
html:not(.open) body.service-individual-page:not(.scrolled)
  .second-nav-link-right {
  filter: brightness(0);
}

/* Prevent decorative drops from creating hundreds of pixels of empty space. */
@media (min-width: 1281px) {
  .service-individual-page .background-drops,
  .service-page .background-drops,
  .location-service-individual-page .background-drops,
  .location-individual-page .background-drops {
    margin-top: clamp(72px, 8vw, 120px) !important;
  }
}

/* Location and homepage photo sliders must fit inside the viewport. */
.location-individual-page main .image-swiper-section-container,
.home-page main > .image-swiper-section-container {
  box-sizing: border-box;
  width: min(1320px, calc(100% - 80px));
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
}

.location-individual-page
  main
  .image-swiper-section-container
  .swiper-gatsby-image-container,
.home-page
  main
  > .image-swiper-section-container
  .swiper-gatsby-image-container {
  height: auto !important;
  max-height: 742px;
  aspect-ratio: 16 / 9;
}

.location-individual-page
  main
  .image-swiper-section-container
  .swiper-gatsby-image-container
  img,
.home-page
  main
  > .image-swiper-section-container
  .swiper-gatsby-image-container
  img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Provider cards use a bounded grid instead of stretching the last card. */
.location-individual-page
  .team-cards-section-container
  .cards-container,
.location-service-individual-page
  .team-cards-section-container
  .cards-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  overflow: visible !important;
  contain: none;
  scroll-snap-type: none;
  scroll-padding: 0;
  padding-bottom: 0;
}

.location-individual-page
  .team-cards-section-container
  .cards-container
  > .card-feature-card,
.location-service-individual-page
  .team-cards-section-container
  .cards-container
  > .card-feature-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px !important;
  margin: 0 !important;
  justify-self: center;
}

.location-individual-page
  .team-cards-section-container
  .card-feature-image,
.location-service-individual-page
  .team-cards-section-container
  .card-feature-image {
  height: auto !important;
  aspect-ratio: 3 / 4;
}

.location-individual-page
  .team-cards-section-container
  .card-feature-image
  img,
.location-service-individual-page
  .team-cards-section-container
  .card-feature-image
  img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
}

/* Related-provider names and roles are presentational text, not headings. */
.provider-card-name {
  margin: 20px 0 0;
  font-family: the-seasons, serif;
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.15;
  text-align: center;
}

.provider-card-role {
  margin: 8px 0 0;
  color: var(--modena-taupe);
  font-family: futura-pt, sans-serif;
  font-size: 15px;
  letter-spacing: 0.9px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.provider-bio-text-only {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.provider-bio-text-only
  .two-column-section-flex-child-text-container {
  width: 100%;
  max-width: none;
  flex-basis: 100%;
}

/* Long patient quotes should read like testimonials, not display headings. */
.location-service-testimonial-long blockquote p,
.location-service-testimonial-long > p,
.location-service-patient-experience blockquote p {
  font-family: RedHatDisplay, sans-serif;
  font-size: clamp(18px, 1.5vw, 22px) !important;
  line-height: 1.65;
  text-align: left;
}

.legacy-editorial-refined .blog-text-section-text,
.legacy-editorial-refined .one-column-section-text {
  padding: clamp(36px, 5vw, 64px);
  background: #fff;
  box-shadow: 0 20px 55px rgba(23, 40, 59, 0.09);
}

.legacy-editorial-refined .legacy-editorial-heading {
  margin: clamp(52px, 7vw, 82px) 0 22px;
  padding-top: clamp(36px, 5vw, 58px);
  border-top: 1px solid rgba(46, 128, 148, 0.22);
  color: var(--modena-ink);
  font-family: the-seasons, serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.15;
}

.legacy-editorial-refined .legacy-editorial-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legacy-editorial-refined .legacy-editorial-subheading {
  margin: 34px 0 14px;
  color: var(--modena-teal-dark);
  font-family: the-seasons, serif;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.legacy-editorial-refined p,
.legacy-editorial-refined li {
  font-size: 17px;
  line-height: 1.7;
}

/* Dense directories break into visually navigable groups. */
.seo-card-grid.is-dense,
.seo-article-grid.is-dense,
.testimonial-grid.is-dense {
  align-items: stretch;
  gap: clamp(20px, 2.5vw, 32px);
}

.seo-designed-page .seo-blog-card-grid.is-dense,
.seo-designed-page .seo-card-grid.is-dense {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.seo-designed-page .seo-market-directory.is-dense {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.seo-designed-page .seo-market-directory.is-dense details {
  margin: 0;
  align-self: start;
}

body.about-page.testimonials .cards-container.is-dense {
  display: block !important;
  column-count: 3;
  column-gap: 28px;
}

body.about-page.testimonials
  .cards-container.is-dense
  > .card-feature-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 28px;
  break-inside: avoid;
}

.seo-designed-page .seo-component-hero .default-masthead-container::after {
  pointer-events: none;
}

.seo-designed-page .seo-article-context-link {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--seo-teal);
  background: var(--seo-mist);
}

.seo-designed-page .seo-article-context-link span {
  font-weight: 600;
}

.seo-designed-page .seo-article-context-link a,
.seo-designed-page .blog-reference-links a {
  color: var(--seo-teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.seo-designed-page .blog-reference-links details {
  border: 1px solid var(--seo-line);
  background: var(--seo-sand);
}

.seo-designed-page .blog-reference-links summary {
  padding: 22px 26px;
  color: var(--seo-ink);
  cursor: pointer;
  font-family: futura-pt, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-designed-page .blog-reference-links ul {
  margin: 0;
  padding: 0 26px 24px 48px;
}

.seo-designed-page .blog-reference-links li {
  margin: 10px 0;
  color: #364149;
  font-size: 16px;
  line-height: 1.6;
}

.seo-designed-page .blog-related-care .seo-card-grid,
.seo-designed-page .blog-local-care .seo-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.seo-designed-page .blog-related-care a.seo-card-tile,
.seo-designed-page .blog-local-care a.seo-card-tile {
  color: inherit;
  text-decoration: none;
}

.seo-designed-page .blog-related-care a.seo-card-tile:hover,
.seo-designed-page .blog-local-care a.seo-card-tile:hover {
  box-shadow: 0 20px 52px rgba(23, 40, 59, 0.16);
}

.seo-designed-page .blog-related-care a.seo-card-tile:focus-visible,
.seo-designed-page .blog-local-care a.seo-card-tile:focus-visible {
  outline: 3px solid var(--seo-teal);
  outline-offset: 4px;
}

.not-found-page #main-content {
  padding: clamp(110px, 14vw, 190px) 0 clamp(80px, 10vw, 140px);
  background: linear-gradient(180deg, var(--modena-mist), #fff);
}

.not-found-page .not-found-panel {
  margin-bottom: 0;
}

.not-found-page .not-found-panel h1 {
  margin: 0 0 24px;
  color: var(--modena-ink);
  font-family: the-seasons, serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.not-found-page .not-found-panel p:not(.seo-component-kicker) {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 18px;
  line-height: 1.7;
}

.home-page
  .team-swiper-cards-section-container
  .provider-inline-pills,
.home-page
  .team-swiper-cards-section-container
  .my-team-swiper-button-container {
  display: none;
}

.home-page
  .team-swiper-cards-section-container
  .gatsby-image-wrapper.gatsby-image-wrapper-cover.card-feature-image {
  height: 460px;
}

@media (max-width: 840px) {
  .page-section-container {
    margin-bottom: 70px;
  }

  .location-individual-page main .image-swiper-section-container,
  .home-page main > .image-swiper-section-container {
    width: calc(100% - 40px);
  }

  .location-individual-page
    .team-cards-section-container
    .cards-container,
  .location-service-individual-page
    .team-cards-section-container
    .cards-container {
    grid-template-columns: minmax(0, 340px);
  }

  .seo-designed-page .seo-feature-split {
    min-height: 0;
  }

  .mobile-cta a.mobile-cta-link-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
  }

  .seo-designed-page .seo-market-directory.is-dense {
    grid-template-columns: minmax(0, 1fr);
  }

  body.about-page.testimonials .cards-container.is-dense {
    column-count: 1;
  }

  .home-page
    .team-swiper-cards-section-container
    .gatsby-image-wrapper.gatsby-image-wrapper-cover.card-feature-image {
    height: 360px;
  }
}

@media (min-width: 841px) and (max-width: 1180px) {
  body.about-page.testimonials .cards-container.is-dense {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  .location-individual-page main .image-swiper-section-container,
  .home-page main > .image-swiper-section-container {
    width: calc(100% - 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-office-gallery-image,
  .swiper-wrapper {
    scroll-behavior: auto;
  }
}
