/* ==========================================================================
   분당 교육정보 — 리뉴얼 스타일
   1. 토큰  2. 기본  3. 공통 레이아웃(상단·하단 메뉴)  4. 공통 부품
   5. 차트  6. 홈  7. 학교 찾기  8. 학교 상세  9. 학교 비교  10. 모의고사  11. 대학 입시
   색·글꼴·간격은 1번 토큰만 바꾸면 전체에 반영됩니다.
   ========================================================================== */

/* 학교 확인값과 제보 근거 */
.cut-evidence-block { display:grid; gap:6px; min-width:0; }
.cut-evidence-label { margin-top:10px; font-size:12px; font-weight:700; color:var(--ink-3); }
.cut-evidence { display:grid; gap:5px; min-width:0; align-content:start; }
.cut-evidence > strong { font-size:17px; color:var(--brand-strong); line-height:1.4; font-variant-numeric:tabular-nums; }
.cut-evidence small, .cut-distribution small { display:block; color:var(--ink-3); font-size:12px; line-height:1.65; }
.cut-evidence .badge { justify-self:start; }
.cut-evidence .src-link { white-space:normal; font-size:12px; }
.cut-evidence .cut-conflict { color:var(--amber-ink); }
.cut-distribution { margin-top:10px; padding-top:8px; border-top:1px solid var(--line); font-size:12px; color:var(--ink-2); }
.cut-distribution > summary { cursor:pointer; min-height:36px; align-content:center; }
.cut-distribution > div { padding-top:7px; display:grid; gap:5px; }
.cut-distribution .rank-cut-note { font-size:12px; }
.detail-cut-record { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.detail-cut-record > p { font-size:13px; color:var(--ink-2); }
.participation-links { display:flex; flex-wrap:wrap; gap:8px 22px; font-size:14px; color:var(--brand-strong); }
.participation-links a { display:inline-flex; min-height:40px; align-items:center; text-underline-offset:4px; }
.report-event { display:grid; grid-template-columns:88px minmax(0,1fr) auto; align-items:center; gap:24px; margin:28px 0 0; padding:26px 30px; border:1px solid #c9dacc; border-radius:20px; background:linear-gradient(115deg,#edf5e9,#faf5df); }
.report-event__art { width:88px; height:104px; display:grid; align-items:center; color:#32543c; }
.report-event__art svg { width:100%; }
.report-event__kicker { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; font-size:13px; font-weight:650; color:var(--brand-strong); }
.report-event__status { padding:3px 9px; border:1px solid #d4b76e; border-radius:999px; color:#6a4b05; background:#fff4ce; font-size:12px; white-space:nowrap; }
.report-event h2 { margin:7px 0; font-size:26px; line-height:1.3; font-weight:800; letter-spacing:-.035em; }
.report-event__eligibility { display:flex; flex-wrap:wrap; gap:3px 12px; font-size:14px; }
.report-event__eligibility strong { color:var(--brand-strong); }
.report-event__eligibility span { color:var(--ink-2); }
.report-event__note { margin-top:7px; max-width:44em; font-size:12px; color:var(--ink-2); line-height:1.6; }
.report-event__actions { display:grid; gap:7px; min-width:156px; }
.report-event__actions .btn { min-height:42px; font-size:13px; }
.report-event__details { display:inline-flex; justify-content:center; align-items:center; min-height:30px; font-size:12px; color:var(--ink-2); text-underline-offset:3px; }
.report-event + .hero { padding-top:40px; }
.report-event-share { width:min(500px,calc(100% - 32px)); max-height:calc(100dvh - 48px); }
.report-event-share__head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.report-event-share__head h2 { margin:0; }
.report-event-share__head button { min-height:40px; flex-shrink:0; }
.report-event-share__notice { margin:12px 0 18px; padding:12px; border-radius:10px; color:#6a4b05; background:#fff4ce; font-size:13px; line-height:1.7; }
.report-event-share__label { display:block; margin-bottom:7px; font-size:13px; font-weight:650; }
.report-event-share textarea { display:block; width:100%; box-sizing:border-box; min-height:180px; resize:vertical; border:1px solid var(--line-2); border-radius:9px; padding:12px; background:var(--bg); color:var(--ink); font:inherit; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.report-event-share__actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.report-event-share__actions .btn { min-height:42px; }
.report-event-share__message { margin-top:10px; font-size:13px; color:var(--brand-strong); line-height:1.6; }
@media(max-width:719px) {
  .report-event { grid-template-columns:minmax(0,1fr); gap:16px; margin-top:22px; padding:20px; }
  .report-event__art { display:none; }
  .report-event h2 { font-size:24px; }
  .report-event__actions { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .report-event__actions .btn { padding:10px 8px; font-size:12px; white-space:normal; }
  .report-event__details { grid-column:1/-1; min-height:36px; }
  .report-event + .hero { padding-top:28px; }
  .report-event-share { padding:20px; }
  .report-event-share__actions .btn { flex:1; padding:10px 8px; font-size:12px; white-space:normal; }
}
@media(max-width:719px) {
  .cut-evidence > strong { font-size:15px; }
  .cut-evidence .src-link, .cut-distribution > summary { min-height:40px; }
}

/* ---------- 1. 토큰 ---------- */
:root {
  /* 바탕 */
  --bg: #f6f5f1;
  --surface: #ffffff;
  --inset: #efeee8;
  --line: #e6e4dc;
  --line-2: #d5d2c7;

  /* 글자 */
  --ink: #131a16;
  --ink-2: #47524c;
  --ink-3: #66716b;
  --ink-4: #9aa39e;

  /* 브랜드(짙은 녹색): 가장 중요한 버튼과 강조에만 */
  --brand: #0c6b4d;
  --brand-strong: #004934;
  --brand-tint: #e2efe8;
  --brand-wash: #f1f7f3;

  /* 알림 */
  --amber-ink: #7a5200;
  --amber-tint: #fdf1cf;

  /* 차트 ① 성취도 A→E: 한 색상의 명도 단계(높은 성취도가 진함). 검증: validate_palette --ordinal 통과 */
  --ach-a: #004934;
  --ach-b: #0c6b4d;
  --ach-c: #2f8e69;
  --ach-d: #5ba986;
  --ach-e: #8ac1a5;
  /* 차트 ② 평가계획: 정기시험 1차·2차(파랑 2단계) / 수행평가(주황). 검증: 색각 인접 ΔE 23.9 통과 */
  --plan-1: #1c5cab;
  --plan-2: #6da7ec;
  --plan-3: #eb6834;
  --on-dark: #ffffff;
  --on-light: #0b0b0b;

  /* 모양 */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(19, 26, 22, .05), 0 2px 10px rgba(19, 26, 22, .04);
  --shadow-2: 0 2px 6px rgba(19, 26, 22, .06), 0 18px 44px -12px rgba(19, 26, 22, .18);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;

  --topbar-h: 64px;
  --tabbar-h: 62px;
  --gutter: 32px;
}
@media (max-width: 859px) {
  :root { --topbar-h: 54px; --gutter: 20px; }
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;        /* 한글이 단어 중간에서 끊기지 않게 */
  overflow-wrap: anywhere;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.3; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- 3. 공통 레이아웃 ---------- */
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
main.wrap { min-height: 64vh; padding-bottom: 72px; outline: none; }
main.enter > * { animation: enter .22s ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sample-banner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 10px;
  padding: 7px 16px; font-size: 13.5px; text-align: center;
  background: var(--amber-tint); color: var(--amber-ink);
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17.5px; font-weight: 760; letter-spacing: -.03em; text-decoration: none; white-space: nowrap;
}
.brandmark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-strong); color: #fff; font-size: 16px; font-weight: 800; line-height: 1;
}
.nav { display: flex; gap: 4px; }
.nav a {
  height: 38px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 15.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(19, 26, 22, .05); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-strong); }

.tabbar { display: none; }
.account-link { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:6px 12px; border:1px solid var(--line-2); border-radius:999px; text-decoration:none; font-size:13px; font-weight:650; white-space:nowrap; flex-shrink:0; }
.account-link:hover { background:var(--brand-tint); }
.topbar__inner { gap:14px; }
.nav a { padding-inline:11px; }
@media (min-width:860px) and (max-width:1020px) {
  .topbar__inner { gap:8px; }
  .nav { gap:0; }
  .nav a { padding-inline:7px; font-size:13px; }
  .brand { font-size:16px; gap:7px; }
  .account-link { padding-inline:8px; font-size:12px; }
}
@media (max-width: 859px) {
  .nav { display: none; }
  .topbar__inner { justify-content: space-between; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; position: relative;
    white-space: nowrap;
  }
  .tabbar a:focus-visible { outline-offset: -3px; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { color: var(--brand-strong); }
  .tabbar a[aria-current="page"]::before {
    content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-strong);
  }
}

.footer { border-top: 1px solid var(--line); padding: 26px 0 30px; font-size: 13.5px; color: var(--ink-3); }
.footer__inner { display: grid; gap: 4px; }
.footer strong { color: var(--ink-2); }

/* ---------- 4. 공통 부품 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn--primary { background: var(--brand-strong); color: #fff; }
.btn--primary:hover { background: #00392a; }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-4); }
.btn--soft { background: var(--brand-tint); color: var(--brand-strong); }
.btn--soft:hover { background: #d3e7dc; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; gap: 5px; }
.btn[aria-pressed="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* 홈의 가장 중요한 버튼 */
.btn--xl {
  height: 64px; padding: 0 22px 0 20px; border-radius: 16px; justify-content: space-between;
  font-size: 18.5px; font-weight: 720; letter-spacing: -.02em;
  box-shadow: 0 10px 24px -10px rgba(0, 73, 52, .6);
}
.btn--xl:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(0, 73, 52, .65); }
.btn--xl .btn__lead { display: inline-flex; align-items: center; gap: 12px; }
.btn--xl .ic { width: 24px; height: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font-size: 14.5px; font-weight: 560; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip[aria-current="true"], .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-disabled="true"], .chip[disabled] { opacity: .42; pointer-events: none; }
.chip .count { font-size: 12.5px; opacity: .65; font-variant-numeric: tabular-nums; }

.segc { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--inset); }
.segc > a, .segc > span {
  height: 34px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.segc > a:hover { color: var(--ink); }
.segc > [aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 26, 22, .14); }
.segc > [aria-disabled="true"] { opacity: .5; pointer-events: none; }
.segc small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 650; background: var(--inset); color: var(--ink-2); white-space: nowrap;
}
.badge--brand { background: var(--brand-tint); color: var(--brand-strong); }
.badge--amber { background: var(--amber-tint); color: var(--amber-ink); }
.badge--line { background: transparent; border: 1px solid var(--line-2); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
@media (max-width: 719px) { .card { padding: 20px 18px; border-radius: 18px; } }

.page-head { padding: 38px 0 22px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 780; letter-spacing: -.035em; }
.page-head p { margin-top: 8px; color: var(--ink-2); font-size: 16px; max-width: 46em; }
@media (max-width: 719px) { .page-head { padding: 26px 0 18px; } .page-head p { font-size: 15px; } }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.sec-head h2 { font-size: 22px; font-weight: 760; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--brand-strong); }

.src-link {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; white-space: nowrap;
}
.src-link:hover { color: var(--brand-strong); text-decoration-color: currentColor; }

.empty {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 20px;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-3);
}
.empty strong { color: var(--ink); font-size: 16.5px; }
.empty .btn { margin-top: 12px; }
#main > .empty { margin-block: 32px; }
.empty--inline { padding: 22px 16px; border-radius: var(--r-md); font-size: 14.5px; }

.tbl { width: 100%; font-size: 14.5px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { border-top: 0; padding-top: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tbl tbody th { font-weight: 650; white-space: nowrap; }
.tbl thead th small { display: block; font-weight: 500; font-size: 11.5px; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td, .tbl tfoot th { font-weight: 700; border-top: 1px solid var(--line-2); }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; vertical-align: 0; }

details.more-table { margin-top: 16px; }
details.more-table > summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
details.more-table > summary::-webkit-details-marker { display: none; }
details.more-table > summary::before { content: "＋"; font-weight: 500; }
details.more-table[open] > summary::before { content: "－"; }
details.more-table[open] > summary { margin-bottom: 12px; }

/* 검색(자동완성) */
.combo { position: relative; }
.combo__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.combo__input {
  width: 100%; height: 62px; padding: 0 20px 0 52px; border-radius: 16px;
  border: 1.5px solid var(--line-2); background: var(--surface); font-size: 17px; box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.combo__input::placeholder { color: var(--ink-3); }
.combo__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.combo__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-2);
  max-height: 328px; overflow: auto;
}
.combo__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.combo__opt small { font-weight: 500; font-size: 13px; color: var(--ink-3); }
.combo__opt[aria-selected="true"], .combo__opt:hover { background: var(--brand-wash); }
.combo__empty { padding: 14px 12px; color: var(--ink-3); font-size: 14.5px; }
.combo--md .combo__input { height: 46px; font-size: 15.5px; border-radius: 12px; padding-left: 44px; box-shadow: none; border-width: 1px; }
.combo--md .combo__icon { left: 14px; width: 19px; height: 19px; }

/* 비교함 */
.tray {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: 20px;
  width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2);
}
.tray__label { font-size: 13px; color: #b7c2bc; white-space: nowrap; }
.tray__label b { color: #fff; font-variant-numeric: tabular-nums; }
.tray__more { font-size: 13.5px; color: #b7c2bc; white-space: nowrap; padding-right: 8px; }
.tray__list { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tray__list::-webkit-scrollbar { display: none; }
.tray__chip {
  display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .13); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.xbtn { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .7; }
.xbtn:hover { opacity: 1; background: rgba(127, 127, 127, .2); }
.xbtn .ic { width: 14px; height: 14px; }
body.has-tray main.wrap { padding-bottom: 140px; }
@media (max-width: 859px) {
  .tray { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); }
  .tray__label span { display: none; }
}

.toast {
  position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 96px;
  background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow-2);
  max-width: calc(100% - 32px);
}
@media (max-width: 859px) { .toast { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 76px); } }

.dialog { width: min(440px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 26px; box-shadow: var(--shadow-2); color: var(--ink); }
.dialog::backdrop { background: rgba(19, 26, 22, .45); }
.dialog h2 { font-size: 20px; font-weight: 760; }
.dialog__context { margin: 6px 0 18px; color: var(--ink-2); font-size: 14.5px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.field select, .field input[type="file"] {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500;
}
.field input[type="file"] { padding: 9px 12px; height: auto; }
#upload-msg { min-height: 1.4em; margin: 0 0 12px; font-size: 14px; color: var(--amber-ink); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- 5. 차트 ---------- */
/* 구성 막대: 한 전체를 부분으로 나눈 막대. 조각 사이는 바탕색 2px 간격으로 구분(테두리 없음). */
.segbar { display: flex; gap: 2px; height: 28px; }
.seg {
  flex: var(--w) 0 0; min-width: 3px; border-radius: 4px; background: var(--c);
  display: flex; align-items: center; padding-left: 8px; container-type: inline-size;
  color: var(--on-dark); cursor: default; transition: filter .12s;
}
.seg[data-tone="light"] { color: var(--on-light); }
.seg:hover, .seg:focus-visible { filter: brightness(1.12); }
.seg__label { font-size: 12.5px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg__label b { font-weight: 750; margin-right: 3px; }
/* 글자가 들어갈 자리가 없으면 잘라내지 않고 숨긴다. 값은 범례·표·툴팁에 남는다. */
@container (max-width: 57px) { .seg__label .v { display: none; } }
@container (max-width: 24px) { .seg__label { display: none; } }
/* 좁은 화면의 성취도 막대는 글자를 등급 문자로 통일한다(값은 바로 아래 표에 있음) */
@media (max-width: 599px) { .segbar--ach .seg__label .v { display: none; } }
.segbar--thin { height: 8px; }
.segbar--thin .seg { padding: 0; border-radius: 4px; }
.segbar--main { height: 10px; }
.segbar--main .seg { border-radius: 5px; }
.segbar--ref { height: 6px; }
.segbar--ref .seg { border-radius: 3px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; }
.legend em { font-style: normal; color: var(--ink-3); margin-left: 4px; }

/* 이름이 붙은 막대 줄(여러 전체를 같은 축에서 비교) */
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; }
.row__name { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.row__name small { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.row--ref .row__name { font-weight: 500; color: var(--ink-3); font-size: 13px; }
@media (max-width: 599px) {
  .row { grid-template-columns: 1fr; gap: 5px; }
  .row__name small { display: inline; margin-left: 6px; }
}

.tip {
  position: fixed; z-index: 95; pointer-events: none; max-width: 240px;
  background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 11px; font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 24px -6px rgba(19, 26, 22, .4);
}
.tip__value { display: block; font-size: 15px; font-weight: 720; font-variant-numeric: tabular-nums; }
.tip__title { display: block; color: #c9d2cd; }
.tip__sub { display: block; color: #9eaaa4; font-size: 12px; }

/* ---------- 6. 홈 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 64px; align-items: start; padding: 64px 0 60px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 12px 5px 10px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-strong); font-size: 13.5px; font-weight: 650;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero__title { font-size: clamp(31px, 4.5vw, 50px); font-weight: 800; letter-spacing: -.045em; line-height: 1.2; }
.hero__title mark { color: inherit; background: linear-gradient(transparent 62%, #c9e5d7 62%); padding: 0 2px; margin: 0 -2px; }
.hero__lead { margin: 16px 0 28px; max-width: 33em; color: var(--ink-2); font-size: clamp(15.5px, 1.45vw, 17.5px); }
.hero__actions { display: grid; gap: 12px; max-width: 560px; }
.hero__hint { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.hero__hint a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.hero__hint a:hover { color: var(--brand-strong); }

.preview { position: relative; }
.preview::before {
  content: ""; position: absolute; inset: -34px -30px -30px -24px; border-radius: 40px; z-index: 0;
  background: radial-gradient(120% 90% at 85% 10%, #d6ebdf 0%, rgba(214, 235, 223, 0) 62%), linear-gradient(160deg, #e9f2ec, #f1efe6);
}
.preview__card {
  position: relative; z-index: 1; display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-2);
  transition: transform .2s, box-shadow .2s;
}
a.preview__card:hover { transform: translateY(-2px); }
.preview__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.preview__title { font-size: 18px; font-weight: 760; letter-spacing: -.025em; }
.preview__sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.preview__school { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 14px 0 7px; }
.preview__school b { font-size: 15.5px; font-weight: 700; }
.preview__school span { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.preview__school span strong { font-size: 16px; color: var(--ink); font-weight: 760; }
.preview__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
}
.preview__foot b { color: var(--ink); font-variant-numeric: tabular-nums; }
.preview__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--brand-strong); white-space: nowrap; }
.priority-cuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rank-cut-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 4px 6px 4px 0; vertical-align: middle; }
.rank-cut-note { display: block; margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.priority-cut { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; background: var(--brand-wash); border-radius: var(--r-md); }
.priority-school { color: var(--ink-2); font-size: 14px; font-weight: 650; }
.priority-value { margin-block: 2px 4px; color: var(--ink); font-size: 22px; font-weight: 760; line-height: 1.3; }
.priority-cut .src-link { margin-top: auto; }
.preview-section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.preview-section h3 { font-size: 16px; line-height: 1.4; }
.preview-section .tbl { margin-top: 8px; font-size: 13.5px; }
.preview-section .tbl :is(th, td) { white-space: normal; }
.preview__card .src-link { white-space: normal; }
.preview__card details.more-table > summary { min-height: 40px; }
@media (max-width: 599px) {
  .preview-section .tbl :is(th, td) { padding-inline: 4px; }
  .priority-cut { padding-inline: 10px; }
  .preview-section .src-link, .priority-cut .src-link { min-height: 36px; }
}

.home-mock { padding-bottom: 8px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mock-card { padding: 22px 22px 16px; display: flex; flex-direction: column; }
.mock-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mock-card__grade { font-size: 13px; font-weight: 700; color: var(--brand-strong); background: var(--brand-tint); border-radius: 8px; padding: 3px 9px; }
.mock-card__name { font-size: 19px; font-weight: 760; letter-spacing: -.03em; }
.mock-card__year { font-size: 13.5px; color: var(--ink-3); }
.mcols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.mcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 0 2px 14px; border-left: 1px solid var(--line); }
.mcol:first-child { padding-left: 0; border-left: 0; }
.mcol__main { flex: 1; display: flex; flex-direction: column; text-decoration: none; }
.mcol__subj { font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.mcol__val { font-size: 31px; font-weight: 780; letter-spacing: -.04em; line-height: 1.25; transition: color .15s; }
.mcol__val small { font-size: 15px; font-weight: 650; letter-spacing: -.02em; color: var(--ink-2); margin-left: 1px; }
.mcol__list { display: grid; gap: 1px; margin: 5px 0 3px; font-size: 13.5px; color: var(--ink-2); }
.mcol__list span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; max-width: 70px; }
.mcol__list b { font-size: 16px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; transition: color .15s; }
.mcol__cap { font-size: 12px; color: var(--ink-3); }
.mcol__main:hover .mcol__val, .mcol__main:hover .mcol__list b { color: var(--brand); }
.mcol .btn { align-self: flex-start; padding: 0 10px; }
.mock-card__more { justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 34px 0 46px; }
  .preview::before { inset: -18px -12px; border-radius: 28px; }
  .mock-cards { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .hero__actions { max-width: none; }
  .btn--xl { height: 60px; font-size: 17.5px; }
  .combo__input { height: 58px; font-size: 16px; }
  .preview__card { padding: 20px 18px; border-radius: 20px; }
}

/* ---------- 7. 학교 찾기 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar .combo { flex: 1 1 280px; max-width: 380px; }
.toolbar__count { margin-left: auto; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.school-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.school-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px 18px 20px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.school-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.school-card__name { font-size: 17.5px; font-weight: 740; letter-spacing: -.03em; text-decoration: none; }
.school-card__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* 카드 전체가 링크 */
.school-card__meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-3); }
.school-card__pick { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; }
@media (max-width: 959px) { .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .school-grid { grid-template-columns: 1fr; gap: 8px; }
  .school-card { padding: 15px 12px 15px 16px; border-radius: 16px; }
  .toolbar .combo { max-width: none; flex-basis: 100%; }
}

/* ---------- 8. 학교 상세 ---------- */
.crumb { display: inline-flex; align-items: center; gap: 4px; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.school-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px 0 20px; }
.school-head h1 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.school-head__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.school-head__acts { display: flex; flex-wrap: wrap; gap: 8px; }

.selbar {
  position: sticky; top: var(--topbar-h); z-index: 20; margin: 0 calc(var(--gutter) * -1) 18px; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 12px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.selbar::-webkit-scrollbar { display: none; }
.selbar .chips { flex-wrap: nowrap; }
@media (max-width: 599px) {
  .selbar { gap: 8px; }
  .selbar .segc > a, .selbar .segc > span { padding: 0 10px; }
  .selbar .chip { height: 34px; padding: 0 12px; }
  .selbar .chips { gap: 6px; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 28px; align-items: start; }
.detail__aside { position: sticky; top: calc(var(--topbar-h) + 74px); display: grid; gap: 12px; }
@media (max-width: 959px) { .detail { grid-template-columns: 1fr; } .detail__aside { position: static; } }

.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px 26px; scroll-margin-top: 140px; }
.sec + .sec { margin-top: 14px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 20px; }
.sec__n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); font-size: 13.5px; font-weight: 780; }
.sec__title { font-size: 19px; font-weight: 760; }
.sec__term { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--inset); border-radius: 999px; padding: 3px 11px; }
.sec__src { margin-left: auto; }
.sec__courses { margin: -8px 0 20px; }
@media (max-width: 719px) { .sec { padding: 20px 18px 22px; border-radius: 18px; } }

.ach-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; margin-bottom: 24px; }
.ach-top .kv { margin: 0 0 8px; }
.cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.cell { padding: 13px 14px 12px; border-left: 1px solid var(--line); min-width: 0; }
.cell:first-child { border-left: 0; }
.cell__k { display: flex; align-items: center; font-size: 13.5px; font-weight: 720; }
.cell__k .swatch { margin-right: 6px; }
.cell__v { margin-top: 3px; font-size: 22px; font-weight: 770; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cell__v small { font-size: 13px; font-weight: 650; color: var(--ink-2); margin-left: 1px; }
.cell__d { margin-top: 2px; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 599px) {
  .cell { padding: 11px 8px 10px; }
  .cell__v { font-size: 17px; }
  .cell__v small { font-size: 11.5px; }
  .cell__d { font-size: 11.5px; }
}

.figure__label { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.figure__value { margin-top: 2px; font-size: 54px; font-weight: 790; letter-spacing: -.045em; line-height: 1.08; } /* 화면의 대표 숫자는 이것 하나 */
.figure__value small { font-size: 19px; font-weight: 650; letter-spacing: -.02em; color: var(--ink-2); margin-left: 3px; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.kv b { color: var(--ink); font-weight: 650; margin-left: 5px; font-variant-numeric: tabular-nums; }
.chart-title { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }

.pairs { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.pair__label { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.pair__value { font-size: 30px; font-weight: 770; letter-spacing: -.035em; line-height: 1.15; }
.pair__value small { font-size: 16px; font-weight: 650; color: var(--ink-2); margin-left: 1px; }

.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 719px) { .duo { grid-template-columns: 1fr; gap: 22px; } }
.duo h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; letter-spacing: 0; }
.cutbox__value { font-size: 30px; font-weight: 770; letter-spacing: -.035em; line-height: 1.2; margin-top: 8px; }
.cutbox__value small { font-size: 16px; font-weight: 650; color: var(--ink-2); }
.cutbox p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.cutbox .src-link { margin-top: 10px; }
.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sources li:first-child { border-top: 0; padding-top: 0; }
.sources small { display: block; color: var(--ink-3); font-size: 12.5px; }

.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 16px; }
.slot .ic { width: 20px; height: 20px; color: var(--ink-3); }
.slot b { display: block; margin-top: 8px; font-size: 15px; }
.slot p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.slot--filled { border-style: solid; border-color: var(--line); }
.slot--filled a { font-weight: 600; }
@media (max-width: 719px) { .slots { grid-template-columns: 1fr; } }

.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.aside-card h2 { font-size: 16.5px; font-weight: 740; }
.aside-card p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.aside-card .chips { margin-top: 12px; gap: 6px; }
.aside-card .chip { height: 32px; padding: 0 11px; font-size: 13.5px; }
.aside-card .btn { width: 100%; margin-top: 14px; }
.aside-card--plain { background: transparent; border-style: dashed; }

/* ---------- 9. 학교 비교 ---------- */
.step { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 750; }
.step h2 { font-size: 18px; font-weight: 750; }
.step small { font-size: 13.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.cmp-setup { display: grid; gap: 14px; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; }
.picked__item {
  display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 8px 0 16px; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand-strong); font-size: 16px; font-weight: 720;
}
.picked__add {
  display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 14px;
  border: 1.5px dashed var(--line-2); color: var(--ink-3); font-size: 15px; font-weight: 600;
}
.picker { margin-top: 16px; }
.picker > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 650; color: var(--ink-2); }
.picker > summary::-webkit-details-marker { display: none; }
.picker > summary .ic { transition: transform .15s; }
.picker[open] > summary .ic { transform: rotate(90deg); }
.picker__body { margin-top: 14px; display: grid; gap: 12px; }
.picker__body .combo { max-width: 340px; }
.picker__hint { font-size: 13px; color: var(--ink-3); }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.opt-row + .opt-row { margin-top: 12px; }
.opt-row--pair { gap: 12px 40px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.opt-row__label { width: 52px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
@media (max-width: 599px) { .opt-row__label { width: 100%; margin-bottom: -4px; } }

.cmp-result { display: grid; gap: 14px; margin-top: 14px; }
.board { width: 100%; table-layout: fixed; }
.board th, .board td { text-align: left; padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: baseline; }
.board thead th { border-top: 0; padding-top: 0; font-size: 16px; font-weight: 740; letter-spacing: -.02em; }
.board thead td { border-top: 0; }
.board thead a { text-decoration: none; }
.board thead a:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.board tbody th { width: 104px; padding-left: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.board td { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.board td small { font-size: 13px; font-weight: 550; color: var(--ink-2); margin-left: 1px; }
.board .lead td { font-size: clamp(28px, 5.4vw, 42px); font-weight: 790; letter-spacing: -.04em; line-height: 1.1; }
.board .lead td small { font-size: 16px; }
.board .na { color: var(--ink-4); font-weight: 500; font-size: 14px; }
@media (max-width: 599px) {
  .board tbody th { width: 76px; font-size: 12.5px; }
  .board th, .board td { padding: 11px 6px; }
  .board thead th { font-size: 14.5px; }
  .board td { font-size: 15px; }
  .board--3 .lead td { font-size: 25px; }
  .board--3 .lead td small { font-size: 13px; }
}
.gaps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gaps li { padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-wash); }
.gaps span { font-size: 13px; font-weight: 650; color: var(--brand); }
.gaps p { margin-top: 2px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.gaps b { color: var(--ink); font-weight: 720; font-variant-numeric: tabular-nums; }
@media (max-width: 859px) {
  .gaps { grid-template-columns: 1fr; gap: 0; padding: 4px 16px; border-radius: var(--r-md); background: var(--brand-wash); }
  .gaps li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 0; border-radius: 0; background: none; border-top: 1px solid rgba(12, 107, 77, .14); }
  .gaps li:first-child { border-top: 0; }
  .gaps p { margin: 0; font-size: 14.5px; }
}
.block-gap { margin-top: 22px; }
.perf-list { margin-top: 22px; }
.perf-list ul { list-style: none; margin: 0; padding: 0; }
.perf-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.perf-list b { font-weight: 650; }
.perf-list span { color: var(--ink-2); }
@media (max-width: 599px) { .perf-list li { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; font-size: 14px; } }
.src-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.cmp-result { grid-template-columns: minmax(0, 1fr); }
.cmp-result > .sec + .sec { margin-top: 0; }
.cmp-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll-hint { display: none; }
.cmp-table :is(th, td) { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.cmp-cut .cmp-table tbody tr:first-child td { color: var(--ink); font-size: 20px; line-height: 1.35; }
.cmp-table tr > :first-child { width: 114px; }
.cmp-table a.src-link, .cmp-test-links .src-link { white-space: normal; max-width: 100%; }
.cmp-note { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.cmp-filter { margin-block: 12px; }
.cmp-test-links { display: grid; justify-items: start; gap: 4px; }
.cmp-ach > summary { cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink); }
.cmp-ach > summary::marker { color: var(--brand); }
.cmp-ach[open] > summary { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px; }
@media (max-width: 719px) {
  .table-scroll-hint:not([hidden]) { display: block; margin: 8px 0; color: var(--ink-2); font-size: 13px; }
  .cmp-table { min-width: 320px; }
  .cmp-table:is(.board--3, [data-count="3"]) { min-width: 458px; }
  .cmp-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 78px; background: var(--surface); }
  .cmp-ach > summary { min-height: 42px; align-content: center; }
}


/* ---------- 10. 모의고사 ---------- */
.mock-filter { display: grid; gap: 0; }
.mock-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 14px; align-items: start; margin-top: 14px; }
@media (max-width: 959px) { .mock-layout { grid-template-columns: 1fr; } }
.mock-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.mock-title h2 { font-size: 22px; font-weight: 770; }
.mock-title .unit { font-size: 13.5px; color: var(--ink-3); }
.mock-note { font-size: 13.5px; color: var(--ink-3); margin-bottom: 20px; }

/* 점수 자: 0~만점 축 위에 등급 구간을 놓는다. 1등급만 강조하고 나머지는 중립색. */
.ruler { margin: 4px 0 6px; }
.ruler__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.ruler__row + .ruler__row { margin-top: 8px; }
.ruler__name { font-size: 14px; font-weight: 650; }
.ruler__bar { position: relative; height: 28px; }
.band {
  position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: calc(var(--w) * 1%);
  border-right: 2px solid var(--surface); background: #e3e1d8 padding-box; border-radius: 4px 6px 6px 4px;
  display: grid; place-items: center; container-type: inline-size; color: var(--ink-2); cursor: default;
}
.band:last-child { border-right: 0; border-radius: 4px; }
.band--top { background-color: var(--brand-strong); color: #fff; }
.band:hover, .band:focus-visible { filter: brightness(.94); }
.band--top:hover, .band--top:focus-visible { filter: brightness(1.2); }
.band i { font-style: normal; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
@container (max-width: 15px) { .band i { display: none; } }
.ruler__axis { position: relative; height: 20px; margin-top: 4px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ruler__axis span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.ruler__axis span:first-child { transform: none; }
.ruler__axis span:last-child { transform: translateX(-100%); }
.ruler__axisrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
@media (max-width: 599px) {
  .ruler__row, .ruler__axisrow { grid-template-columns: 1fr; gap: 5px; }
  .ruler__axisrow > :first-child { display: none; }
}
.ruler-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 22px; font-size: 13px; color: var(--ink-2); }
.ruler-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--c); }

.cut-table td, .cut-table th { padding-top: 9px; padding-bottom: 9px; }
.cut-table .g { width: 64px; font-weight: 700; }
.cut-table tr.top td, .cut-table tr.top th { font-weight: 760; }
.cut-table tr.top .g span { display: inline-block; background: var(--brand-strong); color: #fff; border-radius: 6px; padding: 0 7px; }
.meter { display: inline-block; width: 72px; height: 8px; border-radius: 4px; background: var(--inset); vertical-align: middle; margin-left: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--ach-c); border-radius: 4px; }

.side-card h3 { font-size: 16.5px; font-weight: 740; margin-bottom: 4px; }
.side-card > p { font-size: 13.5px; color: var(--ink-3); }
.files { display: grid; gap: 8px; margin-top: 14px; }
.filebtn {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 650; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.filebtn > .ic:first-child { width: 20px; height: 20px; color: var(--brand); }
.filebtn > .ic:last-child, .filebtn small { margin-left: auto; color: var(--ink-3); }
a.filebtn:hover { border-color: var(--brand); background: var(--brand-wash); }
.filebtn.is-off { border-style: dashed; color: var(--ink-3); font-weight: 550; }
.filebtn.is-off > .ic:first-child { color: var(--ink-4); }
.filebtn small { font-size: 12.5px; font-weight: 550; }
.side-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.myfiles { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.caption { margin-top: 10px; font-size: 12.5px; }
.mock-side { display: grid; gap: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


.saved-file { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:8px; align-items:center; margin:8px 0; }
.saved-file .filebtn { min-width:0; overflow-wrap:anywhere; }
.mock-title ~ .chips { margin-bottom:14px; }

/* ---------- 11. 대학 입시 ---------- */
.adm-page { min-width: 0; }
.adm-page[data-cycle="수시"] { --phase-accent: #074d3c; --phase-wash: #edf5f0; }
.adm-page[data-cycle="정시"] { --phase-accent: #244b74; --phase-wash: #eef3f9; }
.adm-phase-switch {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 16px;
}
.adm-phase-card {
  display: grid; align-content: center; gap: 4px; position: relative; min-height: 92px;
  padding: 14px 50px 14px 22px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-2); text-decoration: none;
}
.adm-phase-card:hover { border-color: var(--phase-accent); }
.adm-phase-card strong { font-size: 23px; line-height: 1.25; }
.adm-phase-card[aria-current="true"] { background: var(--phase-accent); border-color: var(--phase-accent); color: #fff; }
.adm-phase-card::after {
  content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2);
  position: absolute; right: 19px; top: 19px;
}
.adm-phase-card[aria-current="true"]::after { background: #fff; border-color: #fff; }
.adm-phase-card[aria-current="true"]::before {
  content: ''; position: absolute; z-index: 1; right: 24px; top: 23px; width: 6px; height: 9px;
  border: solid var(--phase-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.adm-phase-meta { font-size: 13px; line-height: 1.5; }
.adm-page :is(.card, .adm-control, .adm-guide) { min-width: 0; }
.adm-page .sec-head { flex-wrap: wrap; gap: 6px 16px; }
.adm-filters { display: grid; gap: 18px; }
.adm-control { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.adm-control > :first-child { flex: 0 0 72px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.adm-control h2 small { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.adm-control > .chips { flex: 1 1 260px; }
.adm-control .chip[aria-current="true"], .adm-control .chip[aria-pressed="true"] {
  background: var(--brand-strong); border-color: var(--brand-strong); color: #fff;
}
.adm-comparison, .adm-guides, .adm-context { margin-top: 22px; }
.adm-unavailable { margin-top: 18px; }
.adm-unavailable h2 { font-size: 18px; }
.adm-unavailable p { margin-top: 5px; color: var(--ink-2); }
.adm-scroll {
  max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md);
  scrollbar-color: var(--line-2) var(--surface);
}
.adm-table { width: 100%; table-layout: fixed; font-size: 14.5px; line-height: 1.65; }
.adm-table[data-count="2"] { min-width: 520px; }
.adm-table[data-count="3"] { min-width: 740px; }
.adm-table :is(td, th) {
  padding: 13px 16px; text-align: left; vertical-align: top;
  overflow-wrap: anywhere; border-block-start: 1px solid var(--line); border-inline-end: 1px solid var(--line);
}
.adm-table tr > :last-child { border-inline-end: 0; }
.adm-table tr > :first-child {
  position: sticky; left: 0; z-index: 1; width: 112px;
  background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 650;
}
.adm-table thead th { border-block-start: 0; color: var(--brand-strong); font-size: 17px; line-height: 1.45; }
.adm-table thead tr > th { background: var(--phase-wash); color: var(--phase-accent); }
.adm-compare-hint { margin: -5px 0 16px; color: var(--ink-2); font-size: 14px; }
.adm-table .adm-section-row > th:first-child {
  position: static; width: auto; background: var(--phase-wash); color: var(--phase-accent);
  border-inline-end: 0; padding-block: 8px; font-size: 13px; font-weight: 750;
}
.adm-grade-status {
  display: inline-flex; align-items: center; border-radius: 5px; padding: 2px 8px;
  font-size: 12.5px; font-weight: 720; line-height: 1.55;
}
.adm-grade-status.scored, .adm-grade-status.both { color: #115542; background: #dcefe4; }
.adm-grade-status.reviewed { color: #21486c; background: #e3edf8; }
.adm-grade-status.conditional { color: #6d4b14; background: #f8eed6; }
.adm-grade-status.unused, .adm-grade-status.unspecified { color: #4d554f; background: #f0f2ee; }
.adm-grade-text { margin: 5px 0 0; }
.adm-grade-sources { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.adm-evidence summary { color: var(--phase-accent); font-size: 13.5px; font-weight: 650; cursor: pointer; }
.adm-evidence[open] > summary { margin-bottom: 6px; }
.adm-result-label { display: grid; gap: 3px; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; }
.adm-result-label:last-of-type { margin-bottom: 0; }
.adm-result-label select {
  width: 100%; min-width: 0; min-height: 42px; padding: 7px 8px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
}
.adm-result-stat { display: grid; gap: 3px; padding-block: 4px; }
.adm-result-stat > span:first-child { color: var(--ink-2); font-size: 13px; }
.adm-result-value { color: var(--phase-accent); font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.adm-result-value small, .adm-result-missing small { font-size: 13px; font-weight: 500; }
.adm-result-status { font-weight: 700; }
.adm-result-major { font-weight: 700; font-size: 14px; }
.adm-table input[data-major-search] {
  width: 100%; min-width: 0; margin: 4px 0 8px; padding: 8px 10px; min-height: 40px; font: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
}
.adm-grade-key p { max-width: 72ch; }
.adm-scroll:focus-visible { outline-offset: 3px; }
.adm-track-select {
  display: block; width: 100%; min-width: 0; height: 42px; margin-top: 8px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font-size: 14px; font-weight: 550; color: var(--ink); cursor: pointer;
}
.adm-quota { font-variant-numeric: tabular-nums; }
.adm-quota strong { color: var(--brand-strong); font-size: 19px; line-height: 1.35; }
.adm-note, .adm-meta { color: var(--ink-2); font-size: 13.5px; line-height: 1.6; }
.adm-note { display: block; margin-top: 4px; }
.adm-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: start; }
.adm-guide h3 { font-size: 19px; }
.adm-guide .adm-meta { margin-top: 6px; }
.adm-guide dl {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px;
  padding-top: 14px; margin: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px;
}
.adm-guide dt { font-weight: 650; color: var(--ink-2); }
.adm-guide dd { margin: 0; font-variant-numeric: tabular-nums; }
.adm-guides > .adm-meta { margin: -6px 0 12px; }
.adm-page > .empty { margin-top: 22px; }
.adm-guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; }
.adm-page .src-link { max-width: 100%; white-space: normal; }
.adm-details { margin-top: 14px; border-top: 1px solid var(--line); }
.adm-details summary {
  padding: 10px 2px; font-size: 14px; font-weight: 650; color: var(--ink-2); cursor: pointer;
}
.adm-details summary::marker { color: var(--brand); }
.adm-details[open] > summary { color: var(--brand-strong); }
.adm-details h4 { font-size: 14px; margin: 12px 0 4px; }
.adm-details p, .adm-context ul { color: var(--ink-2); font-size: 14px; }
.adm-context ul { margin: 0 0 10px; padding-inline-start: 20px; }
.adm-context li + li { margin-top: 4px; }
.adm-details p + p { margin-top: 8px; }
.adm-track-list { padding: 0; margin: 0; list-style: none; }
.adm-track-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px;
  padding-block: 7px; font-size: 14px; border-top: 1px solid var(--line);
}
.adm-track-list li > span { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-track-list a { color: var(--brand-strong); text-underline-offset: 3px; }
.adm-track-list a[aria-current="true"] { font-weight: 750; text-decoration-thickness: 2px; }
@media (max-width: 719px) {
  .adm-phase-switch { gap: 8px; }
  .adm-phase-card { min-height: 82px; padding: 12px; }
  .adm-phase-card strong { font-size: 19px; padding-right: 19px; }
  .adm-phase-meta { font-size: 12px; }
  .adm-phase-card::after { right: 10px; top: 14px; }
  .adm-phase-card[aria-current="true"]::before { right: 15px; top: 18px; }
  .adm-control { display: grid; gap: 8px; }
  .adm-control > .segc { justify-self: start; }
  .adm-page .chip, .adm-page .segc > a { min-height: 42px; }
  .adm-page .chip { padding-inline: 12px; }
  .adm-comparison { padding-inline: 12px; }
  .adm-table { font-size: 14px; line-height: 1.55; }
  .adm-table tr > :first-child { width: 72px; }
  .adm-table :is(th, td) { padding: 10px 9px; }
  .adm-table a { display: inline-flex; align-items: center; min-height: 40px; }
  .adm-table summary { min-height: 40px; align-content: center; }
  .adm-track-select { height: 44px; }
  .adm-guide-links a, .adm-track-list a { display: inline-flex; align-items: center; min-height: 40px; }
}
