/* Research overview and topic pages; scoped to preserve the existing homepage. */

html {
    scroll-padding-top: 88px;
}

.research-overview {
    background: #f7f7f5;
}

.research-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.research-eyebrow {
    color: #b9492b;
    font: 700 .76rem "Merriweather Sans", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.research-lead {
    max-width: 740px;
    margin: 0 auto 42px;
    color: #656b70;
    line-height: 1.9;
}

.research-grid,
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.research-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: #fff;
    border: 1px solid #e3e5e3;
    border-radius: 8px;
    color: #212529;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.research-card:hover {
    color: #212529;
    transform: translateY(-4px);
    border-color: #f4623a;
    box-shadow: 0 12px 30px #2026240d;
}


.research-card-cover {
    width: calc(100% + 64px);
    max-width: none;
    height: 195px;
    object-fit: cover;
    margin: -32px -32px 26px;
    border-radius: 7px 7px 0 0;
}


.research-count {
    color: #737a7e;
    font: .8rem "Merriweather Sans", sans-serif;
}

.research-card h3 {
    font-size: 1.35rem;
    line-height: 1.45;
}

.research-card p {
    color: #656b70;
    font-size: .92rem;
    line-height: 1.8;
    flex: 1;
}

.research-card-cta {
    color: #b9492b;
    font: 700 .85rem "Merriweather Sans", sans-serif;
    margin-top: 10px;
}

.research-card:focus-visible, .topic-tabs a:focus-visible {
    outline: 3px solid #f4623a;
    outline-offset: 4px;
}

.research-detail {
    background: #fff;
    color: #212529;
}

.research-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid #e3e5e3;
}

.research-topbar-inner {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.research-brand {
    color: #212529;
    text-decoration: none;
    font: 700 1.25rem "Merriweather Sans", sans-serif;
    white-space: nowrap;
}

.topic-hero {
    padding: 46px 0 38px;
    background: #f7f7f5;
}

.research-back {
    display: inline-block;
    margin-bottom: 36px;
    color: #8d3d26;
    font: .85rem "Merriweather Sans", sans-serif;
    text-decoration: none;
}

.topic-hero h1 {
    max-width: 920px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.22;
    margin: 12px 0 22px;
}

.topic-intro {
    max-width: 840px;
    color: #62696d;
    line-height: 1.95;
    margin: 0;
}

.topic-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.topic-tabs a {
    border: 1px solid #d9deda;
    border-radius: 5px;
    padding: 10px 15px;
    background: #fff;
    color: #535d61;
    text-decoration: none;
    font: .8rem "Merriweather Sans", sans-serif;
}

.topic-tabs a[aria-current="page"] {
    background: #b9492b;
    border-color: #b9492b;
    color: #fff;
}

.topic-content {
    padding-top: 48px;
    padding-bottom: 64px;
}

.topic-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.topic-section-heading h2 {
    font-size: 1.6rem;
    margin: 0;
}

.research-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
}

.research-video {
    min-width: 0;
}

.research-video video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #161b1c;
    object-fit: contain;
    border-radius: 6px;
}

.research-video h3 {
    font-size: 1.08rem;
    line-height: 1.5;
    margin: 14px 0 6px;
}

.research-video-year {
    color: #8d3d26;
    font: .78rem "Merriweather Sans", sans-serif;
}

.research-video p {
    margin-top: 10px;
    color: #666e71;
    font-size: .88rem;
    line-height: 1.8;
}

.research-video-grid.single-video {
    grid-template-columns: minmax(0, 850px);
}

.research-references {
    margin-top: 55px;
    padding-top: 32px;
    border-top: 1px solid #e3e5e3;
}

.research-references h2 {
    font-size: 1.5rem;
}

.research-references li {
    padding: 8px 0;
    line-height: 1.7;
}

.research-references p {
    color: #666e71;
    line-height: 1.8;
}

.research-footer {
    background: #f7f7f5;
    padding: 28px 0;
    color: #697074;
    font-size: .8rem;
}

.research-footer .research-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Teaching cards share the Research card layout and spacing. */
.teaching-overview {
    background: #fff;
}

.teaching-grid {
    margin-top: 42px;
}

.teaching-card-cover-link {
    display: block;
    margin: -32px -32px 26px;
    border-radius: 7px 7px 0 0;
    overflow: hidden;
}

.teaching-card-cover-link img {
    display: block;
    width: 100%;
    height: 195px;
    object-fit: cover;
}

.teaching-course-code {
    color: #b9492b;
    font: 700 .8rem "Merriweather Sans", sans-serif;
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.teaching-card h3 a {
    color: inherit;
    text-decoration: none;
}

.teaching-card h3 a:hover {
    color: #b9492b;
}

.teaching-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 10px;
    font: 700 .8rem "Merriweather Sans", sans-serif;
}

.teaching-card-links a {
    color: #b9492b;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .research-grid,
    .teaching-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .research-grid,
    .teaching-grid,
    .research-video-grid {
        grid-template-columns: 1fr;
    }
    .research-container {
        width: calc(100% - 36px);
    }
    .research-card {
        padding: 25px;
    }
    .research-card-cover {
        width: calc(100% + 50px);
        margin: -25px -25px 24px;
    }
    .teaching-card-cover-link {
        margin: -25px -25px 24px;
    }
    .research-topbar-inner {
        padding: 15px 0;
        align-items: flex-start;
        gap: 16px;
    }
    .topic-hero {
        padding-top: 28px;
    }
    .research-back {
        margin-bottom: 25px;
    }
    .topic-tabs a {
        font-size: .74rem;
        padding: 9px 11px;
    }
}
