/* YACHTCAMP 클래스 (edu) — 화이트 에디토리얼 · 블랙 밴드 교차 스타일 */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f3f4f6;
  --ink: #111318;
  --sub: #6b7280;
  --line: #e5e7eb;
  --black: #0a0a0a;
  --accent: #0b5c4d;        /* 요트그린 — 브랜드 포인트 */
  --accent-bright: #12836e;
  --accent-soft: rgba(11, 92, 77, 0.08);
  --accent-line: rgba(11, 92, 77, 0.3);
  --amber: #b45309;
  --radius: 16px;
  --max: 1060px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* 상단바 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: 0.06em; font-size: 15px; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.wordmark-hq {
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
  background: var(--accent); color: #fff; font-size: 11px; letter-spacing: 0.05em;
}
.nav { display: flex; align-items: center; gap: 16px; margin-left: auto; }
/* 메뉴 글자는 줄바꿈하지 않는다 — 항목이 하나 늘자 '커리큘 / 럼'처럼 쪼개졌다(2026-09-19 프로필 추가 때 실측) */
.nav a { font-size: 14px; font-weight: 600; color: var(--sub); transition: color 0.15s; white-space: nowrap; }
.nav-more-btn { white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.nav-em { color: var(--ink); font-weight: 800; }

/* 더보기 드롭다운 */
.nav-more { position: relative; }
.nav-more-btn {
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--sub); display: inline-flex; align-items: center; gap: 4px;
}
.nav-more-btn:hover { color: var(--ink); }
.nav-more-btn .caret { font-size: 11px; transition: transform 0.15s; }
.nav-more-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: calc(100% + 14px); right: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 24px 50px -20px rgba(17, 19, 24, 0.25); z-index: 60;
}
.nav-drop[hidden] { display: none; }
.nav-drop a {
  display: block; padding: 11px 14px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.nav-drop a:hover { background: var(--panel-2); }

/* 햄버거 · 모바일 메뉴 */
.menu-toggle {
  display: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--ink);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -20px rgba(17, 19, 24, 0.2);
  padding: 14px 20px 22px; display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu .m-item {
  display: block; padding: 13px 10px; border-radius: 10px;
  font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.mobile-menu .m-item:hover { background: var(--panel-2); }
.m-divider { border-top: 1px solid var(--line); margin: 10px 0 14px; }
#m-auth { display: flex; flex-direction: column; gap: 10px; }
#m-auth .m-login {
  background: none; border: none; cursor: pointer; text-align: left; font: inherit;
  padding: 4px 10px 10px; font-size: 16px; font-weight: 700; color: var(--ink);
}
#m-auth .m-join {
  width: 100%; padding: 14px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--black); color: #fff; font-size: 16px; font-weight: 800;
}
#m-auth .m-user { font-size: 14px; color: var(--sub); padding: 0 10px; }
.live-chip {
  font-size: 12px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: var(--panel-2);
 white-space: nowrap; flex: none;}

/* 히어로 — 화이트 · 중앙정렬 */
.hero { padding: 92px 0 84px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 26px;
}
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--sub); text-transform: uppercase; margin-bottom: 16px;
}
.hero-title {
  font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.12;
  word-break: keep-all;
}
.hero-title .hl { box-shadow: inset 0 -0.34em 0 rgba(11, 92, 77, 0.16); }
.hero-sub {
  margin: 22px auto 0; font-size: 18px; color: var(--sub); max-width: 640px; word-break: keep-all;
}
.hero-sub strong { color: var(--ink); }
.hero-actions { margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.free-note { font-size: 14px; font-weight: 700; color: var(--accent); }

/* 버튼 — 알약형 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); cursor: pointer;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.btn:hover { background: var(--panel-2); }
.btn-primary { background: var(--black); border-color: var(--black); color: #fff; }
.btn-primary:hover { background: #23262e; }
.btn-lg { padding: 13px 30px; font-size: 15px; }

/* 블랙 밴드 — 프로그램/패키지 */
.band-dark { background: var(--black); color: #fff; padding: 72px 0; }
.band-dark .band-eyebrow {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55); text-transform: uppercase;
}
.band-dark .band-title {
  text-align: center; font-size: 32px; font-weight: 800; letter-spacing: -0.03em;
  margin-top: 14px; word-break: keep-all;
}
.band-dark .band-sub {
  text-align: center; font-size: 15px; color: rgba(255, 255, 255, 0.6);
  margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; word-break: keep-all;
}
.band-dark .band-sub strong { color: #fff; }

/* 챕터 타임라인 */
.chapter-line {
  display: flex; justify-content: center; gap: 0; margin: 44px auto 0;
  max-width: 860px; overflow-x: auto; padding-bottom: 6px;
}
.chapter-stop { flex: 1; min-width: 86px; text-align: center; position: relative; }
.chapter-stop::before {
  content: ''; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px;
  background: rgba(255, 255, 255, 0.16);
}
.chapter-stop:last-child::before { display: none; }
.chapter-dot {
  position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25); margin: 0 auto;
}
.chapter-stop.free .chapter-dot { background: #fff; }
.chapter-name { margin-top: 12px; font-size: 13px; font-weight: 700; }
.chapter-eps { margin-top: 2px; font-size: 11.5px; color: rgba(255, 255, 255, 0.5); }
.chapter-tag {
  display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--black);
}

/* 전강 패키지 (블랙 밴드 안) */
.bundle {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 22px 26px; margin: 44px auto 0; max-width: 760px;
}
.bundle-left { display: flex; flex-direction: column; gap: 5px; }
.bundle-left strong { font-size: 17px; }
.bundle-left span, .bundle.owned span { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); }
.bundle .btn-primary { background: #fff; border-color: #fff; color: var(--black); }
.bundle .btn-primary:hover { background: #e7e7e7; }
.bundle.owned { flex-direction: column; align-items: center; text-align: center; gap: 5px; }
.bundle.owned strong { font-size: 17px; }

/* 커리큘럼 섹션 */
.section { padding: 76px 0; }
.sec-head { margin-bottom: 34px; text-align: center; }
.sec-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--sub);
  text-transform: uppercase;
}
.sec-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; word-break: keep-all; }
.lecture-progress { margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--accent); }

/* 강의 카드 그리드 */
.lectures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lecture-card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.lecture-card.has-video, .lecture-card.locked { cursor: pointer; }
.lecture-card.has-video:hover, .lecture-card.has-video:focus-visible,
.lecture-card.locked:hover, .lecture-card.locked:focus-visible {
  transform: translateY(-3px); border-color: #cfd3da;
  box-shadow: 0 22px 44px -24px rgba(17, 19, 24, 0.28); outline: none;
}
.lecture-thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--panel-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lecture-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lecture-thumb.noimg {
  background:
    radial-gradient(120% 120% at 80% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(135deg, #f5f6f8, #eceef1);
}
.lecture-card.locked .lecture-thumb img { filter: grayscale(0.5) brightness(0.8); }
.lecture-ep-big { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; color: rgba(17, 19, 24, 0.1); }
.lecture-soon {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: #fff; color: var(--sub); border: 1px solid var(--line);
}
.lecture-soon.now { background: var(--accent); color: #fff; border-color: var(--accent); }
.lecture-free {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  background: var(--black); color: #fff;
}
.lecture-free.owned { background: var(--accent); color: #fff; }
.lecture-lock {
  position: absolute; top: 8px; right: 10px; font-size: 15px;
  filter: drop-shadow(0 1px 2px rgba(255,255,255,0.8));
}
.lecture-play {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, 0.78); color: #fff; font-size: 18px; padding-left: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(2px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.lecture-card.has-video:hover .lecture-play { transform: scale(1.08); background: var(--accent); border-color: var(--accent); }
.lecture-min {
  position: absolute; bottom: 8px; right: 8px;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  background: rgba(0, 0, 0, 0.72); color: #fff;
}
.lecture-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lecture-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lecture-chapter {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--panel-2); color: var(--ink);
}
.lecture-ep { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--sub); }
.lecture-price {
  font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--ink); color: var(--ink); background: #fff;
}
.lecture-title { font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -0.015em; word-break: keep-all; }
.lecture-desc { font-size: 13px; color: var(--sub); line-height: 1.6; }
/* 회차 목록 — 주 1회 x 월 4회 */
.sessions { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.session-row {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 7px 9px; border-radius: 9px; border: 1px solid transparent;
  background: var(--panel-2); cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.session-row.has-video:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.lecture-card.locked .session-row:hover { border-color: var(--line); background: #eceef1; }
.session-row:disabled { cursor: default; color: var(--sub); }
.s-week {
  flex: none; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--sub);
}
.session-row.has-video .s-week { color: var(--accent); border-color: var(--accent-line); }
.s-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; word-break: keep-all; }
.s-state { margin-left: auto; flex: none; font-size: 11px; font-weight: 700; color: var(--sub); }
.s-state.play { color: var(--accent); }

.lecture-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.note-btn.buy { background: var(--black); border-color: var(--black); color: #fff; }
.note-btn.buy:hover { background: #23262e; }
.note-btn {
  font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--accent);
  transition: border-color 0.15s, background 0.15s;
}
.note-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.note-btn.dim { color: var(--sub); cursor: default; }
.note-btn.dim:hover { border-color: var(--line); background: #fff; }

/* 로그인 · 회원가입 버튼 */
#auth-slot { display: flex; align-items: center; gap: 8px; }
.auth-login {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 700; padding: 7px 16px; color: var(--ink);
  transition: background 0.15s; white-space: nowrap;
}
.auth-login:hover { background: var(--panel-2); }
.auth-btn {
  font-size: 13px; font-weight: 700; padding: 7px 18px; border-radius: 999px; cursor: pointer;
  background: var(--black); border: 1.5px solid var(--black); color: #fff;
  transition: background 0.15s; white-space: nowrap;
}
.auth-btn:hover { background: #23262e; }
.auth-btn.auth-user { background: #fff; border-color: var(--line); color: var(--ink); }
.auth-btn.auth-user:hover { background: var(--panel-2); }
.auth-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 4px; }

/* 영상/패널 모달 */
.lecture-modal[hidden] { display: none; }
.lecture-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 12, 16, 0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lecture-modal-in { width: min(960px, 100%); position: relative; }
.lecture-frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}
.lecture-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lecture-modal-in.panel-mode .lecture-frame {
  aspect-ratio: auto; max-height: min(78vh, 720px); overflow-y: auto;
  background: var(--panel);
}
.lecture-close {
  position: absolute; top: -44px; right: 0;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 15px; line-height: 1;
}
.lecture-close:hover { background: rgba(255, 255, 255, 0.28); }
.lecture-modal-cap { margin-top: 14px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.lock-notice {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px;
  background: #fff;
}
.lock-notice-emoji { font-size: 42px; }
.lock-notice h3 { font-size: 20px; font-weight: 800; }
.lock-notice p { font-size: 14px; color: var(--sub); max-width: 440px; }

/* 패널 (로그인/구매/강의록/계정) */
.panel-box { padding: 34px 36px 36px; display: flex; flex-direction: column; gap: 12px; }
.panel-box h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; word-break: keep-all; }
.panel-loading { font-size: 14px; color: var(--sub); }
.auth-box { max-width: 460px; margin: 0 auto; width: 100%; }
.auth-sub { font-size: 13.5px; color: var(--sub); }
.auth-input {
  width: 100%; padding: 12px 15px; border-radius: 11px; font-size: 15px;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
}
.auth-input:focus { outline: none; border-color: var(--ink); }
.pw-wrap { position: relative; }
.pw-wrap .auth-input { padding-right: 46px; }
.pw-toggle {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 8px; cursor: pointer;
  background: none; font-size: 16px; line-height: 1; opacity: 0.65;
}
.pw-toggle:hover { opacity: 1; background: var(--panel-2); }
.auth-err { font-size: 13px; color: #c2410c; min-height: 18px; }
.auth-switch {
  background: none; border: none; cursor: pointer; margin-top: 6px;
  font-size: 13px; color: var(--accent); text-align: center; font-weight: 600;
}
.auth-switch:hover { text-decoration: underline; }
.buy-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.own-list { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 10px; }
.own-item { font-size: 14px; padding: 9px 13px; border-radius: 10px; background: var(--panel-2); }
.own-all { font-size: 15px; font-weight: 700; color: var(--accent); }

/* 강의록 본문 */
.note-view { max-width: 820px; margin: 0 auto; }
.note-md { font-size: 15px; line-height: 1.75; }
.note-md h1 { font-size: 26px; margin: 10px 0 14px; letter-spacing: -0.02em; }
.note-md h2 { font-size: 21px; margin: 26px 0 10px; letter-spacing: -0.01em; }
.note-md h3 { font-size: 17px; margin: 20px 0 8px; }
.note-md h4, .note-md h5, .note-md h6 { font-size: 15px; margin: 16px 0 6px; }
.note-md p { margin: 8px 0; }
.note-md ul, .note-md ol { margin: 8px 0 8px 22px; }
.note-md li { margin: 3px 0; }
.note-md blockquote {
  margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 8px 8px 0; color: #374151;
}
.note-md blockquote p { margin: 4px 0; }
.note-md code {
  font-family: Consolas, "D2Coding", monospace; font-size: 13px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
}
.note-md pre {
  margin: 12px 0; padding: 14px 16px; overflow-x: auto;
  background: #111318; color: #e8ecf3; border-radius: 10px;
}
.note-md pre code { background: none; border: none; padding: 0; color: inherit; }
.note-md hr { border: none; border-top: 1px solid var(--line); margin: 22px 0; }
.note-md a { color: var(--accent); text-decoration: underline; }
.md-tablewrap { overflow-x: auto; margin: 12px 0; }
.note-md table { border-collapse: collapse; font-size: 13.5px; min-width: 50%; }
.note-md th, .note-md td { border: 1px solid var(--line); padding: 7px 12px; text-align: left; }
.note-md th { background: var(--panel-2); }

/* 강의자료 페이지 — 아이콘 행 리스트 */
.mat-hero { padding: 64px 0 30px; border-bottom: 1px solid var(--line); }
.mat-section { padding: 44px 0 76px; }
.mat-group { max-width: 860px; margin: 0 auto 44px; }
.mat-group-title {
  font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); margin-bottom: 14px;
}
.mat-row {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 18px; margin-bottom: 10px; cursor: pointer; font: inherit; color: var(--ink);
  transition: transform 0.13s, border-color 0.13s, box-shadow 0.13s;
}
.mat-row:hover {
  transform: translateY(-2px); border-color: #cfd3da;
  box-shadow: 0 16px 32px -20px rgba(17, 19, 24, 0.25);
}
.mat-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px; font-size: 21px;
  display: flex; align-items: center; justify-content: center; background: var(--panel-2);
}
.mat-mid { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mat-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mat-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.mat-tag {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--panel-2); color: var(--sub);
}
.mat-free {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  background: var(--black); color: #fff; letter-spacing: 0.05em;
}
.mat-lock {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgba(224, 163, 78, 0.14); color: var(--amber);
}
.mat-desc { font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.mat-arrow { margin-left: auto; flex: none; font-size: 16px; color: var(--sub); transition: transform 0.13s, color 0.13s; }
.mat-row:hover .mat-arrow { transform: translateX(3px); color: var(--ink); }
@media (max-width: 560px) {
  .mat-hero { padding: 40px 0 22px; }
  .mat-row { padding: 12px 13px; gap: 12px; }
  .mat-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  .mat-title { font-size: 13.5px; }
  .mat-desc { font-size: 11.5px; }
  .mat-group-title { font-size: 16px; }
}

/* 후기 페이지 — 인용 카드 그리드 */
.rev-grid { columns: 3; column-gap: 18px; max-width: 1000px; margin: 0 auto; }
.rev-card {
  break-inside: avoid; margin-bottom: 18px; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 22px 18px;
}
.rev-card.featured { background: var(--black); border-color: var(--black); color: #fff; }
.rev-quote { display: block; font-size: 34px; font-weight: 800; line-height: 0.6; color: var(--line); }
.rev-card.featured .rev-quote { color: rgba(255, 255, 255, 0.3); }
.rev-text { margin-top: 10px; font-size: 14px; line-height: 1.7; word-break: keep-all; white-space: pre-line; }
.rev-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rev-name { font-size: 12.5px; font-weight: 800; }
.rev-ep {
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--panel-2); color: var(--sub);
}
.rev-card.featured .rev-ep { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8); }
.rev-stars { margin-left: auto; font-size: 12px; color: var(--amber); letter-spacing: 1px; }
.rev-empty[hidden] { display: none; }
.rev-empty { text-align: center; padding: 30px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rev-empty-emoji { font-size: 44px; }
.rev-empty h2 { font-size: 21px; font-weight: 800; }
.rev-empty p { font-size: 14px; color: var(--sub); }
.rev-empty .btn { margin-top: 8px; }
.rev-rate { display: flex; gap: 4px; }
.rev-rate-star { background: none; border: none; cursor: pointer; font-size: 26px; color: var(--line); padding: 0 2px; }
.rev-rate-star.on { color: var(--amber); }
.rev-textarea { min-height: 120px; resize: vertical; font-family: inherit; line-height: 1.6; }
select.auth-input { appearance: auto; }
@media (max-width: 900px) { .rev-grid { columns: 2; } }
@media (max-width: 560px) {
  .rev-grid { columns: 1; }
  .rev-text { font-size: 13px; }
}

/* 토스트 */
#toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  z-index: 200; max-width: min(90vw, 480px);
  background: var(--black); color: #fff; border: 1px solid var(--black);
  border-radius: 999px; padding: 12px 24px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.4);
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 푸터 */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 20px; background: var(--panel-2); }
.footer-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { font-size: 13px; color: var(--sub); }
.footer-note a { color: var(--accent); font-weight: 600; }

/* 반응형 — 모바일은 로고 + 메뉴 탭(☰) 하나만, 나머지는 메뉴 리스트로 */
@media (max-width: 960px) {
  .nav, #count-chip, #auth-slot { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .hero-title { font-size: 38px; }
  .band-dark .band-title { font-size: 24px; }
  .lectures { grid-template-columns: 1fr 1fr; }
  .chapter-line { justify-content: flex-start; }
  .bundle { flex-direction: column; align-items: stretch; text-align: center; }
  .bundle .btn { width: 100%; }
}
/* 폰 화면 — 레퍼런스처럼 컴팩트한 타이포 */
@media (max-width: 560px) {
  body { font-size: 14px; }
  .topbar-in { height: 54px; }
  .wordmark { font-size: 13.5px; gap: 6px; }
  .logo-mark { width: 22px; height: 22px; }
  .wordmark-hq { font-size: 10px; padding: 2px 6px; }
  .menu-toggle { width: 36px; height: 36px; font-size: 16px; }
  .mobile-menu { padding: 10px 16px 18px; }
  .mobile-menu .m-item { font-size: 15px; padding: 11px 8px; }
  #m-auth .m-login { font-size: 14.5px; }
  #m-auth .m-join { font-size: 15px; padding: 12px; border-radius: 12px; }

  .hero { padding: 44px 0 38px; }
  .hero-badge { font-size: 11.5px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-title { font-size: 25px; line-height: 1.25; }
  .hero-sub { font-size: 13.5px; margin-top: 12px; }
  .hero-actions { margin-top: 22px; gap: 12px; }
  .btn-lg { padding: 11px 22px; font-size: 13.5px; }
  .free-note { font-size: 12.5px; }

  .band-dark { padding: 42px 0; }
  .band-dark .band-eyebrow { font-size: 10px; letter-spacing: 0.18em; }
  .band-dark .band-title { font-size: 19px; margin-top: 10px; }
  .band-dark .band-sub { font-size: 12.5px; margin-top: 8px; }
  .chapter-line { margin-top: 28px; }
  .chapter-stop { min-width: 70px; }
  .chapter-name { font-size: 11.5px; margin-top: 9px; }
  .chapter-eps { font-size: 10px; }
  .chapter-tag { font-size: 9.5px; padding: 1px 7px; }
  .bundle { padding: 16px 16px 18px; margin-top: 28px; gap: 12px; }
  .bundle-left strong { font-size: 14.5px; }
  .bundle-left span { font-size: 12px; }
  .bundle .btn { font-size: 13px; padding: 11px; }

  .section { padding: 44px 0; }
  .sec-head { margin-bottom: 22px; }
  .sec-label { font-size: 10px; letter-spacing: 0.18em; }
  .sec-title { font-size: 19px; margin-top: 8px; }
  .lecture-progress { font-size: 11.5px; margin-top: 8px; }
  .lectures { grid-template-columns: 1fr; gap: 14px; }
  .lecture-body { padding: 13px 14px 15px; }
  .lecture-title { font-size: 14.5px; }
  .lecture-desc { font-size: 12px; }
  .lecture-chapter, .lecture-price { font-size: 10px; }
  .lecture-ep { font-size: 10.5px; }
  .note-btn { font-size: 11px; padding: 5px 11px; }
  .s-title { font-size: 12px; }
  .session-row { padding: 6px 8px; }

  .panel-box { padding: 24px 18px; }
  .panel-box h3 { font-size: 18px; }
  .auth-input { font-size: 14px; padding: 11px 13px; }
  .note-md { font-size: 13.5px; }
  .note-md h1 { font-size: 20px; }
  .note-md h2 { font-size: 17px; }
  .note-md h3 { font-size: 15px; }

  .footer { padding: 28px 0 40px; }
  .footer-in { flex-direction: column; gap: 10px; }
  .footer-note { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── 읽기 화면 하단 닫기 줄 ──
 * 문서를 끝까지 읽고 나서 위로 되돌아가지 않아도 그 자리에서 나갈 수 있게 한다.
 * 스크롤 컨테이너(.lecture-frame) 안에 sticky로 붙여 항상 손 닿는 곳에 둔다. */
.panel-endbar {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; justify-content: center; gap: 10px;
  padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--panel) 58%, rgba(255, 255, 255, 0));
}
.panel-end-close {
  padding: 12px 30px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  background: var(--ink); color: #fff; border: none;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.55);
}
.panel-end-close:hover { background: #000; }
.panel-end-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ── 프로필 (2026-09-19 재설계) ──────────────────────────────────────────
   참고한 구조: MIT 미디어랩 인물 페이지 — 사람의 정체성(이름·소속)을 한 덩어리로 묶어
   왼쪽에 세우고, 읽을 내용은 오른쪽에 따로 흐르게 한다. 우리는 사진이 없으므로
   그 자리에 이모지와 연차를 놓아 '누구인가'를 한눈에 보이게 했다.
   카드 두 장을 나란히 놓던 앞 판은 사람마다 항목 수가 달라 높이가 어긋났다 —
   가로 전체를 쓰는 2단으로 바꾸니 한글 본문도 줄이 짧아져 읽기 쉬워졌다. */
.profile-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.profile-close {
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--sub);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: border-color .15s, color .15s;
}
.profile-close:hover { border-color: var(--accent-line); color: var(--ink); }
.profile-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.profile-rows { display: flex; flex-direction: column; gap: 22px; }

.pf-row {
  display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--panel);
}

/* 왼쪽 — 정체성 패널 */
.pf-id {
  position: relative; padding: 30px 28px;
  background: var(--accent-soft); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start;
}
.pf-emoji { font-size: 44px; line-height: 1; margin-bottom: 18px; }
.pf-field {
  margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent-bright);
}
.pf-id h3 {
  margin: 0 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
}
.pf-org { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--sub); word-break: keep-all; }
/* 연차는 패널 맨 아래에 앉힌다 — 사람마다 항목 수가 달라도 바닥선이 맞는다 */
.pf-tenure {
  margin: 24px 0 0; margin-top: auto; display: flex; align-items: baseline; gap: 6px;
  padding-top: 16px; border-top: 1px solid var(--accent-line); width: 100%;
}
.pf-tenure b { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--ink); }
.pf-tenure span { font-size: 12.5px; font-weight: 600; color: var(--sub); }

/* 오른쪽 — 읽는 자리 */
.pf-body { padding: 30px 30px 26px; min-width: 0; }
.pf-lead {
  margin: 0 0 22px; font-size: 16px; line-height: 1.85; color: var(--ink);
  word-break: keep-all; max-width: 54ch;
}
.pf-spec { margin: 0 0 22px; border-top: 1px solid var(--line); }
.pf-spec > div {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.pf-spec dt { font-size: 11.5px; font-weight: 700; color: var(--sub); padding-top: 3px; }
.pf-spec dd { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink); word-break: keep-all; }

.pf-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-links a {
  font-size: 12.5px; font-weight: 700; color: var(--sub);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, color .15s, background .15s;
}
.pf-links a::after { content: " ↗"; font-weight: 400; }
.pf-links a:hover { border-color: var(--accent-line); color: var(--ink); background: var(--accent-soft); }
.pf-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 820px) {
  .pf-row { grid-template-columns: 1fr; }
  .pf-id {
    border-right: 0; border-bottom: 1px solid var(--line);
    padding: 22px 20px; display: grid; grid-template-columns: auto 1fr auto;
    grid-template-areas: "emoji name tenure"; align-items: center; gap: 4px 14px;
  }
  .pf-emoji { grid-area: emoji; margin: 0; font-size: 32px; }
  .pf-field { display: none; }
  .pf-id h3 { grid-area: name; font-size: 25px; margin: 0; }
  .pf-org { display: none; }
  .pf-tenure { grid-area: tenure; margin: 0; padding: 0; border: 0; width: auto; }
  .pf-tenure b { font-size: 27px; }
  .pf-body { padding: 20px 20px 18px; }
  .pf-lead { font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
  .pf-spec > div { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
}

/* 프로필 표찰 — '클래스' 배지에 바로 붙인다 (2026-09-19 사장님 지시: 메뉴가 아니라 클래스 옆).
   메뉴 묶음과 멀찍이 떨어뜨리고 로고 쪽에 붙여, 메뉴 항목이 아니라 로고의 짝으로 읽히게 한다. */
.brand-profile {
  /* 메뉴 버튼(☰) 바로 왼쪽에 붙인다 — 간격을 당겨 버튼과 한 묶음으로 읽히게 (2026-09-19) */
  flex: none; margin-left: auto; margin-right: -8px; white-space: nowrap;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; color: #fff;
  padding: 3px 10px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent);
  transition: background .15s, color .15s, border-color .15s;
}
.brand-profile:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.brand-profile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 좁은 화면에서도 숨기지 않는다 — 숨기면 ☰ 메뉴 안에서만 찾게 되어
   "메뉴 안에 있다"는 지적이 나왔다(2026-09-19). 대신 작게 줄여 메뉴 왼쪽에 계속 둔다. */
@media (max-width: 1040px) { .brand-profile { font-size: 11px; padding: 3px 9px; } }
@media (max-width: 620px) { .brand-profile { font-size: 10.5px; padding: 3px 8px; } }

/* 노트북 폭(1100px 안팎)에서 로고+표찰+메뉴가 머리띠를 넘겼다(2026-09-19 실측 1045px).
   메뉴 간격과 글자를 한 단계 줄여 한 줄에 담는다. */
@media (max-width: 1100px) {
  .topbar-in { gap: 14px; }
  .nav { gap: 12px; }
  .nav a, .nav-more-btn { font-size: 13px; }
  .live-chip { display: none; }   /* 코스 수 칩은 아래 본문에도 있다 */
}

/* 소개문 안의 강조 — 형광펜 대신 밑줄 굵기로. 요트그린 밑줄이 문장 흐름을 끊지 않는다 (2026-09-19) */
.pf-lead b {
  font-weight: 700; color: var(--ink);
  box-shadow: inset 0 -0.42em 0 var(--accent-soft);
}
