/* Train.
 *
 * The three blocks are laid out in a flex column and ordered with `order:`,
 * which is what lets the season decide whether learn-at-home or the on-playa
 * calendar leads without the markup changing shape. Source order stays
 * calendar → roles → materials, so a screen reader and a print stylesheet get
 * the same reading either way. */

.train { display: block; }

.train-head { margin-bottom: var(--space-5); }

.train-kicker {
  font-size: var(--size-kicker);
  font-weight: var(--weight-bold);
  letter-spacing: var(--track-kicker);
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 5px;
}

.train-kicker--rule {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: 11px;
}

.train-title {
  font-family: var(--font-display);
  font-size: var(--size-h1);
  font-weight: var(--weight-normal);
  line-height: 1.14;
  max-width: 22em;
  margin: 0;
}

.train-intro {
  font-size: 15px;
  color: var(--soft);
  max-width: 42em;
  margin: 6px 0 0;
}

.train-flow { display: flex; flex-direction: column; }

.train-section { margin-bottom: 26px; }

.train-section-head {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--line);
  margin: 0 0 var(--space-3);
  font-size: 15px;
  font-weight: var(--weight-normal);
}

.train-step {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--t-tea);
  color: var(--t-tea-fg);
  font-size: var(--size-micro);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.train-section-title { font-size: 15px; font-weight: var(--weight-semibold); }
.train-section-note { font-size: var(--size-micro); color: var(--soft); }

/* --- the on-playa calendar ------------------------------------------------ */

.train-days { display: flex; flex-direction: column; gap: 14px; }

.train-day-label {
  font-size: var(--size-micro);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 7px;
}

.train-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.train-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  background: var(--panel);
  border-left: 3px solid var(--t-tea);
  border-radius: var(--radius-control);
  padding: 12px 14px;
}

.train-row.is-now { background: var(--live-bg); }
.train-row.is-soon { background: var(--soon-bg); }

.train-row-time {
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  /* Wide enough for "12:00 pm–1:00 pm" on one line; the design's 128px folds
     every ranged event onto two. */
  width: 152px;
  flex: none;
}

.train-row-body { flex: 1 1 200px; min-width: 0; }

.train-row-title { display: block; font-size: 15px; font-weight: var(--weight-semibold); }

.train-row-what {
  display: block;
  font-size: var(--size-small);
  color: var(--soft);
  line-height: 1.45;
  margin-top: 2px;
}

.train-row-where { flex: 0 1 190px; font-size: var(--size-micro); color: var(--soft); }

.train-row-flag {
  font-size: var(--size-micro);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  color: var(--soon);
}

.train-row.is-now .train-row-flag { color: var(--live); }

/* --- cards, shared by the roles and the materials ------------------------- */

.train-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2);
}

.train-card {
  background: var(--panel);
  border-radius: var(--radius-card);
  padding: 15px 16px;
}

.train-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  align-items: baseline;
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: var(--weight-normal);
}

.train-card-emoji { font-size: var(--size-body); flex: none; }

.train-card-name {
  font-size: 15px;
  font-weight: var(--weight-semibold);
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  margin: 0;
}

.train-card-meta {
  font-size: var(--size-micro);
  font-weight: var(--weight-semibold);
  color: var(--soft);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.train-card-body {
  font-size: var(--size-small);
  color: var(--soft);
  line-height: 1.45;
  margin: 0;
}

.train-card-cta {
  font-size: var(--size-small);
  font-weight: var(--weight-semibold);
  color: var(--t-tea-deep);
  margin: 9px 0 0;
}

.train-learn { margin-bottom: var(--space-4); }

.train-learn-title {
  font-size: var(--size-small);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-2);
}

/* --- good to know --------------------------------------------------------- */

.train-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }

.train-note {
  display: flex;
  gap: var(--space-2);
  font-size: var(--size-small);
  line-height: 1.5;
}

.train-note::before { content: '·'; color: var(--soft); flex: none; }

.train-empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin: 0;
  color: var(--soft);
  font-size: var(--size-small);
}

/* --- the tail ------------------------------------------------------------- */

.train-contact {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 17px 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.train-contact-copy {
  font-size: var(--size-small);
  color: var(--soft);
  max-width: 30em;
  margin: 0;
}

.train-contact-copy a { color: var(--t-tea-deep); }
.train-contact .btn { text-decoration: none; }

@media (max-width: 560px) {
  .train-row-time { width: auto; }
  .train-row-where { flex: 1 1 100%; }
}
