@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

:root {
    --white: #ffffff;
    --text: #222222;
    --green: #2e7d32;
    --blue: #1565c0;
    --line: #e5e5e5;
    --header-height: 138px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--white);
    font-family: "Noto Sans KR", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Temporary entry screen */
.temporary-entry-body { display:grid; min-height:100vh; margin:0; place-items:center; color:#222; background:#fff; font-family:"Noto Sans KR",sans-serif; }
.temporary-entry { display:grid; width:min(100% - 48px,420px); place-items:center; text-align:center; }
.temporary-entry__icon { width:72px; height:72px; object-fit:contain; }
.temporary-entry h1 { margin:15px 0 34px; font-size:34px; font-weight:800; line-height:1; letter-spacing:-.04em; }
.temporary-entry h1 span { color:#2e7d32; }
.temporary-entry__form { display:grid; grid-template-columns:minmax(0,1fr) 76px; width:100%; gap:8px; }
.temporary-entry__form input { width:100%; min-width:0; height:50px; padding:0 15px; border:1px solid #d8ddd7; border-radius:10px; color:#222; background:#fff; font:400 15px/1 "Noto Sans KR",sans-serif; outline:none; }
.temporary-entry__form input:focus { border-color:#2e7d32; box-shadow:0 0 0 3px rgba(46,125,50,.1); }
.temporary-entry__form button { height:50px; border:0; border-radius:10px; color:#fff; background:#2e7d32; font:500 14px/1 "Noto Sans KR",sans-serif; cursor:pointer; }
.temporary-entry__form button:hover { background:#246528; }
.temporary-entry__error { margin:13px 0 0; color:#666; font-size:13px; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    transition: transform 240ms ease;
}

html.is-header-collapsed .site-header { transform:translateY(-100%); }
html.is-header-collapsed #content { padding-top:60px; }

.header-top {
    display: flex;
    justify-content: center;
    padding: 14px 24px 19px;
}

.header-inner {
    width: min(1440px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-account {
    display: flex;
    margin-left:auto;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
    white-space: nowrap;
}

.header-menu-row {
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0 24px;
    background: #ffffff;
}

.header-menu-inner {
    display:flex;
    width:min(1440px,100%);
    min-width:0;
    align-items:center;
    gap:24px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    color: #222222;
    font-family: "Pretendard", sans-serif;
    text-decoration: none;
}

.brand-logo:hover {
    text-decoration: none;
}

.brand-logo__icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-logo__text strong {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-logo__math {
    color: #2e7d32;
}

.brand-logo__text small {
    margin-top: 5px;
    color: #2e7d32;
    font-size: 13px;
    font-weight: 500;
}

.header-mode-badge { display:inline-flex; min-height:38px; margin-left:auto; padding:0 14px; align-items:center; gap:8px; border:1px solid #cfe0ce; border-radius:999px; color:#315f34; background:#f2f7f1; font-size:13px; font-weight:600; white-space:nowrap; }
.header-mode-badge svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.header-mode-badge--merchant { border-color:#c9dccb; background:#edf5ec; }
.header-mode-badge--parent { border-color:#d4e2d2; background:#f5f8f3; }

.main-nav {
    display:flex;
    width:auto;
    min-width:0;
    flex:1 1 auto;
    align-items: center;
    gap:clamp(38px,calc(3vw + 20px),54px);
    min-height: 50px;
    padding-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
}

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

.main-nav a,
.header-account a,
.account-button {
    position: relative;
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    transition: color 160ms ease;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 50px;
}

.main-nav .is-current {
    color: var(--green);
}

.main-nav .is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--green);
}

.main-nav a:hover,
.header-account a:hover,
.account-button:hover {
    color: var(--green);
    text-decoration: none;
}

.header-account > a::after,
.account-button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--green);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 160ms ease, transform 160ms ease;
}

.header-account > a:hover::after,
.account-button:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-continue-learning-link {
    color: var(--green);
}

.header-continue-learning-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--green);
    opacity: 1;
    transform: scaleX(0.38);
    transform-origin: left center;
    transition: transform 160ms ease;
}

.header-continue-learning-link:hover::after,
.header-continue-learning-link:focus-visible::after {
    transform: scaleX(1);
}

.account-button {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.account-button {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
}

.header-student {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-student form {
    margin: 0;
}

.header-logout-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    font: 400 15px/1.4 "Noto Sans KR", sans-serif;
    cursor: pointer;
    transition: color 160ms ease;
}

.profile-button { position:relative; width:32px; height:32px; justify-content:center; color:var(--green) !important; }
.profile-button__icon { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.profile-button.is-current::after { right:auto; bottom:-9px; left:50%; width:24px; opacity:1; transform:translateX(-50%); }
.profile-button.is-current:hover::after { transform:translateX(-50%); }

.header-logout-button:hover {
    color: var(--green);
}


#content {
    position: relative;
    flex: 1 0 auto;
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 0;
    padding: calc(var(--header-height) + 60px) 0 0;
    transition: padding-top 240ms ease;
}

/* Feature placeholders */
.learning-page { width:100%; min-height:560px; padding:0 0 96px; }
.learning-page-kicker { display:block; margin-bottom:10px; color:var(--green); font:500 12px/1.4 "Pretendard",sans-serif; letter-spacing:.12em; }
.prepared-learning-card h1 { margin:0; color:var(--text); font-size:clamp(34px,4.2vw,58px); font-weight:600; line-height:1.2; letter-spacing:-.045em; }
.prepared-learning-card > p { max-width:760px; margin:16px 0 0; color:#666; font-size:clamp(15px,1.4vw,18px); line-height:1.75; }
.learning-start-button { display:inline-flex; min-height:46px; padding:0 17px; align-items:center; justify-content:center; border:1px solid var(--green); border-radius:9px; color:#fff; background:var(--green); font-size:14px; font-weight:500; transition:background 160ms ease,border-color 160ms ease; }
.learning-start-button:hover { border-color:#245f27; color:#fff; background:#245f27; text-decoration:none; }
.prepared-learning-card { width:min(860px,100%); padding:56px 0 72px; }
.prepared-learning-card > .learning-start-button { margin-top:30px; }
.pramy-message { display:flex; max-width:860px; margin:28px 0 0; padding:18px 20px; align-items:center; gap:14px; border-radius:12px; color:#345436; background:#f3f8f2; }
.pramy-message__mark { display:grid; width:34px; height:34px; flex:0 0 auto; place-items:center; border-radius:50%; color:#fff; background:var(--green); font:600 15px/1 "Pretendard",sans-serif; }
.pramy-message p { margin:0; font-size:14px; line-height:1.65; }

/* Left-menu / right-content learning layout */
.catalog-layout { padding-bottom:96px; }
.catalog-sidebar nav a { white-space:normal; }
.catalog-content { min-width:0; }
.grade-catalog-overview { padding-left:clamp(36px,5vw,60px); }
.grade-catalog-overview__heading h2 { margin:0; color:var(--text); font-size:25px; font-weight:500; letter-spacing:-.035em; }
.grade-catalog-overview__heading p { max-width:700px; margin:10px 0 0; color:#666; font-size:14px; line-height:1.75; }
.grade-catalog-overview__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:30px; }
.grade-overview-card { display:grid; min-height:150px; padding:23px 24px; align-content:start; border:1px solid #e2e7e1; border-radius:14px; color:var(--text); background:#fff; transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease; }
.grade-overview-card:hover { border-color:#9dc69f; color:var(--text); box-shadow:0 8px 24px rgba(34,75,36,.08); text-decoration:none; transform:translateY(-2px); }
.grade-overview-card > span { font-size:18px; font-weight:500; }
.grade-overview-card > p { margin:8px 0 0; color:#666; font-size:13px; line-height:1.65; }
.grade-overview-card > small { margin-top:14px; color:var(--blue); font-size:12px; font-weight:600; }
.merchant-main-nav { gap:clamp(24px,2.2vw,38px); }
.merchant-portal-content { padding-left:clamp(36px,5vw,60px); }
.merchant-portal-content h2 { margin:10px 0 0; color:var(--text); font-size:25px; font-weight:500; letter-spacing:-.035em; }
.merchant-portal-content > p { margin:12px 0 0; color:#666; font-size:14px; line-height:1.75; }
.merchant-breadcrumbs { display:flex; flex-wrap:wrap; gap:7px; color:#777; font-size:12px; }
.merchant-breadcrumbs span + span::before { content:"/"; margin-right:7px; color:#bbb; }
.merchant-menu-group { display:grid; }

/* Standalone student login */
.auth-standalone-body {
    display:block;
    min-height:100vh;
    background:#fff;
}

.auth-standalone-shell {
    width:min(460px,calc(100% - 40px));
    margin:0 auto;
    padding:48px 0 32px;
}

.auth-brand {
    display:flex;
    width:max-content;
    max-width:100%;
    margin:0 auto 38px;
    align-items:center;
    gap:12px;
    color:var(--text);
}

.auth-brand:hover { text-decoration:none; }
.auth-brand img { width:48px; height:48px; flex:0 0 auto; object-fit:contain; }
.auth-brand > span { display:flex; min-width:0; flex-direction:column; line-height:1.12; }
.auth-brand strong { font:700 27px/1.1 "Pretendard",sans-serif; letter-spacing:-.035em; }
.auth-brand strong em { color:var(--green); font-style:normal; }
.auth-brand small { margin-top:5px; color:var(--green); font-size:11px; font-weight:500; }

.auth-mode-tabs {
    position:relative;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin-bottom:22px;
}

.auth-mode-tabs::before {
    content:"";
    position:absolute;
    right:50%;
    bottom:0;
    width:100vw;
    height:1px;
    background:#dedede;
    transform:translateX(50%);
}

.auth-mode-tabs a {
    position:relative;
    display:flex;
    min-height:47px;
    align-items:center;
    justify-content:center;
    color:#666;
    font-size:14px;
    font-weight:500;
}

.auth-mode-tabs > span {
    display:flex;
    min-height:47px;
    align-items:center;
    justify-content:center;
    color:#777;
    font-size:14px;
    font-weight:500;
}

.auth-mode-tabs--login-type { margin-bottom:28px; }

.auth-mode-tabs a:hover { color:var(--green); text-decoration:none; }
.auth-mode-tabs a.is-current { color:var(--green); font-weight:600; }
.auth-mode-tabs__context { margin-left:4px; font-size:12px; font-weight:500; }
.auth-mode-tabs a.is-current::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:3px; background:var(--green); }

.standalone-login-form { display:grid; gap:12px; }
.auth-input-row {
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    min-height:56px;
    align-items:center;
    overflow:hidden;
    border:1px solid #c9c9c9;
    border-radius:8px;
    background:#fff;
    transition:border-color 150ms ease,box-shadow 150ms ease;
}

.auth-input-row:focus-within { border-color:var(--green); box-shadow:0 0 0 3px rgba(46,125,50,.12); }
.auth-input-row svg { width:21px; height:21px; margin:auto; fill:none; stroke:#8a8a8a; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.auth-input-row input {
    width:100%;
    min-width:0;
    height:54px;
    padding:0 16px;
    border:0;
    border-left:1px solid #e5e5e5;
    outline:0;
    color:var(--text);
    background:#fff;
    font:400 16px "Noto Sans KR",sans-serif;
}

.auth-input-row input::placeholder { color:#929292; }
.auth-input-row input[readonly] { color:#555; background:#f7f8f7; }
.standalone-login-primary,
.standalone-login-secondary {
    display:flex;
    width:100%;
    min-height:54px;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    font:600 16px "Noto Sans KR",sans-serif;
    cursor:pointer;
    transition:border-color 150ms ease,background 150ms ease,color 150ms ease;
}

.standalone-login-primary { margin-top:2px; border:1px solid var(--green); color:#fff; background:var(--green); }
.standalone-login-primary:hover { border-color:#245f27; color:#fff; background:#245f27; text-decoration:none; }
.standalone-login-secondary-actions { display:grid; gap:12px; margin-top:110px; }
.standalone-login-secondary { border:1px solid #aaa; color:#333; background:#fff; }
.standalone-login-secondary:hover { border-color:var(--green); color:var(--green); text-decoration:none; }
.standalone-login-find-link { justify-self:end; color:#555; font-size:14px; font-weight:500; }
.standalone-login-find-link:hover { color:var(--green); }

.social-login-panel > p { margin:0 0 22px; color:#555; font-size:14px; line-height:1.65; text-align:center; }
.social-login-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.social-login-provider-form { display:contents; }
.social-login-button {
    display:flex;
    width:100%;
    padding:0;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:9px;
    border:0;
    color:#444;
    background:transparent;
    font:500 13px "Noto Sans KR",sans-serif;
    cursor:default;
}
.social-login-button--enabled { cursor:pointer; }

.social-login-button__icon { display:grid; width:58px; height:58px; place-items:center; border:1px solid transparent; border-radius:50%; font:700 20px/1 Arial,sans-serif; transition:transform 150ms ease,box-shadow 150ms ease; }
.social-login-button__icon--apple { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:22px; }
.social-login-button--google .social-login-button__icon { border-color:#d3d3d3; color:#4285f4; background:#fff; }
.social-login-button--apple .social-login-button__icon { color:#fff; background:#222; }
.social-login-button--naver .social-login-button__icon { color:#fff; background:#03a94f; }
.social-login-button--kakao .social-login-button__icon { color:#3b3320; background:#f1e3ad; }
.social-login-button:hover .social-login-button__icon { transform:translateY(-2px); box-shadow:0 5px 14px rgba(0,0,0,.12); }
.social-login-button__label { white-space:nowrap; }

.last-sns-login { margin-top:38px; padding-top:22px; border-top:1px solid #ededed; }
.last-sns-login > p { margin:0 0 12px; color:#777; font-size:12px; font-weight:500; }
.last-sns-login__provider { display:flex; align-items:center; gap:12px; }
.last-sns-login > form { margin:0; }
.last-sns-login__provider--action { width:100%; padding:0; border:0; color:inherit; background:transparent; font:inherit; text-align:left; cursor:pointer; }
.last-sns-login__provider--action:hover { text-decoration:none; }
.last-sns-login__provider--action:hover strong { color:var(--green); }
.last-sns-login__icon { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:50%; color:#fff; background:#03a94f; font:700 16px/1 Arial,sans-serif; }
.last-sns-login__meta { display:flex; flex-direction:column; }
.last-sns-login__provider strong { color:#333; font-size:14px; font-weight:600; }
.last-sns-login__provider small { margin-top:1px; color:#888; font-size:11px; }
.last-sns-login__provider .last-sns-login__continue { margin-left:auto; color:var(--green); font-size:12px; font-weight:600; }

.parent-consent__heading { display:flex; margin-bottom:28px; align-items:center; gap:14px; }
.parent-consent__provider-icon { display:grid; width:46px; height:46px; flex:0 0 auto; place-items:center; border-radius:50%; color:#fff; background:#03a94f; font:700 17px/1 Arial,sans-serif; }
.parent-consent__heading h2 { margin:0; font-size:24px; font-weight:600; letter-spacing:-.035em; }
.parent-consent__heading p { margin:5px 0 0; color:#707070; font-size:13px; line-height:1.6; }
.parent-consent-flow { display:grid; }
.parent-consent__summary { display:grid; gap:14px; }
.parent-consent-option { padding:22px 24px; border:1px solid #e4e9e3; border-radius:12px; background:#fff; }
.parent-consent-option__type { display:inline-flex; margin-bottom:13px; padding:3px 9px; border-radius:999px; color:var(--green); background:#eaf4e9; font-size:11px; font-weight:600; }
.parent-consent-option--optional .parent-consent-option__type { color:#666; background:#f0f0f0; }
.parent-consent-option__check { display:flex; align-items:flex-start; gap:10px; color:#262626; font-size:15px; line-height:1.6; cursor:pointer; }
.parent-consent-option__check input { width:19px; height:19px; flex:0 0 auto; margin:2px 0 0; accent-color:var(--green); }
.parent-consent-option__check strong { font-weight:600; }
.parent-consent-option > p { margin:12px 0 0 29px; color:#606060; font-size:13px; font-weight:500; line-height:1.75; }
.parent-consent-details-toggle { display:inline-flex; min-height:34px; margin:15px 0 0 29px; padding:0; align-items:center; gap:5px; border:0; color:var(--blue); background:transparent; font:600 13px "Noto Sans KR",sans-serif; cursor:pointer; }
.parent-consent-details-toggle svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform 160ms ease; }
.parent-consent-details-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.parent-consent-details { margin:15px 0 0 29px; border-top:1px solid #e5e5e5; }
.parent-consent-details[hidden] { display:none; }
.parent-consent-details article { padding:18px 0; border-bottom:1px solid #ededed; }
.parent-consent-details article:last-child { border-bottom:0; padding-bottom:0; }
.parent-consent-details h3 { margin:0 0 8px; color:#333; font-size:14px; font-weight:600; }
.parent-consent-details article > strong { color:#333; font-size:13px; font-weight:600; }
.parent-consent-details article > p { margin:7px 0 0; color:#666; font-size:13px; font-weight:500; line-height:1.75; }
.parent-consent__continue { width:min(560px,100%); min-height:56px; margin:34px auto 0; border:1px solid var(--green); border-radius:8px; color:#fff; background:var(--green); font:600 16px "Noto Sans KR",sans-serif; cursor:pointer; }
.parent-consent__continue:disabled { border-color:#d2d2d2; color:#999; background:#ededed; cursor:default; }
.standalone-login .student-auth-error { margin-bottom:16px; font-size:13px; }
.auth-standalone-footer { margin:38px 0 0; color:var(--green); font-size:14px; font-weight:600; letter-spacing:-.02em; text-align:center; }

/* Standalone free signup */
.auth-standalone-shell--signup { width:min(760px,calc(100% - 40px)); }
.auth-standalone-shell--signup > .auth-mode-tabs { width:min(460px,100%); margin-right:auto; margin-left:auto; }
.signup-profile-fields__heading > span { color:var(--green); font-size:12px; font-weight:600; letter-spacing:.12em; }
.signup-form { display:grid; }
.signup-profile-fields { display:grid; width:100%; margin-top:52px; gap:14px; }
.signup-profile-fields__heading h2 { margin:4px 0 0; font-size:22px; font-weight:600; letter-spacing:-.03em; }
.signup-profile-card { display:grid; gap:18px; padding:23px 24px; border:1px solid #e4e9e3; border-radius:12px; background:#fff; }
.signup-field { display:grid; gap:7px; color:#333; font-size:14px; }
.signup-field input,.signup-field select,.signup-birth-fields select { width:100%; min-height:54px; padding:0 15px; border:1px solid #c9c9c9; border-radius:8px; color:var(--text); background:#fff; font:400 16px "Noto Sans KR",sans-serif; }
.signup-field input:focus,.signup-field select:focus,.signup-birth-fields select:focus { border-color:var(--green); outline:3px solid rgba(46,125,50,.12); }
.signup-field small { color:#777; font-size:12px; }
.signup-field-help-row { display:flex; align-items:flex-start; gap:10px 14px; line-height:1.65; }
.signup-field-help-row > span { flex:0 0 auto; }
.signup-field-help-row strong { color:var(--green); font-weight:600; }
.signup-birth-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; padding:0; border:0; }
.signup-birth-fields legend { grid-column:1/-1; margin-bottom:7px; padding:0; color:#333; font-size:14px; }

.signup-agreements { display:grid; gap:14px; margin-top:0; }
.signup-agreements__heading { margin-bottom:4px; }
.signup-agreements__heading h2 { margin:4px 0 0; font-size:22px; font-weight:600; letter-spacing:-.03em; }
.signup-privacy-principle { margin:0 0 2px; padding:12px 14px; border-radius:9px; color:#315f34; background:#f0f7ef; font-size:13px; line-height:1.65; }
.signup-privacy-principle strong { font-weight:600; }
.signup-agreement-card { overflow:hidden; padding:0; border:1px solid #e4e9e3; border-radius:12px; background:#fff; transition:border-color 160ms ease,opacity 160ms ease; }
.signup-agreement-card,.signup-submit { scroll-margin-top:24px; }
.signup-agreement-card.is-open { border-color:#cadbc8; }
.signup-agreement-card.is-locked { opacity:.58; }
.signup-agreement-toggle { display:flex; width:100%; min-height:62px; padding:0 24px; align-items:center; justify-content:space-between; gap:16px; border:0; color:#222; background:transparent; font:600 16px "Noto Sans KR",sans-serif; letter-spacing:-.02em; text-align:left; cursor:pointer; }
.signup-agreement-toggle:disabled { cursor:default; }
.signup-agreement-toggle em { display:inline-flex; margin-left:5px; padding:2px 7px; border-radius:999px; color:var(--green); background:#eaf4e9; font-size:11px; font-style:normal; font-weight:600; vertical-align:2px; }
.signup-agreement-toggle svg { width:20px; height:20px; flex:0 0 auto; fill:none; stroke:#6b786c; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:transform 160ms ease; }
.signup-agreement-card.is-open .signup-agreement-toggle svg { transform:rotate(180deg); }
.signup-agreement-panel { padding:0 24px 23px; }
.signup-agreement-panel[hidden] { display:none; }
.signup-consent { display:flex; align-items:flex-start; gap:10px; color:#2d2d2d; font-size:14px; font-weight:500; line-height:1.6; cursor:pointer; }
.signup-consent input { width:18px; height:18px; flex:0 0 auto; margin:2px 0 0; accent-color:var(--green); }
.signup-agreement-panel > p { margin:14px 0 0; color:#6d6d6d; font-size:13px; line-height:1.75; }
.signup-policy-details { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:18px; padding:18px; border-radius:9px; background:#fff; }
.signup-policy-details strong,.signup-retention-notice strong { color:#444; font-size:13px; font-weight:600; }
.signup-policy-details ul { display:grid; gap:3px; margin:8px 0 0; padding:0; color:#707070; font-size:13px; list-style:none; }
.signup-retention-notice { margin-top:14px; padding:0 2px; }
.signup-retention-notice p { margin:5px 0 0; color:#666; font-size:13px; line-height:1.7; }
.signup-retention-notice .signup-retention-emphasis { color:inherit; font-weight:700; }
.signup-submit { width:min(560px,100%); min-height:56px; margin:34px auto 0; border:1px solid var(--green); border-radius:8px; color:#fff; background:var(--green); font:600 16px "Noto Sans KR",sans-serif; cursor:pointer; }
.signup-submit:hover { border-color:#245f27; background:#245f27; }
.signup-login-link { margin:16px auto 0; color:#555; font-size:14px; font-weight:500; }
.signup-page > .student-auth-error { width:min(560px,100%); margin:0 auto 20px; }

.signup-complete { text-align:center; }
.signup-complete h1 { margin:0; font-size:28px; font-weight:600; line-height:1.35; letter-spacing:-.04em; }
.signup-complete > p { margin:9px 0 0; color:#666; font-size:14px; }
.signup-complete__code { display:block; margin:24px 0; color:var(--green); font:700 clamp(48px,10vw,66px)/1 "Pretendard",sans-serif; letter-spacing:.08em; }
.signup-complete .signup-complete__notice { margin-top:0; line-height:1.7; }
.signup-complete__copy,.signup-complete__learning { display:flex; width:100%; min-height:54px; align-items:center; justify-content:center; border-radius:8px; font:600 16px "Noto Sans KR",sans-serif; cursor:pointer; }
.signup-complete__copy { margin-top:32px; border:1px solid #aaa; color:#333; background:#fff; }
.signup-complete__copy:hover { border-color:var(--green); color:var(--green); }
.signup-complete__learning { margin-top:100px; border:1px solid var(--green); color:#fff; background:var(--green); }
.signup-complete__learning:hover { border-color:#245f27; color:#fff; background:#245f27; text-decoration:none; }

.identity-find__heading { margin-bottom:24px; text-align:center; }
.identity-find__heading h1 { margin:0; font-size:27px; font-weight:600; line-height:1.35; letter-spacing:-.04em; }
.identity-find__heading p { margin:8px 0 0; color:#707070; font-size:14px; }
.identity-find-form { display:grid; gap:12px; }
.identity-find-birth { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; padding:0; border:0; }
.identity-find-birth legend { grid-column:1/-1; margin-bottom:2px; padding:0; color:#555; font-size:13px; }
.identity-find-birth select { width:100%; min-height:54px; padding:0 14px; border:1px solid #c9c9c9; border-radius:8px; color:var(--text); background:#fff; font:400 16px "Noto Sans KR",sans-serif; }
.identity-find-birth select:focus { border-color:var(--green); outline:3px solid rgba(46,125,50,.12); }
.identity-find .student-auth-error { margin-bottom:16px; font-size:13px; }
.identity-find__back { display:block; width:max-content; margin:18px 0 0 auto; color:#555; font-size:14px; font-weight:500; }
.identity-find-result { margin-top:28px; padding-top:24px; border-top:1px solid #ededed; text-align:center; }
.identity-find-result > p { margin:0; color:#555; font-size:14px; font-weight:500; }
.identity-find-result > strong { display:block; margin:14px 0 22px; color:var(--green); font:700 46px/1 "Pretendard",sans-serif; letter-spacing:.08em; }
.identity-find-result form { margin:0; }

.student-auth { display:grid; min-height:560px; padding:12px 0 80px; place-items:start center; }
.student-auth-card { width:min(480px,100%); padding:clamp(24px,4vw,44px) 0; background:#fff; }
.student-auth-card--entry { width:min(680px,100%); }
.student-auth-card--entry .student-auth-actions { width:min(480px,100%); }
.student-auth-card--center { text-align:center; }
.student-auth h1 { margin:0 0 14px; font-size:clamp(25px,3.4vw,34px); font-weight:500; line-height:1.3; letter-spacing:-.035em; }
.student-auth p { margin:0 0 28px; color:#666; }
.student-auth form { display:grid; gap:18px; margin-top:20px; }
.student-auth label { display:grid; gap:7px; font-size:14px; font-weight:400; }
.student-auth input,.student-auth select { width:100%; min-height:52px; padding:0 15px; border:1px solid #ccc; border-radius:9px; background:#fff; font:inherit; font-size:16px; }
.student-auth input:focus,.student-auth select:focus { border-color:var(--green); outline:3px solid rgba(46,125,50,.13); }
.birth-selects { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; padding:0; border:0; }
.birth-selects legend { grid-column:1 / -1; margin-bottom:7px; padding:0; font-size:14px; }
.student-profile-code { margin-bottom:18px !important; color:var(--green) !important; font-size:14px; }
.student-profile form { gap:24px; }
.profile-edit-field { display:grid; gap:8px !important; }
.profile-edit-field__title { color:#333; font-size:14px; font-weight:500; line-height:1.4; }
.student-profile .profile-edit-field input,.student-profile .profile-edit-field select { min-height:54px; border-color:#c9c9c9; background:#fff; }
.student-profile .profile-edit-field input::placeholder { color:#898989; }
.profile-edit-field__help { display:flex; align-items:center; gap:7px; color:#666; font-size:12px; font-weight:400; line-height:1.55; }
.profile-edit-field__help::before { content:"i"; display:grid; width:16px; height:16px; flex:0 0 auto; place-items:center; border:1px solid #8fbd91; border-radius:50%; color:var(--green); font:600 10px/1 "Pretendard",sans-serif; }
.content-sidebar-layout { position:relative; display:grid; grid-template-columns:minmax(0,15fr) minmax(0,85fr); gap:0; width:100%; min-height:600px; padding:0 0 80px; place-items:start stretch; }
.content-sidebar-layout::after { content:""; position:absolute; top:0; bottom:0; left:15%; width:1px; background:#e2e5e1; pointer-events:none; }
.student-profile-sidebar { padding-top:0; }
.student-profile-sidebar h1,.grade-sidebar-title { margin:0 0 7px; color:var(--text); font-size:25px; font-weight:500; line-height:1.4; letter-spacing:-.035em; }
.student-profile-sidebar > p { margin:0 0 30px; color:#777; font-size:13px; }
.student-profile-sidebar nav { position:relative; display:grid; gap:4px; padding-left:0; }
.student-profile-sidebar nav a,.student-profile-sidebar nav span { position:relative; display:flex; min-height:42px; align-items:center; padding:0; color:var(--text); font-size:15px; font-weight:400; line-height:1.4; }
.student-profile-sidebar nav a:hover { color:var(--green); text-decoration:none; }
.student-profile h2 { margin:0 0 14px; font-size:25px; font-weight:500; letter-spacing:-.035em; }
.student-profile-layout .student-auth-card { width:min(600px,calc(100% - clamp(36px,5vw,60px))); margin-left:clamp(36px,5vw,60px); padding-top:0; }
.student-profile .profile-grade-field + .primary { margin-top:26px; }
.grade-sidebar-heading { display:grid; justify-items:start; gap:10px; margin-bottom:30px; }
.grade-sidebar-heading--with-title { position:relative; }
.grade-sidebar-heading--with-title .grade-sidebar-title { min-width:0; margin:0; }
.header-collapse-button { display:inline-flex; width:auto; min-height:36px; padding:0 12px; align-items:center; gap:7px; border:0; border-radius:999px; color:#315f34; background:#edf5ec; font:500 13px/1 "Noto Sans KR",sans-serif; cursor:pointer; transition:color 160ms ease,background 160ms ease; }
.header-collapse-button:hover { color:#245f27; background:#e2efe1; }
.header-collapse-button:focus-visible { outline:3px solid rgba(46,125,50,.18); outline-offset:2px; }
.focus-mode-icon { width:18px; height:18px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.focus-mode-icon--exit { display:none; }
html.is-header-collapsed .focus-mode-icon--enter { display:none; }
html.is-header-collapsed .focus-mode-icon--exit { display:block; }
.grade-learning-sidebar nav { display:grid; gap:4px; padding-left:20px; }
.grade-learning-sidebar nav a { position:relative; display:flex; min-height:42px; align-items:center; color:var(--text); font-size:15px; font-weight:400; line-height:1.4; }
.grade-learning-sidebar nav a:hover { color:var(--green); text-decoration:none; }
.catalog-sidebar nav { padding-left:0; }
.learning-menu-item { position:relative; display:grid; grid-template-columns:minmax(0,1fr); align-items:center; }
.grade-learning-sidebar nav.is-collapsed .learning-menu-item:not(.is-selected) { display:none; }
.learning-menu-toggle { display:inline-flex; width:max-content; min-height:34px; margin-top:12px; padding:0; align-items:center; gap:8px; border:0; border-radius:0; color:var(--blue); background:transparent; font:600 13px/1 "Noto Sans KR",sans-serif; cursor:pointer; transition:color 150ms ease,transform 150ms ease; }
.learning-menu-toggle:hover { color:#0d47a1; background:transparent; transform:translateX(2px); }
.learning-menu-toggle:focus-visible { outline:2px solid rgba(21,101,192,.25); outline-offset:4px; }
.learning-menu-toggle__icon { width:19px; height:19px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.learning-menu-toggle[aria-expanded="true"] { display:none; }
.guide-submenu { grid-column:1/-1; display:grid; gap:2px; margin:6px 0 10px 5px; padding-left:17px; border-left:1px solid #dfe7df; }
.grade-learning-sidebar nav .guide-submenu a,.grade-learning-sidebar nav .guide-submenu span { position:relative; display:flex; min-height:36px; align-items:center; padding-left:8px; color:#666; font-size:14px; }
.grade-learning-sidebar nav .guide-submenu a::after,.grade-learning-sidebar nav .guide-submenu span::after { content:""; position:absolute; top:50%; left:-17px; width:11px; height:1px; background:#dfe7df; }
.grade-learning-sidebar nav .guide-submenu a:hover { color:var(--green); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.student-auth-actions { display:grid; gap:12px; margin-top:28px; }
.student-auth .primary,.student-auth .secondary { display:flex; align-items:center; justify-content:center; width:100%; min-height:54px; padding:0 18px; border-radius:10px; font:500 16px "Noto Sans KR",sans-serif; cursor:pointer; }
.student-auth .primary { border:1px solid var(--green); color:#fff; background:var(--green); }
.student-auth .secondary { border:1px solid #ccc; color:#222; background:#fff; }
.student-auth .primary:hover,.student-auth .secondary:hover { text-decoration:none; }
.student-auth-link { display:inline-block; margin-top:22px; border:0; color:#555; background:none; font:inherit; text-decoration:underline; cursor:pointer; }
.student-auth-error { margin:0 0 20px; padding:12px 14px; border-radius:8px; color:#9f2424; background:#fff0f0; }
.student-auth-highlight { margin:20px 0 0 !important; padding:14px 16px; border-radius:9px; color:#27682b !important; background:#f0f7ef; font-size:14px; line-height:1.65; }
.student-switch-notice { margin:12px 0 0 !important; color:#777 !important; font-size:13px; line-height:1.65; text-align:left; }
.pramy-code { display:block; margin:16px 0 22px; color:var(--green); font-size:clamp(48px,9vw,68px); font-weight:500; line-height:1; letter-spacing:.08em; }

.site-footer {
    flex: 0 0 auto;
    padding: 18px 20px;
    background: #050505;
    border-top: 0;
}

.footer-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.footer-copy {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 920px) {
    :root {
        --header-height: 138px;
    }

    .main-nav {
        padding-left: 0;
    }

    .catalog-layout { grid-template-columns:1fr; gap:32px; }
    .catalog-layout::after { display:none; }
    .catalog-sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 18px; padding-left:0; }
    .catalog-sidebar nav a::before { display:none; }
    .catalog-content { margin-left:0; }
    .grade-catalog-overview { padding-left:0; }
    .merchant-portal-content { padding-left:0; }

}

@media (max-width: 640px) {
    :root {
        --header-height: 126px;
    }

    .header-top {
        padding: 12px 14px 17px;
    }

    .header-menu-row { padding:0 14px; }
    .header-menu-inner { gap:18px; }

    .auth-standalone-shell { width:min(100% - 32px,460px); padding:30px 0 24px; }
    .auth-standalone-shell--signup { width:min(100% - 32px,760px); }
    .auth-brand { margin-bottom:30px; }
    .auth-brand img { width:44px; height:44px; }
    .auth-brand strong { font-size:25px; }
    .standalone-login-secondary-actions { margin-top:100px; }
    .signup-profile-fields__heading h2 { font-size:20px; }
    .signup-profile-card { padding:20px 18px; }
    .parent-consent__heading { align-items:flex-start; }
    .parent-consent__heading h2 { font-size:21px; }
    .parent-consent-option { padding:20px 18px; }
    .parent-consent-option > p,.parent-consent-details-toggle,.parent-consent-details { margin-left:0; }
    .signup-field-help-row { display:grid; gap:3px; }
    .signup-profile-fields { margin-top:42px; }
    .signup-agreements__heading h2 { font-size:20px; }
    .signup-agreement-toggle { min-height:58px; padding:0 18px; font-size:15px; }
    .signup-agreement-panel { padding:0 18px 20px; }
    .signup-policy-details { grid-template-columns:1fr; gap:18px; }

    .brand-logo { gap:10px; }
    .brand-logo__icon { width:46px; height:46px; }
    .brand-logo__text strong { font-size:25px; }
    .brand-logo__text small { font-size:11px; }
    .header-inner { gap:10px; }
    .header-mode-badge { min-height:32px; padding:0 8px; font-size:11px; }
    .header-mode-badge svg { display:none; }

    #content {
        width: min(100% - 48px, 1440px);
        padding: calc(var(--header-height) + 60px) 0 0;
    }

    .learning-page { padding-bottom:72px; }
    .student-auth { min-height:480px; padding-bottom:56px; }
    .student-auth-card { padding:24px 4px; }

    .content-sidebar-layout { grid-template-columns:1fr; gap:24px; }
    .content-sidebar-layout::after { display:none; }
    .student-profile-sidebar { padding-top:0; }
    .student-profile-sidebar > p { margin-bottom:16px; }
    .student-profile-sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding-left:0; }
    .student-profile-layout .student-auth-card { width:min(600px,100%); margin-left:0; }
    .grade-sidebar-heading { margin-bottom:30px; }
    .grade-learning-sidebar nav { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding-left:0; }
    .catalog-sidebar nav { grid-template-columns:1fr; }
    .grade-catalog-overview__grid { grid-template-columns:1fr; }

}
