/* 판매 홈페이지 공통 스타일 (scripts/make_site.py가 site/public/site.css로 복사)
   디자인 '스튜디오 화이트': 흰 바탕 · 넓은 여백 · 1px 선 · 베이지 패널 · 토프색 라벨, 구매 버튼·현재 가격·할인 표시만 오렌지.
   밝은 화면 하나로 고정(윈도우·휴대폰이 다크 모드여도 흰 바탕) */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --card: #ffffff;
  --surface: #f6f4f0;
  --panel: #efe9df;
  --ink: #15171a;
  --ink-2: #2a2d33;
  --sub: #5f6168;
  --line: #e6e1d8;
  --line-2: #d9d2c5;
  --taupe: #8b7355;
  --taupe-ink: #7a6244;
  --orange: #e4541e;
  --orange-h: #d44c1b;
  --orange-soft: #fbe4da;
  --red: #c0262d;
  --shadow: 0 1px 2px rgba(21, 23, 26, .05), 0 12px 32px -16px rgba(21, 23, 26, .18);
  --f-display: "Gothic A1", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-en: "DM Sans", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --r: 6px;
  --rb: 4px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
p { margin: 0; }
mark { background: none; color: inherit; padding: 0; }
.num, .price, .fi-price, .summary .total b, .done dd.big { font-family: var(--f-en); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* 라벨: 영문 대문자 토프(DM Sans) · 눈썹 문구: 짧은 선 + 토프 한글 */
.label { font-family: var(--f-en); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-ink); line-height: 1.4; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500; color: var(--taupe-ink); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--taupe); flex: none; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tight { padding-top: 0; }
.section + .section, .section.lined { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 46rem; }
.section-head p { color: var(--sub); max-width: 34em; }
/* 섹션 머리 2단: 왼쪽 라벨·제목, 오른쪽 설명 */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 40px; }
.sec-head .section-head { margin: 0; }
.sec-head > p { color: var(--sub); max-width: 34em; }
@media (max-width: 820px) { .sec-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; } .section-head { margin-bottom: 28px; } }

/* 버튼: 기본은 테두리, primary·marker는 오렌지(글자는 검정), added는 담았음(검정) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--rb); font-weight: 500; font-size: .95rem; font-family: var(--f-body); text-decoration: none; border: 1px solid var(--line-2); cursor: pointer; background: #fff; color: var(--ink); line-height: 1.2; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--ink); }
.btn.primary, .btn.marker { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 700; }
.btn.primary:hover, .btn.marker:hover { background: var(--orange-h); border-color: var(--orange-h); }
.btn.added { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn.big small { font-weight: 400; opacity: .8; margin-left: 2px; font-size: .82em; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.btn.kakao { background: #fee500; border-color: #fee500; color: #191919; font-weight: 700; }   /* 카카오톡 오픈채팅 입장 */
.btn.kakao:hover { background: #f5d800; border-color: #f5d800; }
.btn[disabled], .btn[aria-disabled="true"] { color: var(--sub); border-color: var(--line); background: var(--surface); cursor: not-allowed; }
.btn .ext { font-size: .8em; opacity: .8; }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.tlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.linkish { font: inherit; font-size: .85rem; color: var(--sub); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.help { color: var(--sub); font-size: .9rem; }
.help.err { color: var(--red); font-weight: 600; }

/* 미리보기 띠 · 할인 띠 */
.draft { background: var(--orange); color: var(--ink); font-size: .85rem; font-weight: 500; text-align: center; padding: 6px 16px; }
.salebar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; text-align: center; }
.salebar b { background: var(--orange); color: var(--ink); border-radius: 2px; padding: 1px 8px; font-size: .78rem; font-weight: 700; }
.salebar:hover { background: #f1ede6; }
.flashbar { background: var(--ink); color: #fff; border-bottom: 0; }
.flashbar:hover { background: var(--ink-2); }
.flashbar small { font-size: .75rem; font-weight: 500; opacity: .8; }

/* 머리글: 글자 워드마크 + 메뉴 + 오렌지 구매 버튼 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brandmark { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; min-height: 44px; }
.brandmark .name { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.brandmark .name b { font-weight: 800; color: inherit; }
.brandmark .en { font-family: var(--f-en); font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--taupe-ink); }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: .92rem; font-weight: 500; }
.nav a { text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav a.navbuy { background: var(--orange); color: var(--ink); font-weight: 700; padding: 0 16px; min-height: 40px; border-radius: var(--rb); }
.nav a.navbuy:hover { background: var(--orange-h); text-decoration: none; }
/* 주문 페이지: '구매하기' 자리에 담은 자료 수(누르면 주문 내역) */
.nav a.navcart { background: #fff; border: 1px solid var(--ink); gap: 8px; padding: 0 8px 0 14px; scroll-margin-top: 80px; }
.nav a.navcart:hover { background: var(--surface); }
.nav a.navcart b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--line-2); font-family: var(--f-en); font-size: .85rem; font-variant-numeric: tabular-nums; }
.nav a.navcart.has b { background: var(--orange); color: #fff; }
#orderSum { scroll-margin-top: 84px; }
.nav a.navfree { color: var(--orange-h); font-weight: 700; }   /* 윈터스쿨 · 무료 해설: 주황, 휴대폰에서도 보이게(학생 대부분이 휴대폰) */
.wt-opt { font-size: .55em; font-weight: 700; color: var(--sub); letter-spacing: 0; vertical-align: .2em; margin-left: 6px; white-space: nowrap; }
@media (max-width: 760px) { .nav { gap: 16px; } .nav .opt, .nav .menu:not(.navfree) { display: none; } .brandmark .en { display: none; } .top .wrap { min-height: 60px; gap: 12px; } }
@media (max-width: 400px) { .brandmark .name { white-space: nowrap; font-size: 1.2rem; } .nav { gap: 12px; } .nav a.navfree { font-size: .9rem; } .nav a.navbuy { padding: 0 12px; } }   /* 좁은 휴대폰: 윈터스쿨 · 무료 해설 · 구매하기가 한 줄에 들어가게 */

/* 첫 화면: 왼쪽 작은 제목 + 바로 아래 회차 선택, 오른쪽 베이지 패널 위 샘플 · 후기 */
.hero { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 48px; padding-left: max(20px, calc((100% - 1160px) / 2)); overflow-x: clip; }
.hero-text { display: flex; flex-direction: column; gap: 26px; padding: 44px 0 44px; min-width: 0; }
.hero-top { display: grid; gap: 12px; }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.15; }
.hero .lead { color: var(--sub); font-size: .94rem; line-height: 1.7; max-width: 34em; }
.pick { display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 16px; }
.pick-h .label b { font-family: var(--f-body); letter-spacing: .02em; color: var(--ink); margin-left: 4px; font-size: .86rem; text-transform: none; }
.pick .finder { gap: 18px; }
/* 할인 표시: 오렌지 띠(검정 글자) */
.sale-tag { display: inline-block; font-family: var(--f-body); font-style: normal; font-weight: 700; font-size: .72rem; color: var(--ink); background: var(--orange); border-radius: 2px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; white-space: nowrap; line-height: 1.5; }
.sel { position: relative; display: inline-flex; align-items: center; }
.sel select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 34px 0 14px; border: 1px solid var(--line-2); border-radius: var(--rb); background: #fff; font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer; max-width: 100%; }
.sel::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--sub); border-bottom: 1.5px solid var(--sub); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.hero-panel { position: relative; background: var(--panel); display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; padding: 44px 40px 28px; min-width: 0; overflow: hidden; }   /* 샘플은 위쪽에 붙인다(왼쪽 회차 선택이 길어져도 아래로 밀리지 않게) */
.panel-flip { display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; min-width: 0; }
/* 첫 화면 오른쪽 패널: 샘플(2) + 구매 후기(1) */
.hero-panel.has-rv { gap: 24px; padding: 44px max(28px, calc((100vw - 1160px) / 2 - 40px)) 30px 28px; }   /* 위 샘플(넓게) · 아래 후기 3개 한 줄 */
.has-rv .flip-row { grid-template-columns: minmax(0, 1fr); position: relative; }   /* 넘기기 단추를 쪽 위에 올려 쪽을 패널 폭만큼 */
.has-rv .flip-next { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 5; }
.has-rv .flip-next .tx { display: none; }
.has-rv .flip-book { height: clamp(400px, min(46vw, 100vh - 210px), 660px); }
.panel-rv { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rv-sum { font-size: .8rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.rv-sum i { font-style: normal; color: var(--orange); }
.rv-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rv-cards li { display: grid; }
.rv-cards a { display: grid; gap: 6px; padding: 14px 16px; background: #fff; border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(21, 23, 26, .06); transition: box-shadow .15s; }
.rv-cards a:hover { box-shadow: 0 6px 18px -6px rgba(21, 23, 26, .18); }
.rv-cards .st { color: var(--orange); font-size: .82rem; letter-spacing: 1px; line-height: 1; }
.rv-cards .st s { text-decoration: none; color: var(--line-2); }
.rv-cards p { margin: 0; font-size: .86rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rv-cards .who { font-size: .74rem; color: var(--sub); }
.rv-cards .who b { color: var(--ink); font-weight: 700; }
/* 겨울방학 교재 문턱 시리즈 홍보 칸(site.yaml cut): 오른쪽 패널의 샘플 · 후기 아래 검은 카드. 표지 그림(site/cut) 세 장을 겹쳐 놓고, 준비 중인 단계는 점선 자리 */
.panel-cut { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 22px 18px 26px; overflow: hidden; }
.cut-covers { display: flex; align-items: center; padding: 8px 4px 8px 0; }
.cut-covers img, .cut-covers .ghost { position: relative; width: 74px; height: auto; aspect-ratio: 595 / 842; border-radius: 2px; background: #fff; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .75); }
.cut-covers > :nth-child(1) { transform: rotate(-6deg); z-index: 3; }
.cut-covers > :nth-child(2) { margin-left: -16px; transform: translateY(-5px) rotate(2deg); z-index: 2; }
.cut-covers > :nth-child(3) { margin-left: -16px; transform: translateY(3px) rotate(9deg); z-index: 1; }
.cut-covers .ghost { background: #24272c; box-shadow: none; border: 1px dashed rgba(255, 255, 255, .34); display: grid; align-content: end; justify-items: end; padding: 0 9px 10px 0; }
.cut-covers .ghost b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 2.2rem; line-height: 1; color: rgba(255, 255, 255, .3); }
.cut-covers .ghost em { font-style: normal; font-size: .56rem; letter-spacing: .04em; color: rgba(255, 255, 255, .55); margin-top: 4px; white-space: nowrap; }
.cut-eye { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 500; letter-spacing: .03em; color: #cfc6b8; }
.cut-eye .new { font-family: var(--f-en); font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--orange); border-radius: 3px; padding: 1px 6px; }
.cut-h { font-family: var(--f-display); font-weight: 800; font-size: 1.34rem; line-height: 1.28; letter-spacing: -.03em; margin-top: 7px; }
.cut-sub { font-size: .8rem; color: #b5afa4; margin-top: 5px; line-height: 1.5; }
.cut-go { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cut-go a, .cut-go .soon { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; line-height: 1; padding: 8px 11px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.cut-go a { background: #fff; color: var(--ink); font-weight: 500; }
.cut-go a:hover { background: var(--orange-soft); }
.cut-go b { font-family: var(--f-en); font-weight: 700; letter-spacing: .02em; }
.cut-go .soon { color: #96918a; border: 1px dashed rgba(255, 255, 255, .28); padding: 7px 10px; }
.cut-go i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #6b6f76; }
/* 문턱 세 권 묶음 단추(주문 서버가 아는 판일 때만 보인다) */
.cut-go a.trio { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); padding: 7px 11px; }
.cut-go a.trio:hover { background: rgba(255, 255, 255, .1); }
.cut-go a.trio small { font-size: .68rem; color: var(--orange-soft); font-weight: 500; }
@media (max-width: 760px) {
  .panel-cut { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; gap: 10px; }
  .cut-covers { justify-content: center; padding: 6px 0 4px; }
  .cut-covers img, .cut-covers .ghost { width: 78px; }
  .cut-h { font-size: 1.28rem; }
  .cut-go a, .cut-go .soon { flex: 1 1 auto; justify-content: center; }
}
/* 회차 선택 '방학 교재': 책 아이콘 자리에 실제 표지 */
.fi-bk .cut-cv { width: 50px; height: 68px; object-fit: cover; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 6px 12px -6px rgba(21, 23, 26, .35); }
.f-cut-note { font-size: .8rem; color: var(--sub); margin: 10px 0 0; }
/* 방학 교재 칸 아래 '세 권 묶음' 줄 · 교재 상세 페이지의 묶음 안내 */
.f-trio { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px; padding: 11px 14px; border: 1px dashed var(--line-2); border-radius: var(--r); background: #fff; }
.f-trio .ft-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f-trio b { font-size: .9rem; }
.f-trio small { font-size: .76rem; color: var(--sub); }
.trio-line { margin: 10px 0 0; font-size: .84rem; color: var(--sub); }
.trio-line b { color: var(--ink); }
.trio-line a { white-space: nowrap; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.panel-meta { font-family: var(--f-en); font-size: .75rem; font-weight: 500; letter-spacing: .06em; color: var(--sub); }
.panel-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: .78rem; color: var(--sub); }
.panel-cap .flip-no { font-variant-numeric: tabular-nums; }
.panel-cap .flip-no b { color: var(--ink); }
@media (max-width: 900px) {
  /* 휴대폰·태블릿: 샘플 아래 후기 3개를 옆으로 넘겨 보기 */
  .hero-panel.has-rv { gap: 18px; padding: 22px max(20px, env(safe-area-inset-left, 0px)) 22px; }
  .rv-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .rv-cards::-webkit-scrollbar { display: none; }
  .rv-cards li { scroll-snap-align: start; display: grid; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 0; }
  .hero-text { padding: 28px max(20px, env(safe-area-inset-left, 0px)) 32px; gap: 20px; }
  .hero-panel { padding: 22px max(20px, env(safe-area-inset-left, 0px)) 22px; }
}
/* 첫 화면 넘겨 보기 샘플(베이지 패널 안) */
.flip { margin: 0; display: grid; gap: 12px; }
.flip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.flip-book { position: relative; display: grid; place-items: center; grid-template-rows: 100%; height: clamp(360px, min(44vw, 100vh - 180px), 620px); width: 100%; min-width: 0; transition: height .3s ease;
  padding: 0; border: 0; background: none; cursor: pointer; perspective: 1800px; font: inherit; color: inherit; }
.flip-book:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 6px; }
.flip-page { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(21, 23, 26, .06), 0 30px 60px -24px rgba(21, 23, 26, .22); visibility: hidden; transform-origin: left center; }
.flip-page.on { visibility: visible; z-index: 2; }
.flip-page.under { visibility: visible; z-index: 1; }
.flip-page.turn { z-index: 3; animation: flip-turn .52s cubic-bezier(.45, .05, .55, .95) forwards; }
@keyframes flip-turn {
  0% { transform: rotateY(0); }
  60% { opacity: 1; }
  100% { transform: rotateY(-88deg); opacity: .15; box-shadow: -30px 14px 40px rgba(21, 23, 26, .2); }
}
.flip-next { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); }
.flip-next .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform .15s ease, background-color .15s; }
.flip-next .ic svg { margin-left: 3px; }
.flip-next .tx { font-size: .72rem; font-weight: 500; line-height: 1.3; text-align: center; color: var(--sub); }
.flip-next:hover .ic { transform: translateX(3px); background: var(--orange); color: var(--ink); }
.flip-next:active .ic { transform: scale(.94); }
.flip-next:focus-visible { outline: none; }
.flip-next:focus-visible .ic { outline: 2px solid var(--orange); outline-offset: 3px; }
.flip-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.flip-tabs button { font: inherit; font-size: .76rem; font-weight: 500; padding: 0 10px; min-height: 30px; border-radius: 2px; border: 1px solid transparent; background: transparent; color: var(--sub); cursor: pointer; }
.flip-tabs button:hover { border-color: var(--line-2); color: var(--ink); }
.flip-tabs button[aria-pressed="true"] { background: #fff; border-color: var(--line-2); color: var(--ink); font-weight: 700; }
.flip-more { font-size: .86rem; font-weight: 500; color: var(--ink); justify-self: start; }
@media (max-width: 760px) {
  .flip-row { grid-template-columns: minmax(0, 1fr); position: relative; }
  .flip-next { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); z-index: 5; }
  .flip-next .ic { width: 44px; height: 44px; }
  .flip-next .tx { display: none; }
  .flip-book { height: 440px; }   /* 스크립트가 쪽 모양에 맞춰 바꾼다 */
}
/* 넘겨 보기가 없을 때(예전 방식): 분석지 한 장 */
.stage { position: relative; width: 100%; }
.stage .sheet { border-radius: 3px; box-shadow: var(--shadow); background: #fff; }
.stage figcaption { margin-top: 10px; font-size: .78rem; color: var(--sub); }

/* 신뢰 띠 */
.trust { border-bottom: 1px solid var(--line); }
.trust-in { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.trust-item { display: flex; align-items: center; gap: 10px; padding: 18px 24px; font-size: .88rem; font-weight: 500; line-height: 1.5; border-left: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; border-left: 0; }
.trust-item svg { flex: none; color: var(--taupe); }
@media (max-width: 1000px) { .trust-in { grid-template-columns: repeat(3, minmax(0, 1fr)); } .trust-item { padding: 14px 18px; } .trust-item:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .trust-in { grid-template-columns: minmax(0, 1fr); } .trust-item { padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); } .trust-item:first-child { border-top: 0; } }

/* 구성: 면 색 카드 3 + 2 */
.kit { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.kit article { grid-column: span 2; background: var(--surface); border-radius: var(--r); padding: 22px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.kit article:nth-child(n+4) { grid-column: span 3; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 26px; align-items: center; }
.kit .thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #fff; }
.kit article:nth-child(n+4) .thumb { aspect-ratio: 3 / 4; }
.kit .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.kit .body { display: grid; gap: 10px; min-width: 0; }
.kit h3 { font-size: 1.3rem; }
.kit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--sub); font-size: .9rem; line-height: 1.6; }
.kit li { display: flex; gap: 10px; }
.kit li::before { content: ""; flex: none; width: 12px; height: 1px; background: var(--taupe); margin-top: 11px; }
.kit .tagline { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-en); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-ink); }
.kit .tagline small { font-family: var(--f-body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--sub); font-size: .78rem; }
@media (max-width: 1000px) { .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kit article, .kit article:nth-child(n+4) { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; } .kit article:nth-child(n+4) .thumb { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .kit { grid-template-columns: minmax(0, 1fr); gap: 14px; } .kit article { padding: 18px; } .kit .thumb, .kit article:nth-child(n+4) .thumb { aspect-ratio: 16 / 9; } }   /* 휴대폰: 그림을 낮게 잘라 페이지를 짧게 */

/* 자료 목록 · 그 밖의 자료 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--r); overflow: hidden; position: relative; }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.card .grp { font-size: .75rem; font-weight: 700; color: var(--taupe-ink); letter-spacing: .04em; }
.card h3 { font-size: 1.15rem; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .sub { font-size: .86rem; color: var(--sub); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .76rem; }
.meta span { border: 1px solid var(--line); border-radius: 2px; padding: 1px 8px; color: var(--sub); font-variant-numeric: tabular-nums; }
.meta span.inc { border-color: transparent; background: var(--surface); color: var(--ink); }
.buy { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.price small { display: block; font-family: var(--f-body); font-size: .78rem; font-weight: 400; color: var(--sub); margin-top: 6px; letter-spacing: 0; }
.more { font-size: .86rem; font-weight: 500; white-space: nowrap; }
.custom { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 26px 28px; }
.custom h3 { font-size: 1.3rem; }
.custom p { color: var(--sub); margin-top: 6px; max-width: 44rem; }
@media (max-width: 680px) { .custom { grid-template-columns: minmax(0, 1fr); } }

/* 직전보강 소개 띠(회차 칸 아래) */
.jikbo { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 36px 44px; }
.jikbo-body { display: grid; gap: 16px; min-width: 0; }
.jikbo h3 { font-size: 1.4rem; }
.jikbo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--sub); }
.jikbo-list li { display: flex; align-items: center; gap: 8px; }
.jikbo-list li::before { content: ""; width: 10px; height: 1px; background: var(--taupe); }
.jikbo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: .9rem; font-weight: 500; }
.jikbo-price .price { font-size: 1.7rem; color: var(--orange); }
.jikbo-price s { color: var(--sub); font-weight: 400; }
.jikbo-act { display: flex; flex-wrap: wrap; gap: 8px; }
.jikbo-art { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #fff; box-shadow: var(--shadow); }
.jikbo-art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 820px) { .jikbo { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 20px; margin-top: 28px; } }

/* 구매 방법 · 빠른 주문 카드 · 문의 */
.howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 56px; align-items: start; }
@media (max-width: 960px) { .howto { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); counter-increment: s; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--f-en); font-weight: 300; font-size: 3.2rem; line-height: 1; color: var(--taupe); letter-spacing: -.02em; }
.steps b { display: block; font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.4; }
.steps p { color: var(--sub); font-size: .9rem; margin-top: 6px; }
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; } .steps li::before { font-size: 2.4rem; } }
.ocard { background: var(--surface); border-radius: var(--r); padding: 30px; display: grid; gap: 18px; }
.ocard-head { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ocard-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.ocard-item .price { font-size: 1.15rem; white-space: nowrap; }
.ocard .sel, .ocard .sel select { width: 100%; }
.ocard .sel select { background: #fff; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.field label small { font-size: .78rem; color: var(--sub); font-weight: 400; }
.field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--rb); background: #fff; font: inherit; width: 100%; }
.field input::placeholder { color: #9a9b9f; }
.checks { display: grid; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.ocard .btn { width: 100%; }
.ocard-note { font-size: .78rem; color: var(--sub); text-align: center; }
.contact { margin: 36px 0 0; display: grid; border-top: 1px solid var(--ink); }
.contact h3 { font-size: 1.1rem; padding: 14px 0 6px; }
.contact > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.contact dt { color: var(--sub); font-size: .86rem; }
.contact dd { margin: 0; min-width: 0; }
.contact .val { font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.contact .none { color: var(--sub); }
.copy { border: 1px solid var(--line-2); background: transparent; color: var(--ink); border-radius: var(--rb); padding: 4px 10px; font: inherit; font-size: .78rem; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

/* FAQ: 번호 라벨 + 질문, 펼치면 답 */
.faq { display: grid; border-top: 1px solid var(--ink); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1rem; list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq, decimal-leading-zero); counter-increment: faq; font-family: var(--f-en); font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--taupe-ink); flex: none; width: 2.4em; }
.faq { counter-reset: faq; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--sub); font-weight: 300; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 18px calc(2.4em + 14px); color: var(--sub); line-height: 1.75; }

/* 새 자료 알림 신청 */
.alert-band { background: var(--surface); border-block: 1px solid var(--line); }
.alert { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 28px 64px; align-items: center; }
.alert-copy p { margin: 12px 0 0; color: var(--sub); max-width: 34em; }
.alert-form { display: grid; gap: 10px; background: #fff; border-radius: var(--r); padding: 22px; min-width: 0; }
.alert-form > * { min-width: 0; }
.alert-row { display: flex; gap: 8px; }
.alert-row input { flex: 1; min-width: 0; font: inherit; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--rb); }
.alert-row .btn { white-space: nowrap; }
.alert-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .88rem; }
.alert-topics span { color: var(--sub); font-size: .8rem; margin-right: 2px; }
.alert-topics label { display: inline-flex; align-items: center; gap: 5px; }
.alert-topics input, .alert-agree input { accent-color: var(--ink); width: 17px; height: 17px; }
.alert-agree { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; }
.alert-agree input { flex: none; margin-top: 3px; }
.alert-more { font-size: .78rem; color: var(--sub); }
.alert-more summary { cursor: pointer; }
.alert-more p { margin: 6px 0 0; }
.alert-status { min-height: 1.2em; margin: 0; font-size: .86rem; font-weight: 600; }
.alert-status.ok { color: var(--taupe-ink); }
.alert-status.err { color: var(--red); }
@media (max-width: 820px) { .alert { grid-template-columns: minmax(0, 1fr); } }

/* 상세 페이지 */
.crumbs { font-size: .82rem; color: var(--sub); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prod { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: 24px clamp(40px, 6vw, 72px); }
@media (max-width: 880px) { .prod { grid-template-columns: minmax(0, 1fr); } }
.prod .cover { display: block; background: var(--panel); padding: clamp(16px, 3vw, 36px); border-radius: var(--r); }
.prod .cover img { border-radius: 3px; box-shadow: var(--shadow); background: #fff; }
.prod .info { display: grid; gap: 16px; align-content: start; }
.prod h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.prod h1 .scope { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 10px; border-radius: 2px; font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: 0; color: var(--taupe-ink); background: var(--surface); border: 1px solid var(--line); }
.prod .sub { color: var(--sub); font-size: 1rem; }
.prod .desc { font-size: .95rem; color: var(--sub); }
.prod .price { font-size: 2rem; }
.prod .price .sale-on, .prod .price .flash-only { display: inline; }
.buyrow { display: flex; flex-wrap: wrap; gap: 10px; }
.buyrow .btn { flex: 1 1 220px; }
.fine { font-size: .8rem; color: var(--sub); display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
/* 자료 고르기(세트 · 분석지만 · 변형문제+서술형) */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kinds button { position: relative; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; padding: 12px 14px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.kinds button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; background: var(--surface); }
.kinds b { font-size: .95rem; }
.kinds span { font-size: .72rem; color: var(--sub); line-height: 1.4; }
.kinds em span { font-size: inherit; color: inherit; }
.kinds em { font-style: normal; font-family: var(--f-en); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kinds .rec { position: absolute; top: -9px; right: 8px; font-style: normal; font-size: .66rem; font-weight: 700; color: var(--ink); background: var(--orange); border-radius: 2px; padding: 1px 7px; }
.pane { display: grid; gap: 14px; }
.kind-cmp { margin: 0; font-size: .85rem; color: var(--sub); }
@media (max-width: 520px) {
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .kinds button { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .kinds b, .kinds span { grid-column: 1; }
  .kinds em { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}
/* 지문별 단품(상세 페이지 · 회차 찾기) */
.single { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 12px; background: var(--surface); }
.single-head, .fs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.single-head b, .fs-head b { font-size: .95rem; }
.single-head span, .fs-head span { font-size: .84rem; color: var(--sub); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.chips button { font: inherit; font-size: .86rem; font-weight: 500; font-variant-numeric: tabular-nums; padding: 6px 4px; min-height: 40px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button[disabled] { color: #a2a3a7; background: transparent; border-style: dashed; cursor: not-allowed; }
.single-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.single-foot .btn { flex: 1 1 220px; }
.single-hint, .f-single .f-note { margin: 0; font-size: .84rem; font-weight: 700; color: var(--taupe-ink); }
.f-single { display: grid; gap: 12px; }
/* 교재 소개(상품의 story, templates/site/story.html.j2): 목표 → 문장이 달라지는 예 → 25일 순서 → 끝내면 준비되는 것 → 대상 → 24 POINT 표 → 구매 띠. --acc는 그 책 표지 숫자 색 */
.story { --acc: var(--ink); }
.st-goal { display: grid; gap: 16px; max-width: 50rem; }
.st-goal h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.8rem); line-height: 1.22; }
.story .section-head { max-width: 52rem; }
.story .section-head h2, .st-goal h2 { text-wrap: wrap; word-break: keep-all; }
.story .section-head p { max-width: 40em; }
.st-goal p { color: var(--ink-2); font-size: 1.02rem; max-width: 41em; }
.st-bridge { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 22px; }
.st-sub { display: grid; gap: 8px; max-width: 46rem; }
.st-sub h3 { font-family: var(--f-display); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); letter-spacing: -.03em; line-height: 1.3; margin: 0; }
.st-sub p { color: var(--sub); font-size: .92rem; }
.st-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.st-rows li { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 16px; display: grid; gap: 12px; background: #fff; }
.st-day { font-family: var(--f-en); font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--taupe-ink); }
.st-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.55fr); gap: 14px; align-items: stretch; }
.st-pair p { display: grid; gap: 6px; align-content: start; padding: 12px 16px 14px; border-radius: 4px; }
.st-pair i { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--sub); }
.st-pair span[lang] { font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; line-height: 1.55; color: var(--ink); overflow-wrap: break-word; word-break: normal; }
.st-pair span[lang] b { font-weight: 700; color: var(--acc); }
.st-a { background: var(--surface); }
.st-b { background: var(--panel); }
.st-b i { color: var(--acc); }
.st-arrow { align-self: center; color: var(--taupe); font-size: 1.2rem; }
.st-say { font-size: .9rem; color: var(--sub); }
.st-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.st-plan li { padding: 16px 14px 20px; display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--line); }
.st-plan li:last-child { border-right: 0; }
.st-plan li.edge { background: var(--surface); }
.st-plan .when { font-family: var(--f-en); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--taupe-ink); }
.st-plan b { font-family: var(--f-display); font-size: 1rem; letter-spacing: -.02em; line-height: 1.3; }
.st-plan .desc { font-size: .82rem; color: var(--sub); line-height: 1.5; }
.st-gain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 2px solid var(--ink); counter-reset: g; }
.st-gain li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; counter-increment: g; }
.st-gain li::before { content: counter(g, decimal-leading-zero); font-family: var(--f-en); font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--acc); }
.st-gain b { font-family: var(--f-display); font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.35; }
.st-gain span { color: var(--sub); font-size: .88rem; }
.st-who { margin-top: 36px; background: var(--surface); border-radius: var(--r); padding: 22px 26px 24px; display: grid; gap: 12px; }
.st-who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-who li { position: relative; padding-left: 20px; font-size: .98rem; }
.st-who li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 2px; background: var(--acc); }
.st-points { margin-top: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.st-points summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; cursor: pointer; list-style: none; }
.st-points summary::-webkit-details-marker { display: none; }
.st-points summary b { font-family: var(--f-display); font-size: 1.02rem; letter-spacing: -.02em; }
.st-points summary span { font-size: .84rem; color: var(--sub); }
.st-points summary span::after { content: " ＋"; }
.st-points[open] summary span::after { content: " －"; }
.st-table { overflow-x: auto; border-top: 1px solid var(--line); }
.st-table table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.st-table th, .st-table td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.st-table thead th { font-size: .76rem; font-weight: 700; color: var(--sub); background: var(--surface); }
.st-table .grp th { font-family: var(--f-en); font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--taupe-ink); background: #fff; padding-top: 16px; }
.st-table tbody th[scope=row] { font-weight: 700; white-space: nowrap; }
.st-table .no { font-family: var(--f-en); font-weight: 700; color: var(--acc); width: 3.2rem; font-variant-numeric: tabular-nums; }
.st-table .was { color: var(--sub); }
.st-table tbody tr:last-child td, .st-table tbody tr:last-child th { border-bottom-color: var(--line-2); }
.st-cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 20px 26px; background: var(--ink); color: #fff; border-radius: var(--r); }
.st-cta p { display: grid; gap: 2px; }
.st-cta p b { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: -.02em; }
.st-cta p span { font-size: .9rem; color: #cfc6b8; }
.st-cta .acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .st-plan { grid-template-columns: minmax(0, 1fr); }
  .st-plan li { grid-template-columns: 5.8rem minmax(0, 1fr); column-gap: 12px; padding: 14px 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .st-plan li:last-child { border-bottom: 0; }
  .st-plan .when { grid-row: span 2; padding-top: 3px; }
  .st-gain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st-pair { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .st-arrow { justify-self: center; transform: rotate(90deg); line-height: 1; }
  .st-rows li { padding: 16px 14px 14px; }
  .st-gain { grid-template-columns: minmax(0, 1fr); }
  .st-who { padding: 20px 18px 22px; }
  .st-cta { padding: 18px 18px 20px; }
  .st-cta .acts { width: 100%; }
  .st-cta .acts .btn { flex: 1 1 0; }
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery figure.land { grid-column: 1 / -1; }
.gallery a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.gallery figcaption { font-size: .84rem; color: var(--sub); }
.toc { width: 100%; border-collapse: collapse; font-size: .95rem; }
.toc th, .toc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.toc th { font-size: .78rem; color: var(--sub); font-weight: 700; }
.toc td:first-child { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; width: 1%; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.parts li { background: var(--surface); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 4px; }
.parts b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -.02em; }
.parts span { color: var(--sub); font-size: .88rem; }
.parts.pics { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .parts.pics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .parts.pics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .parts.pics { grid-template-columns: minmax(0, 1fr); } }
.parts.pics li { padding: 0 0 18px; overflow: hidden; align-content: start; gap: 6px; }
.parts.pics .thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; margin-bottom: 8px; }
.parts.pics .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.parts.pics b, .parts.pics span { padding: 0 18px; }

/* 상세 페이지: 수록 지문(문항 번호 · 유형) · 다른 회차 */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 0 20px; border-top: 1px solid var(--ink); }
.qlist li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.qlist b { font-family: var(--f-en); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3.4em; flex: none; white-space: nowrap; }
.qlist span { color: var(--sub); }
.morelist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.morelist a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; min-height: 44px; }
.morelist a:hover { border-color: var(--ink); }
.morelist b { font-weight: 500; font-size: .95rem; }
.morelist span { font-size: .8rem; color: var(--sub); }
.morelist a.hub { background: var(--surface); }
/* 모음 페이지(월별 · 학년별 · 교재별) */
.hub-wrap { padding-bottom: clamp(56px, 8vw, 96px); }
.hub-head { display: grid; gap: 12px; max-width: 46rem; padding-block: 24px 8px; }
.hub-head h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.hub-head p { margin: 0; color: var(--sub); }
.hub-sec { margin-top: clamp(32px, 5vw, 48px); }
.hub-sec .f-title { margin-bottom: 12px; }
.hub-sec .f-title h2 { font-size: 1.45rem; }
@media (max-width: 640px) {   /* 모음 페이지는 자료 이름이 길어서 한 줄에 하나씩: 이름 / 가격 · 버튼 */
  .hub-sec .f-title h2 { font-size: 1.2rem; }
  .hub-sec .f-list { grid-template-columns: minmax(0, 1fr); }
  .hub-sec .f-item { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 12px; }
  .hub-sec .fi-name { grid-column: 1 / -1; }
  .hub-sec .fi-name b { white-space: normal; }
  .hub-sec .fi-acts { margin-top: 0; }
  .hub-sec .fi-acts .btn { flex: none; min-width: 64px; padding: 0 12px; }
}

/* 샘플 준비 중 자리 */
.ph { width: 100%; height: 100%; min-height: 160px; display: grid; place-content: center; gap: 6px; text-align: center; padding: 20px; background: var(--surface); color: var(--ink); border-radius: 3px; }
.ph b { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; text-wrap: balance; }
.ph span { font-size: .8rem; color: var(--sub); }
.ph.big { aspect-ratio: 4 / 3; }

/* 꼬리말 */
.foot { border-top: 1px solid var(--line); padding-block: 36px 40px; font-size: .82rem; color: var(--sub); }
.foot .wrap { display: grid; gap: 12px; }
.foot .logo { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.03em; }
.foot .biz { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot .links a { color: var(--ink); text-underline-offset: 3px; }
.foot .legal { opacity: .85; }
.foot .hubs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.foot .hubs span { font-weight: 700; color: var(--sub); }
.foot a { text-underline-offset: 3px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; }

/* 주문하기 */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .order-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.order-main { display: grid; gap: 14px; min-width: 0; }
.step { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; margin-top: 22px; }
.step span { font-family: var(--f-en); font-weight: 300; font-size: 1.9rem; color: var(--taupe); line-height: 1; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.fields label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.fields label small { font-weight: 400; color: var(--sub); }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields textarea, .fields select { font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--rb); padding: 10px 12px; width: 100%; min-width: 0; min-height: 46px; }
.fields input:focus, .fields textarea:focus, .fields select:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.fields textarea { min-height: 80px; resize: vertical; }
.receipt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agrees { display: grid; gap: 10px; background: var(--surface); border-radius: var(--r); padding: 16px 18px; }
.agrees label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.agrees input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ink); flex: none; }
.fields fieldset.src { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.fields fieldset.src legend { padding: 0; font-size: .88rem; font-weight: 500; margin-bottom: 4px; }
.src-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.src-opts label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: .95rem; }
.src-opts input[type=radio] { accent-color: var(--ink); width: 17px; height: 17px; margin: 0; }
.src-opts #f-src-etc { flex: 1 1 180px; min-width: 0; width: auto; }
.src-opts #f-src-etc:disabled { background: var(--surface); }
.order-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.summary { background: var(--surface); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.summary h3 { font-size: 1.1rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.summary li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.summary li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary li.none { color: var(--sub); border: 0; }
.summary li.disc { color: var(--red); }
.summary li.disc b { color: var(--red); }
.summary li b s.was { font-size: .82em; margin-right: 4px; }
.sum-hint { margin: -4px 0 0; font-size: .82rem; color: var(--taupe-ink); font-weight: 700; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; }
.summary .total b { font-size: 1.7rem; font-weight: 700; color: var(--orange); }
.summary .btn { width: 100%; }
.summary .btn[disabled] { opacity: .5; cursor: not-allowed; }
.status { font-size: .9rem; min-height: 1.4em; color: var(--taupe-ink); }
.status.err { color: var(--red); }
.promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.promo-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.promo-card b { font-size: 1.02rem; line-height: 1.35; }
.promo-card p { margin: 0; font-size: .88rem; color: var(--sub); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.promo-card s { color: var(--sub); }
.promo-card strong { font-family: var(--f-en); font-size: 1.1rem; color: var(--ink); }
.promo-card em { font-style: normal; font-weight: 700; font-size: .76rem; color: var(--ink); background: var(--orange); border-radius: 2px; padding: 1px 7px; }
.promo-tag { justify-self: start; font-family: var(--f-en); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe-ink); }
.promo-note { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--sub); }
.promo-card.hot { grid-column: 1 / -1; background: var(--panel); }
.promo-card.hot p { gap: 4px 18px; }
.promo-card.hot p span { display: inline-flex; align-items: baseline; gap: 6px; }
.promo-card p small { flex-basis: 100%; font-size: .78rem; color: var(--sub); }
@media (max-width: 640px) { .promo { grid-template-columns: minmax(0, 1fr); } }
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.ex-item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: var(--rb); text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); font-size: .88rem; cursor: pointer; }
.ex-item .k { font-weight: 500; }
.ex-item .st { margin-left: auto; font-size: .8rem; white-space: nowrap; color: var(--sub); }
.ex-item input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }
.ex-item.on { border-color: var(--ink); background: var(--surface); }
.ex-item.off { cursor: not-allowed; color: var(--sub); border-style: dashed; }
.done { max-width: 640px; background: var(--surface); border-radius: var(--r); padding: 28px; display: grid; gap: 16px; }
.done h3 { font-size: 1.4rem; }
.done dl { margin: 0; display: grid; gap: 8px; }
.done dl div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.done dt { color: var(--sub); font-size: .9rem; }
.done dd { margin: 0; font-weight: 700; }
.done dd.big { font-size: 1.7rem; color: var(--orange); }
.done .val { user-select: all; }
.cartbar { display: none; }
@media (max-width: 960px) {
  .cartbar:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; bottom: 0; z-index: 15; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(21, 23, 26, .08); }
  .cartbar small { display: block; color: var(--sub); font-size: .78rem; }
  .cartbar b { font-family: var(--f-en); font-size: 1.3rem; color: var(--orange); }
}

/* 개인정보처리방침 등 문서 */
.doc { max-width: 820px; display: grid; gap: 12px; }
.doc h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.doc h2 { font-size: 1.2rem; margin-top: 16px; }
.doc ul { margin: 0; padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }

/* 구매 후기 */
.rv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.rv-score { display: flex; align-items: baseline; gap: 10px; }
.rv-score b { font-family: var(--f-en); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.rv-score small { color: var(--sub); font-size: .9rem; }
.rv-stars { color: var(--orange); letter-spacing: 1px; }
.rv-score .rv-stars { font-size: 1.25rem; }
.rv-form { background: var(--surface); border-radius: var(--r); padding: 22px; margin-bottom: 22px; display: grid; gap: 14px; }
.rv-rate { display: flex; align-items: center; gap: 2px; }
.rv-rate label { cursor: pointer; font-size: 2rem; line-height: 1; color: var(--line-2); }
.rv-rate label.on { color: var(--orange); }
.rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate input:focus-visible + span { outline: 2px solid var(--orange); border-radius: 4px; }
.rv-rate small { margin-left: 10px; color: var(--sub); font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-send { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rv-list { display: grid; gap: 12px; }
.rv { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: grid; gap: 8px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .92rem; }
.rv-head time { margin-left: auto; color: var(--sub); font-size: .85rem; }
.rv-buy { font-size: .72rem; font-weight: 700; color: var(--taupe-ink); background: var(--surface); border-radius: 2px; padding: 2px 8px; }
.rv-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-reply { background: var(--surface); border-radius: var(--rb); padding: 10px 14px; font-size: .92rem; }
.rv-reply b { color: var(--taupe-ink); font-size: .85rem; }
.rv-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-empty { color: var(--sub); text-align: center; padding: 28px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); margin: 0; }
.rv-more { margin-top: 14px; }
@media (max-width: 520px) { .rv-form .fields { grid-template-columns: minmax(0, 1fr); } }

/* 회차 찾기(홈·주문 페이지): 학년·연도·월(또는 교재·챕터)을 고르면 그 회차 자료가 아래에 나온다 */
.finder { display: grid; gap: 24px; }
.f-pick { display: grid; gap: 12px; }
.f-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 10px; }
.f-row > span, .f-row > label { font-size: .8rem; font-weight: 500; color: var(--sub); }
.f-in { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 14px; font: inherit; font-size: .92rem; color: var(--ink); background: #fff; }
.f-in::placeholder { color: #9a9ba0; }
.f-in:focus { outline: none; border-color: var(--ink); }
.seg .sm { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-weight: 500; font-size: .9rem; padding: 0 14px; min-height: 40px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-variant-numeric: tabular-nums; }
.seg button:hover { border-color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg button .n { font-family: var(--f-en); font-size: .7rem; font-weight: 700; border-radius: 2px; padding: 0 5px; background: var(--surface); color: var(--taupe-ink); line-height: 1.5; }
.seg button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .18); color: #fff; }
.seg button .d { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.seg button[aria-pressed="true"] .d { background: var(--orange); }
.seg button.none { color: #a2a3a7; }
.seg button.none[aria-pressed="true"] { color: #fff; background: #7a7c82; border-color: #7a7c82; }
/* 붙은 칸: 학년(작게) · 종류(한 줄 꽉 차게, 조금 더 둥글게) */
.seg.joined { display: inline-flex; flex-wrap: nowrap; gap: 0; width: fit-content; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg.joined button { border: 0; border-radius: 0; padding: 0 18px; }
.seg.joined button + button { border-left: 1px solid var(--line-2); }
.f-type .seg.joined { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: auto; border-color: var(--ink); border-radius: 8px; }
.f-type .seg.joined button { min-height: 44px; padding: 0 6px; font-size: .86rem; white-space: nowrap; }
.f-type .seg.joined button + button { border-left-color: var(--ink); }
.f-type .seg.joined button[aria-pressed="true"] { font-weight: 700; }
.seg button .new { font-family: var(--f-en); font-size: .62rem; font-weight: 700; color: var(--orange); letter-spacing: .02em; }
.f-out { display: grid; gap: 18px; }
.f-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.f-title h3 { font-size: 1.45rem; }
.finder .f-title { gap: 4px 10px; }
.finder .f-title h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.f-more { margin-left: auto; font-size: .84rem; font-weight: 500; color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.f-title .scope { font-size: .82rem; font-weight: 500; color: var(--sub); }
.f-empty { margin: 0; color: var(--sub); font-size: .9rem; }
/* 회차 자료 목록: 한 줄에 자료 하나(이름 · 구성 · 가격 · 버튼). 지문별 칸은 누른 줄 바로 아래에 열린다 */
.f-list { display: grid; border-top: 1px solid var(--ink); }
.f-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.f-item.open { background: linear-gradient(90deg, var(--surface), transparent 60%); }
.f-item.no .fi-name b, .f-item.no .fi-price { color: #a2a3a7; }
.fi-name { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.fi-name b { font-family: var(--f-display); font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
.fi-sample { font-size: .76rem; font-weight: 500; color: var(--sub); text-underline-offset: 3px; }
.fi-inc { flex-basis: 100%; font-size: .82rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-price { text-align: right; font-size: 1.3rem; font-weight: 700; white-space: nowrap; line-height: 1.2; color: var(--orange); }
.fi-price .was { font-size: .72rem; font-weight: 500; color: var(--sub); }
.fi-price .sale-tag { display: inline-block; margin: 0 0 0 6px; font-size: .66rem; vertical-align: 2px; }
.fi-price .flash-timer { display: none; }
.fi-price small { display: block; font-family: var(--f-body); font-size: .74rem; font-weight: 500; color: var(--sub); letter-spacing: 0; }
.fi-acts { display: flex; gap: 8px; justify-content: flex-end; }
.fi-acts .btn { min-width: 84px; }
.fi-acts .btn.single-btn.added, .fi-acts .btn.added { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-list .f-single { border-bottom: 1px solid var(--line); background: var(--surface); padding: 14px 16px 16px; scroll-margin-top: 80px; }
/* 회차 선택 안의 자료 줄: [책] [이름 · 구성] [가격 · 지문별] [버튼] */
.finder .f-item { grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 4px 16px; padding: 12px 0 15px; }
.finder .f-item.no .bk { filter: grayscale(1); opacity: .5; }
.fi-bk { display: block; width: 52px; height: 68px; }
.finder .fi-name b { font-size: 1rem; }
.finder .fi-inc { font-size: .78rem; }
.finder .fi-price { font-family: var(--f-en); font-size: 1.05rem; color: var(--ink); line-height: 1.25; }
.finder .fi-price .was { display: block; font-family: var(--f-body); font-size: .72rem; font-weight: 400; }
.finder .fi-price .sale-tag { margin: 0 0 0 4px; }
.fi-unit { display: block; margin: 2px 0 0 auto; padding: 2px 0; font: inherit; font-family: var(--f-body); font-size: .74rem; font-weight: 500; color: var(--sub); background: none; border: 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.fi-unit:hover, .fi-unit[aria-expanded="true"] { color: var(--ink); text-decoration-color: var(--ink); }
.fi-unit.added { color: var(--ink); font-weight: 700; }
.fi-unit::after { content: " ›"; }
.finder .fi-acts .btn { min-width: 84px; border-radius: 6px; }
.fs-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fs-hint { font-size: .84rem; color: var(--sub); }
.f-tips { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .84rem; color: var(--sub); }
.f-tips li { display: flex; gap: 10px; align-items: baseline; }
.f-tips li::before { content: ""; flex: none; width: 12px; height: 1px; background: var(--taupe); transform: translateY(-4px); }
.f-note { margin: 0; font-size: .82rem; font-weight: 600; color: var(--red); }
/* 유형별 워크북 무료 이벤트(kind: wb): 회차 자료 아래 따로 묶은 칸 */
.f-ev { margin-top: 18px; }
.f-ev-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.f-ev-head b { font-family: var(--f-display); font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
.f-ev-tag { font-size: .72rem; font-weight: 700; color: #fff; background: var(--orange); border-radius: 2px; padding: 1px 7px; line-height: 1.5; }
.f-ev-head small { font-size: .78rem; color: var(--sub); }
/* 추가 변형문제(kind: plus): 세트 바로 아래, 테두리 칸으로 눈에 띄게 */
.f-plus { margin-top: 14px; padding: 12px 14px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fffdf6; }
.f-plus .f-ev-tag { background: var(--red, #c8102e); }
/* 주문 완료 화면의 추가 변형문제 안내 */
.done-x { margin-top: 16px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fffdf6; }
.dx-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; }
.dx-h em { font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 2px; padding: 1px 6px; }
.dx-h span { font-size: .8rem; color: var(--sub); }
.dx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.dx-row a { font-weight: 700; color: var(--ink); }
/* 겨울방학 '다음 학년' 안내 띠(무료 해설 쪽 · 주문 완료 화면): templates/site/_next_winter.html.j2 */
.nx-winter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 18px; padding: 14px 18px; background: var(--ink); color: #fff; border-radius: var(--r); }
.nx-winter p { margin: 0; }
.nx-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nx-eye { font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--orange-soft); }
.nx-tx b { font-size: 1rem; }
.nx-sub { font-size: .8rem; color: #c9c5bd; }
.nx-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nx-go .btn { background: #fff; color: var(--ink); border-color: #fff; }
.nx-go .btn:hover { background: var(--orange-soft); border-color: var(--orange-soft); }
.nx-more { font-size: .82rem; color: #fff; white-space: nowrap; }
.done-w .nx-winter { margin-top: 16px; }
.qa .nx-winter { margin-top: clamp(18px, 3vw, 28px); }
/* 무료 해설 페이지의 추가 변형문제 안내 */
.qa-plus { margin: 14px 0 4px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fffdf6; }
.qa-plus-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 8px; }
.qa-plus-h b { font-family: var(--f-display); font-weight: 800; font-size: .98rem; }
.qa-plus-h em { font-style: normal; font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 2px; padding: 1px 6px; }
.qa-plus-h span { font-size: .8rem; color: var(--sub); }
.qa-plus-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qa-plus-l a { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; color: var(--ink); text-decoration: none; }
.qa-plus-l a:hover { border-color: var(--ink); }
.qa-plus-l a b { font-size: .92rem; }
.qa-plus-l a span { font-size: .76rem; color: var(--sub); }
.qa-plus-l a i { font-style: normal; font-size: .86rem; font-weight: 700; margin-top: 2px; }
.f-plus-tip { margin: 10px 0 0; font-size: .84rem; font-weight: 700; color: var(--ink); }
.f-plus-tip::before { content: "+ "; color: var(--red); }
.fi-wip { display: inline-block; margin-left: 6px; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--sub); border: 1px solid var(--line-2); border-radius: 2px; padding: 0 5px; vertical-align: 2px; line-height: 1.5; }
.f-item.soon .fi-name b { color: var(--sub); }
.f-item.soon .bk { opacity: .55; }
.wb-soon { font-family: var(--f-body); font-size: .8rem; font-weight: 600; color: var(--sub); }
@media (max-width: 640px) {   /* 휴대폰: 2×2 타일(이름 · 가격 · 버튼 두 개). 지문 칸은 타일 아래 한 줄 전체로 */
  .f-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 8px; border: 0; }
  .f-item { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; padding: 12px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
  .f-item.open { border-color: var(--ink); background: var(--surface); }
  .fi-name { flex-wrap: nowrap; justify-content: space-between; }
  .fi-name b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fi-sample { font-size: .72rem; }
  .fi-inc { display: none; }
  .fi-price { text-align: left; font-size: 1.15rem; margin-top: 2px; }
  .fi-price .was { display: block; font-size: .7rem; line-height: 1.1; }
  .fi-price .sale-tag { display: none; }
  .fi-price small { font-size: .7rem; margin-top: 1px; }
  .fi-acts { margin-top: 8px; gap: 5px; }
  .fi-acts .btn { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 4px; font-size: .8rem; }
  .f-list .f-single { grid-column: 1 / -1; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px; }
  .f-list.one { grid-template-columns: minmax(0, 1fr); }   /* 유형별 교재: 한 권이라 한 줄 전체 */
  .finder .f-list { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--ink); }
  .finder .f-item { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .finder .f-item.open { background: linear-gradient(90deg, var(--surface), transparent 80%); }
  .finder .fi-bk { grid-row: span 2; align-self: start; }
  .finder .fi-name { flex-wrap: wrap; justify-content: flex-start; }
  .finder .fi-inc { display: block; font-size: .72rem; }
  .finder .fi-price { text-align: right; margin: 0; font-size: 1rem; }
  .finder .fi-price .sale-tag { display: inline-block; }
  .finder .fi-acts { grid-column: 2 / -1; margin-top: 6px; justify-content: flex-end; }
  .finder .fi-acts .btn { flex: 0 1 auto; min-width: 92px; min-height: 38px; padding: 0 14px; font-size: .84rem; }
  .finder .f-list .f-single { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .f-tips { font-size: .78rem; }
  .f-pick { gap: 10px; }
  .f-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .seg .lg { display: none; }
  .seg .sm { display: inline; }
  .seg.stack { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }   /* 교재 이름은 길어서 한 줄에 하나씩 */
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .seg.joined { display: inline-grid; grid-auto-columns: auto; gap: 0; }
  .seg.joined button { padding: 0 16px; }
  .f-type .seg.joined { display: grid; grid-auto-columns: minmax(0, 1fr); }
  .f-type .seg.joined button { padding: 0 2px; font-size: .8rem; }
  .seg button .new { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); font-size: 0; }
  .seg.many { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 10px; }   /* 유닛이 많은 교재(18개) */
  .seg button { padding: 0 4px; min-height: 38px; font-size: .86rem; gap: 4px; white-space: nowrap; position: relative; }
  .seg button .n { position: absolute; top: -7px; right: -3px; min-width: 18px; padding: 1px 5px; font-size: .66rem; line-height: 1.35; text-align: center; background: var(--orange); color: var(--ink); box-shadow: 0 0 0 2px #fff; }
  .seg button[aria-pressed="true"] .n { background: var(--orange); color: var(--ink); }
  .f-out { gap: 12px; }
  .f-title h3 { font-size: 1.2rem; }
}
.f-all { margin-top: 40px; font-size: .86rem; }
.f-all summary { cursor: pointer; color: var(--sub); font-weight: 500; padding: 6px 2px; }
.f-all-y { margin-top: 10px; }
.f-all-y ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.f-all-y li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.f-all-y li span { width: 3em; color: var(--sub); }
.f-all-y li a.mh { width: 3em; color: var(--sub); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.f-all-y a { color: var(--sub); text-decoration: none; }
.f-all-y a.on { color: var(--ink); font-weight: 700; }

/* 기간 한정 할인: 기간 밖이면(<html class="no-sale">) 할인 표시를 숨기고 정가를 보여 준다 */
.sale-off { display: none !important; }
.no-sale .sale-on { display: none !important; }
.no-sale .sale-off { display: revert !important; }
.no-sale .promo-card p.sale-off { display: flex !important; }
s.was { color: var(--sub); font-weight: 400; font-size: .62em; text-decoration-thickness: 1px; margin-right: 2px; font-family: var(--f-en); }
.price .sale-tag { display: table; margin: 8px 0 0; font-size: .76rem; }
/* 깜짝 무료 행사(<html class="flash">): 무료 가격·남은 시간 타이머 */
.flash-only { display: none !important; }
html.flash .flash-only { display: revert !important; }
html.flash .flash-hide { display: none !important; }
html.flash .promo-card.flash-only { display: grid !important; }
html.flash .salebar.flash-only { display: flex !important; }
.flash-timer { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 2px; background: #fff; border: 1px solid var(--line-2); color: var(--red); font-family: var(--f-en); font-size: .72rem; font-weight: 700; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .02em; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.flash-timer:empty { display: none; }
.flash-timer::before { content: "⏱ "; }
.flashbar .flash-timer { margin-left: 0; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; font-size: .8rem; }
.price .flash-timer { margin: 8px 0 0 8px; font-size: .78rem; }
.promo-card .flash-timer { margin-left: 2px; }
.price .flash-note { display: block; margin-top: 6px; font-family: var(--f-body); font-size: .78rem; font-weight: 600; color: var(--red); letter-spacing: 0; }

/* 주간 단어 시험(quiz/, 오픈채팅방 참여자 전용) */
.qz { padding: clamp(24px, 5vw, 48px) 0 64px; background: var(--surface); }
.qz-in { max-width: 680px; margin: 0 auto; padding-inline: 16px; }
.qz-card { background: #fff; border-radius: var(--r); padding: 28px 22px 24px; text-align: center; }
.qz-cat { width: 104px; height: 104px; margin: 0 auto 6px; }
.qz-eye { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--taupe-ink); }
.qz-gate h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); margin-top: 4px; }
.qz-meta { color: var(--sub); margin-top: 6px; font-size: .95rem; }
.qz-form { display: grid; gap: 12px; margin: 22px auto 0; max-width: 360px; text-align: left; }
.qz-form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 700; }
.qz-form input { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--rb); width: 100%; min-width: 0; }
.qz-form input:focus { outline: 2px solid var(--orange); outline-offset: 0; }
.qz-form .btn { margin-top: 4px; width: 100%; }
.qz-err { margin: 0; color: var(--red); font-weight: 700; font-size: .92rem; }
.qz-small { margin-top: 16px; font-size: .82rem; color: var(--sub); }
.qz-past a { color: var(--ink); font-weight: 700; }
.qz-bar { position: sticky; top: var(--qz-top, 70px); z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--r); padding: 10px 14px 12px; margin-bottom: 14px; }
.qz-who { font-size: .88rem; opacity: .9; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.qz-who b { opacity: 1; }
.qz-cnt { font-weight: 700; }
.qz-cnt b { color: var(--orange); font-size: 1.15rem; }
.qz-prog { flex-basis: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.qz-prog i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .2s; }
.qz-sec { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 22px 2px 10px; }
.qz-sec h2 { font-size: 1.25rem; }
.qz-sec span { font-size: .86rem; color: var(--sub); }
.qz-q { margin: 0 0 12px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; min-width: 0; }
.qz-q.miss { border-color: var(--red); box-shadow: 0 0 0 2px rgba(192, 38, 45, .18); }
.qz-q legend { float: left; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 0; margin-bottom: 10px; }
.qz-q legend + * { clear: both; }
.qz-q .no, .qz-w .no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--orange); display: grid; place-items: center; font-size: .86rem; font-weight: 700; }
.qz-q .t { font-family: var(--f-en); font-size: 1.2rem; font-weight: 700; line-height: 1.4; padding-top: 1px; letter-spacing: 0; }
.qz-q .t.ko { font-family: var(--f-body); font-size: 1.1rem; font-weight: 700; }
.qz-q.blank .t { font-size: 1.08rem; }
.qz-blank { display: inline-block; min-width: 72px; border-bottom: 2px solid var(--ink); margin: 0 4px; vertical-align: -2px; text-decoration: none; }
.qz-q .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qz-q.wide .opts { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .qz-q.wide .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qz-q label { position: relative; display: block; cursor: pointer; }
.qz-q label input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.qz-q label span { display: block; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--rb); font-size: .98rem; line-height: 1.35; background: #fff; transition: background .12s, border-color .12s; }
.qz-q label:hover span { border-color: var(--ink); }
.qz-q label input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.qz-q label input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.qz-grade { width: 100%; margin-top: 8px; }
#gradeErr { margin: 6px 2px 0; }
.qz-result { position: relative; overflow: hidden; border-radius: var(--r); padding: 26px 22px 20px; text-align: center; color: #fff; background: var(--ink); }
.qz-result img { width: 96px; height: 96px; margin: 0 auto; }
.qz-result .r-top { margin-top: 8px; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.qz-result .r-top b { color: var(--orange); }
.qz-result .r-nick { margin-top: 6px; font-size: 1.15rem; }
.qz-result .r-nick b { font-size: 1.45rem; overflow-wrap: anywhere; }
.qz-result .r-score { margin-top: 2px; font-family: var(--f-en); line-height: 1.05; }
.qz-result .r-score b { font-size: 4.6rem; color: var(--orange); font-weight: 700; }
.qz-result .r-score span { font-size: 1.6rem; color: rgba(255, 255, 255, .7); }
.qz-result .r-msg { display: inline-block; margin-top: 8px; padding: 5px 16px; border-radius: 2px; background: var(--orange); color: var(--ink); font-weight: 700; }
.qz-result.perfect { box-shadow: 0 0 0 4px var(--orange); }
.qz-result .r-foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: rgba(255, 255, 255, .65); }
.qz-cap { margin-top: 14px; text-align: center; font-size: .98rem; }
.qz-cap b { color: var(--red); }
.qz-wrong { margin-top: 26px; }
.qz-wrong h2 { font-size: 1.2rem; margin-bottom: 10px; }
.qz-w { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.qz-w .q { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.qz-w .a { margin: 8px 0 0 40px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .94rem; }
.qz-w .a s { color: var(--sub); }
.qz-w .a b { color: var(--red); }
.qz-again { margin-top: 18px; text-align: center; }
.qz-note { margin: 0; padding: 8px 12px; border-radius: var(--rb); background: var(--orange-soft); font-size: .9rem; }
.qz-note b { color: var(--red); }
.qz-sent { margin-top: 6px; text-align: center; font-size: .86rem; color: var(--taupe-ink); font-weight: 700; }
.qz-sent::before { content: "✓ "; }
.qz-again .qz-small { margin-top: 0; }

/* 문항별 무료 해설(/q/): 원문 · 해석 · 요약 · 흐름 · 문법 · 표현 → 이 지문 수업 자료 */
.qa { padding-bottom: clamp(56px, 8vw, 96px); }
.qa-head { display: grid; gap: 14px; max-width: 52rem; padding-block: 24px 4px; }
.qa-head h1 { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.5rem); }
.qa-tags { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: .84rem; color: var(--sub); }
.qa-tags span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.qa-tags .tag { color: var(--taupe-ink); border-color: var(--line-2); background: var(--surface); font-weight: 700; }
.qa-sec { margin-top: clamp(36px, 5vw, 56px); min-width: 0; }
.qa-sec > h2, .qa-bar h2 { font-size: 1.35rem; margin-bottom: 14px; }
.qa-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.qa-bar h2 { margin-bottom: 0; }
.qa-bar .btn { margin-bottom: 10px; }
/* 분석지처럼: 한줄 요약 띠 · 왼쪽 문장 카드 · 오른쪽 흐름 요약(따라 내려옴) */
.qa { --qg: #23473a; --qr: #a8475a; --qr-soft: #f7ebee; --qy: #fff4b8; }
.qa-oneline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; margin-top: 18px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.qa-oneline .chip { background: var(--qg); color: #fff; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; line-height: 1.35; white-space: nowrap; margin-top: 2px; }
.qa-oneline p { margin: 0; }
.qa-oneline .ko { font-weight: 700; font-size: 1.06rem; line-height: 1.55; }
.qa-oneline .en { color: var(--sub); font-family: var(--f-en); font-size: .9rem; }
.qa-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: 0 36px; align-items: start; margin-top: clamp(28px, 4vw, 40px); }
.qa-text { min-width: 0; }
.qa-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; font-size: .8rem; color: var(--sub); }
u.gp { text-decoration: underline; text-decoration-color: var(--qr); text-decoration-thickness: 2px; text-underline-offset: 4px; }
mark.hl { background: var(--qy); color: inherit; padding: 0 3px; }
.qa-sents { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--qg); }
.qa-sents > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 10px; padding: 16px 0; border-bottom: 1px dashed var(--line-2); }
.qa-sents > li.key { background: linear-gradient(90deg, var(--qy), rgba(255, 244, 184, .35) 60%, transparent); }
.qa-sents .n { display: grid; justify-items: center; align-content: start; gap: 4px; }
.qa-sents .n span { font-size: 1.3rem; line-height: 1.35; color: var(--ink); }
.qa-sents .n em { font-style: normal; font-size: .68rem; font-weight: 700; color: #fff; background: var(--qr); padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.qa-sents .b { min-width: 0; }
.qa-sents p { margin: 0; }
.qa-sents .en { font-family: var(--f-en); font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.qa-sents .ko { margin-top: 4px; color: var(--sub); font-size: .94rem; }
.qa-sents.noko .ko { display: none; }
.qa-sents .notes { display: grid; gap: 5px; margin-top: 10px; padding: 9px 12px; background: var(--surface); border-radius: 6px; font-size: .86rem; line-height: 1.6; }
.qa-sents .notes > p { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; }
.qa-sents .notes b { font-size: .74rem; font-weight: 700; color: var(--qr); padding-top: 2px; }
.qa-sents .notes .x b { color: var(--qg); }
.qa-sents .notes .y b { color: var(--taupe-ink); }
.qa-sents .notes .it { display: inline-block; max-width: 100%; margin-right: 14px; }
.qa-sents .notes .it:last-child { margin-right: 0; }
.qa-sents .notes i { font-style: normal; font-family: var(--f-en); font-weight: 700; color: var(--ink); }
.qa-gram-rest { margin-top: 16px; padding: 12px 16px; background: var(--surface); border-radius: var(--r); font-size: .88rem; }
.qa-gram-rest b { font-size: .78rem; color: var(--qr); }
.qa-gram-rest ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 4px; }
.qa-side { position: sticky; top: 84px; display: grid; gap: 12px; max-height: calc(100vh - 100px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.qa-flowbox { border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; overflow: hidden; padding-bottom: 12px; }
.qa-flowbox .hd { margin: 0 0 12px; background: var(--qg); color: #fff; font-size: .95rem; padding: 9px 14px; letter-spacing: .02em; }
.qa-flowbox .topic { display: grid; gap: 2px; text-align: center; margin: 0 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; }
.qa-flowbox .topic .lb { font-size: .72rem; font-weight: 700; color: var(--qr); }
.qa-flowbox .topic b { font-size: 1rem; line-height: 1.45; }
.qa-flowbox .topic .en { font-size: .8rem; line-height: 1.4; color: var(--sub); font-family: var(--f-en); }
.qa-flowbox .ar { text-align: center; color: var(--qr); font-size: .85rem; line-height: 1; padding: 6px 0; }
.qa-flowbox .topic + .ar { padding-top: 8px; }
.qa-flowbox .sec { margin: 0 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; }
.qa-flowbox .sec .h { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: .86rem; line-height: 1.45; }
.qa-flowbox .sec .tg { font-size: .74rem; font-weight: 700; color: #fff; background: var(--qr); padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.qa-flowbox .sec .h b { color: var(--qr); }
.qa-flowbox .sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; line-height: 1.55; }
.qa-flowbox .sec li { position: relative; padding-left: 13px; }
.qa-flowbox .sec li::before { content: ""; position: absolute; left: 1px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--qr); }
.qa-sidebuy { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; font-size: .8rem; }
.qa-sidebuy b { font-size: .94rem; }
.qa-sidebuy span { color: rgba(255, 255, 255, .78); }
.qa-sidebuy:hover { background: var(--ink-2); }
.qa-expr { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.qa-expr div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.qa-expr dt { font-family: var(--f-en); font-weight: 700; }
.qa-expr dd { margin: 0; color: var(--sub); }
.qa-chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 16px 0 0; font-size: .86rem; }
.qa-chips b { font-size: .8rem; color: var(--taupe-ink); margin-right: 4px; }
.qa-chips span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--sub); }
.qa-chips i { font-style: normal; color: var(--ink); font-family: var(--f-en); }
.qa-cta { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(18px, 3vw, 32px); background: var(--panel); border-radius: var(--r); }
.qa-prev { display: grid; gap: 8px; text-decoration: none; color: var(--sub); font-size: .8rem; }
.qa-prev img { width: 100%; border-radius: 4px; background: #fff; box-shadow: 0 1px 0 var(--line-2), 0 10px 30px rgba(21, 23, 26, .08); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.qa-buy { display: grid; gap: 10px; min-width: 0; }
.qa-buy h2 { font-size: 1.35rem; }
.qa-buy p { margin: 0; color: var(--sub); font-size: .9rem; }
.qa-items { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.qa-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.qa-items li > div { display: grid; gap: 1px; min-width: 0; }
.qa-items b { font-size: .98rem; }
.qa-items li > div span { font-size: .78rem; color: var(--sub); }
.qa-items .pr { font-weight: 700; color: var(--orange); white-space: nowrap; }
.qa-items .pr s { font-weight: 500; font-size: .76rem; color: var(--sub); }
.qa-more { font-size: .88rem; font-weight: 700; text-underline-offset: 3px; }
.qa-sibs li.on { background: var(--surface); box-shadow: inset 0 -2px 0 var(--orange); }
.qa-sibs li.on b { color: var(--orange); }
.qa-sibs a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; width: 100%; }
.qa-sibs a span { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.qlist a { display: flex; align-items: baseline; gap: 10px; text-decoration: none; width: 100%; }
.qlist a { flex-wrap: wrap; row-gap: 2px; }
.qlist a span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.qlist a em { flex-basis: 100%; padding-left: calc(3.4em + 10px); font-style: normal; font-size: .72rem; font-weight: 700; color: var(--orange); white-space: nowrap; }
.qa-note { margin: 10px 0 0; font-size: .82rem; color: var(--sub); }
@media (max-width: 820px) {
  .qa-cta { grid-template-columns: minmax(0, 1fr); }
  .qa-main { grid-template-columns: minmax(0, 1fr); }
  .qa-side { position: static; max-height: none; overflow: visible; order: -1; margin-bottom: 28px; }
  .qa-sidebuy { display: none; }
  .qa-oneline { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .qa-oneline .chip { justify-self: start; }
  .qa-sents > li { grid-template-columns: 30px minmax(0, 1fr); gap: 0 8px; }
  .qa-sents .n span { font-size: 1.15rem; }
  .qa-sents .en { font-size: 1rem; }
  .qa-sents .notes > p { display: block; }
  .qa-sents .notes b { display: inline-block; min-width: 2.6em; margin-right: 6px; }
  .qa-intro { font-size: .9rem; }
  .qa-items li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .qa-items li > div { grid-row: 1 / span 2; }
  .qa-items .pr { grid-column: 2; grid-row: 1; justify-self: end; }
  .qa-items li .btn { grid-column: 2; grid-row: 2; justify-self: end; min-height: 34px; }
}
.qa-intro { margin: 0; color: var(--sub); max-width: 46rem; }
.qa-note a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; margin-left: 4px; }
.qa-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.qa-faq details:first-of-type { border-top: 1px solid var(--ink); }
.qa-faq summary { cursor: pointer; font-weight: 700; }
.qa-faq details p { margin: 8px 0 0; color: var(--sub); font-size: .94rem; overflow-wrap: anywhere; }
.qa-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.qa-index a { display: grid; grid-template-columns: 4.6em 8.5em minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.qa-index a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.qa-index b { font-family: var(--f-en); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qa-index .t { font-size: .84rem; color: var(--taupe-ink); font-weight: 700; }
.qa-index .s { display: grid; gap: 2px; min-width: 0; }
.qa-index strong { font-weight: 700; }
.qa-index em { font-style: normal; font-size: .84rem; color: var(--sub); }
.qa-cta-wide { grid-template-columns: minmax(0, 1fr); }
.qa-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.qa-act .pr { font-size: 1.3rem; font-weight: 700; color: var(--orange); }
.qa-act .pr s { font-size: .8rem; font-weight: 500; color: var(--sub); }
.qa-act .pr small { font-size: .82rem; font-weight: 500; color: var(--sub); }
.qa-hub a { grid-template-columns: 7.6em 7em minmax(0, 1fr); }   /* 전 회차 해설 모음: 왼쪽 칸이 '2026년 10월' */
@media (max-width: 640px) {
  .qa-index a { grid-template-columns: 4.2em minmax(0, 1fr); }
  .qa-hub a { grid-template-columns: 7.6em minmax(0, 1fr); }
  .qa-index .s { grid-column: 1 / -1; }
}

/* 무료 해설 → 구매: 한 줄 안내 · 변형문제 맛보기 · 후기 한 줄 · 휴대폰 아래 구매 띠(겉은 조용하게, 눌러 보면 꽉 차게) */
.hero-stu { display: inline-flex; gap: 6px; width: fit-content; font-size: .92rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.hero-stu .t { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }   /* 밑줄은 글자에만(화살표 빼고) */
.hero-stu:hover { color: var(--orange-h); }
.qa-nudge { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border: 1.5px dashed var(--orange); border-radius: var(--r); background: var(--orange-soft); color: var(--ink); text-decoration: none; }
.qa-nudge > span:first-child { display: grid; gap: 1px; flex: 1; min-width: 0; }
.qa-nudge b { font-size: .95rem; }
.qa-nudge small { font-size: .84rem; color: var(--sub); }
.qa-nudge .go { font-weight: 800; color: var(--orange-h); font-size: 1.1rem; }
.qa-nudge:hover { border-style: solid; }
.qa-trial { margin-top: 28px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; scroll-margin-top: 90px; }
.qa-trial .hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 10px 16px; background: var(--ink); color: #fff; }
.qa-trial .hd h2 { font-size: 1rem; color: #fff; margin: 0; }
.qa-trial .hd span { font-size: .8rem; opacity: .75; }
.qa-trial .bd { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qa-trial .stem { margin: 0; font-weight: 700; }
.qa-trial .tip { margin: -6px 0 0; font-size: .82rem; color: var(--sub); }
.qa-trial .opts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.qa-trial .opts .t { min-width: 0; overflow-wrap: anywhere; }
.qa-trial .opts button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: 2px 6px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; font-size: .94rem; line-height: 1.55; }
.qa-trial .opts button:hover { border-color: var(--ink); }
.qa-trial .opts button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.qa-trial .opts .t[lang="en"] { font-family: var(--f-en); }
.qa-trial .opts.done button { cursor: default; }
.qa-trial .opts.done button:not(.ok):not(.no) { opacity: .55; }
.qa-trial .opts button.ok { border-color: #2f7a4f; background: #e8f4ec; }
.qa-trial .opts button.no { border-color: var(--red); background: #fbeaea; }
.qa-trial .res { display: grid; gap: 6px; }
.qa-trial .res .r { margin: 0; font-weight: 800; }
.qa-trial .res .r.ok { color: #2f7a4f; }
.qa-trial .res .r.no { color: var(--red); }
.qa-trial .res .why { margin: 0; font-size: .88rem; color: var(--sub); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.qa-trial .res .why b { color: var(--taupe-ink); font-size: .8rem; padding-top: 2px; }
.qa-trial .more { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 8px; background: var(--orange-soft); color: var(--ink); text-decoration: none; white-space: normal; }
.qa-trial .more > span:first-child { display: grid; gap: 1px; flex: 1; min-width: 0; }
.qa-trial .more small { font-size: .8rem; color: var(--sub); }
.qa-trial .more .go { background: var(--orange); font-weight: 800; padding: 10px 14px; border-radius: var(--rb); white-space: nowrap; }
.qa-trial .more:hover .go { background: var(--orange-h); }
.qa-rv { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 12px; border-radius: 6px; background: #fff; font-size: .86rem; }
.qa-rv b { color: var(--orange); }
.qa-rv span { color: var(--sub); }
.qa-rv q { flex-basis: 100%; color: var(--ink); }
.qa-buybar { display: none; }
@media (max-width: 820px) {
  .qa-buybar:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--ink); color: #fff; box-shadow: 0 -8px 24px rgba(21, 23, 26, .18); }
  .qa-buybar > div { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
  .qa-buybar b { font-size: .95rem; }
  .qa-buybar span { font-size: .76rem; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .qa-buybar .btn { min-height: 42px; padding: 0 14px; }
}
@media (prefers-reduced-motion: no-preference) { .qa-buybar:not([hidden]) { animation: qa-up .2s ease-out; } }
@keyframes qa-up { from { transform: translateY(100%); } to { transform: none; } }
.more-fields { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 14px; }
.more-fields > summary { cursor: pointer; font-size: .9rem; font-weight: 700; list-style: none; }
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields > summary small { font-weight: 400; color: var(--sub); margin-left: 4px; }
.more-fields[open] > summary { margin-bottom: 14px; }
.qa-sample { border: 1px dashed var(--line-2); border-radius: 8px; }
.qa-sample > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.qa-sample > summary::-webkit-details-marker { display: none; }
.qa-sample > summary > span:first-child { display: grid; gap: 1px; flex: 1; min-width: 0; }
.qa-sample > summary small { font-size: .8rem; color: var(--sub); }
.qa-sample > summary .go { font-weight: 800; color: var(--orange-h); }
.qa-sample[open] > summary .go { transform: rotate(45deg); }
.qa-sample form { display: grid; gap: 8px; padding: 0 14px 14px; }
.qa-sample label { font-size: .84rem; }
.qa-sample .row { display: flex; gap: 8px; }
.qa-sample .row input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--rb); background: #fff; }
.qa-sample .row .btn { min-height: 44px; }
.qa-sample .ck { display: flex; gap: 8px; align-items: flex-start; color: var(--sub); font-size: .8rem; line-height: 1.5; }
.qa-sample .ck input { margin-top: 3px; }
.qa-sample .ck a { color: var(--ink); }
.qa-sample .msg { margin: 0; font-size: .86rem; font-weight: 700; }
.qa-sample .msg.ok { color: #2f7a4f; }
.qa-sample .msg.no { color: var(--red); }
.qa-sample .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 작은 책(회차 선택 자료 줄): 표지 색 · 띠 색으로 종류를 나눈다. 5종 세트 검정+주황 띠(책갈피) · 직보 주황 · 분석지 베이지 · 변형문제 초록 · 교재 갈색 · 리포트 흰색 */
.bk { --c: #1b1d21; --band: #e4541e; --band-ink: #fff; --ink-on: #fff; --sub-on: rgba(255, 255, 255, .62); position: relative; display: block; width: 52px; height: 68px; flex: none; }
.bk .pg { position: absolute; left: 8px; top: 4px; right: -3px; bottom: -3px; border-radius: 1px 4px 4px 1px; background: repeating-linear-gradient(to bottom, #fbfaf7 0 1.5px, #ddd6ca 1.5px 2.2px); box-shadow: 0 3px 6px rgba(21, 23, 26, .22); }
.bk .cv { position: absolute; left: 0; top: 0; right: 3px; bottom: 3px; border-radius: 2px 5px 5px 2px; background: var(--c); overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 7px 4px 6px 9px; color: var(--ink-on); }
.bk .cv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(to right, rgba(0, 0, 0, .28), rgba(0, 0, 0, .08) 70%, rgba(255, 255, 255, .18)); }
.bk .cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 45%); pointer-events: none; }
.bk .br { font-family: var(--f-en); font-size: 5px; font-weight: 700; letter-spacing: .18em; color: var(--sub-on); line-height: 1; }
.bk .rl { width: 18px; height: 1px; background: var(--sub-on); margin: 4px 0 0; }
.bk .bd { margin-top: auto; align-self: stretch; margin-left: -9px; margin-right: -4px; background: var(--band); color: var(--band-ink); font-size: 10.5px; font-weight: 800; letter-spacing: -.02em; text-align: center; padding: 3px 0 3px 5px; line-height: 1.1; white-space: nowrap; }
.bk .ft { margin-top: 5px; min-height: 6px; font-size: 5.5px; color: var(--sub-on); letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.bk .rb { position: absolute; right: 12px; bottom: -11px; width: 7px; height: 16px; background: var(--rib, #e4541e); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); z-index: 2; }
.bk.k5 { --c: #1b1d21; --band: #e4541e; --band-ink: #15171a; }
.bk.kj { --c: #e4541e; --band: #15171a; --sub-on: rgba(21, 23, 26, .6); --ink-on: #15171a; }
.bk.ka { --c: #efe7d9; --band: #8b7355; --sub-on: rgba(21, 23, 26, .5); --ink-on: #15171a; }
.bk.ke { --c: #2f3b36; --band: #d9cbb2; --band-ink: #15171a; }
.bk.kb { --c: #3d3a35; --band: #e4541e; --band-ink: #15171a; }
.bk.kr { --c: #faf8f3; --band: #15171a; --band-ink: #fff; --sub-on: rgba(21, 23, 26, .5); --ink-on: #15171a; }
.bk.kw { --c: #fdf1ea; --band: #e4541e; --band-ink: #fff; --sub-on: rgba(21, 23, 26, .5); --ink-on: #15171a; }   /* 유형별 워크북(무료 이벤트) */
.bk.kw .cv { box-shadow: inset 0 0 0 1px #f3cdb8; }
.bk.kx { --c: #1f4d3f; --band: #f2c94c; --band-ink: #15171a; }   /* 추가 변형문제 난이도 중상 */
.bk.kx2 { --c: #7a1f1f; --band: #f2c94c; --band-ink: #15171a; }  /* 추가 변형문제 난이도 상 */
.bk.kr .cv { box-shadow: inset 0 0 0 1px #ddd6ca; }
.bk-stack { position: relative; display: block; width: 58px; height: 68px; flex: none; }
.bk-stack .bk { position: absolute; }
.bk-stack .bk:first-child { left: 8px; top: -2px; transform: rotate(6deg); }
.bk-stack .bk:last-child { left: 0; top: 2px; }
/* 시험 날짜 칸(D-14 · D-1) */
.dt { position: relative; display: flex; flex-direction: column; width: 52px; height: 60px; flex: none; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 3px 6px rgba(21, 23, 26, .12); }
.dt i { display: block; font-style: normal; background: var(--ink); color: #fff; font-size: 9px; text-align: center; padding: 3px 0; letter-spacing: .08em; }
.dt b { flex: 1; display: flex; align-items: center; justify-content: center; font-family: var(--f-en); font-size: 15px; letter-spacing: -.02em; }
.dt.or i { background: var(--orange); color: var(--ink); }
.unl { display: inline-block; font-family: var(--f-body); font-size: .72rem; font-weight: 700; color: var(--orange-h); border: 1px solid var(--orange); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; line-height: 1.5; letter-spacing: 0; }

/* 회차 선택 '학교 맞춤': 같은 자리에 서비스 안내 · 가격 · 상담 신청 */
.f-sc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.f-sc li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.f-sc .fi-name b { font-size: 1rem; }
.f-sc .fi-inc { white-space: normal; }
.f-sc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.f-sc-price b { font-family: var(--f-en); font-size: 1.5rem; letter-spacing: -.01em; }
.f-sc-price s { color: var(--sub); font-size: .86rem; }
.f-sc-price span { margin-left: auto; font-size: .82rem; color: var(--sub); }
.f-sc-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.f-sc-cta .btn { min-height: 48px; border-radius: 6px; }
@media (max-width: 640px) { .f-sc-cta { grid-template-columns: minmax(0, 1fr); } }

/* 학교 맞춤 소개 페이지(school.html, 학부모 대상) */
.sc-hero { padding: 56px 0 56px; }
.sc-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: end; }
.sc-eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; color: var(--taupe-ink); }
.sc-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--taupe-ink); }
.sc-hero h1 { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.14; letter-spacing: -.03em; margin: 14px 0 0; }
.sc-hero h1 em { font-style: normal; color: var(--orange); }
.sc-lead { color: var(--sub); font-size: 1.04rem; line-height: 1.75; margin: 18px 0 0; max-width: 36em; }
.sc-by { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.sc-buy { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sc-buy .btn { border-radius: 6px; }
.sc-pr { margin-left: 8px; font-size: .95rem; color: var(--sub); }
.sc-pr b { color: var(--ink); font-family: var(--f-en); font-size: 1.2rem; }
.sc-pr s { margin-left: 6px; font-size: .85rem; }
.sc-img { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 1px 3px rgba(21, 23, 26, .06), 0 24px 48px -28px rgba(21, 23, 26, .3); }
.sc-img img { display: block; width: 100%; height: auto; }
.sc-hero-img { max-height: 620px; }
.sc-sec { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.sc-sec.bg { background: var(--surface); }
.sc-sec h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.03em; margin: 8px 0 0; }
.sc-sec h2 .unl { font-size: .8rem; padding: 1px 7px; margin-left: 10px; vertical-align: 6px; }
.sc-k { font-family: var(--f-en); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-h); }
.sc-sub { color: var(--sub); margin: 10px 0 0; }
.sc-rows { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--ink); }
.sc-rows li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sc-rows .n { font-family: var(--f-en); color: var(--orange-h); font-size: .95rem; }
.sc-rows strong { font-size: 1.12rem; letter-spacing: -.02em; }
.sc-rows span { display: block; color: var(--sub); font-size: .92rem; margin-top: 3px; }
.sc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.sc-figs figure { margin: 0; }
.sc-figs .sc-img { height: 300px; }
.sc-figs .sc-img img { height: 100%; object-fit: cover; object-position: left top; }
.sc-figs figcaption { margin-top: 10px; font-size: .9rem; color: var(--sub); }
.sc-figs figcaption b { color: var(--ink); margin-right: 8px; }
/* 단계별 계획: 학교 난이도 + 현재 등급 → 단계별 목표, 아래 계단(현재 · 이번 시험 · 다음 시험) */
.sc-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0 14px; margin-top: 28px; }
.sc-plan div { padding: 18px 0 0; border-top: 1px solid var(--ink); }
.sc-plan div.h { border-top: 2px solid var(--orange); padding-top: 17px; }
.sc-plan b { font-size: 1.08rem; }
.sc-plan span { display: block; color: var(--sub); font-size: .9rem; margin-top: 4px; }
.sc-plan i { align-self: center; font-style: normal; font-family: var(--f-en); font-size: 1.3rem; color: var(--sub); }
.sc-stairs { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.sc-stairs li { display: grid; align-content: start; gap: 4px; padding: 16px 18px 18px; background: var(--surface); border-top: 2px solid var(--ink); border-radius: 0 0 6px 6px; min-height: calc(108px + var(--s) * 36px); }
.sc-stairs li.h { background: #fdf1ea; border-top-color: var(--orange); }
.sc-stairs .t { font-size: .78rem; font-weight: 700; color: var(--taupe-ink); letter-spacing: .02em; }
.sc-stairs li.h .t { color: var(--orange-h); }
.sc-stairs b { font-size: 1.05rem; letter-spacing: -.02em; }
.sc-stairs span:not(.t) { color: var(--sub); font-size: .88rem; }
.sc-cap { margin: 10px 0 0; font-size: .8rem; color: var(--sub); }
.sc-sec.bg .sc-stairs li { background: #fff; }
.sc-kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--ink); }
.sc-kit div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sc-kit div:not(:nth-child(3n+1)) { padding-left: 20px; border-left: 1px solid var(--line); }
.sc-kit b { font-size: 1.08rem; }
.sc-kit span { display: block; color: var(--sub); font-size: .88rem; margin-top: 3px; }
.sc-tl { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.sc-tl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); }
.sc-tl div { position: relative; padding: 18px 16px 0 0; }
.sc-tl div::before { content: ""; position: absolute; left: 0; top: -12px; width: 2px; height: 24px; background: var(--ink); }
.sc-tl div.h::before { background: var(--orange); }
.sc-tl b { font-family: var(--f-en); font-size: 1.7rem; }
.sc-tl div.h b { color: var(--orange-h); }
.sc-tl strong { display: block; margin-top: 2px; }
.sc-tl span { display: block; color: var(--sub); font-size: .9rem; margin-top: 6px; max-width: 18em; }
.sc-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.sc-price { margin-top: 20px; }
.sc-price b { font-family: var(--f-en); font-size: 2.6rem; letter-spacing: -.02em; }
.sc-price s { color: var(--sub); margin-left: 10px; }
.sc-inc { list-style: none; padding: 0; margin: 22px 0 0; }
.sc-inc li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sc-form { display: grid; gap: 14px; align-content: start; }
.sc-field { display: grid; gap: 6px; }
.sc-lab { font-size: .86rem; color: var(--sub); }
.sc-lab small { font-size: .78rem; margin-left: 4px; }
.sc-form input[type="text"], .sc-form textarea { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 14px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; }
.sc-form textarea { padding: 12px 14px; min-height: 84px; resize: vertical; line-height: 1.6; }
.sc-form input::placeholder, .sc-form textarea::placeholder { color: #9a9ba0; }
.sc-form input:focus, .sc-form textarea:focus { outline: none; border-color: var(--ink); }
.sc-seg { display: inline-flex; width: fit-content; max-width: 100%; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.sc-seg button { font: inherit; font-size: .92rem; min-height: 44px; padding: 0 16px; border: 0; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.sc-seg button + button { border-left: 1px solid var(--line-2); }
.sc-seg button[aria-checked="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.sc-agree { font-size: .88rem; }
.sc-form .btn.big { border-radius: 6px; margin-top: 4px; }
.sc-note { margin: 0; font-size: .84rem; color: var(--sub); }
.sc-faq { margin-top: 24px; }
@media (max-width: 760px) {
  .sc-hero { padding: 28px 0 40px; }
  .sc-hero h1 { font-size: 1.75rem; }
  .sc-hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sc-buy .btn { flex: 1 1 0; }
  .sc-pr { flex-basis: 100%; margin: 4px 0 0; }
  .sc-hero-img { max-height: 420px; }
  .sc-sec { padding: 44px 0; }
  .sc-figs { grid-template-columns: minmax(0, 1fr); }
  .sc-plan { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sc-plan i { justify-self: center; padding: 6px 0; font-size: 1.1rem; }
  .sc-plan i.ar { transform: rotate(90deg); }
  .sc-stairs { gap: 6px; }
  .sc-stairs li { padding: 12px 10px 14px; min-height: calc(150px + var(--s) * 30px); }
  .sc-stairs b { font-size: .92rem; }
  .sc-stairs span:not(.t) { font-size: .78rem; }
  .sc-figs .sc-img { height: 240px; }
  .sc-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-kit div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .sc-kit div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .sc-tl b { font-size: 1.3rem; }
  .sc-tl span { display: none; }
  .sc-apply { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .sc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .sc-seg button:nth-child(3) { border-left: 0; }
  .sc-seg button:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .sc-seg.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-seg.g3 button:nth-child(3) { border-left: 1px solid var(--line-2); border-top: 0; }
}
/* 예비고1 온라인 윈터스쿨 소개(winter.html) — 학교 맞춤 페이지의 sc-* 칸 위에 더한 것 */
.sc-form input[type="email"], .sc-form input[type="tel"] { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 14px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; }
.sc-form input[type="email"]:focus, .sc-form input[type="tel"]:focus { outline: none; border-color: var(--ink); }
.wt-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--ink); }
.wt-flow div { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); }
.wt-flow div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.wt-flow b { font-family: var(--f-en); color: var(--orange-h); font-size: .95rem; }
.wt-flow strong { display: block; font-size: 1.12rem; margin-top: 4px; letter-spacing: -.02em; }
.wt-flow span { display: block; color: var(--sub); font-size: .9rem; margin-top: 4px; }
.wt-flow div.h strong { color: var(--orange-h); }
.wt-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.wt-levels div { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 20px; display: grid; gap: 4px; align-content: start; }
.wt-levels div.h { border-color: var(--ink); box-shadow: 0 18px 36px -26px rgba(21, 23, 26, .45); }
.wt-levels b { font-family: var(--f-en); font-size: 1.4rem; }
.wt-levels strong { font-size: 1.05rem; }
.wt-levels span { color: var(--sub); font-size: .9rem; line-height: 1.6; }
.wt-levels em { font-style: normal; font-size: .82rem; color: var(--taupe-ink); margin-top: 6px; }
.wt-early { margin: 18px 0 0; font-weight: 700; color: var(--orange-h); }
.wt-price { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .98rem; }
.wt-price th, .wt-price td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wt-price thead th { font-size: .84rem; font-weight: 500; color: var(--sub); border-bottom: 1px solid var(--ink); }
.wt-price tbody th { font-weight: 500; color: var(--sub); width: 26%; }
.wt-price tr.h td b { font-family: var(--f-en); font-size: 1.7rem; letter-spacing: -.02em; color: var(--ink); }
.wt-price tr:not(.h) td { color: var(--sub); }
.wt-price tr.h + tr td { text-decoration: line-through; }
/* 윈터스쿨 가격 단계(정가 · 얼리버드 · 친구와 함께): 겹치지 않고 하나만 적용 */
.wt-tiers { width: 100%; border-collapse: collapse; margin-top: 10px; border-top: 1px solid var(--ink); }
.wt-tiers th, .wt-tiers td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.wt-tiers th { font-weight: 700; }
.wt-tiers th small { display: block; margin-top: 2px; font-size: .82rem; font-weight: 500; color: var(--sub); }
.wt-tiers td { text-align: right; white-space: nowrap; color: var(--sub); font-variant-numeric: tabular-nums; }
.wt-tiers td b { font-family: var(--f-en); font-size: 1.7rem; letter-spacing: -.02em; color: var(--ink); }
.wt-tiers td i { margin-right: 6px; font-style: normal; font-size: .9rem; color: var(--sub); }
.wt-tiers tr:not(.h) th { font-weight: 500; color: var(--sub); }
/* 반마다 쓰는 문턱 교재: 표지 + 설명 */
.wt-books div { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; }
.wt-books p { margin: 0; display: grid; gap: 4px; align-content: start; }
.wt-books b { font-size: .95rem; color: var(--orange-h); }
.wt-books strong { font-size: 1.12rem; letter-spacing: -.02em; }
.wt-cv { display: block; width: 92px; aspect-ratio: 148 / 210; overflow: hidden; border: 1px solid var(--line-2); border-radius: 4px; box-shadow: 0 12px 22px -16px rgba(21, 23, 26, .6); }
.wt-cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wt-cv.ghost { display: grid; place-items: center; background: var(--surface); border-style: dashed; box-shadow: none; }
.wt-cv.ghost i { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--sub); }
.wt-bk { margin-top: 6px; font-size: .86rem; font-weight: 700; color: var(--orange-h); }
.wt-kit4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wt-kit4 div:nth-child(n+2) { padding-left: 20px; border-left: 1px solid var(--line); }
.wt-sched { background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 24px; }
.wt-sh { font-size: 1.05rem; }
.wt-sched ol, .wt-sched-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.wt-sched li, .wt-sched-list li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.wt-sched li span, .wt-sched-list li span { color: var(--orange-h); font-weight: 700; }
.wt-nums { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: center; margin-top: 28px; padding: 26px 0; background: var(--ink); color: #fff; border-radius: 12px; }
.wt-nums > * { padding: 0 26px; }
.wt-nums > div { border-left: 1px solid rgba(255, 255, 255, .2); }
.wt-nh { margin: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.wt-nh b { font-family: var(--f-display); font-size: 2.5rem; line-height: 1; color: #ff7a45; letter-spacing: -.03em; }
.wt-nh span { font-size: 1.3rem; font-weight: 700; color: #fff; }
.wt-nums div span { display: block; font-size: .95rem; font-weight: 700; color: rgba(255, 255, 255, .78); }
.wt-nums div b { display: block; margin-top: 4px; font-family: var(--f-en); font-size: 2.5rem; line-height: 1.05; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.wt-nums div b small { margin-left: 3px; font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; color: rgba(255, 255, 255, .85); letter-spacing: 0; }
.wt-wh { font-size: 1.15rem; margin: 34px 0 10px; }
.wt-week { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.wt-week th, .wt-week td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.wt-week th { width: 6.5em; font-family: var(--f-display); font-size: 1rem; }
.wt-week td { font-size: .95rem; color: var(--sub); line-height: 1.65; }
.wt-week td b { color: var(--ink); margin-right: 8px; }
.wt-week tr.h th, .wt-week tr.h td b { color: var(--orange-h); }
.wt-road th small { display: block; margin-top: 2px; font-family: var(--f-body); font-size: .8rem; font-weight: 500; color: var(--sub); }
.wt-road td small { display: block; margin-top: 4px; font-size: .84rem; color: var(--taupe-ink); }
.sc-lead b { color: var(--ink); }
.wt-together { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.wt-chat { margin: 0; }
.wt-chat .sc-img { display: block; max-height: 720px; }
.wt-chat img { object-fit: cover; object-position: top; }
.wt-chat figcaption { margin-top: 10px; font-size: .84rem; color: var(--sub); }
/* 예비고1 레벨테스트(level-test.html) */
.lt-wrap { max-width: 760px; }
.lt-intro h1 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -.03em; margin: 8px 0 0; }
.lt-lead { color: var(--sub); font-size: 1.04rem; line-height: 1.7; margin: 12px 0 0; }
.lt-rules { margin: 22px 0 0; padding: 16px 18px 16px 34px; background: var(--surface); border-radius: 8px; color: var(--ink); font-size: .93rem; line-height: 1.7; }
.lt-levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.lt-levels span { font-size: .86rem; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--sub); }
.lt-levels b { color: var(--ink); }
.lt-intro .btn.big, .lt-result .btn { border-radius: 6px; }
.lt-sec { font-size: 1.25rem; letter-spacing: -.02em; margin: 34px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.lt-sec:first-child { margin-top: 0; }
.lt-psg { margin: 22px 0 6px; padding: 18px 20px; background: var(--surface); border-left: 3px solid var(--taupe); border-radius: 0 8px 8px 0; font-family: var(--f-en); font-size: 1rem; line-height: 1.75; }
.lt-psg p { margin: 0; }
.lt-psg p + p { margin-top: 6px; }
.lt-q { border: 0; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lt-q legend { padding: 0; font-size: .92rem; color: var(--sub); }
.lt-q legend b { color: var(--ink); font-family: var(--f-en); font-size: 1.05rem; margin-right: 4px; }
.lt-hint { color: var(--taupe-ink); }
.lt-qi { color: var(--ink); font-size: 1.04rem; line-height: 1.6; }
.lt-q legend { margin-bottom: 2px; }
.hero-win { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .92rem; font-weight: 700; color: var(--sub); }
.wt-prog { display: inline-flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.wt-prog a { padding: 7px 18px; font-size: .9rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.wt-prog a + a { border-left: 1px solid var(--ink); }
.wt-prog a.on { background: var(--ink); color: #fff; }
.wt-prog a:not(.on):hover { background: var(--surface); }
.lt-other { margin: 0; font-size: .9rem; color: var(--sub); }
.lt-other a { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.lt-qt { margin: 2px 0 12px; font-size: 1.06rem; line-height: 1.65; }
.lt-qt u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lt-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lt-opts.five { grid-template-columns: minmax(0, 1fr); }
.lt-opts.nums { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lt-opts.nums button { justify-content: center; font-size: 1.15rem; }
.lt-opts button { display: flex; gap: 10px; align-items: baseline; text-align: left; font: inherit; font-size: .97rem; line-height: 1.5; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.lt-opts button i { font-style: normal; color: var(--sub); flex: none; }
.lt-opts button:hover { border-color: var(--ink); }
.lt-opts button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lt-opts button[aria-checked="true"] i { color: #fff; }
.lt-q.ok legend::after, .lt-q.no legend::after { margin-left: 8px; font-weight: 700; }
.lt-q.ok legend::after { content: "○"; color: #2f7d4f; }
.lt-q.no legend::after { content: "✕"; color: var(--red); }
.lt-opts button.ans { box-shadow: inset 0 0 0 2px #2f7d4f; }
.lt-key { margin: 8px 0 0; font-size: .86rem; font-weight: 700; color: var(--sub); }
.lt-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 12px 16px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 -6px 24px -12px rgba(21, 23, 26, .25); }
.lt-bar b { font-family: var(--f-en); font-size: 1.15rem; }
.lt-time { font-family: var(--f-en); color: var(--sub); }
.lt-time.over { color: var(--orange-h); }
.lt-bar .btn { margin-left: auto; border-radius: 6px; }
.lt-result { padding: 28px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; }
.lt-result h2 { font-family: var(--f-en); font-size: 3.2rem; margin: 4px 0 0; letter-spacing: -.03em; }
.lt-result h2 small { font-size: 1.1rem; color: var(--sub); }
.lt-lv { margin: 8px 0 0; font-size: 1.2rem; }
.lt-lv b { color: var(--orange-h); font-family: var(--f-en); }
.lt-lvd { margin: 4px 0 0; color: var(--sub); }
.lt-areas { display: grid; gap: 10px; margin: 20px 0 0; }
.lt-areas div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3.5em; gap: 12px; align-items: center; font-size: .93rem; }
.lt-areas i { display: block; height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.lt-areas em { display: block; height: 100%; background: var(--orange); border-radius: 5px; }
.lt-areas b { font-family: var(--f-en); text-align: right; }
.lt-weak { margin: 16px 0 18px; color: var(--sub); font-size: .93rem; }
.lt-weak b { color: var(--ink); }
/* 한 단계 위 테스트 안내: 예비고1 레벨테스트 결과(기준 점수 이상) · 첫 화면 한 줄 */
.lt-up { margin: 0 0 22px; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 8px; background: #fff; }
.lt-up > b { display: block; font-size: 1.05rem; }
.lt-up p { margin: 6px 0 14px; color: var(--sub); font-size: .93rem; line-height: 1.7; }
.lt-up p b { color: var(--ink); }
.lt-upnote { margin: -12px 0 24px; font-size: .88rem; color: var(--sub); }
.lt-upnote b { color: var(--ink); }
.lt-direct-note b { color: var(--ink); }
.lt-direct-note + .lt-direct-note { margin-top: 8px; }
.lt-apply, .lt-done { margin-top: 28px; padding: 28px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.lt-apply h2, .lt-done h2 { font-size: 1.5rem; letter-spacing: -.02em; margin: 6px 0 0; }
.lt-apply .sc-sub b { color: var(--ink); }
.lt-done .btn { justify-self: start; border-radius: 6px; }
.lt-friend { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 8px; }
.lt-friend > .sc-lab { margin: 0; }
.lt-friend-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.lt-total { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.lt-total dt { font-weight: 700; }
.lt-total dd { margin: 0; text-align: right; }
.lt-total dd b { font-size: 1.5rem; color: var(--orange); font-family: var(--f-en); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lt-total dd s { color: var(--sub); margin-left: 6px; font-size: .9rem; }
.lt-total dd small { display: block; color: var(--orange-h); font-size: .8rem; font-weight: 700; }
.lt-pay { margin: 0; display: grid; gap: 8px; }
.lt-pay div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.lt-pay dt { color: var(--sub); font-size: .9rem; }
.lt-pay dd { margin: 0; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.lt-pay dd.big { font-size: 1.7rem; color: var(--orange); font-family: var(--f-en); font-variant-numeric: tabular-nums; }
.lt-pay .val { user-select: all; }
@media (max-width: 760px) {
  .wt-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-flow div:nth-child(3) { padding-left: 0; border-left: 0; }
  .wt-levels { grid-template-columns: minmax(0, 1fr); }
  .wt-together { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wt-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 0 6px; }
  .wt-nums > * { padding: 0 18px; }
  .wt-nh { grid-column: 1 / -1; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .wt-nh b { font-size: 2.1rem; }
  .wt-nums > div { border-left: 0; padding-top: 12px; padding-bottom: 14px; }
  .wt-nums > div:nth-of-type(even) { border-left: 1px solid rgba(255, 255, 255, .2); }
  .wt-nums div b { font-size: 2rem; }
  .wt-week th { width: 4.5em; }
  .wt-kit4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-kit4 div:nth-child(n+2) { padding-left: 0; border-left: 0; }
  .wt-kit4 div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .wt-together > div { order: -1; }
  .wt-chat .sc-img { max-height: 560px; }
  .wt-sched li, .wt-sched-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lt-opts:not(.nums) { grid-template-columns: minmax(0, 1fr); }
  .lt-psg { padding: 14px 14px; font-size: .96rem; }
  .lt-result, .lt-apply, .lt-done { padding: 20px 16px; }
  .lt-friend-in { grid-template-columns: minmax(0, 1fr); }
  .lt-result h2 { font-size: 2.6rem; }
  .lt-bar { gap: 10px; padding: 10px 12px; }
}

/* 고등영어 자료방(openchat.html) */
.rm-shot { position: relative; max-height: 640px; overflow: hidden; }
.rm-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), var(--paper, #fff)); }
.rm-two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.rm-week { margin: 0; }
.rm-week .sc-img { display: block; max-height: 520px; overflow: hidden; }
.rm-week img { width: 100%; height: auto; display: block; }
.rm-week figcaption { margin-top: 8px; font-size: .82rem; color: var(--sub); }
.rm-cta { margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .rm-two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rm-week { max-width: 320px; }
  .rm-shot { max-height: 520px; }
}

/* 첫 화면 휴대폰 전용 칸: 윈터스쿨 레벨테스트(예비고1 · 예비고2 단추) + 고등영어 자료방(오픈채팅) 단추. PC에서는 숨김 */
.hero-m { display: none; }
@media (max-width: 760px) {
  .hero-win { display: none; }
  .hero-m { display: grid; gap: 8px; margin-top: 6px; }
  .hm-l { margin: 0; font-size: .86rem; font-weight: 700; color: var(--sub); }
  .hm-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hm-btn { min-height: 42px; border-color: var(--ink); font-weight: 700; font-size: .92rem; }
  .hm-room { justify-self: start; min-height: 32px; padding: 0 14px; margin-top: 4px; border-radius: 999px; background: #fee500; border-color: #fee500; color: #191919; font-weight: 700; font-size: .78rem; gap: 6px; }
}

/* 레벨테스트 없이 등록 */
.lt-direct { display: block; margin: 12px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lt-direct:hover { color: var(--orange-h); }
.lt-direct-note { margin: 0; padding: 12px 14px; border-radius: 8px; background: #fff7f2; font-size: .86rem; color: var(--sub); }
.lt-direct-note a { font-weight: 700; color: var(--orange-h); }
.sc-form select { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 12px; font: inherit; font-size: .92rem; color: var(--ink); background: #fff; }
/* ── 계정: 머리글 로그인 · 로그인(이메일 → 인증번호) · 마이페이지(my.html) ── */
.nav a.navme { display: inline-flex !important; align-items: center; gap: 5px; font-weight: 600; }
.nav a.navme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 400px) { .nav a.navme { font-size: .9rem; } }
@media (max-width: 419px) { .nav a.navme span { display: none; } .nav a.navme svg { width: 22px; height: 22px; } }   /* 휴대폰: 사람 아이콘만(윈터스쿨 · 무료 해설 · 구매하기와 한 줄) */
.ac { padding: 44px 0 88px; }
.ac-card { max-width: 440px; margin: 0 auto; background: var(--surface); border-radius: var(--r); padding: 32px 28px; display: grid; gap: 18px; }
.ac-card h1 { font-size: 1.7rem; }
.ac-card .lead { color: var(--sub); font-size: .95rem; }
.ac-steps { display: flex; gap: 8px; font-size: .78rem; color: var(--sub); }
.ac-steps span { display: inline-flex; align-items: center; gap: 6px; }
.ac-steps b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); font-size: .72rem; }
.ac-steps .on { color: var(--ink); font-weight: 700; } .ac-steps .on b { background: var(--ink); color: #fff; border-color: var(--ink); }
.ac-field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.ac-field input { height: 50px; border: 1px solid var(--line-2); border-radius: var(--rb); padding: 0 14px; font: inherit; font-weight: 400; font-size: 1rem; background: #fff; }
.ac-field input:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.ac-card .btn { width: 100%; }
.ac-note { font-size: .82rem; color: var(--sub); display: grid; gap: 4px; }
.ac-note li { list-style: none; } .ac-note ul { margin: 0; padding: 0; display: grid; gap: 4px; }
.ac-note li::before { content: "·"; margin-right: 6px; }
.ac-sent { background: #fff; border: 1px solid var(--line); border-radius: var(--rb); padding: 12px 14px; font-size: .88rem; }
.ac-sent b { word-break: break-all; }
.ac-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ac-code input { height: 56px; text-align: center; font-size: 1.5rem; font-weight: 700; font-family: var(--f-en); border: 1px solid var(--line-2); border-radius: var(--rb); background: #fff; min-width: 0; }
.ac-code input.f { border-color: var(--ink); }
.ac-row { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--sub); }
.ac-row button { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
/* 마이페이지 */
.my { padding: 36px 0 96px; }
.my-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.my-head h1 { font-size: 2rem; }
.my-who { font-size: .9rem; color: var(--sub); display: flex; gap: 14px; align-items: center; }
.my-who b { color: var(--ink); font-weight: 600; }
.my-who a { color: var(--sub); }
.my-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
.my-sum div { background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; }
.my-sum span { font-size: .8rem; color: var(--sub); }
.my-sum b { font-family: var(--f-en); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.my-sum b small { font-family: var(--f-body); font-size: .85rem; font-weight: 500; margin-left: 2px; }
.my-sum .warn b { color: var(--orange); }
.my-sec { margin-top: 40px; }
.my-sec > h2 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.my-sec > h2 small { font-family: var(--f-body); font-size: .82rem; font-weight: 400; color: var(--sub); letter-spacing: 0; }
.my-sec > p.help { font-size: .86rem; color: var(--sub); margin-top: 6px; }
/* 입금 대기 */
.my-pay { margin-top: 14px; border: 1.5px solid var(--orange); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 12px; background: #fffaf6; }
.my-pay .t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.my-pay .t b { font-size: 1.05rem; }
.my-pay .t em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--orange); }
.my-pay dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; }
.my-pay dt { font-size: .76rem; color: var(--sub); } .my-pay dd { margin: 0; font-weight: 600; font-size: .95rem; }
.my-pay dd.big { font-family: var(--f-en); font-size: 1.2rem; color: var(--orange); }
.my-pay .items { font-size: .86rem; color: var(--sub); }
/* 내 자료 */
.my-list { margin-top: 14px; border-top: 1px solid var(--line); }
.my-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.my-item .fi-bk { width: 56px; }
.my-item .nm b { display: block; font-size: 1rem; }
.my-item .nm span { font-size: .82rem; color: var(--sub); }
.my-item .dd { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.my-item .left { font-size: .82rem; text-align: right; line-height: 1.4; }
.my-item .left b { display: block; font-family: var(--f-en); font-size: .95rem; }
.my-item .left.soon b { color: var(--orange); }
.my-item.off .nm, .my-item.off .fi-bk { opacity: .45; }
.my-item.off .left { color: var(--sub); }
.my-files { grid-column: 2 / -1; background: var(--surface); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.my-files .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; }
.my-files .h b { font-size: .9rem; }
.my-files .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.my-files .chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--rb); font-size: .82rem; text-decoration: none; }
.my-files .chips a:hover { border-color: var(--ink); }
.my-files .chips a.all { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.my-files .chips a small { color: var(--sub); font-size: .74rem; }
.my-files .chips a.all small { color: rgba(255,255,255,.7); }
/* 주문 내역 */
.my-orders { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .88rem; }
.my-orders th { text-align: left; font-weight: 600; font-size: .78rem; color: var(--sub); padding: 8px 10px; border-bottom: 1px solid var(--ink); }
.my-orders td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.my-orders td.num { font-family: var(--f-en); white-space: nowrap; }
.my-orders td.won { text-align: right; white-space: nowrap; font-weight: 600; }
.st { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 2px; padding: 1px 8px; white-space: nowrap; }
.st.wait { background: var(--orange-soft); color: var(--orange-h); }
.st.sent { background: #e7efe9; color: #2f5d43; }
.st.free { background: var(--panel); color: var(--taupe-ink); }
/* 알림 */
.my-opt { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; }
.my-opt small { display: block; color: var(--sub); font-size: .8rem; }
.sw { position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--ink); flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
@media (max-width: 640px) {
  .my-head h1 { font-size: 1.6rem; }
  .my-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .my-sum div { padding: 12px; } .my-sum b { font-size: 1.3rem; }
  .my-pay dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-item { grid-template-columns: 48px minmax(0, 1fr); }
  .my-item .fi-bk { width: 48px; }
  .my-item .dd { grid-column: 1 / -1; justify-content: space-between; }
  .my-item .left { text-align: left; }
  .my-files { grid-column: 1 / -1; }
  .my-orders thead { display: none; }
  .my-orders tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .my-orders td { border: 0; padding: 0; }
  .my-orders td.what { grid-column: 1 / -1; }
}
.done-my { font-size: .9rem; color: var(--sub); }
.done-my a { color: var(--ink); font-weight: 700; }
.ac-keep { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; user-select: none; }
.ac-keep input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.ac-keep small { color: var(--sub); font-size: .8rem; }
.ac-msg { font-size: .86rem; font-weight: 600; color: var(--red); min-height: 1.2em; }
.ac-msg.ok { color: #2f5d43; }
.my-empty { padding: 22px 0; color: var(--sub); font-size: .9rem; border-bottom: 1px solid var(--line); }
.my-files .chips button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--rb); font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink); }
.my-files .chips button:hover { border-color: var(--ink); }
.my-files .chips button.all { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.my-files .chips button small { color: var(--sub); font-size: .74rem; }
.my-files .chips button.all small { color: rgba(255, 255, 255, .7); }
.my-files .chips button[disabled] { opacity: .6; cursor: progress; }
.sw { border: 0; padding: 0; cursor: pointer; }
.sw[aria-checked="false"] { background: var(--line-2); }
.sw[aria-checked="false"]::after { left: 3px; }
.sw::after { transition: left .15s; }

/* ── 문턱 완주 프로젝트(winter.html, 2026-11-23 개편): 단계 사다리 · 교재 한 권의 구성 · 단계마다 깊어지는 표 · 5주 ── */
.wt-terms-line { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .9rem; color: var(--sub); font-variant-numeric: tabular-nums; }
.wt-terms-line b { color: var(--ink); margin-right: 4px; }
/* 첫 화면 오른쪽: 단계별 표지가 계단처럼 올라간다 */
.wt-stair { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; padding-top: 8px; }
.wt-st { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.wt-st img, .wt-st > i { display: block; width: 100%; height: auto; aspect-ratio: 240 / 340; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; box-shadow: 0 20px 30px -22px rgba(21, 23, 26, .6); }
.wt-st > i { display: grid; place-items: center; padding: 8px; text-align: center; font-style: normal; font-size: .78rem; font-weight: 700; line-height: 1.4; color: var(--sub); background: transparent; border-style: dashed; box-shadow: none; }
.wt-st > span { font-size: .78rem; color: var(--sub); line-height: 1.35; }
.wt-st > span b { display: block; font-family: var(--f-en); font-size: .9rem; color: var(--ink); }
.wt-st.s2 { margin-bottom: 30px; } .wt-st.s3 { margin-bottom: 60px; } .wt-st.s4 { margin-bottom: 90px; }
a.wt-st:hover img { border-color: var(--ink); }
/* 한 줄로 이어진 단계 */
.wt-ladder { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wt-ladder li { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px; background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--bk, var(--ink)); border-radius: 8px; }
.wt-ladder li + li::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1; z-index: 1; }
.wt-ladder li.soon { background: transparent; border-style: dashed; border-top-style: dashed; border-top-width: 1px; }
.wl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wl-top b { font-family: var(--f-en); font-size: 1.15rem; color: var(--bk, var(--ink)); }
.wl-top em { font-style: normal; font-size: .76rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface); color: var(--taupe-ink); }
.wl-top em.soon { background: var(--ink); color: #fff; }
.wt-ladder .wt-cv { width: 84px; }
.wt-ladder strong { font-size: 1.16rem; letter-spacing: -.02em; }
.wt-ladder p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--sub); }
.wl-who { padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; line-height: 1.5; }
.wl-time { font-size: .8rem; color: var(--taupe-ink); }
/* 시작 단계 찾기(무료 테스트) */
.wt-start { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; background: var(--ink); color: #fff; border-radius: 10px; scroll-margin-top: 84px; }
.wt-start > div > b { display: block; font-size: 1.12rem; }
.wt-start > div > span { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.wt-start-b { display: flex; flex-wrap: wrap; gap: 10px; }
.wt-start-b .btn { display: grid; justify-items: start; gap: 0; padding: 9px 18px; border-radius: 6px; line-height: 1.35; font-weight: 700; }
.wt-start-b .btn small { font-size: .76rem; font-weight: 500; opacity: .85; }
.wt-start-b .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.wt-start-b .btn:not(.primary):hover { border-color: #fff; }
/* 교재 한 권의 틀: 진단 → 24 POINT → PART REVIEW → 최종 시험 → 부록 */
.wt-frame { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.wt-frame li { position: relative; display: grid; gap: 2px; align-content: start; padding: 16px 16px 18px 0; border-bottom: 1px solid var(--line); }
.wt-frame li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.wt-frame li + li::before { content: "›"; position: absolute; left: -1px; top: 18px; transform: translateX(-50%); width: 16px; height: 16px; display: grid; place-items: center; background: var(--surface); color: var(--taupe-ink); font-size: 1rem; line-height: 1; }
.wt-frame span { font-family: var(--f-en); font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--orange-h); }
.wt-frame b { font-size: 1.16rem; letter-spacing: -.02em; }
.wt-frame i { font-style: normal; font-size: .86rem; }
.wt-frame em { margin-top: 4px; font-style: normal; font-size: .84rem; line-height: 1.5; color: var(--sub); }
.wt-frame li.h b { color: var(--orange-h); }
/* 단계별 교재 탭(라디오 단추로 바꾼다 — 스크립트 없음) */
.wt-tabs { position: relative; margin-top: 34px; }
.wt-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.wt-tl { display: flex; gap: 6px; border-bottom: 1px solid var(--ink); }
.wt-tl label { padding: 11px 18px 10px; font-size: .95rem; font-weight: 700; color: var(--sub); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 8px 8px 0 0; cursor: pointer; user-select: none; }
.wt-tl label b { font-family: var(--f-en); margin-right: 2px; }
.wt-tl label:hover { color: var(--ink); }
#wtbk1:checked ~ .wt-tl label[for="wtbk1"], #wtbk2:checked ~ .wt-tl label[for="wtbk2"], #wtbk3:checked ~ .wt-tl label[for="wtbk3"], #wtbk4:checked ~ .wt-tl label[for="wtbk4"] { margin-bottom: -1px; padding-bottom: 11px; background: #fff; color: var(--ink); border-color: var(--ink); box-shadow: inset 0 3px 0 var(--bk, var(--orange)); }
#wtbk1:focus-visible ~ .wt-tl label[for="wtbk1"], #wtbk2:focus-visible ~ .wt-tl label[for="wtbk2"], #wtbk3:focus-visible ~ .wt-tl label[for="wtbk3"], #wtbk4:focus-visible ~ .wt-tl label[for="wtbk4"] { outline: 2px solid var(--orange); outline-offset: 2px; }
.wt-pane { display: none; padding: 24px; background: #fff; border: 1px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; }
#wtbk1:checked ~ .wt-pane.p1, #wtbk2:checked ~ .wt-pane.p2, #wtbk3:checked ~ .wt-pane.p3, #wtbk4:checked ~ .wt-pane.p4 { display: block; }
.wt-bkhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.wt-bkhead p { margin: 0; }
.wt-bkhead strong { font-size: 1.25rem; letter-spacing: -.02em; color: var(--bk, var(--ink)); }
.wt-bkhead p span { display: block; margin-top: 2px; font-size: .88rem; color: var(--sub); }
.wt-bkhead .wt-bk { margin: 0; }
.wt-pane .wt-wh { margin-top: 26px; }
.wt-pages { display: grid; gap: 14px; }
.wt-pages.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wt-pages.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wt-pages figure { margin: 0; }
.wt-pages a { display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; box-shadow: 0 12px 22px -18px rgba(21, 23, 26, .55); }
.wt-pages a:hover { border-color: var(--ink); }
.wt-pages img { display: block; width: 100%; height: auto; }
.wt-pages figcaption { margin-top: 8px; font-size: .82rem; line-height: 1.5; color: var(--sub); }
.wt-pages figcaption b { display: block; font-size: .93rem; color: var(--ink); }
/* 접어 둔 표(25일 전체 · 24 POINT 전체) */
.wt-plan { margin-top: 22px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; overflow: hidden; }
.wt-plan summary { display: flex; align-items: baseline; gap: 8px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.wt-plan summary::-webkit-details-marker { display: none; }
.wt-plan summary small { flex: 1; font-weight: 500; color: var(--sub); }
.wt-plan summary::after { content: "펼치기 +"; font-size: .84rem; color: var(--orange-h); white-space: nowrap; }
.wt-plan[open] summary::after { content: "접기 −"; }
.wt-plan table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wt-plan th, .wt-plan td { padding: 9px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.wt-plan thead th { font-size: .8rem; font-weight: 500; color: var(--sub); }
.wt-plan tr.pt th { background: var(--surface); font-size: .92rem; }
.wt-plan tr.pt small { margin-left: 6px; font-family: var(--f-en); font-weight: 500; color: var(--sub); }
.wt-plan td:first-child { width: 3.4em; font-family: var(--f-en); font-weight: 700; color: var(--orange-h); }
.wt-plan td:nth-child(3) { color: var(--sub); }
.wt-plan tr.x td { background: #fffaf6; color: var(--sub); }
.wt-plan tr.x b { margin-right: 6px; color: var(--ink); }
.wt-plan .sc-cap { margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); }
/* 같은 POINT가 단계마다 깊어지는 표 */
.wt-spiral { margin-top: 26px; border-top: 1px solid var(--ink); }
.ws-head, .ws-row { display: grid; grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr)); }
.ws-head span { padding: 11px 14px 11px 0; font-size: .86rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.ws-head span + span { padding-left: 16px; box-shadow: inset 0 -3px 0 var(--bk, var(--ink)); }
.ws-head b { font-family: var(--f-en); color: var(--bk, var(--ink)); margin-right: 2px; }
.ws-row > span { position: relative; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.5; }
.ws-row > span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.ws-row > span + span + span::before { content: "→"; position: absolute; left: -1px; top: 15px; transform: translateX(-50%); padding: 1px 0; background: #fff; color: var(--taupe); font-size: .8rem; line-height: 1; }
.ws-row .t { font-weight: 700; }
.ws-row .t small { display: block; font-size: .74rem; color: var(--orange-h); }
.ws-row .t i { display: block; margin-top: 2px; font-style: normal; font-weight: 500; font-size: .8rem; color: var(--sub); }
.ws-part { padding: 9px 18px; background: var(--surface); font-size: .86rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.wt-spiral-all .wt-spiral { margin-top: 0; border-top: 1px solid var(--line); }
.wt-spiral-all .ws-head span:first-child, .wt-spiral-all .ws-row .t { padding-left: 18px; }
.wt-spiral-all .ws-head span { border-bottom-color: var(--line); }
/* 5주 */
.wt-weeks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: .9fr repeat(5, minmax(0, 1fr)); gap: 8px; }
.wt-weeks li { display: grid; gap: 3px; align-content: start; padding: 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; }
.wt-weeks li b { font-family: var(--f-en); font-size: .82rem; color: var(--orange-h); }
.wt-weeks li strong { font-size: 1.08rem; letter-spacing: -.02em; }
.wt-weeks li span { font-size: .84rem; line-height: 1.5; color: var(--sub); }
.wt-weeks li em { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-style: normal; font-size: .78rem; line-height: 1.6; color: var(--taupe-ink); font-variant-numeric: tabular-nums; }
.wt-weeks li.pre { background: transparent; border-style: dashed; }
.wt-weeks li.h { border-color: var(--ink); }
.wt-report { margin-top: 48px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.wt-report .sc-kit { margin-top: 14px; }
.wt-report .wt-wh { margin-top: 0; }
.wt-cv.ghost i { padding: 6px; text-align: center; line-height: 1.4; }
.wt-termtb { margin-top: 22px; }
.wt-termtb td { font-size: .95rem; color: var(--ink); }
.wt-sched .btn + .btn { margin-top: 0; }
.lt-pick { display: grid; gap: 8px; }
.lt-pick label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; cursor: pointer; }
.lt-pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lt-pick input { margin-top: 4px; accent-color: var(--orange); }
.lt-pick b { display: block; font-size: .98rem; }
.lt-pick b em { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-h); font-style: normal; font-size: .74rem; }
.lt-pick span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.5; color: var(--sub); }
.lt-pick.terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lt-pick label.off { opacity: .5; cursor: not-allowed; }
@media (max-width: 900px) {
  .wt-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-ladder li:nth-child(3)::before { display: none; }
  .wt-weeks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-frame { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-frame li:nth-child(4) { padding-left: 0; border-left: 0; }
  .wt-frame li:nth-child(4)::before { display: none; }
  .wt-pages.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wt-stair { gap: 8px; max-width: 420px; }
  .wt-st.s2 { margin-bottom: 18px; } .wt-st.s3 { margin-bottom: 36px; } .wt-st.s4 { margin-bottom: 54px; }
  .wt-ladder { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wt-ladder li { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; }
  .wt-ladder li > * { grid-column: 2; }
  .wt-ladder li > .wl-top { grid-column: 1 / -1; }
  .wt-ladder li > .wt-cv { grid-column: 1; grid-row: 2 / span 4; }
  .wt-ladder li + li::before, .wt-ladder li:nth-child(3)::before { display: grid; content: "↓"; left: 50%; top: -11px; }
  .wt-start { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .wt-start-b .btn { flex: 1 1 100%; }
  .wt-frame { grid-template-columns: minmax(0, 1fr); }
  .wt-frame li, .wt-frame li + li { grid-template-columns: 6.6em minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-left: 0; }
  .wt-frame li + li::before { display: none; }
  .wt-frame span { grid-row: 1 / span 3; padding-top: 4px; }
  .wt-frame b, .wt-frame i, .wt-frame em { grid-column: 2; }
  .wt-tl label { flex: 1 1 0; padding: 9px 6px 8px; font-size: .84rem; text-align: center; }
  .wt-tl label b { display: block; margin: 0; }
  .wt-pane { padding: 16px 14px; }
  .wt-pages { gap: 10px; }
  .wt-pages.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-pages.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wt-pages.five figcaption { font-size: .74rem; }
  .wt-pages.five figcaption b { font-size: .8rem; }
  .wt-plan summary { padding: 13px 14px; }
  .wt-plan table { font-size: .82rem; }
  .wt-plan th, .wt-plan td { padding: 8px 8px; }
  .wt-plan th:first-child, .wt-plan td:first-child { padding-left: 14px; width: 2.6em; }
  .ws-head { display: none; }
  .ws-row { grid-template-columns: minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ws-row > span, .ws-row > span + span { padding: 3px 0 3px 4.6em; border: 0; font-size: .9rem; }
  .ws-row > span.t { padding: 0 0 4px; font-size: 1rem; }
  .ws-row > span + span + span::before { display: none; }
  .ws-row > span[data-l]::after { content: attr(data-l); position: absolute; left: 0; top: 4px; font-family: var(--f-en); font-size: .76rem; font-weight: 700; color: var(--taupe-ink); }
  .wt-spiral-all .ws-row { padding-left: 14px; padding-right: 14px; }
  .wt-spiral-all .ws-row .t { padding-left: 0; }
  .ws-part { padding: 9px 14px; }
  .wt-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wt-report { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .wt-termtb td { white-space: normal; font-size: .88rem; }
  .lt-pick.terms { grid-template-columns: minmax(0, 1fr); }
}
