/* INCHAE 백과 — 3D 화면(css/style.css)과 같은 판: 무채색, 단추 32·모서리 8, 흐림 없음 */
:root {
  --bg: #0c0d0f; --s1: #141518; --s2: #1b1c20; --s3: #24262b;
  --line: #26282d; --line-2: #33353b;
  --t1: #ececee; --t2: #a2a5ad; --t3: #6c6f77;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --top: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--bg); color: var(--t1); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.n { margin-left: 6px; color: var(--t3); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
kbd { font: 500 11px/18px var(--font); color: var(--t3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }

/* 위 막대 */
.top { position: sticky; top: 0; z-index: 10; height: var(--top); background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.brand { font-family: var(--font); font-weight: 900; font-size: 19px; line-height: 1; letter-spacing: -.01em; text-decoration: none; }
.tnav { display: flex; gap: 4px; }
.tnav a { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--t2); text-decoration: none; font-size: 14px; font-weight: 600; }
.tnav a:hover { background: var(--s2); color: var(--t1); }
.tnav a[aria-current] { color: var(--t1); }
.top .sbox { margin-left: auto; width: 280px; }

/* 찾기 */
.sbox { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 8px; color: var(--t3); }
.sbox:focus-within { border-color: var(--line-2); background: var(--s2); }
.sbox input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--t1); font: inherit; font-size: 14px; }
.sbox input::-webkit-search-cancel-button { display: none; }
.sbox.big { height: 52px; padding: 0 16px; gap: 12px; }
.sbox.big input { font-size: 16px; }
.sres { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); max-height: min(440px, 70vh); overflow: auto; background: var(--s1); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; z-index: 20; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); }
.top .sres { left: auto; width: 380px; }
.sres a { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--t1); }
.sres a b { font-weight: 600; font-size: 15px; white-space: nowrap; flex: none; }
.sres a span { color: var(--t3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sres a em { margin-left: auto; font-style: normal; color: var(--t3); font-size: 12px; white-space: nowrap; }
.sres a.on, .sres a:hover { background: var(--s3); }
.sres .none { padding: 12px 10px; color: var(--t3); font-size: 14px; }

/* 옆 차례 (항목·목차 공통) */
.art-wrap, .idx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
.toc-side, .sys-side { position: relative; }
.toc-in { position: sticky; top: calc(var(--top) + 28px); padding-top: 36px; max-height: calc(100vh - var(--top) - 40px); overflow: auto; }
.toc-t { font-size: 11px; font-weight: 600; color: var(--t3); margin: 0 0 8px 10px; }
.toc-in ol { list-style: none; margin: 0; padding: 0; }
.toc-in li a { display: flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 8px; color: var(--t2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc-in li a:hover { background: var(--s1); color: var(--t1); }
.toc-in li a.on { background: var(--s2); color: var(--t1); font-weight: 600; }
.toc-in .n { margin-left: auto; }

/* 스위치 */
.sw { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13px; color: var(--t2); cursor: pointer; user-select: none; }
.sw input { position: absolute; opacity: 0; }
.sw span { position: relative; width: 30px; height: 18px; border-radius: 9px; background: var(--s3); border: 1px solid var(--line-2); transition: background .2s; flex: none; }
.sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--t2); transition: transform .2s, background .2s; }
.sw input:checked + span { background: var(--t2); }
.sw input:checked + span::after { transform: translateX(12px); background: var(--bg); }
.sw input:focus-visible + span { outline: 2px solid var(--t2); outline-offset: 2px; }

/* 단추 */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--s1); color: var(--t1); font: 600 13.5px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--s2); }
.btn.pri { background: var(--t1); border-color: var(--t1); color: var(--bg); }
.btn.pri:hover { background: #fff; }

/* 항목 */
.art { max-width: 760px; padding: 28px 0 64px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--t3); display: flex; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--t2); text-decoration: none; } .crumbs a:hover { color: var(--t1); }
.crumbs .sep { margin: 0 7px; color: var(--line-2); }
.art-h { padding: 14px 0 22px; border-bottom: 1px solid var(--line); }
.art-h h1 { font-size: 36px; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 700; }
.kh { color: var(--t2); font-size: 17px; margin-top: 4px; }
.terms { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: 13.5px; color: var(--t2); }
.terms em { font-style: normal; color: var(--t3); margin-right: 6px; font-size: 12px; }
.acts { display: flex; gap: 8px; margin-top: 18px; }
.toc-top { display: none; }

.art section { margin-top: 32px; }
.art h2 { font-size: 19px; line-height: 1.4; font-weight: 700; margin: 0 0 12px; letter-spacing: -.01em; }
.art p { margin: 0 0 12px; color: #dcdee3; }
.art ul, .art ol { margin: 0 0 12px; padding-left: 20px; }
.art li { color: #dcdee3; margin: 4px 0; }
.art li::marker { color: var(--t3); }
.art b { color: var(--t1); font-weight: 650; }
.art a.xl { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.art a.xl:hover { text-decoration-color: var(--t2); }
.sum { font-size: 17.5px; line-height: 1.8; color: var(--t1) !important; }

.keybox { background: var(--s2); border-left: 2px solid var(--t2); border-radius: 0 8px 8px 0; padding: 14px 18px 12px; }
.keybox h2 { font-size: 11px; font-weight: 600; color: var(--t3); margin-bottom: 6px; letter-spacing: 0; }
.keybox ul { margin: 0; padding-left: 18px; }
.keybox li { color: var(--t1); font-size: 15.5px; margin: 3px 0; }

.facts { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts > div:nth-child(odd) { background: var(--s1); }
.facts dt { color: var(--t3); font-size: 13.5px; font-weight: 600; padding-top: 1px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.7; color: #dcdee3; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gal figure { margin: 0; }
.gal figure > a { display: block; border-radius: 8px; overflow: hidden; background: #f3f2ef; border: 1px solid var(--line); }
.gal img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; transition: transform .3s; }
.gal figure > a:hover img { transform: scale(1.03); }
.gal figcaption { font-size: 13px; color: var(--t2); line-height: 1.5; margin-top: 8px; }
.gal small { display: block; color: var(--t3); font-size: 11.5px; margin-top: 2px; }
.gal small a { color: var(--t2); }

.kids { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 16px; }
.kids li { margin: 0; } .kids a { text-decoration: none; color: var(--t1); font-size: 15px; } .kids a:hover { text-decoration: underline; }
.kids li.B a { color: var(--t2); }
.refs { padding-top: 18px; border-top: 1px solid var(--line); }
.refs h2 { font-size: 13px !important; color: var(--t3); font-weight: 600 !important; }
.refs li { font-size: 13.5px; color: var(--t2); margin: 2px 0; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.pn a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--t1); font-weight: 600; font-size: 15px; min-width: 0; }
.pn a:hover { background: var(--s1); border-color: var(--line-2); }
.pn a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn small { display: block; font-size: 12px; color: var(--t3); font-weight: 500; }
.pn .next { justify-content: flex-end; text-align: right; grid-column: 2; }
.pn .ic { color: var(--t3); }

/* 그림 크게 보기 */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(6, 7, 8, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 20px 20px; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); background: #f3f2ef; border-radius: 8px; }
.lb p { color: var(--t2); font-size: 14px; margin: 12px 0 0; text-align: center; max-width: 720px; }
.lb button { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-2); background: var(--s1); color: var(--t1); cursor: pointer; }

/* 목차 */
.idx { padding: 0 0 64px; min-width: 0; }
.hero { padding: 44px 0 28px; }
.hero h1 { font-size: 38px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.02em; }
.lead { color: var(--t2); font-size: 16.5px; margin: 0 0 22px; max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--s1); text-decoration: none; transition: border-color .15s, background .15s; }
.card:hover { border-color: var(--line-2); background: var(--s2); }
.card-h { display: flex; align-items: baseline; } .card-h b { font-size: 16px; font-weight: 700; }
.card p { margin: 4px 0 10px; font-size: 13.5px; color: var(--t2); line-height: 1.55; }
.card .ex { font-size: 12.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sys { padding-top: 36px; }
.sys h2 { display: flex; align-items: baseline; font-size: 22px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
.grps { columns: 2; column-gap: 40px; }
.grp { break-inside: avoid; margin-bottom: 22px; }
.grp h3 { display: flex; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--t3); margin: 0 0 6px; }
.grp ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.grp li { font-size: 15px; line-height: 1.85; }
.grp li a { text-decoration: none; color: var(--t1); } .grp li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.grp li.B a { color: var(--t2); }
.more { margin-top: 4px; height: 28px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: 8px; background: none; color: var(--t3); font: 500 13px var(--font); cursor: pointer; }
.more:hover { background: var(--s1); color: var(--t2); }
/* 작은 구조(B)는 처음엔 접어 둔다 */
body:not(.showB) .grp li.B:not(.open), body:not(.showB) .grp.onlyB { display: none; }
body.showB .more, .grp.opened .more { display: none; }
.grp.opened li.B { display: list-item !important; }

.foot { max-width: 1240px; margin: 0 auto; padding: 24px 20px 48px; font-size: 12px; line-height: 1.7; color: var(--t3); border-top: 1px solid var(--line); }

/* 좁은 화면 */
@media (max-width: 1020px) {
  .art-wrap, .idx-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc-side, .sys-side { display: none; }
  .art { width: 100%; margin: 0 auto; }
  .toc-top { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--top); z-index: 5; background: var(--bg); margin: 0 -20px; padding: 8px 20px; border-bottom: 1px solid var(--line); }
  .toc-top::-webkit-scrollbar { display: none; }
  .toc-top { overscroll-behavior-x: contain; }
  .toc-top a { flex: none; height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--t2); text-decoration: none; font-size: 13.5px; font-weight: 600; }
  .toc-top a.on { background: var(--s2); color: var(--t1); }
  html { scroll-padding-top: calc(var(--top) + 64px); }
}
@media (max-width: 720px) {
  .top-in { gap: 12px; padding: 0 16px; }
  .tnav a { padding: 0 8px; }
  .top .sbox { width: auto; flex: 1; min-width: 0; }
  .top .sbox kbd { display: none; }
  .top .sres { position: fixed; left: 12px; right: 12px; width: auto; top: calc(var(--top) + 4px); }
  .art-wrap, .idx-wrap { padding: 0 16px; }
  .toc-top { margin: 0 -16px; padding: 8px 16px; }
  .art-h h1 { font-size: 29px; }
  .hero { padding-top: 28px; } .hero h1 { font-size: 30px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card p { display: none; }
  .grps { columns: 1; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .pn { grid-template-columns: 1fr; } .pn .next { grid-column: 1; }
  .sum { font-size: 16.5px; }
}
/* 좁은 폰: 「백과」 글자(이미 백과 안·차례에 백과 있음)를 빼고 「3D 인체」는 남긴다 */
@media (max-width: 420px) { .tnav a:first-child { display: none; } .brand { font-size: 17px; } .top-in { gap: 10px; } }
@media (max-width: 720px) {
  .sbox input, .sbox.big input { font-size: 16px; } /* 16px 미만이면 아이폰이 누를 때 확대한다 */
  .top .sres a { padding: 11px 10px; }
  .toc-top a { height: 36px; }
  .lb { padding: 56px 8px calc(16px + env(safe-area-inset-bottom)); }
  .lb img { max-height: calc(100dvh - 170px); }
}
.sbox input { text-overflow: ellipsis; }
.card-h { gap: 0 6px; flex-wrap: wrap; } .card-h .n { margin-left: 0; white-space: nowrap; }
.art .vnote { font-size: 12px; color: var(--t3); margin: 12px 0 0; }
body.noscroll { overflow: hidden; }
.lb .lb-n { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: var(--t3); font-size: 12px; margin: 0; }
.lb .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 22px; line-height: 1; }
.lb .nav.prev { left: 10px; right: auto; } .lb .nav.next { right: 10px; }
@media (max-width: 720px) { .lb .nav { top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; } }

/* 참고 영상(유튜브) — 썸네일 + 제목 두 줄 + 채널, 누르면 #vp 창에서 재생 */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 16px; margin-top: 4px; }
.vid { display: grid; gap: 8px; color: var(--t1); text-decoration: none; }
.vid .th { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--s2); }
.vid .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.vid:hover .th img { transform: scale(1.03); }
.vid .th i { position: absolute; right: 6px; bottom: 6px; padding: 0 5px; border-radius: 4px; background: rgba(0,0,0,.8); font: 600 11px/18px var(--font); font-style: normal; color: #fff; }
.vid .vt { display: grid; gap: 4px; }
.vid b { font-size: 14px; font-weight: 500; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid small { font-size: 12px; color: var(--t3); display: flex; gap: 6px; align-items: center; }
.vid em { font-style: normal; font-size: 11px; color: var(--t2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 16px; }
.vnote { margin-top: 12px; font-size: 12px; color: var(--t3); }
#vp { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 56px 64px 24px; background: rgba(8, 9, 10, 0.94); }
#vp[hidden] { display: none; }
#vp .vp-in { width: min(1100px, 100%, calc((100vh - 100px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
#vp .vp-in > div { width: 100%; height: 100%; }
#vp .vp-x { position: fixed; top: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--s1); color: var(--t1); font-size: 14px; cursor: pointer; }
@media (max-width: 860px) { .vids { grid-template-columns: 1fr; } #vp { padding: 56px 8px 16px; } }

/* 위 막대 「3D 인체」: 좁으면 「3D」 */
.tnav .short { display: none; }
@media (max-width: 720px) { .tnav .long { display: none; } .tnav .short { display: inline; } }

/* 목차 첫머리 공부 도구 */
.study { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.study a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--s1); }
.study a:hover { border-color: var(--line-2); background: var(--s2); }
.study b { font-size: 15px; } .study span { font-size: 12.5px; color: var(--t3); line-height: 1.5; }
@media (max-width: 720px) { .study { grid-template-columns: 1fr; gap: 6px; } .study a { padding: 10px 12px; } }

/* 표·복습 공통 */
.study-pg { max-width: 1240px; margin: 0 auto; padding: 0 20px 64px; }
.sp-h { padding: 32px 0 8px; } .sp-h h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.02em; } .sp-h .lead { margin: 0; font-size: 15px; }
.none { color: var(--t3); font-size: 14px; padding: 16px 0; }
.link { padding: 0; border: 0; background: none; color: var(--t3); font: 500 13px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--t2); }

/* 한눈 표 */
.tbar { position: sticky; top: var(--top); z-index: 6; background: var(--bg); padding: 12px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ttabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ttabs::-webkit-scrollbar { display: none; }
.ttabs a { flex: none; height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--t2); text-decoration: none; font-size: 14px; font-weight: 600; }
.ttabs a:hover { background: var(--s1); color: var(--t1); }
.ttabs a[aria-selected="true"] { background: var(--s3); color: var(--t1); }
.tf { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.tf .sbox { width: 340px; }
.tf .sw { margin: 0; }
.tcount { margin-left: auto; font-size: 13px; color: var(--t3); font-variant-numeric: tabular-nums; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.6; }
.tbl thead th { position: sticky; top: calc(var(--top) + 102px); z-index: 2; background: var(--s1); color: var(--t3); font-size: 12px; font-weight: 600; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.tbl td, .tbl tbody th { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; color: #d6d7db; }
.tbl tbody th { width: 168px; font-weight: 600; color: var(--t1); }
.tbl tbody th a:first-child { text-decoration: none; font-size: 14px; } .tbl tbody th a:first-child:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbl tbody th small { display: block; font-weight: 400; font-size: 11.5px; color: var(--t3); line-height: 1.4; margin-top: 1px; }
.tbl .to3d { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--t2); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; line-height: 17px; text-decoration: none; }
.tbl .to3d:hover { background: var(--s3); color: var(--t1); }
.tbl tr.B th a:first-child { color: var(--t2); }
.tbl tr.gh th { padding: 18px 10px 6px; font-size: 13px; font-weight: 700; color: var(--t2); border-bottom: 1px solid var(--line-2); background: none; width: auto; }
.tbl tbody tr:not(.gh):hover { background: var(--s1); }
.tbl b { color: var(--t1); font-weight: 600; }
.tbl .na { color: var(--line-2); }
@media (max-width: 1020px) { .tf .sbox { width: auto; flex: 1; } }
/* 폰: 줄 하나 = 카드 하나(칸 이름 · 값) */
@media (max-width: 720px) {
  .study-pg { padding: 0 16px 48px; }
  .sp-h { padding-top: 18px; } .sp-h h1 { font-size: 26px; margin: 0; }
  .sp-h .lead { display: none; } /* 폰: 설명 대신 바로 공부할 칸이 보이게 */
  .tf { flex-wrap: wrap; gap: 8px 14px; } .tf .sbox { flex: 1 1 100%; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td, .tbl tbody th { display: block; width: auto; }
  .tbl thead { display: none; }
  .tbl tbody tr:not(.gh) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:not(.gh):hover { background: none; }
  .tbl tbody th { padding: 0 0 6px; border: 0; }
  .tbl tbody th small { display: inline; margin-left: 6px; }
  .tbl .to3d { margin: 0 0 0 8px; vertical-align: 1px; }
  .tbl td { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 3px 0; border: 0; font-size: 14px; }
  .tbl td::before { content: attr(data-h); color: var(--t3); font-size: 12.5px; font-weight: 600; }
  .tbl td:has(.na) { display: none; }
  .tbl tr.gh th { padding: 22px 0 4px; }
}

/* 복습 */
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0 10px; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; }
.seg button, .chips button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--t2); font: 600 13.5px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--t1); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips button { border: 1px solid var(--line); font-weight: 500; }
.chips button:hover, .seg button:hover { color: var(--t1); }
.chips button[aria-pressed="true"] { background: var(--t1); border-color: var(--t1); color: var(--bg); }
.rv-prog { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--t2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rv-prog > span { display: flex; align-items: center; gap: 6px; }
.rv-prog b { color: var(--t1); }
.rv-prog .bar { display: inline-block; width: 140px; height: 3px; margin-left: 8px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.rv-prog .bar i { display: block; height: 100%; background: var(--t2); }
.rv-prog .link { margin-left: auto; }
.rv { max-width: 720px; margin: 22px auto 0; }
.rv-card { border: 1px solid var(--line); border-radius: 10px; background: var(--s1); padding: 26px 28px 22px; }
.rv-q small { display: block; font-size: 12.5px; color: var(--t3); margin-bottom: 4px; }
.rv-q h2 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -.02em; }
.rv-sub { color: var(--t2); font-size: 14px; margin-top: 4px; }
.rv-a { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.rv-ah { font-size: 11.5px; font-weight: 600; color: var(--t3); margin-bottom: 4px; }
.rv-a ul, .rv-fb ul, .rv-clue { margin: 0; padding-left: 20px; }
.rv-a li, .rv-fb li { font-size: 15.5px; margin: 4px 0; color: var(--t1); }
.rv-clue li { font-size: 16px; margin: 6px 0; color: var(--t1); }
.rv-links { display: flex; gap: 16px; margin-top: 12px; font-size: 13.5px; }
.rv-links a { color: var(--t2); text-underline-offset: 3px; } .rv-links a:hover { color: var(--t1); }
.rv-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }
.rv-acts .btn { height: 40px; padding: 0 18px; font-size: 14.5px; }
.rv-acts .wide { flex: 1; justify-content: center; }
.btn kbd { margin-left: 4px; border-color: currentColor; color: inherit; opacity: .55; }
.rv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.rv-opts button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--t1); text-align: left; font: inherit; cursor: pointer; }
.rv-opts button:hover:not(:disabled) { background: var(--s2); }
.rv-opts button span { display: grid; min-width: 0; } .rv-opts b { font-size: 15px; } .rv-opts small { font-size: 12px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-opts button:disabled { cursor: default; opacity: .55; }
.rv-opts button.ok { opacity: 1; border-color: #4caf7a; box-shadow: inset 3px 0 0 #4caf7a; }
.rv-opts button.no { opacity: 1; border-color: #e5534b; box-shadow: inset 3px 0 0 #e5534b; }
.rv-fb { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rv-fb > b { display: block; font-size: 15px; margin-bottom: 6px; }
.rv-fb b.ok { color: #6fcf97; } .rv-fb b.no { color: #f08a84; }
.rv-keys { max-width: 720px; margin: 14px auto 0; font-size: 12.5px; color: var(--t3); }
@media (max-width: 720px) {
  .rv-card { padding: 20px 18px 18px; }
  .rv-q h2 { font-size: 25px; }
  .rv-opts { grid-template-columns: 1fr; }
  .rv-acts .btn { flex: 1; justify-content: center; height: 46px; }
  .rv-keys, .btn kbd, .rv-opts kbd { display: none; }
  .rv-prog .bar { width: 80px; }
}
