@import url('https://cdn.jsdelivr.net/gh/wanteddev/wanted-sans@v1.0.1/packages/wanted-sans/fonts/webfonts/variable/split/WantedSansVariable.min.css');

:root {
    --global-header-height: 72px;
    --global-max-width: 1120px;
    --global-surface: #ffffff;
    --global-text: #1f2937;
    --global-muted: #667085;
    --global-line: #e5e7eb;
    --global-primary: #2457a7;
    --global-primary-soft: #edf4ff;
    --global-footer: #162235;
    --global-focus: #7aa7ff;
    --global-font-family:
        "Wanted Sans Variable",
        "Wanted Sans",
        Pretendard,
        "Malgun Gothic",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    color: var(--global-text);
    font-family: var(--global-font-family);
}

main {
    flex: 1 0 auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.global-header {
    position: relative;
    z-index: 900;
    width: 100%;
    border-bottom: 1px solid var(--global-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px);
}

.global-header__inner {
    display: flex;
    width: min(100% - 40px, var(--global-max-width));
    min-height: var(--global-header-height);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
}

.global-brand {
    display: inline-flex;
    align-items: center;
    color: #172b4d;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.global-brand::before {
    width: 10px;
    height: 10px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--global-primary);
    box-shadow: 7px -5px 0 #d97706;
    content: '';
}

.global-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.global-nav__link {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    color: #475467;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.global-nav__link:hover {
    background: #f5f7fa;
    color: var(--global-primary);
}

.global-nav__link.is-current {
    background: var(--global-primary-soft);
    color: var(--global-primary);
}

.global-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    background: #ffffff;
    color: var(--global-text);
    cursor: pointer;
}

.global-menu-toggle__line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.global-menu-toggle[aria-expanded="true"] .global-menu-toggle__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.global-menu-toggle[aria-expanded="true"] .global-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.global-menu-toggle[aria-expanded="true"] .global-menu-toggle__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.global-footer {
    width: 100%;
    flex: 0 0 auto;
    margin-top: auto;
    background: var(--global-footer);
    color: #d7deea;
}

.global-footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(100% - 40px, var(--global-max-width));
    min-height: 116px;
    margin: 0 auto;
    padding: 24px 0;
}

.global-footer__brand {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
}

.global-footer__copy {
    margin: 0;
    color: #aeb9ca;
    font-size: 13px;
    text-align: center;
}

.global-footer__nav {
    display: flex;
    gap: 16px;
}

.global-footer__nav a {
    color: #d7deea;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.global-footer__nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 760px) {
    :root {
        --global-header-height: 64px;
    }

    .global-header__inner {
        width: min(100% - 28px, var(--global-max-width));
    }

    .global-brand {
        font-size: 20px;
    }

    .global-menu-toggle {
        display: inline-flex;
    }

    .global-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: none;
        padding: 10px;
        border: 1px solid var(--global-line);
        border-radius: 0 0 16px 16px;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

    .global-header.is-menu-open .global-nav {
        display: grid;
        gap: 4px;
    }

    .global-nav__link {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 0 15px;
    }

    .global-nav__link.is-current::after {
        color: var(--global-primary);
        content: '현재';
        font-size: 11px;
    }

    .global-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        width: min(100% - 28px, var(--global-max-width));
        min-height: 0;
        padding: 30px 0;
        text-align: center;
    }

    .global-footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
