/* Only the theme's compact header, never the horizontal desktop navigation. */
@media (max-width: 1199px) {
  body.btMenuVertical .btPageWrap > .btVerticalHeaderTop {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-inline: clamp(16px, 4vw, 30px);
  }
  body.btMenuVertical .btVerticalHeaderTop > .btVerticalMenuTrigger {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
  }
  body.btMenuVertical .btVerticalHeaderTop .btVerticalMenuTrigger .bt_bb_icon { margin: 0; }
  body.btMenuVertical .btVerticalHeaderTop .btVerticalMenuTrigger .bt_bb_icon_holder {
    display: block;
    position: static;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: -9.5px;
  }
  body.btMenuVertical .btVerticalHeaderTop > .btLogoArea {
    flex: 0 1 auto;
    margin-inline-start: auto;
    min-width: 0;
    width: auto;
    height: auto;
  }
  body.btMenuVertical .btVerticalHeaderTop > .btLogoArea .logo {
    float: none;
    margin: 0;
    padding: 0;
  }
}

/* Layout only: the provider owns the numbers, percentage fill, links and
   artwork. The shared footer is an iframe; keep it intact as a single badge. */
@media (max-width: 900px) {
  .btSiteFooter .bt_bb_raw_content > iframe.rpr-widget {
    display: block;
    max-width: 100%;
    margin-inline: auto;
  }

  /* The separate Reviews feed is rendered in the page, not the footer frame. */
  .btContent .real-patient-ratings-feed .rpr-feed .rpr-rating-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 7px;
    row-gap: 8px;
    padding-bottom: 12px;
  }
  .btContent .rpr-feed .rpr-rating-wrapper::after { content: none; }
  .btContent .rpr-feed .rpr-rating-wrapper > :is(h2, .rpr-header-all) {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    float: none;
  }
  .btContent .rpr-feed .rpr-rating-wrapper h2 .rpr-rating-header {
    padding-bottom: 0 !important;
    text-wrap: balance;
  }
  .btContent .rpr-feed .rpr-rating-wrapper .rpr-header-all img {
    display: block;
    float: none;
    width: min(180px, 100%);
    height: auto;
    margin: 6px auto !important;
  }
  .btContent .rpr-feed .rpr-rating-wrapper > .rpr-bubble {
    flex: 0 0 auto;
    float: none;
    width: auto !important;
    height: auto;
    margin: 0;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1;
  }
  .btContent .rpr-feed .rpr-rating-wrapper > .rpr-rating { display: contents; }
  .btContent .rpr-feed .rpr-rating-wrapper > .rpr-rating > .rpr-widget-stars-bg {
    flex: 0 0 auto;
    float: none;
    margin: 0 !important;
  }
  .btContent .rpr-feed .rpr-rating-wrapper .rpr-review-count {
    flex: 0 0 auto;
    float: none;
    width: auto;
    height: auto;
    margin: 0 !important;
    padding: 0;
    font: 500 12px/1.35 var(--twh-body, Arial, sans-serif);
    text-transform: none;
    text-align: center;
  }
}
@media (max-width: 350px) {
  .btContent .real-patient-ratings-feed .rpr-feed .rpr-rating-wrapper { column-gap: 4px; }
}

@media (max-width: 991px) {
  /* Keep the phone, address and email icons beside the first line of the label. */
  body .btContent .bt_bb_service:has(> a.bt_bb_icon_holder:is([href^="tel:"], [href^="mailto:"], [href^="https://goo.gl/maps/"], [href^="https://maps.app.goo.gl/"], [href^="https://www.google.com/maps"])) {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    align-items: start;
    gap: .625rem;
    inline-size: 100%;
    min-inline-size: 0;
    text-align: start;
  }

  body .btContent .bt_bb_service:has(> a.bt_bb_icon_holder:is([href^="tel:"], [href^="mailto:"], [href^="https://goo.gl/maps/"], [href^="https://maps.app.goo.gl/"], [href^="https://www.google.com/maps"])) > a.bt_bb_icon_holder {
    display: grid;
    place-items: center;
    align-self: start;
    inline-size: 1.75rem;
    block-size: 1.75rem;
    margin: 0;
    padding: 0;
    float: none;
  }

  body .btContent .bt_bb_service > a.bt_bb_icon_holder:is([href^="tel:"], [href^="mailto:"], [href^="https://goo.gl/maps/"], [href^="https://maps.app.goo.gl/"], [href^="https://www.google.com/maps"])::before {
    inline-size: auto;
    block-size: auto;
    font-size: 1.375rem !important;
    line-height: 1;
  }

  body .btContent .bt_bb_service:has(> a.bt_bb_icon_holder:is([href^="tel:"], [href^="mailto:"], [href^="https://goo.gl/maps/"], [href^="https://maps.app.goo.gl/"], [href^="https://www.google.com/maps"])) :is(.bt_bb_service_content, .bt_bb_service_content_title, .bt_bb_service_content_text) {
    min-inline-size: 0;
    padding-inline: 0;
    text-align: start;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 640px) {
  /* Text links in the main footer share a gutter. Standalone icons keep their layout. */
  body .btSiteFooter > section:first-child .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:has(> span) {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    align-items: start;
    column-gap: .625rem;
    inline-size: min(100%, 19rem);
    text-align: start;
  }

  body .btSiteFooter > section:first-child .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder:has(> span)::before {
    display: grid;
    place-items: center;
    inline-size: 100%;
    block-size: 1.45em;
    margin: 0;
    font-size: inherit;
    line-height: 1;
  }

  body .btSiteFooter > section:first-child .bt_bb_icon:not(.bt_bb_text_empty) > a.bt_bb_icon_holder > span {
    text-align: start;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 649px) {
  /* The supporting appointment illustration is not a provider portrait. */
  body:not(.home) .btContent .bt_bb_highlight .bt_bb_image:has(img[src*="/Untitled-design-1"]) {
    max-inline-size: 52px;
    margin-inline: auto;
  }
  body:not(.home) .btContent .bt_bb_highlight .bt_bb_image img[src*="/Untitled-design-1"] {
    display: block;
    inline-size: 52px;
    max-inline-size: 100%;
    block-size: auto;
    margin-inline: auto;
  }
}

/* Four existing Bold Builder pages only. Desktop and all appointment URLs are untouched. */
@media (max-width: 991px) {
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent,
  body.page-id-314 .btContent { --twh-team-gutter:clamp(16px,5vw,36px); }

  /* Profiles: the original noninteractive portrait and biography are siblings.
     Only their presentation changes. Keep the DOM, including the h1 and links, intact. */
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child > .bt_bb_port {
    padding:calc(60px + clamp(14px,2.5vw,24px)) 0 clamp(24px,4vw,36px);
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_cell {
    width:calc(100% - 2 * var(--twh-team-gutter)) !important;
    max-width:880px !important;flex:0 1 880px;
    margin-inline:var(--twh-team-gutter);
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder {
    display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column {
    width:auto !important;max-width:none !important;min-width:0;padding:0 !important;
    margin:0;display:block;opacity:1 !important;transform:none !important;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child {
    grid-row:1;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child > .bt_bb_column_content {padding:0 !important;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_separator {display:none;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child .bt_bb_image {
    display:flex;align-items:flex-end;justify-content:center;
    float:none;width:100%;height:clamp(135px,40vw,185px);overflow:hidden;border-radius:14px;
    background:linear-gradient(115deg,#eef7f7,#f7f3f8);
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child .bt_bb_image > span {
    width:100%;height:100%;display:block;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child img {
    display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child h1 {
    font-size:clamp(1.9rem,5.5vw,2.65rem) !important;line-height:1.13;
    margin:0 0 10px;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child h1 .bt_bb_headline_content :is(small, br) {display:inline;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child h1 .bt_bb_headline_content small {font:inherit !important;letter-spacing:inherit;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child h1 .bt_bb_headline_content br {display:none;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child h1 .bt_bb_headline_content small::after {content:" ";}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) .bt_bb_column_content_inner > .bt_bb_text p {margin:0;}

  /* Keep the three existing service labels and real illustrations, but no longer
     scale these decorative, non-linked graphics to the width of a phone. */
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row_inner > .bt_bb_row_inner_holder {
    display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start !important;gap:6px 12px;margin:16px 0 0;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_column_inner {
    flex:0 1 auto;width:auto;max-width:100%;min-width:0;padding:0;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_column_inner_content_inner {
    display:flex;align-items:center;gap:4px;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row_inner .bt_bb_image {
    float:none;width:24px;height:24px;flex:0 0 24px;
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row_inner img {display:block;width:24px;height:24px;object-fit:contain;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row_inner p {margin:0;font-size:.875rem;line-height:1.4;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child + section .bt_bb_row:has(.twh-athena-card) > .bt_bb_row_holder {margin-top:0 !important;}

  /* Directory: retire the full-viewport spacer, not the introduction or the
     original provider cards. Its background illustration remains as a light texture. */
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child {min-height:0 !important;height:auto !important;background:#f4f9f9;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child > .bt_bb_background_image_holder_wrapper {opacity:.08;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child > .bt_bb_port {min-height:0 !important;height:auto !important;padding:calc(60px + 20px) 0 18px;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child .bt_bb_cell_inner > .bt_bb_row:not(:has(.bt_bb_headline)),
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child .bt_bb_separator {display:none;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child .bt_bb_headline_tag {margin:0 0 8px;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child blockquote {border:0;margin:0;padding:0;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child blockquote::before,
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child blockquote::after {display:none;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child blockquote p {margin:0;line-height:1.5;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child + section:has(.twh-athena-doctor-card-cta) {margin-top:0 !important;}
  body.page-id-314 .btContent .bt_bb_wrapper > section:first-child + section:has(.twh-athena-doctor-card-cta) > .bt_bb_port {padding:20px 0 30px;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_row_holder {margin:0 !important;display:grid;grid-template-columns:minmax(0,1fr);gap:18px;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_row_holder > .bt_bb_column {
    width:100% !important;max-width:100% !important;padding:0 !important;margin:0 !important;opacity:1 !important;transform:none !important;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_column_content {
    width:100%;min-width:0;padding:0 !important;background:#fff !important;border:1px solid #dedde2;border-radius:14px;overflow:hidden;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_column_content_inner > .bt_bb_separator {display:none;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_image {width:100%;margin:0 !important;float:none;height:auto !important;overflow:hidden;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_image > a {display:block;width:100%;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_image > a > img {
    display:block;width:100%;height:clamp(148px,45vw,214px);object-fit:cover;object-position:center 26%;background:#f3f4f7;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_column:last-child .bt_bb_image > a > img {object-fit:contain;object-position:center bottom;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_image_content {
    opacity:1 !important;visibility:visible !important;transform:none !important;position:absolute;inset:auto 8px 8px auto;
    width:max-content !important;height:auto !important;background:transparent !important;pointer-events:auto;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_image_content :is(.bt_bb_image_content_flex,.bt_bb_image_content_inner,.bt_bb_button) {
    position:static;inset:auto;display:block;width:auto;height:auto;overflow:visible;padding:0;margin:0;opacity:1 !important;transform:none !important;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_image_content .bt_bb_link {
    min-height:44px;padding:.5rem .85rem;border-radius:999px;background:#fff !important;border:1px solid #d1c4d6;color:#572767 !important;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_column_content_inner > :is(.bt_bb_headline,.bt_bb_text,.twh-athena-doctor-card-cta) {
    padding-inline:16px !important;margin:0 0 10px;
  }
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_column_content_inner > .bt_bb_headline {padding-top:12px;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_headline_tag {margin:0;font-size:clamp(1.45rem,4.5vw,1.85rem) !important;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_headline_content :is(span,u) {color:#633078 !important;text-decoration:none;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_headline_content::after {display:none;}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_text p {margin:0;line-height:1.5;}
}
@media (max-width:649px) {
  /* The two older transparent portraits include the provider's full body.
     Enlarge the original bitmap and crop only its lower portion. */
  :is(body.page-id-1483,body.page-id-1485) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child img {
    height:clamp(220px,62vw,305px);width:auto;max-width:100%;margin-inline:auto;object-position:center top;
  }
}
@media (min-width:650px) and (max-width:991px) {
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder {
    grid-template-columns:minmax(150px,.42fr) minmax(0,1fr);align-items:start;gap:clamp(20px,3vw,32px);
  }
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child {grid-column:1;grid-row:1;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:first-child {grid-column:2;grid-row:1;}
  :is(body.page-id-1483,body.page-id-1485,body.page-id-6455) .btContent .bt_bb_wrapper > section:first-child .bt_bb_row:has(h1) > .bt_bb_row_holder > .bt_bb_column:last-child .bt_bb_image {height:clamp(205px,30vw,270px);}
  body.page-id-314 .btContent .bt_bb_section:has(.twh-athena-doctor-card-cta) .bt_bb_row_holder {grid-template-columns:repeat(2,minmax(0,1fr));}
}
