/* ===== 공통 세팅 ===== */
:root{
    /* 원하는 기본 폰트 스택을 여기에! */
    --font-ui: "Pretendard Variable","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    --text-1:#111827; --text-2:#4b5563; --bg-1:#ffffff;
}

html{
    font-size:15px !important;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}

body{
    font-size:15px !important;
    font-family:var(--font-ui) !important;
    color:var(--text-1) !important;
    background:var(--bg-1) !important;
    letter-spacing:.1px;
    line-height:1.8;
}

/* 폼/버튼/네비/테이블도 상속 */
.btn, input, textarea, select, table, nav, .navbar, .dropdown-menu{
    font-family:inherit !important;
}

/* 헤딩 가독성 & 대비 */
h1,h2,h3,h4,h5,h6{ font-family:inherit; font-weight:700; line-height:1.25; color:#0b0b0c; }
h1{ font-size:clamp(1.75rem, 1.1rem + 2vw, 2.25rem); }
h2{ font-size:clamp(1.5rem, 1.0rem + 1.5vw, 1.9rem); }
h3{ font-size:clamp(1.25rem, 0.9rem + 1vw, 1.6rem); }

/* 본문 */
p, li{ color:var(--text-1); }

/* 링크 대비 & 접근성 */
a{ color:#1f2937; text-decoration:none; }
a:hover{ color:#0f172a; text-decoration:underline; }

/* CKEditor 본문에도 동일 폰트 적용 */
.ck-content{
    font-family:inherit !important;
    color:var(--text-1) !important;
    line-height:1.7;
}

/* (소스 모드 전환 시) 소스 영역 폰트 */
.ck-editor__main .ck-source-editing-area textarea,
.ck-editor__main .ck-source-editing-area .ck-textarea{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace !important;
    font-size:14px;
    line-height:1.6 !important;
}

/* 기준 폰트 */
html {
    font-size:14px;
}


/* 일반 기본 폰트 */
.f-de {
    font-size:15px !important;
}

/* 게시판 글제목 */
#bo_v_title {
    font-size: 26px !important;
}

/* 게시판 글내용 */
#bo_v_con {
    font-size:18px !important;
    line-height:1.7;
}

/* 주석 등 */
.f-xs {
    font-size:12px !important;
}

/* 정보(조회, 날짜) 등 */
.f-sm {
    font-size:14px !important;
}

/* 입력폼 */
.input-group-text {
    font-size:14px !important;
}

/* 주메뉴, 텍스트 로고 등 */
.f-md {
    font-size:18px !important;
    line-height:1.5 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    font-weight: 400 !important;
    padding-top:0.75rem;
    padding-bottom:0.75rem;
}

/* 모바일 헤더(텍스트 로고) 등 */
.f-mo {
    font-size:18px !important;
    line-height:1.5 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    font-weight: 400 !important;
    padding-top:0.75rem;
    padding-bottom:0.75rem;
}

/* 일반 위젯 타이틀 등 */
.f-lg {
    font-size:16px !important;
    line-height:1.7 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    margin-bottom:0.25rem !important;
}

/* 특수 위젯 타이틀 등 */
.f-xl {
    font-size:20px !important;
    line-height:1.5 !important;
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
    margin-bottom:0.25rem !important;
}

/* 각종 타이틀 */
h1, h2, h3, h4, h5, h6, .en {
    font-family: 'NEXON Lv2 Gothic', sans-serif !important;
}

/* 분류탭 */
.sly-tab {
    font-size:14px !important;
}

/* 목록 헤드 */
.list-head,
.na-table-head > div {
    font-size:14px !important;
}

/* 위젯 목록 라인 */
.na-list li {
    line-height:1.9;
}

/* 위젯 목록 랭크 아이콘 */
.na-list li .rank-icon {
    position:relative;
    top:0;
}

.is-line .na-list li {
    line-height:1.9;
    padding-bottom:0.25rem;
    margin-bottom:0.25rem;
    border-bottom:1px solid #efefef;
}

/* 리스트형 스킨 목록 간격 */
.na-flex .py-2 {
    padding-top:0.60rem !important;
    padding-bottom:0.60rem !important;
}

@media all and (min-width:768px) {
    .na-table .py-md-2 {
        padding-top:0.60rem !important;
        padding-bottom:0.60rem !important;
    }
}

@media all and (max-width:767px) {
    .na-table .py-2 {
        padding-top:0.60rem !important;
        padding-bottom:0.60rem !important;
    }
}

/* 체크박스, 라디오버튼 재지정 */
.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after,
.custom-radio .custom-control-label::before,
.custom-radio .custom-control-label::after {
    top:5px !important;
}

/* 스위치 버튼 재지정 */
.custom-switch .custom-control-label::before,
.custom-switch .custom-control-label::after {
    margin-top:2px !important;
}


/* 메뉴(검은 배경 + 가독성 높은 글씨) */
#nt_menu, #nt_menu .bg-primary{ background:#0b0b0c !important; }
#nt_menu a, #nt_menu .me-a a{ color:#f5f7fa !important; }
#nt_menu a:hover, #nt_menu .me-a a:hover{ color:#d4af37 !important; }

/* 모바일 메뉴도 동일 톤 */
.m-menu{ background:#0b0b0c !important; }
.m-menu a{ color:#f5f7fa !important; }
.m-menu a:hover{ color:#d4af37 !important; }


/* 그리드 간격 */
.na-row {
    margin-left:-13px !important;
    margin-right:-13px !important;
}

.na-col {
    padding-left:13px !important;
    padding-right:13px !important;
}

@media all and (min-width:768px) {
    #nt_body .nt-container.pt-sm-4,
    #nt_body .nt-container.py-sm-4 {
        padding-top:26px !important;
    }
}
#nt_menu .me-sw { width:150px; }
.lgbar {height:5px;}
:root{
    --nt-bg: #0b0b0c;        /* 메인 블랙 */
    --nt-bg-2: #101113;      /* 서브/드롭다운 */
    --nt-text: #f1f1f1;      /* 본문 텍스트 */
    --nt-muted: #b9b9b9;     /* 서브 텍스트 */
    --nt-accent: #d4af37;    /* 골드 포인트 */
    --nt-border: #1f2225;    /* 경계선 */
}
#nt_menu{
    background: var(--nt-bg) !important;
}
/* 1뎁스 링크(행/스팬/앵커 모두 잡기) */
#nt_menu .me-ul .me-li > a,
#nt_menu .me-a,
#nt_menu .me-a > a{
    color: var(--nt-text) !important;
    text-decoration: none !important;
}

/* 1뎁스 hover/active 포인트 컬러 */
#nt_menu .me-li:hover > .me-a,
#nt_menu .me-li:hover > .me-a > a{
    color: var(--nt-accent) !important;
}

/* 드롭다운 래퍼 & 아이템 */
#nt_menu .sub-1div{
    background: var(--nt-bg-2) !important;
    border: 1px solid var(--nt-border) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
#nt_menu .sub-1da{
    color: var(--nt-muted) !important;
}
#nt_menu .sub-1da:hover{
    color: var(--nt-accent) !important;
}

/* 상단 얇은 바(선택) - 블랙 그라디언트 */
.lgbar{
    background: linear-gradient(90deg, #000, #171717, #000) !important;
}

/* 아이콘/버튼 영역 대비 확보(필요 시) */
#nt_menu .me-icon .me-a,
#nt_menu .me-icon .me-a i{
    color: var(--nt-text) !important;
}
#nt_menu .me-icon .me-a:hover i{
    color: var(--nt-accent) !important;
}

/* 활성/현재 메뉴 표시(테마 포인트) */
#nt_menu .me-ul .me-li.active > .me-a,
#nt_menu .me-ul .me-li.active > .me-a > a{
    color: var(--nt-accent) !important;
}

/* 드롭다운 경계/구분선(테마 톤) */
#nt_menu .sub-1dul li + li{
    border-top: 1px dashed rgba(255,255,255,0.05);
}

/* 모바일 메뉴 배경도 통일하고 싶다면(선택) */
.m-menu{
    background: var(--nt-bg) !important;
    border-color: var(--nt-border) !important;
}
.m-menu .m-list a,
.m-menu .m-nav a{
    color: var(--nt-text) !important;
}
.m-menu .m-nav ul li.active a,
.m-menu .m-nav a:hover{
    color: var(--nt-accent) !important;
}

/* 본문 공통 */
.post-body{
    overflow-wrap: break-word;       /* 긴 단어/URL 줄바꿈 */
    word-break: break-word;
}

/* 이미지: 컨테이너 너비를 넘지 않게 */
.post-body img{
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;          /* 인라인 width 강제 무시 */
    display: block;                  /* 중앙정렬/줄바꿈 깔끔 */
    margin: 0 auto;                  /* 기본은 중앙 정렬 */
}

/* figure 안 이미지도 동일 처리 */
.post-body figure img{
    max-width: 100% !important;
    height: auto !important;
}

/* 에디터가 aspect-ratio를 준 경우도 왜곡 없이 */
.post-body img[style*="aspect-ratio"]{
    height: auto !important;
}

/* 동영상/임베드도 깨지지 않게 */
.post-body video,
.post-body iframe,
.post-body embed {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;                    /* 비율 자동 */
}

/* 테이블이 넓을 때 가로 스크롤 */
.post-body table{
    width: 100% !important;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}
.post-body table td, .post-body table th{
    word-break: break-word;
}

/* 코드/프리 태그 넘침 방지 */
.post-body pre{
    white-space: pre-wrap;
    overflow-x: auto;
}

/* 이미지가 좌우로 붙어야 할 케이스 대비(선택)
   .align-left / .align-right 클래스를 에디터에서 쓰면 정렬됩니다 */
.post-body img.align-left{ margin-left: 0; margin-right: auto; }
.post-body img.align-right{ margin-left: auto; margin-right: 0; }

/* custom-override.css 맨 아래에 추가 */
.m-menu .m-nav {
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch;
}
.m-menu .m-nav ul {
    display:flex !important;
    gap:10px;
}
.m-menu .m-nav ul li {
    flex:0 0 auto;
    white-space:nowrap;
}

#header_mo img {max-width:100%;}
/********************************************************
■ Mobile Menu : 모바일 메뉴
********************************************************/
.m-menu { display:none; overflow:visible; background:#fff; position:relative; z-index:20; border-top:1px solid #eee; margin-bottom:30px; box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15); -webkit-box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15); -moz-box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15); }


.m-menu .m-wrap { }
.m-menu .m-table { display:table; width:100%; table-layout:fixed; width:100%; margin:0px; min-width:300px; border-collapse: collapse; }
.m-menu .m-icon,
.m-menu .m-list { display:table-cell; vertical-align:middle; font-size:15px; height:44px; line-height:44px; border:1px solid #eee; border-top:0px; border-bottom:0px; }
.m-menu .m-icon { width:44px; text-align:center; font-size:18px; }
.m-menu .m-icon a { display:block; position:relative; }
.m-menu .m-icon .label { position: absolute; top: 15%; right: 5px; text-align: center; font-size: 9px; font-weight:300; padding: 2px 3px; line-height: 0.9; border-radius: .25em !important;  }
.m-menu .m-nav { overflow: hidden; margin:0px 10px; }
.m-menu .m-nav ul { list-style: none; margin:0px; padding:0px; }
.m-menu .m-nav ul li { display:table-cell; padding: 0px 10px; white-space:nowrap; }
.m-menu .m-nav ul li.active a { color: orangered; font-weight:bold; }

.m-menu .m-sub { background:#fafafa; border-top:1px solid #ddd; font-size:15px; height:44px; line-height:44px; padding:0px 10px; }
.m-menu .m-nav-sub { width:100%; overflow: hidden; margin:0px; }
.m-menu .m-nav-sub ul { list-style: none; margin:0px; padding:0px; }
.m-menu .m-nav-sub ul li { display:table-cell; padding: 0px 10px; white-space:nowrap; }
.m-menu .m-nav-sub ul li.active a { color: orangered; font-weight:bold; }
/* 부트스트랩 md 경계에 딱 맞추기 */
@media (max-width: 767.98px){
    .m-menu { display:block !important; }
}

/* 사이드바 헤더 색상: 메뉴와 동일하게 */
#nt_sidebar_header {
    background-color: #0b0b0c !important;   /* 메뉴 배경색과 동일한 블랙 */
    color: #f5f7fa !important;              /* 기본 글자색 흰색 */
    border-bottom: 1px solid #1f2225;       /* 아래 경계선 살짝 */
}

/* 닫기 버튼 (글자 가독성 개선) */
#nt_sidebar_header .sidebar-close {
    color: #f5f7fa !important;              /* 흰색 글자 */
    background-color: transparent;          /* 배경 투명 */
    text-decoration: none;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* hover 시 살짝 반전 */
#nt_sidebar_header .sidebar-close:hover {
    background-color: rgba(255,255,255,0.1);
    color: #d4af37 !important;              /* 골드 포인트 */
}

/* h3 내부 가로 정렬 유지 */
#nt_sidebar_header h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}
