/* css styles */

.navbar-brand img {
  max-height: 40px !important;  /* Increase size (default is ~30px) */
  height: auto;
}

/* styles for papers page */
.paper-row {
  display: grid;
  grid-template-columns: 64px 1fr;   /* left gutter for year */
  column-gap: 12px;
  align-items: start;
}

.paper-year {
  width: 100px;
  color: #6c757d;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.25rem;
}


.paper-title a.paper-link {
  font-weight: 500;
  font-size: 1.2rem;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.paper-row + .paper-row { margin-top: 22px; }

.paper-title a.paper-link:hover { text-decoration: underline; }

.paper-cite {
  margin-top: .2rem;
  color: #495057;
  font-size: 0.8rem;
}

.paper-icons a {
  margin-left: .45rem;
  color: #6c757d;
}

.paper-icons a:hover { color: #0d6efd; }


.icon-link {
  margin-left: 0.5rem;
  color: #6c757d;
  font-size: 1.2rem;
}

.icon-link:hover {
  color: #0d6efd;
  transform: scale(1.1);
}

/* --- Hover overlay cards --- */
/* Each card same aspect and aligned nicely */
.hover-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;         /* optional */
  aspect-ratio: 16 / 9;       /* all images uniform (change to 4/3 or 1/1 if preferred) */
}

/* Image fills the tile area */
.hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* fills tile evenly */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* On hover: zoom + dim */
.hover-card:hover img {
  transform: scale(1.05);
  filter: brightness(60%);
}

.hover-card a { display:block; }           /* make the linked image fill the card */
.hover-card::after { pointer-events:none; }/* let clicks pass through the overlay */

/* Overlay text on hover */
.hover-card::after {
  content: attr(data-caption);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1em;
}

/* Fade text in */
.hover-card:hover::after {
  opacity: 1;
}

/* center helper */
.center { text-align: center; }

/* hover swap */
.hover-wrap { position: relative; display: inline-block; line-height: 0; }
.hover-wrap img { display: block; height: auto; }
/* the top image (second one) sits on top and fades in on hover */
.hover-wrap img.swap-on-hover {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .2s ease;
}
.hover-wrap:hover img.swap-on-hover,
.hover-wrap:focus-within img.swap-on-hover { opacity: 1; }

/* === Category Pills ===
   Uses CSS variable --cat provided inline for color
*/
.cat-tag {
  --cat: #6c757d;            /* fallback */
  font-size: 0.8rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, border-style .2s, filter .2s;
  color: var(--cat);
  background: #fff;
  border: 1px dashed var(--cat);   /* inactive look */
  user-select: none;
}
.cat-tag:hover { filter: brightness(90%); }

.cat-tag.active {
  background: var(--cat);          /* active = filled */
  color: #fff;
  border: 1px solid var(--cat);
}

/* top bar “show all” pill just uses fallback color; no special casing needed */
.cat-all { /* optional tweaks if you want it subtler by default */
  /* border-style: dashed; (already dashed from base) */
}

/* Always-filled tags under each paper */
.paper-categories .cat-tag {
  background: var(--cat);
  color: #fff;
  border: 1px solid var(--cat);
}

/* Optional: slightly stronger hover for filled tags */
.paper-categories .cat-tag:hover {
  filter: brightness(92%);
}
/* ==== People (#listing-team): true circle + zoom ==== */
/* === People listing (listing-team): make the IMG itself a circle === */

/* 1) Force the actual <img> to be a perfect circle */
#listing-team .quarto-grid-item img {
  width: 250px !important;      /* match your listing image-height */
  height: 250px !important;     /* equal to width => true circle */
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.6rem;        /* center above name */
  transform-origin: center center;
  transition: transform 0.25s ease;
}

/* 2) Zoom only the image on hover */
#listing-team .quarto-grid-item:hover img {
  transform: scale(1.08);
}

/* (Optional) Tidy up card chrome & center text */
#listing-team .card,
#listing-team .quarto-grid-item { border: none; box-shadow: none; background: transparent; }
#listing-team .listing-title, 
#listing-team .listing-subtitle { text-align: center; }

/* === People listing: make title/subtitle turn blue on hover === */

/* Smooth color transition (covers link & non-link titles) */
#listing-team .listing-title,
#listing-team .listing-title a,
#listing-team .card-title,
#listing-team .card-title a,
#listing-team .listing-subtitle {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: none;
}

/* Hover: turn title + subtitle blue when the card is hovered */
#listing-team .quarto-grid-item:hover .listing-title,
#listing-team .quarto-grid-item:hover .listing-title a,
#listing-team .quarto-grid-item:hover .card-title,
#listing-team .quarto-grid-item:hover .card-title a,
#listing-team .quarto-grid-item:hover .listing-subtitle {
  color: #1d4ed8; /* blue-600; tweak if you want a different shade */
}

/* Optional: add a subtle underline to the title on hover for affordance */
#listing-team .quarto-grid-item:hover .listing-title a,
#listing-team .quarto-grid-item:hover .card-title a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* ===== Research accordion: neutral by default, blue on hover/open ===== */
.research-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1rem 1.25rem;
  background: #fff;
}

/* Title: neutral (no blue fill) */
.research-accordion .ra-title {
  display: block;
  text-align: center;
  font-weight: 800;
  letter-spacing: .02em;
  color: #111827;                /* black-ish */
  background: transparent;
  padding: .35rem .75rem;
  border-radius: 4px;
  margin: .25rem auto 1rem;
  width: fit-content;
}

/* Item container */
.research-accordion details.ra-item { margin: .6rem 0 .8rem; }

/* Summary: black by default, blue on hover/open */
.research-accordion summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: flex-start;
  gap: .6rem;
  color: #111827;               /* default black */
  font-weight: 700;
  line-height: 1.35;
  padding: .1rem 0;
}
.research-accordion summary::-webkit-details-marker { display: none; }
.research-accordion summary:hover { color: #1d4ed8; }                 /* blue on hover */
.research-accordion details[open] > summary { color: #1d4ed8; }       /* blue when open */

/* Plus/minus square: gray when closed, blue when open */
.research-accordion summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 2px solid #9ca3af;   /* gray-400 */
  color: #9ca3af;
  background: #fff;
  font-weight: 900; font-size: 12px;
  border-radius: 3px;
  flex: 0 0 18px;
}
.research-accordion details[open] > summary::before {
  content: "−";                 /* U+2212 */
  border-color: #1d4ed8;
  color: #1d4ed8;
}

/* Body: light card; indent to align with text after icon */
.research-accordion .ra-body {
  margin: .6rem 0 0 2.2rem;
  background: #f9fafb;          /* lighter gray */
  color: #111827;
  padding: .85rem 1rem;
  border-radius: 6px;
  max-width: 70ch;
}

/* Links inside body: normal link color; blue underline on hover */
.research-accordion .ra-body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #94a3b8;   /* slate-ish */
}
.research-accordion .ra-body a:hover {
  color: #1d4ed8;
  text-decoration-color: #1d4ed8;
}

/* Accessibility: keyboard focus */
.research-accordion summary:focus-visible {
  outline: 3px solid #93c5fd;   /* soft blue focus ring */
  outline-offset: 2px;
  border-radius: 4px;
}



