/* ════════════════════════════════════════
   사이트 사이드바 + 본문 2단 레이아웃
   ════════════════════════════════════════ */

/* 본문 + 사이드바 2단 컨테이너 (sub.php 가 .has-sidebar 분기 시 적용) */
.site-with-sidebar {
    display: flex;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    align-items: flex-start;
}
.site-with-sidebar .site-main-col {
    flex: 1 1 auto;
    min-width: 0;   /* flex 자식 overflow 방지 */
}
.site-with-sidebar .site-sidebar {
    flex: 0 0 240px;
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 8px;
    padding: 20px 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px;
}

/* 사이드바 메뉴 */
.site-sidebar .side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-sidebar .side-depth-1 > li {
    border-bottom: 1px solid #f0f3f5;
}
.site-sidebar .side-depth-1 > li:last-child {
    border-bottom: 0;
}
.site-sidebar .side-menu a {
    display: block;
    padding: 10px 12px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
}
.site-sidebar .side-depth-1 > li > a {
    font-weight: 600;
}
.site-sidebar .side-menu a:hover {
    background: #f5f7fa;
    color: #1abc9c;
}
.site-sidebar .side-menu li.active > a {
    color: #1abc9c;
    font-weight: 700;
}
.site-sidebar .side-menu li.active > a::before {
    content: '▸ ';
    color: #1abc9c;
}

/* 2차 — 들여쓰기 + 좌측 라인 */
.site-sidebar .side-depth-2 {
    margin: 0 0 8px 12px;
    padding-left: 12px;
    border-left: 2px solid #ecf0f1;
}
.site-sidebar .side-depth-2 a {
    padding: 6px 8px;
    font-size: 13px;
    color: #5d6d7e;
}

/* 3차 — 더 들여쓰기 */
.site-sidebar .side-depth-3 {
    margin: 0 0 4px 12px;
    padding-left: 10px;
    border-left: 1px dotted #ecf0f1;
}
.site-sidebar .side-depth-3 a {
    padding: 5px 8px;
    font-size: 12px;
    color: #95a5a6;
}

/* ── 모바일 (≤ 991px) — 사이드바를 본문 아래로 ── */
@media (max-width: 991px) {
    .site-with-sidebar {
        flex-direction: column;
    }
    .site-with-sidebar .site-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
        margin-top: 24px;
    }
}

/* ════════════════════════════════════════
   푸터 — DB 메뉴 모드에서 .gs-ft-tt 안의 <a> 스타일
   (sample-style.css 의 .gs-ft-tt 는 div 기준이므로 a 태그 보강)
   ════════════════════════════════════════ */
.gs-ft-tt a {
    color: inherit;
    text-decoration: none;
}
.gs-ft-tt a:hover {
    color: #1abc9c;
}
