/* Rounded research cards with a shared, centred image line. */
.research-cards { margin-top: 42px; }
.research-cards article { min-height: 100%; border: 1px solid #315073; border-radius: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.research-cards article p { max-width: 330px; }
.research-image { width: 175px; height: 175px; object-fit: cover; border-radius: 50%; border: 1px solid #75a5d7; margin: 0 auto 30px; }
.research-strands { margin-top: 58px; }
.research-strand { position: relative; min-height: 100%; padding: 0 24px 28px; text-align: center; border-left: 1px solid #315073; }
.research-strand > span { display: block; margin-bottom: 20px; color: #9fc3eb; font-size: .72rem; letter-spacing: .1em; }
.research-strand p { max-width: 330px; margin: 0 auto; }
.research-strand h3 { margin-bottom: 12px; }
.research-strand .research-image { display: block; }
@media (max-width: 991px) { .research-strand { margin-bottom: 35px; border-left: 0; border-top: 1px solid #315073; padding-top: 28px; } }

/* Compact, single-line presentation for the contact list. */
.links { max-width: none; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid #315073; border-bottom: 1px solid #315073; }
.links a { min-height: 50px; padding: 8px 14px; flex-direction: row; justify-content: flex-start; align-items: center; border-top: 0; border-right: 1px solid #315073; font-size: .8rem; white-space: nowrap; }
.links a:last-child { border-right: 0; }
.links a span { margin-left: auto; }
@media (max-width: 991px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .links a:nth-child(2) { border-right: 0; } }
@media (max-width: 575px) { .links { grid-template-columns: 1fr; } .links a { min-height: auto; border-right: 0; border-bottom: 1px solid #315073; } }

.contact-image { width: 22px; height: 22px; object-fit: contain; border-radius: 50%; }

#teaching .split-list .label { font-size: .83rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
#teaching .col-lg-5 > p:not(.label) { font-size: 1.2rem; color: #d0deef; }

/* A clean sans-serif voice across the site. */
body, .navbar-brand, .btn { font-family: "DM Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Libre Franklin", system-ui, sans-serif; font-weight: 600; letter-spacing: -.04em; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 5.5vw, 5.25rem); }
h2 { font-size: clamp(2.15rem, 3.8vw, 3.65rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); }

/* Main portrait supplied with the published site. */
.photo { color: transparent; border-style: solid; background: #0d213f url("assets/mugshot.jpeg") center/cover no-repeat; }
.university-link { display: inline-block; margin-top: 6px; color: #c4dcfb; font-size: .95rem; text-decoration: none; }

.contact-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; margin-top: 10px; }
.contact { padding-top: 36px; }
.contact-details { padding: 0; }
.contact-email { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 24px; color: #fff; font-size: 1.05rem; text-decoration: none; }
.contact-email span { color: #a9c6ea; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-details address { margin: 0; color: #b9c8dc; font-style: normal; line-height: 1.75; }
.contact-details address > span { display: block; margin-bottom: 3px; color: #a9c6ea; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-details address strong { color: #eef4fc; font-weight: 600; }
.link-group .links { grid-template-columns: 1fr; }
.link-group .links { border: 0; }
.link-group .links a { min-height: 32px; padding: 3px 0; border: 0; font-size: .78rem; }
@media (max-width: 991px) { .contact-split { grid-template-columns: 1fr; gap: 25px; } }
@media (max-width: 575px) { .contact-link-groups { grid-template-columns: 1fr; } }

/* Minimal contact links; replace a circle with an image by swapping the b element for .contact-image. */
.contact-links-panel .links { border: 0; }
.contact-links-panel .links a { min-height: 40px; padding: 6px 2px; border: 0; font-size: .8rem; }
.contact-links-panel .links a span { display: none; }
.link-icon { width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #8eb4de; border-radius: 50%; background: transparent; }

/* Updated observations description. */
#research .research-strand:first-child p { font-size: 0; }
#research .research-strand:first-child p::after { content: "I use observations from leading space- and ground-based observatories to trace galaxy evolution across cosmic history."; font-size: 1rem; line-height: 1.7; }
h1 em { font-style: normal; }
