@charset "UTF-8";

/* Source: base.css */
/* Document defaults used by the homepage. Brand and component styles follow. */
*, *::before, *::after { box-sizing: border-box; }
html, body, figure, h1, h2, h3, h4, h5, h6, p, ul, li { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: 400; }
ul { list-style: none; }
html {
  font-size: 1em;
  min-width: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
}
body { color: #404654; font-size: 1em; font-weight: 400; line-height: 1.5; }
article, aside, figure, footer, header, section { display: block; }
img { height: auto; max-width: 100%; }
svg { height: auto; width: auto; }
span { font-style: inherit; font-weight: inherit; }
strong { color: #2e333d; font-weight: 600; }
a strong { color: currentColor; }

a, button {
  cursor: pointer;
  transition-duration: 294ms;
  transition-property: background-color, border-color, color;
}
a { color: hsl(233, 100%, 58%); text-decoration: none; }
button {
  appearance: none;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  margin: 0;
  padding: 0;
}
a:focus-visible, button:focus-visible { outline: 2px solid #4258ff; outline-offset: 1px; }
a:active, button:active, a:focus-visible:active, button:focus-visible:active { outline-width: 1px; }

/* These are the only layout primitives used from the former framework. */
.container { flex-grow: 1; margin: 0 auto; position: relative; width: 100%; }
.section { padding: 3rem 1.5rem; }
.pb-0 { padding-bottom: 0 !important; }
.card { color: #404654; max-width: 100%; position: relative; }
.card:not(:last-child) { margin-bottom: 1.5rem; }
.navbar-item {
  display: block;
  gap: .75rem;
  line-height: 1.5;
  position: relative;
  flex-grow: 0;
  flex-shrink: 0;
}
@media screen and (min-width: 1024px) {
  .section { padding: 3rem; }
  .navbar-item { display: flex; align-items: center; }
}

/* Source: brand.css */
/* Shared logo. The original mask preserves the head and linked wordmark. */
html { background: #f3f4f3; }
.brand-logo {
  position: relative;
  top: -6px;
  display: block;
  width: 166px;
  aspect-ratio: 1942 / 544;
  transform: none;
}

.brand-emblem,
.brand-wordmark {
  position: absolute;
  left: -5.355304%;
  top: -19.117647%;
  width: 105.355304%;
  height: 141.176471%;
  display: block;
  -webkit-mask: url("moki-logo-linked.png") center / contain no-repeat;
  mask: url("moki-logo-linked.png") center / contain no-repeat;
}

.brand-emblem {
  background: #71866d url("moki-head-facets.svg") center / contain no-repeat;
  transform: translateY(-1%) scale(.92);
  transform-origin: 30.6% 54%;
  clip-path: polygon(0 0, 42% 0, 42% 54%, 30.6% 54%, 30.6% 100%, 0 100%);
}

.brand-wordmark {
  background: #2c4233;
  transform: scale(1.06);
  transform-origin: 31.5% 82.4%;
  clip-path: polygon(30.6% 54%, 100% 54%, 100% 100%, 30.6% 100%);
}

/* Source: title-strokes.css */
/* Match the section headings on eisenhofer.me. */
.gentle-refresh .section-title {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
}

/* One quiet family of soft, tapered marks; small differences follow each section. */
.gentle-refresh .section-title::after,
.profile-biography .profile-subtitle::after {
  width: 54px;
  height: 9px;
  margin-top: 7px;
  transform: translateX(-3px);
  border-radius: 0;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2054%209%22%3E%3Cg%20fill%3D%22%238fa58c%22%3E%3Cpath%20d%3D%22M2%205.21%20C7%203.08%2024.5%203.20%2052%204.5%20C34.5%204.97%2014.5%206.86%204.25%206.03%20C2.5%205.92%201.5%205.68%202%205.21%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-size: 54px 9px;
  background-position: left center;
}

/* A little upward sweep for the CISPA section. */
.gentle-refresh #cispa .section-title::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2054%209%22%3E%3Cg%20fill%3D%22%238fa58c%22%3E%3Cpath%20d%3D%22M2%205.8%20C9%203.68%2028%202.92%2052%203.85%20C34.4%204.97%2016.4%206.94%204.2%206.5%20C2.7%206.43%201.6%206.2%202%205.8%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

/* A quieter, flatter gesture beside the news timeline. */
.gentle-refresh #news .section-title::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2054%209%22%3E%3Cg%20fill%3D%22%238fa58c%22%3E%3Cpath%20d%3D%22M2%204.75%20C10%203.42%2029%203.62%2051.5%204.8%20C33%205.2%2015.8%206.18%204.3%205.65%20C2.7%205.59%201.6%205.2%202%204.75%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

/* Slightly fuller at the left, keeping the same fine taper. */
.gentle-refresh #team .section-title::after,
.gentle-refresh #positions .section-title::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2054%209%22%3E%3Cg%20fill%3D%22%238fa58c%22%3E%3Cpath%20d%3D%22M2.5%205.6%20C7%203.1%2024%202.78%2052%204.45%20C35%205.45%2016.5%207.1%204.4%206.45%20C2.9%206.36%201.85%206.05%202.5%205.6%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

/* A shorter, lighter gesture for the long publication section. */
.gentle-refresh #publications .section-title::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2054%209%22%3E%3Cg%20fill%3D%22%238fa58c%22%3E%3Cpath%20d%3D%22M2.3%204.95%20C10%203.28%2027%203.52%2050%204.6%20C34.2%205.13%2017%206.25%204.8%205.77%20C3%205.69%201.8%205.43%202.3%204.95%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

/* Source: publication-accents.css */
/* Paper references work in any Markdown text or list. */
.gentle-refresh .publication-reference > a {
  color: #41664e;
  font-weight: bold;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  overflow-wrap: break-word;
}
.gentle-refresh .publication-reference > a:hover {
  color: #243f2f;
  text-decoration: underline;
  text-decoration-color: #a9b9a1;
}
.gentle-refresh .publication-reference-meta { margin-left: 6px; }

/* Soft metadata accents for publications. */
.gentle-refresh .paper-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #596b52;
  font-family: Georgia, serif;
  font-size: .7rem;
  line-height: 1.35;
  font-weight: normal;
  font-style: normal;
  letter-spacing: .015em;
  white-space: nowrap;
  vertical-align: baseline;
}
.gentle-refresh .paper-bubble {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 3px 9px;
}
.gentle-refresh .paper-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #edf0e8;
  border-radius: 41% 59% 50% 50% / 52% 43% 57% 48%;
  transform: rotate(-2deg);
}
.gentle-refresh .paper-year::before {
  background: #f1eee6;
  border-radius: 54% 46% 43% 57% / 46% 55% 45% 54%;
  transform: rotate(2deg);
}
/* Publication and course links share the same organic shape family. */
.gentle-refresh :is(#publications, #teaching) .pub-link {
  --resource-wash: #edf0e8;
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 4px 10px 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .72rem;
  line-height: 1.3;
  opacity: 1;
  text-decoration: none;
  white-space: nowrap;
}
.gentle-refresh :is(#publications, #teaching) .pub-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--resource-wash);
  border-radius: 42% 58% 49% 51% / 55% 43% 57% 45%;
  transform: rotate(-2deg);
}
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='code'] {
  --resource-wash: #eee7ed;
}
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='code']::before {
  border-radius: 55% 45% 42% 58% / 46% 57% 43% 54%;
  transform: rotate(2deg);
}
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='website'],
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='slides'],
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='poster'] {
  --resource-wash: #f1ece2;
}
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='website']::before,
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='slides']::before,
.gentle-refresh :is(#publications, #teaching) .pub-link[data-kind='poster']::before {
  border-radius: 47% 53% 57% 43% / 42% 52% 48% 58%;
  transform: rotate(1deg);
}
.gentle-refresh :is(#publications, #teaching) .pub-link:hover {
  background: transparent;
  filter: brightness(.94);
}

/* Source: elastic-news.css */
/* Native inner scrolling, with visible edges and a quiet scrollbar. */
#news-scroll.native-news-scroll {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: auto;
  scroll-behavior: auto;
  padding: .8rem .4rem .8rem 0;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-width: thin;
  scrollbar-color: #a6b4a2 transparent;
}
#news-scroll.native-news-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
#news-scroll.native-news-scroll::-webkit-scrollbar-track { background: transparent; }
#news-scroll.native-news-scroll::-webkit-scrollbar-thumb {
  background: #a6b4a2;
  border: 1px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
}
#news-scroll.native-news-scroll::-webkit-scrollbar-thumb:hover { background-color: #82977e; }
#news-scroll.native-news-scroll > .news-rail { transform: none; }

/* Narrow timelines put dates inside the rail instead of reserving a wide gutter. */
@media (max-width: 760px) {
  #news-scroll.native-news-scroll > .news-rail {
    min-width: 0;
    margin-left: 8px;
  }
  #news-scroll.native-news-scroll .news-item {
    display: block;
    min-width: 0;
    padding: .55rem .1rem .65rem 20px;
  }
  #news-scroll.native-news-scroll .news-date {
    position: static;
    display: block;
    top: auto;
    right: auto;
    width: auto;
    margin: 0 0 .18rem;
    font-size: .75rem;
    line-height: 1.35;
    text-align: left;
  }
  #news-scroll.native-news-scroll .news-text {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }
  #news-scroll.native-news-scroll .news-year {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 2.2rem;
    padding: .3rem 0 .45rem 20px;
  }
  #news-scroll.native-news-scroll .news-year span {
    position: static;
    display: block;
    top: auto;
    right: auto;
    margin: 0;
    transform: none;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
  }
  #news-scroll.native-news-scroll .news-end { padding-left: 20px; }
}

/* Source: home.css */
/* Homepage components and a source-ordered card grid.
   Desktop placement belongs to CSS; narrow screens follow the Markdown order. */

/* Foundation: palette, document, typography and shared surfaces. */
:root {
  --accent: #80887C;
  --text: #18251E;
  --panelcolor: #e0e0e0;
  --cardcolor: #ffffff;
  --backgroundcolor: #f0f0f0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}

html {
  background-attachment: fixed;
  min-height: 100vh;
}

body {
  background: transparent;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

section.section .container {
  max-width: 1000px !important;
}

.card {
  background-color: var(--cardcolor);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07), 0 8px 24px rgba(0, 0, 0, 0.06);
  margin-top: 2.5rem;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-radius: 2rem;
}

@font-face {
  font-family: "Abril Fatface";
  src: url("AbrilFatface-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

body,
p,
a,
li,
span,
td,
.member-role,
.course-meta,
.pub-authors,
.pub-venue,
.pub-links {
  font-family: Georgia, serif;
}

.section-title {
  font-family: "Abril Fatface", Georgia, serif;
}

/* Navigation: fixed header, desktop links and mobile disclosure. */
.site-header {
  position: fixed;
  top: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1000px;
  z-index: 1000;
  background: rgba(240, 240, 240, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-radius: 1.25rem;
  padding: 0.5rem 1rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(240, 240, 240, 0.25);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.site-navbar {
  background: transparent;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  display: flex;
  align-items: center;
  padding: 0 0 0 0.5rem;
}

.navbar-links {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 2rem;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.navbar-item {
  color: var(--text);
  font-size: 0.85em;
  font-family: Georgia, serif;
  font-weight: bold;
  letter-spacing: 0.03em;
  border-radius: 0.5rem;
  padding: 0.2rem 0.65rem;
  text-decoration: none;
  transition: background 0.15s;
  background: transparent !important;
}

.navbar-item:hover {
  background: rgba(26, 26, 26, 0.07) !important;
  color: var(--text);
}

.navbar-item.active {
  background: rgba(26, 26, 26, 0.1) !important;
}

.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: var(--text);
  padding: 0.3rem 0.5rem;
  line-height: 1;
}

.nav-mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: rgba(240, 240, 240, 0.98);
  max-width: 1000px;
  margin: 0 auto;
}

.nav-mobile-dropdown.open {
  max-height: 20rem;
}

.nav-mobile-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text);
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 0.9em;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-mobile-dropdown a:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-hamburger {
    display: block;
  }
}

/* Shared section headings and inline links. */
.section-title {
  font-size: 1.1em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.4rem;
}

.card p a,
.card li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.card p a:hover,
.card li a:hover {
  text-decoration: underline;
}

/* Team: member portraits and labels. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 1rem;
}

.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.member-photo {
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--backgroundcolor);
  flex-shrink: 0;
  border: 2px solid var(--accent);
  margin-top: 0.5rem;
}

.member-name {
  font-family: Georgia, serif;
  font-size: 0.9em;
  font-weight: bold;
  color: var(--text);
}

.member-role {
  font-size: 0.85em;
  opacity: 0.55;
  margin-top: 0.35rem;
}

/* Teaching: baseline course metadata. */
.course-meta {
  font-size: 0.85em;
  opacity: 0.55;
  margin-top: 0.2rem;
}

/* Publications: year groups, entries, artifacts and awards. */
.pub-year {
  margin-bottom: 0.5rem;
}

.pub-year .pub-year-content {
  padding-top: 0.75rem;
}

.pub {
  padding: 0.1rem 0 0.1rem 0.75rem;
  border-left: 1px solid var(--panelcolor);
  margin-bottom: 1.1rem;
}

.pub:last-child {
  margin-bottom: 0;
}

.pub-title {
  font-family: Georgia, serif;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95em;
  line-height: 1.4;
}

.pub-title:hover {
  opacity: 0.75;
}

.pub-authors {
  font-size: 0.85em;
  color: var(--text);
  opacity: 0.75;
  margin: 0.25rem 0;
}

.pub-venue {
  font-size: 0.85em;
  color: var(--text);
  opacity: 0.75;
  font-style: italic;
}

.pub-links {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.pub-link {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.75em;
  color: var(--text);
  opacity: 0.7;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.3rem;
  padding: 0.1em 0.5em;
  transition: opacity 0.15s, background-color 0.15s, border-color 0.15s;
}

.pub-link:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

.pub-award {
  font-size: 0.78em;
  color: var(--accent);
  margin-left: 0.25rem;
}

/* News: scrolling timeline and entries. */
.news-scroll {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 0.4rem;
  padding: 1.2rem 0.4rem 3.5rem 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  scrollbar-width: none;
}

.news-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.news-rail {
  position: relative;
  border-left: 2px solid var(--panelcolor);
  margin: 0 0 0 4.2rem;
  display: flex;
  flex-direction: column;
}

.news-item {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  display: flex;
  align-items: baseline;
}

.news-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--cardcolor);
}

.news-date {
  position: absolute;
  right: calc(100% + 1.4rem);
  top: 0.55rem;
  width: 2.8rem;
  text-align: right;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.78em;
  color: var(--accent);
  white-space: nowrap;
}

.news-text {
  font-size: 0.95em;
  line-height: 1.75;
}

.news-year {
  position: relative;
  height: 2.4rem;
}

.news-year::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cardcolor);
  border: 2px solid var(--accent);
}

.news-year span {
  position: absolute;
  right: calc(100% + 1.2rem);
  top: 50%;
  transform: translateY(-50%);
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 1.15em;
  color: var(--text);
  white-space: nowrap;
}

.news-end {
  position: relative;
  padding: 0.7rem 0 0.2rem 1.4rem;
}

.news-end::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1.05rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cardcolor);
  border: 2px solid var(--panelcolor);
}

.news-endtext {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.72em;
  color: var(--text);
  opacity: 0.35;
}

/* Shared anchor offsets and narrow team layout. */
.card {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Component accents: palette and organic portraits. */
body.gentle-refresh {
  --accent: #52735e;
  --panelcolor: #dce3da;
}

.gentle-refresh .member-photo {
  border-color: #9cab96;
  border-width: 2px;
  border-radius: 45% 55% 47% 53% / 53% 46% 54% 47%;
}

.gentle-refresh .member:nth-child(2) .member-photo,
.gentle-refresh .member:nth-child(5) .member-photo {
  border-radius: 53% 47% 55% 45% / 46% 54% 46% 54%;
}

.gentle-refresh .member:nth-child(3) .member-photo {
  border-radius: 47% 53% 45% 55% / 55% 48% 52% 45%;
}

.gentle-refresh .member:nth-child(4) .member-photo {
  border-radius: 55% 45% 51% 49% / 48% 55% 45% 52%;
}

/* News: the illustrated timeline. */
.gentle-refresh .news-rail {
  border-left-color: transparent;
}

.gentle-refresh .news-item::before {
  background: #77957e;
  z-index: 1;
}

.gentle-refresh .news-year::before {
  border-color: #77957e;
  z-index: 1;
}

.gentle-refresh .news-end::before {
  z-index: 1;
}

.news-organic-rail {
  display: none;
  position: absolute;
  left: -12px;
  top: 0;
  width: 24px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gentle-refresh .news-organic-rail {
  display: block;
}

.news-organic-progress {
  fill: none;
  stroke: #77957e;
  stroke-width: 1.5;
}

/* Navigation, publication targets and shared interaction states. */
.gentle-refresh .navbar-logo {
  overflow: visible;
}

.gentle-refresh .card,
.gentle-refresh .pub[id] {
  scroll-margin-top: 9rem;
}

.pub.pub-target {
  border-left-color: #52735e;
  box-shadow: inset 2px 0 #8fa58c;
}

@media (max-width:860px) {
  .gentle-refresh .navbar-links {
    display: none;
  }

  .gentle-refresh .navbar-hamburger {
    display: block;
  }
}

/* Shared surface and metadata colors. */
body.gentle-refresh {
  --accent-sage: #e8ede3;
  --accent-plum: #eee7ed;
  --accent-sand: #f1ece2;
  background-color: var(--backgroundcolor);
}

.gentle-refresh .card {
  border: 1px solid #dde2d7;
  box-shadow: 0 2px 3px rgba(38, 53, 34, .035);
}

.gentle-refresh .nav-mobile-dropdown {
  background: #f2f3ef;
}

.gentle-refresh .navbar-item:hover,
.gentle-refresh .navbar-item.active {
  background: transparent !important;
  text-decoration: underline;
  text-decoration-color: #8fa58c;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.gentle-refresh .member-role,
.gentle-refresh .course-meta,
.gentle-refresh .pub-authors,
.gentle-refresh .pub-venue {
  color: #58655d;
  opacity: 1;
}

/* Accessible labels. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Publications: artifact colors. */
.gentle-refresh .pub-link {
  border-color: #dce2d5;
  background: #f3f5ef;
  color: #4e6347;
  opacity: 1;
  border-radius: 6px 8px 6px 7px;
}

.gentle-refresh .pub-link[data-kind="code"] {
  background: #f2edf1;
  border-color: #e5dde3;
  color: #755e72;
}

.gentle-refresh .pub-link[data-kind="website"],
.gentle-refresh .pub-link[data-kind="slides"],
.gentle-refresh .pub-link[data-kind="poster"] {
  background: #f5f2eb;
  border-color: #e8e1d4;
  color: #78683f;
}

.gentle-refresh .pub-link:hover {
  filter: brightness(.96);
  border-color: currentColor;
}

/* Shared keyboard focus treatment. */
.gentle-refresh a:focus-visible,
.gentle-refresh summary:focus-visible,
.gentle-refresh button:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.gentle-refresh :is(.navbar-hamburger, .navbar-logo):focus-visible {
  box-shadow: 0 2px #777d76;
}
.gentle-refresh #news-scroll:focus-visible {
  outline: none;
  box-shadow: inset 0 -2px #a4aaa2;
}

/* Team: former members and smaller viewports. */
.alumni-section h3 {
  font-family: Georgia,serif;
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 14px;
}

.alumni-section .member-photo {
  width: 64px;
  height: 64px;
  margin-top: 0;
}

@media (max-width:768px) {
  .gentle-refresh .team-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 24px 16px;
  }
}

@media (max-width:480px) {
  .gentle-refresh .card {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Ordinary Markdown inside the welcome card. */
.gentle-refresh #about > .markdown-block {
  font-family: Georgia, serif;
}

.gentle-refresh #about > .markdown-block p {
  font-size: .95rem;
  line-height: 1.75;
}

.gentle-refresh .markdown-block p + p {
  margin-top: 14px;
}

/* Shared light background and section defaults. */
html {
  background: #f3f4f3;
}

body.gentle-refresh {
  --backgroundcolor: #f3f4f3;
}

.gentle-refresh .site-header.scrolled,
.gentle-refresh .nav-mobile-dropdown {
  background: var(--backgroundcolor);
}

.gentle-refresh .section-title {
  margin-bottom: 14px;
}

/* Team: former-member labels. */
.gentle-refresh .alumni-section {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  border: 0;
}

.gentle-refresh .alumni-section h3 {
  line-height: 1.5;
}

.alumni-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: .9rem;
  line-height: 1.5;
}

.alumni-name {
  color: var(--text);
}

.alumni-role {
  color: #58655d;
}

.alumni-role::before {
  content: "·";
  margin-right: 12px;
}

/* Mascot image and responsive section defaults. */
.footer-moki {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  .gentle-refresh .site-header {
    padding-inline: 0;
  }
}

@media (max-width: 600px) {
  .gentle-refresh .alumni-section {
    display: block;
  }

  .gentle-refresh .alumni-section h3 {
    margin-bottom: 6px;
  }
}

/* Page composition: shared width and navigation refinements. */
.gentle-refresh > .section {
  padding-inline: 24px;
}

.gentle-refresh .section > .container {
  max-width: 1020px !important;
}

.gentle-refresh .site-header {
  max-width: 1052px;
  padding: .5rem 1rem;
}

.gentle-refresh .site-navbar {
  max-width: none;
}

.gentle-refresh .site-header.scrolled {
  background: rgba(243, 244, 243, .78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

.gentle-refresh .site-header.scrolled::before {
  content: none;
}

.gentle-refresh .navbar-links {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 2rem;
  padding: .5rem .9rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.gentle-refresh .navbar-item {
  letter-spacing: .03em;
  text-decoration: none;
}

.gentle-refresh .navbar-item:hover {
  background: rgba(26, 26, 26, .07) !important;
  text-decoration: none;
}

.gentle-refresh .navbar-item.active {
  background: rgba(26, 26, 26, .1) !important;
  text-decoration: none;
}

.gentle-refresh .navbar-logo {
  height: 54px;
  padding-left: .25rem;
}

@media (min-width: 901px) {
  .gentle-refresh .navbar-links a[href="#news"] {
    display: none;
  }
}

/* One source section per card. Only the desktop grid assigns placement. */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 14px;
}

.home-card-slot {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.gentle-refresh .home-card-slot > .card {
  margin: 0;
  padding: 28px;
  min-width: 0;
  border: 1px solid #e1e5df;
  border-radius: 25px 22px 27px 21px / 22px 26px 21px 27px;
  background: #fcfcfa;
  box-shadow: 0 2px 3px rgba(39, 55, 43, .015);
}

.gentle-refresh #about > .section-title {
  font-size: 30px;
}

@media (min-width: 901px) {
  .home-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas:
      "about about"
      "team news"
      "publications teaching"
      "publications positions"
      "publications cispa";
  }

  .home-card-slot { grid-column: 1 / -1; }
  .slot-about { grid-area: about; }
  .slot-team { grid-area: team; }
  .slot-news { grid-area: news; }
  .slot-publications { grid-area: publications; }
  .slot-teaching { grid-area: teaching; }
  .slot-positions { grid-area: positions; }
  .slot-cispa { grid-area: cispa; }
}

/* Team: final portrait sizes and former-member layout. */
.gentle-refresh #team {
  padding-bottom: 24px;
}

.gentle-refresh .team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gentle-refresh .member-photo {
  width: 120px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.gentle-refresh .member-name {
  font-size: .92rem;
}

.gentle-refresh .member-role {
  font-size: .82rem;
}

.gentle-refresh .alumni-section {
  display: block;
  margin-top: 16px;
  padding-top: 4px;
}

.gentle-refresh .alumni-section h3 {
  margin: 0 10px 14px;
  font-size: .9rem;
  font-weight: bold;
  color: #58655d;
}

.gentle-refresh .alumni-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: calc((100% - 54px) / 4);
  text-align: center;
  font-size: .92rem;
}

.gentle-refresh .alumni-photo {
  object-fit: cover;
  border-radius: 47% 53% 45% 55% / 55% 48% 52% 45%;
}

.gentle-refresh .alumni-name {
  font-weight: bold;
}

.gentle-refresh .alumni-role {
  font-size: .82rem;
  margin-top: 3px;
}

.gentle-refresh .alumni-role::before {
  content: none;
}

/* Column sizing and compact news layout. */
.gentle-refresh #news {
  background: #eef1eb;
}

.gentle-refresh #news .section-title {
  font-size: 23px;
}

.gentle-refresh #news-scroll.native-news-scroll {
  max-height: 400px;
  padding-top: 2px;
}

.gentle-refresh #news .news-rail {
  margin-left: 7px;
}

.gentle-refresh #news .news-item {
  display: block;
  padding: 8px 2px 9px 20px;
}

.gentle-refresh #news .news-date {
  position: static;
  display: block;
  width: auto;
  margin: 0 0 3px;
  font-size: .72rem;
  text-align: left;
}

.gentle-refresh #news .news-text {
  font-size: .85rem;
  line-height: 1.6;
}

.gentle-refresh #news .news-year {
  display: flex;
  align-items: center;
  height: 32px;
  padding-left: 20px;
}

.gentle-refresh #news .news-year span {
  position: static;
  transform: none;
  font-size: 1rem;
}

.gentle-refresh #news .news-end {
  padding-left: 20px;
}

/* Teaching, positions and location: shared card typography. */
.gentle-refresh #teaching {
  background: #f5f1e9;
}

.gentle-refresh :is(#teaching, #positions, #cispa) .section-title {
  font-size: 23px;
}

.gentle-refresh :is(#teaching, #positions, #cispa) p {
  font-size: .88rem;
  line-height: 1.65;
}

/* Teaching: current course and history link. */
.gentle-refresh :is(#teaching, #positions, #cispa) .course-title {
  font-size: .95rem;
  line-height: 1.4;
}

.gentle-refresh :is(#teaching, #positions, #cispa) .course-meta {
  font-size: .78rem;
  line-height: 1.65;
}

.gentle-refresh .featured-course {
  margin-top: 18px;
}

.gentle-refresh :is(#teaching, #positions, #cispa) .featured-course .course-title {
  font: bold 1.25rem/1.25 Georgia, serif;
  margin: 0 0 6px;
}

.gentle-refresh :is(#teaching, #positions, #cispa) .featured-course .course-subtitle {
  font: normal .95rem/1.5 Georgia, serif;
  color: #435649;
  margin: 0;
}

.gentle-refresh .course-details {
  margin-top: 12px;
}

.gentle-refresh :is(#teaching, #positions, #cispa) .featured-course .course-meta,
.gentle-refresh :is(#teaching, #positions, #cispa) .featured-course .course-institution {
  font: normal .78rem/1.6 Georgia, serif;
  color: #6b6b5c;
  margin: 0;
}

.gentle-refresh .course-title-link {
  color: #52735e;
  font: inherit;
  text-decoration: none;
}

.gentle-refresh .course-title-link:hover,
.gentle-refresh #teaching > .markdown-block a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gentle-refresh .course-title-link:hover {
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.gentle-refresh #teaching > .markdown-block {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #dedfd3;
  font-size: .76rem;
}

.gentle-refresh #teaching > .markdown-block a {
  color: #606b5d;
}

.gentle-refresh #teaching > .markdown-block p {
  font-size: inherit;
}

/* Publications: archive year headings. */
.gentle-refresh .publication-scroll .pub-year {
  margin: 0 0 24px;
}

.gentle-refresh .pub-year-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 0 9px;
  border-bottom: 1px solid #e4e8df;
  color: #52735e;
  font: normal 1.15rem/1.4 "Abril Fatface", Georgia, serif;
  list-style: none;
}
.gentle-refresh summary.pub-year-heading::-webkit-details-marker { display: none; }
.gentle-refresh .pub-year-heading h3 { margin: 0; font: inherit; color: inherit; }

@media (max-width: 900px) {
  .gentle-refresh .publication-scroll .pub-year { margin-bottom: 8px; }
  .gentle-refresh .publication-scroll .pub-year[open] { margin-bottom: 24px; }
  .gentle-refresh summary.pub-year-heading { padding: 10px 0; cursor: pointer; }
  .gentle-refresh summary.pub-year-heading::after {
    content: '';
    width: 7px;
    height: 7px;
    margin: 0 8px 4px auto;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .gentle-refresh .pub-year[open] > summary::after { margin-bottom: -4px; transform: rotate(225deg); }
  .gentle-refresh summary.pub-year-heading:focus-visible {
    outline: none;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* Explicit disclosures. The opening text and body remain ordinary Markdown. */
.content-details {
  font: .88rem/1.65 Georgia, serif;
  margin-top: 7px;
}

.content-details > summary {
  display: block;
  list-style: none;
  color: #52735e;
  font-weight: bold;
  cursor: pointer;
  text-wrap: pretty;
}

.content-details > summary::-webkit-details-marker { display: none; }

.content-details > summary::after {
  display: inline-block;
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 0 3px 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.content-details[open] > summary::after {
  margin-bottom: 0;
  transform: rotate(225deg);
}

.content-details > summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-details-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e1e5df;
}

.content-details-body p { text-wrap: pretty; }
.content-details-body > p + p { margin-top: 14px; }

/* A Markdown blockquote groups the optional illustration and its note. */
.content-details-body > blockquote:has(img) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.content-details-body > blockquote img {
  display: block;
  width: 56px;
  height: auto;
  transform: scaleX(-1);
}

.gentle-refresh .content-details-body > blockquote p {
  min-width: 0;
  margin: 0;
  color: #58655d;
}

.content-details-body > blockquote > p:has(img) { flex: 0 0 56px; }
.content-details-body > blockquote > p:not(:has(img)) { flex: 1; }
.content-details-body > blockquote strong { color: #52735e; font-weight: bold; }

/* CISPA uses ordinary image, prose and link paragraphs in their source order. */
.gentle-refresh .home-card-slot > #cispa {
  overflow: visible;
  background: #eef2e9;
}

.gentle-refresh #cispa > .section-title { margin-bottom: 6px; }

.gentle-refresh #cispa > .markdown-block > p:first-child:has(> img:only-child) {
  position: relative;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1.9;
  margin: 0 auto 12px;
  overflow: hidden;
}

.gentle-refresh #cispa > .markdown-block > p:first-child > img:only-child {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}

.gentle-refresh #cispa > .markdown-block p {
  font-size: .88rem;
  line-height: 1.7;
}

.gentle-refresh #cispa > .markdown-block > p + p { margin-top: 12px; }
.gentle-refresh #cispa > .markdown-block > p:last-child:has(> a:only-child) { margin-top: 18px; }

.gentle-refresh #cispa > .markdown-block > p:last-child > a:only-child {
  color: #52735e;
  font-weight: bold;
  text-decoration: none;
}

.gentle-refresh #cispa > .markdown-block > p:last-child > a:only-child:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gentle-refresh #cispa > .markdown-block > p:last-child > a:only-child::after,
.gentle-refresh #teaching > .markdown-block > p > a:only-child::after {
  display: inline-block;
  content: "";
  width: 1.2em;
  height: .9em;
  margin-left: 6px;
  vertical-align: -.12em;
  background: currentColor;
  -webkit-mask: url("link-arrow.svg") center / contain no-repeat;
  mask: url("link-arrow.svg") center / contain no-repeat;
}

/* Moki: card-edge hideouts, interaction and motion preferences. */
.gentle-refresh .card.moki-host {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.moki-peek {
  --peek-depth: 44px;
  --peek-rest: 28px;
  --peek-open: -4px;
  position: absolute;
  z-index: 1;
  right: calc(-1 * var(--peek-depth));
  top: var(--moki-y, 25%);
  transform: translateY(-50%);
  width: 44px;
  height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.moki-peek[data-side="left"] {
  left: calc(-1 * var(--peek-depth));
  right: auto;
}

.moki-peek-window {
  position: absolute;
  display: block;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 44px;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(90deg);
}

.moki-peek[data-side="left"] .moki-peek-window {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.moki-peek .footer-moki {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: translateY(var(--peek-rest)) rotate(-6deg);
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(.22, .8, .3, 1);
}

.moki-peek:focus-visible .footer-moki {
  transform: translateY(var(--peek-open)) rotate(-2deg);
}

.moki-peek:focus-visible {
  outline: none;
}

@media (hover: hover) {
  .moki-peek:hover .footer-moki {
    transform: translateY(var(--peek-open)) rotate(-2deg);
  }
}

.moki-peek[data-shy="true"] .footer-moki {
  transform: translateY(56px) rotate(6deg);
  transition-duration: 160ms;
  transition-timing-function: ease-in;
}

@media (max-width: 1120px) {
  .moki-peek {
    --peek-depth: 18px;
    --peek-rest: 2px;
    --peek-open: -18px;
  }

  .moki-peek-window {
    clip-path: inset(0 0 26px 0);
  }
}

@media (max-width: 900px) {
  .moki-peek { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .moki-peek .footer-moki {
    transition: none;
  }
}

/* The adjacent content sets desktop archive heights; no JS sizing needed. */
@media (min-width: 901px) {
  .gentle-refresh .slot-news > #news,
  .gentle-refresh .slot-publications > #publications {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .gentle-refresh #news .section-title,
  .gentle-refresh #publications .section-title {
    flex: 0 0 auto;
  }

  .gentle-refresh #news-scroll.native-news-scroll {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }

  .publication-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 8px 4px 2px;
    scrollbar-width: thin;
    scrollbar-color: #a6b4a2 transparent;
    scrollbar-gutter: stable;
  }

  .publication-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .publication-scroll::-webkit-scrollbar-thumb {
    background: #a6b4a2;
    border-radius: 99px;
  }

  .publication-scroll:focus-visible {
    outline: none;
    box-shadow: inset 0 -2px #a4aaa2;
  }
}

.gentle-refresh #publications .publication-scroll > .pub-year:last-of-type { margin-bottom: 0; }

.gentle-refresh #publications .publication-moki {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: -14px 0 0 auto;
  padding: 2px;
  border: 0;
  background: none;
  color: #58655d;
  font: 14px/1.4 Georgia, serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gentle-refresh #publications .publication-moki img {
  display: block;
  width: 72px;
  max-width: none;
  height: auto;
  transform: rotate(-7deg);
  transform-origin: 50% 85%;
  transition: transform 260ms ease;
}
.publication-moki-greeting {
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.gentle-refresh #publications .publication-moki:is(:focus-visible, [aria-pressed="true"]) {
  text-decoration: none;
}
.publication-moki:is(:focus-visible, [aria-pressed="true"]) .publication-moki-greeting {
  opacity: 1;
  transform: none;
}
.gentle-refresh #publications .publication-moki:is(:focus-visible, [aria-pressed="true"]) img {
  transform: translateY(-3px) rotate(5deg);
}
@media (hover: hover) {
  .publication-moki:hover .publication-moki-greeting { opacity: 1; transform: none; }
  .gentle-refresh #publications .publication-moki:hover img { transform: translateY(-3px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gentle-refresh #publications .publication-moki img,
  .publication-moki-greeting { transition: none; }
}
@media (max-width: 900px) {
  .gentle-refresh #publications .publication-moki { display: none; }
}

/* Below desktop, cards follow source order in a single column. */
@media (max-width: 900px) {
  .gentle-refresh .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .gentle-refresh #news-scroll.native-news-scroll { max-height: 320px; }
  .gentle-refresh :is(#teaching, #positions, #cispa) p { font-size: .9rem; }
}

@media (max-width: 600px) {
  .gentle-refresh .home-card-slot > .card { padding: 22px; }
  .gentle-refresh .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 16px;
  }
  .gentle-refresh .member-photo { width: 112px; }
  .gentle-refresh .alumni-entry { width: calc((100% - 16px) / 2); }
}

/* Page offset and Markdown paragraph normalization. */
.home-section {
  padding-top: 5.5rem !important;
}

.gentle-refresh #news .news-text > p {
  font-size: inherit;
  line-height: inherit;
}

/* Card stacking also contains the mascot and small background accents. */
.gentle-refresh .card { position: relative; isolation: isolate; }

/* Source: research.css */
/* Shared reading surface on desktop; individual disclosures on mobile. */
.gentle-refresh .research-section { display: block; scroll-margin-top: 9rem; }
.gentle-refresh #about > .research-card-variant {
  padding: 0;
  margin-top: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.gentle-refresh .research-card-variant.research-cards-ready {
  --group-wash: #f4f6f1;
  --group-edge: #e5e9e1;
  position: relative;
  isolation: isolate;
}
.gentle-refresh .research-cards-ready[data-research-active='agents'] {
  --group-wash: #f8f6f2;
  --group-edge: #eae6de;
}
.gentle-refresh .research-cards-ready[data-research-active='attack'] {
  --group-wash: #f7f4f6;
  --group-edge: #e9e3e8;
}
.gentle-refresh .research-cards-ready::before {
  content: '';
  position: absolute;
  inset: -10px -10px -12px;
  z-index: -1;
  border: 1px solid var(--group-edge);
  border-radius: 19px 21px 20px 18px;
  background: var(--group-wash);
  opacity: 0;
  transition: opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
  pointer-events: none;
}
.gentle-refresh .research-cards-ready[data-research-open='true']::before { opacity: 1; }

/* Without JavaScript the three articles remain visible with their headings. */
.gentle-refresh .research-card-variant:not(.research-cards-ready) .research-card-options { display: none; }
.gentle-refresh .research-card-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0;
}
.gentle-refresh .research-choice {
  --paper-wash: #f4f6f1;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 12px;
  grid-template-rows: auto auto;
  gap: 10px 12px;
  align-content: start;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 12px 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px 16px 15px 14px;
  background: rgba(252, 252, 250, .72);
  color: var(--text, #18251e);
  font-family: Georgia, serif;
  font-weight: normal;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.gentle-refresh #research-choice-agents { --paper-wash: #f8f6f2; }
.gentle-refresh #research-choice-attack { --paper-wash: #f7f4f6; }
.gentle-refresh .research-choice[aria-expanded='true'] { background: var(--paper-wash); }
.gentle-refresh .research-choice:hover .research-choice-title,
.gentle-refresh .research-choice[aria-expanded='true'] .research-choice-title { color: var(--accent); }
.gentle-refresh .research-choice:focus-visible {
  outline: none;
  text-decoration: none;
}
.gentle-refresh .research-choice:focus-visible .research-choice-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.gentle-refresh .research-choice-title {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: bold;
  line-height: 1.25;
  text-wrap: initial;
}
.gentle-refresh .research-choice-summary {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: start;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #58655d;
  font-family: Georgia, serif;
  font-size: .9rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Topic symbols repeat the small organic publication accents. */
.gentle-refresh .research-choice-icon {
  --resource-wash: #e2e8dc;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 0;
  background: transparent;
  color: #536849;
}
.gentle-refresh .research-choice-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--resource-wash);
  border-radius: 42% 58% 49% 51% / 55% 43% 57% 45%;
  transform: rotate(-2deg);
}
.gentle-refresh #research-choice-agents .research-choice-icon { --resource-wash: #f1ece2; color: #78683f; }
.gentle-refresh #research-choice-agents .research-choice-icon::before {
  border-radius: 47% 53% 57% 43% / 42% 52% 48% 58%;
  transform: rotate(1deg);
}
.gentle-refresh #research-choice-attack .research-choice-icon { --resource-wash: #eee7ed; color: #755e72; }
.gentle-refresh #research-choice-attack .research-choice-icon::before {
  border-radius: 55% 45% 42% 58% / 46% 57% 43% 54%;
  transform: rotate(2deg);
}
.gentle-refresh .research-choice-icon svg { width: 24px; height: 26px; }

.gentle-refresh .research-choice-toggle {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  margin-top: 0;
  width: 12px;
  height: 16px;
  color: #41664e;
  font-size: 0;
  transform: scale(.8);
  transform-origin: center;
}
.gentle-refresh .research-choice-toggle::before,
.gentle-refresh .research-choice-toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
.gentle-refresh .research-choice-toggle::before { left: 2px; top: 7px; width: 12px; height: 1px; }
.gentle-refresh .research-choice-toggle::after {
  left: 7px;
  top: 2px;
  width: 1px;
  height: 12px;
  transform: scaleY(1);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.22,1,.36,1);
}
.gentle-refresh .research-choice[aria-expanded='true'] .research-choice-toggle::after { transform: scaleY(0); }

/* The animated panel owns its spacing, so closing it leaves no empty gap. */
.gentle-refresh .research-card-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  overflow: visible;
  overflow-anchor: none;
}
.gentle-refresh .research-detail {
  grid-column: 1 / -1;
  display: block;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.gentle-refresh .research-cards-ready .research-detail { display: flow-root; }
.gentle-refresh .research-detail[hidden] { display: none !important; }
.gentle-refresh .research-detail-inner {
  padding: 22px 0 2px;
  margin: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #e2e7df;
  border-radius: 0;
}
.gentle-refresh .research-cards-ready .research-detail-inner {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 18px 16px;
  border: 0;
}
.gentle-refresh .research-detail-title {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.35;
}
.gentle-refresh .research-cards-ready .research-detail-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.gentle-refresh .research-copy { display: block; min-width: 0; }
.gentle-refresh .research-copy p {
  max-width: none;
  margin: 0;
  color: #435649;
  font-family: Georgia, serif;
  font-size: .95rem;
  line-height: 1.72;
}
.gentle-refresh .research-detail:focus-visible { outline: none; }

.gentle-refresh .research-copy ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.gentle-refresh .research-copy ul li {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  padding-left: 12px;
  font-family: Georgia, serif;
  font-size: .92rem;
  line-height: 1.48;
}
.gentle-refresh .research-copy ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 4.5px;
  background: #c7d3c1;
  border-radius: 45% 55% 43% 57% / 52% 43% 57% 48%;
  transform: rotate(-7deg);
}
.gentle-refresh .research-copy ul li:nth-child(2)::before {
  border-radius: 53% 47% 58% 42% / 45% 55% 45% 55%;
  transform: rotate(10deg) scale(.96, 1.02);
}
.gentle-refresh .research-copy ul li:nth-child(3)::before {
  border-radius: 48% 52% 42% 58% / 58% 44% 56% 42%;
  transform: rotate(-5deg) scale(1.02, .98);
}

@media (min-width: 801px) {
  .gentle-refresh #about > .research-cards-ready[data-research-open='false'] { margin-top: 12px; }
  .gentle-refresh .research-cards-ready[data-research-open='false'] .research-choice { padding-bottom: 6px; }
}
@media (max-width: 900px) {
  .gentle-refresh .research-copy ul { gap: 10px; }
}
@media (min-width: 801px) and (max-width: 900px) {
  .gentle-refresh .research-choice-summary { font-size: .85rem; }
}
@media (max-width: 800px) {
  .gentle-refresh .research-cards-ready::before { content: none; }
  .gentle-refresh .research-card-options { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gentle-refresh .research-choice { margin-bottom: 6px; }
  .gentle-refresh .research-choice[aria-expanded='true'] { margin-bottom: 0; border-radius: 14px 16px 0 0; }
  .gentle-refresh .research-choice-summary { grid-column: 2 / -1; }
  .gentle-refresh .research-detail-inner { padding: 20px 0 24px; }
  .gentle-refresh .research-cards-ready .research-detail-inner {
    margin: 0 0 6px;
    padding: 0 12px 16px;
    border-radius: 0 0 15px 14px;
    background: var(--group-wash);
  }
}
@media (max-width: 480px) {
  .gentle-refresh .research-copy ul { gap: 12px; }
  .gentle-refresh .research-copy li .publication-reference-meta { display: flex; width: fit-content; margin: 3px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gentle-refresh .research-cards-ready::before,
  .gentle-refresh .research-choice,
  .gentle-refresh .research-choice-toggle::after { transition: none; }
}

/* Source: bibtex.css */
/* A compact citation sheet using the shared heading and a plain code block. */
.bibtex-dialog {
  width: min(740px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 22px 26px 26px;
  box-sizing: border-box;
  overflow: auto;
  border: 1px solid #e0e5dc;
  border-radius: 18px;
  background: #fcfcfa;
  color: #404654;
  font: 16px/1.5 Georgia, serif;
}
.bibtex-dialog::backdrop { background: rgba(24,37,30,.24); }
.bibtex-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bibtex-dialog .section-title {
  margin: 0;
  color: #18251e;
  font: 400 25px/1.3 'Abril Fatface', Georgia, serif;
}
.bibtex-dialog .section-title:focus { outline: none; }
.bibtex-dialog h2::after {
  content: '';
  display: block;
}
.bibtex-actions { display: flex; align-items: center; gap: 18px; font-size: .85rem; white-space: nowrap; }
.bibtex-dialog button {
  appearance: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  font: inherit;
  color: #52735e;
  background: transparent;
}
.bibtex-dialog .bibtex-copy { min-width: 42px; font-weight: bold; }
.bibtex-copy:disabled { opacity: .65; cursor: wait; }
.bibtex-dialog .bibtex-copy:hover { color: #243f2f; text-decoration: underline; text-underline-offset: 4px; }
.bibtex-dialog .bibtex-close { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -7px; color: #727b73; }
.bibtex-dialog .bibtex-close:hover { color: #18251e; }
.bibtex-source {
  width: 100%;
  max-height: 60dvh;
  box-sizing: border-box;
  margin: 8px 0 0;
  padding: 16px;
  overflow: auto;
  border: 0;
  color: #34473b;
  background: #f3f4f1;
  border-radius: 8px;
  font: .8rem/1.7 'SF Mono', 'Fira Code', Consolas, monospace;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: #a4afa0 transparent;
  tab-size: 4;
}
.bibtex-source code { display: block; color: inherit; background: none; font: inherit; }
.bibtex-dialog .bibtex-status { margin: 12px 0 0; color: #626e64; font-size: .85rem; }
.bibtex-status:not(.is-visible) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bibtex-dialog :is(button, a, pre):focus-visible { outline: none; }
.bibtex-dialog .bibtex-copy:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.bibtex-dialog .bibtex-close:focus-visible { background: #ececeb; border-radius: 4px; color: #18251e; }
.bibtex-dialog .bibtex-source:focus-visible { background: #edf0e9; }
@media (max-width: 540px) {
  .bibtex-dialog { padding: 18px; }
  .bibtex-heading { gap: 8px; }
  .bibtex-actions { gap: 10px; font-size: .8rem; }
  .bibtex-source { font-size: .72rem; }
}

/* Source: footer.css */
/* Shared footer for the group homepage and profiles. */
.gentle-refresh .site-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 19px;
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 28px 24px;
  color: #6b706a;
  font: .84rem/1.4 Georgia, serif;
}

.footer-hoof-trail {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #9eae95;
}

.footer-hoof-trail svg {
  flex-shrink: 0;
  width: 17px;
  height: 22px;
  transform: translateY(3px) rotate(75deg);
}

.footer-hoof-trail svg:nth-child(even) {
  transform: translateY(-4px) rotate(65deg);
}

.footer-hoof-trail svg:nth-child(1) { opacity: .35; }
.footer-hoof-trail svg:nth-child(2) { opacity: .55; }
.footer-hoof-trail svg:nth-child(3) { opacity: .8; }

@media (max-width: 600px) {
  .gentle-refresh .site-footer {
    justify-content: center;
    gap: 14px;
    padding-inline: 22px;
  }
  .footer-hoof-trail { gap: 12px; }
}

/* Footer: imprint link. */
.gentle-refresh .footer-imprint {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font: 400 14px Georgia, serif;
  transform: translateY(-3px);
  color: inherit;
  text-decoration: none;
}

.gentle-refresh .footer-imprint:hover {
  color: #454b43;
  text-decoration: none;
}

.gentle-refresh .footer-imprint:focus-visible {
  outline: none;
  text-decoration: underline;
}
