@charset "utf-8";
/* 각주사전 (청록) 새 화면 (2026-10-22) — 주해사전(남색)·교리성구(포도주)와 다른 쪽빛·연보라 회색. 틀·손잡이는 같음 */
.gj-page {
	--gj-ink: #000; --gj-muted: #4a5958; --gj-rule: #0f2a29; --gj-rule2: #a9c2bf; --gj-band: #e6f0ef; --gj-acc: #1d5552; --gj-acc2: #4a7d79; --gj-soft: #f3f8f7;
	--gj-head: "Gowun Batang", "Noto Serif KR", "Nanum Myeongjo", serif;
	margin: 0 auto 16px; color: var(--gj-ink); font-size: 13px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;
}
@media (min-width: 861px) { .gj-page { width: var(--gj-pw, 80%); } }
.gj-page a { color: inherit; text-decoration: none; }
.gj-page mark { background: #ffe27a; color: inherit; padding: 0; }
.gj-page a:focus-visible, .gj-page button:focus-visible { outline: 2px solid var(--gj-acc); outline-offset: 1px; }
#thema_wrapper .gj-page .gj-hw, #thema_wrapper .gj-page .gj-sum, #thema_wrapper .gj-page .gj-row .w, #thema_wrapper .gj-page .gj-blk > div { font-family: var(--gj-head) !important; }
.gj-none { color: var(--gj-muted); padding: 12px 14px; margin: 0; }
.gj-oldbar { margin: 0 0 8px; padding: 5px 10px; background: #fff7cc; border: 1px solid #e0c96a; font-size: 12.5px; }
.gj-oldbar a { color: var(--gj-acc); font-weight: 700; text-decoration: underline; }
.gj-oldbar span { color: var(--gj-muted); }
.gj-rule { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 8px; padding: 4px 10px; background: var(--gj-band); border-left: 4px solid var(--gj-acc2); font-size: 12.5px; }
.gj-rule b { color: var(--gj-acc); }
.gj-rule span { color: var(--gj-muted); }
.gj-rule a { margin-left: auto; color: var(--gj-acc); font-weight: 700; }

/* 머리줄 */
.gj-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: 12.5px; }
.gj-seg { display: inline-flex; border: 1px solid var(--gj-rule); background: #fff; }
.gj-seg a { padding: 2px 10px; border-left: 1px solid var(--gj-rule); }
.gj-seg a:first-child { border-left: 0; }
.gj-seg a:hover { background: var(--gj-band); }
.gj-seg a.on { background: var(--gj-rule); color: #fff; font-weight: 700; }
.gj-srch { display: inline-flex; }
.gj-srch input { width: 180px; border: 1px solid var(--gj-rule2); border-right: 0; padding: 2px 7px; font: inherit; }
.gj-srch button { border: 1px solid var(--gj-acc); background: var(--gj-acc); color: #fff; padding: 2px 10px; font: inherit; cursor: pointer; }
.gj-cnt0 { color: var(--gj-muted); font-size: 12px; }
.gj-oldbtn { border: 1px solid var(--gj-rule2); padding: 2px 9px; background: #fff; font-size: 12px; }
.gj-oldbtn:hover { border-color: var(--gj-acc); color: var(--gj-acc); }
.gj-bar .gj-cnt0 + .gj-oldbtn { margin-left: auto; }

/* 초성·연도 띠 (교리성구 분야 띠처럼 차분하게, 고른 칸만 채움) */
.gj-chos { display: flex; flex-wrap: wrap; margin: 0 0 8px; border: 1px solid var(--gj-rule); border-top: 2px solid var(--gj-rule); background: #fff; }
.gj-chos a { position: relative; flex: 1 1 auto; display: flex; align-items: baseline; justify-content: center; gap: 3px; padding: 5px 6px 7px; border-left: 1px solid var(--gj-rule2); font-size: 15px; font-weight: 700; color: #222; white-space: nowrap; }
.gj-chos a:first-child { border-left: 0; }
.gj-chos a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--gj-acc2); opacity: .45; }
.gj-chos a i { font-style: normal; font-family: Roboto, sans-serif; font-size: 10px; color: var(--gj-muted); font-weight: 400; }
.gj-chos a:hover { background: var(--gj-band); }
.gj-chos a.on { background: var(--gj-acc); color: #fff; }
.gj-chos a.on::after { background: #fff; opacity: .75; }
.gj-chos a.on i { color: #fff; }
.gj-chos a[data-zero] { color: #b0c3c0; }
.gj-chos a.all { flex: 0 0 auto; font-size: 12px; font-weight: 400; color: var(--gj-muted); }
.gj-chos a.all.on { color: #fff; }
.gj-yrs a { font-size: 13px; font-family: Roboto, sans-serif; }

/* 읽기 틀 */
.gj-reader { --gj-h: min(72vh, 700px); position: relative; display: grid; grid-template-columns: minmax(0, var(--gj-lw, 34%)) 7px minmax(0, 1fr); border: 1px solid var(--gj-rule); border-top: 2px solid var(--gj-rule); background: #fff; }
.gj-list { display: flex; flex-direction: column; min-height: 0; height: var(--gj-h); }
.gj-rows { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.gj-detail { min-height: 0; height: var(--gj-h); overflow-y: auto; scrollbar-width: thin; padding: 14px 20px 20px; }
.gj-detail.loading { opacity: .5; }
.gj-flt { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--gj-soft); border-bottom: 1px solid var(--gj-rule2); }
.gj-fin { flex: 1 1 auto; min-width: 0; border: 1px solid var(--gj-rule2); padding: 3px 7px; font: inherit; font-size: 12.5px; background: #fff; }
.gj-fn { font-size: 11px; color: var(--gj-muted); font-family: Roboto, sans-serif; }
.gj-grp { padding: 3px 10px; background: var(--gj-band); border-bottom: 1px solid var(--gj-rule2); font-size: 11.5px; font-weight: 700; color: var(--gj-acc); }
.gj-grp.sm a { color: var(--gj-acc2); text-decoration: underline; text-decoration-color: #c3d6d3; }
.gj-grp.sm small { float: right; font-family: Roboto, sans-serif; font-weight: 400; color: #7f9593; }
.gj-grp .none { color: #7f9593; font-weight: 400; }
.gj-grp[hidden], .gj-row[hidden] { display: none; }
.gj-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 10px; border-bottom: 1px solid #e3ecea; cursor: pointer; }
.gj-row:hover { background: var(--gj-soft); }
.gj-row[aria-current="true"] { background: #dcebe9; box-shadow: inset 4px 0 var(--gj-acc); }
.gj-row .w { flex: none; max-width: 48%; font-size: 14.5px; font-weight: 700; color: #111; }
.gj-row .w i { font-style: normal; margin-left: 3px; font-family: Roboto, sans-serif; font-size: 10px; color: var(--gj-acc2); vertical-align: 4px; }
.gj-row .s { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--gj-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 카드 */
.gj-card { max-width: 780px; }
.gj-ch { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.gj-cho { display: inline-block; min-width: 20px; text-align: center; border: 1px solid var(--gj-acc); color: var(--gj-acc); font-weight: 700; padding: 0 4px; border-radius: 2px; }
.gj-cnt { color: var(--gj-muted); border: 1px solid var(--gj-rule2); padding: 0 6px; border-radius: 9px; font-size: 11px; }
.gj-hw { margin: 8px 0 12px; padding-bottom: 8px; font-size: 26px; line-height: 1.3; font-weight: 700; color: #111; border-bottom: 1px solid var(--gj-rule2); position: relative; }
.gj-hw::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 3px; background: var(--gj-acc); }
.gj-sense { position: relative; padding: 2px 0 10px; }
.gj-sense + .gj-sense { border-top: 1px dashed var(--gj-rule2); padding-top: 12px; }
.gj-no { position: absolute; left: -2px; top: 4px; color: var(--gj-acc); font-size: 15px; font-weight: 700; }
.gj-sense:has(.gj-no) > p, .gj-sense:has(.gj-no) > details { margin-left: 22px; }
.gj-sum { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid var(--gj-rule2); font-size: 17px; line-height: 1.75; color: #111; }
.gj-sum::before { content: "요약"; display: inline-block; margin-right: 9px; padding: 0 8px; border: 1px solid #1d5552; border-radius: 10px; font: 700 11px/1.6 "Noto Sans KR", sans-serif; color: #1d5552; vertical-align: 3px; letter-spacing: .05em; } /* 단어를 요약한 뜻 — 성구 인용 상자와 다르게 (261022) */
.gj-sum.none { font-family: "Noto Sans KR", sans-serif; font-size: 12.5px; color: var(--gj-muted); border-left-color: var(--gj-rule2); }
.gj-see { margin: 0 0 10px; color: var(--gj-acc2); font-weight: 700; }
.gj-memo { margin: 0 0 10px; font-size: 13px; color: #333; }
.gj-src { margin: 0 0 6px; }
.gj-src > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--gj-acc2); padding: 2px 0; list-style: none; }
.gj-src > summary::before { content: "▸ "; }
.gj-src[open] > summary::before { content: "▾ "; }
.gj-blk { margin: 6px 0 10px; }
.gj-blk + .gj-blk { padding-top: 8px; border-top: 1px solid #e3ecea; }
.gj-blk h6 { margin: 0 0 3px; font-size: 11px; font-weight: 700; color: #fff; background: var(--gj-acc2); display: inline-block; padding: 0 7px; border-radius: 2px; }
.gj-blk.k-sg h6 { background: #2f5f8f; }
.gj-blk.k-gt h6 { background: #6f6a7c; }
.gj-blk h6 i { font-style: normal; font-weight: 400; opacity: .8; }
.gj-blk > div { font-size: 14px; line-height: 1.85; color: #1a1a1a; }
.gj-lb { display: inline-block; font-family: "Noto Sans KR", sans-serif; font-size: 11px; color: var(--gj-acc); border: 1px solid var(--gj-acc); padding: 0 5px; border-radius: 2px; margin-right: 3px; vertical-align: 1px; }
.gj-sm { display: inline-block; margin: 0 2px; padding: 0 6px; border: 1px solid #c3d6d3; border-radius: 10px; background: #fff; font-family: "Noto Sans KR", sans-serif; font-size: 11.5px; line-height: 1.6; color: #333; vertical-align: 1px; white-space: nowrap; }
.gj-sm b { color: var(--gj-acc); font-weight: 700; font-family: Roboto, "Noto Sans KR", sans-serif; }
a.gj-sm:hover { border-color: var(--gj-acc); background: var(--gj-soft); }
.gj-sm.none { color: #7f9593; border-style: dashed; }
.gj-sm.none b { color: #7f9593; }
.gj-sx { font-style: normal; font-size: 10.5px; color: #7f9593; margin-right: 3px; }
.gj-br { color: #2f5f8f !important; border-bottom: 1px dotted #2f5f8f; }
.gj-br:hover { background: #eef3f8; }
.gj-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.gj-btns a, .gj-btns button { border: 1px solid var(--gj-rule2); padding: 1px 9px; font-size: 11.5px; color: var(--gj-muted); background: #fff; font-family: inherit; cursor: pointer; border-radius: 2px; }
.gj-btns a:hover, .gj-btns button:hover { border-color: var(--gj-acc); color: var(--gj-acc); }
.gj-rel { margin-top: 14px; border-top: 1px solid var(--gj-rule2); padding-top: 8px; }
.gj-rel h5 { margin: 8px 0 6px; font-size: 12px; color: var(--gj-muted); font-weight: 700; }
.gj-rel h5:first-child { margin-top: 0; }
.gj-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.gj-chip { border: 1px solid var(--gj-rule2); padding: 1px 9px; font-size: 12.5px; background: #fff; border-radius: 2px; }
.gj-chip:hover { border-color: var(--gj-acc); color: var(--gj-acc); background: var(--gj-soft); }

/* 찾기 · 진척 */
.gj-fhead { margin: 0 0 8px; padding: 5px 10px; background: var(--gj-band); border-left: 4px solid var(--gj-acc2); font-size: 13px; }
.gj-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gj-box { border: 1px solid var(--gj-rule); border-top: 2px solid var(--gj-rule); background: #fff; padding: 8px 12px 10px; }
.gj-box h5 { margin: 0 0 8px; font-size: 13px; color: var(--gj-acc); }
.gj-fbar { list-style: none; margin: 0; padding: 0; }
.gj-fbar li a { display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 2px 0; }
.gj-fbar .nm { font-size: 12.5px; font-weight: 700; font-family: Roboto, "Noto Sans KR", sans-serif; }
.gj-fbar .bar { height: 10px; background: #eaf2f1; }
.gj-fbar .bar i { display: block; height: 100%; background: var(--gj-acc2); }
.gj-fbar b { text-align: right; font-family: Roboto, sans-serif; font-size: 12px; }
.gj-fbar a:hover .nm { color: var(--gj-acc); text-decoration: underline; }
.gj-todo { list-style: none; margin: 0; padding: 0; }
.gj-todo li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid #e6f0ef; font-size: 12.5px; }
.gj-todo li b { flex: none; min-width: 52px; text-align: right; font-family: Roboto, "Noto Sans KR", sans-serif; color: var(--gj-acc); }

/* 손잡이 (교리성구·주해사전과 같음) */
.gj-split { cursor: col-resize; background: var(--gj-band); border-left: 1px solid var(--gj-rule); border-right: 1px solid var(--gj-rule); position: relative; touch-action: none; }
.gj-split::after, .gj-wsplit::after { content: ""; position: absolute; top: 50%; left: 1px; width: 3px; height: 34px; margin-top: -17px; border-left: 1px solid var(--gj-muted); border-right: 1px solid var(--gj-muted); }
.gj-hsplit { grid-column: 1 / -1; height: 9px; cursor: row-resize; background: var(--gj-band); border-top: 1px solid var(--gj-rule); position: relative; touch-action: none; }
.gj-hsplit::after { content: ""; position: absolute; left: 50%; top: 2px; width: 34px; height: 3px; margin-left: -17px; border-top: 1px solid var(--gj-muted); border-bottom: 1px solid var(--gj-muted); }
.gj-split:hover, .gj-hsplit:hover, .gj-wsplit:hover, .gj-split:focus-visible, .gj-hsplit:focus-visible, .gj-wsplit:focus-visible, .gj-dragging .gj-split, .gj-dragging .gj-hsplit { background: #cfe2df; outline: none; }
.gj-dragging, .gj-dragging * { user-select: none; }
.gj-wsplit { position: absolute; top: -2px; bottom: -1px; right: -11px; width: 9px; cursor: col-resize; background: var(--gj-band); border: 1px solid var(--gj-rule); border-left-width: 0; touch-action: none; }
.gj-wsplit::after { left: 2px; }

/* 휴대폰 */
@media (max-width: 860px) {
	.gj-page { width: 100%; padding: 0 2px; box-sizing: border-box; }
	.gj-rule span { display: none; }
	.gj-bar { gap: 5px 6px; }
	.gj-seg a { padding: 2px 7px; font-size: 12px; }
	.gj-srch { flex: 1 1 100%; order: 10; }
	.gj-srch input { flex: 1 1 auto; width: auto; min-width: 0; }
	.gj-cnt0 { display: none; }
	.gj-chos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.gj-yrs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gj-chos a { font-size: 14px; padding: 5px 2px 7px; border-top: 1px solid var(--gj-rule2); }
	.gj-chos a::after { left: 6px; right: 6px; }
	.gj-reader { display: block; }
	.gj-list, .gj-detail { height: auto; }
	.gj-rows { overflow: visible; }
	.gj-split, .gj-hsplit, .gj-wsplit { display: none; }
	.gj-detail { display: none; }
	.gj-detail.inl { display: block; padding: 12px 12px 14px; margin: 0 4px 8px; border: 2px solid var(--gj-acc); border-top-width: 1px; background: #fff; box-shadow: 0 4px 12px rgba(29, 85, 82, .14); }
	.gj-detail.inl.fold { display: none; }
	.gj-row .w { max-width: 55%; }
	.gj-hw { font-size: 22px; }
	.gj-sum { font-size: 15px; }
	.gj-stat { grid-template-columns: 1fr; }
}
.gj-blk.k-wm h6 { background: #1d5552; }

/* 의견·제안 창 (2026-10-22) — 교리성구 창과 같은 틀, 쪽빛 (body 쪽에 떠도 색은 직접 지정) */
.gj-newbtn, .gj-addbtn { border: 1px solid #1d5552; background: #1d5552; color: #fff; font: inherit; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 2px; cursor: pointer; }
.gj-addbtn { margin-left: 8px; }
.gj-bar .gj-newbtn { margin-left: auto; }
.gj-opbtn { margin-right: auto; border: 1px solid #1d5552 !important; color: #1d5552 !important; }
.gj-opbtn:hover { background: #1d5552 !important; color: #fff !important; }
.gj-sugn { border: 1px solid #a9c2bf; padding: 2px 9px; font-size: 12px; background: #fff; }
.gj-sugn.on { border-color: #c40000; color: #c40000; font-weight: 700; }
html.gj-modal { overflow: hidden; }
.gj-sugwrap { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gj-sugwrap[hidden] { display: none; }
.gj-sugbg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.gj-sug { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 2px solid #1d5552; border-radius: 4px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); font-size: 13px; color: #000; }
.gj-sug-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #1d5552; color: #fff; }
.gj-sug-h b { font-size: 15px; }
.gj-sug-sub { font-size: 11.5px; color: #cfe0dd; }
.gj-sug-x { margin-left: auto; border: 0; background: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.gj-sug-f { display: grid; gap: 8px; padding: 12px 14px 4px; }
.gj-sug-f > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; }
.gj-sug-f label { font-size: 12px; font-weight: 700; color: #4a5958; padding-top: 4px; }
.gj-sug .in { width: 100%; box-sizing: border-box; border: 1px solid #a9c2bf; padding: 4px 7px; font: inherit; font-size: 13px; background: #fff; }
.gj-sug textarea.in { line-height: 1.7; resize: vertical; }
.gj-sug .loc { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.gj-sug .loc .in { flex: 1 1 140px; width: auto; }
.gj-sug[data-mode="op"] .nw, .gj-sug[data-mode="new"] .op { display: none !important; }
.gj-sug-tg { padding-top: 4px; font-weight: 700; color: #1d5552; }
.gj-sug-cap { grid-template-columns: 1fr !important; }
.gj-sug-cap[hidden] { display: none !important; }
.gj-sug-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px 14px; }
.gj-sug-a button { border: 1px solid #1d5552; padding: 4px 14px; font: inherit; font-weight: 700; cursor: pointer; border-radius: 2px; }
.gj-sug-a .go { background: #1d5552; color: #fff; }
.gj-sug-a .go:disabled { opacity: .5; }
.gj-sug-a .x { background: #fff; color: #1d5552; }
.gj-sug-msg { color: #c40000; font-size: 12px; }
.gj-sug-done { margin: 12px 14px 0; padding: 8px 10px; background: #eef7f0; border-left: 4px solid #1b6a35; }
@media (max-width: 860px) {
	.gj-sugwrap { padding: 0; align-items: flex-end; }
	.gj-sug { width: 100%; max-height: 92vh; border-radius: 8px 8px 0 0; }
	.gj-sug-f > div { grid-template-columns: 1fr; gap: 3px; }
	.gj-bar .gj-newbtn { margin-left: 0; }
}

/* 해설은 진하게 강조, 원문은 선으로 나누고 비공개 표시 (261022) */
.gj-blk.k-hs { padding: 10px 12px 12px; background: #f3f8f7; border: 1px solid #d6e4e2; border-radius: 3px; }
.gj-blk.k-hs h6 { background: #000; font-size: 12px; padding: 1px 9px; }
.gj-blk.k-hs > div { font-weight: 700; color: #000; font-size: 15px; }
.gj-blk.k-wm { margin-top: 14px; padding-top: 12px !important; border-top: 2px solid #1d5552 !important; }
.gj-blk.k-wm h6 { background: #fff; color: #7f9593; border: 1px dashed #7f9593; font-weight: 400; }
.gj-blk.k-wm > div { color: #77756f; font-size: 13px; line-height: 1.75; }
.gj-pub { margin: 6px 0 0; padding: 7px 10px; border: 1px dashed var(--gj-rule2); color: var(--gj-muted); font-size: 12px; line-height: 1.6; }

/* 분류 칩 · 카드 분류 · 각주 설명 (2026-10-22) */
.gj-cats { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; padding: 8px; border: 1px solid var(--gj-rule); border-top: 2px solid var(--gj-rule); background: #fff; max-height: 132px; overflow-y: auto; scrollbar-width: thin; }
.gj-cats a { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 9px; border: 1px solid var(--gj-rule2); border-radius: 12px; font-size: 12.5px; color: #222; background: #fff; }
.gj-cats a i { font-style: normal; font-family: Roboto, sans-serif; font-size: 10px; color: var(--gj-muted); }
.gj-cats a:hover { border-color: var(--gj-acc); background: var(--gj-soft); }
.gj-cats a.on { background: var(--gj-acc); border-color: var(--gj-acc); color: #fff; font-weight: 700; }
.gj-cats a.on i { color: #fff; }
.gj-cats a.nof { border-style: dashed; color: var(--gj-muted); }
.gj-tag { display: inline-block; padding: 0 7px; border: 1px solid var(--gj-acc2); border-radius: 9px; font-size: 11px; color: var(--gj-acc); background: var(--gj-soft); }
.gj-tag:hover { background: var(--gj-acc); color: #fff; }
.gj-desc { margin: 0 0 12px; font-size: 14.5px; line-height: 1.8; color: #111; }
.gj-blk.k-sm h6 { background: var(--gj-acc2); }
@media (max-width: 860px) { .gj-cats { max-height: 96px; } }

/* 원문 칸 (예화사전과 같음): 굵은 윗선, 비공개 표시 (261022) */
.gj-orig { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--gj-rule); }
.gj-orig > summary { color: var(--gj-muted); font-weight: 400; }
.gj-orig > summary small { margin-left: 6px; font-size: 11px; opacity: .8; }
.gj-orig .gj-blk > div { color: #333; font-size: 14px; }
