/* 사이트 전체 배경: 한지 질감 + 가장자리 은은한 명암 */
body{background-color:#F5F0E6;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),radial-gradient(120% 80% at 50% 0,rgba(255,250,238,.9),transparent 60%);background-attachment:fixed,fixed}

/* 글 상단 */
.khm-posthero{position:relative;overflow:hidden;min-height:clamp(300px,44svh,440px);display:flex;align-items:flex-end;background:#0f2c24;color:#F5F0E6;isolation:isolate}
.khm-posthero__bg{position:absolute;inset:0}
.khm-posthero__bg img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;display:block;animation:khm-slowzoom 18s ease-out both}
.khm-posthero__shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,28,23,.94) 0%,rgba(10,28,23,.72) 40%,rgba(10,28,23,.35) 100%),radial-gradient(120% 100% at 50% 30%,transparent 50%,rgba(0,0,0,.5) 100%)}
.khm-posthero__inner{position:relative;z-index:2;width:100%;max-width:760px;margin:0 auto;padding:2.5rem 1.25rem 2.2rem}
.khm-crumb{font-size:.85rem;color:#e0c48e;margin-bottom:.9rem}
.khm-crumb a{color:#e0c48e;text-decoration:none}.khm-crumb a:hover{text-decoration:underline}
.khm-posthero__tags{margin:0 0 .6rem;display:flex;gap:.7rem;align-items:center;font-size:.85rem}
.khm-posthero .khm-tag{display:inline-block;background:#b48d52;color:#1b1710;padding:.1em .8em;border-radius:999px;font-weight:700}
.khm-read{color:#d9d2c0}
.khm-posthero h1{color:#F5F0E6;font-size:clamp(1.7rem,4.6vw,2.6rem);line-height:1.35;margin:0;text-shadow:0 2px 20px rgba(0,0,0,.6)}
.khm-posthero__cap{position:absolute;z-index:2;right:.8rem;top:.8rem;margin:0;font-size:.72rem;background:rgba(0,0,0,.5);color:#F5F0E6;padding:.2em .7em;border-radius:3px}
@keyframes khm-slowzoom{from{transform:scale(1.12)}to{transform:scale(1)}}

/* 본문 블로그 타이포 */
.khm-article{font-size:1.06rem;line-height:1.95;color:#252821;word-break:keep-all;overflow-wrap:break-word}
.khm-article p{margin:0 0 1.3em}
.khm-article h2{font-family:var(--wp--preset--font-family--serif);font-size:1.45rem;line-height:1.5;margin:2.6em 0 .8em;padding:0 0 0 .8rem;border:0;border-left:5px solid #997844;color:#173E34}
.khm-article .khm-answer{font-size:1.12rem;background:linear-gradient(180deg,#fbf6ea,#f1e8d3);border:1px solid #d9c9a0;border-left:6px solid #997844;border-radius:4px;padding:1.1rem 1.3rem;margin:0 0 1.6rem;box-shadow:0 8px 20px -14px rgba(0,0,0,.45)}
.khm-article .khm-facts{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;margin:0 0 2rem;padding:.8rem 1rem;background:rgba(23,62,52,.06);border-radius:4px;font-size:.95rem}
.khm-article .khm-facts dt{font-weight:700;color:#173E34;margin-right:.4rem}
.khm-article .khm-facts dd{margin:0 1rem 0 0}
.khm-article .khm-facts dt,.khm-article .khm-facts dd{display:inline}
.khm-article ul,.khm-article ol{padding-left:1.3rem;margin:0 0 1.3em}
.khm-article li{margin-bottom:.4em}
.khm-article a{color:#173E34;text-underline-offset:3px}

/* 생각해 볼 질문 */
.khm-question{margin:2.8rem 0;padding:1.4rem 1.5rem;background:#173E34;color:#F5F0E6;border-radius:6px;box-shadow:0 18px 30px -18px rgba(0,0,0,.6)}
.khm-article .khm-question h2{color:#e0c48e;border-left-color:#e0c48e;margin-top:0}
.khm-question p{margin:0 0 .8em}.khm-question p:last-child{margin-bottom:0}

/* 참고 자료 */
.khm-refs{margin-top:3rem;padding-top:1.2rem;border-top:1px solid rgba(23,62,52,.25);font-size:.92rem;line-height:1.8;color:#4a463d}
.khm-article .khm-refs h2{font-size:1.1rem;margin-top:0}
.khm-refs ul{padding-left:1.1rem}.khm-refs a{word-break:break-all}

/* 더 보기 */
.khm-more{margin-top:3rem;padding:1.4rem 1.5rem;background:#fffdf8;border:1px solid rgba(23,62,52,.25);border-radius:6px}
.khm-article .khm-more h2{font-size:1.15rem;margin:0 0 .6rem;border:0;padding:0}
.khm-more ul{list-style:none;padding:0;margin:0 0 1rem}.khm-more li{padding:.4rem 0;border-bottom:1px dashed rgba(23,62,52,.2)}

/* 읽기 진행 막대 */
.khm-progress{position:fixed;left:0;top:0;height:4px;width:0;z-index:99999;background:linear-gradient(90deg,#997844,#e0c48e);transition:width .1s linear}
@media (prefers-reduced-motion:reduce){.khm-posthero__bg img{animation:none}.khm-progress{transition:none}}
@media (max-width:600px){.khm-article{font-size:1.02rem}.khm-article h2{font-size:1.3rem}.khm-posthero__cap{display:none}}

/* 녹색 박스 안 글씨는 항상 밝게 */
a.khm-btn,a.khm-btn:visited,.khm-article a.khm-btn,.wp-block-post-content a.khm-btn{color:#F5F0E6!important;text-decoration:none}
a.khm-btn:hover,a.khm-btn:focus-visible{background:#0f2c24;color:#fff!important}
.khm-btn{background:#173E34}
.khm-question,.khm-question p,.khm-question li{color:#F5F0E6}
.khm-article .khm-question a{color:#e0c48e}
.khm-corridor,.khm-corridor *{color:inherit}

/* 녹색 박스(질문·복도·태그·번호) 안 모든 글씨를 강제로 밝게 */
body .khm-article .khm-question,body .khm-article .khm-question p,body .khm-article .khm-question li,body .khm-article .khm-question strong,body .khm-article .khm-question em,body .khm-article .khm-question span{color:#F5F0E6!important}
body .khm-article .khm-question h2,body .khm-article .khm-question h3,body .khm-article .khm-question a{color:#e0c48e!important}
body .khm-corridor,body .khm-corridor h2,body .khm-corridor li{color:#F5F0E6!important}
body .khm-corridor .khm-timeline strong{color:#e0c48e!important}
body .khm-hall__no{color:#e0c48e!important}
body .khm-video__play,body a.khm-btn{color:#F5F0E6!important}

/* 녹색 박스(질문 박스·히어로·버튼·태그) 안의 글씨 가독성 보강 */
.khm-question,.khm-question p,.khm-question li,.khm-posthero,.khm-hero,.has-green-background-color,.has-green-background-color p,.has-green-background-color li,.has-green-background-color h1,.has-green-background-color h2,.has-green-background-color h3,.has-green-background-color h4{color:#F5F0E6!important}
.khm-question h2,.khm-question h3,.khm-question strong,.khm-hero__eyebrow,.khm-posthero .khm-crumb,.khm-posthero .khm-crumb a,.khm-question a,.has-green-background-color a{color:#e0c48e!important}
.khm-posthero h1,.khm-hero h1{color:#F5F0E6!important}
.khm-hero__cta,.khm-posthero .khm-tag{color:#1b1710!important}
.khm-video__play,.khm-hall__no{color:#F5F0E6!important}
.khm-hall__no{color:#e0c48e!important}

a.khm-person{color:inherit;text-decoration:underline dotted #997844;text-underline-offset:4px;font-weight:600}
a.khm-person:hover,a.khm-person:focus-visible{color:#173E34;text-decoration-style:solid;background:rgba(153,120,68,.15)}

/* 사진 자료 */
.khm-photo{margin:1.8rem 0;background:#fffdf8;border:1px solid rgba(23,62,52,.22);padding:.6rem;border-radius:4px;box-shadow:0 14px 26px -18px rgba(0,0,0,.5)}
.khm-photo img{display:block;width:100%;height:auto;border-radius:2px}
.khm-photo figcaption{padding:.6rem .3rem .1rem;font-size:.88rem;line-height:1.6;color:#3d392f}
.khm-photo figcaption small{color:#6b6257}
.khm-photo--lead{max-width:340px;margin:0 0 1.6rem}
@media (min-width:900px){.khm-photo--lead{float:right;margin:0 -120px 1.2rem 1.8rem}}
.khm-gallery-photos{clear:both}
.khm-article .khm-gallery-photos h2{margin-top:2.4em}

/* 데이터 표 */
.khm-article .khm-tablewrap{overflow-x:auto;margin:1rem 0 .4rem;-webkit-overflow-scrolling:touch}
.khm-article table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.6;background:#fffdf8}
.khm-article caption{caption-side:top;text-align:left;font-weight:700;color:#173E34;padding:.3rem 0}
.khm-article th{background:#173E34;color:#F5F0E6;padding:.55rem .7rem;text-align:left;white-space:nowrap}
.khm-article td{padding:.5rem .7rem;border-bottom:1px solid rgba(23,62,52,.18);vertical-align:top}
.khm-article tr:nth-child(even) td{background:rgba(153,120,68,.06)}
.khm-tablenote{font-size:.85rem;color:#6b6257;margin:0 0 1.6rem}

/* 태그 라벨: 어디서나 읽히도록 */
.khm-tag{display:inline-block;background:#173E34;color:#e0c48e;padding:.05em .7em;border-radius:999px;font-size:.72rem;font-weight:700;line-height:1.7;vertical-align:middle}
.khm-posthero .khm-tag{background:#b48d52;color:#1b1710!important}
