/* Existing main.css navigation, scoped to legacy public pages. */
body:not(.main-page) .jt-topline {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    z-index: 1002;
    background: linear-gradient(90deg, var(--jt-blue) 0%, var(--jt-sky) 50%, var(--jt-blue) 100%);
}

body:not(.main-page) .jt-header {
    position: fixed;
    top: 2px; left: 0;
    width: 100%;
    z-index: 1001;
    background: rgba(8, 16, 26, 0.85);
    border-bottom: 1px solid rgba(46, 57, 71, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background .25s ease, box-shadow .25s ease;
}
body:not(.main-page) .jt-header.is-scrolled {
    background: rgba(8, 16, 26, 0.96);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

body:not(.main-page) .jt-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 16px;
}

body:not(.main-page) .jt-logo { display: flex; align-items: center; flex: none; }

body:not(.main-page) .jt-gnb { display: flex; align-items: center; gap: 36px; }
body:not(.main-page) .jt-gnb > li > a {
    display: block;
    padding: 12px 2px;
    font-size: 14px;
    font-weight: 600;
    color: #C9CED4;
    transition: color .2s ease;
}
body:not(.main-page) .jt-gnb > li > a:hover { color: var(--jt-sky-2); }

body:not(.main-page) .jt-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--jt-blue);
    color: var(--jt-text-on-dark);
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}
body:not(.main-page) .jt-header-cta:hover { background: #0A5BC0; transform: translateY(-1px); }

/* 모바일 토글 + 드로어 */
body:not(.main-page) .jt-nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 0; background: transparent;
    cursor: pointer;
    padding: 8px;
}
body:not(.main-page) .jt-nav-toggle span {
    display: block;
    height: 2px;
    background: #C9CED4;
    margin: 5px 0;
}

body:not(.main-page) .jt-mnav {
    display: none;
    border-top: 1px solid rgba(46, 57, 71, 0.5);
    background: rgba(8, 16, 26, 0.98);
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}
body:not(.main-page) .jt-mnav.is-open { display: block; }
body:not(.main-page) .jt-mnav a {
    display: block;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #C9CED4;
    border-bottom: 1px solid rgba(46, 57, 71, 0.35);
}
body:not(.main-page) .jt-mnav a:last-child { border-bottom: 0; color: var(--jt-sky-2); }

body:not(.main-page) .jt-gnb > li { position: relative; }
body:not(.main-page) .jt-gnb > li.has-sub > a::after {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    margin-left: 6px;
    vertical-align: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform .2s ease;
}
body:not(.main-page) .jt-gnb > li.has-sub:hover > a::after { transform: rotate(-135deg) translateY(-1px); }

body:not(.main-page) .jt-sub {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 150px;
    padding: 8px 0;
    border: 1px solid rgba(46, 57, 71, 0.7);
    border-radius: 10px;
    background: rgba(8, 16, 26, 0.97);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 20;
}
body:not(.main-page) .jt-gnb > li.has-sub:hover > .jt-sub,
body:not(.main-page) .jt-gnb > li.has-sub:focus-within > .jt-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
body:not(.main-page) .jt-sub > li > a {
    display: block;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #C9CED4;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
body:not(.main-page) .jt-sub > li > a:hover {
    color: var(--jt-sky-2);
    background: rgba(7, 107, 227, 0.12);
}

/* 모바일 드로어의 하위 항목 */
body:not(.main-page) .jt-mnav a.is-sub {
    padding-left: 42px;
    font-size: 14px;
    font-weight: 500;
    color: #9099A5;
}
body:not(.main-page) .jt-mnav a.is-sub::before {
    content: '';
    display: inline-block;
    width: 8px;
    margin-left: -14px;
    margin-right: 6px;
    border-top: 1px solid #565E69;
    vertical-align: 4px;
}
body:not(.main-page) .jt-sub > li.is-on > a {
    color: var(--jt-sky-2);
    font-weight: 800;
    background: rgba(7, 107, 227, 0.14);
}

@media (max-width: 1024px) {
    body:not(.main-page) .jt-header {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 2px);
        max-height: calc(100dvh - 2px);
    }
    body:not(.main-page) .jt-header-inner { flex: none; min-height: 64px; }
    body:not(.main-page) .jt-mnav { flex: 0 1 auto; }
    body:not(.main-page) .jt-gnb { display: none; }
    body:not(.main-page) .jt-nav-toggle { display: block; }
    body:not(.main-page) .jt-header-cta { display: none; }

}

body:not(.main-page) .jt-header .jt-inner { width:100%; max-width:var(--jt-container); margin:0 auto; padding-left:32px; padding-right:32px; box-sizing:border-box; }
body:not(.main-page) .jt-header ul, body:not(.main-page) .jt-header li { list-style:none; margin:0; }
body:not(.main-page) .jt-header .jt-gnb { padding:0; }
body:not(.main-page) .jt-header a { text-decoration:none; }
body:not(.main-page) .jt-legacy-header-space { height:98px; }
body.main-page .jt-legacy-header-space { display:none; }
@media(max-width:1024px) {
 body:not(.main-page) .jt-header .jt-inner { padding:12px 20px; }
 body:not(.main-page) .jt-legacy-header-space { height:76px; }
}
