/* ============================================================
   components.css — Reusable interactive component styles
   ============================================================ */

/* --- Accordion expand indicator ------------------------ */
.publication__expand-icon {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  font-size: 0.8rem;
  transition: transform 0.35s ease;
  align-self: center;
}
.publication__card--open .publication__expand-icon {
  transform: rotate(180deg);
}

/* --- Tag / badge --------------------------------------- */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.1rem 0.55rem;
  border-radius: 3px;
  background: var(--color-bg-warm);
  color: var(--color-text-tertiary);
  border: 1px solid var(--color-border-light);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}

/* --- News list ----------------------------------------- */
.news__item {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.92rem;
  align-items: baseline;
}
.news__item:last-child {
  border-bottom: none;
}
.news__date {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
  font-size: 0.78rem;
  font-weight: 500;
  min-width: 5.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* --- Skip to content (accessibility) ------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 2000;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0.5rem;
}

/* --- CV download button (icon alignment) --------------- */
.cv__download-icon {
  width: 18px;
  height: 18px;
}

/* --- Scroll progress bar ------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: 2000;
  transition: width 0.1s linear;
}
