@charset "utf-8";

#bo_v_bot	{ padding: 20px 0; overflow: hidden; }
.bo_v_nb	{ float: left; }
.bo_v_com	{ float: right; }

@charset "utf-8";
@font-face { 
  font-family: 'KoPubBatangL'; 
  font-weight: 400; 
  src: url(/css/KoPubBatangL.woff) format('woff'); 
}
@font-face {
    font-family: '함초롬바탕';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2104@1.0/HANBatang.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'TTHakgyoansimKkwabaegiR';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2402_keris@1.0/TTHakgyoansimKkwabaegiR.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'KyoboHand';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/KyoboHand.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'yleeMortalHeartImmortalMemory';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2205@1.0/yleeMortalHeartImmortalMemory.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GongGothicMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/GongGothicMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* list 스타일 */
#navi_category { text-align: center; padding: 20px 0; }
#navi_category li { display: inline-block; padding: 0 5px; }

.cha_list {margin-bottom: 20px;}
.cha_list * {box-sizing: border-box;}
.cha_list .cha_cate {margin-bottom: 0.6rem; font-size: 2rem; font-weight: bold; line-height: 1.5; color: #fff;}

.ul_pair {display: flex; gap: 10px 1%; flex-wrap: wrap; margin-bottom: 2rem;}
.ul_pair:last-child {margin-bottom: 0;}

.ul_pair > li {position: relative; width: 19.2%;}
.ul_pair > li > a {display: block; width: 100%; height: 300px; overflow: hidden; position: relative; border-radius: 10px 10px 0 0; transition: all 0.3s; border-bottom: 4px solid #333; box-shadow: 0 0 7px rgba(0,0,0,0.2);}
.ul_pair > li > a:hover .back_img img,
.ul_pair > li > a:focus .back_img img {transform: scale(1.05,1.05);}

.ul_pair > li .adm_btn {position: absolute; bottom: 7px; right: 5px; z-index: 2;}
.ul_pair > li .adm_btn a {display: inline-flex; align-items: center; justify-content: center; font-size: 10px; margin: 0 3px;}


.ul_pair > li .cha_info {position: absolute; bottom: 0; width: 100%; padding: 5px 10px; color: #333; word-break: keep-all; z-index: 1; line-height: 1;}
.ul_pair > li .cha_info .cha_name {position: relative; font-family: 'GongGothicMedium'; font-size: 1.4rem; z-index: 1; letter-spacing: -0.05em; word-break: keep-all;}
.ul_pair > li .cha_info .cha_sub {font-size: 1.7rem; font-family: 'yleeMortalHeartImmortalMemory'; margin-top: -7px;}
.ul_pair > li .back_img {position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.5)); backdrop-filter: blur(10px);}
.ul_pair > li .back_img .back_color {position: absolute; top:0; left:0; width:100%; height:100%; background:linear-gradient(to top, white 15%, rgba(16, 16, 20,0) 45%)}
.ul_pair > li .back_img img {width: 100%; height: 85%; object-fit: cover; transition: all 0.3s;}
.ul_pair > li .back_img .pic_source {position: absolute; top: 5px; left: 5px; color: #fff; font-size: 11px; text-shadow: 0 0 2px black; font-family: 'Pretendard';}


@media (max-width:768px) {
    .ul_pair > li {width: calc(25% - 3%/4)}
}

@media (max-width:576px) {
    .ul_pair > li {width: calc(33.33% - 2% /3);}
    .ul_pair > li .cha_info .cha_name {font-size: 1.2rem;}
}

@media (max-width:412px) {
    .ul_pair {gap: 10px 2%;}
    .ul_pair > li {width: 49%;}
}


/* view 스타일 : 나무위키 형식 */

#hidden_capture {position: fixed;top: -9999px;left: -9999px; max-width: 980px; width: 100%;}
/* 배경음악(ytplayer) : 화면 오른쪽 아래 구석으로 옮기고, 클릭을 가로채지 않도록 처리 */
#cha_bgm {position: fixed; right: 0; bottom: 0; left: auto; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; z-index: -1;}
#cha_bgm iframe {pointer-events: none;}

.cha_wrap {
    --wiki-text: #373a3c;
    --wiki-link: #0275d8;
    --wiki-line: #ddd;
    --wiki-label: #f5f5f5;
    position: relative; margin: 0 auto; max-width: 980px; min-height: max-content;
    border: 1px solid var(--wiki-line); border-radius: 4px; background: #fff;
    color: var(--wiki-text); font-size: 15px; line-height: 1.6;
    font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
.cha_wrap * {box-sizing: border-box;}
.cha_wrap a {color: var(--wiki-link); text-decoration: none;}
.cha_wrap a:hover {text-decoration: underline;}

/* 문서 제목 줄 + 도구 버튼 */
.cha_viewer .cha_title {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 20px; border-bottom: 1px solid var(--wiki-line);}
.cha_viewer .cha_title .wiki_title {margin: 0; padding: 0; border: 0; font-size: 1.9em; font-weight: 700; line-height: 1.3; color: var(--wiki-text); word-break: keep-all;}
.cha_viewer .cha_title .cha_btn_wrap {display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto;}
.cha_btn_wrap .left,
.cha_btn_wrap .right {display: flex;}
.cha_btn_wrap .cha_btn {position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 30px; margin: 0; border: 1px solid #ccc; background: #fff; color: var(--wiki-text); font-size: 13px; line-height: 1;}
.cha_btn_wrap .cha_btn + .cha_btn {margin-left: -1px;}
.cha_btn_wrap .cha_btn:first-child {border-radius: 4px 0 0 4px;}
.cha_btn_wrap .cha_btn:last-child {border-radius: 0 4px 4px 0;}
.cha_btn_wrap .cha_btn:only-child {border-radius: 4px;}
.cha_btn_wrap .cha_btn:hover {z-index: 1; background: #eee; text-decoration: none;}

/* 목차 */
.wiki_toc {width: fit-content; min-width: 200px; max-width: calc(100% - 40px); margin: 16px 20px 0; padding: 10px 18px; border: 1px solid var(--wiki-line); background: #fff; line-height: 1.7;}
.wiki_toc {position: relative; z-index: 5;}
.wiki_toc a {display: inline-block; cursor: pointer; pointer-events: auto;}
.wiki_toc .wiki_toc_title {font-weight: 700; margin-bottom: 2px;}
.wiki_toc .wiki_toc_list {margin: 0; padding: 0;}
.wiki_toc .wiki_toc_item {display: flex; align-items: baseline; margin: 0; padding: 0;}
.wiki_toc .wiki_toc_num {flex: 0 0 1.8em; margin: 0; padding: 0; color: var(--wiki-text); font-variant-numeric: tabular-nums;}

/* 공통 */
.pic_source {position: absolute; top: 8px; left: 8px; color: #fff; font-size: 11px; line-height: 1.3; text-shadow: 0 0 2px black;}
.cha_box:has(.hide) {padding-bottom: 10px;}

/* 문서 레이아웃 : 본문(좌) + 인물 틀(우) */
.ch_profile_wrap {display: flex; flex-direction: row-reverse; flex-wrap: wrap; gap: 10px; padding: 20px 20px 30px; color: var(--wiki-text); word-break: keep-all; counter-reset: wiki-h;}
.cha_move .ch_profile_wrap .cha_img_box:not(:has(div)),
.cha_move .ch_profile_wrap .cha_bottom_box:not(:has(div)) {display: flex; padding: 10px 0;}
.ch_profile_wrap .cha_img_box:not(:has(div)),
.ch_profile_wrap .cha_bottom_box:not(:has(div)) {display: none;}
.ch_profile_wrap .cha_img_box:has(div) {display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px;}
.ch_profile_wrap .cha_bottom_box:has(div) {display: flex; flex-direction: column; gap: 10px; padding-top: 10px;}
.ch_profile_wrap .cha_img_wrap {position: relative; width: 100%;}
.ch_profile_wrap .cha_img_wrap .cha_img {overflow: hidden; position: relative; border: 1px solid var(--wiki-line); border-radius: 0; height: 22vw; max-height: 220px;}
.ch_profile_wrap .cha_img_wrap .cha_img img {width: 100%; height: 100%; object-fit: cover;}

/* 인물 틀 열 (표 형태로 맞붙여 배치) */
.ch_profile_wrap .cha_body {position: relative; width: 36.46%; display: flex; flex-direction: column; gap: 0; padding-top: 1px;}
.ch_profile_wrap .cha_body > div {margin-top: -1px;}
.ch_profile_wrap .cha_profile {width: calc(63.54% - 10px); display: flex; flex-direction: column; gap: 14px;}

/* 인물 틀 : 이름 머리글 + 요약 */
.ch_profile_wrap .cha_basic {position: relative; border: 1px solid var(--wiki-line); background: #fff;}
.ch_profile_wrap .cha_basic > div {padding: 0;}
.ch_profile_wrap .cha_basic > div:before {content: none;}
.ch_profile_wrap .cha_basic .cha_name {padding: 10px 12px; background: var(--ch-color); text-align: center; font-size: 1.25em; font-weight: 700; line-height: 1.35;}
.ch_profile_wrap .cha_basic .cha_name span {display: block; margin-top: 2px; font-family: inherit; font-size: 0.7em; font-style: normal; font-weight: 400; opacity: 0.9;}
.ch_profile_wrap .cha_basic .cha_info {margin: 0; padding: 8px 12px; border-top: 1px solid var(--wiki-line); text-align: center; font-weight: 400; line-height: 1.5;}
.ch_profile_wrap .cha_basic ul {list-style: none;}
.ch_profile_wrap .cha_basic .cha_keyword {display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px; margin: 0; padding: 6px 12px; border-top: 1px solid var(--wiki-line); color: var(--wiki-link); font-size: 0.93em; font-weight: 400;}
.ch_profile_wrap .cha_basic .cha_link {list-style: none; position: static; display: flex; justify-content: center; gap: 14px; margin: 0; padding: 6px 12px; border-top: 1px solid var(--wiki-line);}
.ch_profile_wrap .cha_basic .cha_link li + li {margin-top: 0;}
/* 링크 버튼 : 정보 상자 맨 아래, 칸 구분 없이 */
.ch_profile_wrap .cha_ect_box .cha_link {display: flex; justify-content: flex-end; gap: 14px; margin: 0; padding: 8px 0 0; list-style: none; border: 0; background: none; margin-right: 5px;}

/* 인물 틀 : 이미지 칸 */
.ch_profile_wrap .body_img {overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--wiki-line); background: #fff;}
.ch_profile_wrap .body_img img {display: block; width: 100%; max-width: 100%; height: auto;}
.ch_profile_wrap .body_img .pic_source {top: 8px; left: 8px;}

.ch_profile_wrap .cha_head {display: flex; border: 1px solid var(--wiki-line); background: #fff;}
.ch_profile_wrap .cha_head > div {overflow: hidden; position: relative; border-radius: 0; padding-top: 50%; width: 50%; background: var(--wiki-label);}
.ch_profile_wrap .cha_head > div + div {border-left: 1px solid var(--wiki-line);}
.ch_profile_wrap .cha_head > div img {position: absolute; top: 0; left: 0; width: 100%; top: 50%; transform: translateY(-50%);}
/* 두상이 한 장이면 가로를 꽉 채움 (원본 비율 유지, 자르지 않음) */
.ch_profile_wrap .cha_head > div:only-child {width: 100%; padding-top: 0; background: none;}
.ch_profile_wrap .cha_head > div:only-child img {position: static; display: block; width: 100%; height: auto; transform: none;}

/* 인물 틀 : 테마 컬러 */
.ch_profile_wrap .cha_color {border: 1px solid var(--wiki-line); background: #fff;}
.ch_profile_wrap .cha_theme_color {padding: 5px 10px; border-radius: 0; width: 100%; color: #fff; background: #333; text-align: center; font-size: 12px; letter-spacing: 0.08em; line-height: 1.5;}
.ch_profile_wrap .cha_color .color_box {display: flex; gap: 0; margin: 0; padding: 0; list-style: none;}
.ch_profile_wrap .cha_color .color_box li {flex: 1; display: flex; align-items: end; justify-content: center; padding: 4px; border-radius: 0; width: auto; height: 40px; font-size: 11px; line-height: 1.2;}

/* 인물 틀 : 기타 항목 (항목명 | 내용 표) */
.ch_profile_wrap .cha_ect_box dl {display: grid; grid-template-columns: 96px 1fr; gap: 0; margin: 0; padding: 0; border: 1px solid var(--wiki-line); border-radius: 0; background: #fff;}
.ch_profile_wrap .cha_ect_box dl dt {width: auto; margin: 0; padding: 6px 8px; border-top: 1px solid var(--wiki-line); border-radius: 0; background: var(--wiki-label); color: var(--wiki-text); text-align: center; font-weight: 700; line-height: 1.4;}
.ch_profile_wrap .cha_ect_box dl dd {width: auto; margin: 0; padding: 6px 10px; border-top: 1px solid var(--wiki-line); line-height: 1.4;}
.ch_profile_wrap .cha_ect_box dl dt:first-of-type,
.ch_profile_wrap .cha_ect_box dl dt:first-of-type + dd {border-top: 0;}

/* 본문 : 인용문(한마디) */
.ch_profile_wrap .cha_phrase {position: relative; margin: 0; padding: 12px 16px; border: 1px solid var(--wiki-line); /*border-left: 5px solid var(--ch-color);*/ border-radius: 0; background: #f9f9f9; color: var(--wiki-text); font-family: '함초롬바탕'; font-size: 1.05em; line-height: 1.6; text-align: center; font-weight: bold; font-style: italic;}
.ch_profile_wrap .cha_phrase:after {content: none;}

/* 본문 : 문단 제목 (1. 2. 3. ...) */
.ch_profile_wrap .cha_character {position: relative; margin: 0; padding: 0; border-radius: 0; background: none;}
.ch_profile_wrap .cha_character .cha_title {position: static; display: block; margin: 0 0 10px; padding: 0 0 6px; border-bottom: 1px solid var(--wiki-line); color: var(--wiki-text); font-family: inherit; font-size: 1.55em; font-weight: 700; line-height: 1.4; counter-increment: wiki-h;}
.ch_profile_wrap .cha_character .cha_title .wiki_h_fold {display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em; margin-right: 0.2em; vertical-align: middle; cursor: pointer; user-select: none;}
/* 아래를 향한 V 모양(셰브론)을 CSS로 그림 → 글꼴 때문에 네모로 깨지지 않음 */
.ch_profile_wrap .cha_character .cha_title .wiki_h_fold:before {content: ''; display: block; width: 0.5em; height: 0.5em; margin-top: -0.2em; border-right: 2px solid #666; border-bottom: 2px solid #666; transform: rotate(45deg); transition: transform 0.15s;}
.ch_profile_wrap .cha_character .cha_title .wiki_h_fold:hover:before {border-color: #222;}
.ch_profile_wrap .cha_character.wiki_folded .cha_title .wiki_h_fold:before {margin-top: 0; margin-left: -0.2em; transform: rotate(-45deg);}
.ch_profile_wrap .cha_character.wiki_folded .cha_character_con {display: none;}
.ch_profile_wrap .cha_character .cha_title .wiki_h_num {margin-right: 0.35em; color: var(--wiki-link); font-weight: 700; cursor: pointer;}
.ch_profile_wrap .cha_character .cha_title .wiki_h_num:hover {text-decoration: underline;}
.ch_profile_wrap .cha_character + .cha_character {margin-top: 14px;}
.ch_profile_wrap .cha_character .cha_title {scroll-margin-top: 16px;}
.ch_profile_wrap .cha_character_con {display: block; line-height: 1.7;}
.ch_profile_wrap .cha_character_con .img {max-width: 200px;}
.ch_profile_wrap .cha_character > div {line-height: 1.7; text-align: justify;}

.ch_profile_wrap .etc_img {display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px;}
.ch_profile_wrap .etc_img > div {width: calc(50% - 2px);}
.ch_profile_wrap .etc_img.etc_img_1 > div {width: 100%;}
.ch_profile_wrap .etc_img img {display: block; width: 100%; height: auto; border: 1px solid var(--wiki-line);}


/* 숨김기능 */
.cha_wrap .hide {display: none !important;}
.cha_view_y:after {content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.5); z-index: 1;}
.cha_box {position: relative;}
.frame_hide {position: absolute; top: 5px; right: 5px; z-index: 10; display: none;}
.cha_view_y .frame_hide {display: block;}
.frame_hide:hover {z-index: 20;}
.frame_hide button {width: 25px; height: 25px; border-radius:20px; background: rgba(255,255,255,0.9); border: none; box-shadow: 0 0 5px rgba(0,0,0,0.5);}
.cha_row_2 .frame_hide,
.cha_row_4 .frame_hide,
.cha_sd_0 .frame_hide,
.cha_row_7 .frame_hide,
.cha_ect_box .frame_hide {left: 5px; right: auto;}


@media all and (max-width:768px) {
    .cha_viewer .cha_title .cha_btn_wrap .cha_btn.object_change {display: none;}
    .ch_profile_wrap > div {width: 100% !important;}
    .ch_profile_wrap .cha_phrase {margin: 0; font-size: 1.05em;}
    .cha_viewer .cha_title {padding: 12px 14px;}
    .cha_viewer .cha_title .wiki_title {font-size: 1.6em;}
    .wiki_toc {margin: 12px 14px 0; max-width: calc(100% - 28px);}
    .ch_profile_wrap {padding: 14px 14px 24px;}
}

.cha_move * {cursor: move !important;}
.cha_move .ch_profile_wrap > div > div {opacity: 0.7;}
.cha_move .ch_profile_wrap > div > div:hover {opacity: 1;}
.cha_move img {pointer-events: none;}

/* 정보 상자(.cha_body)가 오른쪽이므로 핸들은 왼쪽 가장자리에 표시 */
.resize_handle {display: none; position: absolute; top: 0; left: auto; right: calc(100% + 3px); z-index: 10; height: 100%; width: 4px; background: rgba(0,0,0,0.3); border-radius: 5px; cursor: col-resize !important;}
.cha_wrap.resizing {user-select: none;}
.cha_move .resize_handle {display: block;}


.more_profile {margin-top: 20px;}
.more_profile .adm_btn,
.more_profile .cha_info,
.more_profile .back_img .back_color {display: none;}
.more_profile > li > a {height:200px; border-radius: 2px; border: none;}
.more_profile > li .back_img img {height: 100%;}


/* 글작성 */
#ca_name option[value="공지"] {display: none;}
.board-write	{  padding: 0 10px; }
.board-write h3	{font-size: 26px;text-align: center;padding: 30px 0 20px;} 
.board-write .write-notice	{padding: 10px;font-size: 11px;}
.board-write dl {position:relative; margin-bottom: 8px;}
.board-write dl > dt { width:90px;position:absolute;line-height:32px;text-align:center; }
.board-write dl > dd { width:100%;margin-left:0;padding-left:100px;box-sizing:border-box;line-height:32px;}
.board-write input.frm_input.full	{ width: 100%; display:block;margin:1px 0;}

.cha_ect_wrap {display: flex; gap: 5px; align-items: center;}
.cha_ect_wrap textarea,
.board-write dd > textarea.cha_ect {width: 100%; height: 80px; line-height: 1.5;}
.add_cha_ect {margin: 5px auto 0;}

.square .clr-field button {width: 22px;height: 22px;left: 5px;right: auto;border-radius: 5px;}
.square .clr-field input {padding-left: 36px; width: 120px;}
.btn_fold {margin: 5px 0;}
.file_head_wrap {display: flex; gap: 10px;}
.file_head_wrap > div {width: calc(50% - 5px);}

.ui-sortable-placeholder {border: 2px dashed rgba(0,0,0,0.15); background: rgba(255,255,255,0.5);}
.loader{display: none; position: fixed;top: 0; left: 0;width: 100%;height: 100%;background-color: rgba(0,0,0, 0.7);z-index: 9999;opacity: 1;transition: 0.5s ease;}
.loader i{font-size: 80px;position: absolute;top: 50%; left: 50%;margin: -40px 0 0 -40px;color: #fff;}

/* 라공에디션용 */
.ui-btn {display:inline-block;}
#container_wr {padding: 0 10px;}
hr.padding {display: block; height: 30px; border: none;}