/* Coordinated opening images; live pain controls remain separate from the artwork. */
.home-redesign .intro-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.home-redesign .intro-pair .opening-card-heading{min-height:232px}
.home-redesign .intro-pair .opening-card-heading h1{margin-bottom:18px}
.home-redesign .intro-pair .opening-card-heading h2{min-height:0;margin-bottom:22px}
.home-redesign .opening-card-heading>p:not(.eyebrow){font-size:17px;line-height:1.65;color:#425567}
.home-redesign .opening-card-heading .physician-credentials{font-size:15px;line-height:1.6}
.home-redesign .opening-card-heading .opening-tap-hint{font-size:16px;margin-bottom:14px}
.home-redesign #real-brain-explorer{margin-top:0}
.home-redesign #real-brain-explorer .rb-image-window{width:min(100%,360px);margin:0 auto;background:#0b2341;border-radius:6px}
.home-redesign #real-brain-explorer .rb-body{width:100%;max-width:360px;margin:0 auto;background:#0b2341;border-radius:0}
.home-redesign #real-brain-explorer img{border-radius:0}
.home-redesign .intro-pair .home-physician-compact .intro-portrait{width:min(100%,453.23px);max-width:453.23px;height:auto;aspect-ratio:auto;margin:0 auto 16px;border-radius:6px;border:0;background:#0b2341}
.home-redesign .intro-pair .home-physician-compact .intro-portrait img{display:block;width:100%;height:auto;object-fit:contain;transform:none}
.home-redesign #real-brain-explorer .rb-hit::after{border-color:#66b9ed;background:#0b234133;box-shadow:0 0 0 2px #ffffffd9,0 0 9px #80bfe466}
.home-redesign #real-brain-explorer .rb-hit[data-mode=nerve]::after,.home-redesign #real-brain-explorer .rb-brain::after{border-color:#e1bc65}
.home-redesign #real-brain-explorer .rb-hit:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:1000px) and (min-width:601px){.home-redesign .intro-pair .opening-card-heading{min-height:280px}.home-redesign #real-brain-explorer .rb-body{max-width:270px}.home-redesign .intro-pair .home-physician-compact .intro-portrait{max-width:339.92px}}
@media(max-width:600px){.home-redesign .intro-pair{grid-template-columns:1fr}.home-redesign .intro-pair .opening-card-heading{min-height:0}.home-redesign #real-brain-explorer .rb-body{width:100%;max-width:340px;margin:0 auto}.home-redesign #real-brain-explorer .rb-image-window{max-width:400px}.home-redesign .intro-pair .home-physician-compact .intro-portrait{width:100%;max-width:400px}.home-redesign .opening-card-heading .physician-credentials{margin-bottom:20px}}

.home-redesign #real-brain-explorer.rb-has-selection .rb-main{grid-template-columns:1fr}
.home-redesign #real-brain-explorer .rb-main .rb-menu{border-left:0;border-top:1px solid #d6dee5;margin-top:18px;padding:18px 0 0}

/* Opening-card corrections after live review. */
.home-redesign .intro-pair #meet-dr-roghani .physician-credentials{font-size:15px!important}
.home-redesign .intro-pair .intro-action{margin-top:16px;min-height:48px;text-align:center}
.home-redesign .intro-pair .home-physician-compact .intro-portrait{margin-bottom:0}
.home-redesign #real-brain-explorer .rb-brain{border:0}
.home-redesign #real-brain-explorer .rb-brain[aria-pressed=true]{border:0;background:transparent}
.home-redesign #real-brain-explorer .rb-back::after{top:86%}
.home-redesign #real-brain-explorer .rb-hit::after{background:#0b2341cc}
.home-redesign #real-brain-explorer .rb-hit[aria-pressed=true]::after{background:#66b9ed}
.home-redesign #real-brain-explorer .rb-hit[data-mode=nerve][aria-pressed=true]::after,.home-redesign #real-brain-explorer .rb-brain[aria-pressed=true]::after{background:#e1bc65}
.home-redesign #real-brain-explorer .rb-body-label[data-label-area=left-foot]{left:4%!important;transform:translateY(-50%)}
@media(max-width:760px){.home-redesign .intro-pair #meet-dr-roghani .physician-name-line{white-space:normal;overflow-wrap:break-word}.home-redesign .intro-card{min-width:0}.home-redesign .intro-action .button{white-space:normal}}

/* Smaller silver spine markers; retain the full touch targets. */
.home-redesign #real-brain-explorer .rb-hit[data-mode=spine]::after{width:13px;height:13px;border-width:2px;border-color:#C5CDD6;box-shadow:0 0 0 1.5px #ffffffa6,0 0 5px #ffffff33}
.home-redesign #real-brain-explorer .rb-hit[data-mode=spine][aria-pressed=true]::after{border-color:#e1bc65;background:#e1bc65;box-shadow:0 0 0 2px #ffffffb3,0 0 6px #e1bc6540}

/* Uniform understated solid markers, without dark centers or glow. */
.home-redesign #real-brain-explorer .rb-hit::after,
.home-redesign #real-brain-explorer .rb-hit[data-mode=spine]::after,
.home-redesign #real-brain-explorer .rb-hit[data-mode=nerve]::after,
.home-redesign #real-brain-explorer .rb-brain::after{width:10px;height:10px;border:1px solid #FAF9F6;background:#005EB8;box-shadow:none}
.home-redesign #real-brain-explorer .rb-hit[aria-pressed=true]::after,
.home-redesign #real-brain-explorer .rb-hit[data-mode=spine][aria-pressed=true]::after,
.home-redesign #real-brain-explorer .rb-hit[data-mode=nerve][aria-pressed=true]::after,
.home-redesign #real-brain-explorer .rb-brain[aria-pressed=true]::after{background:#C9A34E;border-color:#FAF9F6;box-shadow:none}

/* Compact homepage physician card on phones. */
#meet-dr-roghani .physician-phone-credentials,
#meet-dr-roghani .physician-phone-comma {
  display: none;
}
@media (max-width: 600px) {
  .home-redesign .intro-pair #meet-dr-roghani {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    box-sizing: border-box;
    min-height: 96px;
    padding: 9px;
    border: 1px solid #dedbd2;
    border-radius: 10px;
    background: #fff;
  }
  #meet-dr-roghani .opening-card-heading {
    grid-area: 1 / 2;
    min-width: 0;
  }
  #meet-dr-roghani .opening-card-heading .eyebrow,
  .home-redesign .intro-pair #meet-dr-roghani .opening-card-heading .physician-credentials {
    display: none;
  }
  .home-redesign .intro-pair #meet-dr-roghani h2 {
    margin: 0 0 3px;
    min-height: 0;
    font: 700 clamp(12px, 3.4vw, 14px)/1.2 system-ui, sans-serif;
    color: #0b2341;
    text-align: left;
  }
  .home-redesign .intro-pair #meet-dr-roghani h2 span:is(.physician-name-line, .physician-phone-comma, .degree) {
    display: inline;
    font: inherit;
    color: inherit;
    margin: 0;
    white-space: normal;
  }
  .home-redesign #meet-dr-roghani .opening-card-heading .physician-phone-credentials {
    display: block;
    margin: 0;
    min-height: 0;
    font: 400 11px/1.25 system-ui, sans-serif;
    color: #0b2341;
    text-align: left;
  }
  .home-redesign .intro-pair #meet-dr-roghani .intro-portrait {
    grid-area: 1 / 1 / span 2;
    width: 76px;
    height: 76px;
    margin: 0;
    align-self: center;
    border-radius: 6px;
  }
  .home-redesign .intro-pair #meet-dr-roghani .intro-portrait img {
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
  }
  .home-redesign .intro-pair #meet-dr-roghani .physician-actions {
    grid-area: 2 / 2;
    justify-self: start;
    margin: 0;
    min-height: 0;
    text-align: left;
  }
  .home-redesign .intro-pair #meet-dr-roghani .physician-actions .button {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    width: auto;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b2341;
    font: 700 12px/1.2 system-ui, sans-serif;
  }
  #meet-dr-roghani .physician-actions .button::after {
    content: " →";
    margin-left: 4px;
  }
}

/* Treatment cards share a full-width row below the opening cards. */
.home-redesign .intro-pair .home-treatment-options .opening-card-heading {
  min-height: 0;
}
.home-treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-treatment-grid li {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dedbd2;
  border-radius: 6px;
  background: #faf9f6;
}
.home-treatment-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.home-treatment-grid a {
  display: block;
  color: #0b2341;
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 700;
  line-height: 1.35;
}
.home-treatment-grid a span,
.home-treatment-pair {
  display: block;
  padding: 8px;
}
.home-treatment-pair a + a {
  margin-top: 5px;
}
.home-treatment-grid a:focus-visible {
  outline: 2px solid #005eb8;
  outline-offset: -2px;
}
@media (min-width: 601px) {
  .home-redesign .intro-pair .home-treatment-options {
    grid-column: 1 / -1;
  }
}

/* Shared ivory palette for the two homepage patient pathways. */
.home-redesign .intro-pair :is(.home-conditions, .home-treatment-options) {
  background: #faf9f6;
  border: 1px solid #e0dcd3;
}
.home-redesign .intro-pair :is(.home-conditions, .home-treatment-options) .opening-card-heading :is(h1, h2) {
  color: #0b2341;
}
.home-redesign #real-brain-explorer :is(.rb-image-window, .rb-body) {
  background: transparent;
  border: 0;
}
.home-redesign #real-brain-explorer .rb-hit:focus-visible {
  outline-color: #005eb8;
}
.home-redesign .intro-pair :is(.home-conditions, .home-treatment-options) .intro-action {
  margin-top: auto;
}
.home-redesign .intro-pair :is(.home-conditions, .home-treatment-options) .intro-action .button {
  background: transparent;
  border: 1px solid #0b2341;
  color: #0b2341;
}
.home-redesign .intro-pair :is(.home-conditions, .home-treatment-options) .intro-action .button:hover {
  background: #0b2341;
  color: #faf9f6;
}

/* Keep all six anatomy labels visible and clickable beside their markers. */
.home-redesign #real-brain-explorer button.rb-body-label {
  z-index: 4;
  min-height: 34px;
  padding: 4px 6px;
  pointer-events: auto;
  transform: translateY(-50%);
  border: 1px solid #bad2e5;
  border-radius: 5px;
  background: #edf4f9;
  color: #123c5d;
  font: 600 clamp(11px, 2.8vw, 13px)/1.3 Arial, sans-serif;
}
.home-redesign #real-brain-explorer button.rb-body-label[data-side=left] { left: 2%; }
.home-redesign #real-brain-explorer button.rb-body-label[data-side=right] { right: 2%; }
.home-redesign #real-brain-explorer button.rb-body-label:is(:hover, .rb-label-selected) {
  background: #d9eaf6;
  border-color: #2875b9;
}
.home-redesign #real-brain-explorer button.rb-body-label:focus-visible {
  outline: 2px solid #005eb8;
  outline-offset: 2px;
}

.home-redesign .intro-pair > .home-brochure-link { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 0; }
.home-redesign .home-brochure-link .button { display: inline-flex; width: 100%; box-sizing: border-box; justify-content: center; min-height: 44px; align-items: center; padding: 8px 14px; border: 1px solid #0b2341; border-radius: 6px; background: #edf4f9; color: #0b2341; text-decoration: none; }
.home-redesign .home-brochure-link .button:hover { background: #0b2341; color: #faf9f6; }

@media (min-width: 1001px) {
  .home-redesign .intro-pair {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  .home-redesign .intro-pair .home-physician-compact .intro-portrait {
    width: min(100%, 320px);
  }
  .home-redesign .intro-pair .home-physician-compact .physician-name-line {
    white-space: normal;
  }
  .home-treatment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .home-redesign .intro-pair .home-treatment-options .intro-action {
    margin-top: 16px;
  }
}
