/**
 * @file
 * Important Dates band (Figma: Announcements / Important Dates).
 */

.sra-announcement {
  background:
    linear-gradient(rgba(204, 204, 204, 0.2), rgba(204, 204, 204, 0.2)),
    url("../images/hero/paper-texture.jpg") center / cover no-repeat;
}

.sra-announcement__band {
  position: relative;
  overflow: hidden;
  padding: 32px var(--sra-gutter);
  background: var(--sra-gray-950);
}

.sra-announcement__glow {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.sra-announcement__glow--1 {
  top: calc(71px - 180px);
  left: calc(50% - 226px - 180px);
  width: calc(464px + 360px);
}

.sra-announcement__glow--2 {
  top: calc(-175px - 180px);
  left: calc(-160px - 180px);
  width: calc(551px + 360px);
}

.sra-announcement__glow--3 {
  top: calc(-112px - 180px);
  right: calc(-16px - 180px);
  width: calc(522px + 360px);
}

.sra-announcement__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.sra-announcement__copy {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 279px;
}

.sra-announcement__title {
  color: var(--sra-white);
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
}

.sra-announcement__tag {
  display: inline-block;
  margin: 8px 0 0 4px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--sra-radius-full);
  background: var(--sra-primary-500);
  color: var(--sra-tertiary-950);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.sra-announcement__stages {
  display: flex;
  flex: 1 1 auto;
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.sra-stage {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-inline-end: 12px;
}

.sra-stage__node {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sra-stage__dot {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.sra-stage__dot img {
  position: absolute;
  inset: -58.33%;
  width: 216.66%;
  max-width: none;
  height: 216.66%;
}

/* The ring image is only shown on the highlighted stage. */
.sra-stage:not(.sra-stage--current) .sra-stage__dot img {
  display: none;
}

.sra-stage--current .sra-stage__dot {
  border: 0;
}

.sra-stage--done .sra-stage__dot {
  border-color: var(--sra-primary-400);
  background: var(--sra-primary-400);
}

.sra-stage__line {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.sra-stage__date {
  color: var(--sra-white);
  font-size: 14px;
  line-height: 20px;
}

.sra-stage__label {
  color: var(--sra-white-68);
  font-size: 12px;
  line-height: 16px;
}

.sra-stage--current .sra-stage__date {
  color: var(--sra-primary-300);
  font-weight: 700;
}

.sra-stage--current .sra-stage__label {
  color: var(--sra-primary-200);
}

/* Tablets: the title above the stages; the six stages share the full width. */
@media (max-width: 1199px) {
  .sra-announcement__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .sra-announcement__copy {
    width: auto;
  }

  .sra-stage {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Small tablets: too narrow for six stages, so they scroll sideways. */
@media (max-width: 899px) {
  .sra-announcement__stages {
    overflow-x: auto;
  }

  .sra-stage {
    flex: 0 0 150px;
  }
}
