/* ==========================================================
   pages/students.css — 학생 수 랭킹 (/students/...)
   급식 점수(오렌지·네이비)와 섞이지 않게 파란 계열만 쓴다. (기획서 6-D)
   표 한 벌로 모바일/데스크톱을 모두 처리한다:
   모바일은 지역·학급당 칸을 숨기고 학교명·학생 수 칸 안에 작게 넣는다.
   ========================================================== */

/* 파란 히어로 */
.page-hero.is-blue {
  background:
    radial-gradient(640px 300px at 92% -20%, var(--glow-blue) 0%, transparent 64%),
    linear-gradient(180deg, var(--blue-cream) 0%, #fff 100%);
}
.page-hero.is-blue h1 em { color: var(--blue); }
.page-hero.is-blue .crumb a:hover { color: var(--blue-deep); }

/* 공시 연도는 크게 */
.year-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 16px 10px 12px;
  border-radius: 16px; background: #fff; border: 1px solid var(--blue-line); box-shadow: var(--shadow-1);
  font-size: 14px; font-weight: 700; color: var(--ink-2);
}
.year-badge .ico { width: 22px; height: 22px; color: var(--blue); }
.year-badge b { font-size: 17px; font-weight: 900; color: var(--blue-deep); letter-spacing: -.03em; }

.stu-note { margin-bottom: 16px; }

.stu-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stu-filter .seg button[aria-pressed="true"] { color: var(--blue-deep); }
.stu-filter .select { min-width: 150px; }
.stu-search {
  display: flex; align-items: center; gap: 9px; flex: 1 1 240px; max-width: 380px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink-3); transition: border-color .18s, box-shadow .18s;
}
.stu-search:focus-within { border-color: var(--blue); box-shadow: var(--focus-ring); }
.stu-search .ico { width: 18px; height: 18px; flex: none; }
.stu-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; }
.stu-search input::placeholder { color: var(--ink-4); font-weight: 500; }

.stu-sum { margin: 16px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.stu-sum b { font-weight: 800; color: var(--blue-deep); }

/* ---------- 표 ---------- */
.stu-card { padding: 6px 14px; overflow: hidden; }
.stu-table { font-size: 14.5px; }
.stu-table th, .stu-table td { padding: 12px 6px; text-align: left; vertical-align: middle; }
.stu-table thead th { padding-top: 12px; padding-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--ink-4); border-bottom: 1px solid var(--line); }
.stu-table tbody tr + tr td { border-top: 1px solid var(--line-2); }
.stu-table tbody tr:hover td { background: var(--surface-2); }
.stu-table .c-rank { width: 44px; text-align: center; }
.stu-table td.c-rank { font-size: 16px; font-weight: 800; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.stu-table td.c-rank.top { color: #fff; }
.stu-table td.c-rank.top span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); font-size: 14px; }
.stu-table .c-name a { display: block; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stu-table .c-name a:hover { color: var(--blue-deep); }
.stu-table .c-name small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.stu-table .c-region { color: var(--ink-2); white-space: nowrap; }
.stu-table .c-stu { width: 38%; }
.stu-table td.c-stu b { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.stu-table td.c-stu .unit { margin-left: 1px; font-size: 12.5px; color: var(--ink-3); }
.stu-table td.c-stu .bar { height: 6px; margin-top: 6px; }
.stu-table td.c-stu small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.stu-table .c-per { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stu-table td.c-per { font-weight: 700; color: var(--ink-2); }
.stu-table tr.is-sk td { height: 58px; }

@media (max-width: 639px) {
  .stu-search { flex-basis: 100%; max-width: none; }
  .stu-card { padding: 4px 10px; }
  .stu-table .c-region, .stu-table .c-per { display: none; }
  .stu-table .c-stu { width: 42%; text-align: right; }
  .stu-table td.c-stu .bar { margin-left: auto; }
}
@media (min-width: 640px) {
  .stu-table .c-name small, .stu-table td.c-stu small { display: none; }
  .stu-table .c-stu { width: 30%; }
}

.stu-more { margin-top: 14px; text-align: center; }
.stu-more:empty { display: none; }
