/* ============================================================
   경제 탐험대 — 교사 길잡이 층 (economy/teacher/) · 디자인 시스템 v4 「햇살 든 유자」

   공용 CSS(ds/v3 yuja.css + themes/student.css) 위에 얹는다.
   - 접두는 ec-t- 만. yj- 는 DS 이름공간이라 새로 짓지 않는다(있는 것만 빌려 쓴다).
   - 색·그림자·모서리·움직임·간격은 토큰 이름으로만. HEX 를 적지 않는다.
   - 캔버스 위 미색 카드 + 그림자 1. 본문 17px 이상. 화면 높이는 100dvh 로만.
   - 주 버튼(유자 300)은 화면에 하나 — 「우리 반 값 · 저장하기」.
   ============================================================ */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body.ec-t-body {
  margin: 0;
  min-height: 100dvh;
  background: var(--yj-canvas);
  color: var(--yj-ink);
  font-family: var(--yj-font-ui);
  font-size: var(--yj-t-body);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
body.ec-t-noscroll { overflow: hidden; }
.ec-t-body *, .ec-t-body *::before, .ec-t-body *::after { box-sizing: border-box; }
.ec-t-body a { color: inherit; }
.ec-t-body :focus-visible { outline: 2px solid var(--yj-yuja-600); outline-offset: 2px; border-radius: var(--yj-r-xs); }
.ec-t-body .yj-ic { flex: none; }

/* ── 상단바 56 ─────────────────────────────────────────── */
.ec-t-bar { gap: var(--yj-s2); padding-left: var(--yj-s4); padding-right: var(--yj-s2); }
.ec-t-brand {
  display: inline-flex; align-items: center; gap: var(--yj-s2);
  min-height: var(--yj-tap); min-width: 0; flex: 1;
  text-decoration: none; color: var(--yj-ink-deep);
}
.ec-t-brand img { width: 28px; height: 28px; flex: none; }
.ec-t-brand__name { font-family: var(--yj-font-serif); font-size: 18px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.ec-t-brand__sub { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-t-top { display: flex; align-items: center; gap: var(--yj-s1); flex: none; }
.ec-t-top__item {
  position: relative;
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 12px;
  border-radius: var(--yj-r-full);
  font-size: var(--yj-t-small); font-weight: 600;
  color: var(--yj-sub); text-decoration: none; white-space: nowrap;
  transition: color var(--yj-m-fast) var(--yj-ease), background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-top__item::before { content: ""; position: absolute; inset: -4px 0; }
.ec-t-top__item:hover { color: var(--yj-ink-deep); background: var(--yj-yuja-50); }
@media (max-width: 560px) { .ec-t-brand__sub { display: none; } }

/* ── 차례 메뉴 — 상단바 아래 한 줄, 지금 칸은 유자 100 알약 ── */
.ec-t-nav {
  position: sticky;
  top: calc(var(--yj-dock-h) + var(--yj-safe-t));
  z-index: 11;
  background: var(--yj-card);
  border-bottom: 1px solid var(--yj-line);
}
.ec-t-nav__in {
  max-width: 1080px; margin: 0 auto;
  display: flex; gap: var(--yj-s1);
  padding: 6px var(--yj-s4);
  overflow-x: auto;
  scrollbar-width: none;
}
.ec-t-nav__in::-webkit-scrollbar { display: none; }
.ec-t-nav__item {
  position: relative; flex: none;
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 14px;
  border-radius: var(--yj-r-full);
  font-size: var(--yj-t-small); font-weight: 600;
  color: var(--yj-sub); text-decoration: none; white-space: nowrap;
  transition: color var(--yj-m-fast) var(--yj-ease), background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-nav__item::before { content: ""; position: absolute; inset: -4px 0; }
.ec-t-nav__item:hover { color: var(--yj-ink-deep); }
.ec-t-nav__item[aria-current] { background: var(--yj-yuja-100); color: var(--yj-ink-deep); font-weight: 700; }

/* ── 본문 틀 ───────────────────────────────────────────── */
.ec-t-main {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: var(--yj-s6) var(--yj-s4) var(--yj-s7);
  padding-bottom: calc(var(--yj-s7) + var(--yj-safe-b));
  display: flex; flex-direction: column; gap: var(--yj-s7);
}
.ec-t-label { margin: 0; font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }

.ec-t-intro { display: grid; gap: var(--yj-s3); }
.ec-t-intro__title {
  margin: 0; font-family: var(--yj-font-serif);
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 600; line-height: 1.3; letter-spacing: -.04em;
  color: var(--yj-ink-deep);
}
.ec-t-intro__lead { margin: 0; max-width: 42em; line-height: 1.8; }
.ec-t-intro__row { display: flex; flex-wrap: wrap; gap: var(--yj-s2) var(--yj-s3); margin-top: var(--yj-s2); }
.ec-t-intro__paper { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); }
.ec-t-intro__paper a, .ec-t-after a { color: var(--yj-yuja-ink); font-weight: 600; }
.ec-t-ext { gap: 6px; }
.ec-t-ext .yj-ic { width: 16px; height: 16px; }

.ec-t-sec { display: flex; flex-direction: column; gap: var(--yj-s4); }
.ec-t-sec__head { display: grid; gap: var(--yj-s2); }
.ec-t-sec__title {
  margin: 0; font-family: var(--yj-font-serif);
  font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.4; letter-spacing: -.03em;
  color: var(--yj-ink-deep);
}
.ec-t-sec__lead { margin: 0; max-width: 46em; color: var(--yj-ink); line-height: 1.8; }

.ec-t-card {
  background: var(--yj-card);
  border: 1px solid var(--yj-line);
  border-radius: var(--yj-r-lg);
  box-shadow: var(--yj-sh-1);
  padding: var(--yj-s5);
}
.ec-t-card__title {
  margin: 0; font-family: var(--yj-font-serif);
  font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.03em; color: var(--yj-ink-deep);
}
@media (max-width: 560px) { .ec-t-card { padding: var(--yj-s4); } }

.ec-t-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2) var(--yj-s3); }
.ec-t-link { font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-yuja-ink); min-height: var(--yj-tap); display: inline-flex; align-items: center; }
.ec-t-note { margin: 0; display: flex; gap: var(--yj-s2); align-items: flex-start; font-size: var(--yj-t-small); color: var(--yj-sub); line-height: 1.7; }
.ec-t-note .yj-ic { margin-top: 3px; }
.ec-t-error { margin: 0; padding: 10px 14px; border-radius: var(--yj-r-sm); background: var(--yj-error-tint); color: var(--yj-error-ink); font-size: var(--yj-t-small); font-weight: 600; }
.ec-t-empty { margin: 0; color: var(--yj-sub); font-size: var(--yj-t-small); }
.ec-t-none { color: var(--yj-sub); }

/* ── ① 우리 반 값 ──────────────────────────────────────── */
.ec-t-values { display: grid; gap: var(--yj-s5); }
.ec-t-fields { display: grid; gap: var(--yj-s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ec-t-fields { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); } }
.ec-t-field { display: grid; gap: 6px; align-content: start; }
.ec-t-field--wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .ec-t-field--wide { grid-column: auto; } }
.ec-t-field__name { font-size: var(--yj-t-small); font-weight: 700; color: var(--yj-ink-deep); }
.ec-t-field__hint { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.ec-t-input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-sm);
  background: var(--yj-card); color: var(--yj-ink-deep);
  font: inherit; font-size: var(--yj-t-body); font-variant-numeric: tabular-nums;
  transition: border-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-input::placeholder { color: var(--yj-faint); }
.ec-t-input:focus { outline: none; border: 2px solid var(--yj-yuja-600); padding: 0 13px; background: var(--yj-card-hi); }
.ec-t-input[aria-invalid="true"] { border-color: var(--yj-error); }
.ec-t-unit { position: relative; display: block; }
.ec-t-unit .ec-t-input { padding-right: 56px; }
.ec-t-unit .ec-t-input:focus { padding-right: 55px; }
.ec-t-unit__u {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  max-width: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--yj-t-small); color: var(--yj-sub); pointer-events: none;
}

.ec-t-preview { padding: var(--yj-s4); border-radius: var(--yj-r-lg); background: var(--yj-yuja-50); display: grid; gap: var(--yj-s3); }
.ec-t-preview__label { margin: 0; font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }
.ec-t-preview__src { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); }
.ec-t-flow { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--yj-s2); }
.ec-t-flow__step {
  display: grid; gap: 2px; min-width: 112px;
  padding: 10px 16px; border-radius: var(--yj-r-sm);
  background: var(--yj-card); border: 1px solid var(--yj-line);
}
.ec-t-flow__k { font-size: var(--yj-t-cap); color: var(--yj-sub); font-weight: 600; }
.ec-t-flow__v { font-size: 22px; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; }
.ec-t-flow__arrow { color: var(--yj-sub); display: inline-flex; }

/* ── ② 15주 꾸러미 ─────────────────────────────────────── */
.ec-t-rules { display: grid; gap: var(--yj-s3); }
.ec-t-rules__list { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: var(--yj-s3) var(--yj-s5); }
@media (min-width: 900px) { .ec-t-rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-t-rules__list li { counter-increment: r; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--yj-s3); }
.ec-t-rules__list li::before {
  content: counter(r); grid-row: span 2;
  width: 28px; height: 28px; border-radius: var(--yj-r-full);
  background: var(--yj-yuja-100); color: var(--yj-yuja-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--yj-t-cap); font-weight: 700;
}
.ec-t-rules__list b { color: var(--yj-ink-deep); font-weight: 700; }
.ec-t-rules__list span { font-size: var(--yj-t-small); color: var(--yj-sub); line-height: 1.7; }
.ec-t-rules__src { margin: 0; font-size: var(--yj-t-cap); color: var(--yj-sub); }

.ec-t-weeks { padding: 0; overflow: hidden; }
.ec-t-weeks__head { display: none; }
.ec-t-weeks__list { margin: 0; padding: 0; list-style: none; }
.ec-t-week {
  display: grid; gap: var(--yj-s3);
  grid-template-columns: 64px minmax(0, 1fr);
  padding: var(--yj-s4) var(--yj-s5);
  border-top: 1px solid var(--yj-line);
  transition: background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-week:first-child { border-top: 0; }
.ec-t-week:hover { background: var(--yj-yuja-50); }
.ec-t-week__no { grid-row: span 4; display: flex; align-items: baseline; gap: 2px; }
.ec-t-week__w { font-size: 22px; font-weight: 800; color: var(--yj-ink-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-t-week__u { font-size: var(--yj-t-cap); color: var(--yj-sub); font-weight: 600; }
.ec-t-week__do { margin: 0; font-weight: 700; color: var(--yj-ink-deep); line-height: 1.5; }
.ec-t-week__board { margin: 4px 0 0; font-size: var(--yj-t-small); color: var(--yj-sub); display: flex; gap: var(--yj-s2); flex-wrap: wrap; align-items: baseline; }
.ec-t-week__k { font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); }
.ec-t-week__cell { display: grid; gap: 4px; align-content: start; }
.ec-t-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ec-t-chip, .ec-t-xp, .ec-t-sheet, .ec-t-sheet__print {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 4px 12px;
  border-radius: var(--yj-r-full);
  border: 1px solid var(--yj-line-strong);
  background: var(--yj-card);
  font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-ink);
  text-decoration: none;
  transition: border-color var(--yj-m-fast) var(--yj-ease), background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-chip::before, .ec-t-xp::before, .ec-t-sheet::before, .ec-t-sheet__print::before { content: ""; position: absolute; inset: -4px 0; }
.ec-t-chip:hover, .ec-t-xp:hover, .ec-t-sheet:hover, .ec-t-sheet__print:hover { border-color: var(--yj-yuja-600); background: var(--yj-yuja-50); }
.ec-t-xp__id { font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-yuja-ink); font-variant-numeric: tabular-nums; }
.ec-t-xp__note { font-size: var(--yj-t-cap); color: var(--yj-sub); }
.ec-t-sheet__print { border-color: transparent; background: var(--yj-yuja-100); color: var(--yj-yuja-ink); }
.ec-t-sheet__print:hover { background: var(--yj-yuja-200); }

/* 태블릿 — 할 일 한 줄 아래에 세 칸을 나란히 */
@media (min-width: 640px) and (max-width: 999px) {
  .ec-t-week { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); column-gap: var(--yj-s4); }
  .ec-t-week__no { grid-row: span 2; }
  .ec-t-week__todo { grid-column: span 3; }
}
@media (min-width: 1000px) {
  .ec-t-weeks__head, .ec-t-week {
    grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    column-gap: var(--yj-s4);
  }
  .ec-t-weeks__head {
    display: grid; padding: var(--yj-s3) var(--yj-s5);
    border-bottom: 1px solid var(--yj-line-strong);
    font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink);
  }
  .ec-t-week__no { grid-row: auto; }
  .ec-t-week__cell > .ec-t-week__k { display: none; }
}
.ec-t-after { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); line-height: 1.8; }
.ec-t-after .ec-t-ext { display: inline-flex; align-items: center; }

/* ── ③ 수업 꾸러미 ─────────────────────────────────────── */
.ec-t-pack { display: grid; gap: var(--yj-s4); align-items: start; }
@media (min-width: 1000px) {
  .ec-t-pack { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .ec-t-pack__out { position: sticky; top: 128px; }
}
.ec-t-pack__pick { display: grid; gap: var(--yj-s4); }
.ec-t-step {
  margin: 0; display: flex; align-items: center; gap: var(--yj-s2);
  font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep);
}
#ec-t-pack-more .ec-t-step { margin-top: var(--yj-s4); margin-bottom: var(--yj-s2); }
.ec-t-step__n {
  width: 26px; height: 26px; border-radius: var(--yj-r-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yj-yuja-100); color: var(--yj-yuja-ink); font-size: var(--yj-t-cap); font-weight: 700;
}
.ec-t-step__count { margin-left: auto; font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.ec-t-areas { display: grid; gap: var(--yj-s3); }
.ec-t-areas__row { display: grid; gap: 6px; }
.ec-t-areas__name { margin: 0; font-size: var(--yj-t-cap); font-weight: 700; color: var(--yj-sub); display: flex; gap: 6px; }
.ec-t-areas__name span { color: var(--yj-yuja-ink); }
.ec-t-areas__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-t-pick {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-full);
  background: var(--yj-card); color: var(--yj-ink);
  font: inherit; font-size: var(--yj-t-small); font-weight: 600;
  cursor: pointer;
  transition: border-color var(--yj-m-fast) var(--yj-ease), background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-pick::before { content: ""; position: absolute; inset: -4px 0; }
.ec-t-pick:hover:not(:disabled) { border-color: var(--yj-yuja-600); }
.ec-t-pick[aria-pressed="true"] { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
.ec-t-pick:disabled { opacity: .45; cursor: not-allowed; }
.ec-t-pick__n {
  width: 20px; height: 20px; border-radius: var(--yj-r-full);
  background: var(--yj-yuja-500); color: var(--yj-on-action);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--yj-t-label); font-weight: 800;
}
.ec-t-opts { display: grid; gap: 4px; }
.ec-t-opt {
  display: flex; gap: var(--yj-s3); align-items: flex-start;
  min-height: var(--yj-tap); padding: 10px 12px;
  border-radius: var(--yj-r-sm);
  font-size: var(--yj-t-small); line-height: 1.6; color: var(--yj-ink);
  cursor: pointer;
  transition: background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-opt:hover { background: var(--yj-yuja-50); }
.ec-t-opt input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--yj-yuja-600); }
.ec-t-opt:has(input:checked) { background: var(--yj-yuja-50); color: var(--yj-ink-deep); }
.ec-t-opt__c, .ec-t-opt__rec {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 4px;
  border-radius: var(--yj-r-full); font-size: var(--yj-t-label); font-weight: 600; vertical-align: 1px;
}
.ec-t-opt__c { border: 1px solid var(--yj-line-strong); color: var(--yj-sub); }
.ec-t-opt__rec { background: var(--yj-yuja-100); color: var(--yj-yuja-ink); }

.ec-t-pack__out { display: grid; gap: var(--yj-s4); }
.ec-t-pack__empty { display: grid; justify-items: start; gap: var(--yj-s2); color: var(--yj-faint); padding: var(--yj-s4) 0; }
.ec-t-pack__empty-t { margin: 0; color: var(--yj-ink-deep); font-weight: 700; }
.ec-t-pack__empty-s { margin: 0; color: var(--yj-sub); font-size: var(--yj-t-small); }
.ec-t-pack__head { display: grid; gap: 2px; }
.ec-t-pack__names { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); }
.ec-t-order { margin: 0; padding: 0; list-style: none; counter-reset: o; border-top: 1px solid var(--yj-line); }
.ec-t-order li { counter-increment: o; border-bottom: 1px solid var(--yj-line); }
.ec-t-order__row {
  width: 100%; display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) auto;
  align-items: start; gap: var(--yj-s2);
  padding: 12px 8px; min-height: var(--yj-tap);
  border: 0; background: none; text-align: left;
  font: inherit; font-size: var(--yj-t-small); line-height: 1.6; color: var(--yj-ink);
  text-decoration: none; cursor: pointer;
  transition: background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-order__row::before { content: counter(o); font-weight: 800; color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.ec-t-order__row:hover:not(.is-plain) { background: var(--yj-yuja-50); }
.ec-t-order__row.is-plain { cursor: default; grid-template-columns: 28px 56px minmax(0, 1fr); }
.ec-t-order__k { font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink); padding-top: 3px; }
.ec-t-order__t { color: var(--yj-ink-deep); }
.ec-t-order__go { display: inline-flex; align-items: center; gap: 4px; font-size: var(--yj-t-cap); font-weight: 600; color: var(--yj-sub); white-space: nowrap; padding-top: 2px; }

/* ── ④ 토론 카드 ───────────────────────────────────────── */
.ec-t-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-t-seg {
  position: relative;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--yj-line-strong); border-radius: var(--yj-r-full);
  background: var(--yj-card); color: var(--yj-sub);
  font: inherit; font-size: var(--yj-t-small); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: border-color var(--yj-m-fast) var(--yj-ease), background-color var(--yj-m-fast) var(--yj-ease), color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-seg::before { content: ""; position: absolute; inset: -4px 0; }
.ec-t-seg:hover { color: var(--yj-ink-deep); }
.ec-t-seg[aria-pressed="true"] { background: var(--yj-yuja-200); border-color: var(--yj-yuja-600); color: var(--yj-ink-deep); }
.ec-t-talk { display: grid; gap: var(--yj-s5); }
.ec-t-talk__group { display: grid; gap: var(--yj-s3); }
.ec-t-talk__name {
  margin: 0; display: flex; align-items: center; gap: var(--yj-s2);
  font-size: var(--yj-t-body); font-weight: 700; color: var(--yj-ink-deep);
}
.ec-t-talk__name .yj-ic { color: var(--yj-yuja-ink); }
.ec-t-talk__name a { text-decoration: none; }
.ec-t-talk__name a:hover { text-decoration: underline; }
.ec-t-talk__grade { font-size: var(--yj-t-cap); font-weight: 500; color: var(--yj-sub); }
.ec-t-talk__cards { display: grid; gap: var(--yj-s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .ec-t-talk__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ec-t-qcard {
  display: flex; flex-direction: column; gap: var(--yj-s3);
  padding: var(--yj-s5);
  background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg);
  box-shadow: var(--yj-sh-1);
  transition: box-shadow var(--yj-m-mid) var(--yj-ease), transform var(--yj-m-mid) var(--yj-ease);
}
.ec-t-qcard:hover { box-shadow: var(--yj-sh-2); transform: translateY(-2px); }
.ec-t-qcard__tag {
  margin: 0; align-self: flex-start;
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--yj-r-full); background: var(--yj-yuja-100); color: var(--yj-ink-deep);
  font-size: var(--yj-t-label); font-weight: 700;
}
.ec-t-qcard__q {
  margin: 0; flex: 1;
  font-family: var(--yj-font-serif); font-size: 20px; font-weight: 600; line-height: 1.55; letter-spacing: -.02em;
  color: var(--yj-ink-deep);
}
.ec-t-qcard__note { margin: 0; font-size: var(--yj-t-cap); color: var(--yj-sub); }
.ec-t-qcard__act { display: flex; flex-wrap: wrap; gap: var(--yj-s2); }
.ec-t-qcard__act .yj-btn { gap: 6px; }

/* 큰 글씨 한 장 — 화면 전체 */
.ec-t-big {
  position: fixed; inset: 0; z-index: 40;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--yj-s4);
  min-height: 100dvh;
  background: var(--yj-canvas);
  padding: calc(var(--yj-s4) + var(--yj-safe-t)) var(--yj-s5) calc(var(--yj-s4) + var(--yj-safe-b));
}
.ec-t-big[hidden] { display: none; }
.ec-t-big__top { display: flex; align-items: center; gap: var(--yj-s3); }
.ec-t-big__concept {
  margin: 0; display: inline-flex; align-items: center; gap: var(--yj-s2);
  height: 44px; padding: 0 18px 0 14px; border-radius: var(--yj-r-full);
  background: var(--yj-yuja-100); color: var(--yj-ink-deep);
  font-size: 22px; font-weight: 700;
}
.ec-t-big__concept .yj-ic { color: var(--yj-yuja-ink); }
.ec-t-big__close { background: var(--yj-card); border: 1px solid var(--yj-line-strong); }
.ec-t-big__count { margin: 0 0 0 auto; font-size: 18px; color: var(--yj-sub); font-variant-numeric: tabular-nums; }
.ec-t-big__q {
  margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: var(--yj-s6) clamp(24px, 6vw, 96px);
  background: var(--yj-card); border: 1px solid var(--yj-line); border-radius: var(--yj-r-lg);
  box-shadow: var(--yj-sh-1);
  text-align: center;
  font-family: var(--yj-font-serif);
  font-size: clamp(32px, 5.4vw, 72px); font-weight: 600; line-height: 1.4; letter-spacing: -.03em;
  color: var(--yj-ink-deep);
}
.ec-t-big__bar { display: flex; justify-content: space-between; gap: var(--yj-s3); }
.ec-t-big__nav { height: 52px; font-size: 18px; gap: 6px; }

/* ── ⑤ 영상 ────────────────────────────────────────────── */
#ec-t-videos { display: grid; gap: var(--yj-s4); }
.ec-t-vids { padding: 0; overflow: hidden; }
.ec-t-vids__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--yj-s2); padding: var(--yj-s5) var(--yj-s5) var(--yj-s3); }
.ec-t-vids__year { font-family: var(--yj-font-ui); font-size: var(--yj-t-small); font-weight: 500; color: var(--yj-sub); }
.ec-t-vids__meta { margin: 0; font-size: var(--yj-t-small); color: var(--yj-sub); }
.ec-t-vids__cols { display: none; }
.ec-t-vids__list { margin: 0; padding: 0; list-style: none; }
.ec-t-vid {
  display: grid; align-items: center; gap: 6px var(--yj-s3);
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-areas: "n t len" "n c yt";
  padding: 12px var(--yj-s5);
  border-top: 1px solid var(--yj-line);
  transition: background-color var(--yj-m-fast) var(--yj-ease);
}
.ec-t-vid:hover { background: var(--yj-yuja-50); }
.ec-t-vid__n { grid-area: n; align-self: start; font-weight: 800; color: var(--yj-sub); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ec-t-vid__title { grid-area: t; color: var(--yj-ink-deep); font-weight: 600; line-height: 1.5; }
.ec-t-vid__len { grid-area: len; font-size: var(--yj-t-small); color: var(--yj-sub); font-variant-numeric: tabular-nums; justify-self: end; }
.ec-t-vid__cs { grid-area: c; display: flex; flex-wrap: wrap; gap: 6px; }
.ec-t-vid__cs .ec-t-chip { min-height: 32px; padding: 2px 10px; font-size: var(--yj-t-cap); }
.ec-t-vid__yt {
  grid-area: yt; justify-self: end;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: var(--yj-tap); padding: 0 6px;
  font-size: var(--yj-t-small); font-weight: 600; color: var(--yj-yuja-ink); text-decoration: none;
}
.ec-t-vid__yt:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .ec-t-vids__cols, .ec-t-vid {
    grid-template-columns: 40px minmax(0, 2fr) 64px minmax(0, 1.3fr) 96px;
    grid-template-areas: "n t len c yt";
  }
  .ec-t-vids__cols {
    display: grid; column-gap: var(--yj-s3); padding: 0 var(--yj-s5) var(--yj-s2);
    font-size: var(--yj-t-label); font-weight: 700; letter-spacing: .04em; color: var(--yj-yuja-ink);
  }
  .ec-t-vid__n { align-self: center; padding-top: 0; }
  .ec-t-vid__len { justify-self: start; }
}

/* ── 푸터 · 토스트 ─────────────────────────────────────── */
.ec-t-foot {
  max-width: 1080px; margin: 0 auto;
  padding: var(--yj-s4) var(--yj-s4) calc(var(--yj-s5) + var(--yj-safe-b));
  border-top: 1px solid var(--yj-line);
  font-size: var(--yj-t-small); color: var(--yj-sub);
}
.ec-t-foot p { margin: 0; }
.ec-t-toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--yj-s5) + var(--yj-safe-b)); z-index: 50;
  max-width: calc(100% - var(--yj-s6));
  display: flex; align-items: center; gap: var(--yj-s2);
  padding: var(--yj-s3) var(--yj-s4);
  border-radius: var(--yj-r-lg);
  background: var(--yj-forest); color: var(--yj-on-forest);
  font-size: var(--yj-t-small); font-weight: 600;
  box-shadow: var(--yj-sh-3);
}
.ec-t-toast[hidden] { display: none; }
.ec-t-toast .yj-ic { color: var(--yj-yuja-300); }

@media (prefers-reduced-motion: reduce) {
  .ec-t-body * { transition: none !important; }
}

/* 길잡이 자체를 인쇄하면 메뉴·버튼은 빼고 꾸러미 표만 */
@media print {
  .ec-t-bar, .ec-t-nav, .ec-t-intro__row, .ec-t-values, .ec-t-pack__pick, .ec-t-qcard__act, .ec-t-filter, .ec-t-toast, .ec-t-big { display: none !important; }
  body.ec-t-body { background: none; }
  .ec-t-card, .ec-t-qcard { box-shadow: none; }
}
