/* 오만개 개원 교과서 — 디자인 시스템 v0.1 (교과서플랫폼/디자인시스템.md) */
@font-face { font-family: "Pretendard"; src: url("/fonts/PretendardVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --title: #191F28; --ink: #333D4B; --sub: #6B7684; --dim: #8B95A1;
  --bg: #FFFFFF; --soft: #F9FAFB; --box: #F2F4F6; --line: #E5E8EB; --line2: #D1D6DB;
  --navy: #1B2A4A; --blue: #1F5EDC; --blue-soft: #EEF3FD; --blue-ink: #1A4BB0;
  --ok: #1E8E5A; --ok-soft: #E9F6EF; --no: #D64545; --no-soft: #FDEDED; --warn: #B7791F; --warn-soft: #FBF3E4;
  --r: 16px; --r-sm: 12px; --wrap: 1120px; --read: 700px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --title: #F2F4F6; --ink: #D7DCE1; --sub: #A2ABB6; --dim: #7F8893;
  --bg: #101318; --soft: #161A20; --box: #1D222A; --line: #2A3039; --line2: #39414C;
  --navy: #C9D6F2; --blue: #5B8DEF; --blue-soft: #18233A; --blue-ink: #9DBBF5;
  --ok: #4CC28A; --ok-soft: #13291F; --no: #F07575; --no-soft: #2E1717; --warn: #E0B05A; --warn-soft: #2B2314;
} }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", sans-serif; font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--title); margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.t-cover { font-size: 40px; line-height: 52px; font-weight: 700; }
.t1 { font-size: 30px; line-height: 40px; font-weight: 700; }
.t2 { font-size: 22px; line-height: 32px; font-weight: 700; }
.t3 { font-size: 20px; line-height: 30px; font-weight: 600; }
.sub { font-size: 15px; line-height: 24px; color: var(--sub); }
.meta { font-size: 14px; line-height: 20px; color: var(--sub); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* 머리 */
.hd { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; }
.logo b { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo span { font-size: 15px; font-weight: 600; color: var(--sub); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav :where(button,a[data-go]) { border: 0; background: none; padding: 8px 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--sub); cursor: pointer; }
.nav :where(button,a[data-go]):hover { background: var(--box); color: var(--title); }
.nav :where(button,a[data-go])[aria-current="true"] { color: var(--title); }
.hd-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--box); }
.readbar { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--navy); width: 0; transition: width .1s linear; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: var(--r-sm); border: 0; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-p { background: var(--blue); color: #fff; }
.btn-p:hover { filter: brightness(1.06); }
.btn-s { background: var(--box); color: var(--title); }
.btn-s:hover { background: var(--line); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-text { border: 0; background: none; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; font-size: 15px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 배지(글자) */
.bdg { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 6px; background: var(--box); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.bdg.lv0 { color: var(--ok); background: var(--ok-soft); }
.bdg.lv1 { color: var(--blue-ink); background: var(--blue-soft); }
.bdg.lv2 { color: var(--navy); background: var(--box); box-shadow: inset 0 0 0 1px var(--line2); }
.bdg.st { background: none; color: var(--sub); padding: 0; height: auto; }

/* 구역 */
.sec { padding: 72px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

/* 홈 */
.cover { padding: 72px 0 56px; background: var(--soft); border-bottom: 1px solid var(--line); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cover p.lead { font-size: 18px; line-height: 30px; color: var(--ink); margin: 16px 0 0; max-width: 30em; }
.search { display: flex; gap: 8px; margin-top: 28px; max-width: 520px; }
.search input { flex: 1; min-height: 52px; border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 0 16px; font: inherit; font-size: 17px; background: var(--bg); color: var(--title); }
.search input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.facts { display: flex; gap: 32px; margin-top: 28px; }
.facts div b { display: block; font-size: 26px; line-height: 34px; color: var(--title); font-weight: 700; }
.facts div span { font-size: 14px; color: var(--sub); font-weight: 500; }
.plate { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.plate h3 { font-size: 17px; line-height: 26px; }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.choice :where(button,a[data-go]) { text-align: left; min-height: 52px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--bg); font-size: 16px; font-weight: 600; color: var(--title); cursor: pointer; }
.choice :where(button,a[data-go])[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.choice :where(button,a[data-go]) small { display: block; font-size: 14px; font-weight: 500; color: var(--sub); }

/* 학습 순서 목록 */
.path { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.path li { border-bottom: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 16px 4px; border: 0; background: none; text-align: left; cursor: pointer; }
.prow:hover { background: var(--soft); }
.prow.off { cursor: default; }
.prow.off:hover { background: none; }
.pno { font-size: 15px; font-weight: 700; color: var(--sub); font-variant-numeric: tabular-nums; }
.prow.done .pno { color: var(--ok); }
.pt b { display: block; font-size: 17px; line-height: 26px; color: var(--title); font-weight: 600; }
.pt span { display: block; font-size: 15px; line-height: 23px; color: var(--sub); margin-top: 2px; }
.prow.off .pt b { color: var(--sub); font-weight: 500; }
.pe { display: flex; align-items: center; gap: 10px; white-space: nowrap; }

/* 진도 지도 */
.map { display: grid; gap: 10px; }
.map-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 72px; gap: 16px; align-items: center; }
.map-row .mn { font-size: 15px; font-weight: 600; color: var(--title); border: 0; background: none; text-align: left; padding: 0; cursor: pointer; }
.map-row .mn span { color: var(--sub); font-weight: 700; margin-right: 6px; }
.cells { display: flex; flex-wrap: wrap; gap: 3px; }
.cell { width: 12px; height: 12px; border-radius: 3px; background: var(--box); box-shadow: inset 0 0 0 1px var(--line); }
.cell.w { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line2); }
.cell.r { background: var(--navy); box-shadow: none; }
.cell.q { background: var(--blue); box-shadow: none; }
.map-row .mp { font-size: 14px; color: var(--sub); text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--sub); align-items: center; flex-wrap: wrap; }
.legend .cell { display: inline-block; vertical-align: -1px; margin-right: 6px; }

/* 오늘의 문제 / 문제 카드 */
.qcard { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--bg); }
.qsrc { font-size: 14px; color: var(--sub); font-weight: 600; }
.qq { font-size: 18px; line-height: 29px; font-weight: 600; color: var(--title); margin: 8px 0 14px; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 13px 16px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--bg); font-size: 16px; line-height: 25px; cursor: pointer; color: var(--title); }
.opt:hover:not([disabled]) { border-color: var(--blue); }
.opt[disabled] { cursor: default; }
.opt.ok { border-color: var(--ok); background: var(--ok-soft); }
.opt.no { border-color: var(--no); background: var(--no-soft); }
.why { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--box); font-size: 16px; line-height: 26px; }
.why b { display: block; margin-bottom: 4px; }

/* 제도 변화 줄 */
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lines .d { font-size: 15px; color: var(--sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.lines b { display: block; color: var(--title); font-weight: 600; }
.lines span { display: block; font-size: 15px; color: var(--sub); line-height: 24px; margin-top: 2px; }

/* 교과서 목차 */
.lib-h { padding: 48px 0 24px; }
.lib-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.seg { display: inline-flex; background: var(--box); border-radius: 12px; padding: 4px; gap: 2px; }
.seg :where(button,a[data-go]) { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--sub); cursor: pointer; }
.seg :where(button,a[data-go])[aria-pressed="true"] { background: var(--bg); color: var(--title); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.part { padding: 28px 0; border-top: 1px solid var(--line); }
.part > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.part > summary::-webkit-details-marker { display: none; }
.part .pn { font-size: 15px; font-weight: 700; color: var(--sub); }
.part .pi { font-size: 15px; color: var(--sub); margin: 8px 0 0 68px; line-height: 24px; }
.ch { margin: 20px 0 0 68px; }
.ch h3 { font-size: 16px; line-height: 24px; color: var(--sub); font-weight: 700; margin-bottom: 4px; }

/* 절 읽기 */
.reader { display: grid; grid-template-columns: 220px minmax(0, var(--read)) 200px; gap: 48px; justify-content: center; padding: 40px 24px 96px; }
.r-left { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14px; }
.r-left h4 { font-size: 14px; line-height: 21px; color: var(--title); font-weight: 700; margin-bottom: 10px; }
.r-left ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.r-left :where(button,a[data-go]) { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; line-height: 21px; cursor: pointer; }
.r-left :where(button,a[data-go]):hover { background: var(--box); }
.r-left :where(button,a[data-go]).on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.r-left :where(button,a[data-go]).off { color: var(--dim); }
.r-left :where(button,a[data-go]) .num { display: block; font-size: 13px; color: var(--sub); font-weight: 600; }
.r-left :where(button,a[data-go]) i { float: right; color: var(--ok); font-style: normal; }
.crumb { font-size: 14px; color: var(--sub); font-weight: 500; display: flex; gap: 6px; flex-wrap: wrap; }
.crumb :where(button,a[data-go]) { border: 0; background: none; padding: 0; color: var(--sub); cursor: pointer; font: inherit; }
.crumb :where(button,a[data-go]):hover { color: var(--title); }
.r-title { font-size: 32px; line-height: 42px; font-weight: 700; margin: 12px 0 14px; }
.trust { font-size: 14px; line-height: 22px; color: var(--sub); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.trust b { color: var(--ink); font-weight: 600; }
.goal { margin-top: 24px; }
.goal p { margin: 4px 0 0; font-size: 17px; line-height: 28px; color: var(--title); font-weight: 500; }
.ladder { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.ladder span { display: inline-flex; align-items: center; gap: 3px; color: var(--dim); font-weight: 500; }
.ladder span.on { color: var(--ink); font-weight: 600; }
.ladder span svg { color: var(--ok); }
.apply { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; line-height: 28px; }
.ol { display: inline-block; width: 22px; color: var(--sub); font-weight: 600; }
.rcard { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.rkeys { margin: 18px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 28px; }
.mock-h { margin: 4px 0 8px; }
.mock-res { margin: 16px 0; padding: 20px 22px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); display: grid; gap: 8px; }
.mock-res b { display: block; font-size: 22px; line-height: 32px; color: var(--title); }
.goal h2, .keys h2, .rsec h2 { font-size: 15px; color: var(--sub); font-weight: 700; letter-spacing: 0; }
.goal ul { margin: 6px 0 0; padding-left: 20px; font-size: 16px; line-height: 26px; }
.summary { margin-top: 24px; background: var(--box); border-radius: var(--r); padding: 20px 22px; font-size: 18px; line-height: 30px; color: var(--title); font-weight: 500; }
.keys { margin-top: 28px; }
.keys ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; line-height: 28px; }
.body h2 { font-size: 22px; line-height: 32px; margin: 48px 0 12px; scroll-margin-top: 88px; }
.body p { font-size: 19px; line-height: 33px; margin: 0 0 18px; color: var(--ink); scroll-margin-top: 120px; transition: background .4s; border-radius: 6px; }
.body p.hl { background: var(--warn-soft); box-shadow: 0 0 0 6px var(--warn-soft); }
.cite { font-size: 12px; vertical-align: super; line-height: 0; margin-left: 2px; }
.cite :where(button,a[data-go]) { border: 0; background: none; padding: 0 1px; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; }
.rsec { margin-top: 48px; }
.rsec ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 17px; line-height: 28px; }
.rsec.warn ul li::marker { color: var(--warn); }
.basis { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.basis summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--title); font-size: 16px; }
.basis pre { white-space: pre-wrap; font-family: inherit; font-size: 15px; line-height: 26px; margin: 0; padding: 0 16px 14px; color: var(--ink); }
.srcs { margin: 8px 0 0; padding-left: 22px; font-size: 15px; line-height: 24px; display: grid; gap: 6px; color: var(--ink); }
.srcs li.hl { background: var(--warn-soft); border-radius: 4px; }
.r-side { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.r-side h4 { font-size: 14px; color: var(--sub); font-weight: 700; margin-bottom: 8px; }
.toc-in { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc-in :where(button,a[data-go]) { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--sub); font-size: 14px; line-height: 21px; cursor: pointer; }
.toc-in :where(button,a[data-go]).on { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.r-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.r-nav :where(button,a[data-go]) { text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 16px 18px; cursor: pointer; }
.r-nav :where(button,a[data-go]) span { display: block; font-size: 14px; color: var(--sub); font-weight: 600; }
.r-nav :where(button,a[data-go]) b { display: block; font-size: 16px; color: var(--title); line-height: 24px; margin-top: 2px; }
.r-nav .next { text-align: right; }
.done-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding: 18px 20px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--line); }
.ai-note { margin-top: 32px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); font-size: 16px; line-height: 26px; }
.ai-note b { color: var(--title); }

/* 내 공부 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.stats div { padding: 18px 20px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; line-height: 34px; color: var(--title); }
.stats span { font-size: 14px; color: var(--sub); font-weight: 500; }
.empty { padding: 28px; border-radius: var(--r); background: var(--soft); color: var(--sub); text-align: center; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--title); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 600; z-index: 50; max-width: calc(100vw - 32px); }
.foot { padding: 40px 0 64px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14px; line-height: 22px; }

@media (max-width: 1240px) { .reader { grid-template-columns: minmax(0, var(--read)) 200px; } .r-left { display: none; } }
@media (max-width: 960px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .reader { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .r-side, .r-left { display: none; }
  .map-row { grid-template-columns: 120px minmax(0, 1fr) 56px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hd-in { gap: 12px; }
  .logo span { display: none; }
  .nav :where(button,a[data-go]) { padding: 8px 8px; font-size: 15px; }
  .t-cover { font-size: 30px; line-height: 40px; }
  .t1, .r-title { font-size: 26px; line-height: 36px; }
  .cover { padding: 44px 0 40px; }
  .sec { padding: 56px 0; }
  .choice { grid-template-columns: minmax(0, 1fr); }
  .map-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .map-row .mp { text-align: left; }
  .lines li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reader { padding: 24px 20px 72px; }
  .body p { font-size: 18px; line-height: 31px; }
  .r-nav { grid-template-columns: minmax(0, 1fr); }
  .part > summary { grid-template-columns: 44px minmax(0, 1fr); }
  .part > summary .meta { grid-column: 2; }
  .part .pi, .ch { margin-left: 0; }
  .prow { grid-template-columns: 36px minmax(0, 1fr); }
  .prow .pe { grid-column: 2; }
}
.moments { display: grid; gap: 6px; margin-top: 10px; }
.moments :where(button,a[data-go]) { display: flex; gap: 12px; align-items: center; text-align: left; min-height: 46px; padding: 8px 14px; border-radius: var(--r-sm); border: 1px solid var(--line2); background: var(--bg); font-size: 16px; font-weight: 600; color: var(--title); cursor: pointer; }
.moments :where(button,a[data-go]) .num { color: var(--sub); font-weight: 700; width: 16px; }
.moments :where(button,a[data-go])[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.note-l { display: block; margin-top: 16px; font-size: 15px; color: var(--sub); font-weight: 600; }
.note { width: 100%; margin-top: 8px; border: 1px solid var(--line2); border-radius: var(--r-sm); padding: 12px 14px; font: inherit; font-size: 16px; line-height: 26px; color: var(--title); background: var(--bg); resize: vertical; }
.note:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }

/* 시험 1 반영(2026-10-20): 다음에 할 일, 접는 목록, 진도 칸 이동, 신뢰 줄, 휴대폰 절 화면 */
.cover-back { padding: 48px 0 40px; }
.next { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.mine { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 16px; }
.mine b { color: var(--title); font-weight: 600; }
.cover-back .search { margin-top: 20px; }
.seg-2 { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.choice-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moments :where(button,a[data-go]) > span:last-child { display: grid; }
.moments :where(button,a[data-go]) b { font-weight: 600; }
.moments :where(button,a[data-go]) small { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--sub); }
.moments :where(button,a[data-go])[aria-pressed="true"] small { color: var(--blue-ink); }
.soon { margin-top: 16px; border-top: 1px solid var(--line); }
.soon > summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--sub); }
.ch-first { margin: 0 0 32px; padding: 20px 24px; border-radius: var(--r); background: var(--soft); }
.ch-first h3 { font-size: 17px; margin-bottom: 8px; }
.cell { border: 0; padding: 0; background: none; box-shadow: none; outline: 1px dashed var(--line2); outline-offset: -1px; }
.cell.w { background: var(--line); outline: 0; box-shadow: none; }
.cell.w:hover { background: var(--line2); }
.cell.r { background: var(--navy); outline: 0; box-shadow: none; }
.cell.q { background: var(--blue); outline: 0; box-shadow: none; }
:where(button,a[data-go]).cell { cursor: pointer; }
:where(button,a[data-go]).cell:hover { box-shadow: inset 0 0 0 2px var(--blue); }
.stats span small { display: block; font-size: 13px; color: var(--dim); }
.tip { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 700; line-height: 22px; vertical-align: 1px; }
.trust-more { margin-top: 8px; font-size: 14px; color: var(--sub); }
.trust-more summary { cursor: pointer; font-weight: 600; width: max-content; }
.trust-more p { margin: 6px 0 0; line-height: 22px; }
.r-left details { margin-top: 6px; }
.r-left summary { cursor: pointer; padding: 6px 4px; font-size: 14px; line-height: 21px; color: var(--sub); font-weight: 600; }
.r-left details[open] > summary { color: var(--title); }
.backq { display: flex; margin: -4px 0 20px; }
.cite { white-space: nowrap; }
.cite :where(button,a[data-go]) { position: relative; }
.cite :where(button,a[data-go])::after { content: ""; position: absolute; inset: -10px -6px; }
.toc-m { display: none; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.toc-m summary { cursor: pointer; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--title); }
.toc-m ul { list-style: none; margin: 0; padding: 0 8px 8px; }
.toc-m :where(button,a[data-go]) { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; font-size: 15px; color: var(--ink); border-radius: 8px; cursor: pointer; }
.sticky-done { display: none; }
@media (max-width: 960px) {
  .toc-m { display: block; }
  .sticky-done:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 8px; justify-content: flex-end; padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 96%, transparent); border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .choice-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next { padding: 20px; }
  .cover-back { padding: 28px 0 32px; }
}
.nav :where(button,a[data-go]) { white-space: nowrap; }
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hd-in { gap: 8px; }
  .nav { gap: 0; }
  .nav :where(button,a[data-go]) { padding: 6px 5px; font-size: 14px; }
  .logo b { font-size: 18px; }
}

/* 2026-10-20 사용자 요청: 시안2 머리말 유지, 예비 개원의 교과서, 표지 검색·숫자 빼고 고르기 상자 바로 */
.hx-title { font-size: clamp(42px, 5.4vw, 68px); font-weight: 800; line-height: 1.16; letter-spacing: -0.045em; color: var(--title); }
.hx-title em { font-style: normal; color: var(--blue); }
.book-name { margin: 28px 0 0; font-size: 22px; line-height: 32px; font-weight: 700; color: var(--navy); }
.hero .lead { margin-top: 10px; }
.cover-grid { align-items: center; }
.plate-h { font-size: 22px; line-height: 32px; font-weight: 700; margin-bottom: 16px; }
.cover-back .cover-grid { align-items: start; }
.cover-back .hx-title { font-size: clamp(36px, 4.2vw, 52px); }
.cover-side .mine { margin-top: 16px; }
/* 꼭 기억할 것: 알아 둘 것과 나눠, 외울 것만 짧게 */
.remember { margin-top: 28px; padding: 20px 22px; border-radius: var(--r); background: var(--blue-soft); }
.remember h2 { font-size: 18px; line-height: 26px; color: var(--blue-ink); }
.rem-l { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.rem-l li b { display: block; font-size: 17px; line-height: 28px; color: var(--title); font-weight: 700; }
.rem-l .cue { display: block; margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--ink); }
.rem-l .cue i { font-style: normal; font-weight: 700; color: var(--blue-ink); margin-right: 8px; }
.rem-l .why { display: block; margin-top: 2px; font-size: 15px; line-height: 24px; color: var(--sub); }
.rcard .rem-l, .rem-group .rem-l { margin-top: 12px; }
.rem-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .cover-back .cover-side { order: -1; }
  .cover-back .hx-title { font-size: 34px; }
}
@media (max-width: 640px) {
  .hx-title { font-size: 40px; }
  .book-name { margin-top: 20px; font-size: 20px; }
  .remember { padding: 16px 18px; }
}

/* 2026-10-20 토스 결 다듬기: 테두리보다 면, 큰 모서리, 넓은 누름 영역, 휴대폰 아래 탭 */
:root { --r: 20px; --r-sm: 14px; --gray: #B0B8C1; }
.logo { align-items: center; gap: 8px; }
.logo b { font-size: 21px; }
.hd { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.login-btn { min-height: 36px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.me-chip:hover { background: var(--box); }
.me-chip .nm { font-size: 15px; font-weight: 600; color: var(--title); }
.av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; font-weight: 700; flex: none; }
.btn { border-radius: var(--r-sm); min-height: 52px; }
.btn-sm { min-height: 40px; border-radius: 10px; }
.btn-p:active, .btn-s:active { transform: scale(.98); }
.btn-kakao { background: #FEE500; color: #191919; gap: 8px; }
.btn-kakao:hover { filter: brightness(.97); }
/* 표지와 고르기 상자 */
.cover { background: var(--soft); border-bottom: 0; }
.plate { border: 0; border-radius: 24px; padding: 28px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.choice :where(button,a[data-go]), .moments :where(button,a[data-go]) { border: 0; background: var(--box); border-radius: var(--r-sm); min-height: 56px; transition: background .15s; }
.choice :where(button,a[data-go]):hover, .moments :where(button,a[data-go]):hover { background: var(--line); }
.choice :where(button,a[data-go])[aria-pressed="true"], .moments :where(button,a[data-go])[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 1.5px var(--blue); }
.seg { border-radius: 14px; }
.seg :where(button,a[data-go]) { border-radius: 10px; padding: 10px 14px; }
.next { border: 0; border-radius: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
/* 목록 줄: 선 대신 넓은 누름 영역과 둥근 강조 */
.path { border-top: 0; }
.path li { border-bottom: 0; }
.prow { padding: 18px 12px; border-radius: 16px; }
.prow:hover { background: var(--box); }
.prow .pno { width: 32px; height: 32px; border-radius: 50%; background: var(--box); display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--sub); }
.prow.done .pno { background: var(--ok-soft); }
.prow .pe svg { color: var(--gray); }
.soon { border-top: 0; margin-top: 8px; }
.soon > summary { padding: 14px 12px; border-radius: 12px; }
.soon > summary:hover { background: var(--box); }
/* 절 화면 상자들 */
.summary, .goal, .keys, .remember, .done-bar, .ai-note, .qcard { border-radius: var(--r); }
.done-bar { border: 0; background: var(--box); }
.ai-note { border: 0; background: var(--soft); }
.qcard { border: 0; background: var(--soft); }
.opt { border: 0 !important; background: var(--bg); border-radius: var(--r-sm) !important; min-height: 56px; box-shadow: 0 0 0 1px var(--line); }
.opt.ok { box-shadow: inset 0 0 0 2px var(--ok); background: var(--ok-soft); }
.opt.no { box-shadow: inset 0 0 0 2px var(--no); background: var(--no-soft); }
.r-nav :where(button,a[data-go]) { border: 0; background: var(--box); border-radius: var(--r); }
.r-nav :where(button,a[data-go]):hover { background: var(--line); }
/* 내 공부 계정 줄 */
.acct { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--soft); margin-bottom: 20px; }
.acct > div { display: grid; flex: 1; }
.acct b { color: var(--title); font-size: 17px; }
.acct .av { width: 44px; height: 44px; font-size: 18px; }
.stats { border: 0; background: var(--soft); }
.stats div + div { border-left: 0; }
/* 로그인 시트 */
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; }
.sheet { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); background: var(--bg); border-radius: 24px; padding: 28px 24px 20px; display: grid; gap: 10px; }
.sheet h2 { font-size: 22px; line-height: 32px; }
.sheet-l { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; line-height: 25px; color: var(--ink); }
/* 휴대폰 아래 탭 */
.tabbar { display: none; }
@media (max-width: 640px) {
  .nav { display: none; }
  .hd-in { justify-content: space-between; }
  .me-chip .nm { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(8px); box-shadow: 0 -1px 0 var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar :where(button,a[data-go]) { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--gray); font-size: 12px; font-weight: 600; cursor: pointer; }
  .tabbar :where(button,a[data-go]) span { font-size: 12px; }
  .tabbar :where(button,a[data-go])[aria-current="true"] { color: var(--title); }
  body { padding-bottom: 72px; }
  .sticky-done:not([hidden]) { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .sec + .sec { border-top: 0; box-shadow: 0 -12px 0 var(--box); margin-top: 12px; }
  .sheet { top: auto; bottom: 0; left: 0; right: 0; transform: none; width: auto; border-radius: 24px 24px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .plate { padding: 22px 18px; }
  .prow { padding: 16px 8px; }
}

/* 2026-10-21 오픈 점검: 문단 묶기, 이름표 둘, 문제 부별 */
.body p .sent + .sent::before { content: ""; }
.body p .sent.hl, .body p.note-p .sent.hl { background: var(--warn-soft); box-shadow: 0 0 0 4px var(--warn-soft); border-radius: 4px; }
.body p.note-p { font-size: 16px; line-height: 27px; color: var(--ink); background: var(--soft); border-radius: 12px; padding: 12px 16px; }
.tip { background: var(--box); color: var(--ink); }
.tip.tip-term { background: var(--blue-soft); color: var(--blue-ink); }
.qparts { gap: 6px; }
.prow .pno.wide { width: auto; min-width: 48px; height: auto; border-radius: 0; background: none; justify-content: start; font-size: 14px; color: var(--sub); }

/* 운영 도구 */
.tcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tcards :where(button,a[data-go]) { text-align: left; border: 0; background: var(--soft); border-radius: var(--r); padding: 22px; cursor: pointer; display: grid; gap: 6px; }
.tcards :where(button,a[data-go]):hover { background: var(--box); }
.tcards b { font-size: 19px; color: var(--title); }
.tcards span { font-size: 15px; color: var(--sub); line-height: 23px; }
.dsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--soft); border-radius: var(--r); }
.dsum div { padding: 16px 18px; } .dsum b { display: block; font-size: 26px; color: var(--title); } .dsum span { font-size: 14px; color: var(--sub); }
.dtable { overflow-x: auto; }
.dtable table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dtable th { text-align: left; font-size: 13px; color: var(--sub); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dtable td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable td:first-child { min-width: 240px; } .dtable td b { display: block; color: var(--title); }
.dtable td .meta { display: block; margin-top: 2px; }
.dtable select, .dtable input { font: inherit; font-size: 15px; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; background: var(--bg); color: var(--title); }
.dtable input { width: 100%; min-width: 150px; }
.lock { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--box); border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.calform { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; background: var(--soft); border-radius: var(--r); padding: 18px 20px; }
.calform label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--title); }
.calform input[type=date] { font: inherit; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; }
.ck input, .calist input { width: 20px; height: 20px; accent-color: var(--blue); }
.calm { margin: 32px 0 6px; }
.calist { list-style: none; margin: 0; padding: 0; }
.calist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.calist li label { display: flex; align-items: center; gap: 10px; }
.calist .cd { font-size: 16px; font-weight: 700; color: var(--title); }
.calist li > div { display: grid; gap: 2px; } .calist b { color: var(--title); font-weight: 600; }
.calist li.done b { color: var(--sub); text-decoration: line-through; }
.toolbox { margin-top: 28px; padding: 18px 20px; border-radius: var(--r); background: var(--blue-soft); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.toolbox b { color: var(--blue-ink); }
@media (max-width: 640px) { .tcards, .dsum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calist li { grid-template-columns: 80px minmax(0, 1fr); } }
@media print { .hd, .tabbar, .foot, .sheet, .sheet-bg, .calform, .row, form, .toolbox { display: none !important; } body { padding: 0; } .wrap { max-width: none; } }
@media (max-width: 640px) {
  .dtable table, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable thead { display: none; }
  .dtable tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .dtable td { border: 0; padding: 4px 0; min-width: 0 !important; }
  .dtable select { width: 100%; }
}
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.foot-logo { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--navy); }
.foot-in p { margin: 4px 0 0; }
.foot-note { margin: 16px 0 0; color: var(--dim); }
/* 부 아이콘 */
.pic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--box); color: var(--title); flex: none; }
.pic svg { width: 22px; height: 22px; }
.part > summary { grid-template-columns: 36px 40px minmax(0, 1fr) auto; align-items: center; }
.part .pi { margin-left: 100px; }
@media (max-width: 640px) { .part > summary { grid-template-columns: 36px auto minmax(0, 1fr) auto; gap: 10px; } .part > summary .meta { grid-column: auto; } .part .pi { margin-left: 0; } }
.map-row .mn { display: inline-flex; align-items: center; gap: 8px; }
.map-row .mn .pic { width: 28px; height: 28px; border-radius: 8px; }
.map-row .mn .pic svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .acct-out { flex-direction: column; align-items: stretch; gap: 12px; } .acct-out .btn { justify-content: center; } }
.none { padding-top: 72px; padding-bottom: 120px; }
.tcards :where(button,a[data-go]) { gap: 10px; align-content: start; }
.tcards .pic { background: var(--bg); color: var(--blue); margin-bottom: 4px; }
.tcards .tgo { font-style: normal; font-size: 15px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.tcards .tgo svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .tcards { grid-template-columns: minmax(0, 1fr); } }
.nw { white-space: nowrap; }
.map-row { grid-template-columns: 250px minmax(0, 1fr) 56px; }
.map-row .mn span { white-space: nowrap; }
@media (max-width: 1100px) { .map-row { grid-template-columns: 210px minmax(0, 1fr) 48px; } }
@media (max-width: 640px) { .map-row { grid-template-columns: minmax(0, 1fr); } }
.map-row .mn span { min-width: 36px; margin-right: 0; }
@media (max-width: 640px) { .map-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "mn mp" "cells cells"; row-gap: 8px; margin-bottom: 10px; } .map-row .mn { grid-area: mn; } .map-row .cells { grid-area: cells; } .map-row .mp { grid-area: mp; text-align: right; } }
.seg :where(button,a[data-go]) { white-space: nowrap; } @media (max-width: 640px) { .seg :where(button,a[data-go]) { padding-left: 6px; padding-right: 6px; } }
@media (max-width: 640px) { .seg-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; box-sizing: border-box; } .seg-q :where(button,a[data-go]) { display: grid; gap: 2px; padding: 8px 4px; } }
.calist .cd { white-space: nowrap; } .calist li label { align-self: start; padding-top: 2px; } @media (max-width: 640px) { .calist li { grid-template-columns: 86px minmax(0, 1fr); gap: 8px; } }
.dtable td.dna { padding-top: 18px; } @media (max-width: 640px) { .dtable td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 4px; } .dtable td.dna { padding-top: 0; } }
@media (max-width: 640px) { .dtable td.dna { display: none; } }
a.btn-text { text-decoration: none; }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 16px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; }
.demo-bar :where(button,a[data-go]) { border: 0; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .demo-bar { background: var(--blue-soft); color: var(--title); } .demo-bar :where(button,a[data-go]) { color: var(--title); } }
.logo, .logo b, .logo span, .me-chip .nm, .hd nav :where(button,a[data-go]) { white-space: nowrap; }
.logo { flex: none; }
@media (max-width: 1100px) { .logo span { display: none; } .me-chip .nm { display: none; } }

/* 사이트 통합(2026-10-26): 머리말 솔루션 링크·도입 상담 버튼, 첫 화면 두 갈래 입구 */
.nav a.nav-a { padding: 8px 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--sub); text-decoration: none; }
.nav a.nav-a:hover { background: var(--box); color: var(--title); }
.hd-cta { margin-left: 4px; }
.btn-w { background: #fff; color: #191F28; }

/* 개원 과정(2026-10-28): 할 일 줄·과정 단계·이번 주 칸·밀린 것 묶음 */
/* 할 일 줄: .prow와 같은 모양에 체크만 더해요. 체크 칸은 진짜 checkbox, 누름 영역은 줄 전체 */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-radius: 16px; }
.todo li:hover { background: var(--box); }
.tk { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 64px; padding: 16px 0 16px 12px; cursor: pointer; }
.tk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tk .ck-c { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line2); color: var(--ok); }
.tk .ck-c svg { opacity: 0; }
.tk input:checked + .ck-c { background: var(--ok-soft); box-shadow: none; }
.tk input:checked + .ck-c svg { opacity: 1; }
.tk input:focus-visible + .ck-c { outline: 2px solid var(--blue); outline-offset: 2px; }
.todo .pt .num { display: inline; font-size: inherit; line-height: inherit; color: inherit; margin: 0; }
.todo .pt .over { color: var(--no); font-weight: 600; }
.todo .go { padding-right: 12px; white-space: nowrap; }
.law { font-style: normal; font-weight: 700; color: var(--title); }
.over { color: var(--no); font-weight: 600; }
/* 과정 단계·주: 교과서 목차의 .part를 아이콘 없이 */
.part.stg > summary { grid-template-columns: 64px minmax(0, 1fr) auto; }
.part.stg .pi, .part.stg .ch { margin-left: 76px; }
/* 이번 주 칸(옅은 회색 면), 밀린 것 묶음(옅은 노랑 면) */
.wk { margin: 0 0 32px; padding: 20px 24px; border-radius: var(--r); background: var(--soft); }
.wk h2 { font-size: 20px; line-height: 30px; }
.late { margin: 0 0 24px; padding: 16px 20px; border-radius: var(--r); background: var(--warn-soft); }
.late > summary { list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; color: var(--title); }
.late > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) {
  .todo li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tk { grid-template-columns: 36px minmax(0, 1fr); padding: 16px 8px 6px; }
  .todo .go { justify-self: start; padding: 0 8px 14px 58px; }
  .part.stg > summary { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .part.stg .pi, .part.stg .ch { margin-left: 0; }
  .wk { padding: 16px 12px; }
}
@media print { .lib-tools, .late > summary { display: none !important; } .todo li { break-inside: avoid; } }

@media (max-width: 640px) { .hd-cta { display: none; } }

/* 종이 체크리스트는 A4에서 날짜와 근거 번호를 함께 읽을 수 있게 줄여요. */
@media print {
  body:has(main .todo) .demo-bar, main:has(.todo) .crumb, main:has(.todo) .lib-h > .btn-text, .todo .go { display: none !important; }
  main:has(.todo) .lib-h { padding: 0; margin: 0 0 12px; }
  main:has(.todo) .t1 { font-size: 22px; line-height: 1.3; }
  main:has(.todo) .calm { margin-top: 12px; font-size: 14px; }
  main:has(.todo) .sub, main:has(.todo) .meta { font-size: 10px; line-height: 1.4; }
  .todo li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
  .todo .tk { min-height: 0; padding: 1px 0; grid-template-columns: 18px minmax(0, 1fr); gap: 6px; }
  .todo .ck-c { width: 14px; height: 14px; }
  .todo .pt b { font-size: 11px; line-height: 1.3; }
  .todo .pt > span { font-size: 9px; line-height: 1.3; margin-top: 0; }
  .todo .go { display: block !important; font-size: 9px; padding: 0; }
}

/* 캠퍼스 공통 머리와 정적 페이지 */
.campus-hd{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid #e5e8eb}.campus-hd-in{max-width:1240px;margin:auto;display:flex;align-items:center;gap:14px;padding:14px 24px}.campus-hd a{text-decoration:none;color:#333d4b;font-weight:600;white-space:nowrap}.campus-logo{display:flex;align-items:center;gap:6px}.campus-logo img{width:92px;height:30px;object-fit:contain}.campus-hd-in>nav{display:flex;gap:22px;margin:auto}.campus-actions{display:flex;align-items:center;gap:14px;margin-left:auto}.campus-actions svg{width:22px;height:22px}.campus-hd .btn-p,.campus-cta .btn-p{color:white;background:#2164d7}.campus-hd [aria-current]{color:#2164d7}.campus-sub{display:flex;gap:24px;max-width:1240px;margin:auto;padding:10px 24px;overflow-x:auto}.campus-static{max-width:920px;margin:auto;padding:48px 24px;line-height:1.8}.campus-static h1{font-size:32px;line-height:1.4}.campus-static h2{margin-top:32px}.campus-static pre{white-space:pre-wrap;overflow-wrap:anywhere}.campus-static a{color:#2164d7}.campus-cta{background:#f2f4f6;border-radius:16px;padding:24px;margin:28px 0}.campus-cta h2{font-size:20px;margin:0 0 8px}.campus-cta p{margin:0 0 18px}.campus-cta .row,.foot .row{gap:16px;flex-wrap:wrap}.campus-entries{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}.campus-entries a{padding:28px;background:#f2f6ff;border-radius:16px;font-size:24px;font-weight:700}.campus-tabs{display:none}a[data-go]{text-decoration:none;cursor:pointer}a.prow{display:flex;color:inherit}.tcards>a{display:flex;flex-direction:column;text-align:left;background:var(--soft);padding:24px;border-radius:16px;color:inherit}.r-nav>a{display:block;color:inherit;padding:20px}.r-nav>a span,.r-nav>a b{display:block}.r-left li>a{display:flex;gap:8px;padding:8px;color:inherit}.r-left li>a.on{color:var(--blue)}
@media(max-width:900px){.campus-hd-in>nav{display:none}.campus-hd-in{gap:8px;padding:12px 16px}.campus-actions{gap:10px}.campus-actions .btn{padding:9px 12px;font-size:14px}.campus-tabs{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid #e5e8eb;z-index:120;justify-content:space-around;padding:16px 4px calc(16px + env(safe-area-inset-bottom))}.campus-tabs a{font-size:13px;color:#333d4b;text-decoration:none}.foot{padding-bottom:100px}.campus-static{padding:32px 20px}}@media(max-width:420px){.campus-actions>a[data-go="me"],.campus-actions>a[href="/campus/me/"]{display:none}.campus-hd-in{gap:7px}.campus-logo img{width:76px}.campus-sub{gap:20px}.campus-entries a{font-size:20px}}

.campus-entries a{color:var(--title);text-decoration:none}.campus-entries a:hover{color:var(--blue)}

.campus-entries{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.campus-entries .entry{background:#f9fafb;border-radius:16px;padding:22px 24px}.campus-entries .entry h2{margin:0 0 6px;font-size:20px}.campus-entries .entry p{margin:0 0 14px;color:#4e5968;line-height:1.6}.campus-entries .entry a{font-weight:700;color:var(--blue)}
@media(max-width:640px){.campus-entries{grid-template-columns:1fr}}
.campus-cta .row{gap:8px;flex-wrap:wrap}

/* 계정 이름과 카카오 로그인 */
.campus-actions .btn-kakao{background:#FEE500;color:#191919;display:inline-flex;align-items:center;gap:6px}
.campus-actions .btn-kakao svg{width:18px;height:18px}
.campus-actions .me-chip{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#f2f4f6;border-radius:20px;padding:8px 12px;font-size:14px}
.acct{flex-wrap:wrap}.sheet a.btn{text-decoration:none;display:flex;justify-content:center}
@media(max-width:420px){.campus-actions{gap:6px}.campus-actions .me-chip{max-width:72px;padding:7px}.campus-actions .btn{padding:8px;font-size:12px}.campus-actions>a[data-go="search"]{display:none}}
/* Campus unified brand, account and consultation surfaces. */
.campus-brand{display:inline-flex;align-items:center;gap:6px;text-decoration:none;white-space:nowrap;color:#0B2A5B!important;font-size:20px;font-weight:700;flex-shrink:0}
.campus-brand img{display:block!important;height:28px!important;width:auto!important;max-width:none!important}
.campus-actions .btn{min-height:0;display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border:0;border-radius:10px;font-size:15px;font-weight:600;box-sizing:border-box;white-space:nowrap;box-shadow:none}
.btn-kakao{background:#FEE500!important;color:rgba(0,0,0,.85)!important;box-shadow:none}
.btn-kakao:hover{filter:none}.btn-kakao:active{background:#F5DC00!important}
.campus-actions .btn-kakao svg{width:16px;height:16px}.login-mobile{display:none}
.campus-actions .me-chip{height:40px;max-width:180px;padding:0 10px;display:inline-flex;gap:8px;align-items:center;border-radius:20px}
.initial{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;background:#e5e8eb;border-radius:50%}
.campus-sub a:last-child{margin-left:auto;display:flex;align-items:center;gap:6px}.campus-sub svg{width:18px;height:18px}
.sheet-bg{z-index:200}.sheet{z-index:201;max-width:400px;border-radius:20px;padding:40px 28px;gap:20px;background:white}.sheet h2,.login-gate h2{font-size:22px;font-weight:700;line-height:1.5}.sheet-l{display:block;padding:0;margin:0;color:#6b7684;font-size:15px;line-height:1.65}
.sheet .btn-kakao,.login-gate .btn-kakao{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;border-radius:12px;text-decoration:none}.sheet .btn-kakao svg,.login-gate .btn-kakao svg{width:20px;height:20px}
.login-terms{font-size:12px;color:#8b95a1;line-height:1.7}.login-terms a{color:inherit;text-decoration:underline}.sheet-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:26px;cursor:pointer}
.login-gate{max-width:400px;margin:64px auto;padding:32px 24px;display:grid;gap:24px;background:white;border:1px solid #e5e8eb;border-radius:20px}
.consult-overlay{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:20px}
.consult-dialog{width:560px;max-width:100%;max-height:90dvh;background:white;border-radius:20px;overflow:hidden;display:flex;flex-direction:column}.consult-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;flex-shrink:0}.consult-dialog h2{margin:0;font:700 22px/1.5 sans-serif;color:#191f28}.consult-dialog button{border:0;background:none;font-size:28px;cursor:pointer}.consult-dialog iframe{display:block;width:100%;height:650px;max-height:calc(90dvh - 78px);border:0;background:white;flex-shrink:1}.consult-toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);background:#191f28;color:white;padding:14px 22px;border-radius:12px;z-index:400;white-space:nowrap}
@media(max-width:900px){.campus-hd-in{padding:12px}.campus-actions{gap:6px}.campus-brand img{height:24px!important}.campus-actions .btn{height:36px;padding:0 10px;font-size:13px}.login-desktop{display:none}.login-mobile{display:inline}.campus-actions .me-chip{height:36px;max-width:96px}.campus-brand{font-size:20px}.sheet .campus-brand img{height:28px!important}}
@media(max-width:600px){.sheet{max-width:none;border-radius:20px 20px 0 0}.consult-overlay{padding:0}.consult-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.consult-dialog iframe{flex:1;max-height:calc(100dvh - 78px)}.login-gate{margin:32px 16px}}

body.login-sheet-open{overflow:hidden}
.campus-static a.btn-p{color:#fff}
/* 로고 SVG 위아래에 여백이 있어(약 20%) 실제 글자가 작아 보여요. 그림은 키우고 여백만큼 음수 여백으로 줄 높이를 지켜요. */
.campus-brand img{height:46px!important;margin:-9px -2px -9px -8px}
.campus-brand{font-size:21px;gap:4px}
@media(max-width:900px){.campus-brand img{height:40px!important;margin:-8px -2px -8px -7px}.campus-brand{font-size:19px}}
.sheet .campus-brand img{height:40px!important;margin:-8px -2px -8px -7px}

/* 머리 '내 공부'(2026-11-01): 로그인 버튼을 없애고 이 버튼 하나로. 상담 신청과 같은 높이의 테두리 버튼 */
.campus-actions>a[href="/campus/me/"]{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border:1px solid #d1d6db;border-radius:10px;font-size:15px;font-weight:600;color:#333d4b}
.campus-actions>a.me-chip .initial{width:22px;height:22px;border-radius:50%;background:#1F5FD6;color:#fff;font-size:12px;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:900px){.campus-actions>a[href="/campus/me/"]{height:36px;padding:0 10px;font-size:13px}}
