.logo-wordmark {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-light {
  color: #ffffff;
}

.logo-dark {
  color: #171717;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
}

.logo-text-scaleup {
  color: #4786ee !important;
}

.logo-text-dental {
  color: #ff7851 !important;
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

#logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

header.header-light #logo .logo-main,
header.header-light #logo .logo-scroll,
header.header-light #logo .logo-mobile {
  color: inherit;
}

#logo .logo-scroll {
  display: none !important;
}

header.smaller.scroll-light #logo .logo-main {
  display: none !important;
}

header.smaller.scroll-light #logo .logo-scroll {
  display: inline-flex !important;
}

footer .logo-wordmark,
#extra-content .logo-wordmark {
  font-size: 20px;
}

@media only screen and (max-width: 767px) {
  header #logo .logo-main {
    display: none !important;
  }

  header #logo .logo-mobile {
    display: inline-flex !important;
  }
}

@media only screen and (min-width: 768px) {
  header #logo .logo-mobile {
    display: none !important;
  }

  header #logo .logo-main {
    display: inline-flex !important;
  }
}

/* --- Aspect-ratio guard -------------------------------------------------
   Images carry width/height attributes for CLS. Without height:auto the
   browser treats the height attribute as a fixed CSS height, which squashes
   any image whose CSS width is constrained (e.g. .w-100). This restores the
   intrinsic aspect ratio while keeping the CLS benefit. */
img[width][height] {
  height: auto;
}
img.subheader-blog-img[width][height],
img.w-100[width][height] {
  height: auto;
}
