:root{
  --bg: #ffffff;
  --text: #101418;
  --muted: #5c6670;
  --card: #f6f7f9;
  --border: rgba(16,20,24,0.10);

  --navy: #07294D;
  --accent1: #45D07D;
  --accent2: #2FA8FF;

  --maxw: 1120px;

  --radius: 18px;
  --shadow: 0 12px 30px rgba(0,0,0,0.08);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

img.rounded {
  border-radius: 15px; /* Applies a 15px radius to all four corners */
}


.container{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,41,77,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 0px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  font-weight:780;
  letter-spacing:0.4px;
  min-width: 220px;
}
.brand .mark{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent1), var(--accent2));
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.brand .mark-drexel{
  width: 88px;
  height: 55px;
  background-image: url('../img/logo_Drexel_bigger.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /*box-shadow: 0 8px 20px rgba(0,0,0,0.18);*/
}
.brand .mark-lab{
  width: 88px;
  height: 55px;
  background-image: url('../img/logo_DominguezLab_bigger.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /*box-shadow: 0 8px 20px rgba(0,0,0,0.18);*/
}
.brand .title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand .title small{
  font-weight:600;
  letter-spacing:0.9px;
  opacity:0.85;
  font-size:12px;
  text-transform:uppercase;
}

.navlinks{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav-item, .navlinks > a{
  color:#fff;
  opacity:0.92;
  font-size:13px;
  letter-spacing:1px;
  text-transform:uppercase;
  padding:10px 10px;
  border-radius: 12px;
  white-space:nowrap;
}

.navlinks > a:hover{ text-decoration:none; background: rgba(255,255,255,0.14); }
.navlinks > a.active{ background: rgba(255,255,255,0.18); text-decoration:none; }

/* Dropdown (desktop) */
.dropdown{
  position: relative;
}
.dropdown > button{
  appearance:none;
  border:0;
  background:transparent;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
}
.dropdown > button:hover{ background: rgba(255,255,255,0.14); }
.dropdown > button.active{ background: rgba(255,255,255,0.18); }

.caret{
  display:inline-block;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255,255,255,0.85);
  transform: translateY(1px);
}

.dropdown-menu{
  position:absolute;
  right:0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #081f38;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  display:none;
}
.dropdown-menu a{
  display:block;
  padding: 10px 12px;
  border-radius: 12px;
  color:#fff;
  opacity:0.94;
  font-size:13px;
  letter-spacing:1px;
  text-transform:uppercase;
}
.dropdown-menu a:hover{ background: rgba(255,255,255,0.14); text-decoration:none; }
.dropdown-menu a.active{ background: rgba(255,255,255,0.18); }
.dropdown-menu a.disabled{
  opacity:0.45;
  pointer-events:none;
  touch-action: none;
  -webkit-touch-callout: none; /* Disables the long-press preview menu */
  user-select: none; /* Prevents Live Text from highlighting it */
  color: gray;
  text-decoration: none; /* Optional: removes the underline */
}

.dropdown:focus-within .dropdown-menu,
.dropdown[data-open="true"] .dropdown-menu{
  display:block;
}

/* Mobile menu button */
.menu-btn{
  display:none;
  background: transparent;
  border: 0;
  padding: 10px;
  border-radius: 12px;
  cursor:pointer;
}
.menu-btn:focus{ outline: 2px solid rgba(255,255,255,0.45); outline-offset: 2px; }

.hamburger{
  width: 26px;
  height: 18px;
  position: relative;
}
.hamburger span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background:#fff;
  border-radius:2px;
  transition: transform .18s ease, top .18s ease, opacity .18s ease;
}
.hamburger span:nth-child(1){ top:2px; }
.hamburger span:nth-child(2){ top:8px; }
.hamburger span:nth-child(3){ top:14px; }

.site-header[data-mobile-open="true"] .hamburger span:nth-child(1){ top:8px; transform: rotate(45deg); }
.site-header[data-mobile-open="true"] .hamburger span:nth-child(2){ opacity:0; }
.site-header[data-mobile-open="true"] .hamburger span:nth-child(3){ top:8px; transform: rotate(-45deg); }

.mobile-panel{
  display:none;
  background: rgba(7,41,77,0.98);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px 0 16px;
}
.mobile-panel a{
  display:block;
  color:#fff;
  padding: 12px 20px;
  opacity:0.94;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:13px;
  border-radius: 12px;
}
.mobile-panel a:hover{ background: rgba(255,255,255,0.14); text-decoration:none; }
.mobile-panel a.active{ background: rgba(255,255,255,0.18); }
.mobile-panel .subhead{
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 14px 20px 6px;
  text-transform:uppercase;
}
.mobile-panel .subhead a.disabled{
  opacity:0.45;
  pointer-events:none;
  touch-action: none;
  -webkit-touch-callout: none; /* Disables the long-press preview menu */
  user-select: none; /* Prevents Live Text from highlighting it */
  color: gray;
  text-decoration: none; /* Optional: removes the underline */
}

/* Hero */
.hero{
  padding: 30px 0 34px;
  /*background:
    radial-gradient(900px 340px at 18% 0%, rgba(69,208,125,0.26), transparent 60%),
    radial-gradient(900px 340px at 80% 0%, rgba(47,168,255,0.26), transparent 60%);*/
}
.hero h1{
  margin:0;
  font-size: 46px;
  line-height:1.04;
  letter-spacing:-0.8px;
}
.hero p{
  margin: 14px 0 0;
  max-width: 80ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 18px;
}
.pill{
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7,41,77,0.06);
  border: 1px solid rgba(7,41,77,0.10);
}

/* Content */
.section{ padding: 28px 0 52px; }
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card h2{
  margin:0 0 8px;
  font-size: 18px;
}
.card p{
  margin:0rem 0;
  color: var(--muted);
  line-height: 1.7;
}
.card ul{ margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card li{ margin: 6px 0; }

.page{
  padding: 28px 0 60px;
  background:
    radial-gradient(900px 340px at 18% 0%, rgba(69,208,125,0.26), transparent 60%),
    radial-gradient(900px 340px at 80% 0%, rgba(47,168,255,0.26), transparent 60%);
}
.page h1{ margin: 0 0 10px; font-size: 34px; letter-spacing:-0.4px; }
.page h2{ margin: 18px 0 10px; font-size: 20px; }
.page p{ margin: 0 0 12px; color: var(--muted); max-width: 85ch; }

.kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.kv b{ color: #25303a; }
.kv div{ color: var(--muted); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background:#fff;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  vertical-align:top;
}
.table th{ background: #fbfbfc; font-size: 13px; text-transform:uppercase; letter-spacing: 1px; color: #3b4450; }
.table tr:last-child td{ border-bottom:0; }
.img {
  border-radius: 15px; /* Applies a 15px radius to all four corners */
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.thumb{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--border);
  background:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  cursor:pointer;
}
.thumb img{
  width:100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
.thumb .cap{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

/* Lightbox */
#lightbox{
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 200;
  padding: 18px;
}
.lightbox[data-open="true"]{ display:flex; }
.lightbox-inner{
  width: min(1100px, 96vw);
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  overflow:hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  /* max-height: 92vh; */
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
}
.lightbox-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 10; /* 2 */
}
.lightbox-title{
  font-size: 13px;
  letter-spacing:1px;
  text-transform:uppercase;
  opacity:0.9;
}
.lb-btn{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color:#fff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
}
.lb-btn:hover{ background: rgba(255,255,255,0.10); }
.lightbox-img{
  width:100%;
  max-height: 72vh;
  object-fit: contain;
  display:block;
  background: #0b0f14;
  flex: 0 0 auto;
}
.lightbox-cap{
  padding: 12px 14px 16px;
  color: rgba(255,255,255,0.78);
  line-height:1.6;
  overflow: auto;            /* caption can scroll if long */
  -webkit-overflow-scrolling: touch;
}
.lb-content{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.footer{
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .thumb img{ height: 200px; }
}

@media (max-width: 900px){
  .navlinks{ display:none; }
  .menu-btn{ display:inline-flex; align-items:center; justify-content:center; }
  .site-header[data-mobile-open="true"] .mobile-panel{ display:block; }
  .dropdown-menu{ display:none !important; }
}

@media (max-width: 520px){
  .hero{ padding: 48px 0 28px; }
  .hero h1{ font-size: 32px; }
  .hero p{ font-size: 16px; }
  .gallery{ grid-template-columns: 1fr; }
  .thumb img{ height: 220px; }
  .kv{ grid-template-columns: 1fr; }
}

/* Publications (MyNCBI render) */
.pubs-item{
  font-size: 14.5px;          /* slightly smaller */
  line-height: 1.55;

  padding: 14px 0 18px;       /* space inside each entry */
  margin: 0 0 18px;           /* blank line between entries */
  border-bottom: 1px solid rgba(0,0,0,0.10);  /* separator bar */
}

.pubs-item:last-child{
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,0.10);  /* separator bar */
}

.pubs-authors{
  color: var(--muted);
  margin-bottom: 6px;
}

.pubs-title{
  display: inline-block;
  font-weight: 650;
  margin: 0 0 6px;
  text-decoration: none;
}
.pubs-title:hover{ text-decoration: underline; }

.pubs-meta{
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 6px;
}

.pubs-links{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pubs-links a{
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.03);
  text-decoration: none;
}
.pubs-links a:hover{
  background: rgba(0,0,0,0.06);
}

