/* DME mobile section alignment. Page-local rules mirror the Behavioral Health
   mobile layout; desktop geometry stays in dme-v2.css. */

.dme-v2 .bh-int-mobile-arrow,
  .dme-v2 .bh-int-mobile-mark,
  .dme-v2 .bh-states-mobile-arrow,
  .dme-v2 .bh-states-grid-title,
  .dme-v2 .bh-pay-frame-outline,
  .dme-v2 .bh-pay-orbit-ring-mobile { display: none; }
.dme-v2 .dme-int-logo-rows,
.bh-why-hub { display: contents; }
.dme-v2 .bh-pay-step-arc { left: var(--desktop-left); }
.dme-v2 .bh-pay-clipboard { display: contents; }

.dme-v2 .bh-hero-form .booking-submit:is(:hover, :focus-visible),
  .dme-v2 :is(.bh-cta-btn--primary, .bh-pharm-btn, .bh-serve-bar-cta-btn, .bh-cred-btn, .bh-states-btn):is(:hover, :focus-visible) {
  color: #fff; background-color: #e04a4f; translate: 0 -2px;
  filter: none; box-shadow: none;
}
.dme-v2 .bh-choose-btn--primary:is(:hover, :focus-visible),
  .dme-v2 .bh-consult-submit:is(:hover, :focus-visible) { color: #fff; background-color: #1d2a5e; box-shadow: none; }
.dme-v2 .bh-cta-btn--ghost:is(:hover, :focus-visible) { color: #fff; background: rgba(255,255,255,.1); box-shadow: none; }
.dme-v2 :is(.bh-why-glow, .bh-why-icon img, .bh-svc-circuit-a, .bh-pharm-glow, .bh-serve-bar-cta-icon, .bh-cred-status-dot::after, .bh-states-card-icon::after) { animation: none !important; }

@media (max-width: 767px) {
  /* Place Core Strengths directly after the hero on phones. */
  .dme-v2 { display: flex; flex-direction: column; align-items: stretch; }
  .dme-v2 > section { flex: none; width: 100%; min-width: 0; }
  .dme-v2 > #dme-hero { order: -2; }
  .dme-v2 > .strengths { order: -1; }

  .dme-v2 .bh-faq-q > button { display: flex; align-items: center; width: 100%; min-height: 55px; font: inherit; text-align: left; background: transparent; border: 0; cursor: pointer; }
  .dme-v2 .bh-consult-badge { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='197' height='90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0.298' stop-color='%23273775'/%3E%3Cstop offset='1' stop-color='%23FC5D61'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0.5' y='0.5' width='196' height='89' rx='11.5' fill='none' stroke='url(%23g)' stroke-dasharray='4 3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat,
  var(--c-white); }
}

@media (max-width: 767px) {
  .dme-v2 .bh-faq-q > button { gap: 16px; padding: 10px 16px; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-hero { padding: 20px 0 24px; }
  .dme-v2 .bh-hero-top { min-height: 0; margin-bottom: 22px; }
  .dme-v2 .bh-hero-copy { gap: 12px; width: 100%; }
  .dme-v2 .bh-hero-heading { font-size: 30px; line-height: 40px; }
  .dme-v2 .bh-hero-certs { margin-top: 4px; }
  .dme-v2 .bh-hero-form { flex-direction: column; gap: 20px; align-items: stretch; box-sizing: border-box; width: 100%; padding: 20px; border-radius: 20px; }
  .dme-v2 .bh-hero-form .booking-fields { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 16px; width: 100%; }
  .dme-v2 .bh-hero-form .field { flex: none; width: 100%; gap: 6px; }
  .dme-v2 .bh-hero-form .field label { font-size: 12px; line-height: 16px; }
  .dme-v2 .bh-hero-form .field input,
  .dme-v2 .bh-hero-form .field select,
  .dme-v2 .bh-hero-form .field .bh-select-trigger { box-sizing: border-box; width: 100%; height: 40px; min-height: 40px; border-radius: 8px; }
  .dme-v2 .bh-hero-form .booking-submit { width: 100%; min-height: 40px; margin: 0; }
  .dme-v2 .bh-why {
    gap: 32px;
    background: radial-gradient(70% 100% at 50% 20%, #273775 0%, #142048 50%, #0b1431 75%, #01081a 100%);
  }

  .dme-v2 .bh-why-bg img {
    opacity: 0.08;
  }

  .dme-v2 .bh-why-head {
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .dme-v2 .bh-why-pill {
    padding: 6px 12px;
    font-size: 10px;
    line-height: 14px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }

  .dme-v2 .bh-why-title {
    font-size: 24px;
    line-height: 30px;
    text-align: center;
  }

  .dme-v2 .bh-why-lead {
    width: 100%;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
  }

  .dme-v2 .bh-why-connector {
    display: none;
  }

  .dme-v2 .bh-why-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: bh-reason;
  }

  .dme-v2 .bh-why-hub {
    order: -1;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 15px;
    margin-bottom: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--c-blue);
    border-radius: 20px;
  }

  .dme-v2 .bh-why-puzzle {
    zoom: 0.687725;
    animation: none;
  }

  .dme-v2 .bh-why-cards {
    display: contents;
  }

  .dme-v2 .bh-why-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 17px;
    border: 1px solid var(--c-blue);
    box-shadow: 0 10px 26px rgba(39, 55, 117, 0.25);
    counter-increment: bh-reason;
  }

  .dme-v2 .bh-why-card-body {
    display: contents;
  }

  .dme-v2 .bh-why-card-icon,
  .dme-v2 .dme-why-card-icon--ring {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .dme-v2 .bh-why-card-icon img,
  .dme-v2 .dme-why-card-icon--ring img {
    width: 32px;
    height: 32px;
    margin: 0 !important;
  }

  .dme-v2 .bh-why-card-title {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    color: var(--c-white);
  }

  .dme-v2 .bh-why-card-title::before {
    content: counter(bh-reason) '. ';
  }

  .dme-v2 .bh-why-card-text {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--c-white);
  }

  .dme-v2 .bh-why-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 19px;
  }

  .dme-v2 .bh-why-banner-head {
    flex: none;
    gap: 8px;
    padding-left: 20px;
  }

  .dme-v2 .bh-why-banner-title {
    width: 100%;
    font-size: 18px;
    line-height: 22px;
    color: var(--c-white);
  }

  .dme-v2 .bh-why-banner-text {
    width: 100%;
    padding-top: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--c-white);
  }

  .dme-v2 .bh-why-features {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .dme-v2 .bh-why-feature {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--c-blue);
    border-radius: 12px;
    text-align: left;
  }

  .dme-v2 .bh-why-feature-icon {
    grid-row: 1 / 3;
    align-self: start;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dme-v2 .bh-why-feature-icon img {
    max-width: 24px;
    max-height: 24px;
  }

  .dme-v2 .bh-why-feature-title {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    color: var(--c-white);
    white-space: normal;
    text-align: left;
  }

  .dme-v2 .bh-why-feature-title br {
    display: none;
  }

  .dme-v2 .bh-why-feature-text {
    grid-column: 2;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    color: var(--c-white);
  }

  .dme-v2 .bh-svc > .container-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .dme-v2 .bh-svc-head { grid-row: 1; margin-bottom: 6px; }
  .dme-v2 .bh-svc-tabs { display: contents; }
  .dme-v2 .bh-svc-tab,
  .dme-v2 .bh-svc-panel { grid-column: 1; width: 100%; min-width: 0; margin: 0; }
  .dme-v2 .bh-svc-tab { min-height: 54px; padding: 14px 16px; font-size: 14px; line-height: 20px; white-space: normal; border: 1px solid var(--c-light-grey); border-radius: 12px; filter: none; }
  .dme-v2 .bh-svc-tab--eligibility { grid-row: 2; }
  .dme-v2 #dme-svc-panel-eligibility { grid-row: 3; }
  .dme-v2 .bh-svc-tab--coding { grid-row: 4; }
  .dme-v2 #dme-svc-panel-coding { grid-row: 5; }
  .dme-v2 .bh-svc-tab--claims { grid-row: 6; }
  .dme-v2 #dme-svc-panel-claims { grid-row: 7; }
  .dme-v2 .bh-svc-tab--payments { grid-row: 8; }
  .dme-v2 #dme-svc-panel-payments { grid-row: 9; }
  .dme-v2 .bh-svc-tab--reporting { grid-row: 10; }
  .dme-v2 #dme-svc-panel-reporting { grid-row: 11; }
  .dme-v2 .bh-svc-panel { flex-direction: column; padding: 0; background: transparent; }
  .dme-v2 .bh-svc-panel[hidden] { display: none; }
  .dme-v2 .bh-svc-top { flex-direction: column; gap: 12px; }
  .dme-v2 .bh-svc-card--main,
  .dme-v2 .bh-svc-card--ai,
  .dme-v2 .bh-svc-verify { box-sizing: border-box; width: 100%; padding: 18px 16px; border-radius: 14px; }
  .dme-v2 .bh-svc-card--ai { align-items: stretch; }
  .dme-v2 .bh-svc-card-title,
  .dme-v2 .bh-svc-verify-title { font-size: 18px; line-height: 25px; }
  .dme-v2 .bh-svc-card--ai .bh-svc-card-title { font-size: 20px; line-height: 30px; }
  .dme-v2 .bh-svc-card-text { font-size: 13px; line-height: 19px; }
  .dme-v2 .bh-svc-cluster { position: relative; display: block; width: 100%; height: 100px; overflow: visible; }
  .dme-v2 .bh-svc-circuit { position: absolute; top: 0; right: auto; bottom: auto; left: 50%; width: 555px; height: 154px; transform: translateX(-50%) scale(0.6493); transform-origin: top center; z-index: 1; pointer-events: none; }
  .dme-v2 .bh-svc-circuit img { max-width: none; }
  .dme-v2 .bh-svc-cluster::before { content: none; }
  .dme-v2 .bh-svc-chip { position: absolute; top: 25.42px; left: calc(50% + 0.32px); margin-left: -21.4055px; z-index: 2; width: 42.811px; height: 38.919px; box-sizing: border-box; border-radius: 8.432px; font-size: 15.568px; }
  .dme-v2 .bh-svc-pills { display: block; }
  .dme-v2 .bh-svc-pill-item { position: absolute; width: 90.811px; max-width: calc(50% - 6px); min-height: 29px; box-sizing: border-box; padding: 5.19px 9.73px; gap: 5.189px; font-size: 8px; line-height: 8.919px; white-space: nowrap; text-align: center; z-index: 2; }
  .dme-v2 .bh-svc-pill-item--1 { top: 7.4px; right: auto; bottom: auto; left: 0; }
  .dme-v2 .bh-svc-pill-item--2 { top: 7.4px; right: 0; bottom: auto; left: auto; }
  .dme-v2 .bh-svc-pill-item--3 { top: auto; right: auto; bottom: 6.87px; left: 0; }
  .dme-v2 .bh-svc-pill-item--4 { top: auto; right: 0; bottom: 6.87px; left: auto; }
  .dme-v2 .bh-svc-pill-item span { flex: none; }
  .dme-v2 .bh-svc-pill-item img { width: 14px; height: 14px; max-width: 14px; max-height: 14px; }
  .dme-v2 .bh-svc-tagline { margin-top: 10px; font-size: 14px; line-height: 19px; }
  .dme-v2 .bh-svc-flow { display: flex; flex-wrap: nowrap; gap: 4px; align-items: flex-start; justify-content: space-between; }
  .dme-v2 .bh-svc-flow-step { flex: 1 1 0; width: auto; min-width: 0; padding: 0; font-size: 9px; line-height: 12px; white-space: normal; }
  .dme-v2 .bh-svc-flow-icon { width: 32px; height: 32px; margin: 0 auto 5px; }
  .dme-v2 .bh-svc-flow-icon img { max-width: 20px; max-height: 20px; }
  .dme-v2 .bh-svc-flow-arrow { display: block; width: 8px; height: 24px; padding-top: 8px; }
  .dme-v2 .bh-svc-flow-arrow img { width: 8px; height: 8px; }
  .dme-v2 .bh-cta-banner { flex-direction: column; gap: 18px; align-items: stretch; padding: 22px 20px; }
  .dme-v2 .bh-cta-copy { flex: none; gap: 14px; width: 100%; }
  .dme-v2 .bh-cta-title { width: 100%; font-size: 24px; line-height: 31px; }
  .dme-v2 .bh-cta-text { font-size: 16px; line-height: 22px; }
  .dme-v2 .bh-cta-actions { gap: 10px; width: 100%; }
  .dme-v2 .bh-cta-btn { gap: 7px; height: 44px; padding: 10px 8px; font-size: 13px; }
  .dme-v2 .bh-cta-btn-icon { width: 18px; height: 18px; }
  .dme-v2 .bh-cta-art { width: 100%; height: auto; max-width: 278px; margin: 0 auto; object-fit: contain; }
  .dme-v2 .bh-cta-wave { top: auto; right: -35%; bottom: -12%; width: 150%; height: auto; }
  .dme-v2 .bh-pharm-card { flex-direction: column; }
  .dme-v2 .bh-pharm-main { gap: 22px; padding: 24px 20px; }
  .dme-v2 .bh-pharm-head { gap: 12px; }
  .dme-v2 .bh-pharm-pill { max-width: 100%; padding: 8px 10px; font-size: 10px; }
  .dme-v2 .bh-pharm-title { font-size: clamp(16px, 5vw, 20px); line-height: 1.35; }
  .dme-v2 .bh-serve-bar-cta-btn { box-sizing: border-box; width: 100%; min-width: 0; padding-inline: 12px; gap: 8px; }
  .dme-v2 .bh-serve-bar-cta-label { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 20px; white-space: nowrap; }
  .dme-v2 .bh-serve-bar-cta-btn-icon { flex: none; }
  .dme-v2 .bh-int-hub { top: auto; left: auto; }
  .dme-v2 .bh-int-link::before { content: ""; position: absolute; }
  .dme-v2 .bh-int-link::after { content: ""; position: absolute; background: transparent; border-radius: 0; box-shadow: none; opacity: 1; }
  .dme-v2 .bh-int-benefits { align-items: stretch; }
  .dme-v2 .bh-pay-title { font-size: 24px; line-height: 35px; white-space: normal; }
  .dme-v2 .bh-pay-status { justify-content: flex-start; width: 100%; box-sizing: border-box; font-size: 12px; text-align: left; }
  .dme-v2 .bh-pay-status img { width: 18px; height: 18px; }
  .dme-v2 .bh-pay-banner { flex-direction: column; }
  .dme-v2 .bh-pay-banner-title { width: 100%; padding: 0; border: 0; }
  .dme-v2 .bh-pay-steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(126px, auto) 24px minmax(126px, auto) 24px minmax(126px, auto) 24px minmax(126px, auto) 24px minmax(126px, auto); width: 100%; height: auto; }
  .dme-v2 .bh-pay-step { grid-column: 1; height: auto; box-sizing: border-box; }
  .dme-v2 .bh-pay-step:nth-of-type(1) { grid-row: 1; }
  .dme-v2 .bh-pay-step:nth-of-type(3) { grid-row: 3; }
  .dme-v2 .bh-pay-step:nth-of-type(5) { grid-row: 5; }
  .dme-v2 .bh-pay-step:nth-of-type(7) { grid-row: 7; }
  .dme-v2 .bh-pay-step:nth-of-type(9) { grid-row: 9; }
  .dme-v2 .bh-pay-step-arc { inset: auto; grid-column: 1; justify-self: end; align-self: center; display: block; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(2) { grid-row: 2; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(4) { grid-row: 4; justify-self: start; margin: 0 0 0 22%; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(6) { grid-row: 6; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) { grid-row: 8; justify-self: start; margin: 0 0 0 22%; }
  .dme-v2 .bh-pay-step-arc img { position: absolute; top: 50%; left: 50%; display: block; width: 40px; height: 6px; max-width: none; translate: -50% -50%; rotate: 90deg; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(4) img,
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) img { scale: -1 1; }
  .dme-v2 .bh-pay-step-arc::before { display: none; content: none; }
  .dme-v2 .bh-pay-step-arc::after { display: none; content: none; border-bottom: 1px solid var(--c-orange); rotate: 45deg; }
  .dme-v2 .bh-pay-banner-end { flex-direction: column; align-self: stretch; width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.65); border-left: 0; }
  .dme-v2 .bh-pay-orbit { margin: 0 auto; }
  .dme-v2 .bh-pay-orbit-pill { width: 142px; }
  .dme-v2 .bh-consult-badges { flex-direction: column; flex-wrap: nowrap; gap: 10px; align-self: stretch; width: 100%; }
  .dme-v2 .bh-consult-badge { gap: 12px; width: 100%; height: 52px; padding: 8px 12px; background-size: 100% 100%; }
  .dme-v2 .bh-consult-badge-icon { width: 34px; height: 34px; }
  .dme-v2 .bh-consult-badge > span:last-child { flex: 1 1 auto; width: auto; min-width: 0; margin-right: 0; }
  .dme-v2 .bh-consult-card-title { width: 100%; font-size: 22px; line-height: 34px; white-space: nowrap; }
  .dme-v2 .bh-consult-card-lead { width: 100%; font-size: 14px; line-height: 21.6px; }
}

@media (max-width: 390px) {
  .dme-v2 .bh-hero-heading { font-size: 28px; line-height: 36px; }
  .dme-v2 .bh-pay-orbit-pill { width: 132px; }
  .dme-v2 .bh-consult-card-title { font-size: 20px; }
  .dme-v2 .bh-consult-card-lead { white-space: normal; }

}

@media (max-width: 375px) {
  .dme-v2 .bh-pay-orbit-pill { width: 122px; }
  .dme-v2 .bh-serve-bar-cta-label { font-size: 12px; letter-spacing: -0.2px; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-svc-cluster { margin-top: 10px; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-svc-panel .bh-svc-top { gap: 20px; }
  .dme-v2 .bh-svc-panel .bh-svc-card { border-radius: 18px; }
  .dme-v2 .bh-svc-panel .bh-svc-card--main { padding: 24px 26px; }
  .dme-v2 .bh-svc-panel .bh-svc-card--ai { gap: 20px; padding: 19px; }
  .dme-v2 .bh-svc-panel .bh-svc-card-title { font-size: 20px; line-height: 30px; }
  .dme-v2 .bh-svc-panel .bh-svc-card-text { font-size: 14px; line-height: 20.8px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow { gap: 0; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-step { width: 52px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-icon { flex: none; width: 46px; height: 46px; margin: 0; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-icon img { max-width: none; max-height: none; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-arrow { width: 14px; height: 30px; padding-top: 16px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-arrow img { width: 14px; height: 14px; }
  .dme-v2 .bh-svc-panel .bh-svc-cluster { height: 99.892px; margin-top: 0; }
  .dme-v2 .bh-svc-panel .bh-svc-tagline { margin-top: 0; line-height: 21px; }
  .dme-v2 .bh-svc-panel .bh-svc-circuit { translate: none; margin-top: 0; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-step:first-child .bh-svc-flow-label { width: 52px; white-space: normal; }
}

@media (max-width: 399px) {
  .dme-v2 .bh-svc-panel .bh-svc-flow-label { font-size: 10px; line-height: 14px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-icon { width: 38px; height: 38px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-arrow { width: 10px; padding-top: 12px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-arrow img { width: 10px; height: 14px; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-svc-panel { gap: 20px; }
  .dme-v2 .bh-svc-panel .bh-svc-verify { padding: 24px; border-radius: 18px; }
  .dme-v2 .bh-svc-verify-head { justify-content: flex-start; align-items: center; gap: 16px; width: 100%; min-height: 42px; margin: 0 0 28px; }
  .dme-v2 .bh-svc-verify-title { font-size: 24px; line-height: 32px; white-space: normal; }
  .dme-v2 .bh-svc-verify-head::after { top: auto; bottom: -4px; left: 52px; width: 50px; translate: none; }
  .dme-v2 .bh-svc-list { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; }
  .dme-v2 .bh-svc-list-item { gap: 8px; min-height: 24px; font-size: 16px; line-height: 24px; align-items: flex-start; order: var(--n); }
  .dme-v2 .bh-svc-list-item img { width: 24px; height: 24px; object-fit: contain; margin-top: 0; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-step .bh-svc-flow-label { width: 100%; white-space: normal; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-step:first-child .bh-svc-flow-label { max-width: 52px; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-step { flex: 1 1 0; }
  .dme-v2 .bh-svc-panel .bh-svc-flow-label { font-size: clamp(8px, 2.25vw, 11px); overflow-wrap: anywhere; }
  .dme-v2 .bh-svc-panel .bh-svc-cluster { overflow: clip; overflow-clip-margin: 12px; }
  .dme-v2 .bh-svc-panel .bh-svc-pill-item { white-space: normal; }
  .dme-v2 .bh-svc-panel .bh-svc-pill-item span { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-svc-panel:not(#dme-svc-panel-eligibility) .bh-svc-pill-item { width: min(112px, calc(50% - 35px)); }
  .dme-v2 .bh-svc-panel .bh-svc-pill-item span { overflow-wrap: normal; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-cred-panel { gap: 30px; padding: 18px; }
  .dme-v2 .bh-cred-status { width: min(234px, calc(100% - 60px)); gap: 8px; padding: 12px 10px; }
  .dme-v2 .bh-cred-status .bh-cred-tile-body { flex: 1 1 0; gap: 4px; }
  .dme-v2 .bh-cred-status .bh-cred-tile-body strong { font-size: 13px; line-height: 18px; white-space: normal; }
  .dme-v2 .bh-cred-watermark { display: block; top: 18px; right: -5px; }
  .dme-v2 .bh-cred-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .dme-v2 .bh-cred-metrics { gap: 12px; }
}

@media (max-width: 767px) {
  .dme-v2 > section.bh-int { gap: 32px; padding: 20px 16px; }
  .dme-v2 .bh-int .container-page { gap: 32px; align-items: stretch; }
  .dme-v2 .bh-int-head { gap: 12px; align-items: center; }
  .dme-v2 .bh-int-pill { padding: 6px 12px; font-size: 10px; line-height: 14px; border-radius: 8px; }
  .dme-v2 .bh-int-title { width: 100%; font-size: 24px; line-height: 32px; text-align: center; white-space: normal; }
  .dme-v2 .bh-int-lead { width: 100%; font-size: 14px; line-height: 20px; text-align: center; }
  .dme-v2 .bh-int-diagram { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 24px 180px 24px auto 24px auto; gap: 16px 0; width: 100%; max-width: none; height: auto; margin: 0; }
  .dme-v2 .bh-int-card,
  .dme-v2 .bh-int-card--ehr,
  .dme-v2 .bh-int-card--pms,
  .dme-v2 .bh-int-card--clearing { position: relative; inset: auto; grid-column: 1; justify-self: stretch; width: 100%; height: auto; margin: 0; padding: 16px; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; box-shadow: 0 4px 10px rgba(39, 55, 117, 0.09); filter: none; translate: none; }
  .dme-v2 .bh-int-card--ehr { grid-row: 1; }
  .dme-v2 .bh-int-hub { position: relative; inset: auto; grid-column: 1; grid-row: 3; justify-self: center; width: 180px; height: 180px; padding: 16px; gap: 4px; background: #fff; box-shadow: 0 4px 10px rgba(39, 55, 117, 0.12); translate: none; }
  .dme-v2 .bh-int-hub-ring { inset: 0; animation: none; }
  .dme-v2 .bh-int-card--pms { grid-row: 5; }
  .dme-v2 .bh-int-card--clearing { grid-row: 7; }
  .dme-v2 .bh-int-card-head { gap: 10px; align-items: center; width: 100%; }
  .dme-v2 .bh-int-card-icon { width: 36px; height: 36px; border-radius: 10px; }
  .dme-v2 .bh-int-card-icon img { max-width: 20px; max-height: 20px; }
  .dme-v2 .bh-int-card-title { gap: 2px; }
  .dme-v2 .bh-int-card-title h3 { font-size: 16px; line-height: 22px; }
  .dme-v2 .bh-int-card-title i { width: 20px; height: 3px; }
  .dme-v2 .bh-int-link { position: relative; display: flex; inset: auto; grid-column: 1; justify-self: center; align-items: center; justify-content: center; width: 24px; height: 24px; rotate: none; }
  .dme-v2 .bh-int-link--left { grid-row: 2; }
  .dme-v2 .bh-int-link--right { grid-row: 4; }
  .dme-v2 .bh-int-link--down { grid-row: 6; }
  .dme-v2 .bh-int-link img { display: none; }
  .dme-v2 .bh-int-link img.bh-int-mobile-arrow { display: block; width: 24px; height: 24px; max-width: none; }
  .dme-v2 .bh-int-link::before,
  .dme-v2 .bh-int-link::after { content: none; }
  .dme-v2 .bh-int-link::before { top: 1px; left: 50%; height: 14px; border-left: 1px dashed var(--c-blue); translate: -50% 0; }
  .dme-v2 .bh-int-link::after { top: 10px; left: 50%; width: 6px; height: 6px; border-right: 1px solid var(--c-blue); border-bottom: 1px solid var(--c-blue); rotate: 45deg; translate: -50% 0; }
  .dme-v2 .bh-int-logos { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .dme-v2 .bh-int-logo { box-sizing: border-box; flex: none; width: auto !important; min-width: 0; max-width: none; height: 37px; padding: 6px; border-radius: 6px; }
  .dme-v2 .bh-int-logo img { width: auto; height: auto; max-width: 82px; max-height: 22px; }
  .dme-v2 .bh-int-card--ehr .bh-int-logo[style*="--n: 0"] img { max-width: 68px; max-height: 17px; }
  .dme-v2 .bh-int-card--ehr .bh-int-logo[style*="--n: 1"] img { max-width: 72px; max-height: 16.258px; }
  .dme-v2 .bh-int-card--ehr .bh-int-logo[style*="--n: 2"] img { max-width: 68px; max-height: 17px; }
  .dme-v2 .bh-int-card--ehr .bh-int-logo[style*="--n: 3"] img { max-width: 68px; max-height: 17px; }
  .dme-v2 .bh-int-card--ehr .bh-int-logo[style*="--n: 4"] img { max-width: 78px; max-height: 16.116px; }
  .dme-v2 .bh-int-card--pms .bh-int-logos { display: grid; grid-template-columns: repeat(2, 94px); gap: 8px 16px; justify-content: center; }
  .dme-v2 .bh-int-card--pms .bh-int-logo { width: 94px !important; }
  .dme-v2 .bh-int-card--pms .bh-int-logo:nth-child(1) img { max-width: 82px; max-height: 20px; }
  .dme-v2 .bh-int-card--pms .bh-int-logo:nth-child(2) img { max-width: 78px; max-height: 21px; }
  .dme-v2 .bh-int-card--pms .bh-int-logo:nth-child(3) img { max-width: 60px; max-height: 20px; }
  .dme-v2 .bh-int-card--pms .bh-int-logo:nth-child(4) img { max-width: 58px; max-height: 22px; }
  .dme-v2 .bh-int-card--clearing .bh-int-logos { display: grid; grid-template-columns: repeat(2, 90px); justify-content: center; gap: 8px 20px; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo { width: 90px !important; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo:nth-child(3) { grid-column: 2; grid-row: 2; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo:nth-child(4) { grid-column: 1; grid-row: 2; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo:nth-child(1) img { max-width: 68px; max-height: 17px; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo:nth-child(2) img { max-width: 78px; max-height: 17px; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo:nth-child(3) img { max-width: 78px; max-height: 25px; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo:nth-child(4) img { max-width: 78px; max-height: 17px; }
  .dme-v2 .bh-int-hub-mark { width: 38px; height: 24px; }
  .dme-v2 .bh-int-hub-mark img.bh-int-mobile-mark { display: block; }
  .dme-v2 .bh-int-hub-mark i { display: none; }
  .dme-v2 .bh-int-hub strong { font-size: 15px; }
  .dme-v2 .bh-int-hub > span:last-child { font-size: 10px; line-height: 14px; }
  .dme-v2 .bh-int-benefits { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 12px; border: 1px solid #e5e7eb; border-radius: 18px; }
  .dme-v2 .bh-int-benefit,
  .dme-v2 .bh-int-benefit:first-child { min-height: 32px; padding: 0; gap: 12px; font-size: 14px; line-height: 20px; white-space: normal; }
  .dme-v2 .bh-int-benefit-icon { width: 32px; height: 32px; border-radius: 16px; }
  .dme-v2 .bh-int-benefit-icon img { max-width: 18px; max-height: 18px; }
  .dme-v2 .bh-int-benefit-rule { display: block; width: 100%; height: 1px; }
}

@media (max-width: 767px) {
  .dme-v2 > section.bh-states { padding: 20px; }
  .dme-v2 .bh-states .container-page { gap: 28px; align-items: stretch; }
  .dme-v2 .bh-states-head { gap: 12px; }
  .dme-v2 .bh-states-pill { padding: 8px 10px; font-size: 10px; line-height: 10px; }
  .dme-v2 .bh-states-title { width: 100%; font-size: 24px; line-height: 32px; white-space: normal; }
  .dme-v2 .bh-states-lead { font-size: 13px; line-height: 18px; white-space: normal; }
  .dme-v2 .bh-states-layout { gap: 28px; align-items: stretch; }
  .dme-v2 .bh-states-intro { width: 100%; gap: 16px; padding: 20px; background: #eff2ff; border-color: #e2e8f0; box-shadow: none; }
  .dme-v2 .bh-states-panel::after { display: none; }
  .dme-v2 .bh-states-logo { width: 227px; height: 37px; }
  .dme-v2 .bh-states-intro-copy { gap: 20px; }
  .dme-v2 .bh-states-intro-copy h3 { font-size: 18px; line-height: 24px; }
  .dme-v2 .bh-states-intro-copy h3 br { display: none; }
  .dme-v2 .bh-states-intro-copy p { font-size: 14px; line-height: 25px; }
  .dme-v2 .bh-states-btn { position: relative; justify-content: center; width: 100%; height: 50px; gap: 8px; padding: 8px 50px 8px 12px; font-size: 14px; line-height: 20px; background: #fc5d61; border-radius: 75px; filter: drop-shadow(0 4px 6px rgba(252, 93, 97, 0.25)); }
  .dme-v2 .bh-states-btn-icon { position: absolute; top: 50%; width: 16px; height: 16px; background: transparent; translate: 0 -50%; }
  .dme-v2 .bh-states-btn-icon img { display: none; }
  .dme-v2 .bh-states-btn-icon img.bh-states-mobile-arrow { display: block; width: 16px; height: 16px; max-width: none; }
  .dme-v2 .bh-states-map { position: relative; flex: none; width: 100%; height: auto; min-height: 0; padding: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; filter: none; }
  .dme-v2 .bh-states-map-art { width: 100%; max-width: none; height: 194.254px; aspect-ratio: auto; margin: 0; }
  .dme-v2 .bh-states-grid-title { display: block; margin: 28px 0 12px; font-family: var(--font-primary); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: 0.5px; color: var(--c-blue); text-transform: capitalize; }
  .dme-v2 .bh-states-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
  .dme-v2 .bh-states-card { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 32px auto; column-gap: 8px; row-gap: 8px; align-items: start; padding: 14px; background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; filter: drop-shadow(0 4px 6px rgba(39, 55, 117, 0.06)); }
  .dme-v2 .bh-states-card-icon { grid-column: 1; grid-row: 1; width: 32px; height: 32px; }
  .dme-v2 .bh-states-card-icon img { max-width: 18px; max-height: 24px; }
  .dme-v2 .bh-states-card-body { display: contents; }
  .dme-v2 .bh-states-card-body > a,
  .dme-v2 .bh-states-card-body > strong { grid-column: 2; grid-row: 1; align-self: center; min-width: 0; }
  .dme-v2 .bh-states-card-body strong { line-height: 20px; }
  .dme-v2 .bh-states-card-body > span:not(.visually-hidden) { grid-column: 1 / -1; grid-row: 2; font-size: 12px; line-height: 20px; }
}

@media (max-width: 767px) {
  .dme-v2 > section.bh-pay { padding: 0 20px; }
  .dme-v2 > section.bh-pay > .container-page { width: 100%; max-width: none; padding-inline: 0; }
  .dme-v2 .bh-pay-frame { position: relative; gap: 40px; padding: 19px; border-color: transparent; }
  .dme-v2 .bh-pay-frame-outline { position: absolute; inset: -1px; display: block; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
  .dme-v2 .bh-pay-frame-outline rect { x: 0.5px; y: 0.5px; width: calc(100% - 1px); height: calc(100% - 1px); }
  .dme-v2 .bh-pay-top { flex-direction: column; gap: 20px; padding: 40px 0; }
  .dme-v2 .bh-pay-intro { gap: 20px; width: 100%; }
  .dme-v2 .bh-pay-intro--sm { gap: 24px; }
  .dme-v2 .bh-pay-pill { font-size: 10px; line-height: 10px; }
  .dme-v2 .bh-pay-lead { min-height: 88px; font-size: 14px; line-height: 29.25px; }
  .dme-v2 .bh-pay-network { flex: none; width: 100%; }
  .dme-v2 .bh-pay-title,
  .dme-v2 .bh-pay-title--sm { font-size: 24px; line-height: 35px; }
  .dme-v2 .bh-pay-network-title { font-size: 16px; line-height: 20px; }
  .dme-v2 .bh-pay-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 60px; gap: 12px; }
  .dme-v2 .bh-pay-logo { min-width: 0; padding: 13px; }
  .dme-v2 .bh-pay-status { align-items: flex-start; gap: 8px; padding: 8px 24px; font-weight: 500; line-height: 20px; }
  .dme-v2 .bh-pay-status > span { flex: 1; min-width: 0; }
  .dme-v2 .bh-pay-banner { gap: 20px; padding: 20px; width: 100%; margin-inline: 0; padding-bottom: 21px; background: radial-gradient(ellipse 62.7361% 107.533% at 88.3056% 29.9484%, #273775 0%, #142048 50%, #0b1431 75%, #01081a 100%); }
  .dme-v2 .bh-pay-banner-title { min-height: 175px; padding-right: 1px; border-right: 1px solid rgba(71, 85, 105, 0.5); }
  .dme-v2 .bh-pay-banner .bh-pay-pill--light { font-size: 10px; line-height: 9.976px; }
  .dme-v2 .bh-pay-banner-title h3 { font-size: 24px; line-height: 36px; }
  .dme-v2 .bh-pay-steps { display: flex; flex: none; flex-direction: column; gap: 20px; }
  .dme-v2 .bh-pay-step { justify-self: center; width: 174px; min-height: 0; padding: 0; gap: 10px; }
  .dme-v2 .bh-pay-step-arc { position: absolute; top: 96.93px; left: calc(50% + 90px); width: 9px; height: 87px; margin: 0; rotate: none; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(4),
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) { left: calc(50% - 108px); margin: 0; scale: -1 1; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(4) { top: 234.93px; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(6) { top: 367.93px; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) { top: 484.93px; }
  .dme-v2 .bh-pay-step-arc img,
  .dme-v2 .bh-pay-step-arc:nth-of-type(4) img,
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) img { top: 50%; left: 50%; width: 88.1632px; height: 11.5192px; rotate: 90deg; scale: none; }
  .dme-v2 .bh-pay-step strong { font-size: 14px; line-height: 16px; }
  .dme-v2 .bh-pay-step > span:last-child { font-size: 12px; }
  .dme-v2 .bh-pay-banner-end { position: relative; padding: 1px 24px 0; border-top-color: transparent; gap: 10px; }
  .dme-v2 .bh-pay-banner-end::before { position: absolute; top: 0; inset-inline: 0; height: 1px; background: #fff; content: ""; }
  .dme-v2 .bh-pay-banner-end img { width: 50px; height: 63px; margin: -2px; }
  .dme-v2 .bh-pay-banner-end p { width: 100%; }
  .dme-v2 .bh-pay-bottom { gap: 30px; align-items: center; padding: 20px 0; }
  .dme-v2 .bh-pay-orbit { width: min(309px, calc(100% - 51px)); height: 226.098px; zoom: 1; }
  .dme-v2 .bh-pay-orbit-ring { top: calc(50% - 0.07px); width: 165.805px; height: 165.805px; border: 0; }
  .dme-v2 .bh-pay-orbit-ring-mobile { display: block; }
  .dme-v2 .bh-pay-orbit-center { width: 120.585px; height: 120.585px; padding: 15.074px; border-width: 3.015px; box-shadow: 0 18.841px 37.683px -9.044px rgba(0, 0, 0, 0.25); }
  .dme-v2 .bh-pay-orbit-center strong { font-size: 13.566px; line-height: 16.957px; letter-spacing: -0.6783px; }
  .dme-v2 .bh-pay-orbit-pill { min-height: 0; gap: 6.029px; padding: 6.029px 12.059px; box-shadow: 0 7.537px 11.305px -2.261px rgba(0, 0, 0, 0.1); font-size: 9.044px; line-height: 12.059px; }
  .dme-v2 .bh-pay-orbit-pill-icon { width: 24.117px; height: 24.117px; }
  .dme-v2 .bh-pay-orbit-pill--commercial { min-height: 37.058px; top: 11.99px; left: -25.5px; width: 120.585px; }
  .dme-v2 .bh-pay-orbit-pill--medicare { height: 36.1756px; top: 4.98%; right: -25.5px; width: 123.6px; }
  .dme-v2 .bh-pay-orbit-pill--medicaid { height: 36.1756px; top: 73.98%; bottom: auto; left: -25.5px; width: 120.585px; }
  .dme-v2 .bh-pay-orbit-pill--specialty { height: 36.1756px; top: 73.98%; right: -25.5px; bottom: auto; width: 123.6px; }
  .dme-v2 .bh-pay-orbit-dot--1 { top: 34.6px; left: calc(50% - 42.2px); }
  .dme-v2 .bh-pay-orbit-dot--2 { top: 34.6px; right: calc(50% - 42.2px); }
  .dme-v2 .bh-pay-orbit-dot--3 { bottom: 33.99px; left: calc(50% - 42.2px); }
  .dme-v2 .bh-pay-orbit-dot--4 { right: calc(50% - 42.2px); bottom: 33.99px; }
  .dme-v2 .bh-pay-orbit-pill-icon img { width: 12.0585px; height: 12.0585px; }
  .dme-v2 .bh-pay-orbit-pill--specialty > span:last-child { flex: none; width: 76.12px; }
  .dme-v2 .bh-pay-orbit-pill > span:last-child { min-height: 25px; }
  .dme-v2 .bh-pay-orbit-dot { z-index: 2; width: 9.044px; height: 9.044px; }
  .dme-v2 .bh-pay-trust { gap: 20px; width: 100%; height: auto; padding: 0; border-top: 0; border-left: 1px solid #f1f5f9; }
  .dme-v2 .bh-pay-trust p { min-height: 46px; }
  .dme-v2 .bh-pay-avatars { width: 100%; gap: 0; justify-content: space-between; }
  .dme-v2 .bh-pay-avatars li { width: 56px; height: 56px; padding: 13px; }
  .dme-v2 .bh-pay-avatars img { width: 30px; height: 30px; }
}

@media (max-width: 767px) {
  .dme-v2 > section[class] { box-sizing: border-box; padding-inline: 20px; }
  .dme-v2 > section[class] > .container-page { width: 100%; max-width: none; padding-inline: 0; }
}

/* DME copy is longer than the reference. Allow cards and connectors to follow it. */
@media (max-width: 767px) {
  .dme-v2 .dme-hero-art { margin-top: 30px; }
  .dme-v2 .dme-int-logo-rows { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .dme-v2 .dme-int-logo-rows .bh-int-logos { display: contents; }
  .dme-v2 .bh-int-card--pms .dme-int-logo-rows { display: grid; grid-template-columns: repeat(2, 94px); gap: 8px 16px; }
  .dme-v2 .bh-int-card--clearing .dme-int-logo-rows { display: grid; grid-template-columns: repeat(2, 90px); gap: 8px 20px; }
  .dme-v2 .bh-int-logo img { object-fit: contain; }
  .dme-v2 .bh-states-card { height: auto; min-height: 120px; }
  .dme-v2 .bh-states-card-body strong { font-size: clamp(12px, 3.5vw, 14px); }
  .dme-v2 .bh-states-btn-icon { right: 16px; }
  .dme-v2 .bh-pay-steps { width: 100%; height: auto; }
  .dme-v2 .bh-pay-step,
  .dme-v2 .bh-pay-step.dme-pay-step--loose,
  .dme-v2 .bh-pay-steps > .bh-pay-step:first-child { gap: 10px; width: 174px; height: auto; min-height: 0; padding: 0; }
  .dme-v2 .bh-pay-step > span:last-child { width: auto; font-size: 12px; line-height: 12.5px; }
  .dme-v2 .bh-pay-step-arc { position: absolute; top: 96.93px; left: calc(50% + 90px); display: block; width: 9px; height: 87px; margin: 0; rotate: none; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(4),
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) { left: calc(50% - 108px); scale: -1 1; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(4) { top: 234.93px; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(6) { top: 367.93px; }
  .dme-v2 .bh-pay-step-arc:nth-of-type(8) { top: 484.93px; }
  .dme-v2 .bh-pay-step-arc img { top: 50%; left: 50%; width: 88.1632px; height: 11.5192px; translate: -50% -50%; rotate: 90deg; scale: none; }
  .dme-v2 .bh-pay-banner-end { position: relative; flex-direction: column; align-self: stretch; gap: 10px; width: 100%; height: 198.5px; min-height: 0; padding: 1px 24px 0; border-top: 1px solid transparent; border-left: 0; }
  .dme-v2 .bh-pay-clipboard { display: block; flex: none; width: 46px; height: 59px; }
  .dme-v2 .bh-pay-lead,
  .dme-v2 .bh-pay-intro--sm .bh-pay-lead { width: 100%; max-width: 100%; }
  .dme-v2 .bh-pay-logo img { width: auto; height: auto; max-width: 100%; max-height: 32px; object-fit: contain; }
  .dme-v2 .bh-pay-status { border-radius: 20px; }
  .dme-v2 .bh-choose-grid { counter-reset: dme-choice; }
  .dme-v2 .bh-choose-card { counter-increment: dme-choice; }
  .dme-v2 .bh-choose-card-title::before { content: counter(dme-choice) '. '; color: #fc5d61; }
  .dme-v2 .bh-case-photo img { left: 50%; transform: translateX(-50%); max-width: 100%; object-fit: contain; }
  .dme-v2 .bh-pharm-title { white-space: normal; }
}

@media (max-width: 767px) {
  .dme-v2 .dme-svc-verify--offset .bh-svc-verify-head { margin-left: 0; translate: none; }
  .dme-v2 .dme-svc-verify--offset .bh-svc-verify-head::after { left: 52px; translate: none; }
  .dme-v2 .dme-svc-list--rule4 .bh-svc-list-item:nth-child(4)::after { display: none; }
  .dme-v2 .bh-consult-card-lead { white-space: normal; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-pay-logo[data-payer="anthem"] { grid-area: 2 / 2; }
  .dme-v2 .bh-pay-logo[data-payer="cigna"] { grid-area: 2 / 1; }
  .dme-v2 .bh-pay-logo[data-payer="tricare"] { grid-area: 4 / 1; }
  .dme-v2 .bh-pay-logo[data-payer="carelon"] { grid-area: 3 / 2; }
  .dme-v2 .bh-pay-logo[data-payer="beacon"] { grid-area: 3 / 3; }
}

@media (max-width: 767px) {
  .dme-v2 .bh-serve-key-icon { width: 54px; height: 54px; }
  .dme-v2 .bh-serve-card { gap: 10px; }
  .dme-v2 .bh-serve-card-art { width: 152px; height: 135px; object-fit: contain; }
  .dme-v2 .bh-serve-card-title { margin-right: 0; }
  .dme-v2 .bh-serve-card-text { font-size: 14px; line-height: 19.2px; }
}

/* Match the reference's single badge entrance and stationary coding icons. */
.dme-v2 .bh-choose.is-in .bh-choose-badge { animation: bh-choose-pop .9s .8s cubic-bezier(.34,1.56,.64,.64) backwards; }
.dme-v2 .bh-choose:not(.is-armed) .bh-choose-badge { animation: none; }
.dme-v2 .bh-code-icon img { border-radius: 10px; transition: background-color .35s ease; }
.dme-v2 .bh-code-card:hover .bh-code-icon img { scale: none; rotate: none; background-color: #fff; box-shadow: none; }

@media (max-width: 767px) {
  .dme-v2 .bh-int-card--pms .bh-int-logo[style*="--n: 2"] img { max-width: 60px; max-height: 20px; }
  .dme-v2 .bh-int-card--pms .bh-int-logo[style*="--n: 3"] img { max-width: 58px; max-height: 22px; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo[style*="--n: 2"] { grid-column: 2; grid-row: 2; }
  .dme-v2 .bh-int-card--clearing .bh-int-logo[style*="--n: 3"] { grid-column: 1; grid-row: 2; }
}

@media (max-width: 360px) {
  .dme-v2 .bh-why-puzzle {
    zoom: 0.6;
  }
}

/* Trusted Standards — matching Mental Health page mobile layout */
@media (max-width: 767px) {
  .dme-v2 .bh-trust {
    gap: 50px;
    padding: 64px 20px;
    background: radial-gradient(356.58px 1682.2px at 70% 30%, #273775 0%, #142048 50%, #0b1431 75%, #01081a 100%);
  }

  .dme-v2 .bh-trust-title {
    font-size: 24px;
    line-height: 35px;
    text-align: center;
  }

  .dme-v2 .bh-trust-logos {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: auto;
    max-width: none;
    grid-template-columns: initial;
  }

  .dme-v2 .bh-trust-logo img {
    max-width: none;
    max-height: none;
  }

  .dme-v2 .bh-trust-logo:nth-child(1) img { width: 171px; height: 170px; }
  .dme-v2 .bh-trust-logo:nth-child(2) img { width: 130px; height: 178px; }
  .dme-v2 .bh-trust-logo:nth-child(3) img { width: 176px; height: 178px; }
  .dme-v2 .bh-trust-logo:nth-child(4) img { width: 169px; height: 132px; }

  .dme-v2 .bh-trust-logo + .bh-trust-logo::before {
    content: "";
    top: -31px;
    bottom: auto;
    left: 50%;
    width: 142.814px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    translate: -50% 0;
    rotate: none;
    transform-origin: center;
  }

  .dme-v2 .bh-trust.is-in .bh-trust-logo + .bh-trust-logo::before {
    animation-name: dme-trust-rule;
  }

  .dme-v2 .bh-trust-text {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
  }
}

@keyframes dme-trust-rule {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

@media (max-width: 360px) {
  .dme-v2 .bh-trust-logo img {
    max-width: 100%;
    height: auto;
  }
}

/* Client success: match the Mental Health case study's mobile layout. */
@media (max-width: 767px) {
  .dme-v2 #dme-case-study {
    padding: 60px 20px;
  }

  .dme-v2 #dme-case-study .bh-case-card {
    gap: 24px;
    padding: 0;
  }

  .dme-v2 #dme-case-study .bh-case-story {
    min-height: auto;
    padding: 28px 24px 30px;
    container-type: normal;
  }

  .dme-v2 #dme-case-study .bh-case-portrait {
    zoom: 1;
  }

  .dme-v2 #dme-case-study .bh-case-photo img {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: calc(100% + 4px);
    max-width: none;
    transform: none;
    object-fit: cover;
  }

  .dme-v2 #dme-case-study .bh-case-quote {
    width: 448px;
    margin-top: 36px;
  }

  .dme-v2 #dme-case-study .bh-case-author strong {
    font-size: 24px;
    line-height: 33.84px;
  }

  .dme-v2 #dme-case-study .bh-case-author span,
  .dme-v2 #dme-case-study .bh-case-quote blockquote {
    font-size: 16px;
    line-height: 25.6px;
  }

  .dme-v2 #dme-case-study .bh-case-body {
    padding: 0 24px;
  }

  .dme-v2 #dme-case-study .bh-case-pill {
    font-size: 12px;
  }

  .dme-v2 #dme-case-study .bh-case-title {
    font-size: 24px;
    line-height: 31px;
  }

  .dme-v2 #dme-case-study .bh-case-text p {
    font-size: 16px;
    line-height: 26.2px;
  }

  .dme-v2 #dme-case-study .bh-case-text p + p {
    margin-top: 26.2px;
  }

  .dme-v2 #dme-case-study .bh-case-outcomes {
    padding: 0 24px 28px;
  }

  .dme-v2 #dme-case-study .bh-case-stats {
    gap: 16px;
  }

  .dme-v2 #dme-case-study .bh-case-stat {
    gap: 14px;
    padding: 16px;
  }

  .dme-v2 #dme-case-study .bh-case-stat-body strong {
    font-size: 20px;
    line-height: 24px;
  }

  .dme-v2 #dme-case-study .bh-case-stat-body > span {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .dme-v2 #dme-case-study .bh-case-portrait {
    zoom: 0.78;
  }

  .dme-v2 #dme-case-study .bh-case-story {
    padding: 22px 18px 26px;
  }

  .dme-v2 #dme-case-study .bh-case-quote {
    margin-top: 22px;
  }

  .dme-v2 #dme-case-study .bh-case-author strong {
    font-size: 20px;
    line-height: 28px;
  }

  .dme-v2 #dme-case-study .bh-case-author span,
  .dme-v2 #dme-case-study .bh-case-quote blockquote {
    font-size: 15px;
    line-height: 24px;
  }

  .dme-v2 #dme-case-study .bh-case-body,
  .dme-v2 #dme-case-study .bh-case-outcomes {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 360px) {
  .dme-v2 #dme-case-study .bh-case-portrait {
    zoom: 0.68;
  }
}

/* Client Success testimonials: follow Mental Health's mobile heading,
   single-card review, pagination, and paired review-site badges. */
@media (max-width: 767px) {
  .dme-v2 .dme-testi {
    padding: 48px 20px;
    background: radial-gradient(1200px 272.07px at 50% 0, #fff 0%, #f5f7fc 55%, #eef1f8 100%);
  }

  .dme-v2 .dme-testi-blob { display: none; }

  .dme-v2 .dme-testi .container-page {
    gap: 32px;
    width: 100%;
    padding-inline: 0;
  }

  .dme-v2 .dme-testi-head {
    align-items: flex-start;
    width: 100%;
    text-align: left;
  }

  .dme-v2 .dme-testi-pill {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 9.976px;
    letter-spacing: 0;
    text-transform: none;
    background: rgba(39, 55, 117, 0.1);
    border: 0;
    border-radius: 9px;
    box-shadow: none;
  }

  .dme-v2 .dme-testi-title {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.5px;
    text-align: left;
  }

  .dme-v2 .dme-testi-lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 25px;
    text-align: left;
  }

  .dme-v2 .dme-testi-carousel {
    gap: 24px;
    padding-top: 0;
  }

  .dme-v2 .dme-testi-track {
    align-items: start;
    min-height: 0;
  }

  .dme-v2 .dme-testi-card,
  .dme-v2 .dme-testi-card.is-center {
    --w: 100%;
    --x: 0%;
    min-height: 0;
    padding: 30px 24px 26px;
    gap: 0;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    box-shadow: 0 30px 60px -24px rgba(39, 55, 117, 0.36), 0 0 0 1px rgba(39, 55, 117, 0.08);
  }

  /* Keep the review carousel controls in a consistent position when a
     shorter testimonial becomes active. The script sets this from the
     tallest mobile card and recalculates it when the viewport changes. */
  .dme-v2 .dme-testi-track {
    align-items: stretch;
  }

  .dme-v2 .dme-testi-card,
  .dme-v2 .dme-testi-card.is-center {
    min-height: var(--dme-testi-mobile-card-height, 0px);
  }

  .dme-v2 .dme-testi-card::before {
    opacity: 1;
  }

  .dme-v2 .dme-testi-card-top,
  .dme-v2 .dme-testi-card.is-center .dme-testi-card-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: auto;
    height: 45px;
    margin: 0 0 16px;
  }

  .dme-v2 .dme-testi-mark,
  .dme-v2 .dme-testi-card.is-center .dme-testi-mark {
    position: static;
    width: auto;
    font-size: 42px;
    line-height: 45px;
  }

  .dme-v2 .dme-testi-mark-close {
    display: none;
  }

  .dme-v2 .dme-testi-card-tag {
    display: none;
  }

  .dme-v2 .dme-testi-card .dme-testi-quote,
  .dme-v2 .dme-testi-card.is-center .dme-testi-quote {
    flex: none;
    margin: 0 0 14px;
    padding: 0;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
  }

  .dme-v2 .dme-testi-rating {
    gap: 8px;
    align-items: center;
    margin: 0 0 26px;
  }

  .dme-v2 .dme-testi-rating .dme-testi-verified {
    display: none;
  }

  .dme-v2 .dme-testi-verified {
    position: absolute;
    top: 28px;
    right: 24px;
  }

  .dme-v2 .dme-testi-stars {
    gap: 2px;
  }

  .dme-v2 .dme-testi-stars img {
    width: 16px;
    height: 16px;
  }

  .dme-v2 .dme-testi-rating b {
    font-size: 14px;
  }

  .dme-v2 .dme-testi-sep {
    width: 100%;
    margin: 0 0 14px;
    background: #e2e8f0;
  }

  .dme-v2 .dme-testi-author {
    gap: 11px;
  }

  .dme-v2 .dme-testi-avatar,
  .dme-v2 .dme-testi-card.is-center .dme-testi-avatar {
    width: 56px;
    height: 56px;
    font-size: 15px;
    color: var(--c-white);
    background: var(--c-orange);
  }

  .dme-v2 .dme-testi-avatar img {
    display: none;
  }

  .dme-v2 .dme-testi-avatar {
    overflow: visible;
  }

  .dme-v2 .dme-testi-who b,
  .dme-v2 .dme-testi-card.is-center .dme-testi-who b {
    font-size: 16px;
    line-height: 21px;
  }

  .dme-v2 .dme-testi-who small {
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 1px;
  }

  .dme-v2 .dme-testi-dots {
    align-items: center;
    height: 44px;
  }

  .dme-v2 .dme-testi-arrow {
    display: flex;
  }

  .dme-v2 .dme-testi-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .dme-v2 .dme-testi-badge {
    display: none;
  }

  .dme-v2 .dme-testi-score {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 76px;
    min-height: 0;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }

  .dme-v2 .dme-testi-brand {
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }

  .dme-v2 .dme-testi-tp-logo img {
    width: 18px;
    height: 18px;
  }

  .dme-v2 .dme-testi-tp-logo span {
    font-size: 16px;
    letter-spacing: -0.4px;
  }

  .dme-v2 .dme-testi-tp-stars,
  .dme-v2 .dme-testi-g-stars {
    display: none;
  }

  .dme-v2 .dme-testi-g-logo {
    font-size: 25px;
    line-height: 27px;
  }

  .dme-v2 .dme-testi-score-sep {
    display: none;
  }

  .dme-v2 .dme-testi-score-num {
    align-items: center;
    font-size: 10px;
  }

  .dme-v2 .dme-testi-score-num::before {
    margin-right: 4px;
    color: #fbbc05;
    content: "★";
  }

  .dme-v2 .dme-testi-score-num b {
    font-size: 10px;
    line-height: 12px;
  }

  .dme-v2 .dme-testi-score-num span {
    margin: 0;
    font-size: 9px;
    line-height: 11px;
  }
}

@media (max-width: 400px) {
  .dme-v2 .dme-testi-card .dme-testi-quote,
  .dme-v2 .dme-testi-card.is-center .dme-testi-quote {
    font-size: 13px;
    line-height: 21px;
  }
}
