/* The catalogue supplies its own scoped breadcrumbs and category heading. */
#page-blocks-opencourses-view #page-header {
    display: none;
}

#school-container .group.grid > .details .actions.top-upright-pos {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
}

#school-container .group.grid > .details .actions > .btn {
    width: auto;
    padding: 0.33rem 0.75rem;
    line-height: inherit;
}

#school-container .actions .group .action {
    white-space: normal;
}

#children-courses .item.area {
    position: relative;
}

#children-courses .course-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

#children-courses .course-card-link:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

#children-courses #action-menu2 {
    position: relative;
    z-index: 2;
}

#school-container .group.block > .details .item > picture > a {
    display: block;
    width: 100%;
    height: 100%;
}

#school-container .group.block > .details .item > picture > a > img {
    width: 100%;
    height: 100%;
    border-radius: var(--radiusValue);
    object-fit: cover;
}

#breadcrumbs > .breadcrumb:not(.active)::after {
    content: none;
}

#breadcrumbs > .breadcrumb {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

#breadcrumbs > .breadcrumb:not(.active) > a {
    display: inline-flex;
    align-items: center;
}

#breadcrumbs > .breadcrumb:not(.active) > a::after {
    content: "\f054";
    margin-left: 0.25rem;
    font-family: "Font Awesome 6 Free";
    font-size: 75%;
    font-weight: 900;
}

#breadcrumbs > .breadcrumb:not(.active) > a:hover::after {
    color: var(--primaryText);
}

#breadcrumbs > .breadcrumb:not(.active) > a .breadcrumb-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header [id*="search-stats"] {
    display: block !important;
    margin: 0 !important
}

aside:has(#drawer) {
    position: fixed;
    top: var(--navbar-height);
    left: 100%;
    width: fit-content;
    height: calc(100% - var(--navbar-height));
    z-index: 1
}

#drawer {
    width: max-content;
    height: 100%;
    background-color: var(--lightgrey);
    transition: margin-left 0.5s, box-shadow 0.5s
}

#drawer.off {
    margin-left: 0%;
    box-shadow: 0 0 0 0000;
}

#drawer.on {
    margin-left: -100%;
    box-shadow: -3px 3px 12px #0003;
}

#drawer > .scroll-area {
    overflow: auto;
    height: calc(100% - 100px);
}

#drawer > .scroll-area > div.area:not(:last-of-type) {
    margin-bottom: var(--section-gap)
}

#drawer h5 {
    font-size: 1.25rem
}

#drawer .btn {
    font-size: 1rem
}

#drawer > #slide-drawer-switch {
    position: relative;
    width: 5rem;
    padding-right: 2rem;
    height: 5rem;
    border: none;
    border-radius: 50% 0 0 50% / 4rem;
    outline: none;
    transition: margin-left 0.6s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

#drawer.on > #slide-drawer-switch {
    margin-left: 0rem;
    color: #3d3d3d;
    background-color: transparent;
    transition: margin-left 0.33s, color 0.33s
}

#drawer.off > #slide-drawer-switch {
    margin-left: -4rem;
    background-color: inherit;
}

#drawer.off > #slide-drawer-switch:hover {
    margin-left: -5rem;
}

#drawer.off > #slide-drawer-switch:not(:hover) {
    animation: slide-reminder 5s infinite
}

#bunnerbuttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem
}

#bunnerbuttons > .action {
    padding: var(--grid-space);
    flex: 1 0 19%;
    font-size: 1.25rem;
    gap: 1rem;
    line-height: 1;
    white-space: nowrap
}

#bunnerbuttons > .action > i {
    margin-bottom: auto
}

#subject-reference {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#subject-reference hr {
    width: 100%;
    margin-top: auto;
}

#subject-reference > h2 {
    font-size: 1.5rem;
    line-height: 1;
}

#subject-reference .attribs {
    margin-block: 0.8rem;
    line-height: 2;
}

#subject-reference .attribs .certified {
    margin-block: 1rem;
}

#subject-reference .attribs .certified .pill {
    font-size: 0.875rem;
}

#subject-reference .attribs .properties .pill {
    font-size: 0.875rem;
}

#subject-reference .attribs .classification {
    line-height: 2
}

#subject-reference .attribs .classification .title {
    display: inline;
    font-weight: 600;
    font-size: 0.875rem
}

#subject-reference .attribs .classification .pill {
    font-size: 0.875rem;
}

#subject-reference .attribs .subject {
    line-height: 2
}

#subject-reference .attribs .subject .title {
    display: inline;
    font-weight: 600;
    font-size: 0.875rem
}

#subject-reference .attribs .subject .pill {
    font-size: 0.875rem;
}

.creators {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

footer > #footer {
    padding: var(--grid-space);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--grid-space);
    border: 5px solid #B3D8E1;
    background-color: white
}

footer > #footer * {
    margin: 0
}

@media (max-width: 1600px) {
    footer > #footer {
        flex-wrap: wrap
    }

    footer > #footer .review {
        order: 3
    }
}

@media (max-width: 1200px) {
    footer > #footer {
        flex-wrap: nowrap
    }

    footer > #footer .review {
        order: unset
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 1000px;
    }
}

#LearningOutcomesModal .modal-dialog {
    max-width: unset;
}

.alert-danger {
    z-index: 1000000 !important;
}
