/* 단원 화면(digital/ · airobot/) — 허브 스타일(../hub/hub.css) 위에 차례 번호와 "앞으로 배울 내용"만 얹는다. */
.unit-home {
  display: inline-block; margin: 0 0 14px; color: var(--brand-deep); font-weight: 700; text-decoration: none;
}
.unit-home:hover { text-decoration: underline; }
.unit-home:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.unit-top .kicker { display: table; }
.unit-title { font-size: clamp(2rem, 6vw, 3.4rem); }

/* 활동 카드에 차례 번호를 붙인다(1 → 2 → 3 …). */
.unit .cards { counter-reset: step; }
.unit .lesson { counter-increment: step; }
.unit .lesson-head::after {
  content: counter(step); margin-left: auto; display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 999px; background: var(--tone); color: #fff;
  font-weight: 900; font-size: 1.1rem;
}

/* 첫 차시부터 시작하지 않는 단원(예: 3차시부터 있는 6학년 단원)은 차례 번호를 붙이지 않는다: "3차시" 옆의 ①이 헷갈린다. */
.unit.no-steps .lesson-head::after { content: none; }

.unit-next {
  margin-top: 36px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.unit-next-title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 900; color: var(--muted); }
.unit-next-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); }
.unit-next-list b { display: inline-block; margin-right: 8px; color: var(--ink); }
