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

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

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

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

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

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

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

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

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

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

/* 예화사전만 (2026-10-22): 나온 설교 줄 · 원문(이야기 본문) 칸 · 용어사전 칩 */
.yh-smrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 10px; }
.yh-smrow .l { font-size: 11.5px; font-weight: 700; color: var(--yh-acc); margin-right: 4px; }
.yh-orig { margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--yh-rule); }
.yh-orig > summary { color: #94826b; font-weight: 400; }
.yh-orig > summary small { margin-left: 6px; font-size: 11px; color: #a8987f; }
.yh-orig .yh-blk > div { color: #3d3328; font-size: 14px; }
.yh-chip.gl { border-style: dashed; color: #5c3a1a; }

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