/* 상단 바 공용(바는 글자 크기 설정과 무관하게 px 고정: 두 페이지 픽셀 단위 동일)(메인 index.html + 서브페이지 site.js 가 같은 마크업·같은 클래스). build.mjs 가 메인 CSS 와 dist/site.css 앞에 붙인다.
   색·블러 값은 각 페이지 토큰(--glass, --glass-line, --glass-shadow, --glass-sheet, --scrim, --hover, --fg, --bg, --muted, --red) 을 쓴다. */
.bar {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 40; height: 56px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 16px; margin-top: env(safe-area-inset-top);
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: var(--glass-shadow);
}
.bar__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.bar__logo { display: block; height: 35px; width: auto; }
.logo-light { display: none; }
html[data-theme="light"] .logo-light { display: block; }
html[data-theme="light"] .logo-dark { display: none; }

/* 데스크톱 카테고리: 로고 옆, hover·클릭·키보드로 펼침. 버튼과 패널 사이 틈은 ::after 로 메운다 */
.bnav { display: flex; align-items: center; gap: 2px; margin: 0 auto 0 12px; }
.bnav__sub { position: relative; }
.bnav__sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.bnav__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; background: none; border: 0; border-radius: 10px; color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.bnav__btn.is-current { background: var(--hover); }
.bnav__sub:hover .bnav__btn, .bnav__sub:focus-within .bnav__btn { background: var(--hover); }
.bnav__btn .icon { width: 14px; height: 14px; margin-left: 4px; transition: transform .2s ease-out; }
.bnav__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.bnav__menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; margin: 0; padding: 6px; list-style: none; background: var(--glass-sheet);   /* 바(블러) 안의 자식이라 블러가 안 먹음: 시트처럼 불투명하게 */ -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8); border: 1px solid var(--glass-line); border-radius: 14px; box-shadow: var(--glass-shadow); animation: bar-rise .18s ease-out both; }
.bnav__sub:hover .bnav__menu, .bnav__sub:focus-within .bnav__menu, .bnav__btn[aria-expanded="true"] + .bnav__menu { display: block; }
.bnav__menu a { display: flex; min-height: 42px; align-items: center; padding: 0 14px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.bnav__menu a:hover, .bnav__menu a:focus-visible, .bnav__menu a[aria-current="page"] { background: var(--hover); }
@keyframes bar-rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 오른쪽 도구: 전부 높이 40 알약. 메인 = 언어·사운드, 서브 = 글자 크기·테마. 신고센터는 둘 다 */
.bar__tools { display: flex; align-items: center; gap: 8px; }
.pill, .lang, .fs, .sound, .theme-btn, .menu-btn { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--glass-line); border-radius: 999px; background: none; color: var(--fg); font: inherit; }
.lang, .fs { overflow: hidden; padding: 0; }
.lang__btn, .fs button { min-width: 44px; height: 100%; padding: 0 10px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.lang__btn { font-family: var(--mono); }
.fs button:nth-child(2) { font-size: 15px; } .fs button:nth-child(3) { font-size: 17px; }
.lang__btn[aria-pressed="true"], .fs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.sound, .menu-btn { gap: 8px; padding: 0 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.sound .sound__on { display: none; }
.sound[aria-pressed="true"] .sound__on { display: block; color: var(--red); }
.sound[aria-pressed="true"] .sound__off { display: none; }
.theme-btn { width: 40px; justify-content: center; padding: 0; cursor: pointer; }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn:hover, .sound:hover, .menu-btn:hover { border-color: var(--fg); }
.menu-btn { display: none; width: 40px; justify-content: center; padding: 0; }
.menu-btn .icon { width: 20px; height: 20px; }
.menu-btn .menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
.bar, .menu { --cta: #c8102e; --on-cta: #fff; }   /* 신고센터 버튼 색은 두 페이지 동일(라이트에서도 흰 글자 대비 확보) */
.bar__cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--cta); color: var(--on-cta); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s ease-out, color .2s ease-out; }
.bar__cta:hover { background: var(--fg); color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .bnav__menu, .menu { animation: none; } .bnav__btn .icon, .bar__cta { transition: none; } }
.bar__cta .icon { width: 16px; height: 16px; }
.bar__cta-short { display: none; }

/* 폰 전체 메뉴: 바 아래로 내려오는 시트(바 바깥, body 직속). 열리면 뒤는 어둡게 */
.menu { position: fixed; z-index: 39; top: 80px; left: 12px; right: 12px; max-height: calc(100dvh - 96px); color: var(--fg); overflow-y: auto; overscroll-behavior: contain; background: var(--glass-sheet); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--glass-line); border-radius: 20px; box-shadow: var(--glass-shadow); animation: bar-rise .22s ease-out both; }
.menu[hidden] { display: none; }
.menu__inner { padding: 8px; display: grid; gap: 8px; }
.menu__group { background: rgba(127, 127, 127, .12); border-radius: 14px; padding: 12px 14px 8px; }
.menu__title { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: var(--muted); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 6px 0; text-decoration: none; color: var(--fg); font-size: 16px; font-weight: 500; }
.menu__list a[aria-current="page"], .menu__hot { color: var(--red); }
.menu__sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.menu__tools { display: flex; gap: 8px; align-items: center; padding: 4px 0 6px; }
html.menu-open body { overflow: hidden; }
html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 38; background: var(--scrim); }
html.menu-open .pops { display: none; }

@media (max-width: 980px) {
  .bar { top: 8px; left: 8px; right: 8px; }
  .bnav, .bar__tools > .fs, .bar__tools > .theme-btn, .bar__tools > .sound { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { top: 72px; left: 8px; right: 8px; }
}
@media (max-width: 480px) {
  .bar { padding: 0 8px 0 12px; gap: 6px; }
  .bar__logo { height: 30px; }
  .bar__cta { padding: 0 12px; }
  .bar__cta-long { display: none; } .bar__cta-short { display: inline; }
  .lang__btn { min-width: 38px; }
}

/* 도박없는학교 사이트 공용 스타일 - 토큰은 체험 페이지(styles.css :root)와 같다. 그라데이션 없음. */
/* S-Core Dream (에스코어 드림, 무료 글꼴, fonts/S-CoreDream-LICENSE.txt) - 본문·제목. 서버 /fonts/ 에서 로드 */
@font-face { font-family: "S-Core Dream"; src: url("/fonts/S-CoreDream-3Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "S-Core Dream"; src: url("/fonts/S-CoreDream-4Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "S-Core Dream"; src: url("/fonts/S-CoreDream-5Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "S-Core Dream"; src: url("/fonts/S-CoreDream-6Bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
/* 테마 토큰. 기본 = 다크. html[data-theme="light"] 이면 라이트(site.js 가 <head> 에서 저장값 → OS 설정 순으로 붙인다) */
:root {
  --ink: #000000;
  --paper: #f5f5f5;
  --red: #ff3b30;       /* 검정 위 5.9:1 */
  --red-ink: #c8102e;   /* 종이 위 빨강 글자 5.6:1 */
  --gray: #8c8c8c;      /* 검정 위 6.2:1 */
  --gray-ink: #4d4d4d;  /* 종이 위 회색 글자 7.9:1 */
  --line: #262626;
  --line-paper: #d4d4d4;
  --fg: var(--paper);
  --bg: var(--ink);
  --muted: var(--gray);
  --card: #0d0d0d;                 /* 카드·알림·펼침 목록 */
  --field: #000000;                /* 입력창 바탕 */
  --field-line: #6b6b6b;           /* 입력창 테두리 */
  --hover: rgba(255, 255, 255, .05);
  --on-red: #000000;               /* 빨강 위 글자 */
  --mat: #ececec;                  /* 옮겨온 그림(흰 배경용) 받침 */
  --glass: rgba(255, 255, 255, .07);   /* 리퀴드 글라스: 거의 투명, 블러·하이라이트로 유리 느낌 */   /* 유리 바·패널(블러 뒤 반투명) */
  --glass-line: rgba(255, 255, 255, .22);
  --glass-sheet: rgba(14, 14, 14, .9);   /* 폰 시트는 더 불투명(뒤 글자 안 비치게) */
  --scrim: rgba(0, 0, 0, .45);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .06);
  --r-glass: 18px;
  --sans: "S-Core Dream", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* 단호한 감속. 바운스 없음 */
  color-scheme: dark;
  font-size: 17px;
}
html[data-theme="light"] {
  --fg: #111111;
  --bg: #f5f5f5;
  --red: var(--red-ink);
  --gray: var(--gray-ink);
  --line: #d4d4d4;
  --muted: var(--gray-ink);
  --card: #ffffff;
  --field: #ffffff;
  --field-line: #8a8a8a;
  --hover: rgba(0, 0, 0, .04);
  --on-red: #ffffff;
  --mat: #ffffff;
  --glass: rgba(255, 255, 255, .45);
  --glass-line: rgba(0, 0, 0, .08);
  --glass-sheet: rgba(255, 255, 255, .94);
  --scrim: rgba(0, 0, 0, .25);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .4);
  color-scheme: light;
}
/* 글자 크기 3단계(상단 바 A- A A+) - 모든 크기는 rem 기준 */
html[data-fs="s"] { font-size: 16px; }
html[data-fs="m"] { font-size: 17px; }
html[data-fs="l"] { font-size: 20px; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.paper :focus-visible { outline-color: var(--red-ink); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 60; padding: 10px 14px; background: var(--red); color: var(--on-red); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- 상단 바 = site/bar.css(빌드 때 앞에 붙음). 바가 fixed 라 본문은 아래로 내린다 ---------- */
html.has-bar body { padding-top: 84px; }   /* 상단 바를 그린 페이지만(관리자 제외) */
.fs-row { display: flex; gap: 8px; align-items: center; }
@media (max-width: 980px) {
  html.has-bar body { padding-top: 76px; }
}

/* ---------- layout ---------- */
main { flex: 1; width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-head { padding: clamp(28px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.page-head p { margin: 12px 0 0; color: var(--gray); font-size: 1.05rem; max-width: 46em; }
.section { padding: 0 0 clamp(32px, 6vw, 64px); }
.section h2 { margin: 0 0 12px; font-size: 1.4rem; font-weight: 500; }

/* 종이 면: 긴 글 가독(검정 글자) */
/* 카드는 검정 위 살짝 밝은 검정 + 선. 흰 배경 없음(2026-11-10). 종이용 토큰은 카드 안에서 어두운 값으로 바뀐다. */
.paper { --red-ink: var(--red); --gray-ink: var(--gray); --line-paper: var(--line); background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.paper .muted, .paper .hint { color: var(--gray-ink); }
.paper a { color: var(--fg); }
.sheet { padding: clamp(20px, 4vw, 40px); }
.paper.section { margin-bottom: clamp(32px, 6vw, 64px); }
.muted { color: var(--gray); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid currentColor; background: none; font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.btn--red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn--red:hover { background: var(--fg); border-color: var(--fg); }
.paper .btn--red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.paper .btn--red:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--ink { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.paper .btn--ink { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 24px; scrollbar-width: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; text-decoration: none; font-weight: 500; color: var(--gray); margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a:hover { color: var(--fg); }
@media (max-width: 640px) { .tabs { flex-wrap: wrap; overflow: visible; } .tabs a { padding: 0 10px; } }
.tabs a[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--red); }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tile { border: 1px solid var(--line); background: var(--card); padding: 16px; margin: 0; }
.tile dt { color: var(--gray); font-size: .9rem; font-weight: 400; }
.tile dd { margin: 4px 0 0; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
@media (max-width: 520px) {
  .tiles { gap: 8px; }
  .tile { padding: 12px 10px; }
  .tile dt { font-size: .8rem; }
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
.t th, .t td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.paper .t th, .paper .t td { border-bottom-color: var(--line-paper); }
.t th { font-size: .85rem; color: var(--gray); font-weight: 500; white-space: nowrap; }
.paper .t th { color: var(--gray-ink); }
.t tbody th { color: inherit; font-size: inherit; font-weight: 500; white-space: normal; }
.rank-sub { display: none; font-size: .8rem; font-weight: 500; color: var(--gray); font-family: var(--mono); }
@media (max-width: 640px) {
  .t--rank .hide-sm { display: none; }
  .rank-sub { display: block; }
  .t--rank .bar-cell { width: 45%; min-width: 0; }
  .t--rank th, .t--rank td { padding: 10px 4px; }
}
.t td.num, .t th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-cell { min-width: 120px; width: 40%; }
.hbar { display: block; height: 14px; background: var(--red); min-width: 2px; }
.hbar-track { display: block; flex: 1; background: var(--line); }
.barline { display: flex; align-items: center; gap: 8px; flex: 1; }

/* 좁은 화면: 표를 카드처럼 쌓는다(가로 스크롤 0) */
@media (max-width: 640px) {
  .t--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .t--stack tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .paper .t--stack tr { border-bottom-color: var(--line-paper); }
  .t--stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
  .t--stack td::before { content: attr(data-label); color: var(--gray); font-size: .85rem; font-weight: 600; text-align: left; flex: none; }
  .paper .t--stack td::before { color: var(--gray-ink); }
  .t--stack td.num { justify-content: space-between; }
  .t--stack td.bar-cell { width: auto; }
  .t--stack td.bar-cell .hbar-track { flex: 1; align-self: center; }
}

.status { display: inline-block; padding: 1px 8px; font-size: .85rem; font-weight: 500; border: 1px solid currentColor; white-space: nowrap; }
.status--pending { color: var(--red); }
.status--frozen { color: var(--fg); }
.status--none { color: var(--gray); }
.paper .status--pending { color: var(--red-ink); }
.paper .status--frozen { color: var(--fg); }
.paper .status--none { color: var(--gray-ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 500; font-size: .95rem; }
.field .hint { margin: 0; font-size: .85rem; color: var(--gray); }
.req { color: var(--red); }
.paper .req { color: var(--red-ink); }
input[type="text"], input[type="url"], input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem;
  background: var(--field); color: var(--fg); border: 1px solid var(--field-line); border-radius: 0;
  -webkit-appearance: none; appearance: none; box-shadow: none;
}
::placeholder { color: var(--gray); opacity: 1; }
input:hover:not(:disabled):not(:focus-visible), textarea:hover:not(:disabled):not(:focus-visible), .sel__btn:hover:not([disabled]) { border-color: var(--fg); }
input:disabled, textarea:disabled, select:disabled { opacity: .5; cursor: not-allowed; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
input[type="file"] { padding: 8px 12px; min-height: 48px; width: 100%; background: var(--field); color: var(--fg); border: 1px dashed var(--field-line); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; padding: 6px 12px; background: var(--fg); color: var(--bg); border: 0; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0 8px 0 0; vertical-align: -4px; background: var(--field); border: 2px solid var(--field-line); display: inline-grid; place-content: center; cursor: pointer; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before, input[type="radio"]::before { content: ""; width: 10px; height: 10px; background: var(--red); opacity: 0; transform: scale(.6); transition: transform .12s var(--ease-out), opacity .12s var(--ease-out); }
input[type="radio"]::before { border-radius: 50%; }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { opacity: 1; transform: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 0; }
.paper input:focus-visible, .paper select:focus-visible, .paper textarea:focus-visible { outline-color: var(--red-ink); }
[aria-invalid="true"] { border-color: var(--red) !important; border-width: 2px !important; }
.paper [aria-invalid="true"] { border-color: var(--red-ink) !important; }
.err { margin: 0; color: var(--red); font-size: .9rem; font-weight: 500; }
.paper .err { color: var(--red-ink); }
.filters { display: grid; grid-template-columns: 1fr 1fr 2fr auto; gap: 8px; align-items: end; margin-bottom: 16px; }
.filters .field { margin: 0; }
@media (max-width: 720px) { .filters { grid-template-columns: 1fr 1fr; } .filters .field--q { grid-column: 1 / -1; } .filters .btn { grid-column: 1 / -1; } }
.searchbar { display: flex; gap: 8px; margin: 0 0 16px; }
.searchbar input { flex: 1; min-width: 0; }

/* ---------- status / alerts ---------- */
.state { padding: 20px; color: var(--gray); background: var(--card); border: 1px solid var(--line); }
.paper .state { color: var(--gray-ink); border-color: var(--line-paper); }
.alert { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 14px 16px; background: var(--card); color: var(--fg); border: 1px solid var(--line); margin: 0 0 16px; }
.alert p { margin: 0; }


/* ---------- pager ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 24px 0 0; padding: 0; list-style: none; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; font-family: var(--mono); font-weight: 700; text-decoration: none; border: 1px solid var(--line); }
.paper .pager a, .paper .pager span { border-color: var(--line-paper); }
.pager a:hover { border-color: currentColor; }
.pager [aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.paper .pager [aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- board ---------- */
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.plist li { border-bottom: 1px solid var(--line-paper); }
.plist a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 4px; text-decoration: none; min-height: 48px; }
.plist a:hover .plist__title { text-decoration: underline; text-underline-offset: 3px; }
.plist__title { font-weight: 500; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plist__meta { color: var(--gray-ink); font-size: .85rem; font-family: var(--mono); white-space: nowrap; align-self: center; }
.pin { display: inline-block; font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--red); }
.plist .icon { color: var(--gray-ink); }
@media (max-width: 640px) { .plist a { grid-template-columns: 1fr; } }

/* 게시글 보기 */
.post__head { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line-paper); }
.post__kicker { margin: 0 0 10px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; }
.paper .post__kicker a { color: var(--red-ink); text-decoration: none; }
.paper .post__kicker a:hover { text-decoration: underline; }
.post__head h1 { margin: 0; font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; word-break: keep-all; }
.post__group { margin: 8px 0 0; font-size: 1.05rem; color: var(--gray-ink); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 14px 0 0; color: var(--gray-ink); font-size: .9rem; }
.post__meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px; vertical-align: middle; border-radius: 50%; background: var(--line-paper); }
.post__body { max-width: 72ch; font-size: 1.05rem; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.post__body > :first-child { margin-top: 0; }
.post__body img, .post__body video, .post__body iframe { max-width: 100%; height: auto; border-radius: 12px; }
.post__body table { max-width: 100%; display: block; overflow-x: auto; }
.post__body pre { white-space: pre-wrap; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 12px 0 20px; background: var(--card); }
.post__body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.post__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.post__body li.head { list-style: none; margin: 1.1em 0 .3em -1.2em; font-weight: 700; color: var(--fg); }
.post__body li.head:first-child { margin-top: 0; }
.post__body li.sub { list-style: none; position: relative; padding-left: 14px; color: var(--fg); }
.post__body li.sub::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 1px; background: var(--gray-ink); }
/* 인물 글: 사진 왼쪽, 소개 오른쪽 */
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.post__photo { margin: 0; }
.post__photo img { display: block; width: 100%; max-width: 360px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; background: var(--mat); }
.post--person .post__body { max-width: none; }
@media (min-width: 760px) { .post__grid { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; } .post__photo { position: sticky; top: 96px; } }
/* 첨부 */
.att { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line-paper); }
.att h2 { font-size: 1rem; margin: 0 0 12px; color: var(--gray-ink); font-weight: 500; }
.att ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.att__gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.att__gallery:last-child { margin-bottom: 0; }
.att__gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--mat); }
.att__gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.att figure { margin: 0; }
.att figcaption { font-size: .9rem; color: var(--gray-ink); }
.att audio { width: 100%; margin-top: 8px; }
.att > ul > li > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-paper); border-radius: 10px; font-weight: 500; text-decoration: none; }
.att > ul > li > a:hover { border-color: var(--fg); }
/* 이전·다음 글: 카드 두 장 */
.postnav { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 36px 0 0; }
.postnav > a, .postnav > span { display: grid; gap: 4px; padding: 14px 16px; min-height: 48px; border: 1px solid var(--line-paper); border-radius: 12px; text-decoration: none; }
.postnav > a:hover { border-color: var(--fg); background: var(--hover); }
.postnav b { font-size: .8rem; font-weight: 500; color: var(--gray-ink); }
.postnav > a > span, .postnav > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.postnav > span { color: var(--gray-ink); }
@media (min-width: 560px) { .postnav { grid-template-columns: 1fr 1fr; } .postnav > :last-child { text-align: right; } }
.post__actions { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 2-col ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.side { border: 1px solid var(--line);  padding: 20px; }
.side h2 { font-size: 1.1rem; margin: 0 0 12px; }
.side dl { margin: 0; display: grid; gap: 12px; }
.side dt { color: var(--gray); font-size: .85rem; font-weight: 500; }
.side dd { margin: 2px 0 0; font-weight: 500; }
.side a { min-height: 44px; display: inline-flex; align-items: center; }
.token { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.token code { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; padding: 6px 10px; background: var(--field); border: 2px solid var(--fg); overflow-wrap: anywhere; }

.prose { max-width: 46em; }
.prose--wide { max-width: 64em; }
.about-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.about-side { display: grid; gap: 24px; position: sticky; top: calc(var(--bar-h) + 24px); }
.about-side .facts { grid-template-columns: 1fr; gap: 2px; }
.about-side .facts dd { margin-bottom: 10px; }
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; } .about-side { position: static; } }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { font-weight: 500; color: var(--gray-ink); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); }
.gallery .mat { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; padding: 10px; background: var(--mat); }   /* 흰 배경용 그림이라 테마와 무관하게 밝은 받침 */
.gallery .mat img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery figcaption { padding: 10px 12px; font-size: .9rem; color: var(--gray); border-top: 1px solid var(--line); }
.gallery a { display: block; }

/* ---------- footer ---------- */
.sfoot { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg); color: var(--gray); font-size: .9rem; }
.sfoot__in { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter) 48px; display: grid; gap: 16px; }
.sfoot__name { color: var(--fg); font-weight: 500; font-size: 1.05rem; margin: 0; }
.sfoot dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 24px; }
.sfoot dl div { display: flex; gap: 8px; flex-wrap: wrap; }
.sfoot dt { font-weight: 600; }
.sfoot dd { margin: 0; color: var(--fg); }
.sfoot a { min-height: 44px; display: inline-flex; align-items: center; }
.sfoot dd a { min-height: 0; }
.sfoot__links { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.sfoot__links a { color: var(--fg); font-weight: 700; }


/* ---------- 모션(목적 있는 것만, 2026-11-10). transform·opacity 만 움직인다. 줄인 모션 설정이면 맨 아래 미디어쿼리가 전부 끈다 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.page-head { animation: rise .42s var(--ease-out) both; }
.tabs { animation: rise .42s var(--ease-out) .08s both; }
.tiles .tile { animation: rise .42s var(--ease-out) both; }
.tiles .tile:nth-child(2) { animation-delay: .08s; }
.tiles .tile:nth-child(3) { animation-delay: .16s; }
.wrap > .section > .sheet, .wrap > .cols > .sheet, .wrap > .cols > .about-side > .sheet, .wrap > .section.sheet, .wrap > .cols > .section > .sheet { animation: rise .42s var(--ease-out) .12s both; }
[role="tabpanel"] { animation: rise .3s var(--ease-out) both; }   /* 탭 바꿀 때 hidden 이 풀리며 다시 재생 */
.hbar { transform-origin: left center; animation: grow .6s var(--ease-out) both; }
.t--rank tbody tr:nth-child(2) .hbar { animation-delay: 40ms; }
.t--rank tbody tr:nth-child(3) .hbar { animation-delay: 80ms; }
.t--rank tbody tr:nth-child(4) .hbar { animation-delay: 120ms; }
.t--rank tbody tr:nth-child(5) .hbar { animation-delay: 160ms; }
.t--rank tbody tr:nth-child(n+6) .hbar { animation-delay: 200ms; }
.btn, .tabs a, .pager a, .fs button { transition: background-color .15s var(--ease-out), color .15s var(--ease-out), border-color .15s var(--ease-out), transform .1s var(--ease-out); }
.btn:active:not([disabled]) { transform: scale(.97); }
.t tbody tr, .plist li { transition: background-color .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.t tbody tr:hover, .plist li:hover { background: var(--hover); }
input, select, textarea { transition: border-color .15s var(--ease-out); }
#done.sheet { animation: rise .42s var(--ease-out) both; }


/* ---------- 커스텀 셀렉트(원래 <select> 위에 입힘, 의존성 0). 값·폼 전송은 원래 select 가 그대로 가진다 ---------- */
.sel { position: relative; }
.sel > select { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sel__btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; font-size: 1rem; text-align: left; background: var(--field); color: var(--fg); border: 1px solid var(--gray); border-radius: 0; cursor: pointer; }
.paper .sel__btn { border-color: var(--field-line); }
.sel__btn .icon { width: 16px; height: 16px; flex: none; color: var(--gray); transition: transform .2s var(--ease-out); }
.sel__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sel__btn:focus-visible { outline: 3px solid var(--red); outline-offset: 0; }
.sel__btn[aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.sel__btn[disabled] { opacity: .5; cursor: not-allowed; }
.sel--empty .sel__btn { color: var(--gray); }
.sel__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; max-height: 280px; overflow-y: auto; background: var(--card); border: 1px solid var(--fg); animation: rise .18s var(--ease-out) both; }
.sel--up .sel__list { top: auto; bottom: calc(100% + 4px); }
.sel__list[hidden] { display: none; }
.sel__opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 12px; cursor: pointer; color: var(--fg); }
.sel__opt:hover, .sel__opt.is-active { background: var(--hover); }
.sel__opt[aria-selected="true"] { font-weight: 700; }
.sel__opt[aria-selected="true"]::after { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }
.sel__opt[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }


/* 은행 대응 탭 설명 접이식 */
.eval-note { margin: 0 0 16px; padding: 0 20px; }
.eval-note summary { min-height: 48px; display: flex; align-items: center; font-weight: 500; cursor: pointer; }
.eval-note[open] { padding-bottom: 16px; }
.prose h3 { font-size: 1.15rem; font-weight: 500; margin: 20px 0 8px; }


/* ---------- 함께하는 기관 롤링(푸터 위) ---------- */
.partners { border-top: 1px solid var(--line); background: var(--card); }
.partners__in { padding: clamp(32px, 5vw, 56px) var(--gutter); display: grid; gap: 24px; }
.partners__head { display: grid; gap: 6px; max-width: 46em; }
.partners__eyebrow { margin: 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; color: var(--red); }
.partners__title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; }
.partners__lede { margin: 0; color: var(--gray); font-size: .95rem; }
.partners__grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners__grid > li { flex: 0 1 184px; min-width: 0; }
.partners .partners__item { display: grid; grid-template-rows: auto 1fr; min-height: 0; gap: 10px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--fg); text-decoration: none; transition: border-color .15s var(--ease-out); }
a.partners__item:hover, a.partners__item:focus-visible { border-color: var(--fg); }
.partners__mat { display: flex; align-items: center; justify-content: center; width: 100%; height: 76px; padding: 10px 14px; border-radius: 10px; background: #fff; box-sizing: border-box; }   /* 기관 로고는 흰 배경용 원본이라 받침 고정 */
.partners__mat img { display: block; max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .25s var(--ease-out); }
.partners__mat img.is-loaded { opacity: 1; }
.partners__name { align-self: center; font-size: .85rem; font-weight: 500; line-height: 1.35; text-align: center; color: var(--gray); word-break: keep-all; overflow-wrap: normal; hyphens: none; }
a.partners__item:hover .partners__name { color: var(--fg); }
.partners .partners__title { color: var(--fg); }
@media (max-width: 480px) {
  .partners__grid { gap: 8px; }
  .partners__grid > li { flex: 1 1 100%; }
  .partners .partners__item { grid-template-rows: none; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px; }
  .partners__mat { height: 60px; padding: 8px 10px; }
  .partners__name { text-align: left; font-size: .9rem; }
}
@media (max-width: 360px) { .partners .partners__item { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } .partners__name { font-size: .85rem; } }
/* ---------- 사람 카드(위원·홍보대사) ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.people a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--card); }
.people a:hover { border-color: var(--fg); }
.people__photo { aspect-ratio: 3 / 4; background: var(--mat); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.people__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.people__name { margin: 0; padding: 12px 14px 2px; font-size: 1.05rem; font-weight: 500; }
.people__group { margin: 0; padding: 0 14px 14px; font-size: .85rem; color: var(--gray); }
/* ---------- 발급 랭킹 지수 막대(5위, 지수 3개) ---------- */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank li { display: grid; grid-template-columns: 2.5em 10em 1fr; gap: 8px 16px; align-items: start; padding: 16px; border: 1px solid var(--line); background: var(--card); }
.rank__no { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.rank__bank { font-weight: 500; }
.rank__bank small { display: block; color: var(--gray); font-weight: 400; margin-top: 4px; }
.rank__bars { display: grid; gap: 6px; }
.rank__bar { display: grid; grid-template-columns: 6em 1fr 3em; gap: 10px; align-items: center; font-size: .9rem; }
.rank__bar .hbar-track { height: 10px; }
.rank__bar .hbar { height: 10px; }
.rank__bar--issue .hbar { background: var(--red); }
.rank__bar--response .hbar { background: var(--gray); }
.rank__bar--block .hbar { background: var(--fg); }
.rank__bar .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rank__note { margin: 12px 0 0; font-size: .85rem; color: var(--gray); }
@media (max-width: 640px) { .rank li { grid-template-columns: 2em 1fr; } .rank__bars { grid-column: 1 / -1; } }
/* ---------- 신고센터 안내(카카오 채널) ---------- */
.kakao-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; background: #fae100; color: #191919; font-weight: 700; text-decoration: none; border: 2px solid #fae100; }
.paper a.kakao-cta, a.kakao-cta { color: #191919; } /* .paper a 가 글자색을 덮어 노랑 위 흰 글자가 되던 문제 */
.paper a.kakao-cta:hover, a.kakao-cta:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

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

/* ---------- 공지 팝업(고정 공지 이미지 카드, 상단바 아래 겹침, 이전/다음·닫기·오늘 하루 열지 않기) ---------- */
@keyframes pops-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pops { position: fixed; inset: 0; z-index: 35; display: grid; grid-template-rows: 1fr auto; padding: 84px 12px 20px; background: var(--scrim); animation: pops-in .32s var(--ease-out, ease-out) both; }
.pops.is-leaving { transition: opacity .2s; opacity: 0; }
.pops__track { display: flex; gap: 20px; justify-content: center; align-items: center; min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 4px; }
.pops__track::-webkit-scrollbar { display: none; }
.pops__card { flex: none; scroll-snap-align: center; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .45); line-height: 0; }
.pops__card img { display: block; height: auto; width: auto; max-height: calc(100dvh - 180px); max-width: min(92vw, 560px); }
.pops__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--fg); display: none; align-items: center; justify-content: center; cursor: pointer; }
.pops__nav .icon { width: 20px; height: 20px; }
.pops__nav--prev { left: 10px; } .pops__nav--prev .icon { transform: rotate(180deg); } .pops__nav--next { right: 10px; }
.pops.is-scroll .pops__nav { display: inline-flex; }
.pops.is-scroll .pops__track { justify-content: flex-start; }
.pops__bar { justify-self: center; margin-top: 14px; display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--glass-line); }
.pops__count { padding: 0 12px; font-size: .875rem; color: var(--muted, var(--gray)); font-variant-numeric: tabular-nums; }
.pops__bar button { height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--hover); color: var(--fg); font: inherit; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.pops__bar button:hover { background: var(--glass-line); }
.pops__bar .icon { width: 14px; height: 14px; }
@media (max-width: 760px) { .pops { padding: 76px 0 16px; } .pops__track { gap: 12px; padding: 0 16px; justify-content: flex-start; align-items: flex-start; } .pops__card { width: calc(100vw - 32px); } .pops__card img { width: 100%; max-width: none; max-height: calc(100dvh - 170px); object-fit: contain; } .pops__bar { gap: 4px; } .pops__bar button { padding: 0 12px; font-size: .85rem; } }
