:root {
  --blue: #0d3b78;
  --blue-light: #f3f7fc;
  --line: #d9e2ef;
  --text: #203246;
  --muted: #66778b;
  --white: #ffffff;
  --form-btn: #2f284f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #f7f9fc;
  line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
}

.brand-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

.news-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-alert-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #d62828;
  box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.12);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.page-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0 48px;
}

.page-layout-research {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.research-single-column {
  padding: 32px 0 48px;
}

.content-wide {
  max-width: 100%;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.profile-card h1 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--blue);
}

.profile-role,
.profile-unit,
.profile-school {
  margin: 0 0 6px;
  color: var(--muted);
}

.sidebar-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-block h2,
.content-section h2 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  color: var(--blue);
}

.sidebar-block p {
  margin: 0 0 12px;
}

.sidebar-block ul,
.plain-list,
.timeline-list,
.publication-list {
  margin: 0;
  padding-left: 18px;
}

.content {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
}

.content-section + .content-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.section-kicker {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
}

.news-item time {
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
}

.news-content {
  min-width: 0;
}

.news-content p {
  margin: 6px 0 0;
}

.news-tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid #b9cbe3;
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

.two-column-list {
  columns: 2;
  column-gap: 28px;
}

.two-column-list li,
.plain-list li,
.timeline-list li,
.publication-list li {
  margin-bottom: 10px;
  break-inside: avoid;
}

.small-note {
  color: var(--muted);
  margin-top: 14px;
}

.diagram-figure {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px;
}

.diagram-image {
  width: 100%;
  height: auto;
  display: block;
}

.svg-node-link {
  cursor: pointer;
}

.svg-node-link rect {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.svg-node-link:hover rect {
  fill: #f5f9ff;
  stroke: #8eb1dd;
}

.project-list {
  display: grid;
  gap: 28px;
}

.project-item {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.project-image-placeholder {
  min-height: 180px;
  border: 1px dashed #b9c9dd;
  background: #f8fbff;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  font-weight: 600;
}

.project-image-frame {
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 8px;
  cursor: zoom-in;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
}

.project-content h3 {
  margin: 4px 0 10px;
  color: var(--blue);
  font-size: 1.16rem;
}

.project-content p {
  margin: 0 0 12px;
}

.project-meta {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.faculty-contact-card {
  margin-top: 18px;
  padding: 18px 20px;
  background: #f8fbff;
  border: 1px solid var(--line);
}

.faculty-contact-card p {
  margin: 0 0 12px;
}

.faculty-contact-card p:last-child {
  margin-bottom: 0;
}

.faculty-contact-actions {
  margin-top: 18px;
}

.faculty-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--form-btn);
  color: #ffffff;
  font-weight: 600;
}

.faculty-email-btn:hover {
  text-decoration: none;
  background: #241f3d;
}

.prospective-section p {
  margin: 0 0 12px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  z-index: 999;
}

.image-lightbox.open {
  display: flex;
}

.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  background: white;
  padding: 8px;
}

.lightbox-caption {
  color: white;
  margin-top: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: transparent;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .page-layout,
  .page-layout-research {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .two-column-list {
    columns: 1;
  }

  .project-item {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 22px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

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