:root {
  --global-theme-color: #225b85;
  --global-hover-color: #163f5e;
  --academic-line: #e3e7eb;
  --academic-muted: #66717d;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
body > .container {
  max-width: 980px;
}
/* Match Bootstrap's layer to override its important mt-5 spacing utility. */
@layer components {
  body > .container.mt-5 {
    margin-top: 20px !important;
  }
  @media (max-width: 700px) {
    body > .container.mt-5 {
      margin-top: 12px !important;
    }
  }
}
.post-header h1,
.post-content h2 {
  font-weight: 500;
}
.skip-link {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 9999;
  padding: 8px 16px;
  background: #fff;
}
.skip-link:focus {
  top: 12px;
}
.academic-site {
  padding: 8px 0 28px;
}
.academic-site h1,
.academic-site h2,
.academic-site h3 {
  color: var(--global-text-color);
}
.academic-site h2 {
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.academic-site a {
  text-decoration: none;
}
.academic-site a:hover {
  text-decoration: underline;
}
.academic-site a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--global-theme-color);
  outline-offset: 4px;
}
.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 40px;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--academic-muted);
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.profile-header h1 {
  font-size: 2.65rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.profile-header h1 span {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-left: 8px;
  white-space: nowrap;
}
.position {
  font-size: 1.08rem;
  margin: 0 0 5px;
}
.affiliation {
  color: var(--academic-muted);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.portrait {
  width: 248px;
  height: 248px;
  object-fit: cover;
  border-radius: 4px;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  font-size: 0.95rem;
}
.profile-resources {
  margin-top: 7px;
  font-weight: 500;
}
.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 11px 0;
  border-top: 1px solid var(--academic-line);
  border-bottom: 1px solid var(--academic-line);
  font-size: 0.875rem;
}
.section-nav a {
  color: var(--academic-muted);
}
.home-section {
  margin-top: 26px;
}
.biography p {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}
.biography strong {
  font-weight: 600;
}
.recruitment {
  border-left: 3px solid var(--global-theme-color);
  background: #f4f7fa;
  padding: 14px 22px;
  margin: 20px 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.recruitment h2 {
  font-size: 1.075rem;
  font-weight: 600;
  margin: 0 0 6px;
}
.recruitment h2 span {
  font-weight: 400;
}
.recruitment p {
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
}
.recruitment-link {
  font-size: 0.9rem;
  white-space: nowrap;
  font-weight: 600;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  margin: 6px 0;
  font-size: 1rem;
  line-height: 1.3;
}
.news-list time {
  color: var(--academic-muted);
  font-size: 0.875rem;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.news-list p {
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.section-heading > a {
  font-size: 0.94rem;
  white-space: nowrap;
}
.academic-site .publications {
  margin-top: 0;
}
.publications ol.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
}
.publications ol.bibliography > li {
  margin: 0;
  padding: 0;
}
.publications h2.bibliography {
  color: var(--academic-muted);
  border-top: 1px solid var(--academic-line);
  padding-top: 16px;
  margin: 22px 0 4px;
  font-size: 1.2rem;
}
.publication {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid #b8c2cc;
  scroll-margin-top: 95px;
}
.publication-figure img {
  width: 180px;
  height: 98px;
  object-fit: contain;
  background: #fff;
  display: block;
  border-radius: 2px;
}
.publication h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.012em;
}
.paper-index {
  color: var(--academic-muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-right: 3px;
}
.selected-publications .paper-index {
  display: none;
}
.publication .authors {
  font-size: 0.95rem;
  line-height: 1.2;
  margin: 0 0 2px;
}
.publication .authors strong {
  font-weight: 650;
}
.publication .venue {
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--academic-muted);
  margin: 0 0 4px;
}
.paper-year {
  white-space: nowrap;
}
.paper-links {
  display: flex;
  gap: 4px 14px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: 1.25;
}
.paper-links a {
  font-weight: 500;
}
.all-papers-link {
  font-size: 0.95rem;
  text-align: right;
  margin: 12px 0 0;
}
.subheading {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 9px;
}
.current-student {
  display: flex;
  gap: 22px;
  font-size: 1rem;
}
.current-student span {
  color: var(--academic-muted);
}
.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.3;
}
.students-table th {
  color: var(--academic-muted);
  font-weight: 500;
  text-align: left;
  font-size: 0.85rem;
}
.students-table th,
.students-table td {
  padding: 5px 12px 5px 0;
  border-bottom: 1px solid var(--academic-line);
  vertical-align: top;
}
.students-table th:first-child {
  width: 23%;
}
.students-table th:nth-child(2) {
  width: 16%;
}
.students-table td:nth-child(2) {
  white-space: nowrap;
  color: var(--academic-muted);
  font-variant-numeric: tabular-nums;
}
.latest-posts {
  border-top: 1px solid var(--academic-line);
  padding-top: 20px;
}
.muted {
  color: var(--academic-muted);
  font-size: 0.95rem;
}
.page-heading {
  margin: 10px 0 24px;
}
.page-heading h1 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.page-heading > p:last-child {
  color: var(--academic-muted);
  max-width: 660px;
  font-size: 1.05rem;
}
.publication-filters {
  display: grid;
  grid-template-columns: 1fr 125px 190px;
  gap: 16px;
  margin-bottom: 12px;
}
.publication-filters label {
  display: block;
  font-size: 0.85rem;
  color: var(--academic-muted);
}
.publication-filters input,
.publication-filters select {
  width: 100%;
  display: block;
  border: 1.5px solid #99a6b4;
  border-radius: 3px;
  background: var(--global-bg-color);
  color: var(--global-text-color);
  padding: 9px 11px;
  margin-top: 6px;
  font: inherit;
  font-size: 1rem;
  height: 42px;
}
.academic-post-list {
  list-style: none;
  padding: 0;
}
.academic-post-list li {
  border-top: 1px solid var(--academic-line);
  padding: 20px 0;
}
.academic-post-list h2 {
  font-size: 1.4rem;
  margin: 8px 0;
}
.academic-post-list p {
  font-size: 1.05rem;
}
.post-date {
  color: var(--academic-muted);
  font-size: 0.875rem !important;
  margin: 0;
}
.draft-label {
  background: #f1f4f6;
  padding: 4px 8px;
  border-radius: 3px;
}
.read-post {
  font-size: 0.95rem;
}
.blog-empty {
  margin: 65px 0 130px;
  border-top: 1px solid var(--academic-line);
  padding-top: 30px;
}
.blog-empty h2 {
  font-size: 1.3rem;
}
.blog-empty p {
  color: var(--academic-muted);
}
.cv-download {
  display: inline-block;
  border: 1px solid var(--global-theme-color);
  padding: 12px 20px;
  border-radius: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .profile-header {
    grid-template-columns: minmax(0, 1fr) 208px;
    gap: 28px;
  }
  .portrait {
    width: 208px;
    height: 208px;
  }
}
@media (max-width: 700px) {
  .academic-site {
    padding-top: 0;
  }
  .profile-header {
    grid-template-columns: minmax(0, 1fr) 144px;
    gap: 18px;
    align-items: start;
  }
  .portrait {
    width: 144px;
    height: 144px;
    margin-top: 26px;
  }
  .profile-header h1 {
    font-size: 2rem;
  }
  .profile-header h1 span {
    display: block;
    margin: 8px 0 0;
    font-size: 1.2rem;
  }
  .eyebrow {
    font-size: 0.72rem;
  }
  .affiliation {
    font-size: 0.92rem;
  }
  .profile-links {
    font-size: 0.875rem;
    gap: 5px 12px;
  }
  .section-nav {
    gap: 8px 18px;
  }
  .recruitment {
    display: block;
    padding: 12px 17px;
  }
  .recruitment-link {
    display: inline-block;
    margin-top: 8px;
  }
  .publication {
    grid-template-columns: 132px 1fr;
    gap: 16px;
  }
  .publication-figure img {
    width: 132px;
    height: 85px;
  }
  .publication h3 {
    font-size: 1.0625rem;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading > a {
    font-size: 0.875rem;
    margin-top: 5px;
  }
  .academic-site h2 {
    font-size: 1.4rem;
  }
  .publication-filters {
    grid-template-columns: 1fr 1fr;
  }
  .publication-search {
    grid-column: 1 / -1;
  }
  .students-table {
    font-size: 0.875rem;
  }
  .students-table td:nth-child(2) {
    white-space: normal;
  }
}
@media (max-width: 540px) {
  .profile-header {
    row-gap: 14px;
    align-items: center;
  }
  .profile-info {
    display: contents;
  }
  .profile-identity {
    grid-column: 1;
    grid-row: 1;
  }
  .profile-header h1 {
    margin-bottom: 0;
  }
  .portrait {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
  .profile-details {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 430px) {
  .profile-header {
    grid-template-columns: minmax(0, 1fr) 112px;
    column-gap: 12px;
  }
  .portrait {
    width: 112px;
    height: 112px;
  }
  .profile-header h1 {
    font-size: 1.8rem;
  }
  .publication {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .publication-figure img {
    width: 128px;
    height: 66px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 0 12px;
    margin-bottom: 6px;
  }
  .section-heading h2 {
    margin-bottom: 6px;
  }
  .students-table th:first-child {
    width: 25%;
  }
  .students-table th:nth-child(2) {
    width: 19%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
