/* CMB v3 디자인 레이어 (1.36.0, 2026-11-13)
 * 개편 시안 v3(다듬기 최종본 + 11-13 조정)의 색·글자·간격·헤더를 현재 화면 위에 덮는 레이어.
 * 끄기: wp option cmb_v3_layer = 0 · 미리 비교: 주소 뒤 ?v3=0
 * 규칙: 굵기 최대 600(제목 560) · 제목 22/16/14/13 · 본문 13~15 · 강조색 브라운 #8a5a3c · 다크 헤더
 */
:root{
 --v3-bar:#1a1816;--v3-bar2:#23211e;--v3-bartx:#c9c4bc;--v3-acc:#8a5a3c;--v3-acc-dk:#d2b49c;--v3-acc-50:#f8f2ed;--v3-acc-200:#e2cdbd;
 --v3-bg:#f6f5f2;--v3-ink:#1c1a18;--v3-ink2:#3d3935;--v3-sub:#5a554f;--v3-line:rgba(28,26,24,.11);--v3-head:#f3f1ec;
 --fs-xs:12px;--fs-sm:13px;--fs-base:14px;--fs-md:15px;--fs-lg:16px;--fs-xl:20px;--fs-2xl:22px;
}
body{background:var(--v3-bg)}
body,body .r11,body .c2,body .c3{letter-spacing:-0.005em}

/* ── 헤더: 다크 바 ── */
.r11-h{background:var(--v3-bar)!important;backdrop-filter:none!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
.r11-h>.r11-w{height:56px!important;gap:22px!important}
.r11-h .cmb-logo__en{color:#fff!important;font-weight:560!important;font-size:13px!important}
.r11-nt{color:var(--v3-bartx)!important;font-size:13.5px!important;font-weight:430!important;border-bottom-color:transparent!important;position:relative}
.r11-nt:hover,.r11-nt.on{color:#fff!important}
.r11-nt.on::after,.r11-nt[aria-current]::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;background:var(--v3-acc-dk)}
.r11-mega{top:56px!important}
.r11-h .c3-search{background:rgba(255,255,255,.06)!important;border-color:rgba(255,255,255,.14)!important;border-radius:8px!important;height:36px!important}
.r11-h .c3-search input{color:#f3efe9!important}
.r11-h .c3-search input::placeholder{color:#a59e94}
.r11-h .c3-search svg{color:#a59e94!important}
.r11-lang,.r11-lang a{color:#a59e94!important}.r11-lang b{color:#fff!important}
.r11-h .r11-btn{background:#f3efe9!important;color:#1c1a18!important;border-color:#f3efe9!important;border-radius:8px!important;font-weight:520!important;font-size:13px!important;padding:7px 14px!important}
.r11-h .r11-btn:hover{background:#fff!important}
.r11-h svg,.r11-h .r11-ib{color:#c9c4bc}
.r11-dr>summary span,.r11-dr>summary span::before,.r11-dr>summary span::after{background:#f3efe9!important}
.r11-drp{inset:56px 0 0!important}
/* 상태 줄 */
.v3-st{background:var(--v3-bar2);color:#a59e94;font-size:12px;line-height:1;border-bottom:1px solid rgba(255,255,255,.06)}
.v3-st .r11-w{display:flex;align-items:center;gap:16px;height:32px;white-space:nowrap;overflow:hidden}
.v3-st b{color:#e8e2d9;font-weight:500;font-variant-numeric:tabular-nums}
.v3-st .idt{color:#e8e2d9;font-weight:460}
.v3-st .dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4cbb88;margin-right:6px;vertical-align:1px;box-shadow:0 0 0 3px rgba(76,187,136,.16)}
.v3-st .sp{flex:1}
.v3-st a{color:#e8e2d9!important}.v3-st a:hover{color:#fff!important}
.v3-st .up{color:#7fd1a6}
@media (max-width:900px){.v3-st .hm{display:none}}
@media (max-width:640px){.v3-st .r11-w{gap:10px}.v3-st .td{display:none}.v3-st .idt{font-size:12px}}

/* ── 글자: 제목 560, 숫자 470~500, 굵기 600 상한 ── */
h1,.cmb-art__title,.c3-h1,.c2-h1{font-weight:560!important;letter-spacing:-0.022em!important}
h2,h3{font-weight:560!important;letter-spacing:-0.018em}
h4,h5,h6{font-weight:540!important}
b,strong{font-weight:540}
.r11 .num,.r11 b,.c3 b{font-weight:520}
.cmb-art__title{font-size:22px!important;line-height:1.35!important;color:var(--v3-ink)!important}
.r11-sh h2,.r11-xh h2,.r11 h2,.c3-h,.c3 h2{font-size:16px!important}
.r11 h3,.c3 h3{font-size:13.5px!important}
.r11-nav,.r11-mg a b{font-weight:480}
@media (max-width:640px){.cmb-art__title{font-size:19px!important}h1{font-size:19px}}

/* ── 기사 템플릿: 색 정리·이탤릭 해제·겹침 수정 ── */
.cmb-art__head{background:transparent!important;border:0!important;border-bottom:1px solid var(--v3-line)!important;border-radius:0!important;padding-top:18px!important;padding-bottom:14px!important}
.cmb-art__meta .c2-cat{background:transparent!important;border:1px solid var(--v3-acc-200);color:var(--v3-acc)!important;font-weight:500!important}
.cmb-crumb a{color:var(--v3-sub)!important}
.cmb-prose p em:only-child,.cmb-prose p>em:first-child:last-child{font-style:normal}
.cmb-prose .entry-content>p:first-of-type,.cmb-prose .entry-content>.cmb-byline+p{font-size:15.5px!important;color:var(--v3-ink2)!important}
.cmb-prose h2{font-size:17px!important;color:var(--v3-ink)!important;border:0!important}
.cmb-prose table th{background:var(--v3-head)!important;color:var(--v3-ink)!important;font-weight:540!important;border-color:var(--v3-line)!important}
.cmb-prose table caption,.cmb-prose table thead tr:first-child th[colspan]{background:var(--v3-bar)!important;color:#f3efe9!important}
.cmb-prose table td{border-color:var(--v3-line)!important}
.cmb-toc{background:#fff!important;border:1px solid var(--v3-line)!important;border-radius:8px!important}
.cmb-toc a{color:var(--v3-ink2)!important}
.cmb-srcbox{background:#fff!important;border:1px solid var(--v3-line)!important;border-radius:8px!important}
.cmb-srcbox a{color:var(--v3-acc)!important}
.cmb-next{position:relative;z-index:5;background:var(--v3-bg)!important;border-left:0!important;border-top:1px solid var(--v3-line)!important}
.cmb-byline a{color:var(--v3-sub)!important}

/* ── 공통 링크·강조색: 파랑·빨강 → 브라운 ── */
.cmb-prose a:not(.wp-block-button__link){color:var(--v3-acc)}
.c3 .c3-badge.on,.c2-cat{color:var(--v3-acc)}

/* ── 간격: 섹션 위아래 조금 좁게 ── */
.r11-sec{padding-top:26px!important;padding-bottom:4px!important}
.c3-sec{margin-top:22px!important}
.r11-f{margin-top:40px!important;padding-top:32px!important}
.r11-f{background:var(--v3-bar)!important;color:#a59e94!important;border-top:0!important}
.r11-f a,.r11-f h6,.r11-f h6 a{color:#e8e2d9!important}
.r11-f .cmb-logo__en{color:#fff!important}
.r11-f p,.r11-f small{color:#a59e94!important}

/* ── 기존 강조색 변수(빨강·파랑) → 브라운 ── */
:root,body{--c3-red:#8a5a3c!important;--cmb-red:#8a5a3c!important;--cmb-navy-2:#8a5a3c!important;--wp--preset--color--primary:#8a5a3c!important;--wp--preset--color--accent:#8a5a3c!important}
body:has(.cmb-art__head) h1.cmb-art__title{color:var(--v3-ink)!important}
body.single:not(.single-cmb_tool) .entry-content p a,body.single:not(.single-cmb_tool) .entry-content li a{color:var(--v3-acc)!important}
body.single .entry-content p.cmb-byline a{color:var(--v3-sub)!important}
body .cmb-prose .wp-block-table.cmb-tfig th{background:var(--v3-head)!important;color:var(--v3-ink)!important}
