/* --- Global proportional font scaling --- */
html {
  font-size: 92%;
}

/* --- Slightly wider content column --- */
:root {
  --main-width: 880px;   /* default ~720–800px depending on version */
}

.main {
  max-width: var(--main-width);
}

/* --- News list rendering (Home + /news/) --- */
.news-entry {
  position: relative;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.news-row {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.news-date {
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
  white-space: nowrap;
}

.news-text {
  flex: 1 1 38rem;
  min-width: 16rem;
}

.news-tag {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.4;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.news-tag-paper {
  background: rgba(66, 133, 244, 0.14);
  border-color: rgba(66, 133, 244, 0.38);
}
.news-tag-generic {
  background: rgba(52, 168, 83, 0.14);
  border-color: rgba(52, 168, 83, 0.38);
}
.news-tag-project {
  background: rgba(251, 188, 5, 0.16);
  border-color: rgba(251, 188, 5, 0.40);
}

.news-link {
  position: absolute;
  inset: 0;
}

/* =========================
   Publications
   ========================= */

.pub-intro {
  margin-bottom: 1.5rem;
  color: var(--secondary);
  font-size: 0.95rem;
}

.pub-year {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pub-item {
  line-height: 1.45;
}

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

.pub-authors {
  font-size: 0.95rem;
  color: var(--secondary);
}

.pub-venue {
  font-size: 0.9rem;
}

.pub-type {
  font-size: 0.75rem;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 6px;
  background: var(--tertiary);
  color: var(--primary);
}

.pub-cite {
  font-size: 0.98rem;
}

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

.pub-me {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-links {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pub-link {
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--tertiary);
  color: var(--primary);
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.pub-link:hover {
  filter: brightness(0.95);
}

.pub-link i {
  margin-right: 6px;
  vertical-align: -1px;
}

/* In press highlight */
.pub-item-inpress {
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 200, 0, 0.10);
}

.pub-inpress {
  font-weight: 600;
  color: var(--secondary);
}

/* Publication type badges */
.pub-type {
  margin-left: 8px;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--tertiary);
  color: var(--primary);
}

/* Color coding */
.pub-type-preprint { background: #e0e0e0; color: #111; } /* gray */
.pub-type-journal { background: #dbeafe; color: #0b2a4a; }
.pub-type-conference { background: #dcfce7; color: #0b3a1c; }
.pub-type-workshop { background: #ffedd5; color: #4a2400; }
.pub-type-other { background: var(--tertiary); color: var(--primary); }
