﻿@charset "UTF-8";

/* 역할별 계정 메뉴 */
.site-header{
    overflow:visible;
}

.account-menu-main-nav{
    flex:1 1 auto;
    justify-content:center;
    gap:24px;
}

.account-header-actions{
    flex:0 0 auto;
}

.account-login-button{
    display:inline-flex;
    min-height:36px;
    align-items:center;
    justify-content:center;
    padding:0 12px;
    border:1px solid #dcdfe7;
    border-radius:8px;
    color:#252b36;
    background:#fff;
    font-size:12px;
    font-weight:750;
    white-space:nowrap;
}

.account-menu-trigger{
    display:flex;
    min-height:42px;
    align-items:center;
    gap:8px;
    padding:4px 9px 4px 5px;
    border:1px solid #dfe3ea;
    border-radius:999px;
    color:#252b36;
    background:#fff;
    box-shadow:0 4px 12px rgba(26,36,68,.08);
    cursor:pointer;
}

.account-menu-trigger:hover,
.account-menu-trigger[aria-expanded="true"]{
    border-color:#bfc4eb;
    background:#fafaff;
}

.account-menu-trigger__avatar,
.account-menu-profile__avatar{
    display:grid;
    flex:0 0 auto;
    place-items:center;
    box-sizing:border-box;
    border-radius:50%;
    color:#303746;
    background:#f2f1ff;
}

.account-menu-trigger__avatar{
    width:32px;
    height:32px;
}

.account-menu-trigger__avatar svg{
    width:22px;
    height:22px;
}

.account-menu-trigger__text{
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.2;
}

.account-menu-trigger__text strong{
    max-width:100px;
    overflow:hidden;
    font-size:11px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.account-menu-trigger__text small{
    margin-top:2px;
    color:#7e8694;
    font-size:9px;
}

.account-menu-trigger__chevron{
    width:15px;
    height:15px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:transform .18s ease;
}

.account-menu-trigger[aria-expanded="true"]
.account-menu-trigger__chevron{
    transform:rotate(180deg);
}

.account-menu-trigger--guest{
    min-width:49px;
    justify-content:center;
    padding-right:6px;
}

.account-menu-backdrop{
    position:fixed;
    z-index:1190;
    inset:0;
    background:rgba(19,25,38,.26);
    opacity:0;
    transition:opacity .18s ease;
}

.account-menu-backdrop.is-open{
    opacity:1;
}

.account-menu-panel{
    position:absolute;
    z-index:1200;
    top:calc(100% + 8px);
    right:max(20px,calc((100vw - 1180px)/2));
    width:340px;
    max-height:calc(100vh - 86px);
    overflow:hidden auto;
    border:1px solid #dfe3ea;
    border-radius:15px;
    background:#fff;
    box-shadow:0 18px 48px rgba(26,35,65,.20);
    opacity:0;
    transform:translateY(-8px) scale(.985);
    transform-origin:top right;
    transition:
        opacity .18s ease,
        transform .18s ease;
}

.account-menu-panel.is-open{
    opacity:1;
    transform:translateY(0) scale(1);
}

.account-menu-panel__mobile-head{
    display:none;
}

.account-menu-profile{
    display:flex;
    align-items:center;
    gap:12px;
    padding:18px;
    border-bottom:1px solid #eceef3;
    background:linear-gradient(135deg,#fafaff,#f7f8ff);
}

.account-menu-profile__avatar{
    display:flex;
    flex:0 0 46px;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    overflow:hidden;
    border-radius:50%;
    color:#fff;
    background:#5b5bd6;
}

.account-menu-profile__avatar svg{
    display:block;
    flex:0 0 auto;
    width:24px;
    height:24px;
    margin:0;
	color:#fff;
    transform:translateY(10px);
}

.account-menu-profile div{
    min-width:0;
}

.account-menu-profile strong,
.account-menu-profile span{
    display:block;
}

.account-menu-profile strong{
    overflow:hidden;
    color:#202631;
    font-size:14px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.account-menu-profile span{
    margin-top:3px;
    color:#747d8b;
    font-size:10px;
}

.account-menu-profile--guest span{
    line-height:1.45;
}

.account-menu-quick{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:13px 16px;
    border-bottom:1px solid #eceef3;
}

.account-menu-quick a{
    display:flex;
    min-height:39px;
    align-items:center;
    justify-content:center;
    border:1px solid #dfe3ea;
    border-radius:9px;
    color:#444d5b;
    background:#fff;
    font-size:11px;
    font-weight:800;
}

.account-menu-quick a.is-primary{
    color:#fff;
    border-color:#5b5bd6;
    background:#5b5bd6;
}

.account-menu-group{
    padding:12px 0;
    border-bottom:1px solid #eceef3;
}

.account-menu-group h2{
    margin:0;
    padding:0 18px 6px;
    color:#969daa;
    font-size:9px;
    font-weight:850;
    letter-spacing:.11em;
}

.account-menu-group>a{
    display:flex;
    min-height:39px;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:0 18px;
    color:#303744;
    font-size:12px;
    font-weight:650;
}

.account-menu-group>a:hover{
    color:#4d4bc9;
    background:#f7f7fe;
}

.account-menu-group>a em{
    color:#a5acb8;
    font-size:18px;
    font-style:normal;
    font-weight:400;
}

.account-menu-footer{
    padding:12px 16px 15px;
}

.account-menu-footer a{
    display:flex;
    min-height:40px;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    color:#b64040;
    background:#fff3f3;
    font-size:11px;
    font-weight:800;
}

@media(max-width:1120px){
    .account-menu-main-nav{
        gap:18px;
        font-size:13px;
    }

    .account-menu-trigger__text small{
        display:none;
    }
}

@media(max-width:980px){
    .account-menu-main-nav{
        display:none;
    }

    .mobile-menu-button{
        display:block;
    }
}

@media(min-width:761px){
    .account-menu-backdrop{
        background:transparent;
        pointer-events:none;
    }
}

@media(max-width:760px){
    body.account-menu-open{
        overflow:hidden;
    }

    .account-login-button{
        min-height:34px;
        padding:0 9px;
        font-size:10px;
    }

    .account-menu-trigger{
        min-height:38px;
        padding:3px 5px;
    }

    .account-menu-trigger__avatar{
        width:30px;
        height:30px;
    }

    .account-menu-trigger__text,
    .account-menu-trigger__chevron{
        display:none;
    }

    .account-menu-trigger--guest{
        min-width:38px;
    }

    .account-header-actions{
        gap:5px;
    }

    .account-menu-backdrop{
        z-index:1390;
        background:rgba(18,24,37,.46);
    }

    .account-menu-panel{
        position:fixed;
        z-index:1400;
        top:0;
        right:0;
        width:min(88vw,370px);
        max-height:none;
        height:100dvh;
        border:0;
        border-radius:0;
        box-shadow:-12px 0 38px rgba(20,27,47,.23);
        opacity:1;
        transform:translateX(105%);
        transform-origin:center;
        transition:transform .22s ease;
    }

    .account-menu-panel.is-open{
        transform:translateX(0);
    }

    .account-menu-panel__mobile-head{
        position:sticky;
        z-index:2;
        top:0;
        display:flex;
        min-height:56px;
        align-items:center;
        justify-content:space-between;
        padding:0 16px;
        border-bottom:1px solid #e9ecf1;
        background:#fff;
    }

    .account-menu-panel__mobile-head strong{
        font-size:14px;
    }

    .account-menu-panel__mobile-head button{
        width:34px;
        height:34px;
        border:0;
        border-radius:50%;
        color:#586171;
        background:#f1f3f6;
        font-size:23px;
        line-height:1;
        cursor:pointer;
    }

    .account-menu-profile{
        padding:16px;
    }

    .account-menu-group>a{
        min-height:44px;
        font-size:13px;
    }

    .account-menu-quick a{
        min-height:42px;
        font-size:12px;
    }

    .mobile-menu{
        z-index:1100;
    }
}

@media(max-width:390px){
    .site-logo__text{
        display:none;
    }
}


/* =========================================================
   MOBILE HAMBURGER BUTTON
   ========================================================= */

.mobile-menu-button{
    display:none;
    width:40px;
    height:40px;
    flex:0 0 40px;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid #dfe3ea;
    border-radius:12px;
    color:#303746;
    background:#fff;
    box-shadow:0 4px 12px rgba(26,36,68,.08);
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.mobile-menu-button:hover{
    border-color:#c7ccec;
    background:#fafaff;
}

.mobile-menu-button:active{
    transform:scale(.96);
}

.mobile-menu-button:focus-visible{
    outline:3px solid rgba(91,91,214,.18);
    outline-offset:2px;
}

.mobile-menu-button span{
    position:absolute;
    display:block;
    width:18px;
    height:2px;
    margin:0;
    border-radius:999px;
    background:currentColor;
    transform-origin:center;
    transition:
        transform .20s ease,
        opacity .16s ease;
}

.mobile-menu-button span:nth-child(1){
    transform:translateY(-6px);
}

.mobile-menu-button span:nth-child(2){
    transform:translateY(0);
}

.mobile-menu-button span:nth-child(3){
    transform:translateY(6px);
}

.mobile-menu-button[aria-expanded="true"]{
    color:#fff;
    border-color:#5b5bd6;
    background:#5b5bd6;
    box-shadow:0 6px 16px rgba(91,91,214,.24);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(1){
    transform:rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(2){
    opacity:0;
    transform:scaleX(0);
}

.mobile-menu-button[aria-expanded="true"] span:nth-child(3){
    transform:rotate(-45deg);
}

@media(max-width:980px){
    .site-header__inner{
        gap:10px;
    }

    .site-logo{
        min-width:0;
    }

    .site-logo__text{
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }

    .account-header-actions{
        flex:0 0 auto;
        gap:7px;
        margin-left:auto;
    }

    .mobile-menu-button{
        position:relative;
        display:inline-flex;
    }
}

@media(max-width:760px){
    .mobile-menu-button{
        width:38px;
        height:38px;
        flex-basis:38px;
        border-radius:11px;
    }

    .mobile-menu-button span{
        width:17px;
    }

    .account-header-actions{
        gap:6px;
    }
}

@media(max-width:430px){
    .account-login-button{
        min-height:32px;
        padding:0 8px;
        font-size:9px;
    }

    .account-menu-trigger{
        width:36px;
        min-width:36px;
        height:36px;
        min-height:36px;
        padding:2px;
    }

    .account-menu-trigger__avatar{
        width:28px;
        height:28px;
    }

    .mobile-menu-button{
        width:36px;
        height:36px;
        flex-basis:36px;
        border-radius:10px;
    }
}


/* =========================================================
   MOBILE MAIN MENU BODY PORTAL
   ========================================================= */

.mobile-menu[hidden]{
    display:none!important;
}

@media(max-width:980px){
    body.menu-open{
        overflow:hidden!important;
        touch-action:none;
    }

    body>.mobile-menu:not([hidden]){
        position:fixed!important;
        z-index:5000!important;
        top:var(--ds-mobile-menu-top,64px)!important;
        right:0!important;
        bottom:auto!important;
        left:0!important;
        display:block!important;
        box-sizing:border-box!important;
        width:100vw!important;
        min-width:0!important;
        max-width:none!important;
        height:calc(100dvh - var(--ds-mobile-menu-top,64px))!important;
        min-height:240px!important;
        max-height:none!important;
        margin:0!important;
        padding:10px 18px 30px!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
        border:0!important;
        border-top:1px solid #e5e8ee!important;
        border-radius:0!important;
        color:#252b36!important;
        background:#fff!important;
        box-shadow:0 18px 36px rgba(22,30,54,.17)!important;
        opacity:1!important;
        visibility:visible!important;
        transform:none!important;
        clip:auto!important;
        clip-path:none!important;
        contain:none!important;
        backdrop-filter:none!important;
        -webkit-backdrop-filter:none!important;
    }

    body>.mobile-menu:not([hidden])::before{
        content:"주요 메뉴";
        display:block!important;
        box-sizing:border-box;
        min-height:34px;
        padding:7px 5px 10px;
        color:#9299a6;
        background:#fff;
        font-size:10px;
        font-weight:900;
        line-height:1.4;
        letter-spacing:.08em;
    }

    body>.mobile-menu:not([hidden]) a{
        display:flex!important;
        min-height:52px!important;
        align-items:center!important;
        justify-content:space-between!important;
        box-sizing:border-box!important;
        width:100%!important;
        margin:0!important;
        padding:0 14px!important;
        border:0!important;
        border-bottom:1px solid #eceef3!important;
        border-radius:0!important;
        color:#29303c!important;
        background:#fff!important;
        font-size:14px!important;
        font-weight:850!important;
        line-height:1.35!important;
        opacity:1!important;
        visibility:visible!important;
        text-decoration:none!important;
        transform:none!important;
    }

    body>.mobile-menu:not([hidden]) a::after{
        content:"›";
        display:block;
        flex:0 0 auto;
        margin-left:12px;
        color:#a1a8b4;
        font-size:21px;
        font-weight:400;
        line-height:1;
    }

    body>.mobile-menu:not([hidden]) a:hover,
    body>.mobile-menu:not([hidden]) a:active{
        color:#4f4fc8!important;
        background:#f7f7ff!important;
    }
}

@media(max-width:760px){
    body>.mobile-menu:not([hidden]){
        height:calc(
            100dvh -
            var(--ds-mobile-menu-top,64px) -
            68px
        )!important;
        min-height:210px!important;
        padding:8px 12px 24px!important;
    }

    body>.mobile-menu:not([hidden]) a{
        min-height:50px!important;
        padding:0 12px!important;
        font-size:13px!important;
    }
}

@media(max-width:430px){
    body>.mobile-menu:not([hidden]){
        padding-right:9px!important;
        padding-left:9px!important;
    }
}
