@font-face {
    font-family: "Pretendard";
    src: url("../../font/pretendard/Pretendard-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Pretendard";
    src: url("../../font/pretendard/Pretendard-Bold.ttf") format("truetype");
    font-weight: 700 900;
    font-style: normal;
    font-display: block;
}

html {
    min-height: 100%;
    overflow-y: scroll;
}

body.app-shell-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    margin: 0;
    padding: 0;
}

body.app-shell-page > .app-header {
    flex: 0 0 auto;
}

body.app-shell-page > main {
    flex: 1 0 auto;
    min-width: 0;
}

body.app-shell-page > .app-footer {
    flex: 0 0 auto;

    margin-top: auto;
}

.app-header,
.app-footer {
    box-sizing: border-box;

    font-family:
            "Pretendard",
            "Apple SD Gothic Neo",
            Arial,
            sans-serif;
}

.unified-page-title {
    margin: 0 0 16px;
    color: #151922;
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: normal;
}

.unified-page-header {
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
    color: #151922;
}

.unified-page-header > h1,
.unified-page-header .unified-page-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: normal;
    color: #151922;
}

body.app-shell-page,
body.app-shell-page main,
body.app-shell-page button,
body.app-shell-page input,
body.app-shell-page select,
body.app-shell-page textarea {
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
}

/* 페이지별 컴포넌트가 다른 한글 폰트로 덮어쓰지 않도록 공통 폰트를 고정한다. */
body.app-shell-page main,
body.app-shell-page main * {
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif !important;
}

body.app-shell-page * {
    font-family: "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif !important;
}

.app-header *,
.app-footer * {
    box-sizing: border-box;
}

.app-header a,
.app-footer a {
    color: inherit;
    text-decoration: none;
}

.app-header {
    position: relative;
    z-index: 50;

    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 24px;

    padding: 0 48px;

    background: #ffffff;

    border-bottom: 1px solid #d9dee8;
}

.app-brand {
    min-width: 160px;

    margin-left: 202px;

    display: flex;
    align-items: center;

    gap: 10px;

    color: #151922;

    font-weight: 800;
}

.app-brand__mark {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border-radius: 8px;

    background: #0f8a5f;
    color: #ffffff;

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

.app-brand__logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex: 0 0 auto;
}

.app-brand__name {
    color: #151922;

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

    white-space: nowrap;
}
.app-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;

    gap: 30px;

    color: #667085;

    font-size: 17px;
    font-weight: 700;

    margin-left: 0;
}

.app-nav__link {
    position: relative;

    height: 80px;

    display: inline-flex;
    align-items: center;

    padding: 0;

    border-bottom: 2px solid transparent;

    color: #667085;

    white-space: nowrap;

    transition:
            color 0.18s ease,
            border-color 0.18s ease;
}

.app-nav__link:hover {
    color: #151922;
}

.app-nav__link.is-active {
    color: #0f8a5f;

    border-bottom-color: #0f8a5f;
}

.app-header-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-right: 202px;
    margin-left: auto;
}


.app-icon-button {
    width: 54px;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: inherit;

    font-size: 24px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;

    transition:
            background-color 0.18s ease,
            transform 0.18s ease;
}

.app-icon-button img {
    width: 34px;
    height: 34px;
    display: block;
}

.app-icon-button:hover,
.app-header-profile:hover {
    background: #f2f2f2;
}

.app-icon-button:active {
    transform: translateY(1px);
}

.app-header-profile {
    width: 54px;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}
.app-footer {
    width: 100%;
    min-height: 120px;

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

    gap: 24px;

    padding: 24px 48px;

    background: #1f2937;
    color: #ffffff;
}

.app-footer strong {
    display: block;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;
}

.app-footer p {
    margin: 8px 0 0;

    color: #cfd6e3;

    font-size: 13px;
    line-height: 1.6;
}

.app-footer nav {
    display: flex;
    align-items: center;

    gap: 18px;

    color: #dce3ef;

    font-size: 13px;
    font-weight: 700;
}

.app-footer nav a {
    color: #dce3ef;

    transition: color 0.18s ease;
}

.app-footer nav a:hover {
    color: #ffffff;
}

@media (max-width: 1180px) {

    .app-header,
    .app-footer {
        padding-left: 28px;
        padding-right: 28px;
    }

    .app-nav {
        gap: 20px;
    }

    .app-brand {
        min-width: auto;
    }
}

@media (max-width: 760px) {
    .app-brand {
        margin-left: 0;
    }

    .app-nav {
        position: static;
        width: 100%;
        transform: none;
    }

    .app-header-actions {
        margin-right: 0;
    }

    .app-header {
        height: auto;

        flex-wrap: wrap;

        gap: 14px;

        padding-top: 16px;
        padding-bottom: 16px;
    }

    .app-brand {
        min-width: 0;
    }

    .app-header-actions {
        margin-left: auto;
    }

    .app-nav {
        order: 3;

        width: 100%;

        justify-content: flex-start;

        gap: 22px;

        overflow-x: auto;

        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }

    .app-nav__link {
        height: auto;

        flex: 0 0 auto;

        padding: 12px 0;

    white-space: nowrap;

    gap: 8px;
}

    .app-footer {
        min-height: 0;

        align-items: flex-start;
        flex-direction: column;

        padding-top: 28px;
        padding-bottom: 28px;
    }

    .app-footer nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    .app-header,
    .app-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .app-brand__name {
        font-size: 17px;
    }

    .app-nav {
        gap: 18px;

        font-size: 13px;
    }

    .app-footer nav {
        gap: 12px;

        font-size: 12px;
    }
}

.app-header-profile img {
    width: 34px;
    height: 34px;
    display: block;
}

.guest-header-login {
    flex: 0 0 100px;
    width: 100px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #0f8a5f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
