/* =====================================================================
   Houston Lab — People & Publications page system
   Loaded after the Webflow stylesheets. Additive: Webflow globals untouched.
   Language: technical index. Monospace for numbers/labels, square corners,
   1px rules instead of shadows, one accent (the site navy).
   ===================================================================== */

:root {
  --hl-ink:      #1b2430;
  --hl-graphite: #3f454d;
  --hl-steel:    #5c636d;
  --hl-mute:     #8a919b;
  --hl-navy:     #003366;
  --hl-navy-2:   #0b4a8b;
  --hl-rule:     #d9dde3;
  --hl-rule-2:   #eceef2;
  --hl-panel:    #f5f7fa;
  --hl-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --hl-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hl-head: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- hero subtitle (under the existing OUR TEAM / PUBLICATIONS h1) ---------- */
.hl-hero-sub {
  margin: 6px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, .72);
  font-family: var(--hl-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- shared primitives ---------- */
.hl-kicker {
  margin: 0 0 10px;
  color: var(--hl-steel);
  font-family: var(--hl-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hl-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 64px 0 28px;
}
.hl-section-head:first-of-type { margin-top: 44px; }
.hl-section-head .num {
  color: var(--hl-navy);
  font-family: var(--hl-mono);
  font-size: 13px;
  letter-spacing: .08em;
}
.hl-section-head .ttl {
  margin: 0;
  color: var(--hl-ink);
  font-family: var(--hl-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.hl-section-head .rule {
  flex: 1 1 auto;
  height: 1px;
  background: var(--hl-rule);
  transform: translateY(-4px);
}
.hl-section-head .cnt {
  color: var(--hl-mute);
  font-family: var(--hl-mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.hl-tags {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hl-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--hl-rule);
  border-radius: 0;
  color: var(--hl-graphite);
  font-family: var(--hl-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.hl-card:hover .hl-tag { border-color: #b9c3cf; }

/* ---------- portraits: square, viewfinder corner brackets ---------- */
.hl-portrait {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 0 16px;
  padding: 6px;                     /* space for the brackets */
}
.hl-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  background: var(--hl-panel);
  transition: filter .35s ease;
}
/* brackets: top-left and bottom-right L shapes */
.hl-portrait::before,
.hl-portrait::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--hl-navy);
  transition: width .2s ease, height .2s ease;
}
.hl-portrait::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hl-portrait::after  { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hl-card:hover .hl-portrait::before,
.hl-card:hover .hl-portrait::after,
.hl-pi-card:hover .hl-portrait::before,
.hl-pi-card:hover .hl-portrait::after { width: 26px; height: 26px; }
/* monochrome at rest, colour on hover — unifies very different source photos.
   Remove the `portraits-mono` class from <body> to show colour always. */
.portraits-mono .hl-portrait img { filter: grayscale(1) contrast(1.04); }
.portraits-mono .hl-card:hover .hl-portrait img,
.portraits-mono .hl-pi-card:hover .hl-portrait img { filter: none; }

/* ---------- people: cards ---------- */
.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 48px;
}
.hl-card {
  padding-top: 18px;
  border-top: 1px solid var(--hl-rule);
  transition: border-color .2s ease;
}
.hl-card:hover { border-top-color: var(--hl-navy); }
.hl-name {
  margin: 0 0 4px;
  color: var(--hl-ink);
  font-family: var(--hl-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .005em;
}
.hl-role {
  margin: 0;
  color: var(--hl-steel);
  font-family: var(--hl-sans);
  font-size: 13.5px;
  line-height: 1.5;
}
.hl-role span { display: block; }
.hl-role .status {
  margin-top: 3px;
  color: var(--hl-navy);
  font-family: var(--hl-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hl-bio {
  margin: 14px 0 0;
  max-width: 62ch;
  color: var(--hl-graphite);
  font-family: var(--hl-sans);
  font-size: 14px;
  line-height: 1.65;
}
.hl-card--wide { grid-column: 1 / -1; max-width: 640px; }

/* ---------- people: principal investigator block ---------- */
.hl-pi {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  column-gap: 48px;
  padding-top: 6px;
}
.hl-pi-card { }
.hl-pi-card .hl-portrait { width: 156px; height: 156px; }
.hl-timeline {
  width: 100%;
  margin: 0 0 30px;
  border-collapse: collapse;
  font-family: var(--hl-sans);
  font-size: 14px;
  line-height: 1.5;
}
.hl-timeline td {
  padding: 8px 0;
  border-bottom: 1px solid var(--hl-rule-2);
  vertical-align: top;
}
.hl-timeline td.yr {
  width: 118px;
  padding-right: 16px;
  color: var(--hl-navy);
  font-family: var(--hl-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.hl-timeline td.what { color: var(--hl-graphite); }
.hl-timeline tr.now td.what { color: var(--hl-ink); font-weight: 600; }
.hl-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--hl-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--hl-graphite);
}
.hl-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid var(--hl-rule-2);
}
.hl-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--hl-navy);
}

/* ---------- publications ---------- */
.hl-pubs {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 44px;
  margin-top: 44px;
}
.hl-rail {
  position: sticky;
  top: 24px;
  align-self: start;
  min-width: 0;
}
.hl-years, .hl-pubs-main { min-width: 0; }
.hl-years {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--hl-rule);
}
.hl-years a {
  display: block;
  margin-left: -1px;
  padding: 3px 0 3px 12px;
  border-left: 2px solid transparent;
  color: var(--hl-steel);
  font-family: var(--hl-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.hl-years a:hover { color: var(--hl-navy); }
.hl-years a.is-active { color: var(--hl-navy); border-left-color: var(--hl-navy); }

.hl-pubs-summary {
  margin: 0 0 8px;
  color: var(--hl-mute);
  font-family: var(--hl-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hl-year {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 44px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hl-navy);
  scroll-margin-top: 28px;
}
.hl-year:first-of-type { margin-top: 18px; }
.hl-year h2 {
  margin: 0;
  color: var(--hl-navy);
  font-family: var(--hl-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
}
.hl-year .cnt {
  color: var(--hl-mute);
  font-family: var(--hl-mono);
  font-size: 12px;
  letter-spacing: .08em;
}
.hl-publist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hl-pub {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--hl-rule-2);
}
.hl-pub:last-child { border-bottom: 0; }
.hl-pub-idx {
  padding-top: 4px;
  color: var(--hl-mute);
  font-family: var(--hl-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.hl-pub-title {
  display: block;
  margin: 0 0 6px;
  color: var(--hl-ink);
  font-family: var(--hl-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.42;
  text-decoration: none;
  transition: color .15s ease;
}
a.hl-pub-title:hover { color: var(--hl-navy-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hl-pub-authors {
  margin: 0 0 6px;
  color: var(--hl-graphite);
  font-family: var(--hl-sans);
  font-size: 13.5px;
  line-height: 1.55;
}
.hl-pub-authors strong { color: var(--hl-ink); font-weight: 600; }
.hl-pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--hl-steel);
  font-family: var(--hl-mono);
  font-size: 12px;
  line-height: 1.5;
}
.hl-pub-link {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--hl-rule);
  color: var(--hl-navy);
  font-family: var(--hl-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hl-pub-link:hover { background: var(--hl-navy); border-color: var(--hl-navy); color: #fff; }

/* ---------- responsive ---------- */
@media screen and (max-width: 991px) {
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .hl-pi { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .hl-pubs { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .hl-people-wrap { padding-left: 20px; padding-right: 20px; }
  .hl-rail {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -20px 6px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid var(--hl-rule);
  }
  .hl-rail .hl-kicker { display: none; }
  .hl-years { display: flex; gap: 6px; overflow-x: auto; border-left: 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hl-years::-webkit-scrollbar { display: none; }
  .hl-years a { margin: 0; padding: 4px 9px; border: 1px solid var(--hl-rule); border-left: 1px solid var(--hl-rule); white-space: nowrap; }
  .hl-years a.is-active { border-color: var(--hl-navy); }
}
@media screen and (max-width: 479px) {
  .hl-grid { grid-template-columns: minmax(0, 1fr); }
  .hl-hero-sub { font-size: 10px; letter-spacing: .12em; line-height: 1.6; padding: 0 16px; }
  .hl-section-head { flex-wrap: wrap; gap: 8px 12px; }
  .hl-section-head .rule { order: 5; flex-basis: 100%; transform: none; }
  .hl-pub { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .hl-pub-idx { padding-top: 0; }
  .hl-pub-title { font-size: 16px; }
  .hl-timeline td.yr { width: 96px; }
}
