/* Motion and interaction values are taken from the published Tilda source. */
.section-picker-dialog {
    position: fixed;
    inset: var(--picker-top, 140px) 0 0;
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - var(--picker-top, 140px));
    max-height: none;
    margin: 0;
    padding: 35px 15px;
    border: 0;
    border-top: 1px solid #eee;
    background: #fff;
    color: #67686b;
    overflow: auto;
}

.section-picker-dialog[open] {
    animation: yw-picker-open 0.4s ease-in-out both;
}

.section-picker-dialog.is-closing {
    animation: yw-picker-close 0.4s ease-in-out both;
}

.section-picker-dialog::backdrop {
    background: transparent;
}

.section-picker-dialog nav {
    padding: 0;
    gap: 5px;
    font-size: 11px;
    line-height: 16px;
}

.section-picker-dialog nav > a {
    margin-left: 33px;
}

.section-picker-dialog nav > .nav-category {
    font-size: 18px;
    line-height: 22px;
    margin: 5px 0 2px;
}

.section-picker-dialog nav > .nav-category:first-child {
    margin-top: 0;
}

@keyframes yw-picker-open {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes yw-picker-close {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.image-reveal {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.1875rem;
}

.image-reveal > img {
    width: 100%;
}

.image-reveal-cover {
    position: absolute;
    inset: 0;
    background: #fff;
    pointer-events: none;
    transform-origin: center;
    z-index: 1;
}

.hero-reveal {
    height: 36.3125rem;
}

.hero-reveal .hero-image {
    height: 100%;
    margin: 0;
}

.enquiry-reveal {
    height: 100%;
}

.enquiry-reveal .enquiry-photo {
    height: 100%;
    object-fit: cover;
}

.button {
    background: #434345;
    transition: background-color 0.2s ease-in-out;
}

.button:hover {
    background: #333132;
}

.button--light {
    background: #fff;
}

.button--light:hover {
    background: #dedede;
}

.site-menu::backdrop {
    background: #ffffff90;
}

.site-menu[open] {
    animation: yw-menu-open 0.4s ease-in-out both;
}

.site-menu.is-closing {
    animation: yw-menu-close 0.4s ease-in-out both;
}

.site-menu .menu-contact > a {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
}

.menu-contact > a .original-icon {
    width: 7px;
    height: 7px;
}

.site-header.is-scrolled {
    animation: yw-header-open 0.2s linear;
}

.site-header.is-leaving {
    animation: yw-header-close 0.2s linear both;
}

.carousel {
    scroll-snap-type: none;
}

.content-dialog[open] > .dialog-panel,
.lightbox-dialog[open] {
    animation: yw-dialog-open 0.3s ease-in-out both;
}

.content-dialog.is-closing > .dialog-panel,
.lightbox-dialog.is-closing {
    animation: yw-dialog-close 0.3s ease-in-out both;
}

.content-dialog::backdrop,
.lightbox-dialog::backdrop {
    animation: yw-backdrop-open 0.3s ease;
}

.content-dialog.is-closing::backdrop,
.lightbox-dialog.is-closing::backdrop {
    animation: yw-backdrop-close 0.3s ease both;
}

.service-icon {
    transition: none;
}

.service-row > a:hover .service-icon {
    transform: none;
}

.footer-socials > span {
    cursor: default;
}

.header-phone,
.contacts-phone,
.contacts-links > a,
.footer-legal > a,
.footer-nav > a {
    position: relative;
    width: fit-content;
}

.header-phone::after,
.contacts-phone::after,
.contacts-links > a::after,
.footer-legal > a::after,
.footer-nav > a::after {
    content: '';
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s;
}

.header-phone:hover::after,
.contacts-phone:hover::after,
.contacts-links > a:hover::after,
.footer-legal > a:hover::after,
.footer-nav > a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.lead-doctor-intro > a,
.doctor-card > a {
    position: relative;
    overflow: hidden;
    width: fit-content;
    padding-bottom: 5px;
}

/* The published doctor underline has an invalid paint value and is invisible.
   Keep its sweep timing without adding a line absent from the original. */
.lead-doctor-intro > a::after,
.doctor-card > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: transparent;
}

.lead-doctor-intro > a:hover::after,
.doctor-card > a:hover::after {
    animation: yw-link-line 0.7s cubic-bezier(0.52, 0.04, 0.28, 0.97);
}

.page-navigation nav > a {
    transition: translate 0.3s linear;
}

.page-navigation nav > a:not(.nav-category):hover {
    translate: 0.625rem 0;
    text-decoration: none;
}

.page-navigation .nav-category .original-icon {
    display: inline-block;
    width: 0.4375rem;
    height: 0.4375rem;
    vertical-align: top;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    margin-left: 0.625rem;
}

.page-navigation .nav-category:hover .original-icon {
    opacity: 1;
}

@media (max-width: 1199px) {
    .page-navigation nav > a:not(.nav-category):hover {
        translate: none;
    }
}

.teaching-program.is-expanding,
.teaching-program.is-collapsing {
    overflow: hidden;
}

.program-more > .original-icon {
    transition: transform 0.4s ease-in-out;
}

.teaching-program.is-collapsing .program-more > .original-icon {
    transform: rotate(0);
}

@media (min-width: 980px) {
    .footer-reveal {
        position: relative;
        clip-path: inset(0);
        height: var(--footer-height, 40rem);
    }
    .footer-reveal > .site-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
    }
}

@media (min-width: 480px) and (max-width: 959px) {
    .hero-reveal {
        height: 28rem;
    }
}

@media (max-width: 479px) {
    .hero-reveal {
        order: 2;
        width: 8.125rem;
        height: 8.125rem;
        margin-top: 1.875rem;
        border-radius: 0;
    }
    .hero-reveal .hero-image {
        width: 100%;
        height: 100%;
        margin: 0;
    }
    .not-found .hero-reveal {
        width: 100%;
        height: 21.25rem;
        margin: 0;
    }
    .enquiry-reveal {
        height: 17.5rem;
    }
    .site-menu .menu-contact > a {
        gap: 0.5rem;
    }
}

@keyframes yw-menu-open {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes yw-menu-close {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes yw-header-open {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes yw-header-close {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes yw-dialog-open {
    from {
        opacity: 0;
        translate: 0 20%;
        scale: 0.9;
    }
    to {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
}

@keyframes yw-dialog-close {
    from {
        opacity: 1;
        translate: 0 0;
        scale: 1;
    }
    to {
        opacity: 0;
        translate: 0 20%;
        scale: 0.9;
    }
}

@keyframes yw-backdrop-open {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes yw-backdrop-close {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes yw-link-line {
    to {
        transform: translateX(200%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .footer-reveal {
        height: auto;
        clip-path: none;
    }
    .footer-reveal > .site-footer {
        position: relative;
    }
}
