/* 시험지 — 바깥은 얇은 유리와 모더니즘 격자, 안쪽 시험지는 종이
   차례: 1 바탕값 · 2 배경 · 3 위 메뉴 · 4 공통 부품 · 5 홈 · 6 자격 화면 · 7 회차 시험지
        8 시험 정보 · 9 수능 · 10 모의문제 · 11 바닥·글 화면 · 12 나타나기 · 13 좁은 화면 · 14 인쇄 */

/* ── 1. 바탕값 ── */
:root {
  --bg: #f4f2ee;
  --bg-2: #ebe8e3;
  --text: #171412;
  --text-2: #524c47;
  --text-3: #6f6862;
  --ink: #121010;          /* 시험지 글씨 */
  --ink-2: #2e2926;
  --paper: #fffdf9;
  --paper-line: #2a2523;
  --accent: #0f766e;
  --accent-deep: #0b5d56;
  --accent-soft: #e2f0ed;
  --navy: #1f3550;
  --navy-2: #24507e;
  --line: rgba(23, 20, 18, 0.11);
  --line-2: rgba(23, 20, 18, 0.2);
  --surface: rgba(255, 255, 255, 0.7);
  --r: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --display: 'Unbounded', var(--sans);
  --serif: 'Noto Serif KR', 'Batang', serif;
  --ev-apply: #0b5d56; --ev-apply-bg: #dcefeb; --ev-exam: #171412; --ev-result: #2f5d8a; --ev-result-bg: #e1eaf4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; font-family: var(--sans); color: var(--text); line-height: 1.6;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; }
h1, h2, h3, .lead, .sec-head p { text-wrap: balance; }
p, .q-stem, .q-exp { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* ── 2. 배경: 모눈 + 넓은 빛 번짐 + 가는 원 선 ── */
.scene { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(23, 20, 18, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 20, 18, 0.06) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 15%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 15%, transparent 78%); }
.glow { position: absolute; border-radius: 50%; }
.g1 { width: 70vmax; height: 70vmax; right: -22vmax; top: -38vmax; background: radial-gradient(closest-side, rgba(126, 170, 160, 0.34), rgba(170, 200, 192, 0.14) 58%, transparent); }
.g2 { width: 66vmax; height: 66vmax; left: -30vmax; bottom: -36vmax; background: radial-gradient(closest-side, rgba(160, 176, 196, 0.42), rgba(190, 200, 210, 0.14) 58%, transparent); }
.g3 { width: 36vmax; height: 36vmax; left: 34vw; top: 30vh; background: radial-gradient(closest-side, rgba(205, 222, 216, 0.32), transparent); }
.arc { position: absolute; border-radius: 50%; border: 1px solid rgba(23, 20, 18, 0.08); }
.a1 { width: 64vmax; height: 64vmax; right: -22vmax; top: -30vmax; }
.a2 { width: 46vmax; height: 46vmax; right: -13vmax; top: -21vmax; border-color: rgba(15, 118, 110, 0.14); }

/* ── 3. 위 메뉴: 화면 폭을 다 쓰는 얇은 유리 막대 ── */
.nav-wrap { position: sticky; top: 0; z-index: 30; background: rgba(250, 248, 245, 0.74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.nav { width: min(1180px, 100% - 40px); margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 2px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; margin-right: auto; }
.logo-mark { position: relative; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--text); color: #fff; }
.logo-mark::after { content: ''; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #faf8f5; }
.nav-link { text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 13px; border-radius: 8px; color: var(--text-2); white-space: nowrap; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.nav-link:hover { background: rgba(23, 20, 18, 0.06); color: var(--text); }
.is-sitting .nav-wrap { position: relative; } /* 시험지 화면은 보기 막대 하나만 따라온다 */

main { position: relative; z-index: 1; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 28px 0 88px; }
.wrap.narrow { width: min(760px, 100% - 40px); }

/* ── 4. 공통 부품 ── */
.glass {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px -24px rgba(48, 30, 16, 0.3);
}
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--accent-deep); display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; flex: none; width: 14px; height: 2px; background: currentColor; }
.lead { max-width: 640px; margin: 14px 0 0; font-size: clamp(15.5px, 1.4vw, 17.5px); color: var(--text-2); line-height: 1.7; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); margin: 0 0 22px; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs b { color: var(--text); font-weight: 600; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin: 56px 0 16px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(21px, 2.3vw, 26px); font-weight: 800; }
.sec-head p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.go { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease); }
a:hover .go { transform: translate(2px, -2px); background: var(--text); color: #fff; }
.pill { text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.7); color: var(--text); white-space: nowrap; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.pill:hover { background: #fff; border-color: var(--text); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.8); color: var(--text); padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease); }
.btn-ghost:hover { background: #fff; border-color: var(--text); }
.btn-ghost:active { transform: scale(0.97); }
.btn-ghost.sm { padding: 5px 10px; font-size: 13px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 16px; border-radius: var(--r-sm); background: var(--text); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.2s var(--ease), background 0.25s var(--ease); }
.btn-primary:hover { background: #000; }
.btn-primary .go { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-primary:hover .go { transform: translate(2px, -2px); background: var(--accent); }
.btn-primary:active { transform: scale(0.98); }
button.btn-primary { padding: 12px 26px; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: rgba(23, 20, 18, 0.07); }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.seg button:hover { color: var(--text); background: rgba(255, 255, 255, 0.7); }
.seg button[aria-selected='true'] { background: var(--text); color: #fff; box-shadow: 0 6px 14px -8px rgba(23, 20, 18, 0.7); }
.sel select { appearance: none; border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23171412' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 8px 34px 8px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; max-width: 260px; cursor: pointer; }
.sel select option { color: var(--ink); }
.note-line { margin: 16px 0 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--accent); font-size: 14.5px; color: var(--text-2); max-width: 720px; }

/* ── 5. 홈 ── */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 40px; align-items: center; padding: 22px 0 6px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.06; font-weight: 800; letter-spacing: -0.05em; }
.hero h1 i { font-style: normal; color: var(--accent-deep); }
.hero .lead { max-width: 520px; }
.search { margin-top: 26px; display: flex; align-items: center; gap: 10px; max-width: 540px; padding: 4px 6px 4px 16px; border-radius: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 16px 30px -24px rgba(48, 30, 16, 0.5); transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.search:focus-within { border-color: var(--text); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16), 0 16px 30px -24px rgba(48, 30, 16, 0.5); }
.search-ic { color: var(--text-3); display: flex; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 13px 0; font-size: 16.5px; color: var(--ink); }
.search input::placeholder { color: #8d857f; }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; }
.hero-quick > span { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.hero-stat { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0 0; font-size: 13.5px; color: var(--text-2); }
.hero-stat span { padding: 0 22px; border-left: 1px solid var(--line-2); }
.hero-stat span:first-child { padding-left: 0; border-left: 0; }
.hero-stat b { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--text); margin-right: 6px; letter-spacing: -0.03em; }

/* 홈 머리 그림: 진짜 시험지 한 장 위에 유리 해설 카드 */
.hero-art { position: relative; display: block; height: 420px; margin-top: 14px; text-decoration: none; color: var(--ink); }
.art-paper { position: absolute; right: 14px; top: 0; width: min(372px, 88%); height: 404px; overflow: hidden; padding: 22px 24px; background: var(--paper); border-radius: 3px; font-family: var(--serif); font-size: 12.5px; line-height: 1.7; font-weight: 500; transform: rotate(2deg); transform-origin: 60% 40%; box-shadow: 0 0 0 1px rgba(23, 20, 18, 0.08), 5px 5px 0 -1px #faf6f0, 5px 5px 0 0 rgba(23, 20, 18, 0.1), 0 36px 60px -34px rgba(48, 30, 16, 0.55); transition: transform 0.6s var(--ease); }
.hero-art:hover .art-paper { transform: rotate(1deg) translateY(-4px); }
.art-paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--paper) 85%); }
.art-top { display: block; margin: 0 0 12px; padding: 8px 0 7px; border-top: 2px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); text-align: center; font-size: 13.5px; font-weight: 700; }
.art-sub { display: block; margin: 0 0 10px; padding-bottom: 5px; border-bottom: 1.5px solid var(--paper-line); font-family: var(--sans); font-size: 11.5px; font-weight: 700; }
.art-q { display: block; margin: 0 0 12px; }
.art-q b { display: block; font-weight: 700; margin-bottom: 5px; }
.art-box { display: block; border: 1px solid #3d3733; padding: 6px 10px; margin: 0 0 6px; font-size: 12px; }
.art-box span { display: block; }
.art-ch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.art-ch.one { grid-template-columns: 1fr; }
.art-ch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-glass { position: absolute; left: 0; bottom: 6px; width: min(310px, 78%); padding: 14px 16px 15px; border-radius: var(--r); background: rgba(255, 255, 255, 0.58); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(23, 20, 18, 0.07), inset 0 1px 0 #fff, 0 26px 44px -22px rgba(48, 30, 16, 0.5); font-family: var(--sans); }
.art-glass .q-ans { margin-bottom: 6px; }
.art-glass .art-exp { margin: 0; font-size: 13.5px; line-height: 1.65; color: #1f1b18; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art-tabs { position: absolute; right: -6px; top: -20px; z-index: 2; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(23, 20, 18, 0.07), 0 16px 28px -18px rgba(48, 30, 16, 0.5); font-size: 12px; font-weight: 700; }
.art-tabs span { padding: 5px 10px; border-radius: 7px; color: var(--text-2); }
.art-tabs span.on { background: var(--text); color: #fff; }

/* 시험 카드: 응시자 많은 순서 그대로, 촘촘하게 */
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ex-card { display: flex; flex-direction: column; gap: 4px; min-height: 152px; padding: 16px 18px 15px; text-decoration: none; transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.ex-card:hover { transform: translateY(-2px); background: #fff; border-color: var(--text); }
.ex-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 28px; margin-bottom: 2px; }
.ex-org { font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-name { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-meta { display: flex; flex-wrap: wrap; margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ex-meta span + span::before { content: '·'; margin: 0 6px; color: var(--text-3); }
.ex-feature { grid-column: span 2; background: var(--text); border-color: var(--text); color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 20px 36px -24px rgba(23, 20, 18, 0.7); overflow: hidden; }
.ex-feature::before { content: ''; position: absolute; right: -70px; top: -90px; width: 250px; height: 250px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.035), 0 0 0 45px rgba(255, 255, 255, 0.1); pointer-events: none; }
.ex-feature:hover { background: #000; border-color: #000; }
.ex-feature .ex-org { color: #8fd6c9; }
.ex-feature .ex-name { color: #fff; font-size: 30px; }
.ex-feature .ex-desc { color: rgba(255, 255, 255, 0.8); font-size: 14.5px; }
.ex-feature .ex-meta { color: rgba(255, 255, 255, 0.8); }
.ex-feature .ex-meta span + span::before { color: rgba(255, 255, 255, 0.45); }
.ex-feature .go { color: #fff; background: rgba(255, 255, 255, 0.12); }
.ex-feature:hover .go { background: var(--accent); }
.ex-empty { margin: 18px 0; color: var(--text-2); }
.info-head { margin-top: 56px; }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.chip-card { display: flex; align-items: center; gap: 8px; padding: 11px 10px 11px 16px; border-radius: var(--r-sm); text-decoration: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.chip-card:hover { background: #fff; border-color: var(--text); }
.chip-card b { flex: 1; font-size: 15px; font-weight: 700; }
/* 보기 방식 네 가지: 카드 대신 줄 하나로 */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 2px solid var(--text); }
.how-item { padding: 18px 20px 4px 0; }
.how-item + .how-item { padding-left: 20px; border-left: 1px solid var(--line-2); }
.how-item b { display: block; font-size: 17px; font-weight: 800; margin: 8px 0 4px; }
.how-item p { margin: 0; font-size: 14px; color: var(--text-2); }
.how-n { font-family: var(--display); font-size: 12px; color: var(--accent-deep); }

/* ── 6. 자격 화면·고르기 화면 ── */
.exam-hero { padding: 4px 0 26px; border-bottom: 1px solid var(--line-2); }
.exam-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.15; }
.sit-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.sit-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 28px; align-items: center; gap: 20px; padding: 16px 16px 16px 22px; text-decoration: none; transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease); }
.sit-card:hover { background: #fff; border-color: var(--text); transform: translateX(3px); }
.sc-year { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -0.04em; }
.sc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-main b { font-size: 17.5px; font-weight: 700; }
.sc-main span { font-size: 13.5px; color: var(--text-2); }
.sc-n { font-family: var(--display); font-size: 18px; text-align: right; white-space: nowrap; }
.sc-n small { font-family: var(--sans); font-size: 13px; margin-left: 3px; color: var(--text-2); }

/* ── 7. 회차 시험지 ── */
.sit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; padding: 0 0 4px; }
.sit-head h1 { font-size: clamp(25px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.2; }
.sit-head h1 em { font-style: normal; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.sit-sub { margin: 6px 0 0; font-size: 14.5px; color: var(--text-2); }
.sit-other { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 460px; }
.sit-other > span { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.toolbar { position: sticky; top: 10px; z-index: 20; margin-top: 18px; padding: 5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: rgba(252, 250, 247, 0.8); box-shadow: inset 0 1px 0 #fff, 0 14px 28px -18px rgba(48, 30, 16, 0.4); }
.tools { display: flex; gap: 6px; align-items: center; }
.score[hidden] { display: none !important; }
.score { display: inline-flex; gap: 12px; align-items: center; padding: 0 6px 0 4px; font-size: 13.5px; color: var(--text); }
.score span { white-space: nowrap; }
.score b { font-family: var(--display); font-weight: 500; font-size: 15px; }
.mode-hint { margin: 12px 2px 0; font-size: 14px; color: var(--text-2); }

/* 종이: 모서리가 선 낱장, 아래에 한 장 더 겹친 느낌 */
.paper-tray { margin-top: 14px; }
.paper {
  background: var(--paper); color: var(--ink); border-radius: 3px; padding: clamp(24px, 4.5vw, 60px); font-family: var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  box-shadow: 0 0 0 1px rgba(23, 20, 18, 0.09), 6px 6px 0 -1px #faf6f0, 6px 6px 0 0 rgba(23, 20, 18, 0.1), 0 40px 70px -48px rgba(48, 30, 16, 0.6);
}
.paper-head { border-top: 3px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); padding: 18px 0 16px; margin-bottom: 28px; text-align: center; }
.ph-top { margin: 0 0 14px; font-size: clamp(19px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.ph-table { margin: 0 auto; border-collapse: collapse; font-family: var(--sans); font-size: 13.5px; }
.ph-table th, .ph-table td { border: 1px solid #8d847e; padding: 6px 14px; }
.ph-table th { background: #f3eee9; font-weight: 600; white-space: nowrap; }
.subject-block { margin-bottom: 34px; }
.subject-h { font-family: var(--sans); font-size: 16px; font-weight: 700; padding: 8px 0; margin-bottom: 18px; border-bottom: 2px solid var(--paper-line); display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.subject-h span { font-size: 12.5px; font-weight: 600; color: #fff; background: var(--paper-line); padding: 2px 9px; border-radius: 4px; }
.q-cols { column-count: 2; column-gap: 44px; column-rule: 1px solid #cfc6bf; }
/* 화면에서는 10문항씩 한 '쪽'으로 끊어 2단(왼쪽 단 끝까지 내려갔다 다시 올라오지 않게) */
.q-cols + .q-cols { margin-top: 8px; padding-top: 26px; border-top: 1px dashed #d8cfc8; }
.q { break-inside: avoid; margin: 0 0 30px; font-size: 17px; line-height: 1.85; font-weight: 500; }
.q-stem { font-size: inherit; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.q-stem u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.q-no { font-weight: 700; margin-right: 2px; }
.q-box { border: 1px solid #3d3733; padding: 12px 16px; margin: 0 0 10px; font-size: 16px; }
.q-box p { margin: 0; padding-left: 1.5em; text-indent: -1.5em; }
.q-box p + p { margin-top: 6px; }
.q-code { margin: 4px 0 12px; padding: 14px 16px; border: 1px solid #3d3733; border-radius: 4px; background: #fbf9f6; font-family: 'D2Coding', 'JetBrains Mono', Consolas, monospace; font-size: 14.5px; line-height: 1.6; overflow-x: auto; white-space: pre; color: var(--ink); }
.q-fig-note { font-family: var(--sans); font-size: 12.5px; color: #8a4c22; background: #fff3e8; border: 1px dashed #e4a57a; border-radius: 6px; padding: 6px 10px; margin: 0 0 10px; }
.q-fig-note a { color: #b24d0e; }
/* 원본 시험지에서 잘라 온 그림·표(종이 바탕에 그대로 얹는다) */
.q-figure { margin: 4px 0 12px; }
.q-figure img { display: block; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.q-img { margin: 0 0 8px; }
.q-img img { width: 100%; max-width: 760px; }
.q-ch { list-style: none; margin: 0; padding: 0; }
.q-ch li + li { margin-top: 2px; }
/* 짧은 보기는 원본 시험지처럼 한 줄에 여러 개 */
.q-ch.ch-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
.q-ch.ch-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.q-pick { display: none; }
.ch { all: unset; display: flex; gap: 6px; width: 100%; padding: 2px 4px; margin-left: -4px; border-radius: 6px; cursor: default; }
.ch-n { flex: none; width: 1.4em; font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; font-weight: 500; font-size: 1.02em; color: #2a2522; }
.ch-t { flex: 1; color: var(--ink); }
.q-exp { display: none; font-family: var(--sans); margin-top: 12px; padding: 16px 20px; border-radius: 0 8px 8px 0; background: #f2f5f4; border-left: 3px solid var(--accent); font-size: 16px; line-height: 1.78; font-weight: 450; color: #1f1b18; }
.q-ans { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--ink); }
.q-ans b { font-size: 15px; font-weight: 700; color: var(--ink); margin-right: 2px; }
.q-ans span { font-weight: 400; color: var(--ink-2); font-size: 13px; }
/* 정답 배지: 숫자를 정확히 가운데 */
.ans-no, .q-ans .ans-no, .ab-head .ans-no {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; min-width: 0; height: 26px; padding: 0; border-radius: 50%; background: var(--accent-deep); color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0; text-indent: 0;
  font-variant-numeric: normal; font-feature-settings: normal;
}
.ans-all, .q-ans .ans-all { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-deep); color: #fff; font-size: 13px; font-weight: 700; }
.ans-num { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--accent-deep); color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.cn { font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; font-size: 1.12em; font-weight: 600; color: var(--ink); line-height: 1; vertical-align: -0.04em; }
.exp-body p { margin: 0; }
.exp-body p + p { margin-top: 8px; }
.exp-none { margin: 0; color: #6f6660; }
.answer-key { margin-top: 20px; padding-top: 22px; border-top: 3px double var(--paper-line); font-family: var(--sans); }
.ak-title { font-size: 20px; margin-bottom: 14px; color: var(--ink); }
.ak-block { margin-bottom: 16px; }
.ak-block h3 { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; font-weight: 600; }
.ak-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); border-top: 1px solid #b9b0a9; border-left: 1px solid #b9b0a9; }
.ak-grid li { display: flex; justify-content: space-between; padding: 5px 9px; border-right: 1px solid #b9b0a9; border-bottom: 1px solid #b9b0a9; font-size: 15px; }
.ak-grid li span { color: #5b524c; }
.ak-grid li b { font-size: 15px; font-weight: 700; color: var(--accent-deep); }
.answer-book { display: none; margin-top: 30px; padding-top: 24px; border-top: 3px double var(--paper-line); font-family: var(--sans); }
.answer-book h2 { font-size: 20px; color: var(--ink); margin-bottom: 14px; }
.ab-sub { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: var(--ink); }
.ab-item { break-inside: avoid; display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e6dfd9; font-size: 15.5px; line-height: 1.8; color: #1f1b18; }
.ab-item b { color: var(--ink); }
.ab-item p { margin: 0; }
.ab-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.ab-head .ans-no { width: 23px; height: 23px; font-size: 13.5px; }
.paper-src { margin: 26px 0 0; font-family: var(--sans); font-size: 12.5px; color: #6f6660; }

/* 보기 방식 */
.mode-explain .paper, .mode-solve .paper { max-width: 920px; margin-left: auto; margin-right: auto; } /* 한 단으로 읽을 때는 종이 폭을 줄여 가운데에 */
.mode-explain .q-cols, .mode-solve .q-cols { column-count: 1; }
.mode-explain .q-cols + .q-cols, .mode-solve .q-cols + .q-cols { border-top: 0; padding-top: 0; margin-top: 0; }
.mode-explain .q { padding-bottom: 22px; border-bottom: 1px solid #e6dfd9; }
.mode-explain .q-exp { display: block; }
.mode-explain .answer-key, .mode-split .answer-key, .mode-solve .answer-key { display: none; }
.mode-split .answer-book { display: block; }
.mode-solve .q-ch.ch-3, .mode-solve .q-ch.ch-2 { display: block; }
.mode-solve .ch { cursor: pointer; padding: 5px 8px; margin-left: -8px; transition: background 0.2s var(--ease); }
.mode-solve .ch:hover { background: #f3ece6; }
.mode-solve .q.done .q-exp { display: block; }
.mode-solve .q.done .ch { cursor: default; }
.mode-solve .q.done .ch:hover { background: none; }
.mode-solve li.picked:not(.right):not(.wrong) .ch { background: #efe7df; }
.mode-solve li.right .ch, .mode-solve .q.done li.right .ch:hover { background: #e4f2e7; }
.mode-solve li.right .ch-n { color: #1d7a3d; font-weight: 700; }
.mode-solve li.wrong .ch, .mode-solve .q.done li.wrong .ch:hover { background: #fbe6df; text-decoration: line-through; text-decoration-color: #b42318; }
.mode-solve .q-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-solve .q-pick li { flex: none; }
.mode-solve .q-pick .ch { width: auto; padding: 6px 14px; border: 1px solid #d8cfc8; border-radius: 999px; margin: 0; }
.subj-hidden { display: none !important; }

/* ── 8. 시험 정보: 달력·일정·개요·자주 묻는 것 ── */
.info { margin-top: 56px; }
.info .sec-head { margin-top: 48px; }
.info .sec-head:first-child { margin-top: 0; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.cal-card { padding: 18px; position: sticky; top: 74px; } /* 일정 목록이 길 때 달력이 따라온다 */
.next { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--text); color: #fff; }
.next-k { font-size: 12.5px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.next b { flex: 1; font-size: 15.5px; font-weight: 600; }
.next-d { font-family: var(--display); font-size: 19px; font-weight: 500; color: #8fd6c9; white-space: nowrap; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.cal-nav { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.8); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.cal-nav:hover:not(:disabled) { background: #fff; border-color: var(--text); }
.cal-nav:active:not(:disabled) { transform: scale(0.95); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-nav.nx svg { transform: rotate(180deg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 4px 0 6px; }
.cal-w.sun, .cal-d.sun i { color: #b42318; }
.cal-d { min-height: 66px; padding: 6px 7px 5px; border-radius: 8px; background: rgba(255, 255, 255, 0.72); display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-d i { font-style: normal; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.cal-d em { font-style: normal; font-size: 11.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-d.out { background: transparent; }
.cal-d.out i { color: #a39a93; }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--text); }
.cal-d.ev-apply { background: var(--ev-apply-bg); }
.cal-d.ev-apply em { color: var(--ev-apply); }
.cal-d.ev-result { background: var(--ev-result-bg); }
.cal-d.ev-result em { color: var(--ev-result); }
.cal-d.ev-exam { background: var(--ev-exam); }
.cal-d.ev-exam i, .cal-d.ev-exam em { color: #fff; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.cal-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal-legend .ev-apply::before { background: var(--ev-apply); }
.cal-legend .ev-exam::before { background: var(--ev-exam); }
.cal-legend .ev-result::before { background: var(--ev-result); }
.timeline { list-style: none; margin: 0; padding: 6px 20px; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; column-gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ''; grid-row: 1 / span 3; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--ev-exam); }
.timeline li.ev-apply::before { background: var(--ev-apply); }
.timeline li.ev-result::before { background: var(--ev-result); }
.tl-date { font-size: 13.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl-label { font-size: 16px; font-weight: 700; color: var(--text); }
.tl-note { font-size: 13.5px; color: var(--text-2); }
.timeline li.past { opacity: 0.5; }
.timeline li.now .tl-label::after { content: '진행 중'; margin-left: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ev-apply); color: #fff; vertical-align: 2px; }
.overview { padding: 24px 26px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 28px; }
.fact dt { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--text); line-height: 1.55; }
.subj { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.subj-col h4 { margin: 0 0 8px; font-size: 15px; }
.subj-col ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.75; color: var(--text); }
.subj-col p { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); }
.pass { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--text); }
.pass b { margin-right: 8px; color: var(--accent-deep); }
/* 자주 묻는 것: 상자 대신 줄로 나눈 두 단 */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; border-top: 2px solid var(--text); }
.faq-item { padding: 18px 0 20px; border-bottom: 1px solid var(--line-2); }
.faq-item h4 { margin: 0 0 6px; font-size: 16.5px; line-height: 1.5; font-weight: 700; }
.faq-item p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.info-src { margin: 22px 0 0; font-size: 13px; color: var(--text-2); }
.info-src a { color: var(--accent-deep); }

/* ── 9. 수능: 고르기·답안지·채점 ── */
.sn-year { margin-top: 30px; }
.sn-year-h { margin: 0 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.sn-year-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.sn-big { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 124px; padding: 22px 24px; text-decoration: none; overflow: hidden; transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease); }
.sn-big:hover { transform: translateY(-2px); background: #fff; border-color: var(--text); }
.sn-big .go, .sn-tile .go, .sn-card .go { position: absolute; right: 14px; top: 14px; }
.sn-k { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: var(--text); margin-top: auto; }
.sn-big .sn-k { font-size: 26px; }
.sn-d { font-size: 13.5px; color: var(--text-2); }
.sn-big:not(.sn-big-mock) { background: var(--text); border-color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.sn-big:not(.sn-big-mock)::before { content: ''; position: absolute; right: -70px; top: -100px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.035), 0 0 0 45px rgba(255, 255, 255, 0.1); pointer-events: none; }
.sn-big:not(.sn-big-mock):hover { background: #000; }
.sn-big:not(.sn-big-mock) .sn-k { color: #fff; }
.sn-big:not(.sn-big-mock) .sn-d { color: rgba(255, 255, 255, 0.8); }
.sn-big:not(.sn-big-mock) .go { background: rgba(255, 255, 255, 0.12); color: #fff; }
.sn-big:not(.sn-big-mock):hover .go { background: var(--accent); }
.sn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.sn-tile, .sn-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 18px 20px 16px; text-decoration: none; transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease); }
.sn-tile:hover, .sn-card:hover { transform: translateY(-2px); background: #fff; border-color: var(--text); }
.sn-tile-grp .sn-k::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 7px; vertical-align: 0.5em; } /* 과목을 한 번 더 고르는 영역 */
.sn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; }
.sn-card { min-height: 100px; }
.sn-card b { font-size: 19px; font-weight: 800; margin-top: auto; }
.sn-card span:not(.go) { font-size: 13.5px; color: var(--text-2); }
.sn-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; max-width: 420px; }
.sn-sib { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.omr { margin-top: 18px; padding: 18px 20px; }
.omr-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.omr-bar .btn-ghost { margin-left: auto; }
.omr-grid { display: block; columns: 236px 4; column-gap: 26px; }
.omr-row { break-inside: avoid; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; transition: background 0.2s var(--ease); }
.omr-no { width: 26px; text-align: right; font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.omr-cells { display: flex; gap: 6px; }
.bub { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #c9bfb7; background: #fff; color: #5e554f; font-weight: 700; font-size: 14px; display: grid; place-items: center; cursor: pointer; padding: 0; line-height: 1; transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease); }
.bub:hover { border-color: var(--text); color: var(--text); }
.bub:active { transform: scale(0.92); }
.bub.on { background: var(--text); border-color: var(--text); color: #fff; }
.num-in { width: 100px; height: 34px; border-radius: 8px; border: 1.5px solid #c9bfb7; background: #fff; padding: 0 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.num-in:focus { outline: none; border-color: var(--text); }
.omr-row.ok { background: #e4f2e7; }
.omr-row.ng { background: #fbe6df; }
.omr-row.ng .bub.ans { border-color: var(--ev-result); color: var(--ev-result); box-shadow: inset 0 0 0 2px var(--ev-result); }
.omr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.omr-count { margin: 0; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.omr-result { margin-top: 16px; padding: 22px; border-radius: var(--r-sm); background: var(--text); color: #fff; }
.score-big { display: flex; align-items: baseline; gap: 8px; }
.score-big b { font-family: var(--display); font-weight: 500; font-size: 54px; line-height: 1; color: #8fd6c9; }
.score-big span { font-size: 18px; color: rgba(255, 255, 255, 0.8); }
.score-sub { margin: 8px 0 0; color: rgba(255, 255, 255, 0.8); font-size: 14.5px; }
.wrong-h { margin: 18px 0 10px; font-weight: 700; }
.wrong-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wrong-list a, .wrong-list span { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.wrong-list a:hover { background: rgba(255, 255, 255, 0.24); }
.wrong-list small { font-weight: 500; color: rgba(255, 255, 255, 0.7); font-size: 12px; }
.sn-head { margin-top: 44px; }
.sn-paper { font-family: var(--sans); }
.sn-block + .sn-block { margin-top: 30px; }
.sn-q { padding: 14px 0; border-bottom: 1px solid #ece5df; scroll-margin-top: 80px; }
.sn-q .q-ans { margin-bottom: 6px; }
.sn-q .pts { margin-left: 4px; font-size: 13px; color: #5e554f; }
.sn-q .exp-body { max-width: 860px; font-size: 16px; line-height: 1.8; color: #1f1b18; }
.sn-q.wrong { background: #f6f3f2; margin: 0 -14px; padding: 14px; border-radius: 0 8px 8px 0; border-bottom-color: transparent; box-shadow: inset 3px 0 0 var(--accent-deep); }

/* ── 10. 모의문제: 실제 기출과 한눈에 구분되게 차가운 청회색 바탕 ── */
html.is-mock { background: #e9eef3; }
.is-mock body { background: linear-gradient(180deg, #f0f4f8 0%, #e6ecf2 55%, #dce4ec 100%) fixed; }
.is-mock .bg-grid { background-image: linear-gradient(rgba(30, 52, 80, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 52, 80, 0.07) 1px, transparent 1px); }
.is-mock .g1 { background: radial-gradient(closest-side, rgba(110, 152, 205, 0.42), rgba(150, 180, 215, 0.16) 58%, transparent); }
.is-mock .g3 { background: radial-gradient(closest-side, rgba(170, 195, 225, 0.3), transparent); }
.is-mock .a2 { border-color: rgba(40, 90, 150, 0.18); }
.is-mock .nav-wrap { background: rgba(244, 247, 250, 0.76); }
.is-mock .logo-mark::after { box-shadow: 0 0 0 2px #f1f5f8; }
.is-mock .eyebrow { color: var(--navy-2); }
.is-mock .toolbar { background: rgba(246, 249, 252, 0.82); }
.is-mock .paper { background: #fdfdfc; box-shadow: 0 0 0 1px rgba(30, 52, 80, 0.12), 6px 6px 0 -1px #f6f8fa, 6px 6px 0 0 rgba(30, 52, 80, 0.14), 0 40px 70px -48px rgba(20, 40, 70, 0.6); }
.is-mock .q-exp { border-left-color: #2f6aa6; background: #f2f5f9; }
.is-mock .ans-no, .is-mock .ans-all { background: var(--navy-2); }
.mock-banner { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--navy); color: #fff; box-shadow: 0 18px 34px -24px rgba(20, 40, 70, 0.7); }
.mock-banner b { flex: none; padding: 3px 10px; border-radius: 6px; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.mock-banner p { margin: 1px 0 0; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }
.mock-banner strong { color: #fff; }
.ex-mock { background: linear-gradient(150deg, rgba(232, 240, 248, 0.92), rgba(218, 229, 241, 0.82)); border: 1px dashed rgba(36, 80, 126, 0.45); }
.ex-mock:hover { background: #eef4fa; border: 1px solid var(--navy-2); }
.ex-mock .ex-org { color: #46586c; }
.mock-tag { display: inline-block; margin-right: 7px; padding: 2px 8px; border-radius: 5px; background: var(--navy-2); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; }

/* ── 11. 바닥·글 화면 ── */
.foot { position: relative; z-index: 1; padding: 0 20px 56px; }
.foot-in { width: min(1180px, 100%); margin: 0 auto; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line-2); padding-top: 20px; }
.foot-in p { margin: 0 0 6px; max-width: 760px; }
.foot-in a { color: var(--text); }
.prose { padding: clamp(26px, 5vw, 52px); }
.prose h1 { font-size: clamp(27px, 4vw, 38px); font-weight: 800; margin-bottom: 18px; }
.prose h2 { font-size: 18.5px; font-weight: 800; margin: 30px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose p { color: var(--ink-2); font-size: 16px; line-height: 1.8; margin: 0 0 10px; }
.prose p.eyebrow { color: var(--accent-deep); font-size: 13px; margin-bottom: 12px; }
.prose .src { font-size: 13px; color: var(--text-2); margin-top: 26px; }

/* ── 12. 처음 나타날 때 ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; } }

/* ── 13. 좁은 화면 ── */
@media (max-width: 1080px) {
  .ex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-feature { grid-column: span 3; min-height: 132px; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .hero-art { display: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .how-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .how-item:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 860px) {
  .info-grid, .faq { grid-template-columns: 1fr; }
  .cal-card { padding: 12px; position: relative; top: 0; }
  .cal-d { min-height: 52px; padding: 4px 4px 3px; }
  .cal-d em { font-size: 10px; }
  .overview { padding: 20px; }
  .sn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-k { font-size: 19px; }
}
@media (max-width: 720px) {
  .wrap, .wrap.narrow { width: calc(100% - 28px); padding-top: 18px; padding-bottom: 64px; }
  .nav { width: calc(100% - 20px); height: 52px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .logo { font-size: 16px; padding-right: 8px; flex: none; }
  .nav-link { padding: 7px 9px; font-size: 14px; }
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.86); }
  .crumbs { margin-bottom: 16px; }
  .sec-head { margin-top: 44px; }
  .search { margin-top: 20px; }
  .search input { font-size: 16px; }
  .hero-stat { margin-top: 22px; }
  .hero-stat span { padding: 0 14px; }
  .hero-stat b { font-size: 19px; }
  /* 시험 카드: 두 줄짜리 줄 목록으로 */
  .ex-grid { grid-template-columns: 1fr; gap: 8px; }
  .ex-card { min-height: 0; padding: 13px 14px 13px 16px; gap: 2px; }
  .ex-top { min-height: 0; }
  .ex-name { font-size: 19px; }
  .ex-desc { -webkit-line-clamp: 1; }
  .ex-meta { padding-top: 6px; }
  .ex-feature { grid-column: auto; padding: 18px 16px; }
  .ex-feature .ex-name { font-size: 26px; }
  .ex-card.glass, .chip-card.glass { background: rgba(255, 255, 255, 0.86); }
  .ex-card.ex-mock { background: linear-gradient(150deg, #e8f0f8, #dae5f1); }
  .ex-card.ex-feature { background: var(--text); }
  .chip-grid { grid-template-columns: 1fr 1fr; }
  .chip-card { padding: 10px 6px 10px 12px; }
  .chip-card b { font-size: 14.5px; }
  .chip-card .go { display: none; }
  .how { grid-template-columns: 1fr; margin-top: 48px; }
  .how-item, .how-item + .how-item { padding: 14px 0; border-left: 0; }
  .how-item + .how-item { border-top: 1px solid var(--line-2); }
  .exam-hero { padding-bottom: 20px; }
  .sit-card { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 16px; }
  .sc-year { font-size: 20px; grid-column: 1; }
  .sc-main { grid-column: 1 / -1; grid-row: 2; }
  .sc-n { grid-column: 2; grid-row: 1; }
  .sit-card .go { display: none; }
  .sit-head { align-items: flex-start; }
  .toolbar { position: static; margin-top: 14px; }
  .seg { overflow-x: auto; }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { padding: 9px 6px; font-size: 13.5px; flex: 1; }
  .tools { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .tools .sel { flex: 1; min-width: 0; }
  .tools .sel select { width: 100%; max-width: none; }
  .score:not([hidden]) { order: 3; width: 100%; justify-content: space-between; padding: 2px 6px 4px; }
  .paper-tray { margin-left: -6px; margin-right: -6px; }
  .paper, .is-mock .paper { padding: 22px 18px; box-shadow: 0 0 0 1px rgba(23, 20, 18, 0.09), 0 24px 40px -30px rgba(48, 30, 16, 0.5); }
  .q-cols { column-count: 1; }
  .q-cols + .q-cols { border-top: 0; padding-top: 0; margin-top: 0; }
  .ph-table { font-size: 12.5px; }
  .ph-table th, .ph-table td { padding: 5px 6px; }
  .q { font-size: 16.5px; line-height: 1.82; }
  .q-box { font-size: 15.5px; }
  .q-exp { font-size: 15.5px; padding: 14px 16px; }
  .mock-banner { flex-direction: column; gap: 8px; }
  .sn-year-row { grid-template-columns: 1fr; }
  .sn-big { min-height: 104px; }
  .sn-big .sn-k { font-size: 22px; }
  .sn-links { justify-content: flex-start; }
  .omr { padding: 12px; }
  .omr-bar .btn-ghost { margin-left: 0; }
  .bub { width: 36px; height: 36px; }
  .faq { gap: 0; }
}
@media (max-width: 560px) { .q-ch.ch-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .q-ch.ch-2 { display: block; } }

/* ── 14. 인쇄: 종이만, A4 2단 ── */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body, .is-mock body { background: #fff !important; color: #000; }
  .scene, .nav-wrap, .toolbar, .mode-hint, .score, .crumbs, .sit-head, .foot, .q-fig-note a { display: none !important; }
  .wrap { width: 100%; padding: 0; }
  .paper-tray { padding: 0; border: 0; background: none; margin: 0; }
  .paper, .is-mock .paper, .mode-explain .paper, .mode-solve .paper { box-shadow: none; border-radius: 0; padding: 0; background: #fff; max-width: none; }
  .q { font-size: 10.5pt; line-height: 1.6; font-weight: 400; margin-bottom: 14pt; }
  .q-box { font-size: 10pt; }
  .q-cols, .mode-explain .q-cols, .mode-solve .q-cols { column-count: 2 !important; column-gap: 9mm; }
  .q-cols + .q-cols { border-top: 0; padding-top: 0; margin-top: 0; }
  .mode-explain .q { max-width: none; }
  .q-exp { background: none; border-left: 2px solid #000; border-radius: 0; padding: 4pt 8pt; font-size: 9.5pt; font-weight: 400; }
  .mode-solve .q-exp { display: block; }
  .subject-block { break-before: auto; }
  .answer-key, .answer-book { break-before: page; }
  .ch { background: none !important; text-decoration: none !important; padding: 2px 4px !important; margin-left: -4px !important; }
  .ans-no, .q-ans .ans-no, .ab-head .ans-no, .ans-all, .q-ans .ans-all { background: none; color: #000; border: 1.2pt solid #000; width: 15pt; height: 15pt; font-size: 9.5pt; }
  .ans-all, .q-ans .ans-all { width: auto; height: auto; }
  .ak-grid li b { color: #000; }
  .q-code { font-size: 9pt; border-color: #000; background: none; }
  .q-img img { max-width: 100%; }
  .mock-banner { background: none; color: #000; border: 1pt solid #000; box-shadow: none; }
  .mock-banner p, .mock-banner strong { color: #000; }
  .mock-banner b { border: 1pt solid #000; }
}

/* ── 홈 머리: 한 줄기 가운데 정렬 ── */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 0 18px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero .eyebrow { justify-content: center; }
.hero .lead { max-width: 600px; margin-left: auto; margin-right: auto; word-break: keep-all; }
.hero .search { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-stat { justify-content: center; }
@media (max-width: 920px) { .hero { padding-top: 32px; } }
.hero h1 { white-space: nowrap; font-size: clamp(24px, 6.2vw, 68px); }
.hero .lead { max-width: none; }
@media (min-width: 960px) { .hero .lead { white-space: nowrap; } }

/* ── 홈 머리 숫자: 한 줄 문장, 숫자·단위 같은 크기 ── */
.hero-stat { align-items: center; gap: 0; margin: 22px auto 0; padding: 0; border: 0; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text-2); }
.hero-stat span { display: inline-flex; align-items: center; padding: 0; border: 0; }
.hero-stat span + span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); margin: 0 12px; }
.hero-stat b { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 0 1px 0 0; color: var(--ink); font-variant-numeric: tabular-nums; }
