.student-course-records .course-record-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-course-records .student-section-title {
    margin: 1.25rem 0 0.85rem;
}

.course-record-card {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(15rem, 1.1fr) auto;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    padding: 1.15rem 1.3rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #d4dff0;
    border-radius: 0.8rem;
}

.course-record-heading h3 {
    margin: 0.45rem 0 0.2rem;
    color: #102747;
}

.course-record-heading p {
    margin: 0 0 0.25rem;
    overflow-wrap: anywhere;
}

.course-record-heading time {
    color: #526788;
    font-size: 0.82rem;
}

.course-record-phases {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0;
}

.course-record-phases > div {
    background: #f1f5fb;
    border-radius: 0.45rem;
    padding: 0.45rem 0.35rem;
    text-align: center;
}

.course-record-phases dt {
    color: #536887;
    font-size: 0.82rem;
}

.course-record-phases dd {
    margin: 0.15rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.course-record-archive {
    margin-block: 1.25rem;
}

.course-record-archive > summary {
    cursor: pointer;
}

@media (max-width: 1090px) {
    .course-record-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-record-open {
        justify-self: start;
    }
}

@media (max-width: 510px) {
    .student-course-records .course-record-counts {
        gap: 0.4rem;
    }

    .student-course-records .course-record-counts article {
        min-width: 0;
        padding: 0.6rem 0.45rem;
    }
}
