@charset "utf-8";
/* =========================================================
 * custom theme - header (GNB / LNB / 좌측 패널) + 메인 배너 모달
 * main.css 다음에 로드됨 : main.css 의 예전 #hd / .popup 규칙을 여기서 덮어씀
 * ========================================================= */

:root {
    --gh-top-h: 57px;          /* 1단(로고/로그인) 높이 */
    --gh-bar-h: 58px;          /* 2단(메뉴/다운로드) 높이 */
    --gh-mo-h: 50px;           /* 모바일 헤더 높이 */
    --gh-point: var(--c-point);       /* 포인트 컬러 (모바일 고정 헤더, 패널 헤더) */
    --gh-font: var(--font-base);
}

/* 헤더(GNB/LNB/좌·우 패널) 규칙은 css/header_nav.css 로 이전 (nav-header) */

/* =========================================================
 * 메인 배너 모달
 * ========================================================= */
html.bm-open, html.bm-open body { overflow: hidden; }
.bm { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1200; opacity: 0; transition: opacity .2s; font-family: var(--gh-font); }
.bm[hidden] { display: none; }
.bm.is-show { opacity: 1; }
.bm-dim { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bm-dialog {
    /* 배너 1180x700 원본 크기, 화면이 작으면 비율 유지 축소 (위 컨트롤 영역 확보) */
    --bm-w: min(1180px, calc(100vw - 64px), calc((100vh - 140px) * 1180 / 700));
    position: absolute; top: 50%; left: 50%; width: var(--bm-w);
    transform: translate(-50%, -50%);
}
.bm-ctrl { position: absolute; right: 0; bottom: 100%; display: flex; align-items: center; height: 24px; margin-bottom: 15px; }
.bm-stop { position: relative; height: 21px; margin: 2px 20px 1px 0; padding: 0 18px; border-right: 1px solid rgba(255, 255, 255, .2); font-size: 15px; line-height: 17px; color: var(--c-text-ref-sub); transition: color .2s; }
.bm-stop:hover { color: var(--c-text-strong); }
.bm-x { position: relative; width: 24px; height: 24px; opacity: .6; transition: opacity .2s; }
.bm-x:hover { opacity: 1; }
.bm-x::before, .bm-x::after { content: ""; position: absolute; top: 11px; left: -4px; width: 32px; height: 1.6px; background: var(--c-text-strong); transform: rotate(45deg); }
.bm-x::after { transform: rotate(-45deg); }
.bm-banner { display: block; }
.bm-slot { width: 100%; height: auto; aspect-ratio: 1180 / 700; }

@media (max-width: 1023px) {
    .bm-dialog { --bm-w: min(1180px, calc(100vw - 48px), calc((100vh - 120px) * 1180 / 700)); }
    .bm-ctrl { margin-bottom: 12px; }
    .bm-stop { margin-right: 14px; padding: 0 14px; font-size: 14px; }
    .bm-x { width: 20px; height: 20px; }
    .bm-x::before, .bm-x::after { top: 9px; left: -3px; width: 26px; }
}
