:root {
  --navy: #141b2d; --navy2: #1e2840; --cream: #f6f2ea; --paper: #fff;
  --ink: #1c2230; --gray: #6e727c; --line: #e4ded2; --orange: #f2a032; --orange-d: #c97a12;
  --radius: 14px; --shadow: 0 6px 24px rgba(20, 27, 45, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); line-height: 1.65;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand b { color: var(--orange); }
.top nav a { text-decoration: none; opacity: .85; margin-left: 18px; font-size: 15px; }
.top nav a:hover { opacity: 1; }

.hero { background: var(--navy); color: #fff; padding: 48px 0 56px; }
.kicker { color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.3; margin: 10px 0 14px; letter-spacing: -.03em; }
.hero h1 em, h2 em { font-style: normal; color: var(--orange); }
.hero p { opacity: .82; max-width: 640px; margin: 0; }
.exam { display: inline-block; margin-top: 18px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px; font-size: 14px; opacity: .9; }

section { padding: 44px 0; }
h2 { font-size: clamp(22px, 4.5vw, 30px); letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.35; }
.lead { color: var(--gray); margin: 0 0 24px; }

/* 자료 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.card .tag { font-size: 13px; font-weight: 700; color: var(--orange-d); }
.card h3 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -.02em; line-height: 1.4; }
.card p { margin: 0 0 18px; color: var(--gray); font-size: 15px; }
.card .btns { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 18px; border-radius: 10px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-main { background: var(--orange); color: var(--navy); }
.btn-main:hover { background: #f5b04f; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 14px; }

/* 책 */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.book { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.book .covers { display: flex; gap: 12px; margin-bottom: 14px; }
.book .covers img { width: calc(50% - 6px); border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.book h3 { margin: 0 0 4px; font-size: 18px; }
.book p { margin: 0 0 14px; color: var(--gray); font-size: 14px; }
.book .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* 메일 */
.mail { background: var(--navy2); color: #fff; border-radius: var(--radius); padding: 28px; }
.mail p { opacity: .82; margin: 0 0 16px; }

.foot { color: var(--gray); font-size: 13px; padding: 30px 0 90px; border-top: 1px solid var(--line); }
.foot a { color: var(--gray); }

/* 예상 문제 목록 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.chip { padding: 8px 14px; border-radius: 99px; background: var(--paper); border: 1.5px solid var(--line); font: inherit;
  font-size: 14px; cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.count { color: var(--gray); font-size: 14px; margin-bottom: 10px; }
.period-h { font-size: 18px; margin: 28px 0 10px; }
.q { background: var(--paper); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; display: grid;
  grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.q .no { font-weight: 800; color: var(--gray); font-size: 14px; }
.q .txt { font-size: 15px; }
.q .star { color: var(--orange); font-size: 13px; letter-spacing: 1px; margin-left: 6px; white-space: nowrap; }
.q .near { display: block; color: var(--gray); font-size: 13px; margin-top: 2px; }
.q.has { box-shadow: inset 4px 0 0 var(--orange), 0 1px 3px rgba(0,0,0,.05); }
@media (max-width: 560px) {
  .q { grid-template-columns: 34px 1fr; }
  .q .btn { grid-column: 2; justify-self: start; }
}
.warn { background: #fff4e8; border: 1.5px solid #e8b27a; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }

/* 팝업 */
.modal { position: fixed; inset: 0; background: rgba(10, 14, 24, .62); display: none; align-items: center; justify-content: center;
  padding: 16px; z-index: 50; }
.modal.on { display: flex; }
.sheet { background: var(--paper); border-radius: 16px; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; padding: 22px; position: relative; }
.close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream);
  font-size: 22px; cursor: pointer; line-height: 1; }
.sheet h3 { margin: 4px 44px 6px 0; font-size: 19px; line-height: 1.4; }
.sheet .src { color: var(--gray); font-size: 14px; margin: 0 0 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.peek { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.peek::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 90%); }
.lock { text-align: center; margin: -8px 0 14px; position: relative; z-index: 1; font-weight: 700; }
.lock small { display: block; font-weight: 400; color: var(--gray); }
.sheet .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dl-books { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.dl-books img { width: 90px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }

/* 아래 띠 */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; z-index: 40;
  transform: translateY(110%); transition: transform .3s; }
.bar.on { transform: none; }
.bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.bar p { margin: 0; font-size: 14px; flex: 1; }
.bar b { color: var(--orange); }
.bar .x { background: none; border: 0; color: #fff; opacity: .6; font-size: 20px; cursor: pointer; }

.doc { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.doc h2 { font-size: 22px; }
.doc h3 { margin-top: 24px; }

/* 시험 탭 */
.tabs-sec { padding-top: 0; }
.exam-tabs { display: flex; gap: 6px; margin: -26px 0 26px; overflow-x: auto; position: relative; z-index: 2; }
.etab { flex: 1 0 auto; padding: 15px 18px; border: 0; border-radius: 12px 12px 0 0; background: #e9e3d7; color: var(--gray);
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.etab[aria-selected="true"] { background: var(--cream); color: var(--ink); box-shadow: inset 0 3px 0 var(--orange); }
.etab:disabled { cursor: not-allowed; opacity: .55; }
.soon { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--gray); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 2px; }
.panel .exam { color: var(--gray); border-color: var(--line); margin: 0 0 16px; }
.panel .next { margin: 40px 0; }
.panel .book { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: center; margin-top: 30px; }
@media (max-width: 640px) {
  .panel .book { grid-template-columns: 1fr; }
  .etab { font-size: 14px; padding: 13px 12px; }
}

/* 머리 메뉴: 시험별 */
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a, .top nav .off { margin-left: 0; padding: 6px 10px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.top nav a[aria-current="page"] { background: rgba(255,255,255,.12); opacity: 1; box-shadow: inset 0 -2px 0 var(--orange); }
.top nav .off { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .top nav .soon { display: none; } .brand { font-size: 15px; } }

/* 첫 화면 시험 고르기 */
.pick { display: grid; gap: 16px; }
.pick-card { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; text-decoration: none; transition: transform .15s; }
a.pick-card:hover { transform: translateY(-2px); }
.pick-card img { width: 110px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.pick-card h3 { margin: 4px 0; font-size: 22px; }
.pick-card p { margin: 0 0 8px; color: var(--gray); font-size: 15px; }
.pick-card .tag { font-size: 13px; font-weight: 700; color: var(--orange-d); }
.pick-card .go { font-weight: 800; color: var(--orange-d); }
.pick-card.off { opacity: .5; cursor: not-allowed; box-shadow: none; border: 1.5px dashed var(--line); }
.pick-card.off .go, .pick-card.off .tag { color: var(--gray); }
.pick-card .ph { width: 110px; aspect-ratio: 0.7; border-radius: 4px; background: #e2ddd2; display: grid; place-items: center; color: var(--gray); font-weight: 800; }
@media (max-width: 480px) { .pick-card { grid-template-columns: 80px 1fr; gap: 14px; } .pick-card img, .pick-card .ph { width: 80px; } }

/* ── 첫 화면(고급형): 흰 바탕 · 가는 선 · 명조 제목 · 금색 ── */
body.home { background: #fff; --gold: #a8843f; --hair: #e7e3da; --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif; }
.home .top { background: #fff; color: var(--ink); border-bottom: 1px solid var(--hair); }
.home .top .wrap { height: 64px; }
.home .brand { font-weight: 600; letter-spacing: .02em; }
.home .brand b { color: var(--gold); font-weight: 600; }
.home .top nav a { opacity: .7; }
.home .top nav a:hover { opacity: 1; background: none; }
.home .top nav .off { opacity: .35; }
.home .soon { background: none; color: var(--gray); box-shadow: inset 0 0 0 1px currentColor; }

.lux-hero { text-align: center; padding: 104px 0 72px; }
.lux-kicker { font-size: 12px; letter-spacing: .38em; color: var(--gold); font-weight: 600; }
.lux-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 5.4vw, 48px); letter-spacing: -.01em; line-height: 1.35; margin: 22px 0 0; color: #15181f; }
.lux-hero .rule { display: block; width: 44px; height: 1px; background: var(--gold); margin: 30px auto; }
.lux-hero p { color: #6b6f78; font-size: 16px; line-height: 1.9; margin: 0; }
@media (max-width: 640px) { .lux-hero { padding: 64px 0 44px; } .lux-hero br.pc { display: none; } }

.pick3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 96px; }
.pick3 .col { position: relative; display: flex; flex-direction: column; padding: 52px 36px 44px; text-decoration: none; color: var(--ink);
  border-left: 1px solid var(--hair); min-height: 400px; transition: background .25s; }
.pick3 .col:first-child { border-left: 0; }
.pick3 a.col:hover { background: #faf8f3; }
.pick3 .ico { width: 60px; height: 60px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; transition: transform .25s; }
.pick3 a.col:hover .ico { transform: translateY(-3px); }
.pick3 .no { font-family: var(--serif); color: var(--gold); font-size: 14px; letter-spacing: .1em; }
.pick3 h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: -.01em; margin: 10px 0 14px; }
.pick3 p { color: #6b6f78; font-size: 15px; line-height: 1.8; margin: 0 0 28px; }
.pick3 .badge { position: absolute; top: 54px; right: 36px; font-size: 11px; letter-spacing: .2em; color: var(--gold); border: 1px solid var(--gold); padding: 3px 9px; }
.pick3 .go { margin-top: auto; font-size: 14px; font-weight: 600; letter-spacing: .04em; padding-bottom: 6px; border-bottom: 1px solid currentColor; align-self: flex-start; }
.pick3 .go i { font-style: normal; display: inline-block; transition: transform .25s; margin-left: 4px; }
.pick3 a.col:hover .go i { transform: translateX(5px); }
.pick3 .col.off { cursor: not-allowed; }
.pick3 .col.off > * { opacity: .38; }
.pick3 .soon-line { border-bottom-style: dashed; }
@media (max-width: 820px) {
  .pick3 { grid-template-columns: 1fr; border-bottom: 0; }
  .pick3 .col { border-left: 0; border-bottom: 1px solid var(--hair); min-height: 0; padding: 40px 8px 36px; }
  .pick3 .ico { width: 52px; height: 52px; margin-bottom: 26px; }
  .pick3 .badge { top: 42px; right: 8px; }
}
.lux-foot { border-top: 0; text-align: center; padding-bottom: 60px; }
.lux-hero h1, .pick3 p { text-wrap: balance; }
@media (min-width: 821px) { .pick3 .ico { width: 72px; height: 72px; } }

/* ── 첫 화면: 진한 회색 바탕에 떠 있는 카드 셋만 ── */
body.home.dark { background: radial-gradient(ellipse at 50% 35%, #2b2c30 0%, #1b1c1f 55%, #141517 100%) fixed; color: #e9e6df; min-height: 100vh; }
.dark .stage { min-height: 100vh; display: flex; align-items: center; padding: 48px 0; }
.dark .stage .wrap { max-width: 1120px; width: 100%; }
.dark .pick3 { border: 0; margin: 0; gap: 28px; }
.dark .pick3 .col { border: 1px solid rgba(255,255,255,.07); border-radius: 18px; background: linear-gradient(160deg, #2e2f34 0%, #232428 100%);
  color: #ece9e2; min-height: 430px; padding: 48px 36px 40px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 12px 24px -12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.dark .pick3 a.col:hover { background: linear-gradient(160deg, #33343a 0%, #26272b 100%); transform: translateY(-8px);
  box-shadow: 0 44px 80px -24px rgba(0,0,0,.8), 0 16px 30px -14px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.dark .pick3 .ico { stroke: #c9a45c; }
.dark .pick3 .no { color: #c9a45c; }
.dark .pick3 p { color: #a3a19b; }
.dark .pick3 .badge { color: #c9a45c; border-color: #c9a45c; }
.dark .pick3 .go { color: #ece9e2; }
.dark .pick3 .col.off { background: rgba(255,255,255,.025); box-shadow: none; border-style: dashed; }
@media (max-width: 820px) {
  .dark .stage { padding: 24px 0; }
  .dark .pick3 { gap: 18px; }
  .dark .pick3 .col { min-height: 0; padding: 34px 26px 30px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .dark .pick3 .badge { top: 36px; right: 24px; }
}
html:has(body.home.dark) { background: #141517; }
body.home.dark { background: radial-gradient(ellipse 120% 80% at 50% 30%, #2b2c30 0%, #1b1c1f 55%, #141517 100%) no-repeat, #141517; background-attachment: scroll; }

/* 카드 밝게 + 뒤에서 새어 나오는 간접등 */
.dark .pick3 .col { background: linear-gradient(160deg, #45464d 0%, #36373d 100%); border-color: rgba(255,240,215,.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 46px 6px rgba(255,214,150,.10), 0 0 110px 20px rgba(255,200,130,.06),
              0 34px 60px -24px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, background .4s, border-color .4s; }
.dark .pick3 a.col:hover { background: linear-gradient(160deg, #55565e 0%, #43444b 100%); border-color: rgba(255,226,180,.32); transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 60px 12px rgba(255,214,150,.22), 0 0 150px 40px rgba(255,200,130,.12),
              0 44px 80px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.16); }
.dark .pick3 a.col:hover .ico { stroke: #e2bf78; filter: drop-shadow(0 0 6px rgba(226,191,120,.45)); }
.dark .pick3 p { color: #b9b6ae; }
.dark .pick3 .col.off { background: rgba(255,255,255,.035); box-shadow: none; border-color: rgba(255,255,255,.12); }

/* 새까만 카드 · 큰 시험 이름 */
body.home.dark { background: radial-gradient(ellipse 120% 80% at 50% 30%, #3a3b40 0%, #2a2b2f 55%, #1f2023 100%) no-repeat, #1f2023; }
html:has(body.home.dark) { background: #1f2023; }
.dark .pick3 .col { background: linear-gradient(165deg, #121214 0%, #08080a 100%); border-color: rgba(214,178,110,.22);
  box-shadow: 0 0 50px 8px rgba(255,210,140,.14), 0 0 120px 26px rgba(255,196,120,.08), 0 34px 60px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.dark .pick3 a.col:hover { background: linear-gradient(165deg, #1a1a1d 0%, #0e0e10 100%); border-color: rgba(226,191,120,.5);
  box-shadow: 0 0 70px 14px rgba(255,210,140,.28), 0 0 170px 46px rgba(255,196,120,.15), 0 44px 80px -24px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.1); }
.dark .pick3 h2 { font-size: 36px; font-weight: 600; color: #f6f2ea; letter-spacing: -.02em; }
.dark .pick3 p { color: #c4c0b7; }
.dark .pick3 .col.off { background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.12); box-shadow: none; }
@media (max-width: 820px) { .dark .pick3 h2 { font-size: 31px; } }

/* 첫 화면: 시험 이름은 평소 흰색, 손대면 금색 */
.dark .pick3 h2 { transition: color .35s; }
.dark .pick3 a.col:hover h2 { color: #e2bf78; }

/* ══ 안쪽 쪽: 첫 화면과 같은 어두운 고급 틀 ══ */
body.inner { --gold: #c9a45c; --gold-l: #e2bf78; --hair: rgba(255,255,255,.09); --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  background: radial-gradient(ellipse 120% 60% at 50% 0%, #3a3b40 0%, #2a2b2f 45%, #1f2023 100%) no-repeat, #1f2023; color: #e9e6df; }
html:has(body.inner) { background: #1f2023; }
.inner a { color: inherit; }
.itop { border-bottom: 1px solid var(--hair); }
.itop .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.itop .brand { font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.itop .brand b { color: var(--gold); font-weight: 600; }
.itop nav { display: flex; gap: 4px; }
.itop nav a, .itop nav .off { padding: 6px 11px; font-size: 14px; text-decoration: none; opacity: .7; white-space: nowrap; }
.itop nav a:hover { opacity: 1; }
.itop nav a[aria-current="page"] { opacity: 1; color: var(--gold-l); box-shadow: inset 0 -1px 0 var(--gold); }
.itop nav .off { opacity: .3; cursor: not-allowed; }

.ihero { text-align: center; padding: 84px 0 56px; }
.ikick { font-size: 12px; letter-spacing: .26em; color: var(--gold); font-weight: 600; }
.ikick a { text-decoration: none; border-bottom: 1px solid rgba(201,164,92,.4); }
.ihero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5.6vw, 50px); line-height: 1.3; margin: 20px 0 0; color: #f6f2ea; text-wrap: balance; }
.ihero h1 em, .inext h2 em { font-style: normal; color: var(--gold-l); }
.ihero .rule { display: block; width: 44px; height: 1px; background: var(--gold); margin: 28px auto; }
.ihero p { color: #b9b6ae; max-width: 640px; margin: 0 auto; line-height: 1.85; text-wrap: balance; }
.ihero p b { color: var(--gold-l); }
.itag { display: inline-block; margin-top: 22px; padding: 6px 14px; border: 1px solid rgba(201,164,92,.4); color: var(--gold-l); font-size: 13px; letter-spacing: .04em; }

/* 떠 있는 검은 카드 */
.gcard, .ibook, .imail, .inner .q, .inner .warn, .inner .sheet {
  background: linear-gradient(165deg, #121214 0%, #08080a 100%); border: 1px solid rgba(214,178,110,.2);
  box-shadow: 0 0 46px 6px rgba(255,210,140,.10), 0 30px 56px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05); }
.gcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.gcard { display: flex; flex-direction: column; padding: 40px 36px 34px; border-radius: 18px; text-decoration: none; min-height: 290px;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s; }
.gcard:hover { transform: translateY(-6px); border-color: rgba(226,191,120,.5);
  box-shadow: 0 0 66px 12px rgba(255,210,140,.24), 0 0 150px 40px rgba(255,196,120,.12), 0 40px 70px -24px rgba(0,0,0,.85); }
.gcard .meta { font-size: 12px; letter-spacing: .18em; color: var(--gold); font-weight: 600; }
.gcard h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 12px 0 12px; color: #f6f2ea; transition: color .35s; }
.gcard:hover h3 { color: var(--gold-l); }
.gcard p { color: #b9b6ae; font-size: 15px; line-height: 1.8; margin: 0 0 26px; }
.gcard .go { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: 14px; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 5px; }
.gcard .go i { font-style: normal; display: inline-block; margin-left: 4px; transition: transform .3s; }
.gcard:hover .go i { transform: translateX(5px); }

.inext { text-align: center; padding: 84px 0 76px; }
.inext h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 4.2vw, 34px); color: #f6f2ea; margin: 0 0 14px; text-wrap: balance; }
.inext p { color: #b9b6ae; max-width: 620px; margin: 0 auto 26px; line-height: 1.85; }
.inext b { color: var(--gold-l); }

.ibook { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; padding: 34px; border-radius: 18px; margin-bottom: 76px; }
.ibook .covers { display: flex; gap: 12px; }
.ibook .covers img { width: calc(50% - 6px); border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.ibook h3 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 10px 0 10px; color: #f6f2ea; }
.ibook p { color: #b9b6ae; margin: 0 0 20px; line-height: 1.8; }
.ibook .btns, .inner .sheet .btns { display: flex; gap: 10px; flex-wrap: wrap; }

.imail { border-radius: 18px; padding: 40px 36px; text-align: center; margin-bottom: 30px; }
.imail h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 3.6vw, 27px); color: #f6f2ea; margin: 14px 0 10px; text-wrap: balance; }
.imail p { color: #b9b6ae; margin: 0 0 22px; }

.btn-gold { background: linear-gradient(180deg, #d9b56f, #b98f45); color: #141414; box-shadow: 0 6px 22px -6px rgba(217,181,111,.55); }
.btn-gold:hover { background: linear-gradient(180deg, #e6c483, #c99c51); }
.btn-ghost { background: transparent; color: #ece9e2; box-shadow: inset 0 0 0 1px rgba(236,233,226,.4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-l); color: var(--gold-l); }

.ifoot { color: #85827b; font-size: 13px; padding: 34px 0 96px; border-top: 1px solid var(--hair); text-align: center; line-height: 1.8; }
.ifoot a { color: #a3a09a; }

/* 예상 문제 목록(어두운 판) */
.inner .warn { color: #d8d4cb; border-radius: 14px; border-color: rgba(214,178,110,.32); }
.inner .warn b { color: var(--gold-l); }
.inner .chip { background: transparent; color: #d8d4cb; border-color: rgba(255,255,255,.18); }
.inner .chip[aria-pressed="true"] { background: var(--gold); color: #141414; border-color: var(--gold); }
.inner .count { color: #8f8c85; }
.inner .period-h { font-family: var(--serif); font-weight: 500; color: #f6f2ea; font-size: 20px; margin: 36px 0 12px; }
.inner .q { border-radius: 12px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.7); border-color: rgba(255,255,255,.07); }
.inner .q.has { border-color: rgba(214,178,110,.32); box-shadow: inset 3px 0 0 var(--gold), 0 0 26px 2px rgba(255,210,140,.06); }
.inner .q .no { color: #8f8c85; }
.inner .q .txt { color: #ece9e2; }
.inner .q .near { color: #8f8c85; }
.inner .q .star { color: var(--gold); }
.inner .q .btn-main, .inner .sheet .btn-main { background: linear-gradient(180deg, #d9b56f, #b98f45); color: #141414; }
.inner .q .btn-line, .inner .sheet .btn-line { color: #ece9e2; box-shadow: inset 0 0 0 1px rgba(236,233,226,.4); }

.inner .modal { background: rgba(5,5,7,.72); backdrop-filter: blur(3px); }
.inner .sheet { color: #ece9e2; border-radius: 18px; }
.inner .sheet h3 { color: #f6f2ea; font-family: var(--serif); font-weight: 600; }
.inner .sheet .kicker, .inner .sheet .ikick { color: var(--gold); }
.inner .sheet .src { color: #a8a59e; }
.inner .close { background: rgba(255,255,255,.08); color: #ece9e2; }
.inner .peek { border-color: rgba(255,255,255,.12); }
.inner .peek::after { background: linear-gradient(to bottom, rgba(8,8,10,0), #0b0b0d 92%); }
.inner .lock { color: var(--gold-l); }
.inner .lock small { color: #a8a59e; }
.inner .bar { background: #0b0b0d; border-top: 1px solid rgba(214,178,110,.3); box-shadow: 0 -10px 40px rgba(255,210,140,.08); }
.inner .bar b { color: var(--gold-l); }

.ipriv .doc { background: linear-gradient(165deg, #121214, #08080a); color: #d8d4cb; border: 1px solid rgba(214,178,110,.2); box-shadow: 0 0 46px 6px rgba(255,210,140,.08); margin: 60px 0; }
.ipriv .doc h2, .ipriv .doc h3 { color: #f6f2ea; font-family: var(--serif); font-weight: 500; }

@media (max-width: 760px) {
  .gcards { grid-template-columns: 1fr; gap: 20px; }
  .gcard { min-height: 0; padding: 32px 26px 28px; }
  .gcard h3 { font-size: 26px; }
  .ibook { grid-template-columns: 1fr; padding: 26px; }
  .ihero { padding: 56px 0 40px; }
  .itop nav a, .itop nav .off { padding: 6px 7px; font-size: 13px; }
  .itop .brand { font-size: 15px; }
}

/* 테두리 버튼도 눌리는 버튼으로 보이게 */
.btn-ghost, .inner .q .btn-line, .inner .sheet .btn-line { background: rgba(255,255,255,.06); color: #f3efe7; box-shadow: inset 0 0 0 1.5px rgba(226,191,120,.65); }
.btn-ghost:hover, .inner .sheet .btn-line:hover { background: rgba(226,191,120,.12); color: #f3efe7; box-shadow: inset 0 0 0 1.5px #e2bf78; }

/* 미리보기 3개 뒤 안내 */
.inner .seen { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #e9e6df; }
.inner .seen b { color: #e2bf78; }
.inner .seen .src { display: inline; font-size: 13px; }
@media (max-width: 560px) { .inner .dl-books { flex-wrap: wrap; } .inner .dl-books img { width: 70px; } }

/* 안내 다시 열기 단추(오른쪽 아래) */
.pill { position: fixed; right: 16px; bottom: 84px; z-index: 45; display: none; padding: 11px 16px; border-radius: 99px; border: 1px solid rgba(226,191,120,.6);
  background: #0b0b0d; color: #f3efe7; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 0 30px 4px rgba(255,210,140,.18); }
.pill.on { display: block; }
.pill:hover { border-color: #e2bf78; color: #e2bf78; }

/* 분석 범위 숫자 줄 · 회차 눈금자 */
.istats { display: flex; justify-content: center; margin: 6px auto 0; max-width: 820px; }
.istats .st { flex: 1; padding: 6px 18px; border-left: 1px solid rgba(201,164,92,.28); }
.istats .st:first-child { border-left: 0; }
.istats b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.6vw, 44px); color: var(--gold-l); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.istats b em { font-style: normal; color: rgba(226,191,120,.55); margin: 0 2px; }
.istats b small { font-family: inherit; font-size: .42em; color: #b9b6ae; margin-left: 3px; letter-spacing: 0; }
.istats .st > span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .14em; color: #8f8c85; }
.iruler { max-width: 560px; margin: 34px auto 0; }
.iruler .tk { display: flex; align-items: flex-end; gap: 0; height: 22px; }
.iruler .tk i { flex: 1; height: 12px; border-left: 1px solid rgba(236,233,226,.32); }
.iruler .tk i:first-child, .iruler .tk i:nth-last-child(1 of :not(.nx)) { height: 20px; border-left-color: rgba(236,233,226,.6); }
.iruler .tk .gap { flex: 1.6; border-bottom: 1px dashed rgba(201,164,92,.35); height: 0; margin-bottom: 0; align-self: flex-end; }
.iruler .tk i.nx { flex: 0 0 auto; width: 9px; height: 9px; margin-left: 8px; border: 0; border-radius: 50%; background: var(--gold-l);
  box-shadow: 0 0 0 4px rgba(226,191,120,.15), 0 0 16px 3px rgba(226,191,120,.55); align-self: center; animation: nxglow 2.6s ease-in-out infinite; }
@keyframes nxglow { 50% { box-shadow: 0 0 0 6px rgba(226,191,120,.08), 0 0 24px 6px rgba(226,191,120,.35); } }
.iruler .lb { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #8f8c85; letter-spacing: .06em; }
.iruler .lb span:nth-child(2) { margin-right: auto; margin-left: auto; transform: translateX(-30%); }
.iruler .lb .g { color: var(--gold-l); }
.inote { color: #d8d4cb !important; font-size: 15px; margin: 22px auto 10px !important; }
.istats.sm b { font-size: clamp(22px, 3.6vw, 32px); }
.istats.sm + .iruler { margin-top: 26px; }
@media (max-width: 640px) {
  .istats { flex-wrap: wrap; }
  .istats .st { flex: 0 0 50%; padding: 12px 8px; border-left: 0; }
  .istats .st:nth-child(even) { border-left: 1px solid rgba(201,164,92,.28); }
  .istats .st:nth-child(n+3) { border-top: 1px solid rgba(201,164,92,.18); }
  .iruler { margin-top: 24px; }
}

/* 눈금자 다시: 눈금 칸 · 점선 · 예상 점 */
.iruler .tk { display: flex; align-items: center; height: 22px; }
.iruler .tk .ticks { flex: 1; display: flex; align-items: flex-end; height: 20px; border-right: 1px solid rgba(236,233,226,.6); }
.iruler .tk .ticks i { flex: 1; height: 12px; border-left: 1px solid rgba(236,233,226,.32); }
.iruler .tk .ticks i:first-child { height: 20px; border-left-color: rgba(236,233,226,.6); }
.iruler .tk .gap { flex: 0 0 44px; height: 0; border-bottom: 1px dashed rgba(201,164,92,.45); margin: 0 6px; }
.iruler .tk .nxs { display: flex; gap: 8px; }
.iruler .tk .nxs i.nx { margin: 0; }
.iruler .lb { display: flex; align-items: flex-start; gap: 12px; }
.iruler .lb .ticks { flex: 1; display: flex; justify-content: space-between; }
.iruler .lb .ticks span:last-child { transform: translateX(50%); }
.iruler .lb .ticks span:first-child { transform: translateX(-50%); }
.iruler .lb span:nth-child(2) { margin: 0; }
.iruler .lb .g { white-space: nowrap; }
.inote { word-break: keep-all; }

/* 눈금자: 오른쪽 칸(점·예상 글자) 폭을 위아래 같게 */
.iruler { --rw: 170px; }
.iruler .tk .rt { flex: 0 0 var(--rw); display: flex; align-items: center; }
.iruler .tk .rt .gap { flex: 1; margin: 0 8px 0 0; }
.iruler .lb { gap: 0; }
.iruler .lb .g { flex: 0 0 var(--rw); text-align: right; }
.iruler .lb .ticks span:last-child { transform: translateX(50%); }
@media (max-width: 640px) { .iruler { --rw: 150px; } .iruler .lb { font-size: 11px; } }

.iruler { --rw: 120px; }
.iruler .lb .ticks span:first-child, .iruler .lb .ticks span:last-child { transform: none; }
.iruler .lb .g { padding-left: 8px; }
@media (max-width: 640px) { .iruler { --rw: 104px; } }

@media (max-width: 640px) { .iruler { --rw: 128px; } .iruler .lb { letter-spacing: 0; } }
.iruler .tk .ticks i:last-child:not(:first-child) { height: 12px; border-left-color: rgba(236,233,226,.32); }
