/* Research Projects page: one text-only card per project (x-research-project-card), in a single centered column as wide as
   the Continuing Education content. The frame, hover and label-and-value details follow the Editorial Positions cards. */

.research-section .research-projects {
    max-width: 1016px;
    margin: 0 auto;
}

/* The section heading, as the Editorial Positions headings. */
.research-section .research-projects-heading {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--heading-color);
}

.research-project-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.research-project-list > li + li {
    margin-top: 20px;
}

.research-project-card {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--surface-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.research-project-card:hover {
    border-color: var(--accent-border-color);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent-color) 6%, transparent);
}

/* The code label (the shared blue publication label) on the left, the status on the right. */
.research-project-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 12px;
    margin-bottom: 8px;
}

.research-project-top .publication-label {
    margin: 0;
}

.research-project-status {
    margin-left: auto;
    padding: 1px 10px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--muted-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.research-project-title {
    margin: 0 0 14px;
    color: var(--heading-color);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Details: a label beside each value. */
.research-project-details {
    display: grid;
    gap: 6px;
    margin: 0;
}

.research-project-details > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
}

.research-project-details dt {
    color: var(--muted-color);
    font-size: 14px;
    font-weight: 600;
}

.research-project-details dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .research-project-card {
        transition: none;
    }
}

/* Phones: each label above its value. */
@media (max-width: 575.98px) {
    .research-project-card {
        padding: 18px;
    }

    .research-section .research-projects-heading {
        font-size: 20px;
    }

    .research-project-title {
        font-size: 17px;
    }

    .research-project-details > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}
