/* 기출 아틀라스 demo — gichul.hsorbit.uk (HSOrbit tokens: paper, ink, one orange) and the 2단 한글 시험지 it builds */
.hd-gichul { --gc-paper: #f4f3ee; --gc-line: #e2e0d8; --gc-muted: #6b6a64; --gc-soft: #efede6; }
.hd-gichul[data-layout="wide"] .gc-win { left: 20px; top: 20px; width: 680px; height: 410px; }
.hd-gichul[data-layout="compact"] .gc-win { left: 16px; top: 16px; width: 326px; height: 428px; }
.gc-win { background: var(--gc-paper); }
.gc-body { flex: 1; min-height: 0; display: flex; }
.gc-filters { width: 142px; flex: none; padding: 12px 10px; display: flex; flex-direction: column; gap: 9px; border-right: 1px solid var(--gc-line); background: #fff; }
.gc-fh { font-size: 13px; font-weight: 700; line-height: 1.3; }
.gc-fl { font-size: 10.5px; font-weight: 700; line-height: 1.3; color: var(--gc-muted); margin-bottom: 4px; }
.gc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.gc-chip { font-size: 10.5px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--gc-soft); color: var(--s-ink); white-space: nowrap; }
.gc-chip.on { background: var(--s-ink); color: var(--gc-paper); font-weight: 600; }
.gc-rest { display: flex; flex-direction: column; }
.gc-rest .hd-fill { margin-bottom: 8px; }
.gc-main { flex: 1; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.gc-compactchips { display: none; gap: 5px; }
.gc-count { font-size: 11.5px; line-height: 1.3; color: var(--gc-muted); }
.gc-count b { color: var(--s-ink); }
.gc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.gc-card { background: #fff; border: 1px solid var(--gc-line); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.gc-ph { display: flex; align-items: center; gap: 7px; }
.gc-cb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c9c6bb; background: #fff; display: grid; place-items: center; flex: none; color: transparent; }
.gc-cb svg.ic { width: 11px; height: 11px; stroke-width: 3.2; }
.gc-card[data-on] { border-color: var(--s-accent); box-shadow: 0 0 0 1px var(--s-accent); }
.gc-card[data-on] .gc-cb { background: var(--s-accent); border-color: var(--s-accent); color: #fff; }
.gc-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gc-meta b { font-size: 9px; letter-spacing: -0.02em; line-height: 1.3; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-meta span { font-size: 10px; line-height: 1.3; color: var(--gc-muted); }
.gc-tag { align-self: flex-start; font-size: 9.5px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: var(--s-accent-soft); color: var(--s-accent-ink); white-space: nowrap; }
.gc-stem { font-size: 10.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-stem i.v, .gx-stem i.v { font-style: italic; }
.gc-stem sup, .gx-stem sup { font-size: .7em; line-height: 0; }

.gc-tray { width: 170px; flex: none; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--gc-line); background: #fff; }
.gc-th { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; line-height: 1.3; }
.gc-th span:last-child { font-size: 11.5px; font-weight: 400; color: var(--gc-muted); }
.gc-th b { font-size: 15px; color: var(--s-accent-ink); font-variant-numeric: tabular-nums; }
.gc-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.gc-tl li { display: flex; gap: 6px; align-items: flex-start; padding: 6px 7px; border-radius: 8px; background: var(--gc-soft); font-size: 10px; line-height: 1.35; }
.gc-tl .no { width: 15px; height: 15px; border-radius: 50%; background: var(--s-ink); color: var(--gc-paper); display: grid; place-items: center; font-size: 9.5px; font-weight: 700; flex: none; }
.gc-dl { justify-content: center; height: 32px; padding: 0 8px; font-size: 11.5px; background: #c9c6bb; }
.gc-dl[data-ready] { background: var(--s-accent); color: #fff; }
.gc-dl span { overflow: hidden; text-overflow: ellipsis; }
.gc-note { font-size: 9.5px; line-height: 1.4; color: var(--gc-muted); text-align: center; }
.gc-dim { position: absolute; inset: 0; background: rgba(40,36,30,.42); opacity: 0; pointer-events: none; }
.gc-toast { left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 12; }

/* the exam page */
.gc-sheet { position: absolute; z-index: 20; background: #fff; box-shadow: var(--s-shadow-hero); border-radius: 4px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 8px; font-family: "Batang", "바탕", "AppleMyungjo", "KERIS BAEUM", serif; color: #222; }
.hd-gichul[data-layout="wide"] .gc-sheet { left: 190px; top: 14px; width: 340px; height: 422px; }
.hd-gichul[data-layout="compact"] .gc-sheet { left: 22px; top: 16px; width: 314px; height: 428px; }
.gx-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid #222; padding-bottom: 5px; font-size: 12px; line-height: 1.3; }
.gx-head span { font-size: 9.5px; color: #666; }
.gx-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.gx-col { padding: 0 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gx-col:first-child { border-right: 1px solid #ccc; padding-left: 0; }
.gx-col:last-child { padding-right: 0; }
.gx-prob { display: flex; flex-direction: column; gap: 5px; flex: 1; min-height: 0; }
.gx-stem { font-size: 9.5px; line-height: 1.55; }
.gx-stem b { font-weight: 700; }
.gx-pt { font-size: 8.5px; }
.gx-ch { display: flex; flex-wrap: wrap; gap: 1px 7px; font-size: 8.8px; line-height: 1.5; }
.gx-src { margin-top: auto; text-align: right; text-wrap: balance; font-family: var(--font-ui); font-size: 7.6px; line-height: 1.3; color: #8a8982; }
.gx-ans { display: flex; flex-wrap: wrap; gap: 2px 8px; padding-top: 6px; border-top: 1px dashed #aaa; font-size: 9px; line-height: 1.5; }
.gx-ans b { width: 100%; font-size: 9px; }
.gx-badge { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; top: -12px; padding: 5px 10px; border-radius: 999px; background: var(--s-ink); color: #f4f3ee; font-family: var(--font-ui); font-size: 10.5px; line-height: 1.3; white-space: nowrap; box-shadow: var(--s-shadow-float); }

/* phones: no filter column, no tray list; the tray folds into a bar under the cards */
.hd-gichul[data-layout="compact"] .gc-body { flex-direction: column; }
.hd-gichul[data-layout="compact"] .gc-filters, .hd-gichul[data-layout="compact"] .gc-tl, .hd-gichul[data-layout="compact"] .gc-note, .hd-gichul[data-layout="compact"] .gc-card[data-extra] { display: none; }
.hd-gichul[data-layout="compact"] .gc-compactchips { display: flex; }
.hd-gichul[data-layout="compact"] .gc-main { flex: 1; padding: 10px; }
.hd-gichul[data-layout="compact"] .gc-grid { gap: 6px; }
.hd-gichul[data-layout="compact"] .gc-stem { -webkit-line-clamp: 3; }
.hd-gichul[data-layout="compact"] .gc-tray { width: auto; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-left: 0; border-top: 1px solid var(--gc-line); }
.hd-gichul[data-layout="compact"] .gc-th { flex-direction: column; gap: 0; }
.hd-gichul[data-layout="compact"] .gc-th span:first-child { display: none; }
.hd-gichul[data-layout="compact"] .gc-dl { padding: 0 12px; }
.hd-gichul[data-layout="compact"] .gc-toast { bottom: 76px; }
