.hf-updates-page {
  color: var(--hf-color-text);
  background: var(--hf-color-page);
}

#hf_updates {
  width: min(var(--hf-reading-max-width), calc(100% - var(--hf-site-inline-space)));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hf-updates-hero {
  max-width: 660px;
  margin-bottom: 34px;
}

.hf-updates-hero h1 {
  margin: 0;
  color: var(--hf-color-text-strong);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.hf-updates-hero p {
  margin: 13px 0 0;
  color: var(--hf-color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.hf-updates-list {
  display: flex;
  flex-direction: column;
}

.hf-update-card {
  --hf-update-marker-y: 34px;
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}

.hf-update-card__rail {
  position: relative;
}

.hf-update-card__rail::after {
  position: absolute;
  top: var(--hf-update-marker-y);
  bottom: calc(-1 * var(--hf-update-marker-y));
  left: 7px;
  width: 1px;
  background: var(--hf-color-line);
  content: "";
}

.hf-update-card:last-child .hf-update-card__rail::after {
  display: none;
}

.hf-update-card__rail span {
  position: absolute;
  top: var(--hf-update-marker-y);
  left: 2px;
  z-index: 1;
  width: 11px;
  height: 11px;
  background: var(--hf-color-surface-elevated);
  border: 2px solid var(--hf-color-line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hf-update-card.is-latest .hf-update-card__rail span {
  background: var(--hf-color-primary);
  border-color: var(--hf-color-primary);
  box-shadow: 0 0 0 5px var(--hf-color-primary-soft);
}

.hf-update-card__body {
  min-width: 0;
  margin-bottom: 24px;
  padding: 24px 26px 26px;
  background: var(--hf-card-bg);
  border: 1px solid var(--hf-card-border);
  border-radius: 16px;
}

.hf-update-card__header,
.hf-update-card__version-row {
  display: flex;
  align-items: center;
}

.hf-update-card__header {
  justify-content: space-between;
  gap: 16px;
}

.hf-update-card__version-row {
  gap: 8px;
}

.hf-update-card__version-row strong {
  color: var(--hf-color-primary-text);
  font-size: 13px;
  line-height: 1.4;
}

.hf-update-card__latest {
  padding: 3px 7px;
  color: var(--hf-color-primary-text);
  background: var(--hf-color-primary-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.hf-update-card__header time {
  flex: 0 0 auto;
  color: var(--hf-color-muted-light);
  font-size: 11px;
}

.hf-update-card h2 {
  margin: 14px 0 0;
  color: var(--hf-color-text-strong);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.hf-update-card__summary {
  margin: 8px 0 0;
  color: var(--hf-color-muted);
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}

.hf-update-card__changes {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hf-color-line);
}

.hf-update-category h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  color: var(--hf-color-text-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.hf-update-category h3 .fa {
  color: var(--hf-color-primary-text);
  font-size: 13px;
}

.hf-update-category--improvements h3 .fa {
  color: var(--hf-color-success);
}

.hf-update-category--fixes h3 .fa {
  color: var(--hf-color-warning);
}

.hf-update-category ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hf-update-category li {
  position: relative;
  margin-top: 7px;
  padding-left: 14px;
  color: var(--hf-color-text);
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.hf-update-category li:first-child {
  margin-top: 0;
}

.hf-update-category li::before {
  position: absolute;
  top: 0.76em;
  left: 1px;
  width: 4px;
  height: 4px;
  background: var(--hf-color-muted-light);
  border-radius: 50%;
  content: "";
}

@media (max-width: 768px) {
  #hf_updates {
    padding: 42px 0 72px;
  }

  .hf-updates-hero {
    margin-bottom: 25px;
  }

  .hf-updates-hero h1 {
    font-size: 28px;
  }

  .hf-updates-hero p {
    margin-top: 10px;
    font-size: 13px;
  }

  .hf-update-card {
    --hf-update-marker-y: 30px;
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .hf-update-card__rail::after {
    left: 5px;
  }

  .hf-update-card__rail span {
    left: 0;
  }

  .hf-update-card__body {
    margin-bottom: 18px;
    padding: 20px 18px 21px;
    border-radius: 14px;
  }

  .hf-update-card h2 {
    margin-top: 12px;
    font-size: 19px;
  }

  .hf-update-card__summary,
  .hf-update-category li {
    font-size: 12px;
  }

  .hf-update-card__changes {
    gap: 18px;
    margin-top: 20px;
    padding-top: 19px;
  }
}

@media (max-width: 360px) {
  .hf-update-card__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
