/* ==========================================================================
   경희담 공개 페이지 공통 스타일 (2026-11-13)
   적용 : /index, /story, /service/members/{login,register,rpthealth,terms,tofuse,privacy}
   기준 시안 : target.jpg (가로 1600 기준). 모든 크기는 --u(=화면폭/1600) 배수로 잡아
   데스크톱에서는 시안 비율 그대로 늘고 줄며, 900px 이하에서는 모바일 배치로 바뀐다.
   사진 : main.jpg 에서 잘라낸 public/kh_hero.jpg(약재), public/kh_story.jpg(탕전실)
   ========================================================================== */

:root {
    --u: calc(min(100vw, 1920px) / 1600);
    --kh-black: #000;
    --kh-foot: #2b2b2b;
    --kh-line: #2f2f2f;
    --kh-text: #b4b4b4;
    --kh-dim: #9a9a9a;
    --kh-accent: #c9ab7a;
    --kh-serif: 'Noto Serif KR', 'Nanum Myeongjo', 'Batang', serif;
    --kh-sans: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

/* ---------- 기본 ---------- */
html { -webkit-text-size-adjust: 100%; }
body.kh {
    margin: 0;
    background: var(--kh-black);
    color: #fff;
    font-family: var(--kh-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}
.kh *, .kh *::before, .kh *::after { box-sizing: border-box; }
/* 초기화는 :where() 로 우선순위 0 → 아래 구성요소 규칙이 항상 이긴다 */
:where(.kh) :where(h1, h2, h3, h4, h5, p, ul, ol, dl, dt, dd, figure) { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
:where(.kh) :where(ul, ol) { list-style: none; }
:where(.kh) a { color: inherit; text-decoration: none; }
:where(.kh) img { max-width: 100%; }
:where(.kh) :where(button, input, select) { font-family: inherit; }
.kh :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.kh-page { position: relative; max-width: 1920px; margin: 0 auto; background: var(--kh-black); overflow: hidden; }

/* ---------- 상단 메뉴 ---------- */
.kh-header {
    position: relative; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    height: calc(var(--u) * 126); min-height: 76px;
    padding: 0 calc(var(--u) * 63) 0 calc(var(--u) * 148);
}
.kh-logo { display: block; line-height: 0; }
.kh-logo img { height: max(42px, calc(var(--u) * 56)); width: auto; filter: brightness(0) invert(1); }
.kh-nav ul { display: flex; gap: calc(var(--u) * 76); }
.kh-nav a {
    position: relative; display: block; padding: 8px 0;
    font-size: max(14px, calc(var(--u) * 17)); font-weight: 500; letter-spacing: -0.02em; color: #fff;
}
.kh-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #fff;
    transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.kh-nav a:hover::after, .kh-nav a.is-active::after { transform: scaleX(1); }
.kh-burger { display: none; }
.kh-dim { display: none; }

/* ---------- 메인 : 약재 사진 ---------- */
.kh-hero {
    position: relative; margin-top: calc(var(--u) * 52);
    aspect-ratio: 2400 / 1078;
    background: #000 url('./public/kh_hero.jpg') right center / cover no-repeat;
}
.kh-hero__text { position: absolute; left: calc(var(--u) * 148); top: calc(var(--u) * 96); }
.kh-eyebrow {
    font-family: var(--kh-serif); font-weight: 400; font-size: max(13px, calc(var(--u) * 18));
    line-height: 1.3; letter-spacing: .02em; color: #c4c4c4;
}
.kh-hero__title {
    display: inline-block; margin-top: calc(var(--u) * 4); padding-bottom: calc(var(--u) * 12);
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    font-family: var(--kh-serif); font-weight: 300; font-size: calc(var(--u) * 65); line-height: 1.25; letter-spacing: 0; color: #fff;
}
.kh-hero__desc {
    margin-top: calc(var(--u) * 12.5);
    font-family: var(--kh-serif); font-size: max(13px, calc(var(--u) * 18.2)); line-height: 1.48; letter-spacing: .02em; color: #d6d6d6;
}

/* ---------- 메인 : 브랜드 철학 + 탕전실 사진 ---------- */
.kh-phil { position: relative; height: calc(var(--u) * 1239); }
.kh-phil__mark {
    position: absolute; z-index: 2; left: calc(var(--u) * 72); top: calc(var(--u) * -160); width: calc(var(--u) * 724);
    opacity: .15; filter: brightness(0) invert(1); pointer-events: none; user-select: none;
}
.kh-band {
    position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
    aspect-ratio: 2400 / 1170;
    background: #000 url('./public/kh_story.jpg') center bottom / cover no-repeat;
}
.kh-band__title {
    position: absolute; left: calc(var(--u) * 112); bottom: 0;
    padding-bottom: calc(var(--u) * 14); border-bottom: 2px solid #fff;
    font-family: var(--kh-serif); font-weight: 300; font-size: calc(var(--u) * 63.4); line-height: 1.2; letter-spacing: 0; color: #fff;
    text-shadow: 0 0 calc(var(--u) * 18) rgba(0, 0, 0, .55);
}
.kh-phil__text { position: absolute; z-index: 3; right: calc(var(--u) * 125); top: calc(var(--u) * 208); text-align: right; }
.kh-phil__eyebrow { font-family: var(--kh-serif); font-weight: 300; font-size: calc(var(--u) * 35); line-height: 1.3; letter-spacing: .09em; color: #a6a6a6; }
.kh-phil__title {
    display: inline-block; min-width: calc(var(--u) * 500); margin-top: calc(var(--u) * 9); padding-bottom: calc(var(--u) * 16);
    border-bottom: 2px solid #fff;
    font-family: var(--kh-serif); font-weight: 300; font-size: calc(var(--u) * 65); line-height: 1.3; color: #fff;
}
.kh-values { margin-top: calc(var(--u) * 38); }
.kh-values dt { font-family: var(--kh-serif); font-weight: 500; font-size: max(15px, calc(var(--u) * 25.5)); line-height: 1.4; color: #fff; }
.kh-values dd { margin-top: calc(var(--u) * 2); font-family: var(--kh-serif); font-size: max(13px, calc(var(--u) * 21.6)); line-height: 1.5; color: #a8a8a8; }
.kh-values dd + dt { margin-top: calc(var(--u) * 42); }

/* ---------- 경희담 이야기 본문 ---------- */
.kh-story { position: relative; min-height: calc(var(--u) * 965); padding: calc(var(--u) * 17) calc(var(--u) * 112) calc(var(--u) * 97); }
.kh-story__text { font-family: var(--kh-serif); font-size: max(14px, calc(var(--u) * 20.25)); line-height: 1.775; color: var(--kh-text); }
.kh-story__text p + p { margin-top: 1.775em; }
.kh-story__text strong { color: #fff; font-weight: 600; white-space: nowrap; }
.kh-mark { position: absolute; right: calc(var(--u) * 125); bottom: calc(var(--u) * 97); text-align: center; }
.kh-mark img { display: block; width: max(64px, calc(var(--u) * 116)); max-width: none; margin: 0 auto; filter: brightness(0) invert(1); }
.kh-mark span { display: block; margin-top: calc(var(--u) * 22); font-size: max(15px, calc(var(--u) * 26)); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }

/* ---------- 이야기 페이지 : 탕전실 사진 띠 (메인의 띠를 단독으로) ---------- */
.kh-band--page { position: relative; left: auto; right: auto; bottom: auto; height: calc(var(--u) * 560); aspect-ratio: auto; background-size: 100% auto; }
.kh-band--page::before { content: ""; position: absolute; inset: 0 0 45% 0; background: linear-gradient(#000, rgba(0, 0, 0, 0)); }

/* ---------- 서브 페이지 : 약재 사진 띠 + 제목 ---------- */
.kh-sub {
    position: relative; margin-top: calc(var(--u) * 52); height: calc(var(--u) * 400); min-height: 260px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 calc(var(--u) * 148);
    background: #000 url('./public/kh_hero.jpg') right 44% / cover no-repeat;
}
.kh-sub__title {
    align-self: flex-start; margin-top: calc(var(--u) * 4); padding-bottom: calc(var(--u) * 12); min-width: calc(var(--u) * 300);
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    font-family: var(--kh-serif); font-weight: 300; font-size: max(34px, calc(var(--u) * 56)); line-height: 1.25; color: #fff;
}
.kh-sub__desc { margin-top: calc(var(--u) * 14); max-width: calc(var(--u) * 500); text-shadow: 0 0 10px rgba(0, 0, 0, .9); font-family: var(--kh-serif); font-size: max(13px, calc(var(--u) * 18.5)); line-height: 1.5; color: #dcdcdc; }

/* ---------- 서브 페이지 본문 틀 ---------- */
.kh-main { position: relative; padding: calc(var(--u) * 84) calc(var(--u) * 148) calc(var(--u) * 140); }
.kh-block { display: grid; grid-template-columns: calc(var(--u) * 300) minmax(0, 1fr); column-gap: calc(var(--u) * 40); padding: calc(var(--u) * 46) 0; border-top: 1px solid var(--kh-line); }
.kh-block:first-of-type { border-top: 0; padding-top: 0; }
.kh-block__head h2 { font-family: var(--kh-serif); font-weight: 400; font-size: max(20px, calc(var(--u) * 28)); line-height: 1.35; color: #fff; }
.kh-block__head p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--kh-dim); }
.kh-block__body { min-width: 0; }

/* ---------- 입력 폼 ---------- */
.kh-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 24px; }
.kh-field { min-width: 0; }
.kh-field--wide { grid-column: span 2; }
.kh-field--full { grid-column: 1 / -1; }
.kh-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: #c8c8c8; text-align: left; }
.kh-label .essential, .kh-req { margin-right: 3px; font-weight: 700; color: var(--kh-accent); }
.kh-input, .kh-select {
    width: 100%; height: 48px; padding: 0 14px;
    background: #0e0e0e; border: 1px solid #3a3a3a; border-radius: 0; color: #fff;
    font-size: 15px; text-align: left; outline: none; transition: border-color .2s ease, background-color .2s ease;
    -webkit-appearance: none; appearance: none;
}
.kh-input::placeholder { color: #6a6a6a; }
.kh-input:hover, .kh-select:hover { border-color: #5a5a5a; }
.kh-input:focus, .kh-select:focus { border-color: #fff; background: #141414; }
.kh-input[readonly] { background: #161616; color: #bdbdbd; }
.kh-select { padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, #bbb 50%), linear-gradient(135deg, #bbb 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.kh-select option { background: #141414; color: #fff; }
.kh-inline { display: flex; gap: 8px; }
.kh-inline .kh-input { flex: 1 1 auto; min-width: 0; }
.kh-addr { display: grid; grid-template-columns: 150px auto minmax(0, 1fr); gap: 8px; }
.kh-addr .kh-input:last-child { grid-column: 1 / -1; }

.kh-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 20px; white-space: nowrap; cursor: pointer;
    background: transparent; border: 1px solid #777; border-radius: 0; color: #fff !important;
    font-size: 14px; font-weight: 500; letter-spacing: -0.01em; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.kh-btn:hover { background: #fff; border-color: #fff; color: #000 !important; }
.kh-btn--solid { background: #fff; border-color: #fff; color: #000 !important; font-weight: 700; }
.kh-btn--solid:hover { background: #d9d9d9; border-color: #d9d9d9; }
.kh-btn--lg { height: 56px; min-width: 190px; padding: 0 36px; font-size: 16px; }
.kh-btn svg { width: 1em; height: 1em; }

.kh-files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kh-file { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--kh-line); background: #0b0b0b; }
.kh-file__thumb { flex: 0 0 72px; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border: 1px dashed #555; }
.kh-file__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kh-file__body { min-width: 0; }
.kh-file__body .kh-label { margin-bottom: 10px; }
.kh-file .kh-btn { height: 40px; padding: 0 16px; font-size: 13px; }

.kh-note { margin-top: calc(var(--u) * 40); padding-top: 24px; border-top: 1px solid var(--kh-line); font-size: 13px; line-height: 1.8; color: var(--kh-dim); }
.kh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.kh-actions--center { justify-content: center; }

/* ---------- 안내 문서(보건소신고 · 약관) ---------- */
.kh-guide { font-family: var(--kh-serif); font-size: max(14px, calc(var(--u) * 18.5)); line-height: 1.85; color: #cfcfcf; }
.kh-guide li { position: relative; padding-left: 1.4em; }
.kh-guide li + li { margin-top: .7em; }
.kh-guide li::before { content: ""; position: absolute; left: .2em; top: .82em; width: .5em; height: 1px; background: var(--kh-accent); }
.kh-docs li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-items: baseline; padding: 20px 0; border-top: 1px solid var(--kh-line); }
.kh-docs li:first-child { border-top: 0; padding-top: 0; }
.kh-docs__no { font-family: var(--kh-serif); font-weight: 300; font-size: max(22px, calc(var(--u) * 30)); line-height: 1; color: var(--kh-accent); }
.kh-docs__name { font-family: var(--kh-serif); font-size: max(15px, calc(var(--u) * 20)); line-height: 1.6; color: #fff; }
.kh-docs__name small { display: block; margin-top: 2px; font-family: var(--kh-sans); font-size: 13px; color: var(--kh-dim); }
.kh-docs__sub { margin-top: 10px; font-size: 14px; line-height: 1.9; color: #b0b0b0; }
.kh-docs__sub li { display: block; padding: 0 0 0 1em; border: 0; position: relative; }
.kh-docs__sub li::before { content: "–"; position: absolute; left: 0; color: #777; }
.kh-callout { padding: 28px 32px; border: 1px solid var(--kh-line); background: #0b0b0b; }
.kh-callout p { font-size: 15px; line-height: 1.8; color: #d6d6d6; }
.kh-callout .kh-actions { margin-top: 22px; }
.kh-checks { font-size: 14px; line-height: 1.75; color: #cfcfcf; }
.kh-checks li { position: relative; padding-left: 1.5em; }
.kh-checks li + li { margin-top: .55em; }
.kh-checks li::before { content: ""; position: absolute; left: .15em; top: .42em; width: .62em; height: .34em; border-left: 1.5px solid var(--kh-accent); border-bottom: 1.5px solid var(--kh-accent); transform: rotate(-45deg); }

.kh-doc { font-size: 14px; line-height: 1.85; color: #b9b9b9; }
.kh-doc h4 { margin: 2.4em 0 .7em; font-family: var(--kh-serif); font-weight: 600; font-size: 18px; line-height: 1.5; color: #fff; }
.kh-doc h5 { margin: 1.9em 0 .55em; font-family: var(--kh-serif); font-weight: 600; font-size: 16px; line-height: 1.5; color: #fff; }
.kh-doc > :first-child, .kh-doc article:first-child > :first-child { margin-top: 0; }
.kh-doc h5 + h5 { margin-top: .2em; }
.kh-doc p { margin: 0 0 .4em; }
.kh-doc .tcarticle1, .kh-doc .tcarticle2, .kh-doc .tcarticle3 { padding-left: 1.2em; }
.kh-doc .tcarticle3 { color: #e3c08e; }
.kh-doc table { width: 100%; margin: 1em 0; border-collapse: collapse; font-size: 13px; }
.kh-doc th, .kh-doc td { padding: 10px 12px; border: 1px solid #333; text-align: left; vertical-align: top; }
.kh-doc th { background: #151515; color: #e6e6e6; font-weight: 500; }
.kh-doc--scroll { height: 440px; padding: 26px 30px; overflow-y: auto; border: 1px solid var(--kh-line); background: #0b0b0b; scrollbar-color: #555 #111; scrollbar-width: thin; }
.kh-doc--scroll::-webkit-scrollbar { width: 8px; }
.kh-doc--scroll::-webkit-scrollbar-track { background: #111; }
.kh-doc--scroll::-webkit-scrollbar-thumb { background: #555; }

/* ---------- 로그인 ---------- */
.kh-login {
    position: relative; margin-top: calc(var(--u) * 52);
    min-height: calc(var(--u) * 719);
    padding: calc(var(--u) * 78) calc(var(--u) * 148) calc(var(--u) * 70);
    background: #000 url('./public/kh_hero.jpg') right center / cover no-repeat;
}
.kh-login__box { width: max(320px, calc(var(--u) * 440)); }
.kh-login__title {
    display: block; margin-top: calc(var(--u) * 4); padding-bottom: calc(var(--u) * 12);
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    font-family: var(--kh-serif); font-weight: 300; font-size: max(36px, calc(var(--u) * 56)); line-height: 1.25; color: #fff;
}
.kh-login__form { margin-top: calc(var(--u) * 30); }
.kh-login__form .kh-field + .kh-field { margin-top: 16px; }
.kh-login__form .kh-input { height: 52px; background: rgba(8, 8, 8, .72); }
.kh-help { min-height: 20px; margin-top: 4px; font-size: 12.5px; line-height: 20px; color: #f0a39a; text-align: left; }
.kh-login__submit { width: 100%; height: 56px; margin-top: 6px; font-size: 16px; }
.kh-login__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; font-size: 14px; color: #cfcfcf; }
.kh-login__links a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.kh-login__links a:hover { color: #fff; border-bottom-color: #fff; }
.kh-login__links .kh-sep { width: 1px; height: 12px; background: #555; }
.kh-login__links .kh-push { margin-left: auto; color: var(--kh-dim); }

/* ---------- 하단 ---------- */
.kh-footer {
    position: relative; background: var(--kh-foot);
    padding: calc(var(--u) * 182) calc(var(--u) * 104) calc(var(--u) * 66) calc(var(--u) * 112);
    box-shadow: 0 0 0 100vmax var(--kh-foot); clip-path: inset(0 -100vmax);
}
.kh-footer__info p { font-size: max(12.5px, calc(var(--u) * 20)); font-weight: 300; line-height: 1.49; letter-spacing: -0.01em; color: #9c9c9c; }
.kh-footer__contact { display: flex; flex-wrap: wrap; gap: 8px calc(var(--u) * 30); margin-top: calc(var(--u) * 20); }
.kh-footer__contact li { display: flex; align-items: center; gap: calc(var(--u) * 9); font-size: max(13.5px, calc(var(--u) * 20.6)); font-weight: 300; line-height: 1.4; color: #e8e8e8; }
.kh-footer__contact svg { width: max(16px, calc(var(--u) * 26)); height: max(16px, calc(var(--u) * 26)); color: #fff; flex: none; }
.kh-footer__links { display: flex; flex-wrap: wrap; gap: 10px calc(var(--u) * 85); margin-top: calc(var(--u) * 47); }
.kh-footer__links a { font-size: max(13.5px, calc(var(--u) * 20)); font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.kh-footer__links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.kh-footer__bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: calc(var(--u) * 49); }
.kh-footer__note { font-size: max(11.5px, calc(var(--u) * 15.5)); font-weight: 300; color: #9c9c9c; }
.kh-footer__copy { font-size: max(11.5px, calc(var(--u) * 16.5)); font-weight: 300; color: #b6b6b6; }

/* 1920px 보다 넓은 화면 : 사진 오른쪽 끝을 부드럽게 */
@media (min-width: 1921px) {
    .kh-hero, .kh-band, .kh-sub, .kh-login { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 160px), transparent); }
}

/* ---------- 태블릿 ---------- */
@media (max-width: 1200px) {
    .kh-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-field--wide { grid-column: 1 / -1; }
    .kh-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-block { grid-template-columns: 200px minmax(0, 1fr); }
}

/* ---------- 모바일 ---------- */
@media (max-width: 900px) {
    .kh-header { height: 68px; min-height: 0; padding: 0 20px; }
    .kh-logo img { height: 40px; }
    .kh-burger {
        position: relative; z-index: 42; display: flex; flex-direction: column; justify-content: space-between;
        width: 44px; height: 44px; padding: 13px 9px; margin-right: -9px; background: transparent; border: 0; cursor: pointer;
    }
    .kh-burger span { display: block; width: 100%; height: 2px; background: #fff; transition: transform .3s ease, opacity .3s ease; }
    .kh-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .kh-burger.is-open span:nth-child(2) { opacity: 0; }
    .kh-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .kh-nav {
        position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(300px, 82vw); padding: 96px 28px 28px;
        background: #0a0a0a; border-left: 1px solid #262626; transform: translateX(100%); visibility: hidden;
        transition: transform .35s ease, visibility 0s linear .35s;
    }
    .kh-nav.is-open { transform: translateX(0); visibility: visible; transition: transform .35s ease; }
    .kh-nav ul { flex-direction: column; gap: 0; }
    .kh-nav li { border-bottom: 1px solid #222; }
    .kh-nav a { padding: 18px 0; font-size: 17px; }
    .kh-nav a::after { display: none; }
    .kh-nav a.is-active { color: var(--kh-accent); }
    .kh-dim { display: block; position: fixed; z-index: 29; /* 상단(.kh-header z-index 30) 아래 : 메뉴 패널을 덮지 않게 */ inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
    .kh-dim.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }

    .kh-hero { margin-top: 0; aspect-ratio: auto; min-height: 440px; background-image: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 100%), url('./public/kh_hero_m.jpg'); background-position: center, 72% center; background-size: cover, cover; }
    .kh-hero__text { position: static; padding: 64px 24px 0; }
    .kh-eyebrow { font-size: 14px; }
    .kh-hero__title { margin-top: 6px; padding-bottom: 12px; font-size: clamp(30px, 8.6vw, 44px); }
    .kh-hero__desc { margin-top: 14px; font-size: 14.5px; line-height: 1.7; }
    .kh-hero__desc br { display: none; }

    .kh-phil { height: auto; }
    .kh-phil__mark { left: -60px; top: -40px; width: 340px; opacity: .1; }
    .kh-phil__text { position: relative; right: auto; top: auto; padding: 64px 24px 0; }
    .kh-phil__eyebrow { font-size: 18px; }
    .kh-phil__title { min-width: 0; margin-top: 6px; padding-bottom: 12px; font-size: clamp(30px, 8.6vw, 44px); }
    .kh-values { margin-top: 28px; }
    .kh-values dt { font-size: 17px; }
    .kh-values dd { margin-top: 3px; font-size: 14px; }
    .kh-values dd + dt { margin-top: 24px; }
    .kh-band { position: relative; margin-top: 8px; aspect-ratio: auto; height: 300px; background-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0) 55%), url('./public/kh_story_m.jpg'); background-position: center, 62% bottom; background-size: cover, cover; }
    .kh-band--page { height: 280px; background-size: cover, cover; }
    .kh-band--page::before { display: none; }
    .kh-band__title { left: 24px; right: 24px; padding-bottom: 10px; font-size: clamp(24px, 7vw, 36px); text-shadow: 0 0 12px rgba(0, 0, 0, .8); }

    .kh-story { min-height: 0; padding: 26px 24px 56px; }
    .kh-story__text { font-size: 15px; line-height: 1.95; }
    .kh-story__text br { display: none; }
    .kh-story__text p + p { margin-top: 1.5em; }
    .kh-mark { position: static; width: max-content; margin: 44px 0 0 auto; }
    .kh-mark img { width: 72px; }
    .kh-mark span { margin-top: 14px; font-size: 16px; }

    .kh-sub { margin-top: 0; height: auto; min-height: 240px; padding: 44px 24px; background-image: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .3) 100%), url('./public/kh_hero_m.jpg'); background-position: center, 72% center; background-size: cover, cover; }
    .kh-sub__title { margin-top: 6px; padding-bottom: 12px; min-width: 0; font-size: 34px; }
    .kh-sub__desc { margin-top: 14px; max-width: none; font-size: 14.5px; line-height: 1.7; }

    .kh-main { padding: 44px 24px 72px; }
    .kh-block { display: block; padding: 36px 0; }
    .kh-block__head { margin-bottom: 20px; }
    .kh-block__head h2 { font-size: 21px; }
    .kh-fields, .kh-files { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .kh-addr { grid-template-columns: minmax(0, 1fr) auto; }
    .kh-addr .kh-input:nth-of-type(2) { grid-column: 1 / -1; }
    .kh-guide { font-size: 15px; }
    .kh-docs__no { font-size: 24px; }
    .kh-docs__name { font-size: 16px; }
    .kh-callout { padding: 22px 20px; }
    .kh-doc--scroll { height: 360px; padding: 20px; }
    .kh-actions .kh-btn--lg { flex: 1 1 100%; }

    .kh-login { margin-top: 0; min-height: 0; padding: 48px 24px 64px; background-image: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .82)), url('./public/kh_hero_m.jpg'); background-position: center, 72% center; background-size: cover, cover; }
    .kh-login__box { width: auto; max-width: 440px; }
    .kh-login__title { margin-top: 6px; padding-bottom: 12px; font-size: 36px; }
    .kh-login__form { margin-top: 28px; }

    .kh-footer { padding: 48px 24px 36px; }
    .kh-footer__info p { font-size: 13px; line-height: 1.75; }
    .kh-footer__contact { gap: 8px 20px; margin-top: 16px; }
    .kh-footer__contact li { gap: 7px; font-size: 14px; }
    .kh-footer__contact svg { width: 17px; height: 17px; }
    .kh-footer__links { gap: 12px 24px; margin-top: 28px; }
    .kh-footer__links a { font-size: 14px; }
    .kh-footer__bottom { margin-top: 28px; }
    .kh-footer__note, .kh-footer__copy { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .kh *, .kh *::before, .kh *::after { transition: none !important; }
}

/* ---------- 보조 ---------- */
.kh-hint { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: #8a8a8a; text-align: left; }
.kh-files { margin-top: 26px; }
.kh-files + .kh-hint { margin-top: 12px; }

/* 1920px 보다 넓은 화면 : 탕전실 사진은 왼쪽 끝도 부드럽게 */
@media (min-width: 1921px) {
    .kh-band { -webkit-mask-image: linear-gradient(90deg, transparent, #000 160px, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(90deg, transparent, #000 160px, #000 calc(100% - 160px), transparent); }
}
