/* Videos page: the curriculum index. A chronological ledger of the ten lessons. */

.curriculum-band {
  width: min(100% - 2.4rem, var(--content));
  margin: 0 auto;
  padding: clamp(2.2rem, 5svh, 3.6rem) 0 clamp(3rem, 7svh, 5rem);
}

.curriculum-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 4svh, 2.6rem);
}

.curriculum-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.curriculum-count {
  margin: 0;
  color: var(--paper-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.curriculum-index {
  position: relative;
  margin: 0;
  padding: 0 0 0 2.1rem;
  list-style: none;
}

/* The era rail: one continuous line from the first lesson to the last. */
.curriculum-index::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--red) 0, rgba(224, 56, 46, 0.14) 100%);
}

.curriculum-row {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 12.5rem;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  align-items: start;
  padding: clamp(1.3rem, 2.8svh, 1.9rem) 0;
  border-top: 1px solid var(--hairline);
}

.curriculum-row:first-child {
  border-top: 0;
}

.curriculum-row::before {
  content: "";
  position: absolute;
  left: -2.1rem;
  top: clamp(1.75rem, 3.4svh, 2.35rem);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.curriculum-no {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.curriculum-body h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.curriculum-body p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--paper-2);
  font-size: 0.95rem;
  line-height: 1.58;
}

.curriculum-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-top: 0.3rem;
}

.curriculum-meta .meta-line {
  margin-bottom: 0;
}

.curriculum-meta .arrow-link {
  margin-top: 0;
}

.episode-status {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--hairline-strong);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.curriculum-meta .meta-line {
  white-space: nowrap;
}

.curriculum-empty .media-skeleton {
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .curriculum-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .curriculum-row {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .curriculum-meta {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
    padding-top: 0.1rem;
  }
}

@media (max-width: 560px) {
  .curriculum-index {
    padding-left: 1.5rem;
  }

  .curriculum-row::before {
    left: -1.5rem;
  }
}
