@import url("https://fonts.googleapis.com/css2?family=Caprasimo:wght@400&family=Figtree:wght@400;600;700&display=swap");
/* ---------------------------------------------------------------------------
   Research Groups. Bright, rounded design language (Caprasimo/Figtree, pale
   panels, pill buttons), scoped under .rg so nothing leaks into the rest of
   the site. The
   page background stays white; site header, top menu and footer are
   untouched.

   .rg-accent-<name> is a per-group colour: it sets the ring around the PI's
   photo, the topic tags, the "PI" badge and the section anchors on that
   group's own page and card. Five names are defined below; pick any of them
   in a group's `accent:` front matter, or add a new one here.
   ------------------------------------------------------------------------ */
.rg {
  --rg-text: #201e1d;
  --rg-neutral-100: #f9f4ed;
  --rg-neutral-200: #eee7db;
  --rg-neutral-700: #645c50;
  --rg-neutral-800: #474238;
  /* Structural accent: page chrome shared by every group (filter pills,
     anchors, "also on RSS" badge): teal, deliberately distinct from any
     card accent below so the two kinds of colour never get confused. */
  --rg-accent: #1f7a6c;
  --rg-accent-tint: #e3f5f1;
  --rg-accent-deep: #125248;
  --rg-radius-lg: 26px;
  --rg-radius-md: 16px;
  --rg-shadow-sm: 0 1px 2px rgba(46, 43, 37, 0.14);
  --rg-shadow-md: 0 3px 10px rgba(46, 43, 37, 0.16);
  --font-heading: "Caprasimo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  background: #ffffff;
  padding-bottom: 72px;
  font-family: var(--font-body);
  color: var(--rg-text);
}

.rg [hidden] {
  display: none !important;
}

.rg a {
  color: var(--rg-accent-deep);
}

.rg a:hover {
  color: var(--rg-accent);
}

/* Per-group accent palette */
.rg-accent-sky {
  --card-accent: #2f7de0;
  --card-tint: #e5f1ff;
  --card-deep: #1f5aa8;
}

.rg-accent-plum {
  --card-accent: #8452c9;
  --card-tint: #f1e7fb;
  --card-deep: #63348f;
}

.rg-accent-coral {
  --card-accent: #e0563a;
  --card-tint: #ffe8e0;
  --card-deep: #a83b26;
}

.rg-accent-amber {
  --card-accent: #d98c1f;
  --card-tint: #fff1d9;
  --card-deep: #9c6114;
}

.rg-accent-sage {
  --card-accent: #4c8b5b;
  --card-tint: #e3f3e6;
  --card-deep: #2f5c3a;
}

.rg-accent-rose {
  --card-accent: #d1477a;
  --card-tint: #fce8f0;
  --card-deep: #9c2e58;
}

.rg-accent-slate {
  --card-accent: #5b6b7c;
  --card-tint: #e9edf1;
  --card-deep: #3a4653;
}

/* --- Breadcrumb ------------------------------------------------------------ */
.rg-topbar {
  padding: 18px 0 0;
}

.rg-topbar .breadcrumb {
  margin: 0;
  padding: 0;
}

/* --- Page header ------------------------------------------------------------ */
.rg-header {
  padding: 40px 0 8px;
  max-width: 760px;
}

.rg-header h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.08;
  margin: 0;
  color: var(--rg-text);
  border: none;
  padding: 0;
}

.rg-lede p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--rg-neutral-800);
  margin: 16px 0 0;
}

/* --- Topic filter (index page) --------------------------------------------- */
.rg-filter {
  margin: 28px 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rg-filter__label {
  font-size: 13px;
  color: var(--rg-neutral-700);
}

.rg-filter__pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rg .rg-pill {
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: var(--rg-text);
  background: var(--rg-neutral-100);
  border-radius: 999px;
  padding: 7px 16px;
  transition: background 0.2s, color 0.2s;
}

.rg .rg-pill:hover {
  background: var(--rg-accent-tint);
}

.rg .rg-pill.is-active {
  background: var(--rg-accent);
  color: #fff;
  font-weight: 600;
}

/* --- Group cards (index page) ---------------------------------------------- */
.rg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.rg .rg-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--rg-neutral-100);
  border-radius: var(--rg-radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--rg-text);
  box-shadow: var(--rg-shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 4px solid var(--card-accent, var(--rg-accent));
}

.rg .rg-card:hover {
  color: var(--rg-text);
  box-shadow: var(--rg-shadow-md);
  transform: translateY(-2px);
}

.rg .rg-card.is-hidden {
  display: none;
}

.rg-card__photo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-tint, var(--rg-neutral-200));
  border: 2px solid var(--card-accent, var(--rg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rg-card__photo svg {
  width: 55%;
  height: 55%;
  color: var(--card-accent, var(--rg-accent));
}

/* Narrow full-height figures (theme-icon humanoid) need more of the circle to match the wider icons. */
.rg-card__photo svg.theme-icon--tall {
  width: 75%;
  height: 75%;
}

.rg-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.rg-card__body > :last-child {
  margin-bottom: 0;
}

.rg-card h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 21px;
  margin: 0 0 4px;
  color: var(--card-deep, var(--rg-accent-deep));
  border: none;
  padding: 0;
}

.rg-card__members {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--rg-neutral-800);
}

.rg-member--first {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rg-card__more {
  font-weight: 600;
  color: var(--card-deep, var(--rg-accent-deep));
}

.rg-card__tagline {
  font-size: 14px;
  line-height: 1.45;
  color: var(--rg-neutral-800);
  margin: 0 0 10px;
}

.rg-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.rg .rg-tag {
  display: inline-block;
  text-decoration: none;
  font-size: 11.5px;
  color: var(--card-deep, var(--rg-accent-deep));
  background: var(--card-tint, var(--rg-accent-tint));
  border-radius: 999px;
  padding: 3px 11px;
}

a.rg-tag:hover {
  color: var(--card-deep, var(--rg-accent-deep));
  text-decoration: underline;
}

.rg-empty {
  font-size: 14px;
  color: var(--rg-neutral-700);
}

/* --- Group hero (a group's own page) ---------------------------------------- */
.rg-group-hero {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 36px 0 8px;
}

.rg-group-hero__photo {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card-tint, var(--rg-neutral-200));
  border: 3px solid var(--card-accent, var(--rg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rg-group-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rg-group-hero__photo svg {
  width: 52%;
  height: 52%;
  color: var(--card-accent, var(--rg-accent));
}

.rg-group-hero__photo svg.theme-icon--tall {
  width: 72%;
  height: 72%;
}

.rg-group-hero__text {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 720px;
}

.rg-eyebrow {
  font-size: 12.5px;
  color: var(--rg-neutral-700);
  margin: 0 0 6px;
}

.rg-eyebrow a {
  color: var(--rg-neutral-700);
  text-decoration: underline;
}

.rg-group-hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--rg-text);
  border: none;
  padding: 0;
}

.rg-group-hero__tagline {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--rg-neutral-800);
  margin: 0 0 12px;
}

/* --- Sticky-feeling section anchors ------------------------------------------ */
.rg-anchors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
  padding: 12px 0;
  border-top: 1px solid var(--rg-neutral-200);
  border-bottom: 1px solid var(--rg-neutral-200);
}

.rg-anchors a {
  text-decoration: none;
  font-size: 13px;
  color: var(--rg-text);
  background: var(--rg-neutral-100);
  border-radius: 999px;
  padding: 6px 14px;
}

.rg-anchors a:hover {
  background: var(--rg-accent-tint);
  color: var(--rg-text);
}

/* --- About + sections -------------------------------------------------------- */
.rg-about {
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--rg-neutral-800);
  margin: 0 0 8px;
}

.rg-about p {
  margin: 0 0 14px;
}

.rg-quote {
  max-width: 680px;
  margin: 4px 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--card-accent, var(--rg-accent));
}

.rg-quote p {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.5;
  color: var(--rg-text);
}

.rg-quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--card-deep, var(--rg-accent-deep));
}

.rg-section {
  max-width: 820px;
  padding: 30px 0 4px;
  scroll-margin-top: 20px;
}

.rg-section h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 6px;
  color: var(--rg-text);
  border: none;
  padding: 0;
}

.rg-section__heading {
  margin: 0 0 18px;
}

.rg-section__heading h2 {
  margin: 0;
}

.rg-section__note {
  font-size: 13.5px;
  color: var(--rg-neutral-700);
  margin: 0 0 18px;
  max-width: 62ch;
}

.rg-section__note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--rg-neutral-100);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Badges: shared "Also on RSS" / "Open access" pill, plus the "PI" chip */
.rg .rg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rg-accent-deep);
  background: var(--rg-accent-tint);
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: middle;
}

/* --- Team grid ---------------------------------------------------------------- */
.rg-team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rg-team__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  text-decoration: none;
  color: var(--rg-text);
  background: var(--rg-neutral-100);
  border-radius: var(--rg-radius-md);
  padding: 16px 10px 14px;
  height: 100%;
  transition: box-shadow 0.2s;
}

a.rg-team__inner:hover {
  box-shadow: var(--rg-shadow-sm);
  color: var(--rg-text);
}

.rg-team__card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rg-neutral-200);
}

.rg-team__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.rg-team__role {
  font-size: 11.5px;
  color: var(--rg-neutral-700);
}

/* --- Publications ------------------------------------------------------------ */
.rg-publications {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rg-publications li {
  background: var(--rg-neutral-100);
  border-radius: var(--rg-radius-md);
  padding: 14px 20px;
}

.rg-pub__title {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--rg-text);
}

.rg-pub__meta {
  font-size: 13px;
  color: var(--rg-neutral-700);
  margin: 0;
}

/* --- Projects (_includes/project-list.html, _layouts/project.html) -------------- */
.rg-project-index .rg-section {
  max-width: none;
}

/* The `.rg ul.` / `.rg h3.` / `.rg p.` selectors beat the site-wide `.content ul`,
   `.content h3` and `.content p` margins, so a card's padding is the only spacing. */
.rg ul.rg-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rg-project {
  background: var(--rg-neutral-100);
  border-radius: var(--rg-radius-md);
  padding: 16px 22px;
}

.rg h3.rg-project__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
  color: var(--rg-text);
}

.rg .rg-project__title a {
  color: var(--rg-text);
  text-decoration: none;
}

.rg .rg-project__title a:hover {
  color: var(--rg-accent-deep);
}

.rg p.rg-project__meta {
  font-size: 13.5px;
  color: var(--rg-neutral-700);
  margin: 0;
}

.rg .rg-project > :last-child {
  margin-bottom: 0;
}

.rg-project-meta {
  margin: 0 0 24px;
}

.rg-project-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 0 0 14px;
  font-size: 15px;
}

.rg-project-facts dt {
  font-weight: 600;
  color: var(--rg-neutral-700);
}

.rg-project-facts dd {
  margin: 0;
  color: var(--rg-text);
  overflow-wrap: anywhere;
}

.rg-project-meta a.rg-tag {
  text-decoration: none;
}

.rg-project__abstract {
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--rg-neutral-800);
}

.rg .rg-project__abstract p {
  margin: 0 0 14px;
}

/* Figures in a project abstract. A .fig-row holds two side by side; both are
   cropped to a common 4:3 so the row has a straight bottom edge despite the
   source images having different aspect ratios. Below 700px they stack. */
.rg-project__abstract figure {
  margin: 20px 0;
}

.rg-project__abstract figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.rg-project__abstract figcaption {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--rg-neutral-700);
}

.rg-project__abstract .fig-row {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.rg-project__abstract .fig-row figure {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.rg-project__abstract .fig-row figure img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* .fig-row--uncropped keeps each image whole: set --ar (width / height) on each
   figure and the widths split in proportion, so the images share one height. */
.rg-project__abstract .fig-row--uncropped figure {
  flex: var(--ar, 1) 1 0;
}

.rg-project__abstract .fig-row--uncropped figure img {
  aspect-ratio: auto;
  object-fit: fill;
}

@media (max-width: 700px) {
  .rg-project__abstract .fig-row {
    display: block;
  }
  .rg-project__abstract .fig-row figure {
    margin: 20px 0;
  }
  .rg-project__abstract .fig-row figure img {
    aspect-ratio: auto;
    object-fit: fill;
  }
}
.rg-back {
  margin-top: 40px;
  font-size: 14px;
}

.rg .page-manager {
  margin-top: 24px;
}

/* --- Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .rg-grid {
    grid-template-columns: 1fr;
  }
  .rg-header h1 {
    font-size: 36px;
  }
  .rg-team {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .rg-header h1 {
    font-size: 30px;
  }
  .rg-group-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .rg-group-hero__photo {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }
  .rg-group-hero h1 {
    font-size: 28px;
  }
  .rg-team {
    grid-template-columns: repeat(2, 1fr);
  }
  .rg-card {
    flex-direction: column;
  }
  .rg-card__photo {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rg .rg-card {
    transition: none;
  }
}

/*# sourceMappingURL=research-groups.css.map */