:root {
  --navy: #14204f;
  --green: #0b7d3b;
  --green-2: #12a150;
  --ink: #1b2130;
  --muted: #5a6172;
  --line: #e2e5ea;
  --band: #f3f5f6;
  --tile: #eef0f2;
  --white: #fff;
  --coral: #e2463f;
  --r: 10px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a, button, summary, input, select { touch-action: manipulation; -webkit-tap-highlight-color: rgba(18, 161, 80, .18); }
h1, h2, h3 { text-wrap: balance; }
table { border-collapse: collapse; width: 100%; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; border-radius: 4px; }
h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r); background: var(--navy); color: #fff; font-weight: 700; transition: transform .16s var(--ease), background-color .2s; }
.btn:hover { background: #0c1538; transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-g { background: var(--green); } .btn-g:hover { background: #086230; }
.btn-d { background: #3b4254; } .btn-d:hover { background: #2a3040; }
.btn-o { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); } .btn-o:hover { background: var(--band); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.util { display: flex; justify-content: flex-end; gap: 18px; padding-top: 8px; font-size: .8125rem; color: var(--muted); }
.util a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.head { display: flex; align-items: center; gap: 28px; padding: 8px 0 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em; color: var(--navy); white-space: nowrap; }
.logo img { width: 44px; height: 44px; flex: none; }
.logo span { margin-left: -10px; }
.logo span { color: var(--green); }
.util .util-office { font-weight: 800; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); margin-inline: auto; font-weight: 700; }
.nav a { padding: 8px 2px; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green-2); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background-color .2s, transform .16s var(--ease); }
.call:hover { background: var(--green); transform: translateY(-1px); }

/* hero banner */
.hero { background: #e9f1ec; }
.hero-in { display: grid; grid-template-columns: 1fr minmax(320px, 1.25fr) 250px; gap: 32px; align-items: center; padding: 40px 0 34px; }
.hero-pics { position: relative; height: 300px; }
.hero-pics img { position: absolute; width: 46%; border-radius: 6px; box-shadow: 0 10px 28px rgba(20, 32, 79, .16); transition: transform .5s var(--ease); }
.hero-pics img:nth-child(1) { left: 0; top: 34px; transform: rotate(-7deg); }
.hero-pics img:nth-child(2) { left: 27%; top: 0; transform: rotate(3deg); z-index: 1; }
.hero-pics img:nth-child(3) { right: 0; top: 46px; transform: rotate(9deg); }
.hero:hover .hero-pics img:nth-child(1) { transform: rotate(-10deg) translateX(-6px); }
.hero:hover .hero-pics img:nth-child(3) { transform: rotate(12deg) translateX(6px); }
.hero-copy { text-align: center; }
.pane-title { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1.1; color: var(--navy); }
.pane-sub { margin: 16px auto 22px; max-width: 26em; font-size: 1.0625rem; color: #333a4a; }
.js .pane:not([hidden]) > * { animation: rise .45s var(--ease) both; }
.js .pane:not([hidden]) > *:nth-child(2) { animation-delay: .05s; }
.js .pane:not([hidden]) > *:nth-child(3) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.consult { background: var(--white); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; font-size: .9375rem; }
.consult-t { font-weight: 800; color: var(--muted); font-size: .875rem; }
.consult-tel { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.consult .btn { min-height: 44px; }
.consult-reg { font-size: .8125rem; color: var(--muted); text-align: center; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs button { min-height: 56px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: var(--r) var(--r) 0 0; transition: background-color .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

/* board: quick menu, calendar, schedule */
.board { display: grid; grid-template-columns: 1fr 1.05fr 1.15fr; gap: 44px; padding: 56px 0 48px; }
.board h2 { font-size: 1.25rem; margin-bottom: 16px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-grid a { position: relative; background: var(--tile); border-radius: var(--r); padding: 18px 16px; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .2s, transform .2s var(--ease); }
.quick-grid a:hover { background: #e2ece6; transform: translateY(-3px); }
.quick-grid b { font-size: 1.0625rem; letter-spacing: -0.02em; }
.quick-grid span { font-size: .875rem; color: var(--muted); }
.quick-grid span::after { content: " ›"; font-weight: 700; }
.q-badge::before { content: attr(data-badge); position: absolute; top: -10px; right: 10px; background: #f5c518; color: var(--ink); font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.legend { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.legend i, .cal td i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 2px; }
i.m { background: var(--coral); } i.h { background: var(--navy); }
.cal caption { text-align: left; font-weight: 800; padding-bottom: 8px; }
.cal th { background: var(--tile); font-size: .8125rem; font-weight: 700; padding: 6px 0; border: 1px solid var(--line); }
.cal td { border: 1px solid var(--line); height: 44px; text-align: center; vertical-align: top; padding-top: 5px; font-size: .875rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cal td span { display: block; }
.cal td.today { background: #fff6cf; font-weight: 800; }
.notice ul { display: grid; gap: 2px; }
.notice a { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; transition: background-color .2s; }
.notice a:hover { background: var(--band); }
.notice .dd { background: var(--navy); color: #fff; font-size: .8125rem; font-weight: 800; text-align: center; border-radius: 999px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.notice span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice em { font-style: normal; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* materials row */
.mat { border-top: 1px solid var(--line); padding: 40px 0; }
.mat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.mat-row a { display: grid; justify-items: center; gap: 4px; text-align: center; }
.mat-row img { width: min(100%, 150px); height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 8px; transition: transform .25s var(--ease); }
.mat-row a:hover img { transform: translateY(-6px) rotate(-2deg); }
.mat-row b { font-size: .9375rem; }
.mat-row span { font-size: .8125rem; color: var(--green); font-weight: 600; }

/* three lists */
.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 16px 0 64px; }
.list { border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; min-width: 0; }
.list h2 { font-size: 1.25rem; text-align: center; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.list h2 em { font-style: normal; color: var(--green); }
.list li { font-size: .9375rem; padding: 6px 0; }
.list li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.dated li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.dated span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* sections */
.sec-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head p { color: var(--muted); }
.schools, .steps, .fee, .faq { padding: 64px 0; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.schools th, .schools td, .fee th, .fee td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.schools thead th, .fee thead th { background: var(--band); font-size: .875rem; }
.schools tbody tr:last-child > *, .fee tbody tr:last-child > * { border-bottom: 0; }
.schools tbody th { white-space: nowrap; font-weight: 800; }
.schools tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.schools td.num { text-align: left; }
.schools td .dd { display: block; width: fit-content; margin-top: 4px; background: var(--navy); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: .8125rem; }
.schools td .dd:empty { display: none; }
.schools tbody tr { transition: background-color .2s; }
.schools tbody tr:hover, .schools tbody tr:target { background: #f1f7f3; }
.schools td:nth-child(3) { min-width: 300px; }
.foot-note { margin-top: 14px; color: var(--muted); font-size: .9375rem; }

/* notices */
.news { padding: 64px 0; border-top: 1px solid var(--line); }
.news-list { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 var(--r) var(--r); }
.news-list:empty { display: none; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list details { border: 0; border-radius: 0; background: none; box-shadow: none; margin: 0; padding: 0; }
.news-list details[open] { background: var(--band); }
.news-list summary { padding: 0 18px; gap: 12px; justify-content: flex-start; transition: background-color .2s; }
.news-list summary:hover { background: #f1f7f3; }
.news-list summary b { min-width: 0; overflow-wrap: anywhere; }
.news-list summary em { margin-left: auto; font-style: normal; font-weight: 400; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-pin { flex: none; font-size: .75rem; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 2px 10px; }
.news-body { padding: 4px 18px 20px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60em; }
.news-more { margin-top: 14px; }
.news .lib-msg { border-top-width: 3px; }

/* library */
.library { padding: 64px 0; border-top: 1px solid var(--line); }
.lib-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; }
.lib-tabs button { min-height: 54px; border: 0; border-radius: var(--r) var(--r) 0 0; background: var(--tile); font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.lib-tabs button:hover { color: var(--ink); }
.lib-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.lib-tabs b { font-variant-numeric: tabular-nums; opacity: .8; }
.lib-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 18px; background: var(--band); border-top: 3px solid var(--navy); }
.lib-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.lib-path button { border: 0; background: none; padding: 6px 2px; font: inherit; font-weight: 600; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lib-path .sep { color: var(--muted); }
.lib-sort { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.lib-sort select, .adm .mini { min-height: 40px; border: 2px solid var(--line); border-radius: var(--r); padding: 0 10px; font: inherit; background: #fff; color: var(--ink); }
.lib-bar + .lib-list, .lib-bar ~ .lib-msg { border-top-width: 1px; border-top-color: var(--line); }
.lib-list li.lib-folder { grid-template-columns: 1fr auto; padding: 0 18px 0 0; }
.lib-open { display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; border: 0; background: none; padding: 0 18px; font: inherit; font-weight: 700; color: var(--navy); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.lib-open::before { content: ""; flex: none; width: 26px; height: 20px; border-radius: 3px; background: var(--green-2); clip-path: polygon(0 0, 42% 0, 52% 18%, 100% 18%, 100% 100%, 0 100%); }
.lib-list { border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 var(--r) var(--r); }
.lib-list:empty { display: none; }
.lib-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background-color .2s; }
.lib-list li:last-child { border-bottom: 0; }
.lib-list li:hover { background: #f1f7f3; }
.lib-title { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.lib-title .lock { margin-left: 8px; font-size: .75rem; font-weight: 800; color: #fff; background: var(--coral); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; white-space: nowrap; }
.lib-file { display: block; font-size: .8125rem; color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.lib-meta { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lib-list .btn { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.lib-msg { padding: 28px 18px; color: var(--muted); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 0 0 var(--r) var(--r); }
.lib-msg:empty { display: none; }
.lib-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.lib-acts { position: relative; }
.balloon { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; background: #ffd84a; color: #3d2e00; font-size: .875rem; font-weight: 800; padding: 7px 14px; border-radius: 12px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); animation: balloon-in .18s var(--ease); }
.balloon::after { content: ""; position: absolute; left: var(--arrow, 50%); margin-left: -7px; top: 100%; border: 7px solid transparent; border-top-color: #ffd84a; }
@keyframes balloon-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .balloon { animation: none; } }
.reader { width: min(980px, 100vw - 24px); height: calc(100dvh - 24px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; }
.reader[open] { display: grid; grid-template-rows: auto 1fr; }
.reader::backdrop { background: rgba(10, 16, 40, .72); }
.reader-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.reader-head h3 { font-size: 1rem; overflow-wrap: anywhere; }
.reader-head p { font-size: .8125rem; color: var(--muted); }
.reader-head .btn { min-height: 40px; padding: 0 16px; flex: none; }
.reader-pages { overflow-y: auto; overscroll-behavior: contain; background: #e9ecef; padding: 14px; display: grid; gap: 14px; align-content: start; user-select: none; -webkit-user-select: none; }
.reader-page { width: 100%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.reader-page canvas { display: block; width: 100%; height: auto; }
.lib-staff { margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.lib-staff a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lib-acct { margin-top: 16px; background: var(--band); border-radius: var(--r); padding: 18px 20px; }
.lib-acct h3 { font-size: 1.125rem; }
.lib-acct form > p { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.acct-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin-top: 12px; }
.acct-row label { display: grid; gap: 4px; font-size: .875rem; font-weight: 700; }
.acct-row input { width: 200px; }
.acct-in { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.lib-acct .acct-msg { color: var(--coral); font-weight: 600; margin-top: 10px; }
.lib-acct .acct-msg.ok { color: var(--green); }
.acct-msg:empty { display: none; }
.acct-switch { margin-top: 10px; border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 600; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
[hidden] { display: none !important; }
.acct-row input, .adm input[type="text"], .adm input[type="password"], .adm select { min-height: 46px; border: 2px solid var(--line); border-radius: var(--r); padding: 0 12px; font: inherit; background: #fff; }
.acct-row input:focus-visible, .adm input:focus-visible, .adm select:focus-visible { outline: 0; border-color: var(--green-2); }
.adm select { color: var(--ink); }
.btn:disabled { opacity: .55; cursor: progress; }

/* videos */
.videos { padding: 64px 0; border-top: 1px solid var(--line); }
.vid-tabs { margin-bottom: 20px; }
.vid-tabs button { border-radius: var(--r); }
.videos .lib-msg { border-top-width: 1px; border-top-color: var(--line); border-radius: var(--r); }
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; }
.vid-grid:empty { display: none; }
.vid-grid li { min-width: 0; }
.vid-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--navy); cursor: pointer; }
.vid-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease), opacity .2s; }
.vid-frame:hover img { transform: scale(1.04); opacity: .88; }
.vid-frame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23fff'/%3E%3C/svg%3E") center / 34px no-repeat; transition: transform .2s var(--ease); }
.vid-frame:hover::after { transform: scale(1.1); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-frame.playing { cursor: default; }
.vid-frame.playing::after { content: none; }
.vid-title { margin-top: 10px; font-weight: 700; overflow-wrap: anywhere; }
.vid-date { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vid-msg-box { margin-top: 0; }

/* admin page */
.adm { padding: 40px 0 80px; display: grid; gap: 28px; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--navy); padding-bottom: 0; }
.adm-tabs button { min-height: 48px; border: 0; border-radius: var(--r) var(--r) 0 0; padding: 0 22px; background: var(--tile); font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.adm-tabs button:hover { color: var(--ink); }
.adm-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.adm-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.adm-group > section { grid-column: 1 / -1; }
.adm-group > form { max-width: none; }
.adm-group[data-group="settings"] > form, .adm-group[data-group="notices"] > form { grid-column: 1 / -1; max-width: 640px; }
.adm-filter { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.adm-filter input { min-width: 220px; }
.adm h2 b { font-weight: 700; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.adm h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; color: var(--navy); }
.adm form { display: grid; gap: 12px; max-width: 560px; background: var(--band); border-radius: var(--r); padding: 22px; }
.adm label { display: grid; gap: 6px; font-weight: 700; }
.adm label.inline { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.adm .msg { font-weight: 700; min-height: 1.6em; }
.adm .msg.bad { color: var(--coral); } .adm .msg.ok { color: var(--green); }
.adm .btn-del { background: var(--white); color: var(--coral); box-shadow: inset 0 0 0 2px var(--line); }
.adm .lib-list li { grid-template-columns: 1fr auto auto auto auto; }
.adm #admList .mini { max-width: 260px; }
.open-tag { margin-left: 8px; font-size: .75rem; font-weight: 800; color: #fff; background: var(--green); border-radius: 999px; padding: 2px 9px; vertical-align: 2px; white-space: nowrap; }
.adm .lib-list { border-radius: var(--r); }
.adm h3 { font-size: 1.0625rem; margin: 18px 0 10px; }
.adm-help { color: var(--muted); max-width: 46em; margin-top: 6px; }
.adm small { font-weight: 400; color: var(--muted); }
.adm #staffForm { margin-top: 14px; }
.perm-set { border: 0; padding: 0; display: grid; gap: 8px; }
.perm-set legend { font-weight: 700; margin-bottom: 6px; }
.perm-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9375rem; }
.adm #whoBox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.adm #whoBox .btn { min-height: 40px; padding: 0 14px; font-size: .9375rem; }
.adm textarea { min-height: 150px; border: 2px solid var(--line); border-radius: var(--r); padding: 10px 12px; font: inherit; line-height: 1.6; background: #fff; resize: vertical; }
.adm textarea:focus-visible { outline: 0; border-color: var(--green-2); }
.adm .list-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.adm .btn-del:hover { background: #fdeceb; }

.about { background: var(--band); padding: 64px 0; }
.about-in { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.about-copy h2 { font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem); color: var(--navy); }
.about-copy p { margin-top: 16px; max-width: 26em; }
.about-copy dl { display: grid; grid-template-columns: repeat(3, auto); gap: 20px; margin-top: 28px; justify-content: start; }
.about-copy dt { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.03em; color: var(--green); }
.about-copy dd { font-size: .875rem; color: var(--muted); }
.room { width: 100%; height: auto; border-radius: var(--r); display: block; }
/* 우리 학교 준비 현황 */
.ready { display: grid; gap: 14px; }
.ready-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.ready-pick button { min-height: 44px; border: 0; border-radius: 999px; padding: 0 16px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.ready-pick button:hover { background: var(--tile); }
.ready-pick button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.ready-card { background: var(--navy); color: #fff; border-radius: var(--r); padding: 26px 28px; display: grid; gap: 20px; }
.ready-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ready-grade { font-size: .875rem; font-weight: 700; color: #b9c2e6; }
.ready-top h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -0.03em; }
.ready-dday { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: #5fd693; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ready-facts { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.ready-facts div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.ready-facts dt { font-size: .875rem; color: #b9c2e6; font-weight: 700; }
.ready-facts dd { font-variant-numeric: tabular-nums; }
.ready-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ready-counts a { display: grid; gap: 2px; background: rgba(255, 255, 255, .1); border-radius: var(--r); padding: 14px 16px; transition: background-color .2s; }
.ready-counts a:hover { background: rgba(255, 255, 255, .18); }
.ready-counts b { font-size: 2rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ready-counts b::after { content: "건"; font-size: 1rem; font-weight: 700; margin-left: 2px; }
.ready-counts span { font-size: .875rem; color: #b9c2e6; }
.ready-grades { font-size: .875rem; color: #b9c2e6; }
.ready-grades:empty { display: none; }

.step-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step-row li { background: var(--band); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease); }
.step-row li:hover { transform: translateY(-4px); }
.step-row img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.step-row div { padding: 18px 18px 20px; display: grid; gap: 8px; }
.step-row h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.step-row p { font-size: .9375rem; color: #3a4152; }
.step-row span { width: fit-content; font-size: .8125rem; font-weight: 800; color: #fff; background: var(--green); border-radius: 999px; padding: 2px 12px; }

.fee-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.fee td.num b { font-size: 1.0625rem; color: var(--navy); }
.fee tbody th { font-weight: 600; }
.fee-fold { margin-top: 0; }
.fee-fold .fee-in { padding: 20px; }
.refund { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); }
.refund summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; cursor: pointer; list-style: none; border-radius: var(--r); transition: background-color .2s; }
.refund summary::-webkit-details-marker { display: none; }
.refund summary:hover { background: var(--band); }
.refund h3 { font-size: 1.125rem; }
.refund-hint { margin-left: auto; }
.refund-hint::before { content: "펼쳐 보기"; font-size: .9375rem; font-weight: 600; color: var(--green); }
.refund[open] .refund-hint::before { content: "접기"; }
.refund[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.refund > p, .refund > .table-wrap { margin-left: 20px; margin-right: 20px; }
.refund > p:first-of-type { margin-top: 16px; }
.refund .refund-note { padding-bottom: 20px; }
.refund > p { color: var(--muted); margin-bottom: 16px; }
.refund td b { color: var(--navy); }
.refund .refund-note { margin: 14px 20px 0; font-size: .9375rem; }
.reg { background: var(--band); border-radius: var(--r); padding: 8px 22px; }
.reg div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.reg div:last-child { border-bottom: 0; }
.reg dt { color: var(--muted); font-size: .9375rem; }
.reg dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.reg a { color: var(--green); }

.qa { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: background-color .2s; }
details[open] { background: var(--band); }
summary { cursor: pointer; list-style: none; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 1.0625rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
details[open] summary::after { transform: rotate(-135deg); }
details p { padding: 0 0 18px; color: #3a4152; max-width: 48em; }
details p a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.visit { background: var(--navy); color: #fff; padding: 56px 0; }
.visit-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.visit-map { display: block; width: 100%; aspect-ratio: 3 / 2; border: 0; border-radius: var(--r); background: #dfe5ea; }
.center h2 { color: #b9c2e6; font-size: 1.125rem; }
.center-tel { display: block; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; margin: 4px 0 12px; }
.center-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.visit .btn-o { box-shadow: none; }

.foot { background: #0d1433; color: #aab2d0; padding: 30px 0 90px; font-size: .875rem; }
.foot-in { display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; color: #fff; font-weight: 600; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid #2a3360; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-logo { font-size: 1.25rem; font-weight: 900; color: #5b668f; letter-spacing: -0.03em; }

.fab { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* tablet */
@media (max-width: 1040px) {
  .nav { display: none; }
  .head { justify-content: space-between; }
  .hero-in { grid-template-columns: 1fr 250px; }
  .hero-pics { display: none; }
  .hero-copy { text-align: left; }
  .pane-sub { margin-inline: 0; }
  .board { grid-template-columns: 1fr 1fr; gap: 36px; }
  .quick { grid-column: 1 / -1; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .lists { grid-template-columns: 1fr; }
  .about-in, .fee-in, .visit-in { grid-template-columns: 1fr; gap: 28px; }
  .step-row { grid-template-columns: 1fr 1fr; }
  .vid-grid { grid-template-columns: 1fr 1fr; }
}

/* phone */
@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  .wrap { width: calc(100% - 32px); }
  .util { display: none; }
  .head { padding: 10px 0; }
  .logo { font-size: 1.25rem; }
  .call { font-size: 0; padding: 0 16px; min-height: 40px; }
  .call::before { content: "전화 상담"; font-size: .875rem; }
  .hero-in { grid-template-columns: 1fr; padding: 28px 0 22px; gap: 22px; }
  .pane-title { font-size: 11vw; }
  .consult { grid-template-columns: 1fr 1fr; align-items: center; }
  .consult > p, .consult-t, .consult-tel { grid-column: 1 / -1; }
  .tabs { grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: 14px; }
  .tabs button { font-size: .9375rem; min-height: 46px; border-radius: var(--r); background: var(--white); }
  .board { grid-template-columns: 1fr; padding: 40px 0 36px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .notice a { grid-template-columns: 58px 1fr; }
  .notice em { grid-column: 2; margin-top: -8px; }
  .mat-row { grid-template-columns: repeat(3, 1fr); gap: 22px 10px; }
  .schools, .steps, .fee, .faq, .about, .library, .videos, .news { padding: 48px 0; }
  .news-list summary { flex-wrap: wrap; padding: 10px 14px; gap: 4px 10px; }
  .news-list summary em { margin-left: 0; flex-basis: 100%; order: 3; }
  .news-list summary::after { margin-left: auto; }
  .vid-grid { grid-template-columns: 1fr; }
  .lib-tabs { grid-template-columns: 1fr; grid-auto-flow: row; gap: 6px; }
  .lib-tabs button { border-radius: var(--r); min-height: 46px; }
  .lib-bar { margin-top: 10px; border-radius: var(--r) var(--r) 0 0; }
  .lib-list { border-radius: 0 0 var(--r) var(--r); }
  .lib-list li.lib-folder .lib-meta { grid-column: 2; grid-row: 1; }
  .acct-row label, .acct-row input, .acct-row .btn { width: 100%; }
  .adm-group { grid-template-columns: 1fr; }
  .adm-tabs button { padding: 0 14px; min-height: 44px; }
  .adm .lib-list li { grid-template-columns: 1fr; }
  .adm .lib-list .lib-meta, .adm .lib-list .btn, .adm .lib-list .mini { grid-column: 1; grid-row: auto; }
  .lib-list li { grid-template-columns: 1fr auto; }
  .lib-meta { grid-column: 1; grid-row: 2; }
  .ready-card { padding: 20px 18px; }
  .lib-list .lib-acts { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  .reader-pages { padding: 8px; gap: 8px; }
  .schools thead { display: none; }
  .schools tbody tr { display: grid; gap: 4px; padding: 16px; border-bottom: 1px solid var(--line); }
  .schools tbody tr:last-child { border-bottom: 0; }
  .schools th, .schools td { padding: 0; border: 0; }
  .schools td:nth-child(3) { min-width: 0; }
  .schools td:nth-child(4)::before { content: "교과서 "; color: var(--muted); }
  .schools td:nth-child(4) { font-size: .9375rem; }
  .about-copy dl { gap: 14px; }
  .step-row { grid-template-columns: 1fr; }
  .step-row li { flex-direction: row; }
  .step-row img { width: 104px; height: auto; flex: none; }
  .reg div { grid-template-columns: 96px 1fr; }
  .center-act .btn { flex: 1 1 100%; }
  .fab { display: inline-flex; align-items: center; position: fixed; right: calc(14px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 800; box-shadow: 0 8px 22px rgba(11, 125, 59, .35); transition: transform .25s var(--ease), opacity .25s; }
  .js .fab { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .js .scrolled .fab { opacity: 1; transform: none; pointer-events: auto; }
}
