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

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

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

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

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

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

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

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

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

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

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

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