body {
  background-color: #e2e2e2;
  text-align: center;
  font-family: "bitstream vera sans", arial, sans-serif;
  font-size: 90%;
  padding: 10px;
}

a:link, a:visited, a:active, a:hover { text-decoration: none; color: #1010b5; }
a:hover { text-decoration: underline; }

.pagewidth { margin: auto; width: 940px; }
.main { padding-left: 40px; padding-right: 40px; padding-top: 25px; padding-bottom: 30px; background-color: #ffffff; }

.imagediv { padding-bottom: 1px; }

.menuitem { float: center; margin-bottom: 20px; border-bottom: 1px solid #525252; }
.menuitemlink { width: 140px; padding-top: 3px; padding-bottom: 3px; background-color: #ffffff; cursor: pointer; font-weight: bold; color: #000000; display: inline-block; }
.menuitemlink:hover { background-color: #dfdfdf; }
.menuitemlink:active { background-color: #afafaf; }

.inner, .tl, .tr, .br, .bl, .outer { width: 100%; }
.outer { background-color: #ffffff; }

.sectitle, .secbody { text-align: justify; padding-top: 10px; padding-bottom: 0px; }
.secend { clear: left; padding: 3px; }
.sectitle { border-bottom: 1px solid #525252; }
.beforesec, .aftersec { clear: left; height: 0px; width: 100%; }

ul.person { float: left; margin: 0; padding: 0 0 10px 10px; list-style: none; }
li.person { float: left; width: 325px; margin: 0; padding-right: 10px; padding-bottom: 1px; }

ul.project { text-align: left; float: left; list-style: none; margin: 0; padding: 0; }
li.project { float: left; width: 335px; height: 73px; overflow: auto; margin: 0; padding-right: 10px; padding-bottom: 1px; }

h1, h2, h3 { clear: left; padding: 0; margin: 0; }
h1.sectiontitle { font-size: 120%; }
h2, h3 { font-size: 100%; }

table.facetbox { width: 100%; }
td.facetbox { width: 30%; vertical-align: top; text-align: left; padding-left: 5px; padding-right: 5px; }

.readmore { margin-top: 10px; clear: left; }
.publication { font-size: 14px; text-indent: 0em; padding-bottom: 10px; }
li.minipub { margin-left: -1em; text-indent: 0em; padding-bottom: 10px; }
.switchversion { margin-top:5px; margin-bottom:5px; font-size: 90%; }
.exhibit-collectionView-group { font-size: 11px; }
.exhibit-tileView-body { margin-left: -1em; }
span.exhibit-collectionSummaryWidget-count { font-size: 129%;  font-weight: bold; }
.credits { font-size: 80%; margin-top: 15px; font-style: italic; }

#image_window { width: 700px; height: 158px; overflow: hidden; position: relative; margin: 0 auto; }
.people_image { position: absolute; top: 0px; left: 0px; animation-name: people_image; animation-duration: 20s; animation-iteration-count: infinite; animation-timing-function: linear; width: 700px; height: 158px; object-fit: cover; }
@keyframes people_image { 0% {opacity: 1;} 45% {opacity: 1;} 50% {opacity: 0;} 95% {opacity: 0;} 100% {opacity: 1;} }

/* === Small utilities === */
.nav { display:flex; gap:10px; justify-content:center; margin-bottom: 10px; flex-wrap: wrap; }
.nav a { padding: 6px 10px; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hidden { display:none !important; }
.sticky { position: sticky; top: 10px; }

/* Mobile: stack width */
@media (max-width: 940px) {
  .pagewidth { width: auto; }
  #image_window, .people_image { width: 100%; height: auto; }
  li.person, li.project { width: 100%; height: auto; }
  td.facetbox { width: 100%; display:block; }
}

.menuitem {
  display: flex;              /* put items side by side */
  gap: 20px;                  /* spacing between items */
  border-bottom: 2px solid #525252; /* line underneath the whole bar */
  padding-bottom: 6px;        /* space before the line */
  margin-bottom: 20px;
}

.menuitemlink {
  display: inline-block;      /* keep links inline */
  padding: 6px 0;
  font-weight: bold;
  color: #000000;
  background: none;           /* remove background hover bars */
}

.menuitemlink:hover {
  text-decoration: underline; /* simple underline hover */
  background: none;
}
.secbody {
        padding-left: 40px; padding-right: 40px; 
}
/* --- Small left-aligned group headers with a bar --- */
.grouphead {

  /* keep “small” look to match existing h2 font-size */
  font-size: 120%;
  font-weight: bold;
  border-bottom: 2px solid #525252;  /* same color/weight as nav bar */
  margin: auto
}

#pubs-count {
  font-weight: normal;
}



/* When a device is narrow, keep the spacing sensible */
@media (max-width: 820px) {
  .imagediv { margin-bottom: 8px; }
  #image_window { margin: 8px auto 12px; }
}


/* --- Rotator block (responsive, no extra whitespace) --- */
.photo-rotator {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 700 / 158;   /* keeps the same look as old banner */
  margin: 10px auto 16px;
  overflow: hidden;
  line-height: 0;            /* kill inline-gap whitespace */
  background: #f2f2f2;       /* subtle placeholder while images load */
  border-radius: 4px;
}

/* Each slide sits on top of each other and fades via opacity */
.photo-rotator .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* fill without distorting */
  opacity: 0;
  animation-name: pr-fadecycle;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  /* duration & delay are set inline by JS for precise staggering */
}

.photo-rotator .slide.first {
  opacity: 1; /* visible immediately */
}

/* Keyframes define a visible window per image with a crossfade */
@keyframes pr-fadecycle {
  0% { opacity: 0; }
  5% { opacity: 1; }    /* fade in */
  95% { opacity: 1; }   /* stay visible */
  100% { opacity: 0; }  /* fade out */
}




/* Projects list */
.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 14px;              /* grid gap provided by .grid2 too */
}

.project-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: left;
}

.project-title {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.project-desc {
  margin: 0;
  line-height: 1.35;
  color: #333;
}

/* Mobile: fall back to one column (your .grid2 already handles, but just in case) */
@media (max-width: 820px) {
  .project-list { display: grid; grid-template-columns: 1fr; }
}



/* Publications */
.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 0 10px 0;
  text-align: left;
  background: #fff;
}

.pub-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.pub-authors,
.pub-venue,
.pub-meta {
  margin: 2px 0;
  line-height: 1.35;
}

.pub-action {
  display: inline-block;
  margin-right: 8px;
}


.pub-price {
  background-color: #fff8c6;   /* soft yellow background */
  padding: 0px 0px;
  border-radius: 4px;
  display: inline-block;       /* keep it snug */
  margin-top: 4px;
  font-weight: 600;            /* emphasize text */
}


/* Filters wrapper kept left-aligned and compact */
.pubs-filters { text-align: left; }
.filter-row { margin: 6px 0 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { padding: 3px 10px; border: 1px solid #bbb; background: #f7f7f7; border-radius: 4px; cursor: pointer; }
.btn:hover { background: #eee; }

.filters-interactive.hidden { display: none !important; }
.filter-block { margin-bottom: 10px; }
.filter-label { font-weight: bold; margin-bottom: 6px; }
.facet-sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 90%;
  margin-bottom: 6px;
}
.facet-sort-control select {
  padding: 4px 6px;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
}

/* YEAR GRID: 4 columns, compact; cap height ~10 rows then scroll */
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 260px;        /* ~10 rows @ ~26px each */
  overflow: auto;
  padding-right: 4px;       /* room for scrollbar */
}
.year-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 3px 0; border: 1px solid #bbb; background: #fff; border-radius: 4px; cursor: pointer;
  font-size: 90%;
}
.year-btn .year-badge { opacity: 0.7; }
.year-btn.active { background: #1010b5; color: #fff; border-color: #1010b5; }

/* Three facet columns; stack on mobile */
.filter-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
@media (max-width: 820px) { .filter-grid { grid-template-columns: 1fr; } }

/* Sliding (range-controlled) facet lists; show ~5 items height */
.facet-list { border: 1px solid #ddd; border-radius: 6px; padding: 6px; }
.facet-scroll { max-height: 7.5em; overflow: auto; }
.facet-item { display: block; font-size: 90%; margin: 2px 0; white-space: nowrap; }
.facet-item.disabled { opacity: 0.45; }
.facet-item input { margin-right: 6px; }
.facet-slider { width: 100%; margin-top: 6px; }

/* Title search */
.text-input { width: 100%; padding: 6px; border: 1px solid #bbb; border-radius: 4px; }

/* Publication cards (reuse) */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item { border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; margin: 0 0 10px 0; text-align: left; background: #fff; }
.pub-title { font-weight: 700; margin-bottom: 4px; }
.pub-authors, .pub-venue, .pub-meta, .pub-price { margin: 2px 0; line-height: 1.35; }
.pub-action { display: inline-block; margin-right: 8px; }

/* Yellow highlight for awards/prices */
.pub-price { background: #fff8c6; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; font-weight: 600; }


/* Facet list layout (compact) */
.facet-list { border: 1px solid #ddd; border-radius: 6px; padding: 6px; }
.facet-scroll { max-height: 7.5em; overflow: auto; }   /* ~5 rows at 1.5em each */
.facet-items { display: block; }
.facet-item { display: block; font-size: 90%; line-height: 1.5; margin: 0; white-space: nowrap; }
.facet-item input { margin-right: 6px; vertical-align: middle; }
.facet-item.disabled { opacity: 0.45; }
.facet-text { vertical-align: middle; }

.facet-slider { width: 100%; margin-top: 6px; }
/* Keep 3 columns but prevent overflow */
.filter-grid { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 10px; 
}

/* Make facet rows flex so text can truncate */
.facet-item { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  font-size: 90%; 
  line-height: 1.5; 
  margin: 0; 
  white-space: nowrap; 
  overflow: hidden; 
}
.facet-item input { flex: 0 0 auto; }
.facet-text { 
  flex: 1 1 auto; 
  min-width: 0;            /* allow ellipsis */
  overflow: hidden; 
  text-overflow: ellipsis; 
}

/* Ensure the scroll box itself never pushes layout wider */
.facet-list { 
  border: 1px solid #ddd; 
  border-radius: 6px; 
  padding: 6px; 
  max-width: 100%; 
  overflow: hidden; 
}
.facet-scroll { 
  max-height: 7.5em; 
  overflow: auto; 
}
/* Compact, scroll-only facet lists (no horizontal slider) */
.facet-list { border: 1px solid #ddd; border-radius: 6px; padding: 6px; max-width: 100%; overflow: hidden; }
.facet-scroll { max-height: 7.5em; overflow: auto; }
.facet-items { display: block; }
.facet-item { display: flex; align-items: center; gap: 6px; font-size: 120%; line-height: 1.5; margin: 0; white-space: nowrap; overflow: hidden; }
.facet-item input { flex: 0 0 auto; margin-right: 6px; }
.facet-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.facet-item.disabled { opacity: 0.45; }

.sort-multilevel { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sort-label { font-weight:600; margin-right:2px; }
.sort-multilevel select { padding:2px 4px; }
