/* A/B homepage uses the existing legacy theme tokens and type roles. */
#legacy-root .im-home {
  --im-ink: var(--ink);
  --im-muted: var(--muted);
  --im-line: var(--line);
  --im-accent: var(--accent);
  --im-background: var(--paper);
  --im-tour-background: var(--soft-light);
  --im-radius: var(--radius);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -.025em;
}
#legacy-root .im-home :is(h1,h2,h3,p,li,dd) {word-break:keep-all;overflow-wrap:anywhere;}
#legacy-root .im-home .im-home-kicker {font-size:11px;font-weight:600;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;}
#legacy-root .im-home .im-hero-copy h1 {font-family:var(--display);font-size:clamp(44px,4.9vw,70px);font-weight:500;line-height:1.24;letter-spacing:-.065em;white-space:pre-line;}
#legacy-root .im-home .im-hero-description {font-size:16px;line-height:1.95;white-space:pre-line;}
#legacy-root .im-home .im-hero-note {font-size:11px;line-height:1.6;}
#legacy-root .im-home [data-home-slide] {width:36px;height:36px;min-height:36px;}
#legacy-root .im-home .im-home-section h2 {font-family:var(--display);font-size:clamp(29px,3vw,40px);font-weight:500;line-height:1.42;letter-spacing:-.05em;}
#legacy-root .im-home .im-home-section h3 {font-size:21px;font-weight:500;line-height:1.5;letter-spacing:-.025em;}
#legacy-root .im-home .im-home-description {font-size:15px;line-height:1.95;}
#legacy-root .im-home .im-doctor-name strong {font-family:var(--display);font-size:30px;font-weight:500;line-height:1.5;}
#legacy-root .im-home .im-doctor-name>span {font-size:14px;line-height:1.6;}
#legacy-root .im-home .im-doctor-credentials li {font-size:14px;font-weight:500;line-height:1.9;}
#legacy-root .im-home :is(.im-doctor-profile,.im-visit-info) {padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 2px 8px #00000004;}
#legacy-root .im-home .im-doctor-profile li {font-size:14px;line-height:1.9;}
#legacy-root .im-home .im-doctor-profile li[data-emphasis] {font-weight:600;}
#legacy-root .im-home .im-visit-info>h3 {font-size:23px;line-height:1.5;}
#legacy-root .im-home .im-visit-info>p {font-size:14px;line-height:1.9;}
#legacy-root .im-home .im-home-phone {font-size:23px;font-weight:500;line-height:1.5;letter-spacing:-.02em;}
#legacy-root .im-home .im-home-hours h3 {font-size:17px;line-height:1.5;}
#legacy-root .im-home .im-home-hours dl>div {font-size:14px;line-height:1.9;}
#legacy-root .im-home .im-home-hours dt {font-weight:500;}
#legacy-root .im-home .im-home-hours small {font-size:11px;line-height:1.75;}
#legacy-root .im-home .im-home-opening {font-size:14px;line-height:1.75;}

/* B keeps the serif display face and lighter heading weights of its other pages. */
body[data-design='editorial'] #legacy-root .im-home .im-hero-copy h1 {font-size:clamp(42px,4.25vw,61px);font-weight:400;line-height:1.4;letter-spacing:-.075em;}
body[data-design='editorial'] #legacy-root .im-home .im-home-section h2 {font-size:37px;font-weight:400;}
body[data-design='editorial'] #legacy-root .im-home :is(.im-home-section h3,.im-doctor-name strong) {font-family:var(--display);font-weight:400;}

@media(max-width:1000px) {
  #legacy-root .im-home .im-hero-copy h1 {font-size:44px;}
  body[data-design='editorial'] #legacy-root .im-home .im-hero-copy h1 {font-size:44px;}
  body[data-design='editorial'] #legacy-root .im-home .im-home-section h2 {font-size:32px;}
}
@media(max-width:720px) {
  #legacy-root .im-home .im-hero-copy h1 {font-size:clamp(35px,8.9vw,52px);line-height:1.28;letter-spacing:-.055em;}
  #legacy-root .im-home .im-hero-description {font-size:14px;line-height:1.9;}
  #legacy-root .im-home .im-home-kicker {font-size:10px;}
  #legacy-root .im-home .im-hero-note {font-size:10px;}
  #legacy-root .im-home .im-home-section h2 {font-size:29px;}
  #legacy-root .im-home .im-home-description {font-size:14px;}
  #legacy-root .im-home .im-visit-info>h3 {font-size:20px;}
  body[data-design='editorial'] #legacy-root .im-home .im-hero-copy h1 {font-size:clamp(34px,8.7vw,49px);line-height:1.42;}
  body[data-design='editorial'] #legacy-root .im-home .im-home-section h2 {font-size:30px;}
}
@media(max-width:600px) {
  #legacy-root .im-home :is(.im-doctor-profile,.im-visit-info) {padding:22px 18px;}
}
@media(max-width:360px) {
  #legacy-root .im-home .im-hero-copy h1 {font-size:31px;}
  body[data-design='editorial'] #legacy-root .im-home .im-hero-copy h1 {font-size:31px;}
}


/* Homepage doctor hierarchy preserves each legacy theme's display family. */
#legacy-root .im-home .im-home-doctor .im-doctor-eyebrow {font-size:14px;font-weight:600;line-height:1.5;letter-spacing:.16em;}
#legacy-root .im-home .im-home-doctor .im-doctor-clinic {font-size:28px;font-weight:400;line-height:1.5;letter-spacing:-.025em;}
#legacy-root .im-home .im-home-doctor.im-home-section .im-doctor-heading {font-size:48px;line-height:1.25;}
#legacy-root .im-home .im-home-doctor .im-doctor-person {font-size:inherit;font-weight:inherit;}
#legacy-root .im-home .im-home-doctor .im-doctor-role {font-size:18px;font-weight:400;line-height:1.5;letter-spacing:-.025em;}
@media(max-width:600px){
  #legacy-root .im-home .im-home-doctor .im-doctor-eyebrow {font-size:12px;}
  #legacy-root .im-home .im-home-doctor .im-doctor-clinic {font-size:21px;}
  #legacy-root .im-home .im-home-doctor.im-home-section .im-doctor-heading {font-size:36px;}
  #legacy-root .im-home .im-home-doctor .im-doctor-role {font-size:16px;}
}
