/* Course news, sharing the home page's cards and metadata styles. */
.course-publications .course-heading,
.course-publications .course-filters {
    border: 1px solid #dce6ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(39, 66, 86, 0.04);
    margin-bottom: 24px;
}

.course-heading .card-body,
.course-filters .card-body {
    padding: 24px;
}

.course-heading-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.course-heading-title > div {
    min-width: 0;
}

.course-heading-kicker {
    margin-bottom: 4px;
    color: #657c8b;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.course-heading h1 {
    margin: 0;
    color: #294861;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.course-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid #edf1f5;
}

.course-contact-toggle {
    display: none;
}

.course-contact-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

.course-contact-item dt > i {
    flex: 0 0 18px;
    color: #00798a;
    font-size: 18px;
}

.course-contact dt {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    color: #657c8b;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.course-contact dd {
    margin-bottom: 0;
    margin-left: 30px;
    color: #334f62;
    font-size: 13px;
    line-height: 1.7;
}

.course-contact a {
    color: #00798a;
}

.course-contact a:hover {
    text-decoration: underline;
}

.course-filters-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.course-filters-heading h2 {
    margin: 0;
    color: #294861;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.course-publications .course-results-count {
    padding: 7px 12px;
    background: #edf3f8;
    color: #395e85;
    font-size: 12px;
    line-height: 1.4;
}

.course-filter-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.course-filter-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
    color: #657c8b;
    font-size: 12px;
}

.course-filter-list .course-filter {
    padding: 9px 16px;
    border-color: #dce6ed;
    color: #536674;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: none;
}

.course-filter-list .course-filter:hover,
.course-filter-list .course-filter:focus-visible {
    border-color: #00798a;
    background: #e6f4f5;
    color: #00798a;
}

.course-filter-list .course-filter.active {
    border-color: #00798a;
    background: #00798a;
    color: #fff;
    box-shadow: none;
}

.course-publication .card-body {
    display: flex;
    flex-direction: column;
}

.course-publication-updated {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    color: #657c8b;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.course-publication-updated > i {
    flex-shrink: 0;
    margin-top: 3px;
}

.course-modification-author {
    display: block;
}

.course-publications .home-publications-empty h3 {
    color: #294861;
    font-size: 20px;
    line-height: 1.5;
}

.course-empty-link {
    margin-top: 20px;
    padding: 10px 16px;
    white-space: normal;
}

.course-publications a:focus-visible {
    outline: 2px solid #00798a;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .course-heading .card-body,
    .course-filters .card-body {
        padding: 20px;
    }

    .course-heading h1 {
        font-size: 22px;
    }

    .course-contact {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 16px;
        padding-top: 0;
        border-top: 0;
    }

    .course-contact-details {
        margin-top: 20px;
    }

    .course-contact-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid #dce6ed;
        border-radius: 6px;
        background: #f7fafc;
        color: #00798a;
        font-size: 13px;
        line-height: 1.5;
        cursor: pointer;
        list-style: none;
    }

    .course-contact-toggle::-webkit-details-marker {
        display: none;
    }

    .course-contact-toggle .ti-angle-down {
        margin-left: auto;
    }

    .course-contact-details[open] .ti-angle-down {
        transform: rotate(180deg);
    }

    .course-filter-caption {
        flex-basis: 100%;
    }
}

.course-contact-toggle:focus-visible {
    outline: 2px solid #00798a;
    outline-offset: 4px;
}
