/* 커리큘럼 안내 — the flow strip, then one numbered row per component. */

.curriculum__heading { font-size: var(--step-5); }

/* --- flow strip ----------------------------------------------------------- */
.curriculum__flow-band { padding-block: var(--space-6); }

.flow-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.flow-strip__step {
  flex: 0 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-2);
  position: relative;
}
/* The connecting rule, drawn between steps rather than after the last one. */
.flow-strip__step + .flow-strip__step::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-4));
  top: 50%;
  width: var(--space-6);
  height: 1px;
  background: var(--line-strong);
}
.flow-strip__index {
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.flow-strip__label {
  font-size: var(--step-1);
  color: var(--ink);
  font-weight: var(--weight-medium);
  text-align: center;
}

/* --- numbered rows -------------------------------------------------------- */
.component-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  counter-reset: none;
}
.component-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.component-row__number {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--step-5);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
}
.component-row__body { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.component-row__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.component-row__name { font-size: var(--step-4); }
.component-row__tagline { color: var(--accent); font-size: var(--step-1); }
.component-row__summary { color: var(--ink-2); }

@media (max-width: 860px) {
  .curriculum__heading { font-size: var(--step-4); }
  .flow-strip { flex-direction: column; align-items: stretch; }
  .flow-strip__step { flex-direction: row; gap: var(--space-3); justify-content: flex-start; }
  .flow-strip__step + .flow-strip__step::before { display: none; }
  .flow-strip__label { text-align: left; }

  .component-row {
    grid-template-columns: 56px 1fr;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }
  .component-row__number { width: 56px; height: 56px; font-size: var(--step-4); }
  .component-row__name { font-size: var(--step-3); }
}
