/* Patient homepage entrance. The photograph is the existing, CMS-managed image. */
body .clinic-home-refresh > section.clinic-home-hero {
    --hero-wash: 90deg;
    position: relative;
    isolation: isolate;
    padding-top: clamp(142px, 10.4vw, 170px);
    padding-bottom: clamp(36px, 4.5vw, 74px) !important;
    background: #e4ebed;
    color: #203541;
}
html[dir=rtl] .clinic-home-refresh > section.clinic-home-hero {
    --hero-wash: 270deg;
}
body.localized-clinic .clinic-home-refresh > section.clinic-home-hero {
    padding-top: clamp(32px, 4vw, 62px);
}
body .clinic-home-refresh > .clinic-home-hero > .clinic-home-hero__grid {
    position: static;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 18px;
}
html body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__grid > .clinic-home-hero__visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    pointer-events: none;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__photo {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
    box-shadow: none;
    overflow: hidden;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__photo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center 66%;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__visual::after {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(var(--hero-wash), rgba(239,245,246,.98) 0%, rgba(239,245,246,.89) 31%, rgba(239,245,246,.71) 49%, rgba(239,245,246,.27) 72%, rgba(239,245,246,.18) 100%);
}
/* The duplicate brand mark is decorative. The localized clinic name remains the heading. */
html body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__grid > h1 {
    width: min(100%, 25ch);
    max-width: 64%;
    margin: 0;
    white-space: normal;
    text-align: start;
    text-wrap: balance;
    color: #172f3d;
    font-size: clamp(32px, 3.05vw, 48px);
    line-height: 1.12;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__grid > h1::before {
    content: "";
    display: block;
    width: 164px;
    height: 62px;
    margin-inline-start: -16px;
    margin-block-end: 16px;
    background: transparent url("/CMS/images/Logo.png") center / contain no-repeat;
}
@media (min-width: 992px) {
    body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__grid > h1::before {
        position: relative;
        left: var(--clinic-heading-text-center, 50%);
        width: 189px;
        height: 71px;
        margin: 0 auto 7px 0;
        /* The visible mark is centered 98px from the left of the 200px PNG. */
        transform: translateX(-49%);
    }
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__grid > .clinic-home-hero__copy {
    width: min(54%, 600px);
    max-width: 100%;
    margin: 0;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__copy > .clinic-home-hero__doctor {
    margin: 0;
    text-align: start;
    color: #223b4b;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__specialty {
    margin-top: 3px;
    color: #374d59;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__location {
    color: #283f4c;
    opacity: 1;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__service {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.55;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__actions {
    grid-auto-rows: auto;
    gap: 9px;
    margin-top: 20px;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__secondary {
    background: rgba(243,248,249,.65);
    color: #203542;
    border-color: #758993;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__panel {
    color: #254452;
    padding-inline: 0;
    justify-content: start;
}
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__secondary:hover,
body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__panel:hover {
    background: #eaf0f1;
    color: #142d3b;
}
.clinic-home-hero__mobile-intro,
.clinic-home-hero__visit {
    display: none;
}

@media (min-width: 992px) {
    html body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__cases {
        grid-column: 1;
    }
    html body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__cases + .clinic-home-hero__panel {
        grid-column: 2;
    }
}

@media (max-width: 991px) {
    body .clinic-home-refresh > section.clinic-home-hero {
        padding-top: 88px;
        padding-bottom: 16px !important;
        background: #fbfaf7;
    }
    body.localized-clinic .clinic-home-refresh > section.clinic-home-hero {
        padding-top: 24px;
    }
    body .clinic-home-refresh > .clinic-home-hero > .clinic-home-hero__grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: min(100% - 36px, 650px);
        max-width: 650px;
        padding-inline: 0;
        gap: 10px;
    }
    html body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__grid > h1 {
        order: 1;
        width: 100%;
        max-width: none;
        font-size: clamp(26px, 6.8vw, 38px);
        line-height: 1.13;
        text-align: start;
    }
    body .clinic-home-refresh > .clinic-home-hero .clinic-home-hero__grid > h1::before {
        content: none;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__copy > :is(.clinic-home-hero__doctor, .clinic-home-hero__specialty, .clinic-home-hero__service) {
        display: none;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__copy > .clinic-home-hero__location:not(.clinic-home-hero__service) {
        order: 0;
        margin: 0;
        font-size: 14px;
        line-height: 1.35;
        text-align: start;
    }
    body :is(#main-content, #main) .clinic-home-hero .clinic-home-hero__mobile-intro {
        display: block;
        order: 2;
        margin: 0 0 4px;
        font-size: 16px;
        line-height: 1.5;
        color: #374d59;
        text-align: start !important;
        text-align-last: auto !important;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__contact {
        order: 3;
        background: #173b4b;
        border-color: #173b4b;
        color: #fff;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__secondary {
        order: 4;
        justify-content: flex-start;
        width: fit-content;
        min-height: 44px;
        margin: 0;
        padding: 7px 0;
        border: 0;
        background: transparent;
        color: #203542;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    html body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__grid > .clinic-home-hero__visual {
        order: 5;
        position: relative;
        inset: auto;
        z-index: auto;
        align-self: center;
        width: min(100vw, 686px);
        max-width: none;
        height: auto;
        margin: 0;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__visual::after {
        content: none;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__photo {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 2.05;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__photo > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 66%;
    }
    body .clinic-home-refresh > section.clinic-home-hero .clinic-home-hero__actions > a.clinic-home-hero__panel {
        display: none;
    }
    .clinic-home-hero__visit {
        display: block;
        order: 6;
        margin-top: 8px;
    }
    .clinic-home-hero__visit h2 {
        margin: 0 0 6px;
        color: #203542;
        font-size: 22px;
        line-height: 1.25;
        text-align: start;
    }
    .clinic-home-hero__visit a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 46px;
        padding: 7px 0;
        border-bottom: 1px solid #d3dddf;
        color: #203542;
        font-weight: 600;
        text-align: start;
        text-decoration: none;
    }
    .clinic-home-hero__visit a:hover, .clinic-home-hero__visit a:focus-visible {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    [dir=rtl] .clinic-home-hero__visit a span {
        transform: rotate(180deg);
    }
}
