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

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

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

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

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

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

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

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

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

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

/* 카드 바꿀 때 — 새 카드가 4px 아래서 살짝 올라오며 나타남 (목록 줄을 눌러 바뀐 뒤에만, 첫 화면은 그대로) */
.yg-detail.swap .yg-card { animation: yg-in .18s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes yg-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes yg-in-still { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .yg-detail.swap .yg-card { animation-name: yg-in-still; } }
