/* =================================================================
   NSSL site refresh (2026-11)
   Loaded after bootstrap + theme.css on every top-level page.
   Keeps the existing layout; tidies type, color, spacing and shared
   header / footer / publications styling in one place.
   ================================================================= */

:root {
  --vt-maroon: #861f41;
  --vt-maroon-dark: #6b1534;
  --vt-orange: #e5751f;
  --ink: #1f2328;
  --ink-soft: #4b5563;
  --ink-muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --surface-alt: #f7f7f8;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, .10);
}

/* ---------- base typography ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
p, li, td, dd { line-height: 1.65; }
p[style*="justify"], .justify, [align="justify"] { text-align: left !important; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
a { color: var(--vt-maroon); transition: color .15s ease; }
a:hover, a:focus { color: var(--vt-maroon-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--vt-orange);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
hr { border-top-color: var(--line); border-bottom: 0; }
::selection { background: rgba(134, 31, 65, .15); }

/* ---------- header ---------- */
.jumbotron.subhead { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
.jumbotron h1 { color: #fff; font-weight: 700; letter-spacing: -.015em; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.15; }
.jumbotron .lead { color: rgba(255, 255, 255, .8); font-weight: 400; letter-spacing: .04em; }
.header-logo-left, .header-logo-right,
.footer-logo-left, .footer-logo-right { display: flex; align-items: center; justify-content: center; }
.jumbotron .logo { max-height: 96px; width: auto; }
#footer .logo { max-height: 72px; width: auto; opacity: .9; }

/* ---------- navbar: flatten the Bootstrap 2 gloss ---------- */
.navbar .navbar-inner {
  background: var(--surface);
  background-image: none;
  filter: none;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}
.navbar .nav li a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  text-shadow: none;
  border-left: 0;
  border-right: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.navbar .nav li a:hover, .navbar .nav li a:focus {
  color: var(--vt-maroon);
  background: var(--surface-alt);
}
.navbar .nav .active a, .navbar .nav .active a:hover, .navbar .nav .active a:focus {
  color: var(--vt-maroon);
  background: var(--surface);
  box-shadow: inset 0 -3px 0 var(--vt-maroon);
}
.navbar .nav li:first-child a { border-radius: 0 0 0 var(--radius); }
.navbar .nav li:last-child a { border-radius: 0 0 var(--radius) 0; }

/* ---------- section headers ---------- */
.page-header { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 30px 0 22px; }
.page-header h3 { font-size: 26px; margin: 0; }
.page-intro { color: var(--ink-muted); margin: 6px 0 0; font-size: 15px; }

/* ---------- side navigation (Team / Research) ---------- */
.bs-docs-sidenav { border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.bs-docs-sidenav > li > a { border-color: var(--line); color: var(--ink-soft); font-size: 14px; }
.bs-docs-sidenav > li > a:hover { color: var(--vt-maroon); background: var(--surface-alt); }
.bs-docs-sidenav > .active > a,
.bs-docs-sidenav > .active > a:hover,
.bs-docs-sidenav > .active > a:focus {
  background: var(--vt-maroon);
  color: #fff;
  text-shadow: none;
  box-shadow: none;
}

/* ---------- buttons ---------- */
.btn-primary, .btn-info {
  background: var(--vt-maroon);
  background-image: none;
  border: 1px solid var(--vt-maroon);
  text-shadow: none;
  box-shadow: none;
  border-radius: 6px;
}
.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus {
  background: var(--vt-maroon-dark);
  border-color: var(--vt-maroon-dark);
}

/* ---------- cards & media ---------- */
.feature-item, .thumbnail, .news-item, .person-card {
  border-radius: var(--radius);
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-item:hover { box-shadow: var(--shadow-md); }
.thumbnail { border-color: var(--line); box-shadow: none; }
.img-rounded, .img-polaroid { border-radius: 8px; }

/* ---------- footer ---------- */
#footer {
  background: #111214;
  color: #c9cdd2;
  margin-top: 60px;
  padding: 40px 0 28px;
  border-top: 4px solid var(--vt-maroon);
}
#footer p, #footer address { color: #a9aeb5; font-size: 13px; line-height: 1.6; }
.footer-nav { margin-bottom: 18px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a { color: #fff; font-size: 14px; text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus { color: #f3c6d4; text-decoration: underline; }
.footer-map { color: #fff; font-size: 13px; text-decoration: underline; }
.footer-map:hover { color: #f3c6d4; }
.footer-copyright { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-copyright p { font-size: 12px; color: #80868e; margin: 0; }

/* ---------- publications ---------- */
.pubs-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(6px);
  padding: 14px 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.pubs-search {
  width: 100%;
  -webkit-box-sizing: border-box !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  height: 40px !important;
  padding: 8px 14px !important;
  font-size: 15px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  margin-bottom: 10px !important;
}
.pubs-search:focus { border-color: var(--vt-maroon) !important; }
.pubs-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pub-filter {
  border: 1px solid #d1d5db;
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.6;
}
.pub-filter span { color: var(--ink-muted); font-weight: 500; margin-left: 2px; }
.pub-filter:hover { border-color: var(--vt-maroon); color: var(--vt-maroon); }
.pub-filter.active { background: var(--vt-maroon); border-color: var(--vt-maroon); color: #fff; }
.pub-filter.active span { color: rgba(255, 255, 255, .8); }
.pubs-years { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.pubs-years a { color: var(--ink-muted); font-weight: 600; }
.pubs-years a:hover { color: var(--vt-maroon); }

.pub-year { scroll-margin-top: 150px; }
.pub-year h2 {
  font-size: 22px;
  color: var(--vt-maroon);
  margin: 28px 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { padding: 14px 0 14px; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub-type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  background: #f3f4f6;
  color: var(--ink-soft);
}
.pub-type-journal { background: #eef2ff; color: #3730a3; }
.pub-type-conference { background: #fdf2f5; color: var(--vt-maroon); }
.pub-type-chapter, .pub-type-book { background: #ecfdf5; color: #065f46; }
.pub-type-preprint { background: #fff7ed; color: #9a3412; }
.pub-title { font-size: 16.5px; font-weight: 650; line-height: 1.4; margin-bottom: 3px; }
.pub-title > a:first-child { color: var(--ink); }
.pub-title > a:first-child:hover { color: var(--vt-maroon); text-decoration: underline; }
.pub-link {
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  vertical-align: 2px;
}
.pub-link:hover { text-decoration: none; }
.pub-authors { color: var(--ink-soft); font-size: 14.5px; }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-venue { color: var(--ink-muted); font-size: 14px; font-style: italic; }
.pubs-empty { padding: 30px 0; color: var(--ink-muted); text-align: center; }
.pubs-updated { margin-top: 24px; font-size: 13px; color: var(--ink-muted); }
.pubs-note {
  margin: 30px 0 0;
  padding: 16px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.pubs-note p { margin: 0; color: var(--ink-soft); }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  body { font-size: 15px; padding-left: 12px; padding-right: 12px; }
  .jumbotron h1 { font-size: 26px; line-height: 1.2; }
  .jumbotron .logo { max-height: 64px; }
  .page-header h3 { font-size: 22px; }
  .pubs-toolbar { position: static; }
  .pub-title { font-size: 15.5px; }
  .footer-nav ul { gap: 6px 16px; }
  #footer .logo { max-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- layout experiment: sticky nav + research banners ---------- */
.masthead { position: sticky; top: 0; z-index: 30; }
.masthead .navbar { margin-bottom: 0; }
.pubs-toolbar, .team-tabs { top: 46px !important; }
.pub-year { scroll-margin-top: 200px; }
.team-section { scroll-margin-top: 110px !important; }
.jumbotron { padding: 30px 0 26px; }
.area-banner { display: block; max-width: 640px; margin: 4px auto 20px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.area-banner img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; transition: transform .4s ease; }
.area-banner:hover img { transform: scale(1.02); }
@media (max-width: 767px) {
  .masthead { position: static; }
  .pubs-toolbar, .team-tabs { top: 0 !important; }
}
.bs-docs-sidenav.affix { top: 62px; }
.back-link { display: inline-block; font-size: 13.5px; font-weight: 600; margin: 4px 0 6px; }
.area-hero { max-width: 760px; box-shadow: var(--shadow-md); margin-bottom: 26px; }

/* ---------- larger header / footer logos (flex row instead of fixed grid columns) ---------- */
@media (min-width: 768px) {
  .jumbotron .row-fluid,
  #footer .container > .row-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .jumbotron .row-fluid::before, .jumbotron .row-fluid::after,
  #footer .container > .row-fluid::before, #footer .container > .row-fluid::after { display: none; }
  .jumbotron .row-fluid > [class*="span"],
  #footer .container > .row-fluid > [class*="span"] {
    float: none;
    margin-left: 0;
    width: auto;
  }
  .header-logo-left, .header-logo-right,
  .footer-logo-left, .footer-logo-right { flex: 0 0 auto; padding: 0 18px; }
  .header-text-center, .footer-text-center { flex: 1 1 auto; min-width: 0; }

  .jumbotron .logo { max-height: none; height: 132px; width: auto; }
  .jumbotron .vt-logo { height: 100px; }
  #footer .logo { max-height: none; height: 104px; width: auto; }
  #footer .vt-logo { height: 80px; }
  .jumbotron h1 { font-size: clamp(26px, 3.3vw, 40px); }
}
@media (max-width: 767px) {
  .jumbotron .logo { max-height: none; height: 84px; width: auto; }
  .jumbotron .vt-logo { height: 64px; }
  #footer .logo { max-height: none; height: 76px; width: auto; }
  #footer .vt-logo { height: 58px; }
}
