.site-header:has(.phs-header-actions) {
    border-bottom: 1px solid #e3edeb;
    background-color: #fff;
}

.site-header .header-inner > .brand .ph-logo {
    width: 142px;
    max-width: 142px;
}

.site-header .nav-appointment {
    flex: none;
    min-height: 42px;
    padding: 0 12px;
    gap: 7px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.phs-header-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex: none;
}

.phs-header-dropdown,
.phs-header-disclosure {
    position: relative;
}

.phs-header-disclosure > summary {
    list-style: none;
    cursor: pointer;
}

.phs-header-disclosure > summary::-webkit-details-marker {
    display: none;
}

.phs-header-disclosure[open] > summary,
.phs-header-disclosure:has([aria-current="page"]) > summary {
    color: var(--teal-dark, #00535e);
}

.phs-header-disclosure[open] > .department-menu-toggle > .icon,
.phs-header-accreditation[open] > summary > .icon:last-child {
    transform: rotate(-90deg);
}

.phs-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 38px;
    padding: 0 .6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.phs-header-action .icon {
    width: 16px;
    height: 16px;
    flex: none;
}

.phs-header-action:hover,
.phs-header-disclosure[open] > .phs-header-action {
    background: var(--pale, #eef7f5);
}

.phs-header-accreditation > summary {
    border-color: #d5e5e2;
}

.phs-header-accreditation > summary > .icon:first-child {
    color: var(--teal, #007f89);
}

.phs-header-accreditation > summary > .icon:last-child {
    width: 12px;
    height: 12px;
    transform: rotate(90deg);
}

.phs-header-popover {
    position: absolute;
    z-index: 2;
    top: calc(100% + .5rem);
    left: 0;
    width: max-content;
    max-width: min(22rem, calc(100vw - 2rem));
    margin: 0;
    background: #fff;
    border: 1px solid #dce9e7;
    border-radius: 14px;
    box-shadow: 0 14px 30px #143d431e;
}

.phs-header-disclosure:not([open]) > .phs-header-popover {
    display: none;
}

.phs-header-links {
    display: block;
    min-width: 12.5rem;
    padding: .45rem;
    list-style: none;
}

.menu .phs-header-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .55rem .75rem;
    border-radius: 7px;
    white-space: normal;
}

.menu .phs-header-links a:hover,
.menu .phs-header-links a:focus-visible,
.menu .phs-header-links a[aria-current="page"] {
    color: var(--teal-dark, #00535e);
    background: var(--pale, #eef7f5);
}

.phs-header-links-overview {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid var(--line, #dbe8e5);
}

.phs-header-links-overview .icon,
.phs-accreditation-link .icon {
    width: 16px;
    height: 16px;
}

.phs-header-actions .phs-header-popover {
    left: auto;
    right: 0;
}

.phs-header-search-form {
    width: min(20rem, calc(100vw - 2rem));
    padding: .9rem;
}

.phs-header-search-form label {
    display: block;
    margin-bottom: .45rem;
    font-size: 14px;
    font-weight: 700;
}

.phs-header-search-form > div {
    display: flex;
    gap: .45rem;
}

.phs-header-search-form input {
    flex: 1;
    min-width: 0;
    padding: .5rem .65rem;
    border: 1px solid #abc6c3;
    border-radius: 7px;
    font: inherit;
    font-size: 16px;
}

.phs-header-search-form button {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: var(--teal-dark, #00535e);
    color: #fff;
    cursor: pointer;
}

.phs-header-search-form button .icon {
    width: 18px;
    height: 18px;
}

.phs-accreditation-panel {
    width: min(22rem, calc(100vw - 2rem));
    overflow: hidden;
    border-radius: 16px;
    line-height: 1.4;
}

.phs-accreditation-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--line, #dbe8e5);
    background: var(--pale, #eef7f5);
}

.phs-accreditation-heading img {
    display: block;
    flex: none;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.phs-accreditation-kicker {
    color: var(--teal-dark, #00535e);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.phs-accreditation-facility {
    margin-top: .2rem;
    color: var(--ink, #143d43);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

.phs-accreditation-location {
    margin-top: .1rem;
    color: var(--muted, #4b636a);
    font-size: .875rem;
}

.phs-accreditation-body {
    display: grid;
    gap: 1rem;
    padding: .95rem 1.125rem 1.125rem;
}

.phs-accreditation-facts {
    display: grid;
    gap: .625rem;
    margin: 0;
}

.phs-accreditation-facts dt {
    color: var(--muted, #4b636a);
    font-size: .75rem;
}

.phs-accreditation-facts dd {
    margin: .125rem 0 0;
    color: var(--ink, #143d43);
    font-size: .875rem;
    font-weight: 700;
}

.phs-accreditation-facts time {
    white-space: nowrap;
}

.phs-accreditation-panel .phs-accreditation-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 44px;
    padding: .625rem .75rem;
    border-radius: 8px;
    background: var(--teal-dark, #00535e);
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
}

.phs-accreditation-panel .phs-accreditation-link:hover,
.phs-accreditation-panel .phs-accreditation-link:focus-visible {
    background: var(--ink, #143d43);
}

.phs-careers-enquiries {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line, #dbe8e5);
}

@media (min-width: 1081px) {
    .site-header .header-inner:has(.phs-header-actions) {
        width: min(1540px, calc(100% - 44px));
        gap: 14px;
        min-height: 76px;
    }

    .site-header .primary-navigation:has(.phs-header-actions) {
        flex: 1;
        gap: 16px;
    }

    .site-header .primary-navigation > .menu {
        justify-content: space-between;
        gap: 11px;
    }

    .site-header .primary-navigation > .menu > li > a,
    .site-header .primary-navigation .department-menu-toggle {
        font-size: 13px;
    }

    .site-header .primary-navigation .department-menu-toggle {
        gap: 4px;
    }

    .site-header .primary-navigation .department-menu-toggle > .icon {
        width: 11px;
        height: 11px;
    }
}

@media (min-width: 1366px) {
    .site-header .primary-navigation > .menu {
        flex: 1 1 auto;
        max-width: 54rem;
        margin-inline: auto;
    }
}

@media (min-width: 1081px) and (max-width: 1365px) {
    .site-header .header-inner:has(.phs-header-actions) {
        min-height: 85px;
    }

    .site-header .primary-navigation:has(.phs-header-actions) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-content: center;
        justify-items: end;
        gap: 0 12px;
        padding-top: 5px;
    }

    .site-header .primary-navigation > .menu {
        grid-column: 1 / -1;
        grid-row: 2;
        width: min(100%, 54rem);
    }

    .phs-header-actions {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 3;
    }

    .site-header .nav-appointment {
        grid-column: 2;
        grid-row: 1;
    }

}

@media (max-width: 1080px) {
    .site-header .nav-appointment {
        min-height: 46px;
        margin-top: .7rem;
    }

    .phs-header-actions {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-top: .9rem;
        padding-top: .9rem;
        border-top: 1px solid var(--line, #dbe8e5);
    }

    .phs-header-popover {
        position: static;
        width: 100%;
        max-width: none;
        margin: .35rem 0 .55rem;
        box-shadow: none;
    }

    .phs-header-actions > details[open] {
        flex: 1 1 100%;
    }

    .phs-header-actions .phs-accreditation-panel {
        max-width: 22rem;
    }

    .menu .phs-header-links a {
        padding-block: .6rem;
    }
}
