@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&display=swap');

body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

a {
  color: #b31b1b;
  text-decoration: none;
}

a:hover {
  color: #d04040;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 8px;
}

.header-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.header-info h1 {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.header-info p {
  margin: 2px 0;
  color: #555;
}

.header-info .links {
  margin-top: 8px;
  color: #999;
}

/* Sections */
h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

p {
  margin: 8px 0;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0;
}

/* Tables (experience, news) */
.experience, .news {
  border-collapse: collapse;
  width: 100%;
}

.experience td {
  padding: 4px 0;
  vertical-align: top;
}

.experience .date {
  width: 120px;
  color: #999;
  font-size: 0.9em;
  white-space: nowrap;
  padding-right: 16px;
}

/* News section */
.news td {
  padding: 6px 0;
  vertical-align: baseline;
}

.news .date {
  width: 70px;
  color: #999;
  font-size: 0.9em;
  white-space: nowrap;
  padding-right: 12px;
}

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

.news-tag {
  font-size: 0.8em;
  font-weight: 700;
  color: #b31b1b;
  margin-left: 4px;
}

/* Hidden news toggle */
.hidden-news {
  display: none;
}

.news-toggle {
  font-size: 0.9em;
  color: #999;
  cursor: pointer;
  margin-top: 4px;
}

.news-toggle:hover {
  color: #b31b1b;
}

/* CV button */
.cv-btn {
  background: rgba(179, 27, 27, 0.08);
  border: 1px solid rgba(179, 27, 27, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
}

.cv-btn:hover {
  background: rgba(179, 27, 27, 0.15);
}

/* Footer */
footer {
  font-size: 0.85em;
  color: #999;
}

/* Responsive */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .header-photo img {
    width: 130px;
    height: 130px;
  }

  .experience .date, .news .date {
    width: 70px;
  }
}
