/* Enfold content edited by Europubhealth includes long filenames, addresses and links. */
#main .entry-content-wrapper a,
#main .avia_textblock a,
#main .iconbox_content a,
#main .av-special-heading-tag,
#main .iconbox_content h3 {
    overflow-wrap: anywhere;
    word-break: normal;
}
#main .iconbox_content, #main .avia_textblock { min-width: 0; }

/* The admissions hero uses a gold background and must be legible during its entrance. */
body.page-id-257 #main #av_section_1 .av-special-heading-tag { color: #372b16; }
@media (prefers-reduced-motion: reduce) {
    #main .avia-section.av-minimum-height > .container {
        opacity: 1 !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Offer the existing Complianz control as a normal footer button on touch devices. */
@media (max-width: 768px) {
    html #cmplz-manage-consent .cmplz-manage-consent.cmplz-show {
        position: relative !important;
        display: block !important;
        bottom: auto !important;
        right: auto !important;
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 44px;
        margin: .4rem auto !important;
        padding: .6rem 1rem !important;
        border: 1px solid currentColor;
        border-radius: .35rem;
    }
}
@media (max-height: 400px) {
    html .cmplz-cookiebanner.cmplz-show {
        width: min(100% - 12px, 42rem) !important;
        box-sizing: border-box;
        max-height: calc(100dvh - 12px) !important;
        height: auto !important;
        overflow-y: auto !important;
        gap: .25rem;
        zoom: 1 !important;
    }
    html .cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
    html .cmplz-cookiebanner .cmplz-close,
    html .cmplz-cookiebanner .cmplz-documents,
    html .cmplz-cookiebanner .cmplz-information { zoom: 1 !important; }
    html .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
        min-height: 44px !important;
        height: auto !important;
        padding: .35em .6em !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }
    html .cmplz-cookiebanner .cmplz-close { min-width: 44px; min-height: 44px; }
    html .cmplz-cookiebanner .cmplz-body { max-height: none !important; overflow: visible !important; }
    html .cmplz-cookiebanner .cmplz-categories { flex-shrink: 0; }
}

html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    column-gap: .35rem;
    padding-block: 0;
}
html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-toggle {
    min-width: 44px;
    min-height: 44px;
}
html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox {
    width: 44px;
    min-height: 44px;
}
html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox input.cmplz-consent-checkbox {
    width: 44px;
    height: 44px;
    inset: 0;
    margin: 0;
}
html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox .cmplz-label {
    display: block;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
}
html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox .cmplz-label:before { top: calc(50% - 7px); }
html .cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-banner-checkbox .cmplz-label:after { top: calc(50% - 5px); }

.eph-tools-label { display: none; }

/* The mobile toggle and its expanded choices each occupy their own row below the languages. */
@media (max-width: 767px) {
    html body #pojo-a11y-toolbar.eph-a11y-inline {
        position: relative !important;
        inset: auto !important;
        z-index: auto;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 0;
        background: #f5f6f7;
        transition: none;
    }
    #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-toggle {
        position: static;
        display: flex;
        justify-content: center;
        padding: 0;
    }
    #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-toggle a {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        min-height: 44px;
        padding: .3rem .6rem;
        color: #214e77;
        background: transparent;
        font: inherit;
        font-size: 15px;
        line-height: 1.25;
        box-shadow: none;
    }
    #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-toggle svg { width: 1.2em; height: 1.2em; }
    #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-toggle .eph-tools-label { display: inline; }
    html #top #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-toggle a {
        width: auto !important;
        height: auto !important;
        min-width: 44px;
        min-height: 44px;
        padding: .3rem .6rem !important;
        font-size: 15px !important;
        line-height: 1.25 !important;
    }
    html #top #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-toggle svg { width: 18px !important; height: 18px !important; }
    #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-overlay { display: none; }
    #pojo-a11y-toolbar.eph-a11y-inline.pojo-a11y-toolbar-open .pojo-a11y-toolbar-overlay {
        display: block;
        width: 100%;
        max-height: 48vh;
        overflow: auto;
        box-shadow: none;
    }
    #pojo-a11y-toolbar.eph-a11y-inline .pojo-a11y-toolbar-item a { min-height: 44px; }
}
