/*
 * 내신 실전 연습(/naesintest) — 학교 시험지와 OMR 답안지, 선생님 빨간 펜 채점을 본뜬 화면.
 * 색: 책상 회색 바탕 위 흰 시험지, OMR 인쇄 분홍빨강, 사인펜 검정, 채점 빨간 펜.
 */
:root {
  --nt-desk: #e4e6ea;
  --nt-paper: #ffffff;
  --nt-ink: #1c1e22;
  --nt-muted: #5c626c;
  --nt-rule: #b8bcc3;
  --nt-omr: #d9506a;
  --nt-omr-tint: #fcf0f2;
  --nt-mark: #1f2024;
  --nt-pen: #cf2a1f;
  --nt-focus: #2458c6;
  --nt-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --nt-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --nt-hand: "Nanum Pen Script", "Noto Sans KR", cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.nt-body {
  margin: 0; background: var(--nt-desk); color: var(--nt-ink);
  font: 400 15px/1.6 var(--nt-sans); word-break: keep-all;
}
.nt-body [hidden] { display: none !important; }
.nt-body a { color: inherit; }
.nt-body :focus-visible { outline: 3px solid var(--nt-focus); outline-offset: 2px; }

/* ---------- 공통 단추 ---------- */
.nt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 18px; border: 1px solid var(--nt-ink); border-radius: 3px;
  background: var(--nt-ink); color: #fff; font: 500 15px/1 var(--nt-sans);
  text-decoration: none; cursor: pointer;
}
.nt-btn:hover { background: #3a3d44; }
.nt-body a.nt-btn { color: #fff; }
.nt-body a.nt-btn-line { color: var(--nt-ink); }
.nt-btn-line { background: #fff; color: var(--nt-ink); }
.nt-btn-line:hover { background: #f1f2f4; }
.nt-btn:disabled { opacity: .45; cursor: default; }
.nt-msg { margin: 40px 16px; text-align: center; color: var(--nt-muted); }

/* ---------- 상단 띠(모든 화면) ---------- */
.nt-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1180px; margin: 0 auto; padding: 14px 20px 0; font-size: 14px; color: var(--nt-muted);
}
.nt-top a { text-decoration: none; }
.nt-top a:hover { text-decoration: underline; }
.nt-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 17px/1 var(--nt-sans); color: var(--nt-ink); text-decoration: none; }
.nt-top a.nt-brand:hover { text-decoration: none; }
.nt-brand img { display: block; width: 30px; height: 30px; }
.nt-top-l { display: flex; align-items: center; gap: 16px; }

/* ---------- 시험지(종이) ---------- */
.nt-sheet-wrap {
  max-width: 1180px; margin: 12px auto 48px; padding: 0 20px;
}
.nt-page {
  background: var(--nt-paper); border: 1px solid #cfd2d8;
  box-shadow: 0 1px 0 #cfd2d8, 0 3px 0 -1px #fff, 0 4px 0 -1px #cfd2d8;
  padding: 36px 40px 44px;
}

/* 시험지 머리(학교 시험지 표 머리) */
.nt-paperhead { border: 2px solid var(--nt-ink); background: var(--nt-paper); }
.nt-paperhead-title {
  margin: 0; padding: 14px 12px 12px; text-align: center; border-bottom: 1px solid var(--nt-ink);
  font: 700 24px/1.35 var(--nt-serif); letter-spacing: .02em;
}
.nt-paperhead-sub { display: block; margin-top: 2px; font: 400 15px/1.4 var(--nt-serif); color: var(--nt-muted); }
.nt-paperhead table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.nt-paperhead th, .nt-paperhead td {
  border-left: 1px solid var(--nt-ink); padding: 7px 8px; text-align: center; font-size: 14px;
}
.nt-paperhead th:first-child { border-left: 0; }
.nt-paperhead th { font-weight: 500; background: #f3f4f6; border-bottom: 1px solid var(--nt-ink); }
.nt-paperhead td { font: 600 16px/1.3 var(--nt-serif); word-break: keep-all; }

/* ---------- 목록 화면 ---------- */
.nt-home .nt-page { max-width: 920px; margin: 0 auto; }
.nt-notice-box {
  margin: 22px 0 8px; padding: 14px 18px; border: 1px solid var(--nt-rule); background: #fafafb;
}
.nt-notice-box h2 { margin: 0 0 6px; font: 700 16px/1.4 var(--nt-sans); text-align: center; }
.nt-notice-box ol { margin: 0; padding-left: 22px; }
.nt-notice-box li { margin: 2px 0; }
.nt-group { margin-top: 30px; }
.nt-group h2 {
  margin: 0 0 8px; text-align: center; font: 700 19px/1.4 var(--nt-serif);
}
.nt-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--nt-ink); border-bottom: 2px solid var(--nt-ink); }
.nt-table th, .nt-table td { padding: 9px 8px; border-bottom: 1px solid #d6d8dd; text-align: center; vertical-align: middle; }
.nt-table thead th { font-weight: 500; font-size: 13px; color: var(--nt-muted); background: #f3f4f6; border-bottom: 1px solid var(--nt-ink); }
.nt-table td.nt-round { font: 700 16px/1.3 var(--nt-serif); white-space: nowrap; }
.nt-table td.nt-scope { text-align: left; }
.nt-table td.nt-scope small { display: block; color: var(--nt-muted); font-size: 13px; }
.nt-table .nt-last { font: 400 22px/1 var(--nt-hand); color: var(--nt-pen); white-space: nowrap; }
.nt-table .nt-last a { text-decoration: none; }
.nt-table .nt-last.is-empty { color: #aeb2b9; font: 400 15px/1 var(--nt-sans); }
.nt-table .nt-last small { font: 400 13px/1 var(--nt-sans); color: var(--nt-muted); }
.nt-table .nt-btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
.nt-home-foot { margin-top: 24px; text-align: center; font-size: 13px; color: var(--nt-muted); }
.nt-table .nt-soon { color: var(--nt-muted); }

/* 학교 고르기 화면 안내 */
.nt-lead { margin: 18px auto 0; max-width: 680px; text-align: center; font-size: 16px; line-height: 1.75; }
.nt-guide { margin-top: 40px; }
.nt-guide h2 { margin: 0 0 12px; text-align: center; font: 700 19px/1.4 var(--nt-serif); }
.nt-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--nt-ink); border-left: 1px solid #d6d8dd; }
.nt-feat { padding: 14px 16px; border-right: 1px solid #d6d8dd; border-bottom: 1px solid #d6d8dd; }
.nt-feat h3 { margin: 0 0 4px; font: 700 16px/1.4 var(--nt-sans); }
.nt-feat p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #33363c; }
.nt-basis { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--nt-muted); }
.nt-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--nt-ink); }
.nt-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 150px minmax(0, 1fr); align-items: baseline; gap: 4px 10px; padding: 14px 4px 18px; border-bottom: 1px solid #d6d8dd; }
.nt-steps li figure { grid-column: 2 / -1; margin: 10px 0 0; display: grid; gap: 10px; }
.nt-steps li figure.nt-two { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.nt-steps li img { display: block; width: 100%; height: auto; border: 1px solid #cfd2d8; background: #fff; }
.nt-steps li figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--nt-muted); }
.nt-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.nt-phones figure { margin: 0; }
.nt-phones img { display: block; width: 100%; height: auto; border: 1px solid #cfd2d8; border-radius: 14px; }
.nt-phones figcaption { margin-top: 6px; font-size: 13px; text-align: center; color: var(--nt-muted); }
.nt-steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--nt-omr); border-radius: 50%; color: var(--nt-omr); font: 700 14px/1 var(--nt-sans); }
.nt-steps b { font-size: 15.5px; }
.nt-steps span { font-size: 14.5px; line-height: 1.7; color: #33363c; }
.nt-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nt-shots figure { margin: 0; }
.nt-shots img { display: block; width: 100%; height: auto; border: 1px solid #cfd2d8; }
.nt-shots figcaption { margin-top: 6px; font-size: 13px; text-align: center; color: var(--nt-muted); }
.nt-table td.nt-left { text-align: left; }
.nt-faq { border-bottom: 1px solid #d6d8dd; padding: 10px 4px; }
.nt-faq:first-of-type { border-top: 2px solid var(--nt-ink); }
.nt-faq summary { cursor: pointer; font-weight: 500; }
.nt-faq p { margin: 6px 0 2px; font-size: 14.5px; line-height: 1.7; color: #33363c; }
.nt-locked { font-size: 13px; color: var(--nt-muted); white-space: nowrap; }

/* ---------- 시험 화면 ---------- */
.nt-run .nt-sheet-wrap { margin-bottom: 24px; }
/* 문항 그림(480px) 폭에 맞춰 시험지와 답안지를 가운데로 모은다. */
.nt-run .nt-sheet-wrap { max-width: 900px; }
.nt-run-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 16px; }
.nt-run .nt-page { padding: 18px 24px 26px; }
.nt-time { font: 700 22px/1 var(--nt-sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#nt-timer-box.is-low .nt-time { color: var(--nt-pen); }
.nt-runbar { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

.nt-qbar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--nt-rule); }
.nt-qpos { font-size: 15px; color: var(--nt-muted); min-width: 72px; text-align: center; }
.nt-qpos b { font: 700 20px/1 var(--nt-serif); color: var(--nt-ink); }
.nt-nav {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--nt-rule); border-radius: 3px; background: #fff;
  font: 500 14px/1 var(--nt-sans); cursor: pointer; color: var(--nt-ink);
}
.nt-nav:disabled { color: #aeb2b9; cursor: default; }
.nt-mark { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--nt-muted); cursor: pointer; }
.nt-mark input { width: 17px; height: 17px; accent-color: var(--nt-ink); }

.nt-sheet { padding: 18px 0 6px; display: grid; gap: 14px; }
/* 문항 그림 폭 480px(휴대폰은 화면 폭). 원본 그림은 320dpi로 자른 1174px 단이라 고해상도 화면에서도 선명하다. */
.nt-img { display: block; width: 480px; max-width: 100%; height: auto; margin: 0 auto; }
/* 글 문항(제작 공장 게시: 국어·수학·사회·과학, 글로 쓴 영어 문항) */
.nt-text { max-width: 560px; margin: 0 auto 12px; font-size: 16px; line-height: 1.7; color: #1a1a1a; word-break: keep-all; overflow-wrap: anywhere; }
.nt-text.nt-passage { padding: 12px 14px; border: 1px solid #c9c9c9; background: #fff; }
.nt-choices { max-width: 560px; margin: 8px auto 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
/* 덕명여중 글 문항은 발문·지문·선택지의 시작선을 맞춘다. */
.nt-dmm-question { width: 100%; max-width: 560px; min-width: 0; margin-inline: auto; display: grid; gap: 14px; text-align: left; }
.nt-dmm-question .nt-text, .nt-dmm-question .nt-choices { margin: 0; }
.nt-dmm-question .nt-question-prompt { font-weight: 700; }
.nt-dmm-question u { text-decoration: underline; text-underline-offset: 0.16em; }
.nt-choices li { display: flex; gap: 6px; }
.nt-passage { padding-bottom: 14px; border-bottom: 1px dashed var(--nt-rule); }

.nt-pick {
  width: 480px; max-width: 100%; margin: 6px auto 0; border: 1.5px solid var(--nt-omr); background: var(--nt-omr-tint); color: var(--nt-omr);
}
/* 문항 아래 답란: 시험지 글자 크기에 맞춘 작은 OMR 한 줄. 누르는 범위(단추)는 넉넉히, 그려지는 타원은 작게. */
.nt-pick-head, .nt-pick-row { display: grid; grid-template-columns: 52px repeat(5, 1fr); align-items: center; }
.nt-pick-head { border-bottom: 1px solid var(--nt-omr); font: 500 11px/1 var(--nt-sans); text-align: center; padding: 4px 0; letter-spacing: .2em; }
.nt-pick-head span + span { grid-column: 2 / -1; }
.nt-pick-row { padding: 3px 0; }
.nt-pick-no { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--nt-omr); font: 700 15px/1 var(--nt-sans); font-variant-numeric: tabular-nums; }
.nt-ob {
  justify-self: center; position: relative; isolation: isolate; width: 36px; height: 36px; padding: 0; border: 0; background: transparent;
  color: var(--nt-omr); font: 500 10px/1 var(--nt-sans); cursor: pointer;
}
.nt-ob::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 16px; height: 28px; transform: translate(-50%, -50%);
  border: 1.2px solid var(--nt-omr); border-radius: 8px; background: #fff;
}
.nt-ob:hover::before { background: #fbe1e6; }
.nt-ob.is-on { color: transparent; }
.nt-ob.is-on::before { background: var(--nt-mark); border-color: var(--nt-mark); }
/* 모두 고르기 문항 안내(답란 아래 한 줄) */
.nt-pick-note { margin: 0; padding: 4px 8px; border-top: 1px solid var(--nt-omr); font: 500 11px/1.4 var(--nt-sans); text-align: center; }

/* OMR 답안지 */
.nt-omr {
  position: sticky; top: 12px; background: var(--nt-omr-tint); border: 2px solid var(--nt-omr);
  color: var(--nt-omr); max-height: calc(100vh - 24px); display: flex; flex-direction: column;
}
.nt-omr-head { padding: 10px 12px; border-bottom: 2px solid var(--nt-omr); text-align: center; }
.nt-omr-head h2 { margin: 0; font: 700 17px/1.3 var(--nt-sans); letter-spacing: .3em; }
.nt-omr-head p { margin: 2px 0 0; font-size: 13px; color: var(--nt-omr); }
.nt-omr-cols, .nt-omr-row { display: grid; grid-template-columns: 44px repeat(5, 1fr); align-items: center; }
.nt-omr-cols { padding: 4px 8px; font-size: 12px; text-align: center; border-bottom: 1px solid var(--nt-omr); }
.nt-omr-rows { overflow-y: auto; padding: 2px 8px 6px; }
.nt-omr-row { padding: 2px 0; }
.nt-omr-row:nth-child(5n) { border-bottom: 1px solid rgba(217, 80, 106, .45); padding-bottom: 4px; margin-bottom: 2px; }
.nt-omr-row.is-current { background: rgba(217, 80, 106, .12); }
.nt-omr-no {
  border: 0; background: none; color: var(--nt-omr); font: 700 14px/1 var(--nt-sans); padding: 6px 0; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.nt-omr-row.is-marked .nt-omr-no::after { content: "✓"; margin-left: 2px; color: var(--nt-ink); font-weight: 400; }
.nt-omr-b {
  justify-self: center; width: 16px; height: 28px; border: 1.2px solid var(--nt-omr); border-radius: 8px; background: #fff;
  color: var(--nt-omr); font: 500 11px/1 var(--nt-sans); cursor: pointer; padding: 0;
}
.nt-omr-b.is-on { background: var(--nt-mark); border-color: var(--nt-mark); color: transparent; }
.nt-omr-foot { padding: 10px 12px; border-top: 2px solid var(--nt-omr); display: grid; gap: 8px; color: var(--nt-ink); font-size: 14px; }
.nt-omr-foot p { margin: 0; display: flex; justify-content: space-between; }
.nt-omr-foot .nt-btn { width: 100%; }
.nt-omr-toggle, .nt-omr-close { display: none; }

.nt-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  background: var(--nt-ink); color: #fff; padding: 10px 16px; border-radius: 3px; font-size: 14px;
}

/* 확인 창 */
.nt-modal { position: fixed; inset: 0; z-index: 40; background: rgba(20, 22, 26, .5); display: grid; place-items: center; padding: 16px; }
.nt-modal-card { background: #fff; max-width: 420px; width: 100%; padding: 24px; border-top: 4px solid var(--nt-ink); }
.nt-modal-card h2 { margin: 0 0 8px; text-align: center; font: 700 19px/1.4 var(--nt-serif); }
.nt-modal-card p { margin: 0 0 18px; text-align: center; }
.nt-modal-btns { display: flex; gap: 8px; justify-content: center; }

/* ---------- 채점·복습 화면 ---------- */
.nt-score {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 22px 0 6px;
  padding: 18px 22px; border: 1px solid var(--nt-rule);
}
.nt-score-pen { position: relative; padding: 10px 26px 6px; color: var(--nt-pen); text-align: center; }
.nt-score-pen::before {
  content: ""; position: absolute; inset: -4px -6px; border: 3px solid var(--nt-pen); border-radius: 50% 46% 52% 48%;
  transform: rotate(-4deg); opacity: .9;
}
.nt-score-pen b { display: block; font: 400 64px/0.9 var(--nt-hand); }
.nt-score-pen span { font: 400 28px/1 var(--nt-hand); }
.nt-score-text p { margin: 2px 0; }
.nt-score-text .nt-score-big { font: 700 18px/1.4 var(--nt-sans); }
.nt-score-text small { color: var(--nt-muted); }

.nt-ox { margin: 18px 0 0; }
.nt-ox h2, .nt-review-list > h2 { margin: 0 0 8px; text-align: center; font: 700 17px/1.4 var(--nt-serif); }
.nt-ox-grid { display: grid; grid-template-columns: repeat(10, 1fr); border-top: 2px solid var(--nt-ink); border-left: 1px solid #d6d8dd; }
.nt-ox-cell {
  position: relative; border-right: 1px solid #d6d8dd; border-bottom: 1px solid #d6d8dd; background: #fff;
  min-height: 46px; padding: 4px 0 0; font: 500 13px/1 var(--nt-sans); color: var(--nt-muted); cursor: pointer; text-align: center;
}
.nt-ox-cell span { display: block; margin-top: 2px; font: 400 26px/1 var(--nt-hand); color: var(--nt-pen); }
.nt-ox-cell.is-blank span { color: var(--nt-muted); font-size: 20px; }

.nt-filter { display: flex; justify-content: center; gap: 0; margin: 26px 0 6px; }
.nt-filter button {
  min-height: 38px; padding: 0 18px; border: 1px solid var(--nt-ink); background: #fff; color: var(--nt-ink);
  font: 500 14px/1 var(--nt-sans); cursor: pointer;
}
.nt-filter button + button { border-left: 0; }
.nt-filter button[aria-pressed="true"] { background: var(--nt-ink); color: #fff; }

.nt-item { padding: 22px 0 26px; border-bottom: 1px solid var(--nt-rule); }
.nt-item-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.nt-qno { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; font: 700 20px/1 var(--nt-serif); }
.nt-item.is-right .nt-qno::after {
  content: ""; position: absolute; inset: -2px; border: 3px solid var(--nt-pen); border-radius: 50% 45% 52% 47%; transform: rotate(8deg);
}
.nt-item.is-wrong .nt-qno::after {
  content: ""; position: absolute; left: 50%; top: -6px; width: 3px; height: 58px; background: var(--nt-pen);
  border-radius: 2px; transform: translateX(-50%) rotate(38deg);
}
.nt-ans { font-size: 15px; }
.nt-ans b { font: 600 18px/1 var(--nt-serif); }
.nt-ans .nt-right { color: var(--nt-pen); }
.nt-pts { margin-left: auto; font-size: 13px; color: var(--nt-muted); }
.nt-exp { margin-top: 14px; padding: 14px 16px; background: #f7f7f8; border-left: 3px solid var(--nt-pen); }
.nt-exp p { margin: 0 0 4px; }
.nt-exp p:last-child { margin-bottom: 0; }
.nt-exp .nt-exp-head { font-weight: 700; }
.nt-exp .nt-exp-tag { color: var(--nt-muted); font-size: 14px; }
.nt-review-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .nt-run-grid { grid-template-columns: minmax(0, 1fr); }
  .nt-omr {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; max-height: 70vh;
    transform: translateY(100%); transition: transform .2s ease;
  }
  body.omr-open .nt-omr { transform: none; }
  .nt-omr-toggle {
    display: inline-flex; position: fixed; right: 14px; bottom: 14px; z-index: 21;
    border-color: var(--nt-omr); background: var(--nt-omr); color: #fff;
  }
  body.omr-open .nt-omr-toggle { display: none; }
  .nt-omr-head { position: relative; }
  .nt-omr-close {
    display: inline-flex; position: absolute; right: 8px; top: 8px; min-height: 32px; padding: 0 12px;
    border: 1px solid var(--nt-omr); background: #fff; color: var(--nt-omr); font: 500 14px/1 var(--nt-sans); cursor: pointer; align-items: center;
  }
  .nt-run .nt-top > span { display: none; }
  .nt-run .nt-sheet-wrap { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .nt-top-l { gap: 10px; }
  .nt-sheet-wrap { padding: 0 8px; }
  .nt-page { padding: 20px 14px 28px; }
  .nt-run .nt-page { padding: 10px 4px 16px; }
  .nt-run .nt-sheet-wrap { padding: 0 4px; }
  .nt-run .nt-paperhead-title { font-size: 17px; padding: 10px 8px; }
  .nt-paperhead-title { font-size: 19px; }
  .nt-paperhead th, .nt-paperhead td { padding: 5px 3px; font-size: 12px; }
  .nt-paperhead td { font-size: 14px; }
  .nt-table thead { display: none; }
  .nt-table tr { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "r s go" "r m go"; border-bottom: 1px solid #d6d8dd; }
  .nt-table td { border: 0; padding: 4px 6px; }
  .nt-table td.nt-round { grid-area: r; align-self: center; }
  .nt-table td.nt-scope { grid-area: s; }
  .nt-table td.nt-meta-m { grid-area: m; text-align: left; font-size: 13px; color: var(--nt-muted); }
  .nt-table td.nt-go { grid-area: go; align-self: center; }
  .nt-table td.nt-meta { display: none; }
  .nt-mark span { display: none; }
  .nt-ox-grid { grid-template-columns: repeat(5, 1fr); }
  .nt-feats, .nt-shots { grid-template-columns: 1fr; }
  .nt-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .nt-steps li span { grid-column: 2; }
  .nt-steps li figure { grid-column: 1 / -1; }
  .nt-steps li figure.nt-two { grid-template-columns: 1fr; }
  .nt-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nt-lead { font-size: 15px; }
  .nt-score { grid-template-columns: 1fr; text-align: center; }
  .nt-score-pen { justify-self: center; }
  .nt-top > span:not(#nt-who) { display: none; }
}
@media (min-width: 641px) { .nt-table td.nt-meta-m { display: none; } }
/* 학교 고르기 표는 칸이 적어 휴대폰에서도 표 모양 그대로 둔다. */
@media (max-width: 640px) {
  .nt-table.nt-schools thead { display: table-header-group; }
  .nt-table.nt-schools tr { display: table-row; }
  .nt-table.nt-schools td { display: table-cell; padding: 8px 4px; border-bottom: 1px solid #d6d8dd; font-size: 14px; }
  .nt-table.nt-schools td.nt-round { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .nt-omr { transition: none; } }
@media print {
  body.nt-body { background: #fff; }
  .nt-top, .nt-filter, .nt-review-actions { display: none; }
  .nt-page { border: 0; box-shadow: none; padding: 0; }
  .nt-item { break-inside: avoid; }
}

/* 직보 AI 인강(학교별 세로 영상) — 2026-11-16 압구정중2 */
.nt-shorts { margin-top: 26px; scroll-margin-top: 16px; }
.nt-shorts h2 { margin: 0 0 4px; text-align: center; font: 700 19px/1.4 var(--nt-serif); }
.nt-shorts-lead { margin: 0 0 12px; text-align: center; font-size: 14px; color: var(--nt-muted); }
.nt-shorts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nt-short { margin: 0; min-width: 0; }
.nt-short video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: cover; }
.nt-short figcaption { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.nt-short figcaption small { display: block; font-size: 12px; font-weight: 400; color: var(--nt-muted); }
@media (max-width: 720px) {
  .nt-shorts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* 예비고1 모의고사 */
/* 5부는 독해 지면을 넓게 쓰고, OMR의 터치 영역 안에서 타원만 작게 그린다. */
#ph-test[data-part="5"] .nt-run-grid {
  grid-template-columns: minmax(0, 1fr) 234px;
  gap: 14px;
}
#ph-test[data-part="5"] .nt-run-grid > .nt-page {
  min-width: 0;
  padding-inline: 12px;
}
#ph-test[data-part="5"] .nt-img,
#ph-test[data-part="5"] .ph-review-image {
  width: 600px;
  max-width: 100%;
}
#ph-test[data-part="5"] .ph-review-image .nt-img { width: 100%; }
#ph-test[data-part="5"] .nt-pick { width: min(300px, 100%); }
#ph-test[data-part="5"] .nt-pick-row,
#ph-test[data-part="5"] .nt-omr-row {
  grid-template-columns: 30px repeat(5, minmax(0, 1fr));
}
#ph-test[data-part="5"] .nt-pick-no { font-size: 12px; }
#ph-test[data-part="5"] .nt-ob::before { width: 13px; height: 19px; }
#ph-test[data-part="5"] .nt-omr-head h2 { font-size: 14px; letter-spacing: .12em; }
#ph-test[data-part="5"] .nt-omr-b { width: 24px; height: 26px; }
#ph-test[data-part="5"] .nt-qbar { gap: 6px; flex-wrap: wrap; }
#ph-test[data-part="5"] .ph-reading-zoom { margin-left: auto; }
#ph-test[data-part="5"] .ph-reading-zoom[aria-pressed="true"] { background: #eaf1fb; }
#ph-test[data-part="5"] .nt-sheet { grid-template-columns: minmax(0, 1fr); }
#ph-test[data-part="5"] .ph-sheet-zoomed { overflow-x: auto; }
#ph-test[data-part="5"] .ph-sheet-zoomed .nt-img { width: max(600px, 120%); max-width: none; margin: 0; }

@media (max-width: 900px) {
  #ph-test[data-part="5"] .nt-run-grid { grid-template-columns: minmax(0, 1fr); }
  #ph-test[data-part="5"] .nt-omr {
    width: min(300px, 100%);
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  #ph-test[data-part="5"] .nt-run-grid > .nt-page { padding-inline: 4px; }
  #ph-test[data-part="5"] .nt-ob { width: 42px; max-width: 100%; height: 36px; }
  #ph-test[data-part="5"] .nt-exp { padding-inline: 6px; }
  #ph-test[data-part="5"] .ph-sheet-zoomed .nt-img { width: 120%; }
}

#ph-test { --ph-review-red: #b91c1c; }
#ph-test.ph-timed .nt-paperhead, #ph-grammar.ph-timed .nt-paperhead { position: sticky; top: 0; z-index: 2; }
#ph-test .nt-time { color: #1d4ed8; white-space: nowrap; }
#ph-test #nt-timer-box.is-low .nt-time { color: var(--nt-pen); }
.ph-explanation {
  margin-top: 14px; padding: 12px 14px; border-left: 3px solid #2563eb;
  background: #eff6ff; color: #123f78; overflow-wrap: anywhere;
}
.ph-explanation p + p { margin-top: 8px; }
.ph-explanation strong { display: block; color: #1d4ed8; }
.ph-review-key { color: var(--ph-review-red); font-weight: 700; }
.ph-exp-head { font-weight: 700; color: #0f2f5c; }

.ph-review-image { position: relative; width: 480px; max-width: 100%; margin: 0 auto; isolation: isolate; }
.ph-review-image .nt-img { width: 100%; padding: 0; border: 0; }
.ph-review-passage { margin-bottom: 14px; }
.ph-mark { position: absolute; pointer-events: none; }
.ph-mark-evidence { background: #fecaca; box-shadow: inset 0 -1px #ef4444; mix-blend-mode: multiply; }
/* 2부(고1 실전 독해)는 정답 근거를 노란색으로 칠한다. */
#ph-test[data-part="2"] .ph-mark-evidence { background: #ffe55c; box-shadow: none; }
.ph-mark-answer { border: 2px solid var(--ph-review-red); border-radius: 4px; }
.ph-mark-answer b {
  position: absolute; left: calc(100% + 4px); top: 50%; transform: translateY(-50%); width: max-content;
  padding: 1px 5px; color: #fff; background: var(--ph-review-red); border-radius: 3px;
  font: 700 11px/1.35 var(--nt-sans);
}
.ph-part + .ph-part, .ph-part + details { margin-top: 20px; }

.ph-grammar-instruction { margin: 16px 0 8px; font-weight: 700; }
.ph-grammar-sentence { margin: 8px 0 16px; font: 600 19px/1.55 var(--nt-sans); white-space: pre-line; }
.ph-grammar-options { display: grid; gap: 8px; }
.ph-grammar-options .nt-btn { justify-content: flex-start; min-height: 44px; text-align: left; white-space: normal; }
.ph-grammar-review-options { list-style: none; padding: 0; }
.ph-grammar-review-options li { margin: 12px 0; }
.ph-grammar-review-options p { margin: 2px 0 0; }
#ph-grammar .nt-exp > summary { cursor: pointer; }
#ph-grammar .nt-exp > .ph-grammar-instruction { margin: 16px 0 6px; }
#ph-grammar .nt-exp > .ph-grammar-sentence { margin: 6px 0 12px; }


/* 예비고1 어법 회차 목록 */
.ph-grammar-part-links { display: flex; justify-content: center; gap: 6px; }
.ph-grammar-part-links .nt-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .ph-grammar-part-links .nt-btn { padding-inline: 9px; }
  .nt-table.ph-grammar-finals tr { grid-template-columns: 1fr auto; grid-template-areas: "r go"; }
  .nt-table.ph-grammar-finals td.nt-round { text-align: left; }
}

.ph-timed .ph-grammar-pdf { display: none; }
.ph-grammar-pdf-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ph-grammar-pdf-links .nt-btn { min-width: 48px; }
