/* Fixed space prevents the page from jumping as the header compacts. */
@media (min-width: 769px) {
    html body, html body.cc-scroll, html body.seton-scrolled { padding-top: 0 !important; }
    html body .cc-layout[data-seton-content-width] {
        --seton-header-width: 80%;
        --seton-header-height: 166px;
        --seton-header-row: 96px;
        --seton-header-nav-y: 96px;
        --seton-header-nav-height: 70px;
        --seton-header-logo-height: 60px;
        --seton-header-logo-space: 0px;
        padding-top: 166px !important;
    }
    html body.seton-scrolled .cc-layout[data-seton-content-width] {
        --seton-header-height: 72px;
        --seton-header-row: 72px;
        --seton-header-nav-y: 0px;
        --seton-header-nav-height: 72px;
        --seton-header-logo-height: 44px;
        --seton-header-logo-space: 230px;
    }
    html body .cc-layout[data-seton-content-width] .cc-header {
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        width: 100% !important;
        height: var(--seton-header-height) !important;
        min-height: 0 !important; max-height: none !important;
        margin: 0 !important; padding: 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #eee4df !important;
        overflow: visible !important;
        z-index: 9000 !important;
        transition: height .32s ease, box-shadow .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-header-inner {
        position: absolute !important; top: 0 !important; left: 50% !important;
        transform: translateX(-50%) !important;
        width: var(--seton-header-width) !important; max-width: 1480px !important;
        height: var(--seton-header-row) !important;
        min-height: 0 !important; max-height: none !important;
        display: flex !important; align-items: center !important; justify-content: space-between !important;
        margin: 0 !important; padding: 0 !important; gap: 20px !important;
        overflow: visible !important; background: transparent !important;
        pointer-events: none !important; z-index: 9100 !important;
        transition: height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-logo,
    html body .cc-layout[data-seton-content-width] .cc-logo > a {
        display: flex !important; align-items: center !important;
        height: var(--seton-header-row) !important;
        min-height: 0 !important; max-height: none !important; min-width: 0 !important;
        margin: 0 !important; padding: 0 !important;
        pointer-events: auto !important;
        transition: height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-logo img {
        height: var(--seton-header-logo-height) !important;
        width: auto !important; max-width: none !important; max-height: none !important;
        object-fit: contain !important;
        transition: height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-account { pointer-events: auto !important; }
    html body .cc-layout[data-seton-content-width] .cc-gnb {
        position: absolute !important; top: var(--seton-header-nav-y) !important;
        left: 0 !important; right: 0 !important; width: 100% !important;
        height: var(--seton-header-nav-height) !important;
        min-height: 0 !important; max-height: none !important;
        margin: 0 !important; padding: 0 !important;
        overflow: visible !important; z-index: 9050 !important;
        transition: top .32s ease, height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-gnb-inner {
        width: var(--seton-header-width) !important; max-width: 1480px !important;
        height: var(--seton-header-nav-height) !important;
        min-height: 0 !important; max-height: none !important; box-sizing: border-box !important;
        background: transparent !important;
        margin: 0 auto !important; padding: 0 !important;
        transition: height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-gnb > div > ul {
        display: flex !important;
        width: calc(100% - var(--seton-header-logo-space)) !important;
        margin: 0 0 0 var(--seton-header-logo-space) !important;
        height: var(--seton-header-nav-height) !important;
        min-height: 0 !important; max-height: none !important; box-sizing: border-box !important;
        background: transparent !important;
        transition: width .24s ease .08s, margin-left .24s ease .08s, height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-gnb > div > ul > li {
        flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
        height: var(--seton-header-nav-height) !important;
        min-height: 0 !important; max-height: none !important;
        transition: height .32s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-gnb > div > ul > li > a {
        height: var(--seton-header-nav-height) !important;
        min-height: 0 !important; max-height: none !important;
        padding: 0 8px !important;
        transition: height .32s ease, color .2s ease !important;
    }
    html body .cc-layout[data-seton-content-width] .cc-gnb > div > ul > li > ul { top: var(--seton-header-nav-height) !important; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    html body .cc-layout[data-seton-content-width] { --seton-header-width: 92%; }
    html body.seton-scrolled .cc-layout[data-seton-content-width] { --seton-header-logo-space: 190px; --seton-header-logo-height: 38px; }
    html body.seton-scrolled .cc-layout[data-seton-content-width] .cc-gnb > div > ul > li > a { font-size: 14px !important; padding: 0 3px !important; }
}
/* Keep the full English footer name in normal flow on small screens. */
@media (max-width: 768px) {
    html body footer.cc-footer { padding-bottom: 28px !important; }
    html body footer.cc-footer::after {
        display: block !important;
        position: static !important; inset: auto !important;
        width: calc(92% - 100px) !important; max-width: 100% !important; height: auto !important;
        margin: 24px 0 0 4% !important; padding: 0 !important;
        transform: none !important; text-indent: 0 !important;
        font-size: 14px !important; line-height: 1.7 !important; letter-spacing: .04em !important;
        white-space: normal !important; overflow-wrap: anywhere !important;
        text-align: left !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    html body .cc-layout[data-seton-content-width] .cc-header,
    html body .cc-layout[data-seton-content-width] .cc-header * { transition: none !important; }
}

@media (max-width: 768px) {
    html body footer.cc-footer .cc-footer-inner { display: block !important; }
    html body footer.cc-footer .cc-footer-menu ul { display: flex !important; flex-wrap: wrap !important; gap: 8px 14px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
    html body footer.cc-footer .cc-footer-menu li { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; }
    html body footer.cc-footer .cc-footer-info,
    html body footer.cc-footer .cc-copyright { display: block !important; width: 100% !important; box-sizing: border-box !important; padding-right: 100px !important; white-space: normal !important; overflow-wrap: anywhere !important; }
}

@media (min-width: 769px) {
    html body.seton-scrolled .cc-layout[data-seton-content-width] .cc-gnb { transition: top .24s ease .08s, height .32s ease !important; }
    html body.seton-scrolled .cc-layout[data-seton-content-width] .cc-gnb > div > ul { transition: width .24s ease, margin-left .24s ease, height .32s ease !important; }
}
