:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #e4ecf8;
  --text: #10203d;
  --muted: #2d4261;
  --primary: #163a87;
  --primary-dark: #0f2a62;
  --accent: #0f766e;
  --border: #b7c7de;
  --focus: #8c3f07;
  --nav-bg: #e6efff;
  --nav-border: #9fb6dd;
  --nav-text: #11315f;
  --venue-bg: #e8f0ff;
  --venue-border: #8ca6cf;
  --venue-text: #163663;
  --pdf-bg: #e1f1ec;
  --pdf-border: #8ab8ab;
  --pdf-text: #0b4b44;
  --project-bg: #edf4ff;
  --project-border: #95add0;
  --project-text: #133560;
  --author-text: #6a3504;
  --author-accent: #f4cf9a;
  --radius: 0.9rem;
  --max-width: 74rem;
  --shadow: 0 12px 24px rgba(16, 32, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(22, 58, 135, 0.74);
  font-weight: 600;
}

a:hover {
  color: var(--primary-dark);
  text-decoration-thickness: 0.1em;
}

main a[target="_blank"] {
  text-decoration-style: dotted;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.17em;
  text-decoration-color: rgba(18, 52, 105, 0.8);
  background: linear-gradient(180deg, transparent 72%, rgba(22, 58, 135, 0.12) 72%);
}

main a[target="_blank"]:hover {
  text-decoration-style: solid;
  text-decoration-color: rgba(14, 40, 84, 0.88);
  background: linear-gradient(180deg, transparent 68%, rgba(22, 58, 135, 0.2) 68%);
}

main a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.82em;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 0.3rem;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-140%);
  background: #ffffff;
  color: #111827;
  border: 2px solid var(--focus);
  border-radius: 0.6rem;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  z-index: 200;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(7px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
}

.brand {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.2;
}

.brand a {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
}

.brand small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav a {
  display: inline-block;
  text-decoration: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #163861;
  border-radius: 0.25rem 0.25rem 0 0;
  padding: 0.35rem 0.72rem 0.33rem;
  font-size: 0.93rem;
  font-weight: 700;
}

.main-nav a:hover {
  background: #eef0f3;
  border-bottom-color: #9aa2ad;
  color: #0d315d;
}

.main-nav a[aria-current="page"] {
  color: #091f46;
  border-bottom-color: #6f7782;
  background: #e5e7eb;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--nav-border);
  background: var(--nav-bg);
  color: var(--nav-text);
  border-radius: 0.45rem;
  padding: 0.4rem 0.62rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.nav-toggle-icon {
  position: relative;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentcolor;
  transition: background-color 120ms ease-in-out;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.05rem;
  height: 2px;
  border-radius: 999px;
  background: currentcolor;
  transform-origin: center;
  transition: transform 120ms ease-in-out;
}

.nav-toggle-icon::before {
  transform: translateY(-5px);
}

.nav-toggle-icon::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.page {
  padding: 1.8rem 0 2.8rem;
}

.hero {
  margin-bottom: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.hero h1 {
  margin: 0 0 0.55rem;
  line-height: 1.2;
  font-size: clamp(1.7rem, 2.2vw + 0.95rem, 2.6rem);
}

.hero p {
  margin: 0.5rem 0;
  color: var(--muted);
}

.page-projects .hero {
  border-color: #c9d8ef;
}

.page-projects .container {
  width: calc(100% - 2rem);
  max-width: none;
}

.page-projects .hero p {
  max-width: none;
}

.page-projects .section .intro {
  max-width: none;
}

.notice {
  margin: 0.8rem 0;
  background: #fff8eb;
  border-left: 5px solid #d97706;
  border-radius: 0.45rem;
  padding: 0.75rem;
  color: #6b3f0a;
}

.section {
  margin-top: 1.2rem;
}

.section h2 {
  margin: 0 0 0.35rem;
  line-height: 1.3;
  font-size: clamp(1.3rem, 1.4vw + 0.8rem, 1.95rem);
}

.section .intro {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 74ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.95rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.card p {
  margin: 0.45rem 0;
}

.project-card h3 {
  margin-bottom: 0.45rem;
}

.prong-overview {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.prong-overview li {
  border: 1px solid #c9d8ef;
  border-radius: 0.62rem;
  background: linear-gradient(165deg, #f7fbff 0%, #f4f7ff 100%);
  padding: 0.5rem 0.68rem;
  color: #1b3b68;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.38;
}

.page-projects .project-grid {
  display: grid;
  grid-template-columns: 1fr;
  counter-reset: project-prong;
  gap: 0.95rem;
}

.page-projects .project-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.page-projects .project-controls-row .intro {
  margin: 0;
}

.page-projects .project-controls-actions {
  display: flex;
  gap: 0.45rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.page-projects .project-controls-button {
  border: 1px solid #9aaac1;
  border-radius: 0.48rem;
  background: #eef1f5;
  color: #11325e;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  padding: 0.32rem 0.64rem;
}

.page-projects .project-controls-button:hover {
  background: #e3e8ef;
  border-color: #7f95b3;
}

.page-projects .project-controls-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.page-projects .project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-tone, #c6d6ee);
  background: linear-gradient(175deg, #ffffff 0%, #fbfdff 100%);
  padding: 1.05rem;
}

.page-projects .project-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--panel-tone, linear-gradient(90deg, #1d3f8c 0%, #0f766e 100%));
}

.page-projects .project-card {
  counter-increment: project-prong;
}

.page-projects .project-card[id] {
  scroll-margin-top: 5.4rem;
}

.page-projects .project-accordion-heading {
  margin: 0;
}

.page-projects .project-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0 2rem 0 0;
  margin: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
}

.page-projects .project-accordion-trigger::after {
  content: "+";
  position: absolute;
  top: 0.02rem;
  right: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #7f9fd0;
  background: #e5eeff;
  color: #163a87;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.page-projects .project-accordion-trigger[aria-expanded="true"]::after {
  content: "-";
}

.page-projects .project-accordion-trigger:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.48rem;
}

.page-projects .project-accordion-title {
  display: flex;
  align-items: flex-start;
  gap: 0.52rem;
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0b244a;
}

.page-projects .project-accordion-title::before {
  content: counter(project-prong, decimal-leading-zero);
  flex: 0 0 auto;
  margin-top: 0.02rem;
  border-radius: 0.38rem;
  background: #e8efff;
  color: #1d3f8c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.24rem 0.34rem;
}

.page-projects .project-accordion-trigger .project-summary {
  margin: 0.2rem 0 0;
}

.page-projects .project-accordion-panel {
  margin-top: 0.72rem;
  padding-top: 0.66rem;
  border-top: 1px solid #d7e3f3;
  display: grid;
  gap: 0.72rem;
}

.page-projects .project-accordion-panel > p {
  margin: 0;
  color: #11294d;
  padding: 0;
}

.page-projects .project-accordion-panel > p + p {
  margin-top: 0.2rem;
}

.page-projects .project-accordion-panel[hidden] {
  display: none;
}

.page-projects .project-panel-top-link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.2rem;
}

.page-projects .project-panel-top-link {
  font-weight: 700;
  color: #143a68;
  text-underline-offset: 0.18rem;
}

.page-projects .project-panel-top-link:hover {
  color: #102f56;
}

.page-projects .project-panel-top-link:focus-visible {
  outline: 2px solid #3767a5;
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.project-summary {
  margin: 0.15rem 0 0.58rem;
  color: #0f2d56;
  font-weight: 700;
  line-height: 1.45;
}

.page-projects .project-subhead {
  margin: 0.05rem 0;
  width: fit-content;
  border: 1px solid #a8bfe2;
  border-radius: 999px;
  background: #e5efff;
  color: #123863;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.22rem 0.58rem;
}

.page-projects .project-output-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.56rem;
}

.page-projects .project-output-list li {
  position: relative;
  margin: 0;
  border: 1px solid #b5c8e2;
  border-radius: 0.62rem;
  background: #ffffff;
  color: #0f2242;
  line-height: 1.52;
  padding: 0.68rem 0.76rem 0.68rem 1rem;
}

.page-projects .project-output-list li::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 1.02rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 999px;
  background: #1e4e91;
}

.page-projects .project-output-list li.has-inline-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.92rem;
  align-items: start;
  padding: 0.76rem 0.82rem;
}

.page-projects .project-output-list li.has-inline-demo::before {
  display: none;
}

.page-projects .project-paper-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.page-projects .project-paper-main .output-title {
  margin: 0;
}

.page-projects .project-paper-main .output-venue {
  display: block;
  margin: 0;
}

.page-projects .project-paper-authors,
.page-projects .project-paper-blurb {
  margin: 0;
}

.page-projects .project-paper-authors {
  color: #17385f;
  font-size: 0.9rem;
}

.page-projects .project-paper-blurb {
  color: #233d61;
  font-size: 0.89rem;
}

.page-projects .project-paper-cross-topic {
  margin: 0.16rem 0 0;
  color: #20426d;
  font-size: 0.84rem;
}

.page-projects .project-paper-cross-topic a {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #123b70;
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.page-projects .project-paper-cross-topic a:hover {
  background: none;
  color: #0d2d56;
}

.page-projects .project-paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem 0.4rem;
}

.page-projects .project-paper-links a {
  margin-left: 0;
}

.page-projects .project-inline-demo {
  min-width: 0;
}

.page-projects .project-inline-demo .project-video {
  height: 100%;
}

.page-projects .project-output-list .output-title {
  display: block;
  margin-bottom: 0.14rem;
  font-weight: 700;
  color: #102748;
}

.page-projects .project-output-list .output-venue {
  color: var(--muted);
  font-style: italic;
  margin-right: 0.12rem;
}

body.page-publications td:nth-child(3) a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.42rem;
  padding: 0.2rem 0.52rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.1rem 0.2rem 0.1rem 0;
}

body.page-publications td:nth-child(3) a:first-of-type {
  border: 0;
  border-bottom: 2px solid var(--venue-border);
  border-radius: 0.2rem;
  background: transparent;
  padding: 0.02rem 0.1rem;
  color: var(--venue-text);
}

body.page-publications td:nth-child(3) a:first-of-type:hover {
  background: rgba(241, 246, 255, 0.85);
  border-bottom-color: #6d8ec2;
  color: #10284d;
}

body.page-publications td:nth-child(3) a:last-of-type:not(:only-of-type) {
  border: 1px solid var(--pdf-border);
  background: var(--pdf-bg);
  color: var(--pdf-text);
}

body.page-publications td:nth-child(3) a:last-of-type:not(:only-of-type):hover {
  background: #d5ebe4;
  border-color: #78ad9f;
  color: #083f39;
}

body.page-publications td:nth-child(3) a,
.project-output-list a,
.legacy-publication-list a {
  background-image: none;
}

.project-output-list a,
.legacy-publication-list a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid #9eb8db;
  border-radius: 999px;
  background: #e6efff;
  color: #123661;
  padding: 0.08rem 0.46rem;
  margin-left: 0.26rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: baseline;
}

.project-output-list a:hover,
.legacy-publication-list a:hover {
  background: #dce9ff;
  border-color: #7f9fd0;
  color: #0e2b56;
}

.project-output-list a[href$=".pdf"],
.legacy-publication-list a[href$=".pdf"] {
  background: #e2f0ec;
  border-color: #8ab8ab;
  color: #0b4a44;
}

.project-output-list a[href$=".pdf"]:hover,
.legacy-publication-list a[href$=".pdf"]:hover {
  background: #d5eae4;
  border-color: #73a998;
  color: #073c36;
}

.project-output-list a[href^="https://"],
.legacy-publication-list a[href^="https://"] {
  background: #fdeedc;
  border-color: #d6b48b;
  color: #6a3608;
}

.project-output-list a[href^="https://"]:hover,
.legacy-publication-list a[href^="https://"]:hover {
  background: #f9e2c1;
  border-color: #cfa174;
  color: #532a05;
}

.page-projects .project-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0;
}

@media (min-width: 48rem) {
  .page-projects .project-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-video {
  margin: 0;
  border: 1px solid #c9d8ef;
  border-radius: 0.62rem;
  overflow: hidden;
  background: #f8fbff;
}

.project-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0c1222;
}

.project-video figcaption {
  padding: 0.46rem 0.6rem 0.56rem;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 56rem) {
  .page-projects .project-output-list li.has-inline-demo {
    grid-template-columns: 1fr;
  }
}

body.page-publications td:nth-child(3) a::after,
.project-output-list a::after,
.legacy-publication-list a::after {
  content: "";
}

.legacy-publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.legacy-publication-list li {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0.62rem;
  background: var(--surface);
  color: var(--text);
  line-height: 1.54;
  padding: 0.74rem 0.82rem;
}

.legacy-publication-list .legacy-title {
  display: block;
  margin: 0 0 0.12rem;
  font-weight: 700;
}

.legacy-publication-list .legacy-authors {
  display: block;
  margin: 0 0 0.18rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.legacy-publication-list .legacy-venue {
  margin-right: 0.24rem;
  color: var(--muted);
  font-style: italic;
}

.section .intro.lab-photos-intro {
  max-width: none;
}

@media (min-width: 62rem) {
  .section .intro.lab-photos-intro {
    white-space: nowrap;
  }

  .page-projects .section .intro.lab-photos-intro {
    white-space: nowrap;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-item img.focus-left {
  object-position: 20% center;
}

.gallery-item figcaption {
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pill {
  display: inline-block;
  margin-bottom: 0.52rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e1edff;
  color: #102f5a;
  font-size: 0.79rem;
  font-weight: 700;
}

.clean-list {
  margin: 0;
  padding-left: 1.1rem;
}

.clean-list li {
  margin-bottom: 0.45rem;
}

.research-section .intro {
  margin-bottom: 0.75rem;
}

.research-graphic {
  margin: 0 0 0.95rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.research-theme-layout {
  position: relative;
  border: 1px solid #aabfe0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
}

.research-theme-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.95rem;
}

.research-theme-grid li {
  display: flex;
  justify-content: center;
}

.research-theme-circle {
  width: min(100%, 13.5rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.6px solid #9bb7db;
  background: #ffffff;
  color: #081b36;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-drag: none;
}

.research-theme-label {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  cursor: text;
}

.research-theme-label-main {
  font-weight: 700;
}

.research-theme-label-sub {
  font-size: 0.84em;
  font-weight: 400;
}

.research-theme-circle:hover {
  text-decoration: none;
  border-color: #6f95ca;
}

.research-theme-circle:focus-visible {
  text-decoration: none;
}

.research-theme-grid li:nth-child(1) .research-theme-circle {
  background: #fff9d6;
  border-color: #decf8a;
}

.research-theme-grid li:nth-child(2) .research-theme-circle {
  background: #ffe8cf;
  border-color: #d8ad7f;
}

.research-theme-grid li:nth-child(3) .research-theme-circle {
  background: #ece8f7;
  border-color: #b6aed8;
}

.research-theme-grid li:nth-child(4) .research-theme-circle {
  background: #ffeaf5;
  border-color: #d9b5ca;
}

.research-theme-grid li:nth-child(5) .research-theme-circle {
  background: #deedf8;
  border-color: #97bad4;
}

.research-theme-grid li:nth-child(6) .research-theme-circle {
  background: #e1f5f1;
  border-color: #97ccc3;
}

.research-theme-grid li:nth-child(7) .research-theme-circle {
  background: #edf8ea;
  border-color: #b8d8b0;
}

.research-theme-grid li:nth-child(8) .research-theme-circle {
  background: #f0f0f0;
  border-color: #c9c9c9;
}

.research-theme-grid li:nth-child(9) .research-theme-circle {
  background: #fffde4;
  border-color: #d9d79f;
}

.research-theme-grid li:nth-child(10) .research-theme-circle {
  background: #e7f4cc;
  border-color: #b2cf85;
}

.research-theme-grid li:nth-child(11) .research-theme-circle {
  background: #efe1ef;
  border-color: #b694b7;
}

.research-theme-grid li:nth-child(12) .research-theme-circle {
  background: #ffe3df;
  border-color: #d9a7a0;
}

@media (max-width: 72rem) {
  .research-theme-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 56rem) {
  .research-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .research-theme-grid {
    grid-template-columns: 1fr;
  }
}

.research-graphic svg {
  display: block;
  width: 100%;
  height: auto;
}

.research-graphic figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.research-graphic a .paper-dot {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 120ms ease, fill 120ms ease;
}

.research-graphic a:hover .paper-dot,
.research-graphic a:focus-visible .paper-dot {
  transform: scale(1.22);
  fill: #102f61;
}

.research-track-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-track;
  display: grid;
  gap: 0.62rem;
}

.research-narrative {
  max-width: none;
}

.section .intro.research-narrative {
  max-width: none;
}

.research-track-list li {
  counter-increment: home-track;
  border: 1px solid #afc4e1;
  border-radius: 0.72rem;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 0.68rem 0.82rem 0.7rem;
}

.research-track-list li::before {
  content: counter(home-track, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 0.24rem;
  border-radius: 0.38rem;
  background: #e8efff;
  color: #1d3f8c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.24rem 0.36rem;
}

.research-track-list h3 {
  margin: 0 0 0.14rem;
  font-size: 1.04rem;
  line-height: 1.33;
}

.research-track-list p {
  margin: 0;
  color: var(--muted);
}

.research-bridge {
  margin: 0.86rem 0 0.42rem;
  color: var(--muted);
  max-width: 74ch;
}

.research-principles {
  margin-bottom: 0.35rem;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.74rem;
}

.news-list li {
  border: 1px solid var(--border);
  border-left: 5px solid #2563eb;
  background: var(--surface);
  border-radius: 0.6rem;
  padding: 0.72rem 0.82rem;
}

.news-list li.news-highlight {
  font-weight: 700;
}

.news-list li.news-highlight a {
  font-weight: 700;
}

.news-list time {
  display: block;
  margin-bottom: 0.15rem;
  color: #123276;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 45rem;
}

body.page-publications table {
  table-layout: fixed;
}

body.page-publications th:nth-child(1),
body.page-publications td:nth-child(1) {
  width: 50%;
}

body.page-publications th:nth-child(2),
body.page-publications td:nth-child(2) {
  width: 30%;
}

body.page-publications th:nth-child(3),
body.page-publications td:nth-child(3) {
  width: 20%;
}

body.page-publications tbody td:nth-child(1) {
  font-weight: 700;
}

body.page-publications .publication-award-note {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #24456f;
}

body.page-publications tbody td:nth-child(2) {
  font-style: italic;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  padding: 0.68rem 0.75rem;
}

th {
  background: var(--surface-soft);
  font-size: 0.93rem;
}

body.page-publications th {
  background: #e5e7eb;
}

tr:last-child td {
  border-bottom: 0;
}

.member {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.member img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  border: 1px solid var(--border);
}

.badge {
  display: inline-block;
  border-radius: 0.4rem;
  background: #e1f1ec;
  color: #0a4741;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #e5e7eb;
  color: var(--muted);
  padding: 1rem 0 1.4rem;
}

.footer-links {
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  display: inline;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.13em;
  text-decoration-color: rgba(18, 63, 99, 0.68);
  border: 0;
  background: none;
  color: #123f63;
  border-radius: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #0e3651;
  text-decoration-thickness: 0.1em;
}

body.page-team h3 > a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: rgba(16, 32, 61, 0.62);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.09em;
  background: none;
  border-radius: 0;
  padding: 0;
  font-weight: 700;
}

body.page-team h3 > a:hover {
  color: var(--primary-dark);
  text-decoration-color: rgba(15, 42, 98, 0.78);
  background: none;
}

body.page-team h3 > a::after {
  content: "";
}

@media (max-width: 56rem) {
  .container {
    width: min(100% - 1.2rem, var(--max-width));
  }

  .page {
    padding: 1.3rem 0 2rem;
  }

  .header-inner {
    align-items: stretch;
    gap: 0.6rem;
  }

  body.js-nav .header-inner {
    align-items: center;
  }

  .brand {
    font-size: 1rem;
  }

  body.js-nav .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .main-nav li {
    min-width: 0;
  }

  .main-nav a {
    display: block;
    text-align: center;
    border: 1px solid var(--nav-border);
    border-bottom-width: 1px;
    border-radius: 0.45rem;
    background: var(--nav-bg);
    padding: 0.42rem 0.38rem;
    font-size: 0.88rem;
  }

  .main-nav a:hover {
    border-color: #7f9fce;
    border-bottom-color: #7f9fce;
    background: #e8f0ff;
  }

  .main-nav a[aria-current="page"] {
    border-color: #6f92cb;
    border-bottom-color: #6f92cb;
    background: #d4e2ff;
  }

  body.js-nav .main-nav:not(.is-open) ul {
    display: none;
  }

  body.js-nav .main-nav.is-open ul {
    display: grid;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .member {
    grid-template-columns: 1fr;
  }

  .member img {
    width: 6.2rem;
    height: 6.2rem;
  }

  .project-output-list a,
  .legacy-publication-list a,
  body.page-publications td:nth-child(3) a {
    min-height: 2rem;
    padding-top: 0.32rem;
    padding-bottom: 0.32rem;
  }

  .prong-overview {
    grid-template-columns: 1fr;
  }

  body.page-publications .table-wrap {
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  body.page-publications table {
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.page-publications thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.page-publications tbody,
  body.page-publications tr,
  body.page-publications td {
    display: block;
    width: 100%;
  }

  body.page-publications tr {
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.8rem;
  }

  body.page-publications td {
    border: 0;
    padding: 0.2rem 0;
  }

  body.page-publications th:nth-child(1),
  body.page-publications td:nth-child(1),
  body.page-publications th:nth-child(2),
  body.page-publications td:nth-child(2),
  body.page-publications th:nth-child(3),
  body.page-publications td:nth-child(3) {
    width: auto;
  }

  body.page-publications td::before {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
  }

  body.page-publications td:nth-child(1)::before {
    content: "Title";
  }

  body.page-publications td:nth-child(2)::before {
    content: "Authors";
  }

  body.page-publications td:nth-child(3)::before {
    content: "Venue / Links";
  }
}

@media (max-width: 42rem) {
  .container {
    width: min(100% - 1rem, var(--max-width));
  }

  .hero,
  .card {
    padding: 0.82rem;
  }

  .main-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-contrast: more) {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #dce6f4;
    --muted: #1f3557;
    --border: #7f94b3;
    --nav-bg: #e0ebff;
    --nav-border: #6e8dbe;
    --nav-text: #0b2a56;
    --venue-bg: #e3edff;
    --venue-border: #5e7fb5;
    --venue-text: #0d2c57;
    --pdf-bg: #d8ebe5;
    --pdf-border: #5b9082;
    --pdf-text: #073a34;
    --project-bg: #e5efff;
    --project-border: #6686b7;
    --project-text: #0e2f5a;
  }

  a,
  .footer-links a,
  body.page-team h3 > a {
    text-decoration-color: currentcolor;
    text-decoration-thickness: 0.11em;
  }

  .main-nav a,
  .project-output-list a,
  .legacy-publication-list a,
  body.page-publications td:nth-child(3) a {
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
