@charset "UTF-8";
/* ─────────────────────────────────────────────
   강사 표 — 링고업 카드 그리드 대체
   색·반경은 style.css 의 토큰을 씁니다 (:root)

   한 행 = 사진 · 이름 · 경력 · 담당 영역
   10명마다 tbody 로 끊어 시각적 구분

   ⚠ 모바일에서 표를 block 으로 풀면 caption 이 아주 좁은 폭으로
     렌더돼 글자가 한 자씩 세로로 쌓입니다. caption 을 아예 쓰지 않고,
     혹시 들어와도 숨기도록 처리해 두었습니다.
   ───────────────────────────────────────────── */

.teacher-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.teacher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.teacher-table caption { display: none; }

.teacher-table thead th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

.teacher-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}

.teacher-table tbody + tbody td { border-top: 2px solid var(--rule); }
.teacher-table tbody tr:hover td { background: var(--surface); }

.teacher-table .c-img  { width: 68px; }
.teacher-table .c-name { width: 18%; }
.teacher-table .c-desc { width: 42%; }
.teacher-table .c-area { width: 32%; }

.teacher-table .c-img img {
  width: 52px;
  height: 66px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  background: var(--surface-2);
}

.teacher-table .c-name a { color: var(--ink); text-decoration: none; }
.teacher-table .c-name a:hover strong { text-decoration: underline; }
.teacher-table .c-name strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.teacher-table .c-name .en {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-4);
}

.teacher-table .c-desc { color: var(--ink-2); font-size: 0.8125rem; }

.teacher-table .c-area ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.teacher-table .c-area li {
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: var(--surface);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.teacher-table .c-area .more-n {
  background: transparent;
  color: var(--ink-4);
  font-weight: 600;
}

.teacher-table tr:target td {
  background: var(--accent-bg);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* ── 모바일 — 표를 카드로 ──
   1차에서 두 가지가 문제였습니다.
     · 담당 영역 태그가 nowrap + overflow:hidden 이라 글자가 잘려 나감
     · 경력이 좁은 폭에서 네 줄까지 늘어나 카드가 제각각
   태그는 모바일에서 아예 숨깁니다. 좁은 화면에서 잘린 글자를 보여 주는
   것보다 안 보여 주는 편이 낫고, 담당 영역은 상단 안내에 이미 있습니다.
   사진은 왼쪽에 고정하고 오른쪽 정보를 두 줄로 제한합니다. */
@media (max-width: 640px) {
  .teacher-table-wrap { overflow-x: visible; }
  .teacher-table,
  .teacher-table tbody,
  .teacher-table tr,
  .teacher-table td { display: block; width: auto; }
  .teacher-table thead { display: none; }

  .teacher-table tr {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 0.75rem;
    align-items: start;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .teacher-table tbody + tbody tr:first-child { border-top: 2px solid var(--rule); }
  .teacher-table td { border: 0; padding: 0; min-width: 0; }

  .teacher-table .c-img { grid-row: 1 / span 2; }
  .teacher-table .c-img img { width: 46px; height: 58px; }

  .teacher-table .c-name { grid-column: 2; align-self: center; }
  .teacher-table .c-name strong { display: inline; font-size: 0.9375rem; }
  .teacher-table .c-name .en { display: inline; margin-left: 0.3rem; font-size: 0.75rem; }

  .teacher-table .c-desc {
    grid-column: 2;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 잘린 태그를 보여 주느니 숨깁니다 */
  .teacher-table .c-area { display: none; }
}
