/* 리포트입시학원 — Banksalad tokens */
:root {
  --canvas: #ffffff;
  --alt: #fbfbfb;
  --alt-2: #f5f5f5;
  --ink: #111111;
  --heading: #111111;
  --body: #555c68;
  --body-warm: #434444;
  --muted: #9fa4b0;
  --caption: #7b7b7b;
  --placeholder: #999999;
  --accent: #13bd7e;
  --action: #06a96c;
  --primary: #04c584;
  --hover: #10df99;
  --focus-tint: #f3fdfa;
  --border: #e1e1e1;
  --border-soft: #f0f2f5;
  --header-line: #f5f5f5;
  --error: #fe493d;
  --warning: #fd8700;
  --warning-text: #f56200;
  --disabled-bg: #e1e1e1;
  --disabled-text: #acacac;
  --amount: #2b2b2b;
  --chart-1: #34464b;
  --chart-2: #5c818a;
  --chart-3: #1c6c73;
  --chart-4: #a7c7cf;
  --radius: 2px;
  --radius-chip: 41px;
  --shadow-card: 0 2px 5px rgba(0, 0, 0, 0.12);
  --header-h: 64px;
  --wrap: 1120px;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font-family: inherit; font-size: 16px; font-weight: 500; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -0.09px; }
h1 { font-size: 20px; line-height: 28px; }
h2 { font-size: 20px; line-height: 28px; }
h3 { font-size: 18px; line-height: 26px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: var(--action);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--header-line);
}
.header-inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
}
.logo:hover { text-decoration: none; }
.gnb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  flex: 1;
}
.gnb a {
  color: var(--body-warm);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
}
.gnb a:hover { color: var(--action); text-decoration: none; }
.gnb a.is-active {
  color: var(--action);
  font-weight: 700;
}
.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--action); text-decoration: none; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  background: var(--action);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--hover);
  text-decoration: none;
  color: #fff;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--canvas);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 3px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--action);
  color: #fff;
}
.btn-primary:hover { background: var(--hover); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--action);
  border: 1px solid var(--action);
}
.btn-ghost:hover { background: var(--focus-tint); }
.btn-neutral {
  background: var(--alt-2);
  color: var(--body-warm);
}
.btn-neutral:hover { background: var(--border); }
.btn:disabled,
.btn.is-disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Page hero / inner title */
.page-head {
  background: var(--alt);
  border-bottom: 1px solid var(--border-soft);
  padding: 32px 0;
}
.page-head .crumb {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--muted);
  margin-bottom: 8px;
}
.page-head .crumb a { color: var(--muted); }
.page-head h1 { margin-bottom: 8px; }
.page-head p { margin: 0; color: var(--body); max-width: 720px; }

/* Home hero */
.hero {
  position: relative;
  min-height: 420px;
  background: var(--ink) center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.78) 0%, rgba(17,17,17,.42) 56%, rgba(17,17,17,.12) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}
.hero-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero h1 {
  color: #fff;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 8px;
}
.hero .hero-lead {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  margin-bottom: 16px;
}
.hero p {
  color: #d8dfe6;
  max-width: 560px;
  margin-bottom: 24px;
}
.hero .btn-row { margin-top: 4px; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head p { margin: 4px 0 0; color: var(--body); }
.section-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--action);
  white-space: nowrap;
}

/* KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kpi {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.kpi .label {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--muted);
  margin-bottom: 8px;
}
.kpi .value {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--ink);
}
.kpi .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  margin-left: 2px;
}
.kpi .note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--caption);
}

/* Cards */
.card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.card-soft {
  background: var(--alt);
  border: none;
  box-shadow: none;
}
.card-highlight {
  background: var(--focus-tint);
  border: 1px solid var(--hover);
  box-shadow: none;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  background: var(--focus-tint);
  color: var(--action);
  border-radius: var(--radius-chip);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.chip-filter {
  background: rgba(19, 189, 126, 0.15);
  color: var(--accent);
  border-radius: 6px;
  height: auto;
  padding: 6px 12px;
  font-size: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: var(--body-warm);
  background: #fff;
}
.badge-ok { color: var(--action); border-color: var(--action); }
.badge-warn { color: var(--warning-text); border-color: var(--warning); }
.badge-neg { color: var(--error); border-color: var(--error); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table.data {
  min-width: 640px;
}
table.data th {
  background: var(--alt-2);
  color: var(--caption);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--body-warm);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tbody tr:nth-child(even) td { background: var(--alt); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num,
table.data th.num {
  text-align: right;
  font-weight: 700;
  color: var(--amount);
  font-variant-numeric: tabular-nums;
}
table.data a { font-weight: 500; }
table.data tr.is-hl td { background: var(--focus-tint); }

/* Definition / info table */
table.info th {
  width: 180px;
  background: var(--alt-2);
  color: var(--caption);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
table.info td {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-warm);
  border-bottom: 1px solid var(--border);
}

/* Lists */
.notice-list { list-style: none; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.notice-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.notice-list li:last-child { border-bottom: none; }
.notice-list .date {
  flex: 0 0 96px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.notice-list a {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
}
.notice-list a:hover { color: var(--action); }

/* Teachers */
.teacher-card h3 { margin-bottom: 8px; }
.teacher-meta {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 12px;
  font-size: 14px;
}
.teacher-meta dt { color: var(--muted); font-weight: 500; }
.teacher-meta dd { margin: 0; color: var(--body-warm); font-weight: 500; }
.teacher-meta dd.num { font-weight: 700; color: var(--amount); }

/* Principles */
.principle {
  padding: 20px 24px;
}
.principle .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--action);
  margin-bottom: 8px;
}

/* Forms */
.form { max-width: 640px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .req { color: var(--error); margin-left: 2px; }
.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--body-warm);
}
.field textarea { height: 140px; padding: 12px 16px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--focus-tint);
  border-color: var(--hover);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #fff;
}
.field-error {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--error);
}
.form-note {
  font-size: 12px;
  color: var(--caption);
  margin: 0 0 16px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.alert-ok {
  background: var(--focus-tint);
  border-color: var(--hover);
}
.alert-ok strong {
  display: block;
  color: var(--action);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Notice article */
.article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.article-head h1 { margin-bottom: 12px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.article-body {
  padding: 24px;
  color: var(--body-warm);
}
.article-body p { margin-bottom: 16px; }
.article-body h3 { margin: 24px 0 12px; }
.article-body ul {
  margin: 0 0 16px 18px;
}
.article-body li { margin-bottom: 6px; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 40px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d8dfe6; margin-bottom: 20px; }

/* Map / hours */
.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.hours-row:last-child { border-bottom: none; }
.hours-row dt { color: var(--muted); }
.hours-row dd { margin: 0; font-weight: 700; color: var(--ink); }

.media-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--alt-2);
}
.media-frame img { width: 100%; height: auto; }

/* Footer */
.site-footer {
  background: var(--alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  font-size: 13px;
  color: var(--caption);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.site-footer strong { color: var(--ink); font-size: 14px; display: block; margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; color: var(--body); font-size: 13px; line-height: 20px; }
.footer-nav { list-style: none; }
.footer-nav a { color: var(--body); font-size: 13px; }
.footer-copy {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .gnb {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--header-line);
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 16px 16px;
  }
  .gnb.is-open { display: flex; }
  .gnb a { padding: 12px 8px; }
  .header-phone { display: none; }
  .header-cta { display: none; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .kpi-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 360px; }
  .hero-inner { min-height: 360px; }
  table.data { min-width: 560px; }
}
