/* Deliberately scoped: legacy pages retain their existing layouts. */
.whl-builder-content { width: 100%; min-width: 0; }

/* Let Elementor typography control paragraph text on builder pages. The legacy
 * stylesheet sets body p directly, which otherwise wins over inherited widget
 * and container typography. */
.whl-builder-content .elementor-widget-text-editor p,
.whl-builder-content .elementor-widget-theme-post-content p {
    font-size: inherit;
    line-height: inherit;
}
.whl-standard-content { width: min(100% - 40px, 960px); margin: 0 auto; padding: 100px 0 64px; }
.whl-standard-content h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; margin: 0 0 1.5rem; }
.whl-entry-content { line-height: 1.65; overflow-wrap: break-word; }
.whl-entry-content p { margin: 0 0 1.25em; }
.whl-entry-content img { max-width: 100%; height: auto; }
.whl-entry-content h2, .whl-entry-content h3 { margin-top: 1.5em; line-height: 1.25; }
.whl-entry-content ul, .whl-entry-content ol { margin-bottom: 1.25em; }

/* Existing homepage content remains in WordPress, with readable paragraph rhythm. */
#tomorrow .tomorrow-heading h2 { text-wrap: balance; }
#tomorrow .tomorrow-copy p { line-height: 1.65; margin-bottom: 1.5rem; }

/* Condition pages were delivered with 18px H1 headings in their Elementor data. */
.page-id-4188 h1.elementor-heading-title,
.page-id-3662 h1.elementor-heading-title,
.page-id-4299 h1.elementor-heading-title,
.page-id-3625 h1.elementor-heading-title,
.page-id-3681 h1.elementor-heading-title,
.page-id-4067 h1.elementor-heading-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.1;
}

/* A visible, keyboard-accessible close control for the full-screen menu. */
.m-close {
    position: absolute;
    top: 30px;
    right: 25px;
    z-index: 2;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.whl-menu-close-icon,
.whl-menu-close-icon::before,
.whl-menu-close-icon::after {
    display: block;
    position: absolute;
    width: 28px;
    height: 3px;
}

.whl-menu-close-icon {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.whl-menu-close-icon::before,
.whl-menu-close-icon::after {
    content: "";
    top: 0;
    left: 0;
    border-radius: 3px;
    background: #091929;
}

.whl-menu-close-icon::before { transform: rotate(45deg); }
.whl-menu-close-icon::after { transform: rotate(-45deg); }

.m-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Team directory cards and full-profile dialog. */
.page-template-page-team-alt .member-wrapper {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0 6px;
}

.page-template-page-team-alt .listing-slider {
    height: auto;
    min-height: 0;
    max-height: none;
}

.page-template-page-team-alt .listing-slider .slick-track {
    display: flex;
    align-items: stretch;
    margin: auto;
}

.page-template-page-team-alt .listing-slider .slick-slide {
    height: auto;
    min-height: 0;
    max-height: none;
}

.page-template-page-team-alt .listing-slider .item.slick-slide::before {
    display: none;
}

.page-template-page-team-alt .whl-team-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #eff4f4;
    color: #143b5c;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.page-template-page-team-alt .whl-team-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #dfe7e7;
}

.page-template-page-team-alt .member-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 250ms ease;
}

.page-template-page-team-alt .whl-team-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(to top, rgba(9, 25, 41, .72), rgba(9, 25, 41, 0) 55%);
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    opacity: 0;
    transition: opacity 200ms ease;
}

.page-template-page-team-alt .whl-team-card:hover .whl-team-card__overlay,
.page-template-page-team-alt .whl-team-card:focus-visible .whl-team-card__overlay {
    opacity: 1;
}

.page-template-page-team-alt .whl-team-card:hover .member-main-img,
.page-template-page-team-alt .whl-team-card:focus-visible .member-main-img {
    transform: scale(1.025);
}

.page-template-page-team-alt .whl-team-card:focus-visible {
    outline: 3px solid #07a3bb;
    outline-offset: 3px;
}

.page-template-page-team-alt .whl-team-card__details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.page-template-page-team-alt .whl-team-card__name {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

.page-template-page-team-alt .whl-team-card__role {
    display: block;
    min-height: 2.8em;
    margin-top: 8px;
    color: #087f94;
    font-size: .95rem;
    line-height: 1.4;
}

.page-template-page-team-alt .option-set li a {
    background: #00a5be;
    color: #fafafa;
}

.page-template-page-team-alt .option-set li a:hover,
.page-template-page-team-alt .option-set li a:focus-visible {
    background: #018398;
}

.whl-team-dialog {
    box-sizing: border-box;
    width: min(920px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 6px;
    color: #143b5c;
    box-shadow: 0 24px 70px rgba(9, 25, 41, .32);
}

.whl-team-dialog:not([open]) {
    display: none;
}

.whl-team-dialog[open] {
    position: fixed;
    inset: 0;
    display: block;
    margin: auto;
}

.whl-team-dialog::backdrop {
    background: rgba(9, 25, 41, .72);
}

.whl-team-dialog__surface {
    position: relative;
    padding: clamp(28px, 5vw, 56px);
    background: #fff;
}

.whl-team-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #091929;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.whl-team-dialog__close:focus-visible {
    outline: 3px solid #07a3bb;
    outline-offset: 3px;
}

.whl-team-dialog__header {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 48px);
    padding-right: 32px;
}

.whl-team-dialog__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
}

.whl-team-dialog__header h2 {
    margin: 0 0 8px;
    color: #143b5c;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.whl-team-dialog__degree {
    line-height: 1.5;
}

.whl-team-dialog__role {
    margin: 8px 0 0;
    color: #087f94;
    font-size: 1.1rem;
    font-weight: 600;
}

.whl-team-dialog__content {
    margin-top: 32px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.whl-team-dialog__content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .whl-team-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .whl-team-dialog__surface {
        padding: 54px 22px 28px;
    }

    .whl-team-dialog__header {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 18px;
        padding-right: 0;
    }

    .whl-team-dialog__header h2 {
        font-size: 1.75rem;
    }

    .whl-team-dialog__content {
        margin-top: 24px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-template-page-team-alt .member-main-img,
    .page-template-page-team-alt .whl-team-card__overlay {
        transition: none;
    }
}

/* Recovery Room pricing tables */
.whl-builder-content .whl-price-table-wrap {
    width: 100%;
    margin: 24px 0 32px;
    overflow-x: auto;
    border: 1px solid #dfe5e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 59, 92, 0.08);
    -webkit-overflow-scrolling: touch;
}

.whl-builder-content .whl-price-table {
    width: 100%;
    min-width: 600px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    color: #3d3d3d;
    font-size: 17px;
    line-height: 1.45;
}

.whl-builder-content .whl-price-table th,
.whl-builder-content .whl-price-table td {
    padding: 16px 20px;
    border: 0;
    border-bottom: 1px solid #e2e7e9;
    text-align: left;
    vertical-align: middle;
}

.whl-builder-content .whl-price-table thead th {
    background: #143b5c;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.whl-builder-content .whl-price-table tbody tr:nth-child(even) {
    background: #f5f7f3;
}

.whl-builder-content .whl-price-table tbody tr:hover {
    background: #eef5f6;
}

.whl-builder-content .whl-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.whl-builder-content .whl-price-table__price {
    color: #143b5c;
    font-size: 1.1em;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .whl-builder-content .whl-price-table-wrap {
        margin: 20px 0 28px;
        border-radius: 4px;
    }

    .whl-builder-content .whl-price-table {
        min-width: 540px;
        font-size: 16px;
    }

    .whl-builder-content .whl-price-table th,
    .whl-builder-content .whl-price-table td {
        padding: 14px 16px;
    }
}
