@media (min-width: 1200px) {
  /* The grid items stretch already. Stretch their painted children as well. */
  body.home .btContent .bt_bb_row_inner:not(.bt_bb_hidden_lg):has(.img-services) .bt_bb_column_inner {
    align-items: stretch;
  }
  body.home .btContent .bt_bb_row_inner:not(.bt_bb_hidden_lg) .bt_bb_column_inner:has(.img-services) > .bt_bb_column_inner_content {
    align-self: stretch;
    min-height: 100%;
    box-sizing: border-box;
  }
  body.home .btContent .bt_bb_row .bt_bb_row_inner .bt_bb_column_inner .bt_bb_column_inner_content .bt_bb_image.img-services {
    width: 58px;
    height: 58px;
    margin-top: -28px !important;
  }

  /* Frame the existing 1920 × 1196 solo portrait inside the right half of
     the same 1220px rail as the copy. Full-bleed "cover" scaled her facial
     features with viewport width and cut the hair at the wide breakpoint. */
  body.home .btContent .bt_bb_section:has(.btAccentQuote) > .bt_bb_background_image_holder_wrapper {
    inset: 16px max(var(--hw-gutter), calc((100% - 1220px) / 2)) 16px auto;
    width: min(48%, 580px);
    height: auto;
    overflow: hidden;
    border-radius: 14px;
  }
  body.home .btContent .bt_bb_section:has(.btAccentQuote) .bt_bb_background_image_holder {
    background-size: auto 140%;
    background-position: right 14%;
    background-repeat: no-repeat;
  }

  /* Only the three contact methods in the homepage strip above the footer.
     The corresponding glyphs on the directory are already 50px. */
  body.home .btContent .bt_bb_section:has(.btWorkingHours) + .bt_bb_section .bt_bb_service > .bt_bb_icon_holder::before {
    font-size: 42px;
  }
}

/* Directory thumbnails (not profiles). Keep the original source, responsive
   alternatives, and linked bio overlays. Two photos are 386 × 214; one is a
   square transparency with no native space above the hair. Contain the entire
   original photograph on a common, padded mat rather than cropping the square. */
body.page-id-314 .btContent .bt_bb_section:not(.bt_bb_hidden_lg):has(.twh-athena-doctor-card-cta) .bt_bb_column .bt_bb_image:has(> a > img) {
  --portrait-mat: #f1f2f5;
  position: relative;
  display: block;
  height: auto !important;
  background: var(--portrait-mat);
}
body.page-id-314 .btContent .bt_bb_section:not(.bt_bb_hidden_lg):has(.twh-athena-doctor-card-cta) .bt_bb_column .bt_bb_image > a:has(> img) {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1.54;
  padding: clamp(16px, 1.6vw, 24px) clamp(10px, 1vw, 16px) 8px;
  background: var(--portrait-mat);
}
body.page-id-314 .btContent .bt_bb_section:not(.bt_bb_hidden_lg):has(.twh-athena-doctor-card-cta) .bt_bb_column .bt_bb_image > a > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background: transparent;
  transform: none !important;
}
@media (min-width: 992px) {
  body.page-id-314 .btContent .bt_bb_section:not(.bt_bb_hidden_lg):has(.twh-athena-doctor-card-cta) .bt_bb_image:focus-within .bt_bb_image_content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (min-width: 1200px) {
  body .mainHeader .topBar .btTopToolsRight .twh-emergency-phone {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    gap: .65rem;
    color: var(--twh-purple);
    text-decoration: none;
  }

  body .mainHeader .topBar .twh-emergency-phone .btIconWidgetIcon {
    display: grid;
    place-items: center;
    inline-size: 2.125rem;
    block-size: 2.125rem;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--twh-mist);
    color: var(--twh-purple);
  }

  body .mainHeader .topBar .twh-emergency-phone .btIconWidgetIcon .bt_bb_icon_holder::before {
    display: block;
    font-size: 1.25rem;
    line-height: 1;
  }

  body .mainHeader .topBar .twh-emergency-phone .btIconWidgetContent {
    display: flex;
    align-items: baseline;
    gap: .55rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  body .mainHeader .topBar .twh-emergency-phone:is(:hover, :focus-visible) .btIconWidgetTitle {
    text-decoration: underline;
    text-underline-offset: .18em;
  }
}

body .mainHeader .topBar .twh-emergency-phone :is(.btIconWidgetTitle, .btIconWidgetText) {
  margin: 0;
  padding: 0;
  color: #000;
  opacity: 1 !important;
  font: 400 1rem/1.3 var(--twh-body);
}

/* Keep the contact links centered as a group with the icon on the first text line. */
body .btSiteFooter > section .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:is([href^="tel:"], [href^="mailto:"], [href^="https://goo.gl/maps/"]) {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  align-items: start;
  gap: .625rem;
  inline-size: min(100%, 19rem);
  margin-inline: auto;
  font-size: 15px;
  text-align: start;
}

body .btSiteFooter > section .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:is([href^="tel:"], [href^="mailto:"], [href^="https://goo.gl/maps/"])::before {
  display: grid;
  place-items: center;
  inline-size: 100%;
  block-size: 1.45rem;
  margin: 0;
  color: var(--twh-purple);
  font-size: 1.18rem;
  line-height: 1;
}

body .btSiteFooter > .bt_bb_section:first-child a.bt_bb_icon_holder .twh-footer-address {
  justify-self: stretch;
  text-align: start;
}

body .btSiteFooter > .bt_bb_section:first-child a.bt_bb_icon_holder .twh-footer-address > span {
  display: block;
  inline-size: 100%;
  margin: 0;
  padding: 0;
  text-align: start;
}

body .btSiteFooter :is(.twh-footer-address > span, a[href^="mailto:"] > span) {
  overflow-wrap: normal;
  white-space: nowrap;
}

html.twh-a11y-large body .btSiteFooter :is(.twh-footer-address > span, a[href^="mailto:"] > span) {
  overflow-wrap: anywhere;
  white-space: normal;
}

/* The separators following the removed social icons no longer create a blank row. */
body .btSiteFooter > section .bt_bb_column_content_inner:has(> .bt_bb_icon > a[href^="mailto:"]) > .bt_bb_separator:not(:has(~ :not(.bt_bb_separator))) {
  display: none;
}

body .btSiteFooter > .bt_bb_section:first-child > .bt_bb_port:has(> .bt_bb_cell) {
  padding-block: clamp(1.5rem, 3.2vw, 2.125rem) .75rem;
}

body .btSiteFooter > .bt_bb_section:first-child .bt_bb_row > .bt_bb_row_holder {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.125rem, 2.8vw, 2rem);
  inline-size: 100%;
  max-inline-size: 100%;
  margin-inline: auto;
}

body .btSiteFooter > .bt_bb_section:first-child .bt_bb_row > .bt_bb_row_holder > .bt_bb_column {
  flex: none;
  float: none;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: none;
  margin-inline: 0;
  padding-inline: 0;
}

body .btSiteFooter > .bt_bb_section:first-child .bt_bb_custom_menu ul.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: .625rem;
}

body .btSiteFooter > .bt_bb_section:first-child :is(.bt_bb_text p, .bt_bb_custom_menu a, .bt_bb_headline .bt_bb_headline_tag) {
  font-size: 15px;
}

@media (min-width: 641px) and (max-width: 1023px) {
  body .btSiteFooter > .bt_bb_section:first-child .bt_bb_row > .bt_bb_row_holder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .btSiteFooter > .bt_bb_section:first-child .bt_bb_row > .bt_bb_row_holder > .bt_bb_column:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body .btSiteFooter > .bt_bb_section:first-child .bt_bb_row > .bt_bb_row_holder {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  body .btSiteFooter > .bt_bb_section:first-child .bt_bb_column_content_inner:has(> .bt_bb_icon a[href^="mailto:"]) {
    inline-size: calc(100% + 32px);
    max-inline-size: none;
    margin-inline: -16px;
  }
}

body .btSiteFooter > section:has(.twh-footer-copyright) .bt_bb_port {
  padding-block: .625rem;
}

body .btSiteFooter > section:has(.twh-footer-copyright) .bt_bb_row_holder:has(.twh-footer-copyright) {
  display: block;
  inline-size: 100%;
  margin-inline: 0;
}

body .btSiteFooter > section:has(.twh-footer-copyright) .bt_bb_row_holder:has(.twh-footer-copyright) > .bt_bb_column {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding-inline: 0;
}

body .btSiteFooter > section:has(.twh-footer-copyright) .bt_bb_row_holder:has(.twh-footer-copyright) > .bt_bb_column:not(:has(.twh-footer-copyright)) {
  display: none;
}

body .btSiteFooter > section .bt_bb_column:has(.twh-footer-copyright) .bt_bb_column_content_inner {
  max-inline-size: none;
}

body .btSiteFooter > section:has(.twh-footer-copyright) .bt_bb_separator {
  display: none;
}

body .btSiteFooter > section .bt_bb_text:has(.twh-footer-copyright) {
  margin: 0;
}

body .btSiteFooter > section .bt_bb_text .twh-footer-copyright {
  display: flex;
  justify-content: center;
  margin: 0;
  color: #fff;
  font: 500 15px/1.4 var(--twh-body);
  text-align: center;
  white-space: nowrap;
}

body .btSiteFooter .twh-footer-copyright > span {
  flex: 0 0 auto;
}

body .btSiteFooter .twh-copyright-full {
  display: inline;
}

body .btSiteFooter .twh-copyright-compact {
  display: none;
}

@media (max-width: 640px) {
  body .btSiteFooter > section .bt_bb_text:has(.twh-footer-copyright) {
    margin-inline: -24px;
  }
}

@media (max-width: 389px) {
  body .btSiteFooter .twh-footer-copyright { overflow: clip; }
  body .btSiteFooter .twh-copyright-full { transform: scaleX(.94); }
}

@media (max-width: 359px) {
  body .btSiteFooter .twh-copyright-full { transform: scaleX(.82); }
}

@media (max-width: 680px) {
  html.twh-a11y-large body .btSiteFooter .twh-copyright-full { display: none; }
  html.twh-a11y-large body .btSiteFooter .twh-copyright-compact { display: inline; }
}

/* Ordinary reading text is solid black. Keep purple action/heading indicators
   and white text on dark panels; do not recolor photographs, map tiles or badges. */
:root { --twh-text: #000; }
body.home .btContent { --hw-body: #000; --hw-ink: #000; }
body .btPageWrap .twh-athena-hub :is(.twh-athena-hub-intro p:not([class*="eyebrow"]), .twh-athena-hub-card p:not([class*="kicker"]), .twh-athena-hub-divider span, .twh-athena-hub-help p, .twh-athena-provider p) { color: #000; }
body .btPageWrap .fancy-select > .trigger,
body .mainHeader .menuPort nav li:not(.twh-athena-nav-item) > a:not(:hover):not(:focus-visible) { color: #000; }
body .btContent :is(.bt_bb_service_content_text, .bt_bb_working_hours_inner_content, .btPrevNextDir) { opacity: 1; }
body:is(.page-id-1522,.page-id-1937,.page-id-1525,.page-id-1527) .btContent .bt_bb_wrapper > .bt_bb_section_show_left_boxed_content:first-child .bt_bb_column:first-child .bt_bb_text p { color: #000; }
body .btPageWrap :is(input, textarea)::placeholder { color: #000; opacity: 1; }
body .btContent .real-patient-ratings-feed :is(.rpr-bubble, .rpr-review-date) { color: #000 !important; }

/* Align the street, phone number and email to one text edge. DentiCare adds
   a half-em indent to the original icon captions, including on narrow phones. */
body .btSiteFooter > section:first-child .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:is([href^="mailto:"], [href^="tel:"], [href^="https://goo.gl/maps/"]):has(> span) {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 8px;
}
body .btSiteFooter > section:first-child .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:is([href^="mailto:"], [href^="tel:"]):has(> span)::before {
  font-size: 19px;
  height: 1lh;
  line-height: inherit;
}
body .btSiteFooter > section:first-child .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:is([href^="mailto:"], [href^="tel:"]) > span {
  padding-inline: 0;
  margin-inline: 0;
  text-align: start;
}
/* The map pin belongs to the street, not to the two-line address as a whole. */
body .btSiteFooter > section:first-child .bt_bb_icon > a.bt_bb_icon_holder:has(> .twh-footer-pin) {
  display: grid;
  align-items: start;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 0;
}
body .btSiteFooter > section:first-child .bt_bb_icon > a.bt_bb_icon_holder:has(> .twh-footer-pin)::before {
  display: none !important;
  content: none !important;
}
body .btSiteFooter > section:first-child a.bt_bb_icon_holder > .twh-footer-pin {
  position: relative;
  display: block;
  grid-area: 1 / 1;
  align-self: center;
  width: 24px;
  height: 0;
  margin: 0;
  padding: 0;
  color: var(--twh-purple, #71338a);
  overflow: visible;
}
.btSiteFooter .twh-footer-pin > svg {
  display: block;
  width: 24px;
  height: 24px;
  max-width: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
body .btSiteFooter > section:first-child a.bt_bb_icon_holder > .twh-footer-address {
  display: contents;
}
body .btSiteFooter > section:first-child a.bt_bb_icon_holder > .twh-footer-address > span {
  display: block;
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: start;
}
body .btSiteFooter .twh-footer-address > span:first-child { grid-row: 1; }
body .btSiteFooter .twh-footer-address > span:last-child { grid-row: 2; }
