/* Site-specific component styles. The base visual system lives in style.css. */

.timeline-list {
  margin-left: 0;
  list-style: none;
  padding-left: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 24px;
}

.timeline-item:not(:last-child)::before {
  display: none;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--jet);
}

.timeline-list.scrollable-news {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -4px;
  scroll-behavior: smooth;
}

.timeline-list.scrollable-news::-webkit-scrollbar {
  width: 5px;
}

.timeline-list.scrollable-news::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.timeline-list.scrollable-news::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.publications-wrapper {
  position: relative;
}

.year-index {
  position: fixed;
  right: 30px;
  top: 50%;
  z-index: 100;
  padding: 14px 10px;
  transform: translateY(-50%);
  background: rgba(245, 245, 245, 0.95);
  border: 1px solid rgba(221, 221, 221, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.year-index ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.year-index li {
  text-align: center;
}

.year-index a {
  display: inline-block;
  padding: 4px 10px;
  color: hsl(210, 80%, 52%);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.year-index a:hover {
  color: #c00;
  background: #e0e0e0;
}

.year-index a.active {
  color: white;
  font-weight: 600;
  background: hsl(210, 80%, 52%);
  box-shadow: 0 2px 6px rgba(65, 105, 225, 0.3);
}

.niceButton3 {
  display: inline-block;
  padding: 1px 16px;
  margin: 2px 10px;
  color: var(--white-1);
  font-size: 15px;
  text-align: center;
  background-color: var(--jet);
  border: 1px solid var(--onyx);
  border-radius: 12px;
  transition: background-color 0.4s, color 0.4s;
}

.niceButton3:hover,
.niceButton3:focus-visible {
  color: var(--eerie-black-1);
  background-color: var(--vegas-gold);
}

.underlinea {
  color: var(--orange-yellow-crayola);
  font-size: 20px;
}

.underlinea:hover,
.underlinea:focus-visible {
  color: var(--orange-yellow-crayola);
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 80px;
}

.title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.profile-affiliation {
  font-size: 18px !important;
  text-align: center;
}

.avatar-box img {
  display: block;
  width: 80px;
}

.profile-scholar {
  font-size: 15px;
  text-align: center;
}

.site-updated {
  margin-top: 20px;
  font-size: 14px;
}

.content-text,
.selected-publication-title,
.publication-title,
.publication-venue,
.publication-authors {
  font-size: 18px;
}

.timeline-list .selected-publication-title {
  color: var(--white-2);
}

.content-text-justify {
  text-align: justify;
}

.publication-title {
  color: var(--white-2);
  font-weight: var(--fw-600);
}

.publication-venue {
  color: var(--white-1);
}

.publication-self,
.timeline-text .publication-self {
  color: hsl(45, 54%, 58%);
  font-size: 18px;
  font-weight: bold;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.talk-body-text,
.talk-meta {
  font-size: 20px;
}

.talk-body-text {
  line-height: 1.5;
  text-align: justify;
}

.talk-hero {
  margin-inline: auto;
}

.talk-hero-full {
  width: 100%;
  height: 100%;
}

.talk-hero-compact {
  width: 40%;
  height: auto;
  text-align: center;
}

.talk-hero-compact img {
  max-width: 100%;
  height: auto;
}

.talk-meta strong {
  color: var(--white-2);
}

.talk-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 70px;
}

@media (max-width: 1200px) {
  .year-index {
    position: relative;
    right: auto;
    top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
    transform: none;
    background: var(--eerie-black-2);
    border: 1px solid var(--jet);
  }

  .year-index ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 580px) {
  .avatar-box img {
    width: 120px;
  }
}

@media (min-width: 1250px) {
  .avatar-box img {
    width: 150px;
  }
}

@media (max-width: 579px) {
  .navbar-list {
    flex-wrap: nowrap;
    padding-inline: 4px;
  }

  .navbar-link {
    min-height: 48px;
    padding: 14px 5px;
    font-size: 13px;
    text-align: center;
  }

  .content-text-justify {
    text-align: left;
  }

  .talk-body-text {
    text-align: left;
  }

  .talk-hero-compact {
    width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
