* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    font-family: "JetBrains Mono", monospace;
    flex-direction: column;
    min-height: 100vh;
    background: #eeece0;
}

header{
    display: flex;
    background: #eeece0;
    padding: 25px 3rem;
    font-weight: bold;
    justify-content: space-between;
    border-top: solid 3px black;
    border-bottom: solid 3px black;
    margin-top: 0.5px;
}

header .acronym{
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
    color: inherit;
    padding-left: 3.5px;
}

header nav{
    display: flex;
    gap: 10px;
    cursor: pointer;
    padding-right: 3.5px;
}

header nav a{
    padding: 10px 10px;
    border: 2px solid black;
    font-size: 15px;
    text-decoration: none;
    color: inherit;
}
header nav a:hover{
    background: black;
    color: #eeece0;
}

/*================================= RESEARCH =====================================*/

.research-box{
    width: 90%;
    margin: 5rem auto 2rem auto;
    display: grid;
}


.research-box .title-group h1{
    font-size: clamp(2.5rem, 4vw, 5rem);
    text-align: center;
    margin-bottom: 0;
}

.badge{
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
    color: #563faa;
}

.badge.CSBG{
    background: #62c1a6;
}
.badge.LBG{
    background: #eab660;
}
.badge.MML{
    background: #96abdc;
}

.research-box .title-group #subtitle{
    text-align: center;
    color: #6b6a63;
    margin-top: 0;
    margin-bottom: 3rem;
}

.lab-block{
    margin-bottom: 4rem;
    border-left: 6px solid black;
    padding-left: 1.5rem;
}
.lab-block.lab-1{
    display: grid;
    width: 85%;
}

.lab-block.lab-2,.lab-block.lab-3{
    width: 85%;
}

.lab-header h2, .lab-header a{
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-decoration: none;
    color: inherit;
}

.lab-header h2:hover, .lab-header a:hover{
    color: #bc0707;
}

.lab-link{
    font-size: 1rem;
    font-weight: 400;
}

.lab-school{
    font-size: 14px;
    color: #6b6a63;
    margin-bottom: 8px;
}

.lab-desc{
    font-size: 14px;
    margin-bottom: 10px;
}

.lab-meta, .lab-meta a{
    font-size: clamp(8px, 4vw, 13px);
    font-weight: 600;
}

.lab-dates{
    font-size: 13px;
    color: #6b6a63;
    margin-bottom: 1.5rem;
}

.project-grid{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 1.25rem;
    /*width: 90%;*/
}

.project-card{
    text-align: left;
    cursor: pointer;
    background: #e3e1d6;
    border: 3px solid #3e977e;
    border-radius: 12px;
    padding: 1.25rem;
    font: inherit;
    color: inherit;
}

.project-card.image, .project-card.hydrogel, .project-card.vandy{
    width: 50%;
}

.project-card.hydrogel{
    margin-top: 8px;
    border: 3px solid #f1b249;
}

.project-card.vandy{
    margin-top: 8px;
    border: 3px solid #88a8f6;
}

.project-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.project-tag{
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.project-chevron{
    font-size: 12px;
    transition: transform .2s ease;
}

.project-card[aria-expanded="true"] .project-chevron{
    transform: rotate(180deg);
}

.project-title{
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.project-body{
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .28s ease, opacity .2s ease, margin .28s ease;
    margin: 0;
}

.project-body.open{
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 12px;
}

.project-body-inner,
.project-body-lab-images{
    overflow: hidden;
    min-height: 0;
}

.project-body-lab-images{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-weight: bold;
}


.project-body-lab-images .lab-img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.hydrogel-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 8px;
}

.vandy-grid{
    display: grid;
    grid-template-rows: repeat(4, auto);
}

.vandy-text{
    margin-bottom: 25px;
    margin-top: 8px;
}

.test-tube{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 5px;
}

.lab-img.people{
    border: solid 4px #7c7016;
    margin-bottom: 5px;
}

.lab-img.Ctrl-Ab{
    border: solid 3px #f20983;
    margin-top: 1.5rem;
    margin-bottom: 5px;
}

.project-body-lab-images p{
    font-size: 13px;
    color: #6b6a63;
}

.project-body ul{
    padding-left: 1.1rem;
    font-size: 13px;
    line-height: 1.6;
    color: #1c1c1a;
}

.project-body li{
    margin-bottom: 8px;
}

.lab-bullets ul{
    padding-left: 1.2rem;
    font-size: 14px;
    line-height: 1.7;
}

.lab-bullets li{
    margin-bottom: 8px;
}

.lab-1{ border-left-color: #33876f; }
.lab-2{ border-left-color: orange; }
.lab-3{ border-left-color: #7496ed; }


.footer-nav{
    display: flex;
    align-items: center;
    gap: 0rem;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: solid 3px black;
    border-bottom: solid 3px black;
    margin-bottom: 0.5rem;
}
.footer p:hover{
    color: #bc0707;
}
.footer p{
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    padding: 2rem 0 2rem 4.5rem;
}

.footer a{
    color: inherit;
    text-decoration: none;
}

.copyright{
    color: #686868;
    font-weight: bold;
    font-size: clamp(8px, 4vw, 13px);
    padding-right: 1.5rem;
}


@media (max-width: 900px){
    .project-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 700px) {

header {
    padding: 15px 1.25rem;
    flex-wrap: wrap;
    row-gap: 10px;
}

header .acronym {
    font-size: 20px;
}

header nav {
    flex-wrap: wrap;
    gap: 8px;
}

header nav a {
    padding: 6px 8px;
    font-size: 11px;
    border-width: 1.5px;
}

/* ---------- Research header ---------- */
.research-box{
    width: 95%;
    margin: 3rem auto 2rem auto;
}

.title-group h1{
    font-size: clamp(2.5rem, 4vw, 5rem);
}

/* ---------- Lab blocks ---------- */
.lab-block{
    padding-left: 1rem;
    margin-bottom: 3rem;
}

.lab-block.lab-1,
.lab-block.lab-2,
.lab-block.lab-3{
    width: 95%;
}

.lab-header h2, .lab-header a{
    font-size: 1.2rem;
}

.lab-meta, .lab-meta a{
    font-size: clamp(8px, 4vw, 13px);
    font-weight: 600;
}

/* ---------- Project cards ---------- */
.project-card.image,
.project-card.hydrogel,
.project-card.vandy{
    width: 100%;
}

.project-tag{
    font-size: 14px;
}

.project-title{
    font-size: 14px;
}

/* ---------- Image grids inside project bodies ---------- */
.hydrogel-grid{
    grid-template-columns: 1fr;
}

.test-tube{
    grid-template-columns: 1fr;
}

.vandy-grid{
    grid-template-rows: auto;
}

.footer p{ padding: 1.5rem 1.5rem; font-size: 12px; }

}
