/* =========================================================
 * P2 편입인강 · 교수진 · 교재 · 주문 — 단위 전용 스타일 (p2- 접두사)
 * 로드: tokens.css → site.css → pages/p2.css
 * ========================================================= */

/* ---------- 공통 ---------- */
.p2-block { scroll-margin-top: calc(var(--header-h) + 64px); }
.p2-block + .p2-block { margin-top: var(--s-16); }
.p2-block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.p2-block-head h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.6px; line-height: 1.35; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p2-block-head p { color: var(--slate-600); font-size: 14px; margin-top: 4px; }
.p2-block-head .eyebrow { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--red); margin-bottom: 4px; }
.p2-main { padding-top: var(--s-10); padding-bottom: var(--s-16); }
.p2-stars { display: inline-flex; gap: 1px; color: #f5b301; vertical-align: -2px; }
.p2-stars .ico { fill: currentColor; stroke: none; }
.p2-stars .is-off { color: var(--line); }
.p2-sticky-top { position: sticky; top: calc(var(--header-h) + 16px); }
.p2-tag-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.p2-hr { height: 1px; background: var(--line); margin: var(--s-5) 0; border: 0; }
.p2-strong-red { color: var(--red); font-weight: 800; }

/* 하단 고정 구매 바를 쓰는 화면: 본문 여백 + 플로팅 버튼 위로 */
@media (max-width: 1023px) {
  .p2-has-mbuy .site-footer { padding-bottom: 72px; }
  .p2-has-mbuy .float-kakao { bottom: 84px; }
  .p2-has-mbuy .demo-tool { bottom: 82px; }
  .p2-has-mbuy .toast-stack { bottom: 140px; }
}
.mobile-buy .p2-mb-price { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; flex: 0 0 auto; min-width: 0; }
.mobile-buy .p2-mb-price small { font-size: 11px; color: var(--slate-500); }
.mobile-buy .p2-mb-price b { font-size: 17px; color: var(--red); white-space: nowrap; }
@media (max-width: 767px) { .mobile-buy .btn { padding: 0 10px; } }

/* ---------- 섹션 이동 탭 (.anchor-nav 안) ---------- */
.p2-anchor { display: flex; overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s-8); }
.p2-anchor::-webkit-scrollbar { display: none; }
.p2-anchor a { flex-shrink: 0; padding: 14px 16px; font-size: var(--fs-base); font-weight: 600; color: var(--slate-500); white-space: nowrap; position: relative; }
.p2-anchor a:hover { color: var(--navy); }
.p2-anchor a.is-active { color: var(--navy); font-weight: 800; }
.p2-anchor a.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; background: var(--red); }
@media (max-width: 767px) { .p2-anchor a { padding: 12px 11px; font-size: 14px; } .p2-anchor a.is-active::after { left: 11px; right: 11px; } }

/* ---------- 패스 히어로 (상품 랜딩 상단) ---------- */
.p2-pass-hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; padding: 40px 44px; background: linear-gradient(120deg, #8f1418 0%, #b0191e 45%, #cd1e24 100%); }
.p2-pass-hero.is-navy { background: linear-gradient(120deg, #0f1b38 0%, #16254a 55%, #22345f 100%); }
.p2-pass-hero.is-blue { background: linear-gradient(120deg, #112c58 0%, #1c467f 50%, #2456a6 100%); }
.p2-pass-hero::before { content: ""; position: absolute; right: -90px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); pointer-events: none; }
.p2-pass-hero > * { position: relative; z-index: 1; }
.p2-ph-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; }
.p2-ph-title { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2; margin-top: 14px; }
.p2-ph-desc { margin-top: 10px; font-size: 16px; color: rgba(255,255,255,.85); max-width: 620px; line-height: 1.65; }
.p2-ph-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-radius: var(--radius); background: rgba(255,255,255,.1); }
.p2-ph-stats > div { padding: 16px 18px; }
.p2-ph-stats > div + div { border-left: 1px solid rgba(255,255,255,.14); }
.p2-ph-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; }
.p2-ph-stats span { font-size: 13px; color: rgba(255,255,255,.78); }
.p2-ph-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 1023px) { .p2-ph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p2-ph-stats > div:nth-child(3) { border-left: 0; } .p2-ph-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); } }
@media (max-width: 767px) {
  .p2-pass-hero { padding: 26px 20px; border-radius: var(--radius); }
  .p2-ph-title { font-size: 28px; letter-spacing: -1px; }
  .p2-ph-desc { font-size: 14px; }
  .p2-ph-stats > div { padding: 12px 14px; }
  .p2-ph-stats b { font-size: 20px; }
  .p2-ph-stats span { font-size: 12px; }
  .p2-ph-cta .btn { flex: 1; }
}

/* ---------- 포함 내용 ---------- */
.p2-include { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p2-include li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-include li .p2-inc-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--red-soft); color: var(--red); }
.p2-include li.is-no .p2-inc-ico { background: var(--bg); color: var(--slate-500); }
.p2-include li strong { display: block; font-size: var(--fs-base); }
.p2-include li span { font-size: 13px; color: var(--slate-600); }
@media (max-width: 767px) { .p2-include { grid-template-columns: minmax(0, 1fr); } }

/* 교수진 미리보기 (작은 아바타) */
.p2-prof-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.p2-prof-mini a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.p2-prof-mini a:hover { border-color: var(--navy); }
.p2-prof-mini .ph { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; aspect-ratio: 1 / 1; }
.p2-prof-mini .ph[data-label]::after { display: none; }
.p2-prof-mini b { display: block; font-size: 14px; }
.p2-prof-mini span { display: block; font-size: 12px; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-prof-mini > a > div { min-width: 0; }
@media (max-width: 1023px) { .p2-prof-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 수강 가능 강좌 목록 (간단 표형) */
.p2-course-list { border-top: 2px solid var(--navy); }
.p2-course-list a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.p2-course-list a:hover .p2-cl-title { text-decoration: underline; }
.p2-cl-title { font-weight: 700; color: var(--navy); }
.p2-cl-meta { font-size: 12px; color: var(--slate-500); white-space: nowrap; }
@media (max-width: 767px) { .p2-course-list a { grid-template-columns: 56px minmax(0, 1fr); } .p2-course-list .p2-cl-meta { grid-column: 2; } }

/* ---------- 가격 옵션 카드 ---------- */
.p2-opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.p2-opt-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p2-opt-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--input-line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s; }
.p2-opt-card:hover { border-color: var(--navy); }
.p2-opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.p2-opt-card:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fffafa; }
.p2-opt-card .p2-oc-check { position: absolute; right: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--input-line); display: grid; place-items: center; color: #fff; }
.p2-opt-card:has(input:checked) .p2-oc-check { background: var(--red); border-color: var(--red); }
.p2-oc-target { font-size: 12px; font-weight: 700; color: var(--blue); }
.p2-oc-name { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.4px; padding-right: 26px; }
.p2-oc-note { font-size: 13px; color: var(--slate-600); }
.p2-oc-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.p2-opt-card .price { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.p2-opt-card .price-sale { font-size: 24px; }
.p2-opt-card .price-rate { font-size: 20px; }
.p2-oc-month { font-size: 12px; color: var(--slate-500); }
@media (max-width: 1023px) { .p2-opt-grid { grid-template-columns: minmax(0, 1fr); } .p2-opt-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .p2-opt-grid.is-2 { grid-template-columns: minmax(0, 1fr); } }

/* 구매 박스 보조 */
.p2-bb-sel { font-size: 13px; color: var(--slate-600); }
.p2-bb-sel b { color: var(--navy); }
.p2-bb-lines { display: grid; gap: 6px; font-size: 13px; color: var(--slate-600); }
.p2-bb-lines div { display: flex; justify-content: space-between; gap: 8px; }
.p2-bb-lines .is-disc { color: var(--red); }
.p2-bb-note { font-size: 12px; color: var(--slate-500); display: flex; gap: 6px; align-items: flex-start; line-height: 1.5; }
.buy-box .opt span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }

/* ---------- 수강 안내 (고정 표시) ---------- */
.p2-guide { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.p2-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 20px; background: var(--navy); color: #fff; }
.p2-guide-head h3 { font-size: var(--fs-md); font-weight: 800; display: flex; align-items: center; gap: 8px; }
/* 4칸(접속 장소·동시 시청·다운로드 차단·수강 기간) → 2×2 */
.p2-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p2-guide-grid > div { padding: 18px 20px; }
.p2-guide-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
.p2-guide-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.p2-guide-grid h4 { font-size: var(--fs-base); font-weight: 800; }
.p2-guide-grid p { font-size: 13px; color: var(--slate-600); margin-top: 4px; line-height: 1.6; }
.p2-guide-refund { padding: 18px 20px; border-top: 1px solid var(--line); background: #fcfcfd; }
.p2-guide-refund h4 { font-size: var(--fs-base); font-weight: 800; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p2-guide-refund .tbl { background: #fff; font-size: 13px; }
.p2-guide-refund .tbl th, .p2-guide-refund .tbl td { padding: 9px 10px; }
@media (max-width: 767px) {
  .p2-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .p2-guide-grid > div:nth-child(even) { border-left: 0; }
  .p2-guide-grid > div + div { border-top: 1px solid var(--line); }
  .p2-guide-grid > div, .p2-guide-refund { padding: 16px; }
}

/* ---------- UMC: 관리 단계 흐름 ---------- */
.p2-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: flow; }
.p2-flow li { position: relative; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; counter-increment: flow; }
.p2-flow li::before { content: "STEP " counter(flow); display: inline-block; font-size: 11px; font-weight: 800; color: var(--red); letter-spacing: .4px; }
.p2-flow li + li::after { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: 2px; background: var(--slate-300); }
.p2-flow h4 { font-size: var(--fs-md); font-weight: 800; margin-top: 8px; }
.p2-flow p { font-size: 13px; color: var(--slate-600); margin-top: 4px; line-height: 1.6; }
.p2-flow .p2-fl-when { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 3px 8px; border-radius: 3px; }
@media (max-width: 1023px) { .p2-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .p2-flow li:nth-child(3)::after { display: none; } }
@media (max-width: 767px) { .p2-flow { grid-template-columns: minmax(0, 1fr); } .p2-flow li + li::after { left: 50%; top: -12px; width: 2px; height: 12px; display: block !important; } }

/* 비교표 강조 열 */
.p2-compare th.is-hl, .p2-compare td.is-hl { background: var(--red-soft); color: var(--navy); font-weight: 700; }
.p2-compare thead th.is-hl { background: var(--red); color: #fff; }
.p2-compare tbody th { text-align: left; white-space: nowrap; }
.p2-compare .ico { display: inline-block; vertical-align: -3px; }
.p2-compare .p2-yes { color: var(--red); }
.p2-compare .p2-no { color: var(--slate-300); }
.p2-compare { min-width: 560px; }

/* 주간 관리 표 */
.p2-week { min-width: 620px; }
.p2-week td { font-size: 13px; }
.p2-week td b { display: block; color: var(--navy); }

/* ---------- T패스 ---------- */
.p2-tp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.p2-tp-bar p { font-size: 14px; color: var(--slate-600); }
.p2-tp-bar strong { color: var(--red); }
.p2-tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.p2-tp-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .15s; }
.p2-tp-card:hover { border-color: var(--navy); }
.p2-tp-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 20px; background: linear-gradient(135deg, #f7f9fd, #eaf0fa); border-bottom: 1px solid var(--line); }
.p2-tp-top .ph { border-radius: var(--radius); }
.p2-tp-top .ph[data-label]::after { font-size: 10px; left: 6px; bottom: 6px; }
.p2-tp-sub { font-size: 12px; font-weight: 700; color: var(--red); }
.p2-tp-name { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; margin-top: 2px; }
.p2-tp-name small { font-size: 13px; color: var(--slate-500); font-weight: 500; margin-left: 4px; }
.p2-tp-tagline { font-size: 13px; color: var(--slate-600); line-height: 1.5; margin-top: 6px; }
.p2-tp-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.p2-tp-count { display: flex; gap: 6px; flex-wrap: wrap; }
.p2-tp-courses { display: grid; gap: 6px; font-size: 13px; color: var(--slate-600); }
.p2-tp-courses li { display: flex; gap: 8px; align-items: flex-start; }
.p2-tp-courses li .badge { height: 19px; font-size: 11px; padding: 0 6px; flex-shrink: 0; }
.p2-tp-card .price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.p2-tp-card .price-sale { font-size: 22px; }
.p2-tp-card .price-rate { font-size: 19px; }
.p2-tp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p2-tp-actions .btn { padding: 0 8px; }
@media (max-width: 1023px) { .p2-tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .p2-tp-grid { grid-template-columns: minmax(0, 1fr); } .p2-tp-top { grid-template-columns: 88px minmax(0, 1fr); padding: 16px; } .p2-tp-body { padding: 16px; } }

/* 패스 선택 가이드 (T패스 vs 프리패스) */
.p2-which { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.p2-which > div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.p2-which > div.is-red { border-top: 4px solid var(--red); }
.p2-which > div.is-blue { border-top: 4px solid var(--blue); }
.p2-which h3 { font-size: var(--fs-lg); font-weight: 800; }
.p2-which .bullets { margin-top: 12px; }
.p2-which .btn { margin-top: 16px; }
@media (max-width: 767px) { .p2-which { grid-template-columns: minmax(0, 1fr); } .p2-which > div { padding: 20px; } }

/* ---------- 무료 기초강의 ---------- */
.p2-free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.p2-free-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.p2-free-card > .ph { border-radius: 0; }
.p2-fc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p2-fc-title { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }
.p2-fc-desc { font-size: 14px; color: var(--slate-600); line-height: 1.65; }
.p2-fc-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 4px; }
.p2-fc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--slate-600); }
.p2-fc-list li span:last-child { color: var(--slate-500); white-space: nowrap; }
.p2-fc-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.p2-free-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-free-steps li { display: flex; gap: 14px; align-items: center; padding: 20px 22px; }
.p2-free-steps li + li { border-left: 1px solid var(--line); }
.p2-free-steps .p2-fs-num { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.p2-free-steps strong { display: block; font-size: var(--fs-md); }
.p2-free-steps span { font-size: 13px; color: var(--slate-500); }
@media (max-width: 767px) {
  .p2-free-grid { grid-template-columns: minmax(0, 1fr); }
  .p2-free-steps { grid-template-columns: minmax(0, 1fr); }
  .p2-free-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .p2-free-steps li { padding: 14px 16px; }
  .p2-fc-body { padding: 18px; }
}

/* ---------- 강좌 상세 ---------- */
.p2-video { position: relative; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.p2-video .ph { border-radius: 0; }
.p2-video .p2-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s; }
.p2-video:hover .p2-play { transform: translate(-50%, -50%) scale(1.06); }
.p2-video .p2-v-cap { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 3px; }
.p2-cd-head { margin-top: var(--s-6); }
.p2-cd-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; margin-top: 8px; }
.p2-cd-head p { color: var(--slate-600); margin-top: 6px; }
.p2-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-summary > div { padding: 14px 16px; min-width: 0; }
.p2-summary > div + div { border-left: 1px solid var(--line); }
.p2-summary dt { font-size: 12px; color: var(--slate-500); }
.p2-summary dd { font-size: var(--fs-md); font-weight: 800; color: var(--navy); margin-top: 2px; }
.p2-summary dd a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .p2-cd-head h2 { font-size: 22px; }
  .p2-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p2-summary > div:nth-child(3) { border-left: 0; }
  .p2-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .p2-video .p2-play { width: 56px; height: 56px; }
}
.p2-tabs { margin-top: var(--s-10); }
.p2-tabs .tab-list { position: sticky; top: var(--header-h); background: #fff; z-index: 4; }
.p2-intro-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: var(--s-5); }
.p2-intro-points > div { padding: 16px; border-radius: var(--radius); background: var(--bg); }
.p2-intro-points b { display: block; font-size: var(--fs-base); }
.p2-intro-points span { font-size: 13px; color: var(--slate-600); }
@media (max-width: 767px) { .p2-intro-points { grid-template-columns: minmax(0, 1fr); } }

/* 커리큘럼 (단원 그룹 · 차시) */
.p2-curr-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; color: var(--slate-600); }
.p2-curr-top b { color: var(--navy); }
.p2-curr .acc-head { font-size: var(--fs-base); padding: 15px 8px; }
.p2-curr .acc-head small { font-size: 12px; color: var(--slate-500); font-weight: 500; flex-shrink: 0; }
.p2-curr .acc-body { padding: 0; background: #fff; }
.p2-lessons li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 12px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--slate-600); }
.p2-lessons .p2-l-no { font-size: 12px; font-weight: 700; color: var(--slate-500); }
.p2-lessons .p2-l-title { color: var(--navy); min-width: 0; }
.p2-lessons .p2-l-page { font-size: 12px; color: var(--slate-400); margin-left: 6px; }
.p2-lessons .p2-l-time { font-size: 12px; color: var(--slate-500); white-space: nowrap; }
.p2-lessons li.is-sample { background: #fffafa; }
.p2-lessons .p2-l-act { min-width: 64px; text-align: right; }
@media (max-width: 767px) {
  .p2-lessons li { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px 6px; }
  .p2-lessons .p2-l-time { grid-column: 2; grid-row: 2; }
  .p2-lessons .p2-l-act { grid-column: 3; grid-row: 1 / span 2; min-width: 0; }
  .p2-lessons .p2-l-page { margin-left: 4px; }
}

/* 강사 소개 박스 (탭 안) */
.p2-prof-box { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-prof-box .ph { border-radius: var(--radius); }
.p2-prof-box h3 { font-size: var(--fs-xl); font-weight: 800; }
.p2-prof-box blockquote { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--bg); color: var(--slate-600); font-size: 14px; }
@media (max-width: 767px) { .p2-prof-box { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; } .p2-prof-box h3 { font-size: var(--fs-lg); } }

/* 수강 후기 */
.p2-rv-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 20px 22px; border-radius: var(--radius); background: var(--bg); margin-bottom: var(--s-4); }
.p2-rv-score { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.p2-rv-score small { font-size: 16px; color: var(--slate-500); font-weight: 600; }
.p2-rv-bars { display: grid; gap: 4px; flex: 1; min-width: 200px; max-width: 360px; font-size: 12px; color: var(--slate-500); }
.p2-rv-bars div { display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px; gap: 8px; align-items: center; }
.p2-rv-list { border-top: 2px solid var(--navy); }
.p2-rv-item { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.p2-rv-item .p2-rv-meta { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--slate-500); }
.p2-rv-item .p2-rv-title { font-weight: 700; margin-top: 6px; }
.p2-rv-item p { font-size: 14px; color: var(--slate-600); margin-top: 4px; line-height: 1.65; }

/* 교재 정보 (탭 안 · 가로형) */
.p2-book-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-book-row .ph .ph-text { font-size: 12px; padding: 6px; }
.p2-book-row h4 { font-size: var(--fs-md); font-weight: 800; }
.p2-book-row .p2-br-meta { font-size: 13px; color: var(--slate-500); margin-top: 2px; }
.p2-book-row .row { justify-content: flex-end; }
@media (max-width: 767px) { .p2-book-row { grid-template-columns: 88px minmax(0, 1fr); padding: 14px; } .p2-book-row > .row { grid-column: 1 / -1; justify-content: stretch; } .p2-book-row > .row .btn { flex: 1; } }

/* ---------- 교수진 목록 ---------- */
.p2-prof-grid .p2-prof-item { display: flex; flex-direction: column; gap: 0; }
.p2-prof-item .prof-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; flex: 1; }
.p2-prof-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: #fafbfc; font-size: 12px; color: var(--slate-600); flex-wrap: wrap; }
.p2-prof-foot b { color: var(--navy); }
@media (max-width: 767px) { .p2-prof-item .pf-tag { display: none; } .p2-prof-item .pf-body { padding: 10px 12px 12px; } .p2-prof-item .pf-name { font-size: var(--fs-md); } .p2-prof-foot { padding: 8px 10px; } }

/* ---------- 교수 상세 ---------- */
.p2-prof-hero { background: linear-gradient(180deg, var(--bg), #fff); border-bottom: 1px solid var(--line); }
.p2-prof-hero .wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-10); align-items: end; padding-top: var(--s-10); }
.p2-prof-hero .ph { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.p2-ph-info { padding-bottom: var(--s-10); }
.p2-ph-sub { font-size: 14px; font-weight: 700; color: var(--red); }
.p2-ph-name { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; margin-top: 4px; }
.p2-ph-name small { font-size: 18px; font-weight: 600; color: var(--slate-500); margin-left: 6px; letter-spacing: 0; }
.p2-ph-quote { margin-top: 16px; padding: 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: var(--fs-md); font-weight: 700; color: var(--navy); position: relative; }
.p2-ph-quote::before { content: "“"; position: absolute; left: 14px; top: -14px; font-size: 48px; line-height: 1; color: var(--red); font-weight: 800; }
.p2-ph-quote span { display: block; font-size: 12px; font-weight: 600; color: var(--slate-500); margin-bottom: 4px; }
.p2-ph-career { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin-top: 16px; font-size: 14px; color: var(--slate-600); }
.p2-ph-career li { position: relative; padding-left: 12px; }
.p2-ph-career li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--slate-400); }
.p2-ph-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.p2-prof-switch { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; }
.p2-prof-switch::-webkit-scrollbar { display: none; }
.p2-prof-switch .chip { flex-shrink: 0; }
@media (max-width: 1023px) { .p2-prof-hero .wrap { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-6); } .p2-ph-name { font-size: 36px; } }
@media (max-width: 767px) {
  .p2-prof-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-5); gap: 0; }
  .p2-prof-hero .ph { max-width: 200px; margin: 0 auto; }
  .p2-ph-info { padding: var(--s-5) 0 var(--s-6); }
  .p2-ph-name { font-size: 30px; }
  .p2-ph-career { grid-template-columns: minmax(0, 1fr); }
  .p2-ph-actions .btn { flex: 1; }
}

/* 교수 T패스 가로 카드 */
.p2-tpass-wide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.p2-tw-left { padding: 28px 30px; color: #fff; background: linear-gradient(135deg, #1c467f, #2456a6); position: relative; overflow: hidden; }
.p2-tw-left::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(255,255,255,.08); }
.p2-tw-left > * { position: relative; z-index: 1; }
.p2-tw-left h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.8px; margin-top: 10px; }
.p2-tw-left p { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 6px; }
.p2-tw-left ul { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.p2-tw-left li { position: relative; padding-left: 12px; }
.p2-tw-left li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.6); }
.p2-tw-right { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.p2-tw-right .opt { font-size: 14px; }
.p2-tw-right .row .btn { flex: 1; }
@media (max-width: 767px) { .p2-tpass-wide { grid-template-columns: minmax(0, 1fr); } .p2-tw-left { padding: 22px 20px; } .p2-tw-right { padding: 18px 20px; } .p2-tw-left h3 { font-size: 22px; } }

/* ---------- 교재 목록 ---------- */
.p2-book-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--s-5); }
.p2-book-tools .row { gap: 8px; }
.p2-book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.p2-book-item { position: relative; display: flex; flex-direction: column; gap: 10px; }
.p2-book-item .p2-bi-check { position: absolute; left: 8px; top: 8px; z-index: 3; width: 30px; height: 30px; border-radius: var(--radius-sm); background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.p2-book-item .p2-bi-check input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; cursor: pointer; }
.p2-book-item.is-checked .book-card .ph { outline: 3px solid var(--red); outline-offset: -3px; }
.p2-bk-pub { font-size: 12px; color: var(--slate-500); }
.p2-bi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.p2-bi-actions .btn { padding: 0 6px; }
/* 목록형 보기 */
.p2-book-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.p2-book-grid.is-list .p2-book-item { flex-direction: row; align-items: center; gap: 16px; padding: 14px 6px 14px 44px; border-bottom: 1px solid var(--line); }
.p2-book-grid.is-list .p2-bi-check { left: 6px; top: 50%; transform: translateY(-50%); box-shadow: none; border: 1px solid var(--line); }
.p2-book-grid.is-list .book-card { flex: 1; min-width: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.p2-book-grid.is-list .book-card .ph .ph-text { font-size: 10px; padding: 4px; }
.p2-book-grid.is-list .book-card .ph[data-label]::after { display: none; }
.p2-book-grid.is-list .p2-bi-actions { width: 200px; flex-shrink: 0; }
.p2-book-grid.is-list .p2-book-item.is-checked .book-card .ph { outline: 0; }
.p2-book-grid.is-list .p2-book-item.is-checked { background: #fffafa; }
@media (max-width: 1023px) { .p2-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .p2-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) 12px; }
  .p2-book-item .book-card .ph-text { font-size: 13px; }
  .p2-book-item .price-orig { display: none; }
  .p2-bi-actions { grid-template-columns: minmax(0, 1fr); }
  .p2-bi-actions .btn-line { display: none; }
  .p2-book-grid.is-list .p2-book-item { flex-wrap: wrap; padding-left: 40px; }
  .p2-book-grid.is-list .book-card { grid-template-columns: 64px minmax(0, 1fr); }
  .p2-book-grid.is-list .book-card .price { grid-column: 2; }
  .p2-book-grid.is-list .p2-bi-actions { width: 100%; grid-template-columns: 1fr 1fr; }
  .p2-book-grid.is-list .p2-bi-actions .btn-line { display: inline-flex; }
}

/* 선택 교재 하단 고정 바 */
.p2-selbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: var(--navy); color: #fff; transform: translateY(110%); transition: transform .2s var(--ease); box-shadow: 0 -8px 24px rgba(22,37,74,.18); }
.p2-selbar:not(.is-on) { visibility: hidden; }
.p2-selbar.is-on { transform: none; }
.p2-selbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.p2-selbar .p2-sb-info { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; min-width: 0; font-size: 14px; color: var(--slate-300); }
.p2-selbar .p2-sb-info strong { color: #fff; font-size: var(--fs-md); }
.p2-selbar .p2-sb-info b { color: #ff8a80; font-size: var(--fs-lg); }
.p2-selbar .row { flex-wrap: nowrap; gap: 6px; }
body.p2-selbar-on .float-kakao { bottom: 92px; }
body.p2-selbar-on .demo-tool { bottom: 86px; }
body.p2-selbar-on .float-top { bottom: 160px; }
body.p2-selbar-on .site-footer { padding-bottom: 80px; }
@media (max-width: 767px) {
  .p2-selbar .wrap { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .p2-selbar .row .btn { flex: 1; }
  body.p2-selbar-on .float-kakao { bottom: 124px; }
  body.p2-selbar-on .demo-tool { bottom: 120px; }
  body.p2-selbar-on .site-footer { padding-bottom: 130px; }
}

/* ---------- 교재 상세 ---------- */
.p2-bd-top { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s-12); align-items: start; }
.p2-bd-cover { position: sticky; top: calc(var(--header-h) + 16px); }
.p2-bd-cover .ph { box-shadow: 8px 8px 0 rgba(22,37,74,.06); }
.p2-bd-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.p2-bd-thumbs .ph { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); }
.p2-bd-thumbs .ph[data-label]::after { font-size: 9px; left: 4px; bottom: 4px; padding: 1px 4px; }
.p2-bd-info h2 { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; margin-top: 8px; }
.p2-bd-info .kv { margin-top: var(--s-5); }
.p2-bd-price { margin-top: var(--s-5); padding: 18px 20px; background: var(--bg); border-radius: var(--radius); }
.p2-qty { display: inline-flex; align-items: center; border: 1px solid var(--input-line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.p2-qty button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--navy); }
.p2-qty button:hover { background: var(--bg); }
.p2-qty input { width: 44px; height: 36px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-weight: 700; color: var(--navy); -moz-appearance: textfield; }
.p2-qty input::-webkit-outer-spin-button, .p2-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p2-qty.is-sm button { width: 30px; height: 30px; }
.p2-qty.is-sm input { width: 36px; height: 30px; font-size: 13px; }
.p2-bd-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.p2-bd-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 0; }
.p2-bd-total strong { font-size: 28px; font-weight: 800; color: var(--red); letter-spacing: -0.6px; }
.p2-bd-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.p2-toc li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--slate-600); }
.p2-toc li b { color: var(--navy); font-weight: 700; }
.p2-toc li span:last-child { color: var(--slate-400); font-size: 12px; white-space: nowrap; }
.p2-toc li.is-part { background: var(--bg); color: var(--navy); font-weight: 800; border-bottom: 0; margin-top: 8px; }
@media (max-width: 1023px) { .p2-bd-top { grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); } }
@media (max-width: 767px) {
  .p2-bd-top { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .p2-bd-cover { position: static; max-width: 260px; margin: 0 auto; width: 100%; }
  .p2-bd-info h2 { font-size: 23px; }
  .p2-bd-actions { display: none; }
}

/* ---------- 장바구니 · 주문 ---------- */
.p2-steps-wrap { max-width: 560px; margin: 0 auto var(--s-10); }
.p2-order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; }
.p2-order-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.p2-sec { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-sec + .p2-sec { margin-top: var(--s-5); }
.p2-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.p2-sec-head h3 { font-size: var(--fs-md); font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p2-sec-head h3 .count { color: var(--red); }
.p2-sec-body { padding: 20px; }
.p2-cart-item { display: grid; grid-template-columns: 28px 96px minmax(0, 1fr) auto 120px 32px; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.p2-cart-item:last-child { border-bottom: 0; }
.p2-cart-item .ph { border-radius: var(--radius-sm); }
.p2-cart-item .ph .ph-text { font-size: 11px; padding: 4px; }
.p2-cart-item .ph[data-label]::after { display: none; }
.p2-ci-title { font-weight: 700; line-height: 1.4; }
.p2-ci-sub { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.p2-ci-price { text-align: right; }
.p2-ci-price .strike { font-size: 12px; display: block; }
.p2-ci-price b { font-size: var(--fs-md); color: var(--navy); }
.p2-ci-del { width: 32px; height: 32px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--slate-400); }
.p2-ci-del:hover { background: var(--bg); color: var(--red); }
.p2-ci-qty-empty { font-size: 12px; color: var(--slate-400); text-align: center; }
.p2-sum { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.p2-sum h3 { font-size: var(--fs-md); font-weight: 800; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.p2-sum dl { padding: 14px 20px; display: grid; gap: 8px; font-size: 14px; }
.p2-sum dl div { display: flex; justify-content: space-between; gap: 10px; }
.p2-sum dt { color: var(--slate-600); }
.p2-sum dd { font-weight: 700; color: var(--navy); }
.p2-sum dd.is-disc { color: var(--red); }
.p2-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 20px; background: #fafbfc; border-top: 1px solid var(--line); }
.p2-sum-total span { font-weight: 700; }
.p2-sum-total strong { font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: -0.5px; }
.p2-sum-actions { padding: 0 20px 20px; background: #fafbfc; display: grid; gap: 8px; }
.p2-sum-note { font-size: 12px; color: var(--slate-500); padding: 0 2px; line-height: 1.6; }
.p2-cart-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 1023px) {
  .p2-order { grid-template-columns: minmax(0, 1fr); }
  .p2-order-aside { position: static; }
}
@media (max-width: 767px) {
  .p2-cart-item { grid-template-columns: 24px 64px minmax(0, 1fr) 28px; gap: 6px 10px; padding: 14px 12px; align-items: start; }
  .p2-cart-item .p2-ci-qty { grid-column: 3; grid-row: 2; }
  .p2-cart-item .p2-ci-price { grid-column: 3; grid-row: 3; text-align: left; }
  .p2-cart-item .p2-ci-price .strike { display: inline; margin-right: 6px; }
  .p2-cart-item .p2-ci-del { grid-column: 4; grid-row: 1; }
  .p2-ci-qty-empty { text-align: left; }
  .p2-sec-head, .p2-sec-body { padding-left: 14px; padding-right: 14px; }
}

/* 주문서 */
.p2-order-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.p2-order-items li:last-child { border-bottom: 0; }
.p2-order-items .badge { margin-right: 6px; }
.p2-order-items b { color: var(--navy); white-space: nowrap; }
.p2-pay-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.p2-pay-methods .option-card { align-items: center; text-align: center; padding: 14px 8px; }
.p2-pay-detail { margin-top: 14px; }
.p2-easy { display: flex; gap: 8px; flex-wrap: wrap; }
.p2-easy .chip.is-active { background: var(--navy); }
.p2-coupon-list { display: grid; gap: 6px; margin-top: 10px; }
@media (max-width: 767px) { .p2-pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 주소 검색 모달 결과 */
.p2-addr-list { margin-top: 12px; border-top: 1px solid var(--line); }
.p2-addr-list button { display: block; width: 100%; text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.p2-addr-list button:hover { background: var(--bg); }
.p2-addr-list b { display: inline-block; min-width: 54px; color: var(--red); font-size: 12px; }
.p2-addr-list span { display: block; font-size: 12px; color: var(--slate-500); margin-top: 2px; }

/* 주문 완료 */
.p2-done { text-align: center; padding: var(--s-6) 0 var(--s-8); }
.p2-done-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(205,30,36,.25); }
.p2-done h2 { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.p2-done p { color: var(--slate-600); margin-top: 8px; }
.p2-done-no { display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--bg); font-size: 14px; }
.p2-done-no b { color: var(--navy); letter-spacing: .3px; }
.p2-done-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: var(--s-8); }
.p2-done-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); text-align: left; }
.p2-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: var(--s-5); }
.p2-next a { display: flex; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.p2-next a:hover { border-color: var(--navy); }
.p2-next b { display: block; font-size: var(--fs-base); }
.p2-next span { font-size: 12px; color: var(--slate-500); }
@media (max-width: 767px) {
  .p2-done h2 { font-size: 24px; }
  .p2-done-grid, .p2-next { grid-template-columns: minmax(0, 1fr); }
  .p2-done-actions .btn { flex: 1 1 100%; }
}

/* F1: T패스 비교표(2개 상품)는 모바일에서 스크롤 없이 모두 보이게 */
@media (max-width: 767px) {
  .p2-compare.is-2col { min-width: 0; }
  .p2-compare.is-2col th, .p2-compare.is-2col td { padding: 10px 8px; font-size: 13px; }
  .p2-compare.is-2col tbody th { white-space: nowrap; }
}
/* F1: 구매 박스 체크 라벨의 금액이 숫자 중간에서 끊기지 않게 */
.buy-box .check .small, .buy-box .check .muted { white-space: nowrap; }

/* ---------- F3 보정 ---------- */
/* 주문서: 배송지 카드와 쿠폰 카드 사이(가운데 숨은 안내 상자 때문에 '.p2-sec + .p2-sec' 간격이 빠짐) */
#p2-co-noship + .p2-sec, #p2-co-noship { margin-top: var(--s-5); }
/* 주문 완료: 결제 정보가 길어도 옆 '주문 상품' 카드가 늘어나 아래가 비지 않게 */
.p2-done-grid { align-items: start; }
/* 장바구니 390: 64px 썸네일 안에서 '합격N프리패스'가 오른쪽에서 잘리던 것 */
@media (max-width: 767px) { .p2-cart-item .ph .ph-text { font-size: 10px; padding: 3px; letter-spacing: -0.4px; } }
/* (F2) 장바구니 썸네일 칸 넘침: 1440(96×54)은 3줄까지 자르고, 390(64×36)은 한 줄 말줄임 — '[26기초훈련]김한결_편입독해'가 3줄(38px)로 잘리던 것 */
.p2-cart-item .ph .ph-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@media (max-width: 767px) {
  .p2-cart-item .ph .ph-text { display: block; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- 2026-11-19 실데이터 대입 (B2) ---------- */
/* 실제 이미지: .ph 틀(비율·모서리)은 그대로 두고 안에 <img> 를 채운다 */
.ph.p2-has-img { background: var(--bg); }
.ph.p2-has-img::before { display: none; }
.p2-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.p2-img.is-top { object-position: top; }
.p2-prof-mini .ph.p2-has-img { border: 1px solid var(--line); }
/* 히어로·구매 박스의 원사이트 상품명 부제 */
.p2-ph-real { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--white); opacity: .8; }
.p2-bb-real { font-size: 12px; font-weight: 700; color: var(--blue); margin-top: 2px; }
/* 가격 옵션: 1개·2개 */
.p2-opt-grid.is-1 { grid-template-columns: minmax(0, 520px); }
.p2-oc-points { display: grid; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--slate-600); }
.p2-oc-points > span { position: relative; padding-left: 12px; }
.p2-oc-points > span::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--slate-400); }
/* 교수 6명: 프리패스 교수 미니 카드 3열 */
.p2-prof-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .p2-prof-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* T패스 카드: 실제 상품명 · T-PASS 없는 교수 */
.p2-tp-real { font-size: 12px; font-weight: 700; color: var(--blue); }
.p2-tp-card.is-none { background: var(--bg); }
.p2-tp-card.is-none .p2-tp-top { filter: grayscale(.6); }
.p2-tp-none { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--white); border: 1px dashed var(--slate-300); font-size: 13px; color: var(--slate-600); line-height: 1.55; }
.p2-tp-card.is-none .btn.is-disabled { margin-top: auto; background: var(--line); color: var(--slate-500); border-color: var(--line); pointer-events: none; }
/* 교수 상세: 슬로건 · 소개 · 실제 후기 · 게시판 후기 · 강좌 목록 표 · O.T 영상 */
.p2-slogan { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--blue); }
.p2-ph-intro { margin-top: 10px; font-size: 14px; color: var(--slate-600); line-height: 1.6; }
.p2-real-quote { margin: 0 0 var(--s-4); padding: 18px 22px; border-left: 4px solid var(--red); border-radius: var(--radius); background: var(--bg); }
.p2-real-quote p { font-size: var(--fs-md); font-weight: 700; color: var(--navy); line-height: 1.6; }
.p2-real-quote cite { display: block; margin-top: 6px; font-size: 13px; font-style: normal; color: var(--slate-500); }
.p2-board-rv { margin-bottom: var(--s-5); }
.p2-board-rv ul { margin-top: 8px; border-top: 1px solid var(--line); }
.p2-board-rv li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.p2-board-rv li span:last-child { flex-shrink: 0; font-size: 13px; }
.p2-rv-virtual { padding-top: var(--s-4); border-top: 1px dashed var(--line); }
.p2-pc-tbl td, .p2-pc-tbl th { font-size: 13px; }
.p2-pc-tbl { min-width: 620px; }
.p2-ot { cursor: default; }
.p2-ot-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.p2-ot-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* (F) 재생 전: 썸네일 + 재생 아이콘 버튼. 누르면 p2.js 가 같은 크기의 iframe 으로 바꾼다 */
.p2-ot-btn { display: block; text-align: left; cursor: pointer; }
.p2-ot-btn .ph { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.p2-ot-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* 무료 기초강의: 원사이트 썸네일(200×120)은 늘리지 않고 원래 크기로 */
.p2-free-ban { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 16px; }
.p2-free-thumb { position: relative; z-index: 1; width: 200px; max-width: 42%; height: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); flex-shrink: 0; }
.p2-free-ban .ph-text { text-align: left; }
@media (max-width: 767px) { .p2-free-ban { gap: 10px; padding: 10px 12px; } .p2-free-ban .ph-text { font-size: 15px; padding: 4px; } }
