@charset "utf-8";


/* =====================================================
   NSCARE 공통 사이드바 레이아웃
===================================================== */

.nscare-board-shell {
    display: grid;
    grid-template-columns:
        212px
        minmax(0, 1fr);

    gap: 26px;

    width: calc(100% - 44px);
    max-width: 1180px;

    margin: 30px auto 55px;

    box-sizing: border-box;
}


.nscare-board-main {
    min-width: 0;
}


/* =====================================================
   기존 게시판 폭을 사이드바 안에 맞춤
===================================================== */

.nscare-board-main
.nscare-case-list {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}


/* =====================================================
   사이드바
===================================================== */

.nscare-side-nav {
    position: sticky;
    top: 20px;

    align-self: start;

    width: 100%;

    overflow: hidden;

    border: 1px solid #e4eae6;
    border-radius: 16px;

    background: #fff;

    box-sizing: border-box;
}


/* =====================================================
   브랜드
===================================================== */

.nscare-side-brand {
    padding: 17px 16px;

    border-bottom: 1px solid #edf1ef;

    background:
        linear-gradient(
            135deg,
            #f1faf5 0%,
            #ffffff 100%
        );
}


.nscare-side-brand-link {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #1d2922 !important;

    text-decoration: none !important;
}


.nscare-side-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 11px;

    background: #16a05d;

    color: #fff;

    font-size: 17px;
    font-weight: 900;
}


.nscare-side-brand-copy {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.nscare-side-brand-copy strong {
    color: #1d2922;

    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}


.nscare-side-brand-copy small {
    margin-top: 3px;

    color: #8a948e;

    font-size: 9px;
    line-height: 1.2;
    font-weight: 600;
}


/* =====================================================
   그룹
===================================================== */

.nscare-side-section {
    padding: 15px 11px 13px;

    border-bottom: 1px solid #edf1ef;
}


.nscare-side-section:last-of-type {
    border-bottom: 0;
}


.nscare-side-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 0 7px 8px;
}


.nscare-side-section-head strong {
    color: #26322b;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
}


.nscare-side-section-head span {
    color: #a0aaa4;

    font-size: 8px;
    line-height: 1;
    font-weight: 700;

    letter-spacing: .08em;
}


/* =====================================================
   메뉴
===================================================== */

.nscare-side-service-nav,
.nscare-side-content-nav,
.nscare-side-lounge-nav {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.nscare-side-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    min-height: 35px;

    padding: 0 9px 0 11px;

    border-radius: 8px;

    color: #606b64 !important;

    font-size: 11px;
    line-height: 1.35;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        color .15s ease,
        background .15s ease;
}


.nscare-side-link span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.nscare-side-link em {
    flex: 0 0 auto;

    color: #c2cac5;

    font-style: normal;
    font-size: 15px;
    font-weight: 400;
}


.nscare-side-link:hover {
    background: #f3faf6;

    color: #16a05d !important;
}


.nscare-side-link:hover em {
    color: #16a05d;
}


/* =====================================================
   현재 메뉴
===================================================== */

.nscare-side-link.is-active {
    background: #eaf7f0;

    color: #12864e !important;

    font-weight: 800;
}


.nscare-side-link.is-active::before {
    position: absolute;

    top: 50%;
    left: 0;

    width: 3px;
    height: 17px;

    margin-top: -8px;

    border-radius: 0 3px 3px 0;

    background: #16a05d;

    content: "";
}


.nscare-side-link.is-active em {
    color: #16a05d;
}


/* =====================================================
   안내 카드
===================================================== */

.nscare-side-guide {
    margin: 11px;

    padding: 15px;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #183429 0%,
            #116d43 100%
        );

    color: #fff;
}


.nscare-side-guide > span {
    display: block;

    margin-bottom: 7px;

    color: #aee0c3;

    font-size: 8px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: .1em;
}


.nscare-side-guide strong {
    display: block;

    color: #fff;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}


.nscare-side-guide p {
    margin: 8px 0 0;

    color: rgba(255,255,255,.7);

    font-size: 9px;
    line-height: 1.55;

    word-break: keep-all;
}


/* =====================================================
   1100 이하
===================================================== */

@media (max-width: 1100px) {

    .nscare-board-shell {
        grid-template-columns:
            190px
            minmax(0, 1fr);

        gap: 20px;

        width: calc(100% - 34px);
    }

}


/* =====================================================
   900 이하
   왼쪽 메뉴 → 상단 메뉴
===================================================== */

@media (max-width: 900px) {

    .nscare-board-shell {
        display: block;

        width: calc(100% - 32px);

        margin-top: 22px;
        margin-bottom: 40px;
    }


    .nscare-side-nav {
        position: static;

        margin-bottom: 20px;

        border-radius: 14px;
    }


    .nscare-side-brand {
        display: none;
    }


    .nscare-side-section {
        padding: 11px 12px;

        border-bottom: 1px solid #edf1ef;
    }


    .nscare-side-section-head {
        padding: 0 2px 8px;
    }


    .nscare-side-section-head span {
        display: none;
    }


    .nscare-side-service-nav,
    .nscare-side-content-nav,
    .nscare-side-lounge-nav {
        flex-direction: row;

        gap: 7px;

        overflow-x: auto;

        padding-bottom: 2px;

        scrollbar-width: none;
    }


    .nscare-side-service-nav::-webkit-scrollbar,
    .nscare-side-content-nav::-webkit-scrollbar,
    .nscare-side-lounge-nav::-webkit-scrollbar {
        display: none;
    }


    .nscare-side-link {
        flex: 0 0 auto;

        min-height: 33px;

        padding: 0 12px;

        border: 1px solid #e3e9e5;
        border-radius: 999px;

        background: #fff;

        white-space: nowrap;
    }


    .nscare-side-link em {
        display: none;
    }


    .nscare-side-link.is-active {
        border-color: #16a05d;

        background: #16a05d;

        color: #fff !important;
    }


    .nscare-side-link.is-active::before {
        display: none;
    }


    .nscare-side-guide {
        display: none;
    }

}


/* =====================================================
   600 이하
===================================================== */

@media (max-width: 600px) {

    .nscare-board-shell {
        width: calc(100% - 28px);

        margin-top: 18px;
    }


    .nscare-side-section {
        padding-right: 10px;
        padding-left: 10px;
    }


    .nscare-side-section-head strong {
        font-size: 11px;
    }


    .nscare-side-link {
        min-height: 32px;

        padding: 0 11px;

        font-size: 10px;
    }

}