@font-face {
    font-family: "Pretendard Variable";
    src: url("../fonts/PretendardVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Sejong Classic";
    src: url("../fonts/SCENBasicClassic-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Sejong Modern";
    src: url("../fonts/SCENBasicModern-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
:root {
    --black: rgb(0, 0, 0);
    --ink: rgb(0, 0, 0);
    --muted: rgb(101, 101, 101);
    --yellow: rgb(255, 232, 0);
    --sky: rgb(84, 200, 232);
    --earth: rgb(195, 109, 21);
    --paper: rgb(255, 255, 255);
    --soft: rgb(247, 247, 247);
    --line: rgb(220, 220, 220);
    --radius: 16px;
    --max: 1520px;
    --header: 104px;
    --font-title: "Sejong Classic", Georgia, serif;
    --font-brand: "Pretendard Variable", sans-serif;
    --font-ui: "Pretendard Variable", sans-serif;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
}
body.is-locked {
    overflow: hidden;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
h1,
h2,
h3,
h4,
p {
    margin: 0;
}
h1,
h2,
h3 {
    line-height: 1.25;
}
ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
button {
    border: 0;
    background: none;
}
button:disabled {
    cursor: default;
    opacity: 0.4;
}
[hidden] {
    display: none !important;
}
:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 5px;
}
::selection {
    background: var(--yellow);
    color: rgb(0, 0, 0);
}
.container {
    width: min(var(--max), calc(100% - 96px));
    margin-inline: auto;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    top: -80px;
    left: 20px;
    padding: 12px 24px;
    background: var(--yellow);
    color: rgb(0, 0, 0);
}
.skip-link:focus {
    top: 12px;
}
.icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    transition:
        background 0.2s,
        transform 0.2s;
}
.icon-button:hover {
    background: var(--yellow);
    color: rgb(0, 0, 0);
    transform: translateY(-2px);
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    min-height: 48px;
    padding: 12px 23px;
    border: 1px solid currentColor;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    transition:
        background 0.2s,
        transform 0.2s;
}
.button:hover {
    transform: translateY(-2px);
}
.button--dark {
    background: rgb(17, 17, 17);
    color: rgb(255, 255, 255);
    border-color: rgb(17, 17, 17);
}
.button--yellow {
    background: var(--yellow);
    color: rgb(0, 0, 0);
    border-color: var(--yellow);
}
.button--white {
    background: rgb(255, 255, 255);
    color: rgb(17, 17, 17);
    border-color: rgb(255, 255, 255);
}
.button--ghost {
    color: inherit;
    border-color: rgb(255 255 255 / 0.4784);
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.eyebrow {
    font-size: 14px;
    font-weight: 700;
}
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}
.section-heading h2 {
    font: 40px/1.25 var(--font-title);
    letter-spacing: -0.035em;
}
.section-heading .eyebrow {
    margin-bottom: 15px;
}
.section-heading p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
}
.pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 5px 13px;
    font-size: 14px;
    line-height: 1.6;
}
.pill--yellow {
    background: var(--yellow);
    border-color: var(--yellow);
    color: rgb(0, 0, 0);
}
.empty-state {
    padding: 48px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
    grid-column: 1/-1;
}
.empty-state strong {
    display: block;
    margin-bottom: 12px;
    color: var(--ink);
}
/* Shared navigation */
.site-header {
    position: relative;
    z-index: 50;
    background: rgb(255, 255, 255);
}
.utility-bar {
    height: 30px;
    border-bottom: 1px solid rgb(238, 238, 238);
    font-size: 14px;
    color: rgb(116, 116, 116);
    letter-spacing: 0.02em;
}
.utility-bar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
.utility-bar .utility-links {
    display: flex;
    gap: 18px;
}
.main-nav {
    height: 90px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.brand {
    width: 207px;
    display: inline-flex;
    align-items: center;
    margin-right: auto;
}
.brand img {
    width: 207px;
    height: auto;
}
.nav-items {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 39px;
}
.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-item > button {
    height: 100%;
    padding: 0;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    white-space: nowrap;
}
.nav-item > button:after {
    content: "";
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform 0.2s;
}
.nav-item > button[aria-expanded="true"]:after {
    transform: scaleX(1);
}
.nav-tools {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-left: 35px;
}
.nav-tools .icon-button {
    border: 0;
    width: 34px;
    height: 40px;
    border-radius: 6px;
}
.lang-link {
    font-size: 14px;
    font-weight: 700;
    margin-right: 8px;
}
.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 120px;
    background: rgb(255, 255, 255);
    border-top: 1px solid rgb(238, 238, 238);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgb(0 0 0 / 0.051);
    padding: 35px 0 42px;
}
.mega-inner {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
}
.mega-intro h2 {
    font-family: var(--font-title);
    font-size: 31px;
}
.mega-intro p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
    max-width: 250px;
}
.mega-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 36px;
}
.mega-links a {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgb(231, 231, 231);
    font-size: 14px;
}
.mega-links a:hover {
    color: var(--black);
    text-decoration: underline;
}
.search-dialog,
.menu-dialog {
    border: 0;
    max-width: 100%;
    color: var(--ink);
    padding: 0;
}
.search-dialog {
    width: min(800px, calc(100% - 32px));
    border-radius: 18px;
    padding: 40px;
}
.search-dialog::backdrop,
.menu-dialog::backdrop {
    background: rgb(0 0 0 / 0.6);
    backdrop-filter: blur(5px);
}
.dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}
.dialog-heading h2 {
    font-family: var(--font-title);
    font-size: 30px;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid rgb(17, 17, 17);
    padding: 12px 2px;
}
.search-input-wrap input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    font-size: 20px;
    background: none;
}
.search-hint {
    font-size: 14px;
    color: var(--muted);
    margin-top: 15px;
}
.search-results {
    max-height: 45vh;
    overflow: auto;
    margin-top: 25px;
}
.search-result {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.search-result img {
    width: 44px;
    height: 60px;
    object-fit: cover;
}
.search-result strong {
    font-size: 15px;
}
.search-result p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}
.menu-dialog {
    width: min(650px, 100%);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    padding: 32px;
}
.sitemap-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 30px;
}
.sitemap-menu h3 {
    font-size: 20px;
    margin-bottom: 14px;
}
.sitemap-menu a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: rgb(87, 87, 87);
}
.sitemap-menu a:hover {
    color: rgb(0, 0, 0);
    text-decoration: underline;
}
.site-footer {
    background: rgb(17, 17, 17);
    color: rgb(255, 255, 255);
    padding: 48px 0 30px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgb(255 255 255 / 0.149);
}
.footer-logo {
    width: 207px;
    filter: brightness(0) invert(1);
}
.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14px;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 35px;
    padding: 28px 0;
}
.footer-main p {
    font-size: 14px;
    color: rgb(187, 187, 187);
    margin-top: 6px;
}
.footer-contact {
    font-size: 27px;
    letter-spacing: -0.03em;
}
.footer-contact small {
    display: block;
    font-size: 14px;
    letter-spacing: 0;
    color: rgb(187, 187, 187);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    color: rgb(136, 136, 136);
    font-size: 14px;
}
.footer-socials {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: rgb(221, 221, 221);
}
.study-note {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgb(255 255 255 / 0.1098);
    font-size: 14px;
    color: rgb(170, 170, 170);
}
.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    background: rgb(255, 255, 255);
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.1333);
    border-color: rgb(221, 221, 221);
    width: 44px;
    height: 44px;
}
.back-top .icon {
    width: 17px;
    height: 17px;
}
@media (min-width: 1700px) {
    .nav-items {
        gap: 50px;
    }
    .nav-tools {
        margin-left: 70px;
    }
}
@media (max-width: 1200px) {
    .container {
        width: calc(100% - 64px);
    }
    .nav-items {
        gap: 23px;
    }
    .nav-tools {
        margin-left: 10px;
    }
    .brand,
    .brand img {
        width: 180px;
    }
    .nav-item > button {
        font-size: 14px;
    }
    .main-nav {
        gap: 16px;
    }
    .section-heading h2 {
        font-size: 35px;
    }
}
@media (max-width: 900px) {
    .nav-items {
        display: none;
    }
    .main-nav {
        height: 76px;
    }
    .mega-menu {
        display: none;
    }
    .nav-tools {
        margin-left: 0;
    }
    .container {
        width: calc(100% - 40px);
    }
    .section-heading h2 {
        font-size: 31px;
    }
    .footer-top {
        align-items: flex-start;
        gap: 28px;
        flex-direction: column;
    }
    .footer-main {
        flex-direction: column;
    }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .section-heading {
        margin-bottom: 30px;
    }
    .footer-links {
        gap: 14px;
    }
}
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    .container {
        width: calc(100% - 36px);
    }
    .utility-bar {
        display: none;
    }
    .main-nav {
        height: 72px;
    }
    .brand,
    .brand img {
        width: 163px;
    }
    .nav-tools {
        gap: 2px;
    }
    .nav-tools > a.lang-link {
        display: none;
    }
    .section-heading {
        align-items: flex-start;
        gap: 16px;
    }
    .section-heading h2 {
        font-size: 28px;
    }
    .section-heading p {
        font-size: 14px;
    }
    .section-heading > .text-link {
        font-size: 0;
        gap: 0;
        padding-top: 35px;
    }
    .section-heading > .text-link .icon {
        width: 25px;
        height: 25px;
    }
    .search-dialog {
        padding: 24px;
    }
    .sitemap-menu {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .menu-dialog {
        padding: 24px;
    }
    .dialog-heading h2 {
        font-size: 25px;
    }
    .button {
        font-size: 14px;
        gap: 16px;
    }
    .footer-links {
        font-size: 14px;
    }
    .back-top {
        right: 14px;
        bottom: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
