/* =========================================================
 * 편입N 목업 시안 — 사용자 사이트 공용 CSS (P0 소유, 이후 단위는 수정 금지)
 * 관리자 화면도 이 파일을 로드한다(버튼·배지·폼·모달·탭 등 공용 컴포넌트 공유).
 * 목차
 *  1 레이아웃·유틸   2 로고·크롬(TopBar·Header·GNB·모바일 패널)   3 푸터·플로팅·시안 도구
 *  4 페이지 히어로·서브탭   5 버튼·배지·꼬리표·칩   6 카드류   7 플레이스홀더
 *  8 게시판·페이지네이션   9 탭·아코디언·모달·토스트·슬라이더   10 폼
 *  11 진도바·단계·빈 상태·좌측 메뉴·정보 목록·안내 박스·상품 랜딩   12 메인(home-*)
 * ========================================================= */

/* ---------- 1. 레이아웃·유틸 ---------- */
.wrap { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.is-narrow { max-width: calc(820px + var(--gutter) * 2); }
.page { min-height: 50vh; }
.section { padding: var(--s-16) 0; }
.section.is-tight { padding: var(--s-10) 0; }
.section.is-alt { background: var(--bg); }
.section.is-navy { background: var(--navy); color: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.sec-head .eyebrow { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--red); letter-spacing: 0.5px; margin-bottom: 6px; }
.sec-title { font-size: var(--fs-2xl); font-weight: 800; line-height: 1.3; letter-spacing: -0.8px; }
.sec-desc { margin-top: 6px; color: var(--slate-600); font-size: var(--fs-base); }
.sec-more { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-sm); color: var(--slate-600); white-space: nowrap; flex-shrink: 0; }
.sec-more:hover { color: var(--navy); }
.h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.6px; line-height: 1.35; }
.h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.4px; line-height: 1.4; }
.h4 { font-size: var(--fs-md); font-weight: 700; }
.lead { font-size: var(--fs-md); color: var(--slate-600); line-height: 1.7; }
.muted { color: var(--slate-500); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.t-red { color: var(--red); } .t-blue { color: var(--blue); } .t-navy { color: var(--navy); } .t-green { color: var(--green); }
.t-center { text-align: center; } .t-right { text-align: right; }
.bold { font-weight: 700; } .strike { text-decoration: line-through; color: var(--slate-500); }
.grid { display: grid; gap: var(--s-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.row.is-between { justify-content: space-between; }
.row.is-end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.stack.is-sm { gap: var(--s-2); }
.mt-1 { margin-top: var(--s-2); } .mt-2 { margin-top: var(--s-4); } .mt-3 { margin-top: var(--s-6); } .mt-4 { margin-top: var(--s-10); }
.mb-1 { margin-bottom: var(--s-2); } .mb-2 { margin-bottom: var(--s-4); } .mb-3 { margin-bottom: var(--s-6); }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--s-6) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex-shrink: 0; }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) {
  .g-4, .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-t { display: none !important; }
}
@media (max-width: 767px) {
  .section { padding: var(--s-10) 0; }
  .sec-title { font-size: var(--fs-xl); }
  .sec-head { margin-bottom: var(--s-5); }
  .sec-head:has(.tab-list) { flex-direction: column; align-items: flex-start; }
  .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .course-card .cc-body { padding: 12px; }
  .course-card .cc-title { font-size: 14px; }
  .course-card .price-sale { font-size: var(--fs-md); }
  .course-card .price-orig { display: none; }
  .ph-text { font-size: 15px; }
  .g-4.keep-m, .g-5.keep-m { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-4:not(.keep-m), .g-5:not(.keep-m) { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: var(--s-4); }
  .hide-m { display: none !important; }
}
@media (min-width: 768px) { .only-m { display: none !important; } }

/* ---------- 2. 로고·크롬 ---------- */
/* 원사이트 로고 이미지(160×43). 높이만 정하고 너비는 비율대로. 원본보다 크게 키우지 않는다(최대 43px) */
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { display: block; width: auto; height: 34px; max-width: none; }
.hdr-logo .logo-img { height: 36px; }
.site-footer .logo-img { height: 36px; }

.topbar { background: var(--navy); color: var(--slate-300); font-size: var(--fs-sm); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--topbar-h); }
.topbar-msg { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--slate-300); }
.topbar-msg span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-msg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.topbar-msg:hover { color: #fff; }
.util { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.util a, .util button { display: inline-flex; align-items: center; gap: 4px; padding: 0 9px; color: var(--slate-400); font-size: var(--fs-sm); }
.util a:hover, .util button:hover { color: #fff; }
.util > * + *::before { content: ""; width: 1px; height: 10px; background: var(--navy-line); margin-right: 9px; margin-left: -9px; }
.util .util-me { color: #fff; font-weight: 600; }
.util .util-me em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--kakao); border-radius: 3px; padding: 1px 5px; margin-left: 4px; }
.util .count { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.hdr { position: relative; }
.hdr > .wrap { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.hdr-logo { flex-shrink: 0; }
.gnb { display: flex; align-items: stretch; height: 100%; margin: 0 auto; }
.gnb > li { position: relative; display: flex; }
.gnb-link { display: flex; align-items: center; padding: 0 17px; height: 100%; font-size: 17px; font-weight: 700; color: var(--navy); white-space: nowrap; position: relative; }
.gnb-link::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s var(--ease); }
.gnb > li:hover .gnb-link::after, .gnb > li.is-active .gnb-link::after { transform: scaleX(1); }
.gnb > li.is-active .gnb-link { color: var(--navy); }
/* 메가 드롭다운: GNB 어느 항목에 올려도 8개 메뉴 2뎁스 전체가 한 패널로 열림 */
.mega-bg { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -16px rgba(22,37,74,.3); display: none; z-index: 1; }
.hdr.is-mega .mega-bg { display: block; }
.mega-grid { display: grid; grid-template-columns: 210px repeat(8, minmax(0, 1fr)); }
.mega-intro { padding: 24px 20px 24px 0; }
.mega-intro strong { display: block; font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.4px; }
.mega-intro p { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 4px; line-height: 1.5; }
.mega-intro .mega-tel { display: inline-block; margin-top: 14px; font-weight: 800; font-size: var(--fs-md); color: var(--navy); }
.mega-col { padding: 22px 12px 24px; border-left: 1px solid var(--line-soft); transition: background .15s; min-width: 0; }
.mega-col.is-hover { background: #f8f9fc; }
.mega-col > a.mega-title { display: block; font-size: 14px; font-weight: 800; color: var(--navy); padding-bottom: 10px; margin-bottom: 6px; border-bottom: 2px solid transparent; }
.mega-col.is-hover > a.mega-title { border-bottom-color: var(--red); color: var(--red); }
.mega-col li a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--slate-600); line-height: 1.4; }
.mega-col li a:hover, .mega-col li a.is-active { color: var(--red); font-weight: 600; }
@media (max-width: 1199px) { .mega-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } .mega-intro { display: none; } .mega-col { padding-left: 8px; padding-right: 8px; } .mega-col li a { font-size: 13px; } }
.hdr-actions { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.hdr-icon { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--radius); color: var(--navy); position: relative; }
.hdr-icon:hover { background: var(--bg); }
.hdr-icon .count { position: absolute; top: 4px; right: 3px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
@media (max-width: 1199px) {
  .gnb-link { padding: 0 11px; font-size: 16px; }
  .gnb-link::after { left: 11px; right: 11px; }
  .hdr > .wrap { gap: var(--s-4); }
}
@media (max-width: 1023px) {
  .topbar .util { display: none; }
  .gnb, .mega-bg { display: none !important; }
  .hdr-icon { display: inline-grid; }
  .hdr > .wrap { justify-content: space-between; }
  .hdr-logo { margin-right: auto; }
  .hdr-logo .logo-img { height: 30px; }
}
@media (max-width: 767px) {
  .hdr-actions .btn-consult { display: none; }
  .topbar { font-size: 12px; }
}

/* 모바일 패널 */
.mnav { position: fixed; left: 0; right: 0; top: var(--mnav-top, 102px); bottom: 0; background: #fff; z-index: 49; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); display: none; }
.mnav.is-open { display: block; }
html.is-locked { overflow: hidden; }
.mnav-me { padding: var(--s-5) var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.mnav-me strong { display: block; font-size: var(--fs-md); }
.mnav-me .muted { font-size: var(--fs-sm); }
.mnav-util { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: var(--s-3); }
.mnav-util a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); text-align: center; }
.mnav-group { border-bottom: 1px solid var(--line); }
.mnav-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); font-size: var(--fs-md); font-weight: 700; text-align: left; }
.mnav-head .ico { transition: transform .2s; color: var(--slate-500); }
.mnav-group.is-open .mnav-head .ico { transform: rotate(180deg); }
.mnav-group.is-open .mnav-head { color: var(--red); }
.mnav-list { display: none; padding: 0 var(--gutter) 14px; background: #fff; }
.mnav-group.is-open .mnav-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.mnav-list a { padding: 8px 0; font-size: 14px; color: var(--slate-600); }
.mnav-list a.is-active { color: var(--red); font-weight: 600; }
.mnav-foot { padding: var(--s-5) var(--gutter) var(--s-10); display: grid; gap: var(--s-2); }

/* ---------- 3. 푸터·플로팅·시안 도구 ---------- */
.site-footer { background: #0f1b38; color: var(--slate-400); font-size: var(--fs-sm); margin-top: 0; }
.ft-links { border-bottom: 1px solid rgba(255,255,255,.08); }
.ft-links .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-top: 18px; padding-bottom: 18px; }
.ft-links a { color: var(--slate-300); }
.ft-links a.is-strong { color: #fff; font-weight: 700; }
.ft-links a:hover { color: #fff; }
.ft-sns { margin-left: auto; display: flex; gap: 6px; }
.ft-sns a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--slate-300); }
.ft-sns a:hover { background: rgba(255,255,255,.16); color: #fff; }
.ft-main .wrap { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: var(--s-10); padding-top: var(--s-10); padding-bottom: var(--s-10); }
.ft-title { color: #fff; font-weight: 700; font-size: var(--fs-base); margin-bottom: 10px; }
.ft-call { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1.2; display: inline-block; }
.ft-campus { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.ft-campus dt { color: var(--slate-300); }
.ft-campus dd a { color: #fff; font-weight: 600; }
.ft-biz p { line-height: 1.75; }
.ft-biz span + span::before { content: "|"; margin: 0 8px; color: rgba(255,255,255,.18); }
.ft-copy { margin-top: 12px; color: var(--slate-500); }
@media (max-width: 1023px) { .ft-main .wrap { grid-template-columns: 1fr 1fr; } .ft-main .ft-biz { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .ft-main .wrap { grid-template-columns: 1fr; gap: var(--s-6); }
  .ft-sns { margin-left: 0; width: 100%; }
  .site-footer { padding-bottom: 56px; }
}

.float-kakao { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 62px; height: 62px; border-radius: 50%; background: var(--kakao); color: #3a1d1d; font-size: 11px; font-weight: 800; box-shadow: var(--shadow-pop); }
.float-kakao:hover { transform: translateY(-2px); }
.float-top { position: fixed; right: 27px; bottom: 96px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); box-shadow: var(--shadow); font-size: 11px; font-weight: 700; }
@media (max-width: 767px) { .float-kakao { right: 14px; bottom: 16px; width: 54px; height: 54px; font-size: 10px; } .float-top { display: none; } }

.demo-tool { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 10px; background: rgba(15,27,56,.92); color: #fff; border-radius: var(--radius-pill); font-size: 11px; box-shadow: var(--shadow-pop); }
.demo-tool > span { color: var(--slate-300); font-weight: 600; white-space: nowrap; }
.demo-tool .seg { background: rgba(255,255,255,.1); }
.demo-tool .seg button { color: var(--slate-300); padding: 4px 9px; font-size: 11px; }
.demo-tool .seg button.is-active { background: #fff; color: var(--navy); }
.demo-toggle { display: none; }
/* 시안 초기화면(mockup/index.html)으로 돌아가는 알약 버튼 — 사용자: 시안 도구 맨 앞(chrome.js), 관리자: 사이드바 맨 아래·좁은 폭은 좌측 하단 고정(admin-chrome.js), 관리자 로그인: 좌측 하단 고정 */
.mock-home { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 11px 0 9px; border-radius: var(--radius-pill); background: rgba(255,255,255,.14); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.mock-home:hover { background: rgba(255,255,255,.24); }
.mock-home:focus-visible { outline: 2px solid var(--kakao); outline-offset: 2px; }
.demo-tool { padding-left: 5px; }
.mock-home.is-float { position: fixed; left: 14px; bottom: 14px; z-index: 60; height: 30px; padding: 0 13px 0 11px; font-size: 12px; background: rgba(15,27,56,.92); box-shadow: var(--shadow-pop); }
.mock-home.is-float:hover { background: var(--navy-soft); }
@media print { .mock-home { display: none !important; } }
@media (max-width: 767px) {
  .demo-tool { left: 8px; bottom: 12px; padding: 4px; }
  .demo-tool > span { display: none; }
  .demo-tool .seg { display: none; }
  .demo-tool.is-open .seg { display: inline-flex; }
  .demo-tool .seg button { padding: 4px 7px; }
  .demo-toggle { display: inline-grid; place-items: center; height: 26px; padding: 0 9px; border-radius: 13px; color: #fff; font-size: 11px; font-weight: 700; }
}

/* ---------- 4. 페이지 히어로·서브탭 ---------- */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 38px; padding-bottom: 40px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--slate-400); margin-bottom: 12px; }
.crumb a:hover { color: #fff; }
.crumb .ico { opacity: .6; }
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.25; }
.page-hero p { margin-top: 8px; color: var(--slate-300); font-size: var(--fs-md); }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 22px; font-size: var(--fs-base); font-weight: 600; color: var(--slate-600); white-space: nowrap; position: relative; }
.subnav a:hover { color: var(--navy); }
.subnav a.is-active { color: var(--navy); font-weight: 800; }
.subnav a.is-active::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px; background: var(--red); }
@media (max-width: 767px) {
  .page-hero .wrap { padding-top: 26px; padding-bottom: 28px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: var(--fs-base); }
  .subnav a { padding: 13px 14px; font-size: 14px; }
  .subnav a.is-active::after { left: 14px; right: 14px; }
}

/* ---------- 5. 버튼·배지·꼬리표·칩 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: var(--radius); font-size: var(--fs-base); font-weight: 700; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; cursor: pointer; text-align: center; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-soft); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--input-line); }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { background: var(--bg); color: var(--navy); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-kakao { background: var(--kakao); color: #3a1d1d; }
.btn-naver { background: #03c75a; color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { border-color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn-xs { height: 28px; padding: 0 10px; font-size: var(--fs-xs); border-radius: var(--radius-sm); }
.btn-lg { height: 54px; padding: 0 28px; font-size: var(--fs-md); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-icon { width: 40px; padding: 0; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; background: var(--bg); color: var(--slate-600); vertical-align: middle; }
.badge-red { background: var(--red); color: #fff; }
.badge-red-soft { background: var(--red-soft); color: var(--red); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-line { background: #fff; border: 1px solid var(--line); color: var(--slate-600); }
.badge-green { background: var(--green-soft); color: var(--green); }

/* 꼬리표 4종: 협의 필요 / 제안 / 추가 / 업체 확인 */
.note-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap; vertical-align: middle; border: 1px dashed currentColor; letter-spacing: 0; }
.note-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.note-tag.is-discuss { color: #b4471a; background: #fff4ec; }   /* 협의 필요 */
.note-tag.is-propose { color: #6b3fb3; background: #f4effc; }   /* 제안 */
.note-tag.is-added { color: var(--green); background: var(--green-soft); } /* 추가 */
.note-tag.is-vendor { color: #8a6d00; background: #fff9db; }    /* 업체 확인 */
.note-box { border: 1px dashed var(--slate-300); border-radius: var(--radius); background: #fffdf5; padding: 12px 14px; font-size: var(--fs-sm); color: var(--slate-600); display: flex; gap: 8px; align-items: flex-start; }
.note-box .note-tag { flex-shrink: 0; margin-top: 1px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--input-line); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--slate-600); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.seg { display: inline-flex; padding: 3px; background: var(--bg); border-radius: var(--radius); gap: 2px; }
.seg button, .seg a { padding: 6px 14px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--slate-600); white-space: nowrap; }
.seg .is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow); font-weight: 700; }

/* ---------- 6. 카드류 ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-body { padding: var(--s-5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 16px var(--s-5); border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: var(--fs-md); font-weight: 700; }
.card-foot { padding: 14px var(--s-5); border-top: 1px solid var(--line); background: #fcfcfd; }
.card.is-link { transition: border-color .15s, transform .15s; display: block; }
.card.is-link:hover { border-color: var(--navy); }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); background: #fff; }
.box.is-gray { background: var(--bg); border-color: transparent; }

/* 가격 */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.price-rate { color: var(--red); font-weight: 800; }
.price-sale { font-weight: 800; color: var(--navy); }
.price-orig { font-size: var(--fs-sm); color: var(--slate-500); text-decoration: line-through; }
.price.is-lg .price-rate, .price.is-lg .price-sale { font-size: 26px; letter-spacing: -0.5px; }

/* 강좌 카드 */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; height: 100%; }
.course-card:hover { border-color: var(--navy); }
.course-card .ph { border-radius: 0; }
/* (F 2026-11-19) 썸네일 없는 카드: 강좌명은 2줄까지, 아래 "강의 썸네일" 라벨 자리만큼 띄워 겹치지 않게 (전체 강좌명은 .cc-title) */
.course-card .ph[data-label] > .ph-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; padding-bottom: 0; margin-bottom: 34px; }
.course-card .cc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cc-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.cc-title { font-size: var(--fs-md); font-weight: 700; line-height: 1.4; }
.cc-meta { font-size: var(--fs-sm); color: var(--slate-500); }
.course-card .price { margin-top: auto; padding-top: 8px; }
.course-card .price-sale { font-size: var(--fs-lg); }

/* 패스 상품 카드 */
.pass-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.pass-card .pc-top { padding: 22px 22px 18px; color: #fff; background: var(--navy); position: relative; overflow: hidden; }
.pass-card .pc-top::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; border: 26px solid rgba(255,255,255,.07); }
.pass-card.is-red .pc-top { background: linear-gradient(135deg, #b0191e, #cd1e24 60%, #e0443a); }
.pass-card.is-blue .pc-top { background: linear-gradient(135deg, #1c467f, #2456a6); }
.pass-card.is-navy .pc-top { background: linear-gradient(135deg, #0f1b38, #22345f); }
.pc-name { font-size: 24px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.25; }
.pc-sum { margin-top: 6px; font-size: var(--fs-sm); color: rgba(255,255,255,.82); line-height: 1.55; min-height: 40px; }
.pass-card .pc-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pc-points { display: grid; gap: 7px; font-size: 14px; color: var(--slate-600); }
.pc-points li { position: relative; padding-left: 12px; }
.pc-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--slate-400); }
.pc-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.pass-card .price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pass-card .price-sale { font-size: 26px; }
.pass-card .price-rate { font-size: 22px; }

/* 교재 카드 */
.book-card { display: flex; flex-direction: column; gap: 10px; }
.book-card .ph { border-radius: var(--radius-sm); box-shadow: 4px 4px 0 rgba(22,37,74,.06); }
.book-card .bk-cat { font-size: 12px; color: var(--blue); font-weight: 700; }
.book-card .bk-title { font-weight: 700; line-height: 1.4; }
.book-card .bk-author { font-size: var(--fs-sm); color: var(--slate-500); }
.book-card .price-sale { font-size: var(--fs-md); }

/* 교수 카드 */
.prof-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.prof-card:hover { border-color: var(--navy); }
.prof-card .pf-body { padding: 14px 16px 16px; }
.pf-sub { font-size: 12px; font-weight: 700; color: var(--red); }
.pf-name { font-size: var(--fs-lg); font-weight: 800; margin-top: 2px; }
.pf-name small { font-size: var(--fs-sm); font-weight: 500; color: var(--slate-500); margin-left: 4px; }
.pf-tag { margin-top: 6px; font-size: var(--fs-sm); color: var(--slate-600); line-height: 1.5; }

/* 합격수기 카드 */
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; transition: border-color .15s; }
.review-card:hover { border-color: var(--navy); }
.rv-univ { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-univ strong { font-size: var(--fs-md); font-weight: 800; }
.rv-title { font-weight: 700; line-height: 1.45; }
.rv-text { font-size: 14px; color: var(--slate-600); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: var(--fs-sm); color: var(--slate-500); display: flex; justify-content: space-between; gap: 8px; }

/* 유튜브 카드 */
.yt-card { display: block; text-align: left; width: 100%; }
.yt-card .ph { position: relative; }
.yt-card .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 54px; height: 38px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; z-index: 2; transition: transform .15s; }
.yt-card:hover .yt-play { transform: translate(-50%,-50%) scale(1.08); }
.yt-card .yt-len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 3px; z-index: 2; }
.yt-card .yt-title { margin-top: 10px; font-weight: 700; line-height: 1.4; }
.yt-card .yt-meta { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 2px; }

/* 캠퍼스 카드 */
.campus-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; }
.campus-card h3 { font-size: var(--fs-lg); font-weight: 800; }
.campus-card .cp-tel { align-self: flex-start; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.3px; margin-top: 4px; }
.campus-card .cp-addr { font-size: var(--fs-sm); color: var(--slate-500); }
.campus-card .row { margin-top: auto; padding-top: 12px; }

/* ---------- 7. 플레이스홀더 이미지 ----------
 * <div class="ph r-16x9" data-label="강의 썸네일"></div>  톤: ph-navy(기본) ph-red ph-blue ph-gray ph-warm  인물: ph-person */
.ph { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #22345f 0%, #16254a 55%, #0f1b38 100%); color: rgba(255,255,255,.75); display: grid; place-items: center; isolation: isolate; }
.ph::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 24px 24px; z-index: -1; }
.ph[data-label]::after { content: attr(data-label); position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .2px; padding: 2px 7px; border-radius: 3px; background: rgba(0,0,0,.28); color: rgba(255,255,255,.9); }
.ph-red { background: linear-gradient(135deg, #e0443a 0%, #cd1e24 50%, #8f1418 100%); }
.ph-blue { background: linear-gradient(135deg, #3a6cc0 0%, #2456a6 50%, #173d7a 100%); }
.ph-gray { background: linear-gradient(135deg, #eef1f5, #dde2ea); color: var(--slate-500); }
.ph-gray::before { background-image: linear-gradient(rgba(22,37,74,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22,37,74,.05) 1px, transparent 1px); }
.ph-gray[data-label]::after { background: rgba(22,37,74,.08); color: var(--slate-600); }
.ph-warm { background: linear-gradient(135deg, #ffb18f 0%, #ff7a4d 50%, #e2532a 100%); }
.ph-person { background-color: #dfe5ee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%23b7c1d1'/%3E%3Cpath d='M16 100c2-22 16-36 34-36s32 14 34 36Z' fill='%23b7c1d1'/%3E%3C/svg%3E"), linear-gradient(180deg, #eef2f7, #d7dfea); background-repeat: no-repeat; background-position: center bottom; background-size: 78% auto, cover; }
.ph-person::before { display: none; }
.ph-person.ph-navy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%23415a8c'/%3E%3Cpath d='M16 100c2-22 16-36 34-36s32 14 34 36Z' fill='%23415a8c'/%3E%3C/svg%3E"), linear-gradient(180deg, #2a3f6f, #16254a); }
.ph-person.ph-blue { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%2397b4e3'/%3E%3Cpath d='M16 100c2-22 16-36 34-36s32 14 34 36Z' fill='%2397b4e3'/%3E%3C/svg%3E"), linear-gradient(180deg, #eaf0fa, #c9d8f0); }
.ph-person.ph-red { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%23e9a3a5'/%3E%3Cpath d='M16 100c2-22 16-36 34-36s32 14 34 36Z' fill='%23e9a3a5'/%3E%3C/svg%3E"), linear-gradient(180deg, #fdecec, #f5cfd0); }
.ph-person[data-label]::after { background: rgba(22,37,74,.5); }
.ph-map { background: #e8edf3; }
.ph-map::before { background-image: linear-gradient(30deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%), linear-gradient(-60deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%), linear-gradient(rgba(22,37,74,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(22,37,74,.05) 1px, transparent 1px); background-size: 220px 220px, 260px 260px, 30px 30px, 30px 30px; }
.ph-map[data-label]::after { background: rgba(22,37,74,.6); }
/* 실제 이미지가 들어간 플레이스홀더 (ui.js UI.img → img.ph-img, 2026-11-19) */
.ph.has-img::before, .ph.has-img::after { display: none; }
.ph.has-img { background-image: none; }
.ph > .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; display: block; }
.ph > .ph-img.is-top { object-position: top; }
.yt-modal-screen.is-playing { display: block; }
.yt-modal-screen .yt-frame { display: block; width: 100%; height: 100%; border: 0; }
.ph-text { position: relative; z-index: 1; font-weight: 800; font-size: 20px; color: #fff; text-align: center; line-height: 1.3; padding: 12px; }
.r-16x9 { aspect-ratio: 16 / 9; } .r-4x3 { aspect-ratio: 4 / 3; } .r-1x1 { aspect-ratio: 1 / 1; } .r-3x4 { aspect-ratio: 3 / 4; } .r-21x9 { aspect-ratio: 21 / 9; } .r-book { aspect-ratio: 3 / 4.1; }

/* ---------- 8. 게시판·페이지네이션 ---------- */
.board-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.board-count { font-size: var(--fs-sm); color: var(--slate-600); }
.board-count strong { color: var(--red); }
.search-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.search-bar .select { width: 110px; }
.search-bar .input { width: 240px; }
.board { width: 100%; border-top: 2px solid var(--navy); font-size: var(--fs-base); }
.board th { padding: 14px 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--slate-600); border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.board td { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: center; color: var(--slate-600); font-size: 14px; }
.board td.b-title { text-align: left; color: var(--navy); }
.board td.b-title a { font-weight: 600; display: inline; }
.board td.b-title a:hover { text-decoration: underline; }
.board tr.is-pin td { background: #fbfcfe; }
.board .b-num { width: 80px; }
.board .b-meta { width: 110px; white-space: nowrap; }
.board .b-cat { width: 110px; }
.board .b-new { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; color: var(--red); vertical-align: 2px; }
.board .b-file { display: inline-flex; vertical-align: -3px; margin-left: 4px; color: var(--slate-500); }
@media (max-width: 767px) {
  .board thead { display: none; }
  .board, .board tbody { display: block; }
  .board tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .board td { display: block; padding: 0; border: 0; font-size: 12px; color: var(--slate-500); text-align: left; }
  .board td.b-title { order: -1; width: 100%; font-size: 15px; margin-bottom: 2px; }
  .board td.b-cat { order: -2; width: 100%; }
  .board td.b-num { display: none; }
  .board td.b-num.is-pin { display: block; order: -3; width: 100%; }
  .board td.b-meta { width: auto; }
  .board td.b-meta + td.b-meta::before { content: "·"; margin: 0 6px; color: var(--slate-300); }
  .board tr.is-pin td { background: transparent; }
  .search-bar { width: 100%; }
  .search-bar .input { flex: 1; width: auto; min-width: 0; }
}
.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: var(--s-8); }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--slate-600); }
.pager a:hover { background: var(--bg); }
.pager .is-active { background: var(--navy); color: #fff; font-weight: 700; }
.pager .pg-arrow { border: 1px solid var(--line); }

/* 게시글 상세 */
.post-head { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); padding: 22px 4px; }
.post-head h1, .post-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.4; margin-top: 8px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: var(--fs-sm); color: var(--slate-500); }
.post-body { padding: 32px 4px; border-bottom: 1px solid var(--line); }
.prose { font-size: 16px; line-height: 1.8; color: var(--slate-600); }
.prose h2, .prose h3 { color: var(--navy); font-weight: 800; margin: 1.6em 0 .6em; line-height: 1.4; }
.prose h2 { font-size: 20px; } .prose h3 { font-size: 17px; }
.prose p { margin: .7em 0; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: .7em 0; }
.prose ol { list-style: decimal; padding-left: 1.3em; margin: .7em 0; }
.prose strong { color: var(--navy); }
.prose table { margin: 1em 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--bg); color: var(--navy); }
.prose .ph { margin: 1em 0; }
.post-files { padding: 14px 4px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--fs-sm); }
.post-files a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--slate-600); }
.post-files a:hover { border-color: var(--navy); color: var(--navy); }
.post-nav { border-bottom: 1px solid var(--line); }
.post-nav a { display: flex; gap: 16px; padding: 14px 4px; font-size: 14px; color: var(--slate-600); }
.post-nav a + a { border-top: 1px solid var(--line-soft); }
.post-nav a span:first-child { color: var(--slate-500); width: 52px; flex-shrink: 0; }
.post-nav a:hover span:last-child { color: var(--navy); text-decoration: underline; }
.post-actions { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-8); }

/* 일반 표 (가격표·시간표·경쟁률 등) */
.tbl-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; font-size: 14px; border-top: 2px solid var(--navy); }
.tbl th, .tbl td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: center; }
.tbl th { background: #fafbfc; color: var(--slate-600); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.tbl td { color: var(--slate-600); }
.tbl td.t-left, .tbl th.t-left { text-align: left; }
.tbl tbody th { background: var(--bg); color: var(--navy); }
.tbl.is-lined th + th, .tbl.is-lined td + td { border-left: 1px solid var(--line); }

/* ---------- 9. 탭·아코디언·모달·토스트·슬라이더 (동작은 ui.js) ---------- */
.tab-list { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab { padding: 12px 18px; font-size: var(--fs-base); font-weight: 600; color: var(--slate-500); white-space: nowrap; position: relative; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); font-weight: 800; }
.tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy); }
.tab .count { font-size: 12px; color: var(--red); margin-left: 4px; }
.tab-list.is-box { border-bottom: 0; gap: 0; }
.tab-list.is-box .tab { flex: 1; border: 1px solid var(--line); background: var(--bg); text-align: center; }
.tab-list.is-box .tab + .tab { margin-left: -1px; }
.tab-list.is-box .tab.is-active { background: #fff; border-color: var(--navy); border-bottom-color: #fff; position: relative; z-index: 1; }
.tab-list.is-box .tab.is-active::after { left: -1px; right: -1px; top: -1px; bottom: auto; height: 3px; background: var(--red); }
.tab-list.is-pill { border-bottom: 0; gap: 6px; flex-wrap: wrap; }
.tab-list.is-pill .tab { border: 1px solid var(--input-line); border-radius: var(--radius-pill); padding: 7px 16px; font-size: var(--fs-sm); }
.tab-list.is-pill .tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-list.is-pill .tab.is-active::after { display: none; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-list + .tab-panel, .tab-list ~ .tab-panels { margin-top: var(--s-6); }

.acc { border-top: 2px solid var(--navy); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 6px; text-align: left; font-size: var(--fs-md); font-weight: 600; }
.acc-head .q { color: var(--red); font-weight: 800; flex-shrink: 0; }
.acc-head .acc-cat { font-size: var(--fs-sm); color: var(--slate-500); flex-shrink: 0; font-weight: 500; }
.acc-head .acc-label { flex: 1; min-width: 0; }
.acc-head::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex-shrink: 0; margin-right: 4px; }
.acc-item.is-open .acc-head::after { transform: rotate(-135deg) translateY(-2px); }
.acc-item.is-open .acc-head { color: var(--navy); font-weight: 700; }
.acc-body { display: none; padding: 18px 20px 22px 34px; background: var(--bg); font-size: 15px; color: var(--slate-600); line-height: 1.75; }
.acc-item.is-open .acc-body { display: block; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 18, 40, .55); }
.modal.is-open { display: flex; }
.modal-dialog { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: var(--shadow-pop); animation: modalIn .2s var(--ease); }
.modal-dialog.is-wide { max-width: 760px; }
.modal-dialog.is-video { max-width: 880px; background: #000; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2, .modal-head h3 { font-size: var(--fs-lg); font-weight: 800; }
.modal-close { width: 34px; height: 34px; border-radius: var(--radius); display: grid; place-items: center; color: var(--slate-500); flex-shrink: 0; }
.modal-close:hover { background: var(--bg); color: var(--navy); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.modal-foot.is-center { justify-content: center; }
.modal-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--red-soft); color: var(--red); }
.modal-dialog.is-video .modal-head { border-color: #222; color: #fff; }
.modal-dialog.is-video .modal-close { color: #ccc; }
.modal-dialog.is-video .modal-body { padding: 0; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .modal { padding: 12px; }
  .modal-body { padding: 18px; }
  .modal-head, .modal-foot { padding-left: 18px; padding-right: 18px; }
}

.toast-stack { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 8px; animation: toastIn .25s var(--ease); }
.toast .ico { color: #7ee2b0; }
.toast.is-error .ico { color: #ff9a9a; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.slider { position: relative; }
.slider-track { display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; flex: 0 0 calc((100% - var(--s-5) * (var(--per, 4) - 1)) / var(--per, 4)); min-width: 0; }
.slider-nav { display: flex; gap: 6px; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--input-line); background: #fff; display: grid; place-items: center; color: var(--navy); }
.slider-btn:hover { border-color: var(--navy); }
.slider-btn[disabled] { opacity: .35; pointer-events: none; }
.slider-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 4px; background: var(--slate-300); transition: width .2s; }
.slider-dots button.is-active { width: 22px; background: var(--red); }
@media (max-width: 1023px) { .slider-track > * { flex-basis: calc((100% - var(--s-5) * (var(--per-t, 2.4) - 1)) / var(--per-t, 2.4)); } }
@media (max-width: 767px) { .slider-track { gap: 12px; } .slider-track > * { flex-basis: calc((100% - 12px * (var(--per-m, 1.25) - 1)) / var(--per-m, 1.25)); } }

/* ---------- 10. 폼 ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 6px; min-width: 0; }
.label { font-size: 14px; font-weight: 700; color: var(--navy); }
.label .req, .req { color: var(--red); margin-left: 2px; }
.hint { font-size: var(--fs-xs); color: var(--slate-500); }
.hint.is-error { color: var(--danger); }
.input, .select, .textarea { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--input-line); border-radius: var(--radius); background: #fff; font-size: var(--fs-base); color: var(--navy); transition: border-color .15s; }
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); }
.input.is-error { border-color: var(--danger); }
.input[readonly], .input:disabled { background: var(--bg); color: var(--slate-500); }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386909f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.input-sm, .select.input-sm { height: 36px; font-size: var(--fs-sm); padding: 0 10px; }
.select.input-sm { padding-right: 30px; background-position: right 10px center; }
.input-group { display: flex; gap: 6px; }
.input-group > .input, .input-group > .select { flex: 1; }
.input-group > .btn { height: 46px; flex-shrink: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field-row.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) { .field-row, .field-row.is-3 { grid-template-columns: minmax(0, 1fr); } }
.check, .radio { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-base); cursor: pointer; color: var(--navy); }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; flex-shrink: 0; }
.check-group { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.option-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.option-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--input-line); border-radius: var(--radius); cursor: pointer; font-size: var(--fs-sm); color: var(--slate-600); }
.option-card strong { color: var(--navy); font-size: var(--fs-base); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) { border-color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: var(--fs-sm); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { width: 40px; height: 22px; border-radius: 11px; background: var(--slate-300); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.switch input:checked + .sw { background: var(--red); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-section + .form-section { margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--line); }
.form-section > h3 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--s-4); }
.agree-box { border: 1px solid var(--line); border-radius: var(--radius); }
.agree-box .agree-all { padding: 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.agree-box .agree-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 14px; }
.agree-box .agree-item a { font-size: var(--fs-xs); color: var(--slate-500); text-decoration: underline; flex-shrink: 0; }
.form-actions { display: flex; justify-content: center; gap: 8px; margin-top: var(--s-8); }
@media (max-width: 767px) { .form-card { padding: 20px 16px; } .form-actions .btn { flex: 1; } }

/* ---------- 11. 진도바·단계·빈 상태·좌측 메뉴·정보 목록·안내 박스·상품 랜딩 ---------- */
.progress { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--red); width: 0; }
.progress.is-navy > span { background: var(--navy); }
.progress.is-sm { height: 5px; }
.progress-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.progress-row .progress { flex: 1; }
.progress-row b { color: var(--red); min-width: 40px; text-align: right; }

.steps { display: flex; align-items: flex-start; counter-reset: step; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: var(--fs-sm); color: var(--slate-500); text-align: center; counter-increment: step; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 800; color: var(--slate-400); position: relative; z-index: 1; }
.steps li + li::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.steps li.is-done::before { content: "✓"; background: var(--navy); border-color: var(--navy); color: #fff; }
.steps li.is-done + li::after, .steps li.is-current::after { background: var(--navy); }
.steps li.is-current { color: var(--navy); font-weight: 700; }
.steps li.is-current::before { border-color: var(--red); background: var(--red); color: #fff; }
@media (max-width: 767px) { .steps li { font-size: 12px; } .steps li::before { width: 28px; height: 28px; } .steps li + li::after { top: 13px; } }

.empty { text-align: center; padding: 56px 20px; color: var(--slate-500); }
.empty .empty-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; margin: 0 auto 14px; color: var(--slate-400); }
.empty strong { display: block; color: var(--navy); font-size: var(--fs-md); margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* 좌측 메뉴 레이아웃 (나의 강의실·마이페이지 공용) */
.side-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-10); align-items: start; padding-top: var(--s-10); padding-bottom: var(--s-16); }
.side-nav { position: sticky; top: calc(var(--header-h) + 16px); }
.side-nav .sn-me { padding: 20px; background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.side-nav .sn-me strong { font-size: var(--fs-lg); display: block; }
.side-nav .sn-me span { font-size: var(--fs-xs); color: var(--slate-300); }
.side-nav .sn-title { font-size: var(--fs-xl); font-weight: 800; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.side-nav ul { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.side-nav .sn-title + ul { border: 0; border-radius: 0; }
.side-nav li + li { border-top: 1px solid var(--line-soft); }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: var(--fs-base); color: var(--slate-600); }
.side-nav a:hover { color: var(--navy); background: #fafbfc; }
.side-nav a.is-active { color: var(--red); font-weight: 700; background: var(--red-soft); }
.side-main { min-width: 0; }
.side-main > .h2:first-child, .side-main > .page-title { margin-bottom: var(--s-6); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: var(--s-6); }
.page-title h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.6px; }
@media (max-width: 1023px) {
  .side-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding-top: var(--s-5); }
  .side-nav { position: static; }
  .side-nav .sn-me { border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; }
  .side-nav ul { display: flex; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; scrollbar-width: none; }
  .side-nav ul::-webkit-scrollbar { display: none; }
  .side-nav li + li { border: 0; }
  .side-nav a { padding: 12px 14px; white-space: nowrap; font-size: 14px; }
  .side-nav a.is-active { background: transparent; box-shadow: inset 0 -2px 0 var(--red); }
  .side-nav a .ico { display: none; }
  .side-nav .sn-title { display: none; }
}

/* 정보 목록 */
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-top: 1px solid var(--line); font-size: 14px; }
.kv dt, .kv dd { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kv dt { background: #fafbfc; color: var(--slate-600); font-weight: 600; }
.kv dd { color: var(--navy); }
.kv.is-plain { border: 0; grid-template-columns: auto 1fr; gap: 8px 16px; }
.kv.is-plain dt, .kv.is-plain dd { padding: 0; border: 0; background: none; }
@media (max-width: 767px) { .kv { grid-template-columns: 96px minmax(0, 1fr); } }

.info-box { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--blue-soft); color: var(--navy); font-size: 14px; line-height: 1.6; }
.info-box .ico { color: var(--blue); margin-top: 1px; }
.info-box.is-warn { background: var(--orange-soft); }
.info-box.is-warn .ico { color: var(--orange); }
.info-box.is-red { background: var(--red-soft); }
.info-box.is-red .ico { color: var(--red); }
.bullets { display: grid; gap: 6px; font-size: 14px; color: var(--slate-600); }
.bullets li { position: relative; padding-left: 12px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: var(--slate-400); }

/* 상품 랜딩: 본문 + 우측 고정 구매 박스 */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-10); align-items: start; }
.buy-box { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.buy-box .bb-head { padding: 20px; border-bottom: 1px solid var(--line); }
.buy-box .bb-head h3 { font-size: var(--fs-lg); font-weight: 800; line-height: 1.35; margin-top: 6px; }
.buy-box .bb-body { padding: 18px 20px; display: grid; gap: 12px; }
.buy-box .bb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; background: #fafbfc; border-top: 1px solid var(--line); }
.buy-box .bb-total strong { font-size: 24px; font-weight: 800; color: var(--red); }
.buy-box .bb-actions { padding: 0 20px 20px; background: #fafbfc; display: grid; gap: 8px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--input-line); border-radius: var(--radius); cursor: pointer; font-size: 14px; }
.opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.opt input { accent-color: var(--red); }
.opt b { color: var(--navy); white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature h4 { font-size: var(--fs-md); font-weight: 800; }
.feature p { margin-top: 6px; font-size: 14px; color: var(--slate-600); }
.anchor-nav { position: sticky; top: var(--header-h); z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-buy { display: none; }
@media (max-width: 1023px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); }
  .buy-box { position: static; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 8px; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); }
  .mobile-buy .btn { flex: 1; }
}
@media (max-width: 767px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

/* CTA 띠 */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; padding: 26px 30px; border-radius: var(--radius); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 120px; top: -80px; width: 200px; height: 200px; border-radius: 50%; border: 34px solid rgba(255,255,255,.05); pointer-events: none; }
.cta-band h3 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.5px; }
.cta-band p { color: var(--slate-300); font-size: 14px; margin-top: 4px; }
.cta-band .row { position: relative; z-index: 1; }
.cta-band.is-red { background: var(--red); }
.cta-band.is-red p { color: rgba(255,255,255,.85); }
@media (max-width: 767px) { .cta-band { padding: 22px 20px; } .cta-band .row, .cta-band .row .btn { width: 100%; } .cta-band .row .btn { flex: 1; } }

/* ---------- 12. 메인 (site/index.html 전용, home-*) ---------- */
/* 메인 배너: 원사이트 통배너 6장(1600×320, 가로 5:1, 글자 포함 이미지)을 비율 그대로 화면 폭에 맞춰 건다. 잘라내지 않는다.
 * 원본 폭(1600px)보다 넓은 화면에서는 가운데 두고 양옆을 이미지 가장자리와 같은 검정으로 채운다. 조작(화살표·점·n / 6)은 이미지 아래 줄. */
.home-hero { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.home-hero .slider-track { gap: 0; scroll-snap-type: x mandatory; background: #000; }
.home-hero .slider-track > * { flex-basis: 100% !important; }
.hero-slide { display: flex; justify-content: center; background: #000; }
.hero-slide:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.hero-img { display: block; width: 100%; max-width: 1600px; height: auto; aspect-ratio: 5 / 1; object-fit: contain; }
.hero-ctrl .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.hero-ctrl .slider-dots { margin: 0; }
.hero-ctrl .hero-count { font-size: 13px; color: var(--slate-600); font-weight: 600; min-width: 38px; text-align: center; }
.hero-ctrl .slider-btn { width: 32px; height: 32px; }
.hero-ctrl .hero-more { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; padding: 6px 10px; border: 1px solid var(--input-line); border-radius: var(--radius-pill); }
@media (max-width: 767px) { .hero-ctrl .wrap { gap: 8px; padding-top: 8px; padding-bottom: 8px; } .hero-ctrl .slider-dots { gap: 5px; } }

.mini-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); position: relative; z-index: 4; }
.mini-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(22,37,74,.08); transition: border-color .15s; min-height: 92px; }
.mini-banner:hover { border-color: var(--navy); }
.mini-banner .mb-k { font-size: 12px; font-weight: 700; }
.mini-banner strong { display: block; font-size: var(--fs-lg); font-weight: 800; margin-top: 2px; letter-spacing: -0.4px; }
.mini-banner p { font-size: var(--fs-sm); color: var(--slate-500); margin-top: 2px; }
.mini-banner.is-navy .mb-k { color: var(--blue); }
.mini-banner.is-red .mb-k { color: var(--red); }
.mini-banner.is-blue .mb-k { color: var(--blue); }

.quick-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quick-menu a { display: flex; align-items: center; gap: 14px; padding: 22px 24px; position: relative; }
.quick-menu a + a { border-left: 1px solid var(--line); }
.quick-menu .qm-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: var(--navy); flex-shrink: 0; transition: background .15s, color .15s; }
.quick-menu a:hover .qm-ico { background: var(--navy); color: #fff; }
.quick-menu strong { display: block; font-size: var(--fs-md); font-weight: 800; }
.quick-menu span { font-size: var(--fs-sm); color: var(--slate-500); }

.free-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: var(--s-5); padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--slate-300); background: #fff; }
.free-strip .fs-badge { flex-shrink: 0; font-weight: 800; color: var(--red); }
.free-strip .fs-list { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.free-strip .fs-list a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--bg); font-size: 14px; font-weight: 600; }
.free-strip .fs-list a:hover { background: var(--blue-soft); color: var(--blue); }

.home-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.mini-board-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.mini-board-head h3 { font-size: var(--fs-lg); font-weight: 800; }
.mini-board li a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mini-board li a:hover .mb-t { text-decoration: underline; }
.mini-board .mb-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mini-board .mb-d { font-size: var(--fs-sm); color: var(--slate-500); flex-shrink: 0; }

.result-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: #fff; }
.result-band > div { padding: 36px 40px; position: relative; }
.result-band > div + div { border-left: 1px solid rgba(255,255,255,.1); background: var(--navy-soft); }
.result-band .rb-k { font-size: 13px; font-weight: 700; color: var(--slate-300); letter-spacing: .3px; }
.result-band .rb-big { font-size: 64px; font-weight: 800; letter-spacing: -2.5px; line-height: 1.05; margin-top: 8px; }
.result-band .rb-big em { font-style: normal; color: #ff6a5e; }
.result-band .rb-big.is-word { font-size: 46px; letter-spacing: -1.5px; }
.result-band p { margin-top: 10px; color: var(--slate-300); font-size: 14px; }
.result-band .rb-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.result-band .rb-list span { padding: 5px 10px; border-radius: var(--radius-pill); background: rgba(255,255,255,.1); font-size: 12px; font-weight: 600; }

.yt-modal-screen { aspect-ratio: 16 / 9; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a2a2a, #000); color: #fff; text-align: center; }
.yt-modal-screen .yt-play { width: 72px; height: 50px; border-radius: 12px; background: var(--red); display: grid; place-items: center; margin: 0 auto 12px; }

@media (max-width: 1023px) {
  .mini-banners { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  .mini-banner { box-shadow: none; min-height: 0; padding: 16px 18px; }
  .quick-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-menu a:nth-child(3) { border-left: 0; }
  .quick-menu a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .home-boards { grid-template-columns: minmax(0, 1fr); }
  .result-band { grid-template-columns: minmax(0, 1fr); }
  .result-band > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 767px) {
  .quick-menu a { flex-direction: column; text-align: center; gap: 8px; padding: 18px 8px; }
  .quick-menu .qm-ico { width: 46px; height: 46px; }
  .quick-menu strong { font-size: 14px; }
  .quick-menu span { display: none; }
  .result-band > div { padding: 26px 22px; }
  .result-band .rb-big { font-size: 48px; }
  .result-band .rb-big.is-word { font-size: 34px; }
  .free-strip { padding: 16px; gap: 12px; flex-direction: column; align-items: stretch; }
  .free-strip .fs-list a { white-space: nowrap; }
  .mini-banner { padding: 12px 16px; }
  .mini-banner strong { font-size: var(--fs-md); }
}

/* =========================================================
 * F1 수정 (V1 검증 지적) — 사용자 사이트 전용, 관리자(.adm-body)에는 영향 없음
 * ========================================================= */
/* 줄바꿈: overflow-wrap:anywhere 는 최소 폭 계산에도 쓰여 좁은 칸에서 금액·단어가 글자 단위로 쪼개진다.
   사용자 화면은 break-word 로 바꿔 넘칠 때만 끊고, 칸 폭은 단어 길이를 지키게 한다. */
body:not(.adm-body) { overflow-wrap: break-word; text-wrap: pretty; }  /* pretty: 마지막 줄에 한 단어만 떨어지는 것을 줄임 */
.nowrap, .price-sale, .price-orig, a[href^="tel:"] { white-space: nowrap; }
body:not(.adm-body) .tbl th, body:not(.adm-body) .tbl td { word-break: keep-all; }
body:not(.adm-body) .tbl td.t-right { white-space: nowrap; }

/* 표 가로 스크롤 안내 — ui.js 가 표가 넘칠 때만 .tbl-hint 를 붙이고 .is-overflow 를 준다 */
.tbl-hint { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--slate-500); }
.tbl-hint[hidden] { display: none; }
.tbl-hint .ico { width: 14px; height: 14px; }
.tbl-wrap.is-overflow { background:
  linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left center / 24px 100% no-repeat local,
  linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right center / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(15,30,60,.16), rgba(15,30,60,0)) left center / 10px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(15,30,60,.16), rgba(15,30,60,0)) right center / 10px 100% no-repeat scroll; }
/* 비교·경쟁률 표: 모바일에서 첫 열 고정 */
@media (max-width: 767px) {
  .tbl-wrap.is-sticky-first { position: relative; }
  .tbl-wrap.is-sticky-first tbody th:first-child, .tbl-wrap.is-sticky-first tbody td:first-child,
  .tbl-wrap.is-sticky-first thead th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  .tbl-wrap.is-sticky-first tbody td:first-child { background: #fff; }
  .tbl-wrap.is-sticky-first thead th:first-child { background: #fafbfc; }
  .tbl-wrap.is-sticky-first tbody th:first-child { background: var(--bg); }
}

/* 나의 강의실·마이페이지 비로그인 안내 (chrome.js) */
.login-gate { display: none; }
body.is-gated .login-gate { display: block; }
body.is-gated main.page > :not(.login-gate) { display: none !important; }
.login-gate .wrap { padding-top: var(--s-16); padding-bottom: var(--s-16); }
.lg-box { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); background: #fff; }
.lg-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--bg); color: var(--navy); display: grid; place-items: center; margin: 0 auto 16px; }
.lg-box h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.6px; color: var(--navy); }
.lg-box > p { margin-top: 8px; color: var(--slate-600); font-size: 15px; }
.lg-actions { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.lg-actions .btn { min-width: 140px; }
.lg-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius); font-size: 14px; color: var(--slate-600); }
@media (max-width: 767px) {
  .login-gate .wrap { padding-top: var(--s-10); padding-bottom: var(--s-10); }
  .lg-box { padding: 30px 18px; }
  .lg-actions .btn { flex: 1; min-width: 0; }
}

/* 가로로 넘치는 탭·칩·메뉴: 더 있는 쪽 가장자리 흐림 (ui.js fitScrollers, 사용자 화면만) */
.is-more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.is-more-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); }
.is-more-l.is-more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

/* 게시판 모바일: 고정·분류 배지를 한 줄에 */
@media (max-width: 767px) {
  .board td.b-cat, .board td.b-num.is-pin { width: auto; margin-right: 6px; }
}
