/* ==========================================================================
   Chapagain Lab — FIU lab-site theme
   Modeled on the FIU Divi child theme used by hutchesonlab.fiu.edu
   ========================================================================== */

:root {
  --fiu-blue: #081E3F;
  --fiu-blue-2: #0c2a55;
  --fiu-gold: #B6862C;
  --fiu-yellow: #F8C93E;
  --fiu-yellow-bright: #FFCC00;
  --text: #222222;
  --muted: #5b6573;
  --rule: #e3e6ea;
  --tint: #f4f6f9;
  --link: #081E3F;
  --heading: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --body: Roboto, Helvetica, Arial, Lucida, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--fiu-gold); }
:focus-visible { outline: 3px solid var(--fiu-yellow); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; color: var(--fiu-blue); line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(28px, 3.2vw, 37px); }
h3 { font-size: clamp(21px, 2.3vw, 27px); }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 6px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header: translucent, fixed over the banner image ---------- */
:root { --hdr-h: 76px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(8, 30, 63, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; transition: background-color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { background: rgba(8, 30, 63, .94); box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: var(--hdr-h); }
.logo { flex-shrink: 0; display: block; line-height: 0; }
.logo img { height: 38px; width: auto; }
.site-title { display: flex; flex-direction: column; line-height: 1.2; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.35); min-width: 0; }
.site-title .unit { color: #fff; font-size: 12.5px; text-decoration: none; opacity: .9; letter-spacing: .02em; }
.site-title .lab { color: #fff; font-family: var(--heading); font-weight: 700; font-size: 22px; text-decoration: none; white-space: nowrap; }
.site-title a:hover { color: var(--fiu-yellow); }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a {
  display: block; color: #fff; text-decoration: none; font-size: 15px;
  padding: 8px 12px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--fiu-yellow); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--fiu-yellow); }

.menu-toggle {
  display: none; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer;
  font: 600 13px var(--heading); letter-spacing: .08em; padding: 12px 0 12px 12px; align-items: center; gap: 10px;
  min-height: 44px;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; transition: transform .25s, background-color .25s;
}
.menu-toggle .bars::before { position: absolute; top: -7px; }
.menu-toggle .bars::after { position: absolute; top: 7px; }
.menu-open .menu-toggle .bars { background: transparent; }
.menu-open .menu-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  :root { --hdr-h: 64px; }
  .logo img { height: 30px; }
  .site-title { padding-left: 12px; }
  .site-title .lab { font-size: 19px; }
  .site-title .unit { font-size: 11.5px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: rgba(8, 30, 63, .97); max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .menu-open .main-nav { max-height: 420px; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .main-nav ul { flex-direction: column; padding: 6px 24px 14px; }
  .main-nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a[aria-current="page"] { color: var(--fiu-yellow); border-bottom-color: rgba(255,255,255,.12); }
  .menu-open.site-header { background: rgba(8, 30, 63, .97); }
}
@media (max-width: 420px) {
  .menu-toggle .label { display: none; }
  .logo img { height: 26px; }
  .site-title .unit { display: none; }
  .site-title .lab { font-size: 18px; }
}

/* ---------- Hero (home): full-bleed image under the transparent header ---------- */
.hero {
  position: relative; min-height: 88vh; min-height: 88svh;
  background: var(--fiu-blue) url("../img/banner-hero.jpg") center / cover no-repeat;
  display: flex; align-items: flex-end; padding: calc(var(--hdr-h) + 40px) 0 64px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,63,.15) 0%, rgba(8,30,63,0) 40%, rgba(8,30,63,.55) 100%); pointer-events: none; }
.hero .wrap { width: 100%; position: relative; z-index: 1; }
.hero-caption { max-width: 560px; background: rgba(8, 30, 63, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; padding: 26px 30px 28px; border-left: 4px solid var(--fiu-yellow); }
.hero-caption .kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--fiu-yellow); margin-bottom: 8px; }
.hero-caption h2 { font-family: var(--serif); color: #fff; font-size: clamp(30px, 4.4vw, 50px); margin: 0 0 .3em; line-height: 1.1; }
.hero-caption p { margin: 0; font-size: 17px; opacity: .92; }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; color: #fff; text-decoration: none; font-size: 26px; line-height: 1; opacity: .8; }
.hero-scroll:hover { color: var(--fiu-yellow); }
@media (max-width: 600px) {
  .hero { min-height: 78vh; min-height: 78svh; padding-bottom: 56px; }
  .hero-caption { padding: 20px 20px 22px; }
  .hero-caption p { font-size: 15.5px; }
}

/* ---------- Page banner (inner pages): image under the transparent header ---------- */
.page-banner {
  position: relative; color: #fff;
  background: linear-gradient(90deg, rgba(8,30,63,.88) 0%, rgba(8,30,63,.6) 100%), url("../img/banner-hero.jpg") center 40% / cover no-repeat var(--fiu-blue);
  padding: calc(var(--hdr-h) + 44px) 0 40px;
}
.page-banner h2 { margin: 0; text-align: left; color: #fff; }
.page-banner p { margin: .5em 0 0; color: rgba(255,255,255,.88); max-width: 780px; }
.page-banner a { color: var(--fiu-yellow); }
.crumbs { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 6px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--tint); border-top: 0; }
.section-title { text-align: center; margin-bottom: 1em; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--fiu-yellow); margin: 14px auto 0;
}
.lede { max-width: 860px; margin: 0 auto; text-align: justify; font-size: 17px; }
.lede strong { color: var(--fiu-blue); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* News list */
.news { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.news li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.news li:first-child { border-top: 1px solid var(--rule); }
.news time { font-family: var(--heading); font-weight: 700; color: var(--fiu-blue); font-size: 14.5px; }
.news li.more-item { display: none; }
.news.expanded li.more-item { display: grid; }
.center { text-align: center; }
.btn {
  display: inline-block; background: var(--fiu-blue); color: #fff; border: 2px solid var(--fiu-blue);
  font: 600 14px var(--heading); letter-spacing: .03em; text-transform: uppercase;
  padding: 10px 22px; text-decoration: none; cursor: pointer; margin-top: 24px;
}
.btn:hover { background: #fff; color: var(--fiu-blue); }
.btn.outline { background: transparent; color: var(--fiu-blue); }
.btn.outline:hover { background: var(--fiu-blue); color: #fff; }
@media (max-width: 600px) { .news li { grid-template-columns: 1fr; gap: 2px; } }

/* Journal covers carousel */
.cover { margin: 0; text-decoration: none; color: var(--text); display: block; }
.cover .frame { background: #fff; border: 1px solid var(--rule); padding: 10px; transition: box-shadow .2s, transform .2s; }
.cover img { width: 100%; aspect-ratio: 316 / 400; object-fit: cover; }
.cover figcaption { font-size: 14px; line-height: 1.5; margin-top: 10px; }
a.cover:hover { color: var(--fiu-blue); }
a.cover:hover .frame { box-shadow: 0 6px 18px rgba(8,30,63,.15); transform: translateY(-2px); }

.carousel { --per: 4; --gap: 24px; position: relative; padding: 0 52px; }
.car-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px 8px; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track .slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; }
.car-btn {
  position: absolute; top: 38%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--fiu-blue); color: #fff; font-size: 28px; line-height: 40px; cursor: pointer; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.car-btn:hover { background: var(--fiu-yellow); color: var(--fiu-blue); }
.car-btn.prev { left: 0; } .car-btn.next { right: 0; }
.car-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.car-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.car-dots button::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #c5ccd6; transition: background-color .2s, transform .2s; }
.car-dots button[aria-current="true"]::before { background: var(--fiu-blue); transform: scale(1.35); }
@media (max-width: 1000px) { .carousel { --per: 3; } }
@media (max-width: 760px)  { .carousel { --per: 2; --gap: 16px; padding: 0 44px; } .car-btn { width: 36px; height: 36px; font-size: 24px; line-height: 34px; } }
@media (max-width: 460px)  { .carousel { --per: 1; padding: 0 40px; } .car-track .slide { max-width: none; } .cover .frame { max-width: 280px; margin: 0 auto; } .cover figcaption { max-width: 280px; margin-left: auto; margin-right: auto; text-align: center; } }

/* Research topics */
.topic { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; padding: 40px 0; border-bottom: 1px solid var(--rule); }
.topic:last-child { border-bottom: 0; }
.topic .media { background: #fff; border: 1px solid var(--rule); padding: 10px; }
.topic .media img, .topic .media video { width: 100%; }
.topic h3 { margin-bottom: .5em; }
.topic p { text-align: justify; }
.funding { display: inline-block; font-size: 13px; font-weight: 600; color: var(--fiu-blue); background: #fdf3d4; border-left: 3px solid var(--fiu-yellow); padding: 3px 10px; }
@media (max-width: 860px) { .topic { grid-template-columns: 1fr; gap: 20px; } .topic .media { max-width: 420px; } }

/* People */
.pi { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.pi img { width: 100%; border: 1px solid var(--rule); }
.pi .roles { list-style: none; padding: 0; margin: 0 0 1.2em; }
.pi .roles li { padding: 2px 0; }
@media (max-width: 760px) { .pi { grid-template-columns: 1fr; } .pi img { max-width: 240px; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.person { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--fiu-blue); text-align: center; padding: 22px 18px 20px; }
.person img { width: 132px; height: 132px; object-fit: cover; border-radius: 50%; margin: 0 auto 14px; border: 3px solid var(--tint); }
.person h4 { margin: 0 0 2px; font-size: 18px; }
.person .role { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fiu-gold); margin-bottom: 8px; }
.person p { font-size: 14.5px; margin: 0; color: #444; }

.alumni { width: 100%; border-collapse: collapse; font-size: 15px; }
.alumni th { text-align: left; font-family: var(--heading); color: #fff; background: var(--fiu-blue); padding: 10px 14px; font-size: 14px; }
.alumni td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.alumni tr:nth-child(even) td { background: var(--tint); }
.alumni .who { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--fiu-blue); }
.alumni .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.alumni .deg { white-space: nowrap; }
@media (max-width: 640px) {
  .alumni thead { display: none; }
  .alumni tr { display: block; border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .alumni td { display: block; border: 0; padding: 2px 14px; background: none !important; }
}

/* Publications */
.pub-layout { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.pub-index { position: sticky; top: 150px; font-size: 14px; }
.pub-index h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pub-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.pub-index li.wide { grid-column: 1 / -1; }
.pub-index a { text-decoration: none; display: block; padding: 3px 0; }
.pub-index a:hover { text-decoration: underline; }
.pub-search { width: 100%; padding: 9px 12px; font: 15px var(--body); border: 1px solid #c9ced6; margin-bottom: 18px; }
.pub-group { scroll-margin-top: 150px; }
.pub-group h3 { border-bottom: 2px solid var(--fiu-yellow); padding-bottom: 6px; margin: 36px 0 12px; }
.pub-group:first-child h3 { margin-top: 0; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef0f3; line-height: 1.6; font-size: 15.5px; }
.pubs .n { font-family: var(--heading); font-weight: 700; color: var(--fiu-blue); font-size: 14px; text-align: right; padding-top: 2px; }
.pubs i { color: var(--fiu-blue); }
.pubs a.plink { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-left: 4px; white-space: nowrap; }
.cover-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--fiu-yellow); color: var(--fiu-blue); padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.pub-count { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .pub-layout { grid-template-columns: 1fr; gap: 20px; } .pub-index { position: static; } .pub-index ul { grid-template-columns: repeat(4, 1fr); } }

/* Teaching */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.course { border: 1px solid var(--rule); border-left: 5px solid var(--fiu-yellow); padding: 20px 22px; background: #fff; }
.course .code { font-family: var(--heading); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--fiu-gold); }
.course h3 { font-size: 20px; margin: 4px 0 8px; }
.course p { font-size: 14.5px; color: #444; margin: 0; }
.course a.go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; }

/* Contact strip */
.contact-strip { background: var(--fiu-blue); color: #fff; padding: 40px 0; }
.contact-strip .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.contact-strip h3 { color: #fff; font-size: 20px; }
.contact-strip a { color: var(--fiu-yellow); }
.contact-strip p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .contact-strip .wrap { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--fiu-yellow); color: #222; padding: 34px 0 30px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #222; font-size: 17px; margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 2px 0; }
.site-footer a { color: #333; font-size: 15px; text-decoration: none; border-bottom: 1px solid #333; }
.site-footer a:hover { color: var(--fiu-blue); border-bottom-color: var(--fiu-blue); }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.75; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 22px; } }

.sub-footer { background: var(--fiu-blue); color: #fff; text-align: center; font-size: 14px; padding: 22px 0; }
.sub-footer a { color: var(--fiu-yellow); }
.sub-footer a:hover { color: #fff; }

/* ---------- Small-screen refinements ---------- */
html { scroll-padding-top: calc(var(--hdr-h) + 12px); }
.pub-index { top: calc(var(--hdr-h) + 20px); }
.pub-group { scroll-margin-top: calc(var(--hdr-h) + 16px); }
@media (max-width: 600px) {
  .lede, .topic p, .pi p { text-align: left; }
  .lede { font-size: 16px; }
  .section { padding: 40px 0; }
  .wrap { padding: 0 16px; }
  .header-row { gap: 12px; }
  .main-nav ul { padding: 6px 16px 14px; }
  .section-title { font-size: 26px; }
  .page-banner { padding-bottom: 30px; }
  .page-banner h2 { font-size: 28px; }
  .pubs li { grid-template-columns: 34px 1fr; gap: 8px; font-size: 15px; }
  .pub-index ul { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person { padding: 16px 10px; }
  .person img { width: 96px; height: 96px; }
  .person h4 { font-size: 16px; }
  .person p { font-size: 13.5px; }
  .btn { padding: 12px 22px; }
  .site-footer a { display: inline-block; padding: 3px 0; }
}
@media (max-width: 360px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .car-dots { gap: 0; } .car-dots button { width: 22px; height: 28px; } .car-dots button::before { inset: 10px 7px; } }
@media (max-width: 860px) {
  .pub-index h4 { display: none; }
  .pub-index ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .pub-index li.wide { grid-column: auto; }
  .pub-index a { padding: 6px 12px; border: 1px solid #c9ced6; border-radius: 999px; font-size: 14px; }
  .pub-index a:hover { background: var(--fiu-blue); color: #fff; border-color: var(--fiu-blue); text-decoration: none; }
}

/* About: highlights + directions */
.lede h3.sub { font-size: 22px; margin: 1.6em 0 .5em; }
.stats { list-style: none; margin: 36px auto; padding: 0; max-width: 980px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--fiu-yellow); border-bottom: 1px solid var(--rule); }
.stats li { text-align: center; padding: 20px 10px 18px; }
.stats li + li { border-left: 1px solid var(--rule); }
.stats b { display: block; font-family: var(--heading); font-size: 38px; line-height: 1.1; color: var(--fiu-blue); }
.stats span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 6px; }
.directions { max-width: 980px; margin: 22px auto 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.direction { background: var(--tint); border-left: 4px solid var(--fiu-yellow); padding: 20px 22px; }
.direction h4 { margin: 0 0 6px; font-size: 18px; }
.direction p { margin: 0; font-size: 15px; line-height: 1.6; }
.lede .btn + .btn { margin-left: 10px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0 !important; border-top: 1px solid var(--rule); }
  .stats li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:last-child { grid-column: 1 / -1; border-right: 0; }
  .stats b { font-size: 32px; }
  .directions { grid-template-columns: 1fr; }
  .lede .btn + .btn { margin-left: 0; }
  .lede .btn { display: block; text-align: center; }
}

/* Members: updated layout */
.person .when { margin-top: 8px; font-size: 13px; color: var(--muted); }
.alumni .deg small { display: block; font-size: 12.5px; color: var(--muted); }
.honor { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--fiu-yellow); color: var(--fiu-blue); padding: 1px 7px; white-space: nowrap; vertical-align: 1px; }
.roster { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.roster li { display: grid; grid-template-columns: 1.1fr 1.3fr 130px 76px; gap: 14px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
.roster li:first-child { border-top: 1px solid var(--rule); }
.roster b { font-family: var(--heading); color: var(--fiu-blue); font-size: 16.5px; }
.roster .yrs { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.roster .now { justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--fiu-blue); padding: 2px 8px; }

.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; max-width: 1000px; margin: 0 auto; }
.groups .full { grid-column: 1 / -1; }
.groups h3 { font-size: 18px; margin-bottom: 12px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--rule); padding: 6px 12px; font-size: 14.5px; line-height: 1.4; }
.chips li em { font-style: normal; color: var(--muted); }
.chips li.more { background: none; border-style: dashed; color: var(--muted); }
@media (max-width: 760px) {
  .groups { grid-template-columns: 1fr; }
  .roster li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .roster li .yrs { text-align: right; }
  .roster li > span:nth-of-type(1) { grid-column: 1; grid-row: 2; font-size: 14.5px; }
  .roster .yrs { grid-column: 2; grid-row: 2; }
  .roster .now { grid-column: 2; grid-row: 1; justify-self: end; }
  .chips li { font-size: 14px; }
}
@media (max-width: 640px) { .alumni td:nth-child(3)::before { content: "Research: "; color: var(--muted); } }

/* PI circular photo */
.pi { grid-template-columns: 240px 1fr; }
.pi img.pi-photo { width: 220px; height: 220px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; border: 4px solid var(--tint); box-shadow: 0 0 0 1px var(--rule); justify-self: center; }
@media (max-width: 760px) { .pi { grid-template-columns: 1fr; gap: 20px; } .pi img.pi-photo { width: 180px; height: 180px; max-width: none; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.photo { margin: 0; }
.photo.wide { grid-column: 1 / -1; max-width: 960px; justify-self: center; width: 100%; }
.photo img { width: 100%; height: auto; border: 1px solid var(--rule); background: var(--tint); }
.photo a { display: block; line-height: 0; }
.photo figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); text-align: center; }
.gallery { grid-template-columns: 1fr 1fr; max-width: 1080px; margin: 0 auto; }
.photo.wide { max-width: none; }
.photo:not(.wide) img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo a:hover img { filter: brightness(1.05); }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; gap: 22px; } }

/* Research: info card in place of media */
.topic .media:has(.info-card) { background: var(--tint); border: 0; border-top: 4px solid var(--fiu-blue); padding: 22px 22px 18px; }
.info-card { font-size: 14.5px; line-height: 1.55; }
.info-card .info-label { font-family: var(--heading); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fiu-gold); margin: 14px 0 4px; }
.info-card .info-label:first-child { margin-top: 0; }
.info-card p { margin: 0 0 4px; text-align: left !important; }
.info-card .info-title { font-family: var(--heading); font-weight: 700; font-size: 16px; line-height: 1.35; }
.info-card ul { margin: 0; padding-left: 18px; }
@media (max-width: 860px) { .topic .media:has(.info-card) { order: 2; max-width: none; } }
.info-card ul.papers { list-style: none; padding: 0; }
.info-card ul.papers li { margin-bottom: 10px; line-height: 1.45; }
.info-card ul.papers a { font-weight: 600; }
.info-card ul.papers span { display: block; color: var(--muted); font-size: 13px; }
.info-card .info-journal { color: var(--muted); font-size: 13.5px; }
.info-card ul.collab { list-style: none; padding: 0; margin: 0; }
.info-card ul.collab li { padding: 2px 0; }
.topic { grid-template-columns: 320px 1fr; }
.info-movie { margin: 4px 0 0; }
.info-movie video { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--rule); }
.info-movie figcaption { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
