/* Source Sans 3 (SIL Open Font License), self-hosted from Google Fonts. */

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-ext-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-ext-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --stanford-red: rgb(140, 21, 21);
  --stanford-red-dark: rgb(130, 0, 0);
  --ink: rgb(46, 45, 41);
  --muted: rgb(83, 86, 90);
  --line: rgb(222, 222, 218);
  --paper: rgb(255, 255, 255);
  --soft: rgb(247, 248, 248);
  --blue: rgb(54, 96, 118);
  --green: rgb(56, 111, 94);
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--stanford-red);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Links inside running text are underlined so they don't rely on color alone. */
p a:not(.strong-link):not(.text-link),
li a:not(.strong-link):not(.text-link),
dd a:not(.strong-link):not(.text-link),
td a:not(.strong-link):not(.text-link),
figcaption a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p a:not(.strong-link):not(.text-link):hover,
li a:not(.strong-link):not(.text-link):hover,
dd a:not(.strong-link):not(.text-link):hover,
td a:not(.strong-link):not(.text-link):hover,
figcaption a:hover {
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--stanford-red);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--stanford-red);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  max-width: 760px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: 1.16rem;
}

h4 {
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a.active {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--stanford-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

main {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: min(calc(100vh - 56px), 840px); /* caps how tall it can force itself to be */
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 44px;
  padding: 64px 0 40px;
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(3.4rem, 9vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero h1 span {
  display: block;
}

.hero-logo {
  width: min(330px, 80%);
  margin: -28px 0 -10px;
  justify-self: center;
}

.hero-visual {
  display: grid;
  align-content: start;
}

.eyebrow,
.section-kicker,
.tag {
  color: var(--stanford-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.4vw, 1.5rem);
  line-height: 1.36;
  text-wrap: pretty;
}

.hero-actions,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.project-card .profile-links,
.publication-row .profile-links,
.person-card .profile-links,
.resource-item .profile-links {
  gap: 14px;
  margin-top: 14px;
  font-size: 0.94rem;
}

.project-card .profile-links,
.person-card .profile-links {
  margin-top: auto;
  padding-top: 14px;
}

.strong-link,
.profile-links a,
.text-link {
  color: var(--ink);
  font-weight: 700;
}

.strong-link::after,
.text-link::after {
  content: "→";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.strong-link:hover::after,
.text-link:hover::after {
  transform: translateX(4px);
}

.hero-media,
.photo-gallery {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.9) contrast(1.03);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  z-index: -1;
}

.hero-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.gallery-slide img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
}

.gallery-slide img {
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.gallery-slide figcaption {
  min-height: 1.5em;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-placeholder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 28px;
  border: 1px solid rgba(46, 45, 41, 0.08);
  color: var(--ink);
  text-align: center;
}

.photo-placeholder::before,
.photo-placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(1px);
}

.photo-placeholder::before {
  top: -18%;
  left: -12%;
  background: rgba(117, 161, 184, 0.42);
}

.photo-placeholder::after {
  right: -12%;
  bottom: -20%;
  background: rgba(244, 197, 75, 0.48);
}

.lunch-placeholder {
  background: linear-gradient(145deg, rgb(252, 247, 232), rgb(238, 245, 245));
}

.outing-placeholder {
  background: linear-gradient(145deg, rgb(238, 245, 245), rgb(249, 236, 230));
}

.outing-placeholder::before {
  background: rgba(56, 111, 94, 0.38);
}

.outing-placeholder::after {
  background: rgba(151, 78, 49, 0.34);
}

.photo-placeholder span {
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.photo-placeholder small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.gallery-controls button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  border-color: var(--stanford-red);
  color: var(--stanford-red);
}

.gallery-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
}

.gallery-pause {
  min-width: 62px;
  height: 34px;
  padding: 0 10px;
  border-radius: 17px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.gallery-dots {
  display: flex;
  gap: 6px;
}

.gallery-controls .gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
}

.gallery-controls .gallery-dot.is-active {
  background: var(--stanford-red);
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 48px;
}

.body-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 10px;
}

.inline-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.news-list,
.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.news-item time {
  color: var(--stanford-red);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.news-item h3 {
  margin-bottom: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card .profile-links {
  position: relative;
  z-index: 2;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgb(198, 198, 192);
  box-shadow: 0 12px 28px rgba(46, 45, 41, 0.09);
}

.project-card img,
.project-card video,
.project-card canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img,
.project-card:hover video,
.project-card:hover canvas {
  transform: scale(1.025);
}

.project-card > div {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card h3,
.research-row h3,
.publication-row h3 {
  margin: 8px 0 10px;
}

.project-card h3 {
  min-height: 5.25em;
}

.connect-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}

.link-columns a {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  transition: color 0.15s ease, border-color 0.2s ease;
}

.link-columns a:hover,
.link-columns a:focus-visible {
  text-decoration: none;
  border-bottom-color: var(--stanford-red);
}

.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 10px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-identity {
  display: grid;
  gap: 14px;
}

.footer-identity a {
  width: min(240px, 72vw);
}

.footer-identity img {
  width: 100%;
}

.footer-identity .footer-soe-logo {
  width: min(260px, 72vw);
}

.footer-identity p {
  color: var(--ink);
  font-weight: 700;
}

.footer-meta {
  display: grid;
  align-content: start;
  gap: 6px;
  text-align: right;
}

.page-hero {
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.7fr);
  gap: 42px;
  align-items: end;
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  max-width: 780px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 8px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.equipment-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.equipment-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.equipment-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.equipment-card li span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.research-hero {
  display: block;
  max-width: 820px;
}

.teaching-hero {
  display: block;
  max-width: 860px;
}

.profile-feature {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  /* border-bottom: 1px solid var(--line); */
}

.role {
  margin: 6px 0 14px;
  color: var(--blue);
  font-weight: 700;
}

.role.affiliation {
  margin-top: -8px;
  font-weight: 400;
}

.avatar {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.avatar.large,
.portrait.large {
  width: 132px;
  font-size: 2rem;
}

.portrait {
  width: 92px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-grid,
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.compact-people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-card,
.theme-button {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.person-card {
  display: flex;
  flex-direction: column;
}

.person-card.is-linked,
.profile-feature.is-linked {
  animation: linked-card 2.4s ease-out;
}

@keyframes linked-card {
  0%,
  40% {
    box-shadow: 0 0 0 3px var(--stanford-red);
  }

  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}

.person-card:hover,
.theme-button:hover,
.theme-button:focus-visible,
.theme-button[aria-expanded="true"] {
  border-color: rgb(198, 198, 192);
  box-shadow: 0 8px 20px rgba(46, 45, 41, 0.06);
}

.alumni-card {
  padding: 18px;
}

.person-card h3,
.theme-button h3 {
  margin: 16px 0 8px;
}

.join-card {
  border-style: dashed;
  background: var(--soft);
  color: var(--muted);
  text-decoration: none;
}

.join-card:hover,
.join-card:focus-visible {
  text-decoration: none;
}

.join-card[aria-disabled="true"] {
  cursor: default;
}

.join-portrait {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: transparent;
  color: var(--stanford-red);
  font-size: 1.8rem;
  font-weight: 300;
}

.theme-button {
  position: relative;
  width: 100%;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.theme-button[aria-expanded="true"] {
  border-color: var(--stanford-red);
  background: rgb(253, 248, 247);
}

.theme-button p {
  margin-right: 20px;
}

.theme-toggle {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--stanford-red);
  font-size: 1.35rem;
  line-height: 1;
}

.theme-papers {
  margin-top: 20px;
  padding: 10px 24px 4px;
  border-left: 3px solid var(--stanford-red);
  background: var(--soft);
}

.theme-papers[hidden] {
  display: none;
}

.theme-papers-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 10px;
}

.theme-papers-heading p {
  flex: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.theme-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.theme-paper h4 {
  margin-bottom: 7px;
}

.theme-paper p {
  font-size: 0.92rem;
}

.theme-paper .profile-links {
  align-content: start;
  justify-content: flex-end;
  margin-top: 0;
  font-size: 0.88rem;
}

.course-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.course-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.course-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.course-card .text-link {
  display: inline-block;
  margin-top: 18px;
}

.course-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.course-note {
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 600;
}

.detail-line {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.research-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.research-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.publication-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.publication-row:hover {
  background: var(--soft);
}

.publication-row h3 {
  font-size: 1.05rem;
}

.publication-row p {
  font-size: 0.95rem;
}

.publication-row .pub-venue {
  font-size: 0.85rem;
}

.publication-row .pub-award {
  font-size: 0.85rem;
}

.publication-row .profile-links {
  font-size: 0.88rem;
}

.publication-row[hidden] {
  display: none;
}

.pub-search {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.pub-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-search input:focus {
  outline: none;
  border-color: var(--stanford-red);
  box-shadow: 0 0 0 3px rgba(140, 21, 21, 0.12);
}

.pub-search-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.search-hit {
  padding: 0 1px;
  border-radius: 2px;
  background: rgba(140, 21, 21, 0.12);
  color: var(--stanford-red);
}

.pub-toggle {
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pub-toggle:hover,
.pub-toggle:focus-visible {
  border-color: var(--stanford-red);
  color: var(--stanford-red);
}

.pub-toggle[hidden] {
  display: none;
}

.pub-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.pub-media img,
.pub-media video,
.pub-media canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pub-venue {
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pub-award {
  color: var(--stanford-red);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.note {
  max-width: none;
  white-space: nowrap;
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}

/*.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
}

.resource-grid h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}*/

.resource-item,
.dataset-list {
  padding-top: 18px;
}

.resource-item h3 {
  font-size: 1rem;
}

.dataset-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.dataset-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.dataset-card:hover,
.dataset-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgb(198, 198, 192);
  box-shadow: 0 8px 20px rgba(46, 45, 41, 0.06);
  text-decoration: none;
}

.dataset-card h3 {
  font-size: 1.05rem;
  min-height: 3.15em;
  margin-bottom: 8px;
}

.dataset-card p {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.dataset-card .text-link {
  margin-top: auto;
}

/* Course detail pages */

.course-detail-subhead {
  margin: 40px 0 14px;
  font-size: 1.3rem;
}

.section-heading + .course-detail-subhead {
  margin-top: 0;
}

.body-copy .course-detail-subhead {
  margin: 18px 0 -6px;
}

.body-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.info-grid {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-row dt {
  grid-row: span 3;
  color: var(--ink);
  font-weight: 700;
}

.info-row dd {
  grid-column: 2;
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr + tr td {
  border-top: 1px solid var(--line);
}

.data-table tbody tr:hover {
  background: var(--soft);
}

.data-table td:first-child {
  width: 160px;
  color: var(--stanford-red);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.data-table td:last-child {
  color: var(--ink);
}

.table-main,
.table-sub {
  display: block;
}

.table-main + .table-main {
  margin-top: 6px;
}

.table-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
  counter-reset: milestone;
}

.milestone-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--stanford-red);
  border-radius: 8px;
  background: var(--paper);
  counter-increment: milestone;
}

.milestone-card::before {
  content: "Step " counter(milestone);
  display: block;
  margin-bottom: 8px;
  color: var(--stanford-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.milestone-card h3 {
  margin-bottom: 10px;
}

.milestone-card p {
  font-size: 0.98rem;
}

.event-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.event-empty {
  padding: 28px;
  border: 1px dashed rgb(198, 198, 192);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
}

.event-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.event-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.event-media a {
  display: block;
}

.event-media img,
.event-media canvas {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-media:hover img,
.event-media:hover canvas {
  transform: scale(1.025);
}

.motion-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(46, 45, 41, 0.78);
  color: var(--paper);
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
}

.motion-toggle:hover,
.motion-toggle:focus-visible {
  background: var(--stanford-red);
}

.event-row h3 {
  margin: 10px 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.event-row h3 a {
  font-weight: 700;
}

.event-row p {
  font-size: 1rem;
}

.event-dates {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.event-dates div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.event-dates dt {
  color: var(--ink);
  font-weight: 700;
}

.event-dates dt::after {
  content: ":";
}

.event-dates dd {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.event-row .profile-links {
  margin-top: 16px;
  font-size: 0.92rem;
}

.course-figure {
  margin: 12px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.course-figure img {
  width: 100%;
}

.course-figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
}

.book-list .dataset-card p {
  color: var(--ink);
  font-weight: 400;
}

.book-list .dataset-card .book-publisher {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 16px 10px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .site-nav.open {
    display: grid;
    gap: 14px;
  }

  .hero,
  .page-hero,
  .split-intro,
  .connect-band,
  .profile-feature,
  .research-row,
  .publication-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-media::before {
    inset: 12px -10px -10px 12px;
  }

  .hero-logo {
    width: min(300px, 78%);
    margin: -18px 0 -8px;
  }

  .project-grid,
  .people-grid,
  .theme-grid,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .inline-heading {
    align-items: start;
    flex-direction: column;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-row {
    gap: 14px;
  }

  .theme-papers {
    padding-right: 16px;
    padding-left: 16px;
  }

  .theme-paper,
  .course-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .theme-paper .profile-links {
    justify-content: flex-start;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .footer-meta {
    text-align: left;
  }

  .pub-media {
    max-width: 340px;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .info-row dt {
    grid-row: auto;
  }

  .info-row dd {
    grid-column: 1;
  }

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

  .event-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-media {
    max-width: 420px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 14px;
  }

  .data-table td:first-child {
    width: auto;
  }
}

@media (min-width: 560px) and (max-width: 820px) {
  .project-grid,
  .people-grid,
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Stanford Global Footer (Decanter pattern).
   To remove: delete this block and set SHOW_STANFORD_GLOBAL_FOOTER = false
   in script.js.
   ========================================================================== */

.has-global-footer .site-footer {
  padding-bottom: 28px;
}

/* The Global Footer has its own Accessibility link, so hide the local one. */
.has-global-footer .footer-accessibility {
  display: none;
}

.global-footer {
  background: var(--stanford-red);
  color: var(--paper);
}

.global-footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 10px 22px;
  display: flex;
  align-items: center;
  gap: 16px 56px;
}

.global-footer a {
  color: var(--paper);
  text-decoration: none;
}

.global-footer a:hover,
.global-footer a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.global-footer :focus-visible {
  outline-color: var(--paper);
}

.global-footer-logo {
  flex-shrink: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 0.95;
  text-align: center;
}

.global-footer-logo:hover,
.global-footer-logo:focus-visible {
  text-decoration: none;
}

.global-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}

.global-footer nav ul + ul {
  font-size: 0.88rem;
}

.global-footer .global-footer-body li a {
  text-decoration: none;
}

.global-footer .global-footer-body li a:hover,
.global-footer .global-footer-body li a:focus-visible {
  text-decoration: underline;
}

.global-footer-copyright {
  margin-top: 6px;
  font-size: 0.82rem;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  .global-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* End Stanford Global Footer */
