/* Dermatology billing page (v2/specialties/dermatology-billing.blade.php). Loaded
   after behavioral-health-v2.css and mental-health-v2.css: the page reuses their
   .bh-* sections and the MH tuning of them (the wrapper carries .mh-v2 too).
   Everything here is scoped to .derm-v2 or uses derm-* classes, so the other
   pages are unaffected. The testimonial carousel at the end is the DME page's
   block (dme-v2.css), rescoped to .derm-v2. */

/* Figma stacks the page's frames 60px apart on the white page. */

/* ============================================================= */
/* Hero — Figma node 11085:2671 (1440 x 780)                      */
/* The MH geometry (511px copy column) with the form 60px below    */
/* and BH's 42.33px bottom padding; the dermatologist artwork.     */
/* ============================================================= */
.derm-v2 .bh-hero {
  padding-bottom: 42.33px;
}

.derm-v2 .bh-hero-top {
  margin-bottom: 60px;
}

/* Figma 11085:2766: 764 x 491 at 476 / 28.5 from the content box (its right
   edge on the 1240 line) at 70% opacity; the image is 96.51% x 100.19%, 1.87% in. */
.derm-hero-art {
  position: absolute;
  top: 28.5px;
  right: 0;
  width: 764px;
  height: 491px;
  opacity: 0.7;
  pointer-events: none;
}

.derm-hero-art img {
  position: absolute;
  top: 0;
  left: 1.87%;
  width: 96.51%;
  max-width: none;
  height: 100.19%;
  animation:
    bh-brain-in 1.4s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    bh-breathe 7s 1.5s ease-in-out infinite;
}

@media (max-width: 1199px) {
  .derm-v2 .bh-hero-top {
    margin-bottom: 48px;
  }

  .derm-hero-art {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 764px;
    height: auto;
    margin: 32px auto 0;
    aspect-ratio: 764 / 491;
  }
}

@media (prefers-reduced-motion: reduce) {
  .derm-hero-art img {
    animation: none;
  }
}

/* ============================================================= */
/* The challenges — Figma 11096:6997 (1440 x 760)                 */
/* Copy (640) | illustration (390 x 520) | outcomes (150), 30px   */
/* apart and centred in the 760px band; corner blobs and rings.    */
/* ============================================================= */
.derm-why {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #f5f8fe, #eef3fc);
}

.derm-why .container-page {
  position: relative;
  z-index: 1;
}

.derm-why-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 760px;
}

/* Figma 11096:6998 / 6999 / 7000, placed against the 1440px frame. */
.derm-why-blob {
  position: absolute;
  background: #e3eaf8;
  border-radius: 50%;
  pointer-events: none;
}

.derm-why-blob--tl {
  top: -130px;
  left: calc(50% - 720px - 110px);
  width: 300px;
  height: 300px;
}

.derm-why-blob--br {
  right: calc(50% - 720px - 90px);
  bottom: -110px;
  width: 280px;
  height: 280px;
}

.derm-why-ring {
  position: absolute;
  top: -80px;
  left: calc(50% - 720px - 60px);
  width: 200px;
  height: 200px;
  border: 1px dashed #d3dcf0;
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Copy ---------- */
.derm-why-copy {
  flex: none;
  width: 640px;
}

.derm-why-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 12px;
  line-height: 9.976px;
  color: var(--c-blue);
  white-space: nowrap;
  background: rgba(39, 55, 117, 0.1);
  border-radius: 9.069px;
}

.derm-why-title {
  margin: 18.86px 0 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 46px;
  line-height: 53.36px;
  letter-spacing: -0.9px;
  color: var(--c-blue);
  text-transform: none;
}

.derm-why-title .accent {
  color: var(--c-orange);
}

.derm-why-lead {
  margin: 18px 0 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--c-blue);
}

.derm-why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

/* 9px orange dot with a 4px pink halo, 7px below the line top. */
.derm-why-list li {
  position: relative;
  padding-left: 21px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 15px;
  line-height: 23.25px;
  color: var(--c-blue);
}

.derm-why-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--c-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffe4e5;
}

.derm-why-btn {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
  padding: 16px 30px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--c-white);
  text-decoration: none;
  background: var(--c-orange);
  border-radius: 999px;
  box-shadow: 0 16px 16px rgba(252, 93, 97, 0.35);
  transition: translate 0.3s ease, box-shadow 0.3s ease;
}

.derm-why-btn img {
  display: block;
  flex: none;
  transition: translate 0.3s ease;
}

.derm-why-btn:hover,
.derm-why-btn:focus-visible {
  color: var(--c-white);
  translate: 0 -2px;
  box-shadow: 0 20px 22px rgba(252, 93, 97, 0.42);
}

.derm-why-btn:hover img {
  translate: 4px 0;
}

/* ---------- Illustration (Figma 11096:7062, 390 x 520) ---------- */
.derm-why-visual {
  position: relative;
  flex: none;
  width: 390px;
  height: 520px;
}

.derm-why-halo {
  position: absolute;
  top: 65px;
  left: 15px;
  width: 360px;
  height: 360px;
  background: #e4ebf9;
  border-radius: 50%;
}

/* 310px disc; the art fills 92.7% x 98.42% of the 310 x 292 area under its top 18px. */
.derm-why-disc {
  position: absolute;
  top: 90px;
  left: 40px;
  width: 310px;
  height: 310px;
  overflow: hidden;
  background: #d9e3f6;
  border-radius: 50%;
}

.derm-why-disc img {
  position: absolute;
  top: calc(18px + 292px * 0.0158);
  left: 3.65%;
  display: block;
  width: 92.7%;
  max-width: none;
  height: auto;
}

.derm-why-orbit {
  position: absolute;
  top: 40px;
  left: 0;
  width: 390px;
  height: 420px;
  border: 1px dashed #c9d4ee;
  border-radius: 50%;
}

.derm-why-bead {
  position: absolute;
  top: 370px;
  left: 10px;
  width: 40px;
  height: 40px;
  background: #d3def4;
  border-radius: 50%;
}

.derm-why-spark {
  position: absolute;
  top: 330px;
  right: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--c-orange);
  border-radius: 50%;
}

/* ---------- Outcomes (150px column) ---------- */
.derm-why-wins {
  flex: none;
  width: 150px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.derm-why-wins li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 15px;
  line-height: 20.25px;
  color: var(--c-blue);
}

.derm-why-wins li + li {
  border-top: 1px solid #d9e1f2;
}

.derm-why-win-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #ffe4e5;
  border-radius: 50%;
  transition: scale 0.3s ease;
}

.derm-why-win-icon img {
  display: block;
}

.derm-why-wins li:hover .derm-why-win-icon {
  scale: 1.08;
}

/* ---------- Animation (script-v2.js .is-armed / .is-in) ---------- */
@keyframes derm-rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes derm-from-right {
  from { opacity: 0; translate: 32px 0; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes derm-pop {
  0%   { opacity: 0; scale: 0.6; }
  70%  { opacity: 1; scale: 1.06; }
  100% { opacity: 1; scale: 1; }
}

@keyframes derm-spin-slow {
  to { rotate: 360deg; }
}

@keyframes derm-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

@keyframes derm-drift {
  0%, 100% { translate: 0 0; }
  50%      { translate: 14px 10px; }
}

.derm-why.is-armed:not(.is-in) :is(.derm-why-copy > *, .derm-why-list li, .derm-why-halo, .derm-why-disc, .derm-why-orbit, .derm-why-bead, .derm-why-spark, .derm-why-wins li) {
  opacity: 0;
}

.derm-why.is-in .derm-why-copy > * {
  animation: derm-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.derm-why.is-in .derm-why-copy > :nth-child(2) { animation-delay: 0.08s; }
.derm-why.is-in .derm-why-copy > :nth-child(3) { animation-delay: 0.16s; }
.derm-why.is-in .derm-why-copy > :nth-child(4) { animation: none; }
.derm-why.is-in .derm-why-copy > :nth-child(5) { animation-delay: 0.7s; }

.derm-why.is-in .derm-why-list li {
  animation: derm-rise 0.55s calc(0.25s + var(--i, 0) * 0.07s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.derm-why.is-in .derm-why-halo   { animation: derm-pop 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.derm-why.is-in .derm-why-disc   { animation: derm-pop 0.8s 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; }
.derm-why.is-in .derm-why-orbit  { animation: derm-pop 0.8s 0.45s ease-out backwards, derm-spin-slow 60s 1.3s linear infinite; }
.derm-why.is-in .derm-why-bead   { animation: derm-pop 0.6s 0.7s ease-out backwards, derm-float 5s 1.4s ease-in-out infinite; }
.derm-why.is-in .derm-why-spark  { animation: derm-pop 0.6s 0.8s ease-out backwards, derm-float 4s 1.5s ease-in-out infinite; }

.derm-why.is-in .derm-why-wins li {
  animation: derm-from-right 0.6s calc(0.5s + var(--i, 0) * 0.12s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* The skin art breathes once it has landed (or always without the script). */
.derm-why.is-in .derm-why-disc img,
.derm-why:not(.is-armed) .derm-why-disc img {
  animation: bh-breathe 7s 1.4s ease-in-out infinite;
}

.derm-why-blob--tl { animation: derm-drift 14s ease-in-out infinite; }
.derm-why-blob--br { animation: derm-drift 16s ease-in-out infinite reverse; }

@media (max-width: 1199px) {
  .derm-why-inner {
    flex-wrap: wrap;
    gap: 40px 30px;
    justify-content: center;
    min-height: 0;
    padding: 72px 0;
  }

  .derm-why-copy {
    width: 100%;
    max-width: 640px;
  }

  .derm-why-wins {
    align-self: center;
  }
}

@media (max-width: 767px) {
  .derm-why-title {
    font-size: 34px;
    line-height: 42px;
  }

  .derm-why-title br {
    display: none;
  }

  .derm-why-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .derm-why-wins {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
  }

  .derm-why-wins li {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .derm-why-wins li + li {
    border-top: 0;
  }
}

@media (max-width: 575px) {
  .derm-why {
    --page-gutter: 20px;
  }

  .derm-why-inner {
    padding: 40px 0;
  }

  .derm-why-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.5px;
  }

  .derm-why-lead {
    font-size: 14px;
    line-height: 25px;
  }

  .derm-why-list li {
    font-size: 14px;
  }

  .derm-why-btn {
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
  }

  /* The 390 x 520 illustration scales to the column. */
  .derm-why-visual {
    width: 100%;
    max-width: 390px;
    height: auto;
    aspect-ratio: 390 / 520;
    container-type: inline-size;
  }

  .derm-why-visual > * {
    --k: tan(atan2(100cqw, 390px));
    transform-origin: 0 0;
  }

  .derm-why-halo   { top: calc(65px * var(--k)); left: calc(15px * var(--k)); width: calc(360px * var(--k)); height: calc(360px * var(--k)); }
  .derm-why-disc   { top: calc(90px * var(--k)); left: calc(40px * var(--k)); width: calc(310px * var(--k)); height: calc(310px * var(--k)); }
  .derm-why-disc img { top: calc((18px + 292px * 0.0158) * var(--k)); }
  .derm-why-orbit  { top: calc(40px * var(--k)); width: 100%; height: calc(420px * var(--k)); }
  .derm-why-bead   { top: calc(370px * var(--k)); left: calc(10px * var(--k)); }
  .derm-why-spark  { top: calc(330px * var(--k)); right: calc(14px * var(--k)); }
}

@media (prefers-reduced-motion: reduce) {
  .derm-why *,
  .derm-why-blob {
    animation: none !important;
  }
}

/* ============================================================= */
/* Revenue cycle management tabs — Figma 11085:3036 (+ 6181, 6383, */
/* 6586, 6791). Builds on .bh-svc with the MH tuning; the Payments */
/* tab's six steps sit 0.7px tighter so the row fits 555px.        */
/* ============================================================= */

.derm-v2 .derm-flow--six > li:not(:last-child) {
  margin-right: -0.7px;
}

@media (max-width: 767px) {
  .derm-v2 .derm-flow--six > li:not(:last-child) {
    margin-right: 0;
  }
}

/* ============================================================= */
/* Procedure-focused billing services — Figma 11085:3245 (1440 x  */
/* 882). Builds on .bh-sub (section, head, decoration, animation); */
/* 200px cards 20px apart, a 46px icon above the title.            */
/* ============================================================= */

.derm-v2 .derm-sub .container-page {
  gap: 20px;
}

.derm-v2 .derm-sub .bh-sub-title .accent {
  color: var(--c-orange);
}

.derm-v2 .derm-sub .bh-sub-grid {
  gap: 20px;
}

.derm-v2 .derm-sub .bh-sub-card {
  height: 200px;
  padding: 16px 20px;
}

.derm-v2 .derm-sub .bh-sub-card-body {
  width: auto;
  padding-top: 2px;
}

.derm-sub-icon {
  display: block;
  width: 46px;
  height: 46px;
  max-width: none;
  transform-origin: 50% 70%;
  transition: scale 0.35s ease, rotate 0.35s ease;
}

.derm-v2 .derm-sub .bh-sub-card:hover .derm-sub-icon {
  scale: 1.1;
  rotate: -5deg;
}

.derm-sub.is-armed:not(.is-in) .derm-sub-icon {
  opacity: 0;
}

.derm-sub.is-in .derm-sub-icon {
  animation: bh-sub-pop 0.6s calc(0.3s + var(--i, 0) * 0.1s + 0.35s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

@media (max-width: 1199px) {
  .derm-v2 .derm-sub .bh-sub-card {
    height: auto;
    min-height: 200px;
  }
}

@media (max-width: 991px) {
  .derm-v2 .derm-sub .bh-sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .derm-v2 .derm-sub .bh-sub-title {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .derm-v2 .derm-sub .bh-sub-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
  }

  .derm-v2 .derm-sub .bh-sub-card {
    min-height: 0;
    container-type: normal;
  }

  .derm-v2 .derm-sub .bh-sub-card-body {
    width: auto;
  }
}


/* ============================================================= */
/* Coding expertise — Figma 11085:3685. Builds on .bh-code with    */
/* the MH 130px cards; rows 2 and 3 carry 3-line copy at 141px.     */
/* ============================================================= */
@media (min-width: 992px) {
  .derm-v2 .derm-code .bh-code-card:nth-child(n + 3):nth-child(-n + 6) {
    height: 141px;
  }
}

/* ============================================================= */
/* Advanced dermatology billing expertise — Figma 11106:7357      */
/* (1440 x 1956). Head + divider, then three 1240px cards 28px     */
/* apart: a 560px photo panel with HTML widgets, and the copy.      */
/* ============================================================= */
.derm-adv {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
  background: linear-gradient(to bottom, #f4f7fd, #fff);
}

.derm-adv .container-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Decorations, placed against the 1440px frame (Figma 11106:7359-7366). */
.derm-adv-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.derm-adv-ring--solid {
  top: -240.84px;
  left: calc(50% - 720px - 200px);
  width: 600px;
  height: 600px;
  border: 1px solid #dce3f2;
}

.derm-adv-ring--dashed {
  top: -170.84px;
  left: calc(50% - 720px - 130px);
  width: 460px;
  height: 460px;
  border: 1px dashed #e1e7f4;
}

.derm-adv-glow {
  position: absolute;
  top: -140.84px;
  right: calc(50% - 720px - 160px);
  width: 560px;
  height: 560px;
  background: radial-gradient(circle 392px at 280px 280px, #e3e9f8 0%, rgba(227, 233, 248, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.derm-adv-plus {
  position: absolute;
  top: calc(91.54px + 3.62px);
  right: calc(50% - 720px + 146.37px + 3.62px);
  width: 56px;
  height: 56px;
  rotate: -8deg;
  pointer-events: none;
}

.derm-adv-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.derm-adv-dot--orange {
  top: 69.16px;
  left: calc(50% - 720px + 96px);
  width: 12px;
  height: 12px;
  background: var(--c-orange);
}

.derm-adv-dot--blue {
  top: 189.16px;
  left: calc(50% - 720px + 220px);
  width: 8px;
  height: 8px;
  background: var(--c-blue);
  opacity: 0.5;
}

/* ---------- Head ---------- */
.derm-adv-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.derm-adv-title {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 32px;
  line-height: 45px;
  letter-spacing: -0.8px;
  color: var(--c-blue);
  text-transform: none;
}

.derm-adv-title .accent {
  color: var(--c-orange);
}

/* 860px max with 48.28px side padding (Figma 11106:7369). */
.derm-adv-lead {
  box-sizing: border-box;
  max-width: 860px;
  margin: 0;
  padding: 0 48.28px 0.625px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 17px;
  line-height: 29.75px;
  color: var(--c-text);
}

.derm-adv-divider {
  display: flex;
  gap: 12px;
  align-items: center;
}

.derm-adv-divider i {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, rgba(39, 55, 117, 0), #273775);
}

.derm-adv-divider i:last-child {
  background: linear-gradient(to right, #273775, rgba(39, 55, 117, 0));
}

.derm-adv-divider img {
  display: block;
}

/* ---------- Cards ---------- */
.derm-adv-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.derm-adv-card {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 20px 48px 20px 20px;
  background: var(--c-white);
  border: 1px solid #e6ebf5;
  border-radius: 26px;
  filter: drop-shadow(0 4px 10px rgba(39, 55, 117, 0.08));
  transition: translate 0.35s ease, filter 0.35s ease;
}

.derm-adv-card:hover {
  translate: 0 -4px;
  filter: drop-shadow(0 14px 24px rgba(39, 55, 117, 0.14));
}

/* Card 2: copy first, photo on the right, tinted card. */
.derm-adv-card--flip {
  flex-direction: row-reverse;
  padding: 20px 20px 20px 48px;
  background: linear-gradient(129.96deg, #eef2fb 0%, #f8faff 100%);
  border-color: #dde4f4;
}

/* Figma's panels are 560 x 445 / 380; the photo layer sits 0.84px up. */
.derm-adv-media {
  position: relative;
  flex: none;
  width: 560px;
  height: var(--media-h, 380px);
  overflow: hidden;
  background: #dce4f4;
  border-radius: 18px;
}

.derm-adv-photo {
  position: absolute;
  top: -0.84px;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: scale 0.8s ease;
}

.derm-adv-card:hover .derm-adv-photo {
  scale: 1.04;
}

.derm-adv-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 18.985px;
  min-width: 0;
}

.derm-adv-card-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* 58px disc with a 6px inset ring (white disc with a drop shadow on card 2). */
.derm-adv-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #eef2fb;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px #f6f8fd;
  transition: rotate 0.4s ease;
}

.derm-adv-card--flip .derm-adv-icon {
  background: var(--c-white);
  box-shadow: 0 8px 10px rgba(39, 55, 117, 0.1);
}

.derm-adv-card:hover .derm-adv-icon {
  rotate: -8deg;
}

.derm-adv-icon img {
  display: block;
}

.derm-adv-card-head > div {
  display: flex;
  flex-direction: column;
  gap: 6.895px;
  min-width: min(488px, 100%);
}

.derm-adv-card-title {
  margin: 0;
  padding-bottom: 0.695px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 26px;
  line-height: 33.8px;
  color: var(--c-blue);
  text-transform: none;
}

.derm-adv-card-title .accent {
  color: var(--c-orange);
}

/* Figma wraps each title after its first line at the 488px column. */
@media (min-width: 1200px) {
  .derm-adv-card-title {
    max-width: 488px;
  }
}

.derm-adv-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--c-orange);
  border-radius: 3px;
  transform-origin: left;
}

.derm-adv-text {
  display: flex;
  flex-direction: column;
  gap: 28.8px;
}

.derm-adv-text p {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 28.8px;
  color: var(--c-text);
}

/* In-text links (section lead and card copy): bold orange, navy on hover. */
.derm-v2 :is(.derm-adv-lead, .derm-adv-text) a {
  color: var(--c-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.derm-v2 :is(.derm-adv-lead, .derm-adv-text) a:hover,
.derm-v2 :is(.derm-adv-lead, .derm-adv-text) a:focus-visible {
  color: var(--c-blue);
}

/* ---------- Widgets (live HTML on the photo panels) ---------- */
.derm-widget {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--font-primary);
  color: var(--c-blue);
  background: var(--c-white);
}

.derm-widget p {
  margin: 0;
}

.derm-widget hr {
  flex: none;
  width: 100%;
  height: 0.534px;
  margin: 0;
  background: #e5e7eb;
  border: 0;
}

.derm-widget img {
  display: block;
  max-width: none;
}

.derm-widget .tone-blue   { --tone: #273775; }
.derm-widget .tone-purple { --tone: #563e85; }
.derm-widget .tone-rose   { --tone: #c64d76; }
.derm-widget .tone-orange { --tone: #fc5d61; }
.derm-widget .tone-plum   { --tone: #8f4588; }
.derm-widget .tone-sky    { --tone: #00a3ff; }
.derm-widget .tone-green  { --tone: #34c759; }
.derm-widget .tone-amber  { --tone: #ff9500; }

/* Card 1 — claims by rendering provider (Figma 11124:18, 268.67 x 166.12). */
.derm-widget--providers {
  top: calc(261.94px - 0.84px);
  left: 21px;
  display: flex;
  flex-direction: column;
  gap: 8.546px;
  width: 268.673px;
  height: 166.118px;
  padding: 14.956px 21.366px 13.888px 22.434px;
  border-radius: 10.683px;
}

.derm-widget-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 33.117px;
}

.derm-widget-label {
  font-weight: 600;
  font-size: 7.478px;
  line-height: 9.615px;
  white-space: nowrap;
}

.derm-widget-big {
  margin-top: 2.671px !important;
  font-weight: 700;
  font-size: 19.229px;
  line-height: 21.366px;
}

.derm-widget-growth {
  display: flex;
  flex-direction: column;
  gap: 2.137px;
  width: 76.916px;
}

.derm-widget-growth span {
  display: flex;
  gap: 3.739px;
  align-items: center;
  font-weight: 600;
  font-size: 10.683px;
  line-height: 13.354px;
}

.derm-widget-growth img {
  width: 8.546px;
  height: 10.149px;
}

.derm-widget-growth small {
  font-size: 6.944px;
  line-height: 9.615px;
  color: var(--c-placeholder);
  white-space: nowrap;
}

.derm-widget-split {
  display: flex;
  gap: 17.093px;
  align-items: center;
  height: 83.86px;
}

.derm-widget-donut {
  flex: none;
  width: 82.792px;
  height: 82.792px;
}

.derm-widget-legend,
.derm-widget-procs-list {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.derm-widget-legend li {
  display: flex;
  gap: 7.478px;
  align-items: center;
  height: 20.992px;
  font-size: 9.08px;
  line-height: 11.751px;
}

.derm-widget-legend li span,
.derm-widget-procs-list li span {
  flex: 1 1 0;
  min-width: 0;
}

.derm-widget-legend i,
.derm-widget-procs-list i {
  flex: none;
  width: 6.944px;
  height: 6.944px;
  background: var(--tone);
  border-radius: 50%;
}

.derm-widget-legend b {
  font-weight: 400;
}

/* Card 1 — total claims tile (Figma 11126:34, 154.42 x 126.84). */
.derm-widget--total {
  top: calc(300.94px - 0.84px);
  left: 385px;
  width: 154.417px;
  height: 126.843px;
  background: linear-gradient(140.6deg, #fff 5%, #eff2ff 51.25%, #e5e7eb 97.5%);
  border: 0.613px solid #e5e7eb;
  border-radius: 14.094px;
}

.derm-widget--total > * {
  position: absolute;
}

.derm-widget-total-label {
  top: 12.87px;
  left: 19px;
  font-weight: 700;
  font-size: 15.932px;
  line-height: 18.996px;
}

.derm-widget-total-num {
  top: 34.93px;
  left: 19px;
  font-weight: 700;
  font-size: 26.962px;
  line-height: 31.251px;
}

.derm-widget-total-up {
  top: 42.28px;
  left: 117.65px;
  width: 15.319px;
  height: 15.319px;
}

.derm-widget-total-change {
  top: 74.14px;
  left: 19px;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 15.319px;
  line-height: 18.383px;
  opacity: 0.7;
}

.derm-widget-total-change img {
  width: 11.643px;
  height: 11.643px;
}

.derm-widget-total-note {
  top: 95.59px;
  left: 19px;
  font-size: 12.868px;
  line-height: 15.319px;
  white-space: nowrap;
  opacity: 0.7;
}

/* Card 2 — claim status tracker (Figma 11123:137, 434 x 168.95). */
.derm-widget--tracker {
  top: calc(199.08px - 0.84px);
  left: 113px;
  display: flex;
  flex-direction: column;
  width: 434px;
  height: 168.954px;
  padding: 6.336px 8.448px 8.448px;
  border-radius: 9.504px;
  box-shadow: 0 13.2px 3.7px rgba(135, 135, 135, 0), 0 8.45px 3.17px rgba(135, 135, 135, 0.01), 0 4.75px 2.64px rgba(135, 135, 135, 0.05), 0 2.11px 2.11px rgba(135, 135, 135, 0.09), 0 0.53px 1.06px rgba(135, 135, 135, 0.1);
}

.derm-widget-title {
  padding: 0 8.448px;
  font-weight: 700;
  font-size: 10.56px;
  line-height: 12.672px;
}

.derm-widget--tracker .derm-widget-title {
  margin-bottom: 6.336px !important;
}

.derm-widget-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26.399px;
  margin: 0;
  padding: 0 8.448px;
  list-style: none;
}

.derm-widget-step {
  display: flex;
  gap: 9.504px;
  align-items: center;
}

.derm-widget-step > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.056px;
}

.derm-widget-step small {
  font-size: 8.448px;
  line-height: 10.56px;
  color: var(--c-placeholder);
  white-space: nowrap;
}

.derm-widget-step b {
  font-weight: 700;
  font-size: 10.56px;
  line-height: 12.672px;
}

.derm-widget-step b.is-green {
  color: #34c759;
}

.derm-widget-step-ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26.399px;
  height: 26.399px;
  background: var(--tone);
  border-radius: 50%;
}

.derm-widget-step-ico img,
.derm-widget-step-arrow img {
  width: 13.727px;
  height: 13.727px;
}

.derm-widget-step-arrow img {
  width: 11.088px;
  height: 11.088px;
}

.derm-widget-table {
  display: flex;
  flex-direction: column;
  padding-top: 13.727px;
}

.derm-widget-row {
  display: grid;
  grid-template-columns: 100.316px 103.484px 108.764px minmax(0, 1fr);
  align-items: center;
  height: 19.007px;
  padding: 0 8.448px;
  font-size: 8.448px;
  line-height: 10.56px;
  color: var(--c-text);
  border-bottom: 0.528px solid #e5e7eb;
}

.derm-widget-row:last-child {
  border-bottom: 0;
}

.derm-widget-row--head {
  color: var(--c-placeholder);
  background: var(--c-bg-blue);
  border-bottom: 0;
  border-radius: 5.28px;
}

/* Status chips: the label on a 16% tint of its colour. */
.derm-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 15.839px;
  padding: 0 8px;
  overflow: hidden;
  font-style: normal;
  color: var(--badge-text, var(--c-blue));
  border-radius: 12.672px;
  isolation: isolate;
}

.derm-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--badge, #273775);
  opacity: 0.16;
}

.derm-badge--paid      { --badge: #273775; width: 40.127px; padding: 0; }
.derm-badge--accepted  { --badge: #00a3ff; width: 57.022px; padding: 0; }
.derm-badge--process   { --badge: #fc5d61; --badge-text: var(--c-text); width: 61.774px; padding: 0; }
.derm-badge--submitted { --badge: #563e85; --badge-text: #563e85; width: 61.774px; padding: 0; }

/* Card 3 — revenue by service type (Figma 11128:147, 309.62 x 156.04). */
.derm-widget--chart {
  top: calc(212.81px - 0.84px);
  left: 13px;
  width: 309.616px;
  height: 156.041px;
  border: 0.617px solid #eff2ff;
  border-radius: 11.102px;
  box-shadow: 0 2.467px 8.635px rgba(39, 55, 117, 0.08);
}

.derm-widget--chart .derm-widget-title {
  position: absolute;
  top: 11.1px;
  left: 16.65px;
  padding: 0;
  font-size: 9.251px;
  line-height: 14.186px;
}

/* Scale rows are 15.67px apart from 29.6px; the plot is the area from
   the $250K gridline (35.77px) to the baseline (114.1px). */
.derm-widget-plot {
  position: absolute;
  inset: 0;
}

.derm-widget-scale {
  margin: 0;
  padding: 0;
  list-style: none;
}

.derm-widget-scale li {
  position: absolute;
  left: 14.19px;
  width: 278.777px;
  height: 12.335px;
  font-size: 8.018px;
  line-height: 12.335px;
}

.derm-widget-scale li:nth-child(1) { top: 29.6px; }
.derm-widget-scale li:nth-child(2) { top: 45.27px; }
.derm-widget-scale li:nth-child(3) { top: 60.94px; }
.derm-widget-scale li:nth-child(4) { top: 76.6px; }
.derm-widget-scale li:nth-child(5) { top: 92.27px; }
.derm-widget-scale li:nth-child(6) { top: 107.93px; }

.derm-widget-scale li span {
  position: absolute;
  right: calc(100% - 28.37px);
  white-space: nowrap;
  opacity: 0.75;
}

.derm-widget-scale li::after {
  content: "";
  position: absolute;
  top: 6.17px;
  left: 38.24px;
  right: 0;
  height: 0.617px;
  background: #e5e7eb;
  opacity: 0.45;
}

/* Axis + baseline. */
.derm-widget-plot::before,
.derm-widget-plot::after {
  content: "";
  position: absolute;
  background: #273775;
}

.derm-widget-plot::before {
  top: 35.77px;
  left: 51.81px;
  width: 0.925px;
  height: 78.946px;
  opacity: 0.4;
}

.derm-widget-plot::after {
  top: 114.1px;
  left: 51.81px;
  width: 241.155px;
  height: 0.925px;
  opacity: 0.35;
}

.derm-widget-bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Four 54.89px columns at 56.74 / 117.18 / 178.24 / 239.92, bars 36.39px
   wide standing on the 78.33px line inside each column. */
.derm-widget-bars li {
  position: absolute;
  top: 35.77px;
  left: calc(56.74px + var(--b) * 61.06px);
  width: 54.892px;
  height: 108.55px;
}

.derm-widget-bars li:nth-child(4) {
  left: 239.92px;
}

.derm-widget-bars i {
  position: absolute;
  bottom: calc(108.55px - 78.326px);
  left: 9.25px;
  width: 36.389px;
  height: var(--bar-h);
  background: var(--tone);
  border-radius: 3.701px 3.701px 0 0;
  transform-origin: bottom;
}

.derm-widget-bars span {
  position: absolute;
  top: 83.26px;
  left: 0;
  width: 100%;
  font-size: 8.018px;
  line-height: 12.335px;
  text-align: center;
  opacity: 0.75;
}

/* Card 3 — total revenue by procedure (Figma 11130:18, 157.61 x 125). */
.derm-widget--procs {
  top: calc(17.12px - 0.84px);
  left: 390px;
  display: flex;
  flex-direction: column;
  width: 157.609px;
  height: 125px;
  padding: 8.399px 11.858px 10.375px;
  border: 0.494px solid #eff2ff;
  border-radius: 8.399px;
}

.derm-widget-procs-head {
  display: flex;
  gap: 3.953px;
  align-items: center;
  height: 21.245px;
}

.derm-widget-procs-head p {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 1.482px;
  min-width: 0;
}

.derm-widget-procs-head b {
  font-weight: 700;
  font-size: 6.917px;
  line-height: 10.375px;
}

.derm-widget-procs-head small {
  font-size: 6.423px;
  line-height: 9.881px;
  opacity: 0.65;
}

.derm-widget-procs-growth {
  display: flex;
  gap: 1.976px;
  align-items: center;
  font-weight: 600;
  font-size: 10.375px;
  line-height: 13.834px;
  color: var(--c-orange);
}

.derm-widget--procs hr {
  height: 0.494px;
  margin-top: 5.929px;
  opacity: 0.5;
}

.derm-widget-procs-title {
  margin-top: 4.941px !important;
  font-weight: 700;
  font-size: 6.917px;
  line-height: 11.364px;
}

.derm-widget-procs-list li {
  display: flex;
  gap: 6.423px;
  align-items: center;
  height: 12.352px;
  font-size: 6.423px;
  line-height: 9.881px;
}

.derm-widget-procs-list li > :not(i) {
  opacity: 0.72;
}

.derm-widget-procs-list i {
  width: 4.941px;
  height: 4.941px;
}

.derm-widget-procs-list b {
  font-weight: 500;
}

/* ---------- Animation ---------- */
@keyframes derm-widget-in {
  from { opacity: 0; translate: 0 18px; scale: 0.96; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes derm-bar-grow {
  from { scale: 1 0; }
  to   { scale: 1 1; }
}

@keyframes derm-donut-in {
  from { opacity: 0; rotate: -90deg; scale: 0.6; }
  to   { opacity: 1; rotate: 0deg; scale: 1; }
}

.derm-adv.is-armed:not(.is-in) :is(.derm-adv-head > *, .derm-adv-card, .derm-widget, .derm-adv-bar) {
  opacity: 0;
}

.derm-adv.is-in .derm-adv-head > * {
  animation: derm-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.derm-adv.is-in .derm-adv-head > :nth-child(2) { animation-delay: 0.1s; }
.derm-adv.is-in .derm-adv-head > :nth-child(3) { animation-delay: 0.2s; }

/* Each card rises in turn; its widgets float in after it, then bob gently. */
.derm-adv.is-in .derm-adv-card {
  --t: calc(0.3s + var(--c, 0) * 0.18s);
  animation: derm-rise 0.8s var(--t) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.derm-adv.is-in .derm-widget {
  animation:
    derm-widget-in 0.7s calc(var(--t) + 0.45s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards,
    derm-float 6s calc(var(--t) + 1.3s) ease-in-out infinite;
}

.derm-adv.is-in .derm-widget + .derm-widget {
  animation-delay: calc(var(--t) + 0.65s), calc(var(--t) + 2.2s);
}

.derm-adv.is-in .derm-widget-donut {
  animation: derm-donut-in 0.9s calc(var(--t) + 0.8s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.derm-adv.is-in .derm-widget-bars i {
  animation: derm-bar-grow 0.7s calc(var(--t) + 0.9s + var(--b, 0) * 0.1s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.derm-adv.is-in .derm-widget-row:not(.derm-widget-row--head) {
  animation: derm-rise 0.45s calc(var(--t) + 0.9s + var(--r, 0) * 0.08s) ease-out backwards;
}

.derm-adv.is-in .derm-adv-bar {
  animation: bh-bar-grow 0.6s calc(var(--t) + 0.4s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@keyframes bh-bar-grow {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

.derm-adv-glow { animation: derm-drift 14s ease-in-out infinite; }
.derm-adv-plus { animation: derm-float 6s ease-in-out infinite; }
.derm-adv-ring--dashed { animation: derm-spin-slow 90s linear infinite; }

@media (max-width: 1199px) {
  .derm-adv-card,
  .derm-adv-card--flip {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    padding: 20px;
  }

  .derm-adv-media {
    align-self: center;
  }

  .derm-adv-body {
    padding: 0 12px 12px;
  }

  .derm-adv-card-head > div {
    min-width: 0;
  }
}

/* Below 600px the 560px panel (photo + widgets) scales down as one piece. */
@media (max-width: 639px) {
  .derm-adv-media {
    width: 100%;
    max-width: 560px;
    height: auto;
    aspect-ratio: 560 / var(--media-ratio-h, 380);
    container-type: inline-size;
  }

  .derm-adv-card--physician .derm-adv-media {
    --media-ratio-h: 445;
  }

  .derm-widget {
    --k: tan(atan2(100cqw, 560px));
    transform-origin: 0 0;
    scale: var(--k);
  }

  .derm-widget--providers { top: calc((261.94px - 0.84px) * var(--k)); left: calc(21px * var(--k)); }
  .derm-widget--total     { top: calc((300.94px - 0.84px) * var(--k)); left: calc(385px * var(--k)); }
  .derm-widget--tracker   { top: calc((199.08px - 0.84px) * var(--k)); left: calc(113px * var(--k)); }
  .derm-widget--chart     { top: calc((212.81px - 0.84px) * var(--k)); left: calc(13px * var(--k)); }
  .derm-widget--procs     { top: calc((17.12px - 0.84px) * var(--k)); left: calc(390px * var(--k)); }

  /* The floating bob would fight the scale; the entrance keeps it static. */
  .derm-adv.is-in .derm-widget,
  .derm-adv.is-in .derm-widget + .derm-widget {
    animation: derm-widget-fade 0.7s calc(var(--t) + 0.45s) ease-out backwards;
  }
}

@keyframes derm-widget-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 767px) {
  .derm-adv-title {
    font-size: 26px;
    line-height: 36px;
  }

  .derm-adv-lead {
    padding: 0;
    font-size: 15px;
    line-height: 27px;
  }

  .derm-adv-card-title {
    font-size: 21px;
    line-height: 29px;
  }

  .derm-adv-text p {
    font-size: 15px;
    line-height: 27px;
  }

  .derm-adv-text {
    gap: 22px;
  }
}

@media (max-width: 575px) {
  .derm-adv {
    --page-gutter: 20px;
    margin-top: 50px;
    padding: 40px 0;
  }

  .derm-adv-card,
  .derm-adv-card--flip {
    padding: 14px;
    border-radius: 20px;
  }

  .derm-adv-body {
    padding: 0 6px 8px;
  }

  .derm-adv-card-head {
    align-items: flex-start;
  }

  .derm-adv-icon {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .derm-adv *,
  .derm-adv-glow,
  .derm-adv-plus,
  .derm-adv-ring {
    animation: none !important;
  }
}

/* ============================================================= */
/* Who we serve — Figma 11085:4107 (1440 x 717). Builds on        */
/* .bh-serve: 40px key features (title + line), text-only 145px    */
/* cards led by a 36px gradient tick, the MH orbit offset.         */
/* ============================================================= */
.derm-v2 .derm-serve {
  padding: 60px 0;
}

.derm-v2 .derm-serve .container-page {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Figma 11085:4109: x -302.7 from the 1440 frame, y 591.7. */
.derm-v2 .derm-serve .bh-serve-orbit {
  top: 591.7px;
  left: calc(50% - 720px - 302.7px);
}

.derm-v2 .derm-serve .bh-serve-key {
  align-items: center;
}

.derm-v2 .derm-serve .bh-serve-key-icon {
  align-self: center;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1.481px 1.481px rgba(0, 0, 0, 0.15));
}

.derm-v2 .derm-serve .bh-serve-key-body {
  gap: 0;
}

.derm-v2 .derm-serve .bh-serve-key-body span {
  line-height: 24px;
  color: var(--c-blue);
}

.derm-v2 .derm-serve .bh-serve-grid {
  align-self: stretch;
}

.derm-v2 .derm-serve .bh-serve-card {
  flex-direction: row;
  gap: 10px;
}

.derm-serve-tick {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
  transition: scale 0.35s ease, rotate 0.35s ease;
}

.derm-serve-tick img {
  display: block;
}

.derm-v2 .derm-serve .bh-serve-card:hover .derm-serve-tick {
  scale: 1.1;
  rotate: -10deg;
}

.derm-v2 .derm-serve .bh-serve-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 3px;
}

.derm-v2 .derm-serve .bh-serve-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: var(--c-text);
}

.derm-v2 .derm-serve .bh-serve-card-text {
  margin: 0;
  font-size: 14px;
  line-height: 19.2px;
  color: var(--c-text);
}

.derm-serve.is-armed:not(.is-in) .derm-serve-tick {
  opacity: 0;
}

.derm-serve.is-in .derm-serve-tick {
  animation: derm-pop 0.5s calc(0.5s + var(--i, 0) * 0.1s) cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.derm-v2 .derm-serve .bh-serve-bar-cta-info {
  flex-basis: 929px;
}

@media (max-width: 1199px) {
  .derm-v2 .derm-serve .bh-serve-card {
    height: auto;
    min-height: 145px;
  }
}

@media (max-width: 575px) {
  .derm-v2 .derm-serve {
    --page-gutter: 20px;
  }

  .derm-v2 .derm-serve .bh-serve-orbit {
    display: none;
  }

  .derm-v2 .derm-serve .bh-serve-title {
    font-size: 24px;
    line-height: 35px;
  }

  .derm-v2 .derm-serve .bh-serve-bar-cta {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    padding: 20px 22px;
    border-radius: 20px;
  }

  .derm-v2 .derm-serve .bh-serve-bar-cta-info {
    flex-basis: auto;
  }

  .derm-v2 .derm-serve .bh-serve-bar-cta-btn {
    width: 100%;
  }
}

/* ============================================================= */
/* Why choose us — Figma 11085:4546 (1440 x 762). Builds on        */
/* .bh-choose + the MH built icons; a two-paragraph lead.          */
/* ============================================================= */
.derm-choose-lead {
  display: flex;
  flex-direction: column;
  gap: 25.2px;
}

.derm-choose-lead p {
  margin: 0;
}

/* ============================================================= */
/* Case study — Figma 11085:4683 (1240 x 746). Builds on .bh-case; */
/* the privacy note sits under the story.                          */
/* ============================================================= */

.derm-case-note {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 14px;
  line-height: 25.6px;
  color: var(--c-placeholder);
}

@media (max-width: 575px) {
  .derm-v2 .derm-cases {
    margin-top: 50px;
  }

  .derm-case-note {
    font-size: 12px;
  }
}

@media (min-width: 1240px) and (max-width: 1280px) {
  .derm-v2 .derm-cases .bh-case-card {
    gap: 20px;
    padding-right: 12px;
  }

  .derm-v2 .derm-cases .bh-case-story {
    width: 500px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .derm-v2 .derm-cases .bh-case-body {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding-right: 0;
  }

  .derm-v2 .derm-cases .bh-case-outcomes {
    flex: 0 1 245px;
    max-width: 245px;
    margin-left: -10px;
    padding: 50px 0 28px 16px;
  }

  .derm-v2 .derm-cases .bh-case-stats {
    gap: 16px;
  }

  .derm-v2 .derm-cases .bh-case-stat {
    gap: 12px;
    padding: 16px;
  }

  .derm-v2 .derm-cases .bh-case-stat-body strong {
    font-size: 18px;
    line-height: 24px;
    white-space: normal;
  }
}

.derm-v2 .derm-states .bh-states-title,
.derm-v2 .derm-states .bh-states-lead {
  white-space: normal;
}

.derm-v2 .derm-states .bh-states-lead {
  max-width: 820px;
}

@media (min-width: 1240px) and (max-width: 1299px) {
  .derm-v2 .derm-states :is(.bh-states-card--ny, .bh-states-card--ga, .bh-states-card--fl) {
    right: 18px;
    left: auto !important;
  }
}

/* Payer status bar — Figma 11085:5441 (719 x 48). The MH page keeps its shorter
   line on one line (nowrap); this copy wraps to two lines, left-aligned beside
   the 26px tick, inside the 24px-padded pill. */
.derm-v2 .derm-pay .bh-pay-status {
  padding-right: 24px;
  padding-left: 24px;
  white-space: normal;
  text-align: left;
}

@media (min-width: 1240px) and (max-width: 1280px) {
  .derm-v2 .derm-pay .bh-pay-bottom {
    gap: 36px;
  }

  .derm-v2 .derm-pay .bh-pay-trust {
    padding-right: 12px;
    padding-left: 12px;
  }

  .derm-v2 .derm-pay .bh-pay-avatars {
    gap: 8px;
  }

  .derm-v2 .derm-pay .bh-pay-avatars li {
    width: 44px;
    height: 44px;
    padding: 9px;
  }

  .derm-v2 .derm-pay .bh-pay-avatars img {
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 1200px) and (max-width: 1280px) {
  .derm-v2 .derm-testi .dme-testi-card-top {
    justify-content: space-between;
    gap: 12px;
  }
}
