/* 학원장부 디렉터리 — modern responsive theme */
:root {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-subtle: #f1f5f9;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-soft: #f8fafc;
    --surface-glass: rgba(255, 255, 255, .82);
    --text: #0f172a;
    --text-soft: #475569;
    --text-faint: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --brand: #2563eb;
    --brand-strong: #1d4ed8;
    --brand-soft: #eff6ff;
    --brand-soft-line: #bfdbfe;
    --accent: #16a34a;
    --accent-soft: #f0fdf4;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --navy: #0f172a;
    --navy-soft: #1e293b;
    --hero-text: #f8fafc;
    --hero-muted: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 14px rgba(15, 23, 42, .04);
    --shadow-md: 0 18px 45px -18px rgba(15, 23, 42, .24);
    --shadow-lg: 0 30px 70px -28px rgba(15, 23, 42, .42);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;
    --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #020617;
    --bg-subtle: #0f172a;
    --surface: #0f172a;
    --surface-raised: #1e293b;
    --surface-soft: #111827;
    --surface-glass: rgba(15, 23, 42, .88);
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-faint: #94a3b8;
    --line: #1e293b;
    --line-strong: #334155;
    --brand: #60a5fa;
    --brand-strong: #93c5fd;
    --brand-soft: #172554;
    --brand-soft-line: #1e3a8a;
    --accent: #4ade80;
    --accent-soft: #052e16;
    --danger: #f87171;
    --danger-soft: #450a0a;
    --navy: #020617;
    --navy-soft: #0f172a;
    --hero-muted: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 5px 18px rgba(0, 0, 0, .2);
    --shadow-md: 0 20px 48px -20px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 78px -30px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: -.01em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
.container { width: min(100% - 3rem, 1180px); margin-inline: auto; }

.skip-link {
    position: fixed;
    left: 1rem;
    top: .75rem;
    z-index: 1000;
    padding: .7rem 1rem;
    color: white;
    background: var(--brand-strong);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 65%, transparent); outline-offset: 3px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
    background: var(--surface-glass);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: #93c5fd;
    background: linear-gradient(145deg, #1e3a8a, #0f172a);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px -10px rgba(9,14,30,.75);
}
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -.025em; }
.brand-copy small { margin-top: .25rem; color: var(--text-faint); font-size: .72rem; font-weight: 600; letter-spacing: .015em; }
.site-nav { display: flex; align-items: center; gap: .65rem; }
.data-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .72rem;
    color: var(--text-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    font-size: .75rem;
    font-weight: 650;
}
.data-chip > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--text-soft);
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: inline-flex; }

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: #2563eb; box-shadow: 0 10px 22px -12px rgba(37,99,235,.7); }
.btn-primary:hover { background: #1d4ed8; box-shadow: 0 15px 26px -12px rgba(37,99,235,.62); }
[data-theme="dark"] .btn-primary { color: #fff; background: #3b82f6; }
[data-theme="dark"] .btn-primary:hover { background: #2563eb; }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: .9rem 1.4rem; }

.form-group { margin: 0; }
.form-group label { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; color: var(--text-soft); font-size: .84rem; font-weight: 700; }
.form-group label svg { color: var(--text-faint); }
.form-group input, .form-group select {
    width: 100%;
    min-height: 48px;
    padding: .76rem .9rem;
    color: var(--text);
    background: var(--surface-soft);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-group input::placeholder { color: var(--text-faint); }
.form-group input:hover, .form-group select:hover { border-color: color-mix(in srgb, var(--line-strong) 70%, var(--brand)); }
.form-group input:focus, .form-group select:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.section-kicker { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .8rem; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .68rem; border-radius: var(--radius-full); font-size: .76rem; font-weight: 750; }
.badge-success { color: var(--accent); background: var(--accent-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-brand { color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-soft-line); }
.alert { display: flex; align-items: flex-start; gap: .7rem; padding: 1rem 1.1rem; border: 1px solid; border-radius: var(--radius-md); font-size: .9rem; }
.alert svg { flex: none; margin-top: .18rem; }
.alert-info { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-soft-line); }
.alert-error { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

.site-footer { margin-top: 5rem; padding: 2.5rem 0; background: var(--surface-soft); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.footer-leading p, .footer-meta p { margin: .65rem 0 0; color: var(--text-faint); font-size: .8rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; }
.footer-brand .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
.footer-meta { text-align: right; }
.footer-meta p { max-width: 620px; margin-left: auto; }

@media (max-width: 760px) {
    .container { width: min(100% - 2rem, 1180px); }
    .header-inner { min-height: 64px; }
    .brand-copy small, .data-chip { display: none; }
    .brand-mark { width: 36px; height: 36px; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-meta { text-align: left; }
    .footer-meta p { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
