/* content.css — 서브페이지 전용 (main.css 컴포넌트 재사용 + 서브 추가분) */

/* ── 서브 히어로 (페이지 상단 배너, fixed 헤더 회피) ── */
.sub-hero {
  position: relative;
  padding: 150px 0 60px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-water.jpg") center / cover no-repeat;
}

/* 페이지별 서브 히어로 배경 차등 (에디토리얼 다양성) */
.sub-hero--about {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-shore.jpg") center / cover no-repeat;
}

.sub-hero--lecture {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.95), rgba(0, 87, 184, 0.82)),
    url("/img/layout/oceanclass-class-generated.png") center / cover no-repeat;
}

.sub-hero--notice {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-calm.jpg") center / cover no-repeat;
}

.sub-hero--archive {
  background:
    linear-gradient(100deg, rgba(9, 38, 66, 0.94), rgba(0, 87, 184, 0.78)),
    url("/img/layout/ocean-wave.jpg") center / cover no-repeat;
}

.sub-hero .container {
  position: relative;
  z-index: 1;
}

.sub-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #bdefff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sub-hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.sub-hero-kicker + .class-badge {
  margin-left: 10px;
  margin-bottom: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 700;
}

.sub-hero p {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  line-height: 1.66;
}

.sub-crumb {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.sub-crumb a {
  transition: color 180ms ease;
}

.sub-crumb a:hover {
  color: #fff;
}

/* ── 클래스 소개: 정보 카드 ── */
.about-lead {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.info-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.info-list .info-key {
  color: var(--navy);
  font-weight: 700;
}

.info-list .info-val {
  color: var(--text-secondary);
}

/* ── 클래스(강의 입장): 클래스 카드 ── */
.class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.class-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(9, 38, 66, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 87, 184, 0.24);
  box-shadow: 0 24px 58px rgba(9, 38, 66, 0.13);
}

.class-card-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.class-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.class-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0, 87, 184, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.class-badge.vod {
  color: var(--positive);
  background: rgba(18, 134, 111, 0.1);
}

.class-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.class-card .class-desc {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.class-meta {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.class-meta b {
  color: var(--navy);
}

.class-card .button {
  margin-top: 20px;
}

.class-card .button[aria-disabled="true"] {
  pointer-events: none;
  color: #fff;
  background: #9fb3c4;
  box-shadow: none;
}

/* 안내 박스 (모집 전 상태 등) */
.status-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(0, 87, 184, 0.18);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--navy);
  font-weight: 600;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.status-note.is-error {
  border-color: rgba(179, 38, 30, 0.22);
  background: #fff5f3;
  color: #b3261e;
}

.status-note .icon-badge {
  flex: 0 0 auto;
  margin: 0;
}

/* ── 게시판 목록 ── */
.board-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.board-list li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  transition: background-color 180ms ease, padding 180ms ease;
}

.board-list li:hover {
  padding-left: 14px;
  padding-right: 14px;
  background: rgba(0, 87, 184, 0.04);
}

.board-list .b-date {
  text-align: center;
  color: var(--navy);
  font-weight: 700;
}

.board-list .b-date span {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.board-list .b-title {
  min-width: 0;
  font-weight: 600;
  transition: color 180ms ease;
}

.board-list li:hover .b-title {
  color: var(--accent);
}

.board-list .b-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(0, 87, 184, 0.08);
  font-size: 12px;
  font-weight: 700;
}

/* 게시판 관리자 툴바 */
.board-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

/* 게시판 상세 */
.board-view {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
  overflow: hidden;
}

.board-view-head {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.board-view-head .b-tag {
  margin-bottom: 14px;
}

.board-view-head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.32;
  font-weight: 700;
  color: var(--navy);
}

.board-view-meta {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.board-view-body {
  padding: 32px;
  line-height: 1.8;
  color: var(--text);
  min-height: 200px;
}

.board-view-admin {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-top: 1px dashed rgba(0, 87, 184, 0.3);
  background: rgba(0, 87, 184, 0.04);
}

.board-view-admin .admin-note {
  margin-right: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.board-view-foot {
  display: flex;
  justify-content: flex-end;
  padding: 22px 32px;
  border-top: 1px solid var(--border);
}

.button.danger {
  color: #fff;
  background: #d23f3f;
  box-shadow: 0 14px 30px rgba(210, 63, 63, 0.22);
}

.button.danger:hover {
  background: #b22f2f;
}

/* 페이지네이션 */
.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.pager .current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.pager a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── 수강신청 폼 ── */
.apply-form,
/* QA(260807) — 정보보완류 폼이 이 grid+gap 을 물려받지 못해 마지막 입력행과 저장
   버튼이 여백 없이 붙어 보이던 문제. .apply-form 과 같은 간격 규칙을 그대로 공유한다.
   (이 클래스를 실제로 쓰는 화면은 별도 트랙에서 아직 커밋 전 — 이 규칙 자체는 미사용 상태로
   대기, 해당 화면 커밋 시 함께 활성화됨.) */
.profile-form {
  display: grid;
  gap: 28px;
  width: 100%;
}

.form-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
}

.form-block > h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.form-row:last-child {
  border-bottom: 0;
}

.form-row > label {
  font-weight: 600;
  color: var(--navy);
}

.form-row .req {
  color: #d23f3f;
  margin-left: 2px;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea.form-input {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.12);
}

/* QA(260807) — 주소 입력칸 + "우편번호 검색" 버튼을 한 줄에 두되, 좁은 화면에선 줄바꿈. */
.address-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.address-input-group .form-input {
  flex: 1 1 220px;
  min-width: 0;
}

.address-input-group .button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 18px;
}

/* A2(plan 024) — 입력칸 하단 보조 안내문구 (주소 등) */
.field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.agree-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}

.agree-item:last-child {
  border-bottom: 0;
}

.agree-item input {
  margin-top: 4px;
}

.form-submit {
  display: flex;
  justify-content: center;
}

.form-submit .button {
  min-width: 240px;
}

/* ── 신청 완료 ── */
.apply-done {
  max-width: 620px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
}

.apply-done .icon-badge {
  margin: 0 auto 20px;
  color: var(--positive);
  background: rgba(18, 134, 111, 0.1);
}

.apply-done h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.apply-done p {
  margin: 0 0 28px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.apply-done-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 강의 입장 (02_lecture) ── */
.lecture-class-head {
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(9, 38, 66, 0.06);
}

.lecture-class-head-grid {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 28px;
  align-items: start;
}

.lecture-class-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
}

.lecture-class-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lecture-class-info {
  min-width: 0;
}

.lecture-class-head h2 {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.lecture-topic {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.lecture-class-head .class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lecture-class-head .class-meta b {
  color: var(--navy);
}

.lecture-intro {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  line-height: 1.7;
  color: var(--text-secondary);
}

.lecture-schedule-panel {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .lecture-class-head {
    padding: 22px;
  }

  .lecture-class-head-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lecture-class-poster {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
}

.identify-box {
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.identify-box h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.identify-box p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.identify-error {
  color: #b3261e !important;
  font-weight: 600;
}

/* 본인확인 게이트 + 모달 (공개 페이지, plan 011 3군) */
.identify-gate {
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.identify-gate p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.identify-gate-help {
  margin: 14px 0 0 !important;
  font-size: 13px;
}

.identify-gate-help a {
  color: var(--navy);
  font-weight: 600;
}

/* 본인확인 팝업(.oc-modal)은 main.css 로 통일 — 수강신청·강의입장 시각 동일. */

.identify-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.identify-row .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.identify-row .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.identify-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: rgba(18, 134, 111, 0.08);
  color: var(--navy);
}

.identify-logout {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: underline;
}

.lecture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

/* QA(260807) align-items:start → client 260811 §1 2차 정정으로 다시 변경(아래 참고).
   원래 문제: align-items:center 는 카드 안 제일 큰 칸 기준으로 다른 칸을 가운데 맞춰,
   입장가능(버튼 한 줄)과 입장불가(버튼+안내문구 두 줄)의 오른쪽 칸 높이차 때문에 버튼 세로
   위치가 회차마다 들쭉날쭉해 보였다. align-items:start로 바꿔 "버튼이 항상 카드 상단에서
   시작"하도록 1차 고정했으나, 재신고("여전히 안 맞음") 조사 결과 진짜 문제는 안내문구 유무로
   카드 자체의 높이가 달라 보이는 것이었다 — start 정렬은 각 카드 안에서는 정확했지만 카드
   높이 자체의 편차(안내문구 없음=짧음/두줄=긺)가 "정렬이 안 맞다"는 인상을 준다.
   액션 칸에 min-height 를 강제로 줘 모든 카드를 균일하게 키우는 방식도 시도했으나, 안내문구가
   없는 카드(버튼만)에 텅 빈 여백만 남기는 역효과가 나 재신고("박스가 왜 커졌죠, 여백만
   생겼다")를 받았다. **최종**: align-items:stretch(그리드 기본값)로 각 칸이 카드 실제 높이
   (콘텐츠가 결정 — 안내문구 있으면 자연히 더 큼, 그 자체는 문제 아님)만큼 늘어나게 하고,
   `.lecture-action`(아래) 내부를 flex 세로중앙 정렬해 그 늘어난 칸 안에서 버튼/배지가 항상
   중앙에 오게 한다. 카드 높이는 콘텐츠에 따라 다를 수 있지만, 버튼/배지가 위로 쏠리거나 아래
   여백만 남는 일 없이 항상 "그 카드 안에서 중앙"이라 들쭉날쭉하다는 인상이 사라진다. */
.lecture-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: stretch;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(9, 38, 66, 0.05);
}

.lecture-seq {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 87, 184, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.lecture-info h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.lecture-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: #eef2f5;
}

.lecture-type.live {
  color: #fff;
  background: var(--accent);
}

.live-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 50px rgba(9, 38, 66, 0.18);
}

.live-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 라이브챗 패널(plan 041 §2-2) — 채팅 유무에 따라 열 구성 자체를 :has()로 바꾼다.
   grid-template-columns 를 2열로 고정하면 채팅 off·embed_domain fail-closed 시
   340px 빈 칸이 남고, align-items:stretch 는 769-1220px(.container 2열 구간)에서
   .live-chat min-height:480px 에 맞춰 영상 칸까지 늘어나 16:9 를 깨뜨린다(그록
   2차 지적, 계산 확인) — 그래서 .live-embed 는 align-self:start 로 stretch에서
   제외한다. */
.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.live-layout:has(.live-chat) {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.live-layout .live-embed {
  align-self: start;
}

.live-chat {
  position: relative;
  min-height: 480px;
}

.live-chat iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .live-layout:has(.live-chat) {
    grid-template-columns: 1fr;
  }
}

/* 커스텀 플레이어 컨트롤(plan 050) — 토글 ON일 때만 렌더된다.
   .live-controls 는 .live-embed 안에서 영상 하단을 덮는다. 이 불투명 오버레이는
   좌하단 공유 UI의 우발적 조작을 줄이는 표시층일 뿐 URL 유출 방지는 아니다. */
.live-stage { position: relative; }

.live-embed #live-yt-player,
.live-embed #live-yt-player-target {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.live-controls {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #092642;
}
.live-controls[hidden] { display: none; }

.live-loading {
  display: flex;
  flex: 1 0 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.live-loading[hidden] { display: none; }

.live-recovery-action {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.live-recovery-action:hover,
.live-recovery-action:focus-visible { background: rgba(255, 255, 255, 0.16); }
.live-recovery-action[hidden] { display: none; }

.live-basic-player-note {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}
.live-basic-player-note[hidden] { display: none; }

.live-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 160ms ease;
  flex-shrink: 0;         /* 042b — 볼륨 슬라이더 추가로 생기는 수축 압력이
                              원형 버튼을 타원으로 누르지 않게(그록 지적) */
}
.live-ctrl:hover,
.live-ctrl:focus-visible { background: var(--accent, #0057b8); }
.live-ctrl:disabled,
.live-ctrl-volume:disabled { opacity: 0.5; cursor: wait; }
.live-ctrl svg { width: 18px; height: 18px; flex-shrink: 0; }

/* 볼륨 슬라이더(042b) — 데스크톱(정밀 포인터+충분한 폭) 전용, 042b §1-2 산식 */
.live-ctrl-volume { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 480px) {
  .live-ctrl-volume {
    display: inline-block;
    flex: 0 0 70px;
    min-width: 0;      /* input[type=range] UA 기본폭(~129px)이 flex-basis를
                           이기지 못하게 */
    width: 70px;
    accent-color: #fff;  /* 확대모드 검정 배경 대비. 비확대 배경 rgba(9,38,66,.9)
                             위에서도 문제없음 */
  }
}

/* 재생/일시정지·음소거 토글 — 두 아이콘을 같이 그려두고 상태 클래스로 하나만 노출.
   is-paused 없는 기본값 = 재생 중(일시정지 아이콘 노출), JS 가 실제 상태로 동기화. */
.live-ctrl .ico-play { display: none; }
.live-ctrl.is-paused .ico-pause { display: none; }
.live-ctrl.is-paused .ico-play { display: block; }
.live-ctrl .ico-muted { display: none; }
.live-ctrl.is-muted .ico-unmuted { display: none; }
.live-ctrl.is-muted .ico-muted { display: block; }
.live-ctrl .ico-collapse { display: none; }
.live-ctrl.is-expanded .ico-expand { display: none; }
.live-ctrl.is-expanded .ico-collapse { display: block; }

.live-ctrl-live {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.live-ctrl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
}

/* 채팅 토글 — 확대모드 전용(042 §2-4). 채팅 자체가 꺼진 클래스는 PHP 가 이
   버튼을 아예 렌더하지 않으므로, 이 규칙은 "채팅 켜진 클래스" 안에서만 동작. */
.live-ctrl-chat { display: none; }
body.live-expanded .live-ctrl-chat { display: inline-flex; }

body.live-expanded .container:has(.live-stage) {
  max-width: none;              /* 1180px 캡 해제 — vw 단위 안 씀, 스크롤바 오버플로 없음 */
  width: 100%;
}
body.live-expanded .section {
  padding: 0;
}
body.live-expanded .live-stage {
  min-height: 100vh;    /* dvh 미지원 구형 브라우저 폴백 — 반드시 100dvh보다 먼저 선언 */
  min-height: 100dvh;   /* 뷰포트 전체 높이 컨테이닝 블록 확보 */
  display: flex;
  flex-direction: column;
  justify-content: center;   /* 16:9 영상이 스테이지보다 낮으면 세로 중앙 배치 */
  background: #000;
}
body.live-expanded .live-layout {
  grid-template-columns: minmax(0, 1fr);   /* 항상 1열. 특이도(0,2,1) > :has(.live-chat)(0,2,0)라 !important 불필요 */
}
body.live-expanded .live-embed {
  width: min(100%, calc(100dvh * 16 / 9));
  max-height: 100dvh;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
}
/* 확대 상태에서는 fixed 채팅(z-index:5)보다 바가 앞에 있어야 컨트롤과 채팅 닫기
   버튼을 모두 실제로 조작할 수 있다. 기본 상태에는 두 레이어가 겹치지 않는다. */
body.live-expanded .live-controls { z-index: 6; }
body.live-expanded .live-chat {
  position: fixed;      /* 위 .live-controls와 동일 사유로 absolute→fixed */
  right: 16px; bottom: 72px;   /* .live-controls 바 위로 여유 */
  width: min(360px, calc(100% - 32px));
  height: min(70dvh, 520px);
  min-height: 0;    /* 041 .live-chat{min-height:480px} 누수 차단(그록 실측 지적,
                        2026-08-21) — 저해상도 가로(예: 844x390)에서 480px가
                        뷰포트를 넘어 채팅이 화면 밖으로 잘리던 결함. 이 선택자
                        특이도(0,2,1) > 041 base(0,1,0)라 이 한 줄로 항상 이김,
                        portrait 오버라이드는 이 속성을 안 건드리므로 세로모드도
                        같이 적용됨. */
  z-index: 5;
  display: none;                                       /* 토글로만 표시 */
}
body.live-expanded.live-chat-open .live-chat { display: block; }

/* 세로모드 — 우측하단 고정 패널 대신 하단 바텀시트(042 §2-5). .live-controls 바
   위로 여유를 두는 bottom:72px, 단위는 .live-stage 와 동일한 dvh 로 통일. 이
   블록은 위 우측하단 규칙 뒤에 와야 같은 상세도에서 나중 선언이 이겨 덮어쓴다. */
@media (orientation: portrait) {
  body.live-expanded .live-chat {
    inset: auto 0 72px 0;
    height: 60dvh;
    width: 100%;
  }
}

body.live-expanded .site-header,
body.live-expanded .site-footer,
body.live-expanded .floating-top,
body.live-expanded .adminbar,
body.live-expanded .oc-modal,
body.live-expanded .sub-hero,
body.live-expanded .live-page-extra { display: none; }
body.live-expanded { overflow: hidden; }
body.live-expanded.has-adminbar { padding-top: 0; }   /* inline-admin.css:84-86 상쇄 */

/* VOD 커스텀 컨트롤(plan 052). 정상 상태는 한 줄이며 복구 안내만 별도 행을 쓴다. */
.watch-stage .live-embed #yt-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vod-controls { flex-wrap: nowrap; }
.vod-controls .live-loading {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  padding: 8px 14px;
  background: #092642;
}
.vod-controls .live-basic-player-note {
  flex: 1 0 100%;
  margin: 0;
}
.vod-ctrl-row {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 8px;
}
.vod-ctrl-seek-group {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}
.vod-ctrl-skip {
  width: auto;
  min-width: 44px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vod-ctrl-seek {
  display: block;
  flex: 1 1 auto;
  min-width: 80px;
  width: 0;
  height: 24px;
  accent-color: #fff;
  cursor: pointer;
}
.vod-ctrl-volume {
  display: none;
  height: 24px;
  accent-color: #fff;
  cursor: pointer;
}
.vod-ctrl-seek:disabled,
.vod-ctrl-volume:disabled { opacity: 0.5; cursor: wait; }
@media (hover: hover) and (pointer: fine) and (min-width: 600px) {
  .vod-ctrl-volume {
    display: inline-block;
    flex: 0 0 70px;
    min-width: 0;
    width: 70px;
  }
}
.vod-ctrl-time {
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 599px) {
  .vod-ctrl-volume,
  .vod-ctrl-time { display: none; }
  .vod-controls { gap: 5px; padding: 8px; }
  .vod-ctrl-row { gap: 5px; }
  .vod-ctrl-seek-group { gap: 5px; }
  .vod-controls .live-ctrl { width: 34px; height: 34px; min-height: 34px; }
  .vod-controls .live-ctrl.vod-ctrl-skip { width: auto; min-width: 40px; padding-inline: 7px; }
  .vod-ctrl-seek { min-width: 48px; }
  .vod-controls.is-no-skip .vod-ctrl-time { display: block; }
}
body.vod-expanded .container:has(.watch-stage) { max-width: none; width: 100%; }
body.vod-expanded .section { padding: 0; }
body.vod-expanded .watch-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}
body.vod-expanded .watch-stage .live-embed {
  width: min(100%, calc(100dvh * 16 / 9));
  max-height: 100dvh;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
}
body.vod-expanded .vod-controls { z-index: 6; }
body.vod-expanded .site-header,
body.vod-expanded .site-footer,
body.vod-expanded .floating-top,
body.vod-expanded .adminbar,
body.vod-expanded .sub-hero,
body.vod-expanded .watch-meta,
body.vod-expanded .lecture-detail-meta,
body.vod-expanded .watch-note { display: none; }
body.vod-expanded { overflow: hidden; }
body.vod-expanded.has-adminbar { padding-top: 0; }

/* Native fullscreen 기하는 이 규칙만 담당하고 CSS 대체 확대는 위 body 규칙만 쓴다. */
.watch-stage:fullscreen {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}
.watch-stage:fullscreen .live-embed {
  width: min(100%, calc(100dvh * 16 / 9));
  max-height: 100dvh;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
}
.watch-stage:fullscreen .vod-controls { z-index: 6; }

/* 구 Safari는 모르는 표준/프리픽스 선택자가 같은 목록에 있으면 규칙 전체를 버릴 수 있다. */
.watch-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}
.watch-stage:-webkit-full-screen .live-embed {
  width: min(100%, calc(100dvh * 16 / 9));
  max-height: 100dvh;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 0;
  box-shadow: none;
}
.watch-stage:-webkit-full-screen .vod-controls { z-index: 6; }

.watch-stage { position: relative; }

.watch-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.watch-progress {
  font-weight: 700;
  color: var(--accent);
}

.watch-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── 마이페이지 진도 ── */
.mypage-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.mypage-stat {
  flex: 1;
  min-width: 150px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(9, 38, 66, 0.06);
}

.mypage-stat .n { font-size: 28px; font-weight: 700; color: var(--accent); }
.mypage-stat .l { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.mypage-stat.done .n { color: var(--positive); }

.progress-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.progress-item {
  display: grid;
  /* client 신고(260812) — 마지막 칸(버튼/배지)이 80px 고정이라 "이수 후 이용 가능" 같은
     긴 라벨이 칸 밖으로 삐져나옴. 콘텐츠 폭만큼은 늘어나게 minmax로 변경. */
  grid-template-columns: 56px 1fr 120px minmax(148px, auto);
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e6eef4;
  overflow: hidden;
}

.progress-bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.progress-kind {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.progress-percent.muted {
  color: var(--text-secondary);
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.progress-item > div:last-child {
  display: flex;
  justify-content: center;
}

.progress-badge.done { color: var(--positive); background: rgba(18, 134, 111, 0.1); }
.progress-badge.ing { color: var(--text-secondary); background: #eef2f5; }

/* ── 강의평가 ── */
.eval-form { display: grid; gap: 24px; }

.star-rating {
  position: relative;   /* 아래 sr-only 라디오의 기준 박스 */
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  font-size: 34px;
  line-height: 1;
}

/* 별점 라디오는 화면에 보이지 않지만 **focus 는 가능해야** 한다.
   예전처럼 `display: none` 이면 required 를 붙였을 때 브라우저가
   "An invalid form control with name='rating' is not focusable." 로 제출만 막고
   안내 문구는 띄우지 못해, 사용자에게는 "제출 버튼이 먹통"으로 보인다
   (2026-09-09 실제 Chromium 실측). 보이지 않는 것은 그대로, focus 만 살린다. */
.star-rating input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  color: #d6dee6;
  cursor: pointer;
  transition: color 120ms ease;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b301;
}

.tag-choices { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-choice { cursor: pointer; }
.tag-choice input { display: none; }

.tag-choice span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 140ms ease;
}

.tag-choice input:checked + span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ── 수료증 (인쇄용) ── */
.cert-frame {
  position: relative;
  width: min(794px, 100%);
  aspect-ratio: 210 / 297;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(9, 38, 66, 0.08);
  font-family: Pretendard, sans-serif;
  text-align: center;
  overflow: hidden;
  color: #111;
}

.cert-frame::before {
  content: "";
  display: none;
}

.cert-frame.gold::before { border-color: #b5965a; }
.cert-frame > * { position: absolute; z-index: 1; box-sizing: border-box; margin: 0; }
.cert-frame .cert-mark {
  z-index: 0;
  top: 38.49%;
  left: 28.67%;
  width: 43.95%;
  max-width: 360px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
}

.cert-logo { top: 11.78%; left: 17.29%; width: 12.19%; display: block; }
.cert-logo img { width: 100%; height: auto; display: block; }
.cert-kicker { display: none; }
.cert-title { top: 22.90%; left: 0; width: 100%; font-size: clamp(28px, 5.88vw, 46.7px); line-height: 1; font-weight: 700; color: #111; letter-spacing: .24em; text-indent: 0; }
.cert-meta { top: 11.78%; left: auto; right: 17.29%; width: auto; text-align: right; font-size: clamp(12px, 2.35vw, 18.7px); line-height: 1.2; font-weight: 500; color: #111; }
.cert-info-block { top: 35.05%; left: 48%; width: 42%; font-size: clamp(14px, 3.02vw, 24px); line-height: 1.45; font-weight: 500; color: #111; text-align: left; white-space: nowrap; }
.cert-info-row { display: flex; align-items: baseline; }
.cert-info-label { flex: 0 0 5.2em; text-align: justify; text-align-last: justify; padding-right: .45em; }
.cert-info-value { flex: 1 1 auto; min-width: 0; text-align: left; }
.cert-name { display: none; }
.cert-body { top: 46.06%; left: 0; width: 100%; padding: 0 14%; line-height: 1.6; color: #111; font-size: clamp(14px, 3.02vw, 24px); font-weight: 500; }
.cert-body p { margin: 0; }
.cert-body strong { font-weight: 700; }
.cert-issue { top: 67.81%; left: 0; width: 100%; font-size: clamp(15px, 3.18vw, 25.2px); line-height: 1.2; font-weight: 500; color: #111; }
/* 발급기관+대표직함 한 줄 + 직인은 텍스트 마지막 글자에 겹치도록 인라인 오버레이로 배치
   (직인 폭이 텍스트 상자 기준 % 고정이면 폰트/문구 길이가 바뀔 때 안 맞으므로,
   텍스트 상자 자체를 내용 크기로 감싸고 그 오른쪽 끝에 em 단위로 겹친다) */
.cert-sign-row { top: 79.85%; left: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.cert-sign-inner { position: relative; display: inline-flex; align-items: center; font-size: clamp(21px, 4.4vw, 35px); line-height: 1.2; font-weight: 700; color: #111; white-space: nowrap; }
/* 직인은 글자 뒤(z-index 1)에 겹치고, 문구 자체는 그 위(z-index 3)에서 항상 온전히 읽히게 한다. */
.cert-sign-label { position: relative; z-index: 3; }
.cert-seal { position: absolute; top: 50%; left: 100%; transform: translate(-27%, -50%); width: 2.2em; height: auto; object-fit: contain; display: block; z-index: 1; margin: 0; box-sizing: border-box; }
.cert-seal-text { position: absolute; top: 50%; left: 100%; transform: translate(-27%, -50%); width: 2.2em; font-size: .55em; line-height: 1.2; font-style: normal; font-weight: 500; color: #111; text-align: center; z-index: 1; margin: 0; box-sizing: border-box; }

@media print {
  .site-header, .site-footer, .floating-top, .sub-hero, .cert-actions, .cta-bar { display: none !important; }
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .section, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .cert-frame { width: 210mm; height: 297mm; box-shadow: none; padding: 0; }
  .cert-frame .cert-mark { left: 60.2mm; top: 114.3mm; width: 92.3mm; max-width: none; }
  .cert-logo { left: 36.3mm; top: 35mm; width: 25.6mm; }
  .cert-title { top: 68mm; font-size: 35pt; }
  .cert-meta { top: 35mm; left: auto; right: 36.3mm; width: auto; text-align: right; font-size: 14pt; }
  .cert-info-block { left: 100mm; top: 104.1mm; width: 88mm; font-size: 18pt; line-height: 9.7mm; }
  .cert-info-label { flex-basis: 28mm; padding-right: 2mm; }
  .cert-body { top: 136.8mm; padding: 0 24mm; font-size: 18pt; line-height: 10.15mm; }
  .cert-issue { top: 201.4mm; font-size: 18.9pt; }
  .cert-sign-row { top: 234mm; }
  .cert-sign-inner { font-size: 26pt; }
}

@media (max-width: 640px) {
  .cert-info-block { left: 46%; width: 50%; font-size: clamp(9px, 3.1vw, 14px); }
  .cert-body { padding: 0 9%; font-size: clamp(10px, 3.2vw, 14px); }
  .identify-row { grid-template-columns: 1fr; }
  .lecture-item { grid-template-columns: 48px 1fr; }
  .lecture-action { grid-column: 1 / -1; }
  /* client 미신고, 문서감사 2차 발견(260812) — 기존 4컬럼(56/1fr/120/minmax)에서 컬럼을
     3개만 재정의해 4번째 항목(평가버튼/배지)이 명시 트랙 밖으로 밀려나 다음 줄로 줄바꿈
     되며 좌측이 잘려 보이던 문제. .lecture-item/.lecture-action(위 1105~1106행)과 동일하게
     2컬럼 + 3·4번째 항목 전체너비 별도 줄로 전환해 실제 확인(2026-08-13, 375px 스크린샷). */
  .progress-item { grid-template-columns: 44px 1fr; }
  .progress-item .progress-bar { grid-column: 1 / -1; }
  .progress-item > div:nth-child(3),
  .progress-item > div:nth-child(4) { grid-column: 1 / -1; }
}

@media screen and (max-width: 640px) {
  .cert-sign-inner { font-size: clamp(16px, 3.6vw, 22px); }
}

/* ── 단순 본문 (sub-hero 없는 페이지 대비) ── */
.page-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 128px 20px 80px;
}

.page-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 24px;
}

.location {
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.location ol {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 760px) {
  .about-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }

  .info-list li,
  .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .board-list li {
    grid-template-columns: 58px 1fr;
  }

  .board-list .b-tag {
    grid-column: 2;
    justify-self: start;
  }
}

/* 공통 공지/클래스/회차 폼 (.nf-*) — *_form.php 공용 (프론트). 카드 톤 */
.nf-form { margin: 0 auto; padding: 38px 42px; background: #fff;
    border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 6px 24px rgba(9,38,66,.09); }
/* QA(260807) — align-items:end 는 옆 칸에 안내문구(.nf-hint)나 이미지 미리보기처럼 키가
   더 큰 내용이 붙으면 짧은 칸 전체를 아래로 밀어 라벨·입력칸이 서로 어긋나 보이게 만든다
   (강사/소속 ↔ 강사 사진 미리보기, 모집 종료 ⚠힌트 등 실제로 재현됨). 라벨이 있는 입력칸
   끼리는 위 기준이 항상 안전하다. */
.nf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
/* 체크박스 전용 칸(.nf-field--check)은 위 라벨이 없어 그대로 위 정렬하면 옆 입력칸보다
   높이 떠 보인다 — 라벨 한 줄 몫(약 28px)만큼 아래로 내려 입력칸과 눈높이를 맞춘다. */
.nf-field--check { display: flex; align-items: flex-end; padding-top: 28px; }
.nf-field { margin-bottom: 18px; }
.nf-field > label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
.nf-input, .nf-select, .nf-textarea { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font: inherit; color: var(--text);
    outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.nf-textarea { height: auto; min-height: 150px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
input.nf-input[type=file] { height: auto; padding: 11px 14px; cursor: pointer; }
.nf-input:focus, .nf-select:focus, .nf-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,87,184,.12); }
.nf-check { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 400; color: var(--text); min-height: 46px; }
.nf-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.nf-foot { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.nf-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; min-height: 48px;
    padding: 0 24px; border-radius: 999px; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.nf-btn.primary { background: var(--accent); color: #fff; }
.nf-btn.ghost { background: #fff; border-color: var(--border); color: var(--text); }
@media (max-width: 600px) { .nf-row { grid-template-columns: 1fr; } .nf-form { padding: 22px 18px; } }

/* 클래스/회차 폼 보조 + 프론트 회차목록 (.nf-hint/.cw-lec*) — class_write.php */
.nf-hint { font-size: 12px; color: #8a8f98; margin: 4px 0 0; }
.cw-lechead { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 12px; }
.cw-lechead h3 { font-size: 18px; margin: 0; }
.cw-leclist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-lecrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.cw-lecseq { font-weight: 700; color: var(--accent); min-width: 40px; }
.cw-lectitle { flex: 1; font-weight: 600; }
.cw-lecacts { display: flex; gap: 8px; }
.cw-lecacts form { display: inline; margin: 0; }
/* 회차목록 버튼은 폼 푸터용 큰 .nf-btn 보다 작게 */
.cw-lechead .nf-btn, .cw-lecrow .nf-btn { min-width: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }

/* 정책/가이드 본문 (.policy-content) — html/policy/*.php */
.policy-content { max-width: 860px; margin: 0 auto; color: var(--text); line-height: 1.75; }
.policy-content h2 { font-size: 26px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.policy-content h3 { font-size: 17px; margin: 28px 0 8px; color: var(--text); }
.policy-content p { margin: 0 0 14px; color: var(--text-secondary); }
.policy-content p b { color: var(--text); }
.policy-content small { color: var(--text-secondary); font-size: 13px; }

/* 클래스 카드 (.cls-card) — 04_archive 목록 + 01_about 당해 클래스 (plan 010, share/inc/class_card.php) */
.cls-card { margin: 0 0 40px; }
.cls-card:last-of-type { margin-bottom: 0; }
.cls-card-year {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .02em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
/* QA(260807 6차 §2, 01_about·04_archive 클래스 카드) — 클라 피드백: "글자가 오른쪽에 여백이
   충분해 보이니 포스터 사이즈를 키우고 글자를 좀 더 오른쪽으로 넣어도 되겠다." 포스터 고정폭
   300px → 400px 확대. 정보 컬럼은 계속 1fr(카드 나머지 폭)을 차지하되, 실제 텍스트 블록
   (`.cls-card-info`, 아래)은 max-width로 좁혀 `justify-self:end`로 컬럼 안에서 오른쪽으로
   붙인다 — 값이 짧아 오른쪽에 남던 큰 여백을 좁히면서 "글자를 오른쪽으로"를 만족시킨다. */
.cls-card-body {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 44px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(9, 38, 66, 0.07);
}
/* QA(260807) — 01_about 확대버튼이 카드 우측 하단 엉뚱한 곳에 박혀 보이던 원인:
   .cls-card-poster-frame 이 .cls-card-body 그리드의 아이템이라 기본 align-self:stretch 로
   info 컬럼(01_about 은 강의방법·수강료 등 추가 항목이 많아 더 김) 높이만큼 늘어나고,
   포스터(고정 3:4 비율)는 그 늘어난 박스 위쪽에만 차지해 아래 빈 공간이 생겼다.
   확대버튼은 그 빈 공간을 기준(bottom:10px)으로 붙어 이미지에서 멀리 떨어져 보였다.
   프레임을 그리드 셀 안에서 늘어나지 않게 고정한다. */
.cls-card-poster-frame { position: relative; align-self: start; }
.cls-card-poster {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
}
.cls-card-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.cls-card-poster img { transition: transform 220ms ease; }
a.cls-card-poster:hover img { transform: scale(1.03); }
/* B4(plan 024) — 포스터 확대(원본 비율) 트리거. cls-card-poster 는 3:4 crop 이라 확대는 별도 라이트박스로 보여준다.
   QA(260807, 히어로 포스터 B1 확대기능 추가와 함께) — main.css 로 이동: main.css 는 전 페이지
   로드(header.php `$main` 분기 무관)라 content.css 를 안 불러오는 00_main 히어로 포스터에서도
   같은 버튼·라이트박스를 재사용할 수 있다. 여기(content.css)엔 더 이상 정의하지 않는다. */
.cls-card-poster-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
  font-weight: 600;
}
.cls-card-poster-empty--logo {
  background: #f5f8fb;
  padding: 24px;
}
.cls-card-poster .oc-noimage-logo,
.lecture-class-poster .oc-noimage-logo {
  width: min(68%, 180px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  opacity: .92;
}
.cls-card-info {
  min-width: 0;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  justify-self: end;
}
.cls-card-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--navy); }
.cls-card-title a { color: inherit; text-decoration: none; }
.cls-card-title a:hover { color: var(--accent); }
.cls-card-topic { margin: 8px 0 0; color: var(--text-secondary); line-height: 1.6; }
.cls-card-list { width: 100%; margin-top: 18px; }
.cls-card .cls-card-more { margin-top: 20px; }
.cls-card .ia-source-note { width: 100%; }
@media (max-width: 768px) {
  .cls-card-body { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .cls-card-poster-frame { max-width: 320px; margin: 0 auto; width: 100%; }
  .cls-card-year { font-size: 24px; }
  /* QA(260807 6차 §2) — 데스크톱 전용 오른쪽 정렬(justify-self:end + max-width)을 1열
     스택에서는 되돌린다. 세로 스택에서는 텍스트 블록이 카드 폭 전체를 그대로 채워야 자연스럽다. */
  .cls-card-info { max-width: none; justify-self: stretch; }
}

/* B4(plan 024) — 포스터 확대 라이트박스는 QA(260807) 이후 main.css 로 이동(위 .cls-card-zoom
   주석과 같은 이유 — 히어로 포스터 재사용). 여기(content.css)엔 더 이상 정의하지 않는다. */

/* 연도별 강의일정표 (04_archive, plan 011 6군) */
.schedule-block {
  margin-top: 24px;
}

.schedule-year {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.schedule-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.schedule-table th,
.schedule-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.schedule-table th {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.schedule-table td.c,
.schedule-table th.c {
  text-align: center;
  white-space: nowrap;
}

.schedule-table tr.sched-hidden {
  opacity: 0.45;
}

.sched-row-act {
  display: inline-flex;
  gap: 6px;
}

@media (max-width: 768px) {
  .schedule-table { font-size: 13px; }
  .schedule-table th,
  .schedule-table td { padding: 10px; }
}

/* ── plan 017: 회차 강사 정보·게이트 안내·PC 전용 줄바꿈 ── */
.lecture-instructor {
  margin-left: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.lecture-gate-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 260px;
}

/* .lecture-action 세로중앙 정렬 — 위 .lecture-item 코멘트(client 260811 §1 2차 정정) 참고.
   client 신고(260812) — 평가 버튼이 입장 버튼 아래로 계단식으로 쌓여 "지저분하다"는 신고 →
   버튼들은 .lecture-action-buttons 로 한 줄에 나란히, 안내문구(있을 때만)는 그 아래 별도 줄. */
.lecture-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

.lecture-action-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lecture-item.is-hidden-row {
  opacity: .6;
}

/* QA(260807 8차) — "글자만 나열해둔 느낌" 신고. 원인은 디자인 의도가 아니라 버그였다:
   border 는 정의된 적 없는 `var(--line)`(오타·잔재 변수)를 참조해 애초에 렌더링되지
   않았고, 배경도 정의되지 않은 `var(--bg-soft)`라 항상 fallback(#f7f9fc, 사이트 토큰과
   무관한 회색)만 보였다. 사이트의 실제 "카드" 레시피(.cls-card-body, content.css:1187)를
   그대로 재사용해 톤을 통일한다. */
.lecture-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(9, 38, 66, 0.07);
}

.lecture-instructor-box {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lecture-instructor-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 8px 18px rgba(9, 38, 66, 0.12);
}

/* QA(260807 6차) — .info-key/.info-val 는 원래 .info-list 안에서만 스타일이 걸린다
   (content.css:130 부근). 이 박스는 .info-list 를 안 쓰는데 같은 클래스만 붙여놔서
   그냥 아무 여백도 없는 인라인 span 둘이 "강사이동현 ..."처럼 붙어 보이던 버그.
   라벨(강사)을 위, 이름+소속을 아래로 분리해 긴 소속명도 안전하게 감싼다. */
.lecture-instructor-box > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lecture-instructor-box .info-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent, #0057b8);
  text-transform: uppercase;
}

.lecture-instructor-box .info-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* 업체 요청: PC 에서만 쉼표 뒤 줄바꿈. 모바일은 자연스럽게 흐르게 둔다. */
@media (max-width: 768px) {
  .br-pc { display: none; }
  .lecture-detail-meta { gap: 14px; }
  .lecture-instructor-photo { width: 60px; height: 60px; }
}
