:root {
  --primary: #1f4f8c;
  --primary-dark: #173b67;
  --text: #232b33;
  --muted: #617284;
  --border: #d9e1ea;
  --bg: #ffffff;
  --sidebar-bg: #f8fafc;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.masthead__inner {
  width: min(92%, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.site-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.conference {
  display: inline-block;
  color: #0b5ed7;
  background-color: #eaf2ff;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 4px;
}

.nav-links a {
  font-size: 0.98rem;
  color: #314355;
}

.layout {
  width: min(92%, var(--max-width));
  margin: 28px auto 56px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.avatar {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.sidebar h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.sidebar .role {
  margin: 10px 0 4px;
  font-size: 1rem;
  color: #2f3c4a;
  font-weight: 600;
}

.sidebar .org,
.sidebar .place {
  color: var(--muted);
  font-size: 0.98rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.sidebar-links li {
  padding: 8px 0;
  border-top: 1px solid #e5edf5;
  font-size: 0.98rem;
}

.content {
  min-width: 0;
}

.page-title {
  margin: 0 0 10px;
  font-size: 2.15rem;
  color: var(--primary-dark);
}

.lead {
  font-size: 1.06rem;
  color: #33475b;
  margin-top: 0;
}

.section-title {
  color: var(--primary);
  font-size: 1.55rem;
  margin: 34px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d7e5f2;
}

.item {
  margin-bottom: 18px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}

.item-title {
  font-weight: 700;
  font-size: 1.08rem;
}

.item-subtitle {
  color: #2f3c4a;
}

.item-date {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.98rem;
}

.meta,
.note {
  color: var(--muted);
  font-size: 0.98rem;
}

ul.clean-list {
  margin: 8px 0 0 22px;
}

ul.clean-list li { margin-bottom: 4px; }

.pub-list {
  display: grid;
  gap: 18px;
}

.pub-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
}

.pub-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #cddbeb;
  color: var(--primary-dark);
  font-size: 0.86rem;
  margin-top: 8px;
}

.footer {
  width: min(92%, var(--max-width));
  margin: 0 auto 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fcfdff;
}

.small {
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .masthead__inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    gap: 14px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.35rem;
  }
}
