/* Widget: Newsroom Timeline (also provides the shared .sla-card styles used by Awards). */

.sla-timeline {
  padding: 48px 24px;
  text-align: center;
}

.sla-timeline__group {
  padding: 16px;
  scroll-margin-top: calc(var(--sla-header-height) + var(--sla-admin-bar) + 16px);
}

.sla-timeline__month {
  margin: 0 0 8px;
  font-family: var(--sla-font-body);
  font-size: 28px;
  font-weight: 500;
  line-height: 33.6px;
  color: #201c1c;
  text-align: center;
}

.sla-timeline__cards {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  margin: 0 -15px;
}

.sla-timeline__divider {
  width: 50%;
  height: 40px;
  border-right: 1px solid #007bff;
}

/* Card */
.sla-card.has-links {
  min-height: 245px;
}

.sla-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 226px;
  max-width: 100%;
  margin: 16px 31px;
  padding: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid #b8b9ba;
  border-radius: 12px;
}

.sla-card__text {
  min-height: 8rem;
  margin: 0 0 1.5rem;
  font-family: var(--sla-font-body);
  font-size: 20px;
  line-height: 1.4rem;
  color: #4d4d4d;
  overflow-wrap: anywhere;
}

.sla-card__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 1rem;
}

.sla-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  color: #fff;
}

.sla-card__link:hover,
.sla-card__link:focus {
  color: #fff;
  text-decoration: none;
}

.sla-card__link img {
  width: 35px;
  max-width: 2.2rem;
  height: auto;
}

/* The original design shows only the icon; keep the text for assistive tech. */
.sla-card__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .sla-timeline {
    padding: 32px 15px;
  }

  .sla-timeline__cards {
    margin: 0;
  }

  .sla-card {
    flex-basis: 100%;
    min-height: 0;
    margin: 12px 0;
  }

  .sla-card__text {
    min-height: 0;
  }
}

/* Editor placeholder */
.sla-widget-empty {
  padding: 24px;
  color: #657076;
  text-align: center;
  border: 1px dashed #b3c5ce;
}

/* Awards variant */
.sla-timeline--awards {
  padding-top: 0;
}

.sla-timeline--awards .sla-timeline__group {
  padding: 0 15px;
}

.sla-timeline--awards .sla-timeline__month {
  margin: 50px 0 8px;
  font-size: 32px;
  line-height: 35.2px;
}

.sla-card--award {
  min-height: 0;
  line-height: 1.2;
}

.sla-card--award .sla-card__text {
  font-size: 18px;
  line-height: 22.4px;
}

.sla-card__desc {
  margin: auto 0 1rem;
  font-size: 16px;
  line-height: 19.2px;
  color: #748a96;
}

.sla-card--award .sla-card__desc + .sla-card__links {
  margin-top: 0;
}
