/* ==========================================================================
   상단 네비게이션 : 플랫 화이트 + 하단 헤어라인 + 볼드 메뉴
   현재 화면은 aria-current="page" 로 표시한다 (pager.js 가 설정).
   ========================================================================== */
#mainNav.navbar-custom {
    background-color: var(--afcs-surface);
    border: 0;
    border-bottom: 1px solid var(--afcs-line);
    box-shadow: none;
    padding: 10px 0;
}

/* 상단 로고(top_logo_afc.png, 800x137 가로형 컬러 로고) : 기존 로고 칸 높이(65px)를 유지해 네비 높이(116px)가 변하지 않게 세로 중앙 정렬 */
#mainNav .navbar-brand > img {
    height: 40px;
    width: auto;
    max-width: 100%;
    margin: 12px 0 13px;
}

#mainNav #afcs-nav-list > li {
    margin-left: 18px;
}

#mainNav #afcs-nav-list > li > a {
    position: relative;
    padding: 14px 10px;
    color: var(--afcs-muted);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    text-shadow: 0 1px 1px rgb(0 0 0 / 0.06);
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: color 0.18s ease;
}

#mainNav #afcs-nav-list > li > a:hover,
#mainNav #afcs-nav-list > li > a:focus {
    color: var(--afcs-ink);
    background: transparent;
}

#mainNav #afcs-nav-list > li > a[aria-current="page"] {
    color: var(--afcs-accent);
}

#mainNav #afcs-nav-list > li > a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -10px;
    height: 3px;
    background-color: var(--afcs-accent);
}

/* 모바일 메뉴 버튼의 햄버거 아이콘 : 아이콘 폰트 없이 CSS 만으로 그린다 (폰트 파일이 서버에 없어 깨져 보이던 문제 방지) */
.afcs-nav-toggle__icon {
    display: inline-block;
    width: 14px;
    height: 2px;
    margin-left: 6px;
    vertical-align: middle;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

/* 모바일/태블릿 메뉴 : 992px 미만에서 접히는 세로 목록이므로 하단 밑줄 대신 왼쪽 포인트 바 */
@media (max-width: 991px) {
    #mainNav #afcs-nav-list > li {
        margin-left: 0;
    }

    #mainNav #afcs-nav-list > li > a[aria-current="page"]::after {
        top: 12px;
        bottom: 12px;
        left: 0;
        right: auto;
        width: 3px;
        height: auto;
    }
}
