@charset "UTF-8";
:root {
  --ink: #172736;
  --body: #536170;
  --muted: #5f7385;
  --blue: #2a5f85;
  --line: #dce5ec;
  --glass: rgba(255, 255, 255, 0.65);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--font);
  color: var(--ink);
  background: #f8fafc;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse 630px 440px at 85% 9%, rgba(171, 204, 228, 0.32), transparent 75%),
    radial-gradient(ellipse 550px 380px at 3% 24%, rgba(210, 208, 231, 0.19), transparent 75%),
    linear-gradient(180deg, #f5f8fc 0, #fcfcfd 55%, #f7f9fb 100%);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #467da7;
  outline-offset: 5px;
}
a:hover {
  color: var(--blue);
}
button:disabled {
  cursor: wait;
}
img {
  display: block;
  max-width: 100%;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon.small {
  width: 15px;
  height: 15px;
}
.glass {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 #fff,
    0 6px 24px #2d4b6510,
    0 1px 3px #2d4b6505;
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: -100px;
  left: 24px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 20px;
  z-index: 10;
  margin: 20px auto 0;
  padding: 0 32px;
  max-width: 1124px;
}
.navigation {
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 20px;
}
.wordmark {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.55px;
  white-space: nowrap;
}
.wordmark-dot {
  color: #5f8fae;
}
.nav-links {
  display: flex;
  gap: 7px;
  align-items: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 13px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 3px;
  color: #566371;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(228, 237, 244, 0.7);
  color: var(--ink);
}
.nav-contact {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.page-shell {
  max-width: 1124px;
  padding: 0 32px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 314px;
  gap: 88px;
  align-items: center;
  padding: 76px 0 65px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.15px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  margin: 0 0 24px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5689a8;
  box-shadow: 0 0 0 4px #6198bf10;
}
.eyebrow-divider {
  color: #aebdca;
  margin: 0 3px;
}
h1 {
  font-size: 80px;
  line-height: 1.04;
  font-weight: 550;
  letter-spacing: -4.3px;
  margin: 0 0 19px;
}
.name-dot {
  color: #5487a8;
}
.hero-heading {
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 0 0 18px;
}
.hero-description {
  font-size: 15px;
  line-height: 1.85;
  max-width: 535px;
  color: var(--body);
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 27px 0 24px;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 550;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button-primary {
  background: #223e52;
  color: #fff;
  box-shadow:
    inset 0 1px 0 #ffffff25,
    0 3px 7px #223e5212;
}
.button-primary:hover {
  background: #31566e;
  color: #fff;
}
.button-glass {
  background: #ffffffa8;
  border: 1px solid #fff;
  box-shadow:
    0 2px 5px #2d4b6508,
    inset 0 1px 0 #fff;
}
.button-glass:hover {
  background: white;
}
.text-link {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
}
.github-link {
  padding: 10px;
}
.research-topics {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: #657889;
  font-size: 10px;
  letter-spacing: 0.15px;
}
.research-topics span + span:before {
  content: "·";
  margin-right: 15px;
  color: #879bab;
}
.portrait-card {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 24px;
  transform: rotate(1.4deg);
}
.portrait-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px;
  background: radial-gradient(ellipse, #b2cce233, transparent 70%);
  border-radius: 40px;
}
.portrait-wrap {
  overflow: hidden;
  border-radius: 16px;
  background: #d9e0e5;
}
.portrait-wrap img {
  width: 100%;
  height: 267px;
  object-fit: cover;
  object-position: 50% 46%;
}
.portrait-card figcaption {
  padding: 17px 10px 9px;
  transform: rotate(-1.4deg);
}
.portrait-label {
  display: block;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #60788b;
  margin-bottom: 7px;
}
.portrait-card figcaption a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #4c6273;
}
.section {
  scroll-margin-top: 12px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.section-eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.85px;
  margin: 0;
  line-height: 1.2;
}
.research-section {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}
.publication {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  border: 1px solid #e0e7ed;
  border-radius: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 16px #1e3b5003;
}
.paper-image {
  align-self: start;
  background: #fff;
  border: 1px solid #e9edf1;
  border-radius: 12px;
  overflow: hidden;
  padding: 12px;
  margin-top: 3px;
}
.paper-image img {
  width: 100%;
  height: auto;
}
.paper-venue {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
  font-size: 10px;
  color: #6e7b87;
}
.venue-badge {
  color: #456b87;
  border: 1px solid #dbe6ef;
  background: #eef4f8;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.paper-content h3 {
  font-size: 20px;
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  max-width: 670px;
}
.paper-authors {
  font-size: 13px;
  color: #5b6976;
  line-height: 1.8;
  margin: 0 0 4px;
}
.paper-authors strong {
  color: #344e61;
  font-weight: 600;
}
.paper-proceedings {
  font-size: 12px;
  color: #5e6d7b;
  line-height: 1.75;
  margin: 0 0 17px;
  max-width: 630px;
}
.paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.paper-actions a,
.paper-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  background: #ffffffa6;
  min-height: 33px;
  padding: 4px 10px;
  font-size: 10px;
  color: #415b70;
}
.paper-actions a:hover,
.paper-actions button:hover {
  background: #edf3f8;
  border-color: #cbdce9;
}
.paper-actions .icon {
  width: 14px;
  height: 14px;
}
.bibtex-panel {
  background: #f1f5f8;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 16px;
  min-width: 0;
}
.bibtex-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 10px;
  color: #5e7284;
  letter-spacing: 1px;
}
.bibtex-toolbar button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d3dfe8;
  border-radius: 6px;
  background: #fff;
  padding: 5px 9px;
  letter-spacing: 0;
}
.bibtex-panel pre {
  max-height: 250px;
  overflow: auto;
  margin: 0;
  padding: 0 12px 12px;
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #40596b;
}
.copy-status {
  font-size: 11px;
  padding: 0 12px;
  margin: 0 0 10px;
}
.copy-status:empty {
  display: none;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 70px;
  padding: 29px 0 57px;
  border-top: 1px solid var(--line);
}
.lower-grid .section-heading {
  margin-bottom: 25px;
}
.lower-grid h2 {
  font-size: 25px;
}
.about-prose {
  font-size: 14px;
  line-height: 1.95;
  color: var(--body);
}
.about-prose p {
  margin: 0 0 17px;
}
.about-prose p:last-child {
  margin-bottom: 0;
}
.about-prose a,
.news-list a {
  color: #355e7d;
  text-decoration: underline;
  text-decoration-color: #a8bfce90;
  text-underline-offset: 3px;
}
.about-prose a:hover,
.news-list a:hover {
  text-decoration-color: currentColor;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list li {
  position: relative;
  padding: 0 0 23px 18px;
  border-left: 1px solid #dce5ed;
}
.news-list li:last-child {
  padding-bottom: 0;
}
.news-list li:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d9ab0;
  box-shadow: 0 0 0 4px #f9fbfc;
}
.news-list time {
  display: block;
  color: #658096;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}
.news-list p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--body);
  margin: 0;
}
.news-list strong {
  font-weight: 600;
  color: #354e62;
}
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 31px 32px;
  border-radius: 19px;
  background: linear-gradient(110deg, #ffffffba, #edf4fab0);
  margin-bottom: 32px;
}
.contact-section h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 500;
  margin: 0 0 10px;
}
.contact-section p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.9;
  max-width: 455px;
  color: #65798b;
  margin: 0;
}
.contact-email {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: #385972;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 30px;
  color: #627484;
  font-size: 11px;
}
.site-footer p {
  margin: 0;
}
.footer-divider {
  padding: 0 8px;
  color: #b1bec9;
}
.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.footer-links button {
  border: 0;
  padding: 6px 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
.footer-links button:hover {
  color: var(--blue);
}
dialog {
  max-width: calc(100% - 40px);
  width: 350px;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 80px #203e5433;
  background: #fcfdff;
  color: var(--ink);
}
dialog::backdrop {
  background: #1b344466;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
.dialog-heading button {
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 26px;
}
dialog img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
dialog p {
  font-size: 12px;
  color: var(--body);
  text-align: center;
  margin: 18px 0 0;
}
@media (min-width: 1440px) {
  .hero {
    padding-top: 105px;
    padding-bottom: 90px;
  }
  .page-shell,
  .site-header {
    max-width: 1184px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 334px;
    gap: 100px;
  }
  .portrait-wrap img {
    height: 285px;
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) 270px;
    padding-top: 70px;
    padding-bottom: 60px;
  }
  h1 {
    font-size: 69px;
  }
  .hero-heading {
    font-size: 25px;
  }
  .portrait-wrap img {
    height: 240px;
  }
  .hero-description {
    font-size: 14px;
  }
  .lower-grid {
    gap: 38px;
  }
  .research-topics {
    gap: 10px;
    font-size: 9px;
  }
  .research-topics span + span:before {
    margin-right: 10px;
  }
  .publication {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 23px;
  }
  .contact-section {
    padding: 27px;
    gap: 25px;
  }
  .contact-email {
    font-size: 12px;
  }
  .nav-link {
    padding: 10px;
  }
  .navigation {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  :root {
    scroll-padding-top: 100px;
  }
  .site-header {
    padding: 0 20px;
    top: 12px;
    margin-top: 12px;
  }
  .navigation {
    height: 58px;
    padding: 0 16px;
    border-radius: 15px;
  }
  .wordmark {
    font-size: 16px;
  }
  .nav-contact {
    font-size: 11px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-link {
    font-size: 11px;
    padding: 9px;
  }
  .page-shell {
    padding: 0 24px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 22px;
    padding-top: 58px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.3px;
    gap: 6px;
  }
  h1 {
    font-size: 58px;
    letter-spacing: -3px;
  }
  .hero-heading {
    font-size: 22px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.9;
  }
  .portrait-wrap img {
    height: 210px;
  }
  .portrait-card figcaption {
    padding: 13px 5px 6px;
  }
  .portrait-card figcaption a {
    font-size: 10px;
  }
  .portrait-label {
    font-size: 8px;
  }
  .hero-actions {
    gap: 7px;
    margin: 22px 0;
  }
  .button {
    padding: 0 11px;
    font-size: 10px;
    min-height: 40px;
    gap: 7px;
  }
  .github-link {
    font-size: 10px;
    padding: 6px;
  }
  .research-topics {
    font-size: 9px;
    gap: 7px;
  }
  .research-topics span + span:before {
    margin-right: 7px;
  }
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 30px;
  }
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .contact-email {
    font-size: 13px;
  }
  .publication {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }
  .paper-content h3 {
    font-size: 17px;
  }
  .paper-authors {
    font-size: 11px;
  }
  .paper-proceedings {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }
  .footer-links {
    gap: 23px;
  }
  .contact-section h2 {
    font-size: 22px;
  }
}
@media (max-width: 580px) {
  body {
    background: radial-gradient(ellipse 400px 500px at 100% 17%, #c0d9ec4d, transparent 80%), linear-gradient(180deg, #f5f8fc, #fcfcfd 60%, #f7f9fb);
  }
  .site-header {
    padding: 0 14px;
  }
  .navigation {
    gap: 8px;
    padding: 0 13px;
  }
  .nav-links {
    margin-left: auto;
  }
  .nav-link {
    font-size: 10px;
    padding: 8px;
  }
  .nav-contact {
    display: none;
  }
  .wordmark {
    font-size: 15px;
  }
  .page-shell {
    padding: 0 22px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 33px;
    padding: 46px 0 38px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.6px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(48px, 16.5vw, 66px);
    margin-bottom: 15px;
    letter-spacing: -3.5px;
  }
  .hero-heading {
    font-size: clamp(20px, 6.4vw, 25px);
    letter-spacing: -0.7px;
    margin-bottom: 15px;
  }
  .hero-description {
    font-size: 14px;
    line-height: 1.85;
  }
  .hero-actions {
    margin: 23px 0 22px;
    gap: 7px;
  }
  .button {
    font-size: 11px;
    min-height: 43px;
    padding: 0 11px;
  }
  .github-link {
    font-size: 11px;
  }
  .research-topics {
    font-size: 9px;
    gap: 8px;
    line-height: 1.8;
  }
  .research-topics span + span:before {
    margin-right: 8px;
  }
  .portrait-card {
    width: 100%;
    max-width: 340px;
    justify-self: center;
    padding: 9px;
    border-radius: 21px;
    transform: rotate(0.7deg);
  }
  .portrait-wrap {
    border-radius: 14px;
  }
  .portrait-wrap img {
    height: auto;
    aspect-ratio: 1.4;
    object-position: 50% 36%;
    object-fit: cover;
  }
  .portrait-card figcaption {
    padding: 13px 8px 7px;
    transform: rotate(-0.7deg);
  }
  .portrait-label {
    font-size: 8px;
  }
  .portrait-card figcaption a {
    font-size: 11px;
  }
  .research-section {
    padding: 28px 0 33px;
  }
  .section-heading {
    gap: 12px;
    margin-bottom: 21px;
    align-items: center;
  }
  .section-heading h2 {
    font-size: 23px;
    letter-spacing: -0.7px;
  }
  .section-eyebrow {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .publication {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .paper-image {
    width: 155px;
    margin: 0;
    background: #fff;
    padding: 7px;
    justify-self: start;
  }
  .paper-venue {
    font-size: 10px;
    margin-bottom: 11px;
  }
  .paper-content h3 {
    font-size: 19px;
    line-height: 1.5;
    letter-spacing: -0.3px;
  }
  .paper-authors {
    font-size: 12px;
    line-height: 1.85;
    margin-bottom: 8px;
  }
  .paper-proceedings {
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 17px;
  }
  .paper-actions {
    gap: 7px;
  }
  .paper-actions a,
  .paper-actions button {
    min-height: 38px;
    font-size: 10px;
    padding: 5px 9px;
  }
  .lower-grid {
    gap: 34px;
    padding: 27px 0 35px;
  }
  .lower-grid .section-heading {
    margin-bottom: 19px;
  }
  .about-prose {
    font-size: 13px;
    line-height: 1.95;
  }
  .news-list p {
    font-size: 12px;
    line-height: 1.9;
  }
  .news-list time {
    font-size: 9px;
  }
  .contact-section {
    padding: 25px 22px;
    gap: 22px;
    border-radius: 17px;
    margin-bottom: 26px;
  }
  .contact-section h2 {
    font-size: 24px;
    line-height: 1.35;
    max-width: 240px;
  }
  .contact-section p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.85;
  }
  .contact-email {
    font-size: 12px;
    gap: 9px;
  }
  .site-footer {
    font-size: 10px;
    padding-bottom: 23px;
  }
  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  .button:hover {
    transform: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: #f5f8fcf5;
    border-color: #dce5ec;
  }
}

/* Shared navigation and the teaching page. */
.navigation {
  position: relative;
}
.menu-toggle {
  display: none;
}
.page-intro {
  padding: 64px 0 49px;
  max-width: 790px;
}
.back-link {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 33px;
}
.back-link .icon {
  transform: rotate(180deg);
  width: 15px;
}
.page-intro .section-eyebrow {
  margin-bottom: 18px;
}
.page-intro h1 {
  font-size: 68px;
  letter-spacing: -3.4px;
  margin-bottom: 19px;
}
.page-lead {
  color: var(--body);
  font-size: 16px;
  line-height: 1.85;
  max-width: 650px;
  margin: 0;
}
.teaching-section {
  border-top: 1px solid var(--line);
  padding-top: 31px;
}
.teaching-section .section-heading {
  margin-bottom: 29px;
}
.teaching-location {
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 3px;
}
.teaching-list {
  border: 1px solid #e0e7ed;
  border-radius: 20px;
  background: #ffffff91;
  overflow: hidden;
}
.teaching-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 35px;
  padding: 36px;
}
.teaching-entry + .teaching-entry {
  border-top: 1px solid var(--line);
}
.teaching-period {
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.teaching-period time {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 600;
  color: #5b778e;
}
.period-line {
  display: block;
  width: 1px;
  height: 22px;
  background: #c5d6e3;
  margin-left: 3px;
}
.teaching-duration {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.teaching-institution {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}
.teaching-details h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.4;
  margin: 0 0 9px;
}
.teaching-details h3 a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.teaching-details h3 .icon {
  width: 17px;
  color: #6f8ca3;
}
.teaching-role {
  font-size: 13px;
  color: #425b6e;
  margin: 0 0 21px;
}
.teaching-role span {
  color: #64798a;
}
.teaching-course {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  padding: 15px 17px;
  border: 1px solid #e2eaf0;
  border-radius: 10px;
  background: #f4f8fb9c;
}
.course-code {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 7px;
  background: #e7f0f6;
  color: #426781;
  border-radius: 5px;
}
.teaching-course h4 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.15px;
  margin: 0;
  line-height: 1.6;
}
.teaching-meta {
  font-size: 11px;
  line-height: 1.9;
  color: #657b8e;
  margin: 14px 0 0;
}
.teaching-meta span {
  padding: 0 6px;
  color: #9aabb9;
}
.teaching-contact {
  margin: 35px 0 38px;
  padding: 26px 30px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.teaching-contact h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.teaching-contact p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.error-content {
  min-height: 65vh;
  padding-top: 95px;
}
.error-content h1 {
  font-size: 54px;
  letter-spacing: -2px;
}
.news-photos {
  margin-top: 12px;
}
.news-photos summary {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #426781;
  font-size: 11px;
  width: fit-content;
  list-style: none;
}
.news-photos summary::-webkit-details-marker {
  display: none;
}
.news-photos summary:focus-visible {
  outline: 3px solid #467da7;
  outline-offset: 4px;
}
.news-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.news-photo-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border: 1px solid #e0e7ed;
  border-radius: 9px;
}
@media (max-width: 760px) {
  .navigation {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .nav-contact {
    display: none;
  }
  .nav-links {
    flex-basis: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .js-enabled .menu-toggle {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    border: 1px solid #dce6ee;
    background: #ffffffb0;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 11px;
  }
  .menu-toggle .icon {
    width: 16px;
    height: 16px;
  }
  .js-enabled .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    padding: 9px;
    background: #f8fbfef5;
    border: 1px solid #fff;
    box-shadow: 0 10px 30px #2d4b6520;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-radius: 14px;
  }
  .js-enabled .menu-open .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .menu-open .nav-link {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 13px;
  }
  .page-intro {
    padding: 47px 0 37px;
  }
  .page-intro h1 {
    font-size: 58px;
  }
  .teaching-entry {
    grid-template-columns: 105px minmax(0, 1fr);
    padding: 27px;
    gap: 25px;
  }
  .teaching-details h3 {
    font-size: 23px;
  }
}
@media (max-width: 580px) {
  .navigation {
    padding: 9px 13px;
  }
  .page-intro {
    padding: 33px 0 32px;
  }
  .back-link {
    margin-bottom: 29px;
  }
  .page-intro h1 {
    font-size: 52px;
    letter-spacing: -2.6px;
  }
  .page-lead {
    font-size: 14px;
    line-height: 1.9;
  }
  .teaching-section {
    padding-top: 26px;
  }
  .teaching-section .section-heading {
    margin-bottom: 22px;
  }
  .teaching-location {
    display: none;
  }
  .teaching-list {
    border-radius: 17px;
  }
  .teaching-entry {
    grid-template-columns: 1fr;
    gap: 21px;
    padding: 24px 21px;
  }
  .teaching-period {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding: 0;
  }
  .teaching-period time {
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .period-line {
    width: 16px;
    height: 1px;
    margin: 0;
  }
  .teaching-duration {
    font-size: 10px;
    margin: 0 0 0 3px;
  }
  .teaching-institution {
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .teaching-details h3 {
    font-size: 23px;
    line-height: 1.45;
  }
  .teaching-role {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .teaching-course {
    padding: 13px;
    gap: 9px;
  }
  .teaching-course h4 {
    font-size: 13px;
  }
  .teaching-meta {
    font-size: 11px;
    margin-top: 13px;
  }
  .teaching-contact {
    padding: 24px 21px;
    align-items: flex-start;
    margin: 28px 0 29px;
  }
  .teaching-contact h2 {
    font-size: 21px;
  }
  .teaching-contact .button {
    padding: 0 11px;
  }
  .error-content {
    padding-top: 60px;
  }
  .error-content h1 {
    font-size: 43px;
  }
}

.teaching-course + .teaching-course {
  margin-top: 10px;
}
