/* [doje] 언어 선택 (헤더 오른쪽 위) - lib/doje_lang.lib.php doje_lang_switcher() */
/* 헤더는 로고·메뉴 2칸 space-between 이라, 흐름에 넣으면 메뉴가 가운데로 밀린다.
   .inner_lg 오른쪽 여백(130px) 안에 띄워서 기존 배치를 그대로 둔다. */
.lang_sel{position:absolute; top:50%; right:22px; transform:translateY(-50%); z-index:11;}
.lang_sel .lang_btn{display:flex; align-items:center; column-gap:8px; height:36px; padding:0 13px 0 11px; border:1px solid rgba(255,255,255,.7); border-radius:18px; background:rgba(255,255,255,.14); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); color:#fff; font-size:14px; font-weight:600; letter-spacing:.04em; cursor:pointer; transition:background .2s ease;}
.lang_sel .lang_btn:hover{background:rgba(255,255,255,.26);}
.lang_sel .lang_flag{display:block; flex-shrink:0; width:20px; height:14px; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.12); object-fit:cover;}
.lang_sel .lang_btn::after{content:''; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .2s ease;}
.lang_sel .lang_list{position:absolute; top:calc(100% + 8px); right:0; min-width:132px; padding:6px 0; background:#fff; border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.14); opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .2s ease, transform .2s ease, visibility .2s; z-index:20;}
.lang_sel .lang_list{min-width:150px;}
.lang_sel .lang_list a{display:flex; align-items:center; column-gap:10px; padding:10px 18px; font-size:15px; color:#333;}
.lang_sel .lang_list a:hover,
.lang_sel .lang_list a:focus-visible{background:#f6f1ec; color:#BC9171;}
.lang_sel .lang_list a.on{color:#BC9171; font-weight:600;}
.lang_sel.on .lang_list{opacity:1; visibility:visible; transform:translateY(0);}
.lang_sel.on .lang_btn::after{transform:translateY(1px) rotate(225deg);}
header.h-color .lang_sel .lang_btn,
.isSub header .lang_sel .lang_btn{border-color:#BC9171; color:#BC9171; background:#fff;}   /* 흰 배경 헤더(스크롤·서브 페이지)에서는 메뉴와 같은 색 */

@media screen and (max-width: 768px) {
    .lang_sel{top:23px; left:20px; right:auto; transform:none;}
    .lang_sel .lang_list{left:0; right:auto;}
    .lang_sel .lang_btn{height:34px; padding:0 11px; font-size:13px;}
    header:has(.hambug.on) .lang_sel .lang_btn{border-color:#BC9171; color:#BC9171; background:#fff;}
}

/* 외국어 화면: keep-all 은 한국어용이라 영어·일본어·중국어 줄바꿈을 막는다 */
html:not([lang="ko"]) *{word-break:normal; overflow-wrap:break-word;}
html:not([lang="ko"]) .mV_sec .titl_wr .box{max-width:min(560px, calc(100% - 2 * clamp(30px,4vw,100px)));}
html:not([lang="ko"]) .mV_sec .titl_wr .box p br.pc_block{display:none;}
/* 영어 메뉴는 글자가 길어서 좁은 화면에서만 간격을 줄인다 */
@media screen and (max-width: 1200px) and (min-width: 769px) {
    html[lang="en"] .header_wr .gMenu .list{column-gap:24px;}
}
@media screen and (max-width: 768px) {
    html:not([lang="ko"]) .mV_sec .titl_wr .box{max-width:none; padding:0 24px;}
}
/* 영어 화면: 한국어 제목 아래 붙던 영문 부제가 번역된 제목과 겹치므로 숨긴다 */
html[lang="en"] .mI_sec .item dt span,
html[lang="en"] .title .eng,
html[lang="en"] .programHero-title span,
html[lang="en"] .doctor_sec .txt_box > .subs{display:none;}
@media screen and (max-width: 768px) {
    .lang_sel .lang_btn{height:34px; padding:0 10px 0 9px; column-gap:6px; font-size:13px;}
    .lang_sel .lang_flag{width:18px; height:12px;}
}
