@charset "utf-8";

/**
 * [구역] 상단 헤더 — #header.syou-site-header
 * 로고: 프레임 좌측 · 200×52 (PC) · 햄버거 우측 절대배치
 */
html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-height: 56px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    text-align: left !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .syou-site-header__brand {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    order: 1 !important;
    z-index: 20 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 4px 10px var(--syou-frame-pad-x, 20px) !important;
    box-sizing: border-box !important;
    transform: none !important;
    float: none !important;
    overflow: visible !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster {
    order: 2 !important;
    flex: 0 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    min-width: 0 !important;
    margin: 0 0 0 auto !important;
    padding: 8px var(--syou-frame-pad-x, 20px) 8px 4px !important;
    box-sizing: border-box !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__brand-sub {
    position: relative !important;
    z-index: 26 !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 0 0 -6px !important;
    padding: 0 !important;
    pointer-events: auto !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    overflow: visible !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__logo-img {
    display: block !important;
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    max-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    float: none !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-site-header__actions {
    flex: 0 0 auto !important;
    display: none !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 24 !important;
    align-items: center !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid var(--syou-primary, #c49a6b) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--syou-primary, #c49a6b) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__login:hover,
html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__login:focus {
    background: var(--syou-primary-light, #faf6f1) !important;
    color: var(--syou-primary, #c49a6b) !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__auth {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: 100% !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__user-id {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    max-width: 120px !important;
    padding: 0 12px !important;
    border: 1px solid var(--syou-primary, #c49a6b) !important;
    border-radius: 8px !important;
    background: var(--syou-primary-light, #faf6f1) !important;
    color: var(--syou-primary, #c49a6b) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__logout {
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #666 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__logout:hover,
html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__logout:focus {
    color: #333 !important;
    text-decoration: underline !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-mobile-bar {
    flex: 0 0 auto !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 25 !important;
}

/* PC(741px+): 헤더 우측 로그인 · 햄버거 숨김 */
@media (min-width: 741px) {
    html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-site-header__actions {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* 넓은 PC(741px+): 좌측 사이드바 사용 → 햄버거 숨김 */
@media (min-width: 741px) {
    html.syou-root body.syou-layout.is-pc-shell:not(.is-mobile-view) .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-mobile-bar {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* 모바일·740px 이하: 로그인 시 우측 상단에 아이디 표시 */
@media (max-width: 740px) {
    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header.is-logged-in > .syou-site-header__cluster > .syou-site-header__actions {
        display: flex !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-width: 120px !important;
    }

    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header.is-logged-in .syou-site-header__logout {
        display: none !important;
    }
}

/* 모바일·740px 이하: 우측 상단 햄버거 */
@media (max-width: 740px) {
    html.syou-root body.syou-layout.is-pc-shell .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-mobile-bar,
    html.syou-root body.syou-layout.is-pc-shell.is-mobile-view .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-mobile-bar,
    html.syou-root body.syou-layout.is-mobile-full .mobile-frame__inner header#header.syou-site-header > .syou-site-header__cluster > .syou-mobile-bar {
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 0 !important;
    }

    html.syou-root body.syou-layout.is-pc-shell .mobile-frame__inner header#header.syou-site-header .syou-mobile-bar__menu {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .syou-site-header__brand {
        gap: 8px !important;
        padding-right: 0 !important;
    }

    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__brand-sub {
        margin-left: 0 !important;
    }

    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-site-header__logo-img {
        max-width: min(148px, 36vw) !important;
        width: auto !important;
    }

    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-family-sites--subtitle .syou-family-sites__toggle {
        min-height: 29px !important;
        padding: 3px 8px !important;
        font-size: 13px !important;
    }

    html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header .syou-family-sites--subtitle .syou-family-sites__label {
        max-width: 7.8em !important;
    }
}

html.syou-root body.syou-layout.is-pc-shell.is-mobile-view .mobile-frame__inner header#header.syou-site-header .syou-site-header__logo-img,
html.syou-root body.syou-layout.is-mobile-full .mobile-frame__inner header#header.syou-site-header .syou-site-header__logo-img {
    width: auto !important;
    max-width: min(200px, 100%) !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .gnb {
    display: none !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > .accessibility {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* 팝업레이어(#hd_pop) — flex 흐름 제외, 빈 영역은 클릭 통과(헤더 버튼 차단 방지) */
html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > #hd_pop {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

html.syou-root body.syou-layout .mobile-frame__inner header#header.syou-site-header > #hd_pop .hd_pops {
    pointer-events: auto !important;
}
