:root {
  --primary: #2563eb;
  --primary-light: #eaf2ff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-soft: #f8fbff;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text-main);
}

a,
a:visited {
  color: var(--primary);
}

a:hover,
a:focus {
  color: #1d4ed8;
}

.site-shell {
  max-width: 980px !important;
}

#publications-root {
  padding: 0 20px;
}

heading,
.section-title {
  font-size: 24px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-main);
  position: relative;
}

heading::after,
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-top: 8px;
  border-radius: 999px;
}

.pub-year {
  margin: 22px 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.pub-list {
  border-spacing: 0 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.pub-list td {
  text-align: left;
}

.pub-item {
  padding: 12px 16px !important;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-light);
  background: #fafcff;
  border-radius: 8px;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.2s ease;
  text-align: left;
}

.pub-item:hover {
  background: #f2f7ff;
}

.pub-title {
  font-weight: 700;
}

.pub-authors {
  color: var(--text-muted);
}

.me {
  font-weight: 700;
  color: #111827;
}

.venue {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.pub-links {
  margin-top: 6px;
}

.pub-link {
  display: inline-block;
  margin-right: 6px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
}

.pub-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.news-box {
  max-height: 220px;
  overflow-y: auto;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.45;
  box-shadow: inset 0 -12px 12px -12px rgba(0, 0, 0, 0.18);
}

.news-box p {
  margin: 0 0 10px 0;
}

.news-box p:last-child {
  margin-bottom: 0;
}

.news-date {
  font-weight: 700;
}

.news-box::-webkit-scrollbar {
  width: 6px;
}

.news-box::-webkit-scrollbar-thumb {
  background: #c8d6e8;
  border-radius: 6px;
}

.news-box::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 768px) {
  .site-shell {
    max-width: 100% !important;
  }

  body,
  td,
  th,
  tr,
  p,
  a {
    font-size: 16px !important;
  }

  name {
    font-size: 28px !important;
  }
}
