/* 청약각 웹 — 색은 앱 토큰(mobile/src/design/tokens.ts)과 같은 값을 쓴다 */
:root {
  --navy-900: #0B1626; --navy-800: #12233B; --navy-700: #1B3457; --navy-600: #27497A; --navy-400: #5B7BA8; --navy-50: #E7EDF6;
  --text: #111826; --text-2: #545C6B; --text-3: #8A93A3;
  --canvas: #F6F7F9; --surface: #FFFFFF; --sunken: #F1F2F4;
  --border: #E3E6EB; --border-strong: #D6DAE1;
  --pass: #147A5E; --pass-bg: #E6F4EF;
  --check: #B4761A; --check-bg: #FDF3E1; --check-text: #8A5A12;
  --maroon: #A4471F; --maroon-bg: #FBEEE8;
  --danger: #B3261E; --danger-bg: #FBEBEA;
  --radius: 14px; --radius-s: 10px;
  --shadow: 0 1px 2px rgba(11,22,38,.06);
  --shadow-raised: 0 6px 20px rgba(11,22,38,.10);
  --top-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 64px); }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.65; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--navy-600); text-underline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ── 상단바 ── */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--navy-800); text-decoration: none; letter-spacing: -0.03em; }
.logo-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--navy-800); color: #fff; font-size: 15px; }
.logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.top-act { display: flex; align-items: center; gap: 8px; }
.top-grp { display: flex; gap: 4px; padding: 3px; background: var(--sunken); border-radius: 999px; }
.top-grp a { height: 30px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; color: var(--navy-800); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.top-share { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--navy-800); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
@media (hover: hover) {
  .top-grp a:hover { background: var(--surface); box-shadow: var(--shadow); }
  .top-share:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
}
button.btn { border: 0; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: rgba(18,35,59,.94); color: #fff; font-size: 14.5px; font-weight: 600; padding: 11px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 480px) {
  .logo { font-size: 16px; gap: 6px; }
  .logo-img { width: 26px; height: 26px; }
  .top-act { gap: 6px; }
  .top-grp a { padding: 0 9px; font-size: 13px; height: 28px; }
  .top-share { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .top-share span { display: none; }
}

/* ── 히어로 ── */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #2a4f82 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 28px 0 32px; }
.crumb { font-size: 13px; color: rgba(255,255,255,.65); display: flex; gap: 6px; align-items: center; }
.crumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip-s { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.chip-s.private { background: #fff; color: var(--navy-700); }
.chip-s.danger { background: var(--danger-bg); color: var(--danger); }
.hero h1 { font-size: clamp(28px, 5.4vw, 44px); line-height: 1.2; margin: 12px 0 8px; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 span { display: block; font-size: .5em; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: -0.02em; margin-top: 4px; }
.hero-sub { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.fact { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact span { font-size: 12.5px; color: rgba(255,255,255,.66); }
.fact b { font-size: clamp(19px, 2.4vw, 24px); font-weight: 750; letter-spacing: -0.03em; }
.fact em { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact.neg b { color: #FFC9A8; }
.fact.pos b { color: #9FE3C9; }

/* ── 본문 레이아웃 ── */
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.toc { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 550; }
.toc a span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--sunken); font-size: 12px; font-weight: 700; color: var(--text-3); }
.toc a:hover { background: var(--surface); color: var(--navy-700); box-shadow: var(--shadow); }
.toc a:hover span { background: var(--navy-50); color: var(--navy-600); }

/* ── 섹션 ── */
.sec { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; margin-bottom: 16px; box-shadow: var(--shadow); }
.sec-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.sec-no { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-800); color: #fff; font-weight: 800; font-size: 16px; }
.sec h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -0.03em; }
.sec-lead { margin: 2px 0 0; color: var(--text-3); font-size: 14px; }
.sub { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--sunken); }
.sec-h + .sub { border-top: 0; margin-top: 4px; padding-top: 12px; }
.sub h3 { margin: 0 0 10px; font-size: 16.5px; letter-spacing: -0.02em; color: var(--navy-800); }

.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); font-size: 14.5px; }
.kv dd { margin: 0; font-size: 15px; }
.unk { display: inline-flex; align-items: center; gap: 4px; color: var(--check-text); background: var(--check-bg); font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 6px; }
.muted { color: var(--text-3); font-size: 14px; }
.note { font-size: 13.5px; color: var(--text-2); margin: 10px 0 0; }
.note.warn { color: var(--maroon); }
.blk { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--pass); background: var(--pass-bg); padding: 1px 8px; border-radius: 6px; margin-left: 4px; }
.chip { display: inline-block; font-size: 12.5px; background: var(--sunken); color: var(--text-2); padding: 2px 8px; border-radius: 6px; margin: 2px 0; white-space: nowrap; }

.near { list-style: none; margin: 0; padding: 0; }
.near li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.near em { font-style: normal; font-size: 12px; color: var(--text-3); }
.near b { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--navy-700); white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.grid2 .kv > div { grid-template-columns: 120px minmax(0,1fr); }

.missing { margin-top: 20px; background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 14px 16px; font-size: 14px; color: var(--text-2); }
.missing strong { color: var(--text); font-size: 14px; }
.missing ul { margin: 6px 0; padding-left: 18px; }
.missing p { margin: 0; font-size: 13px; color: var(--text-3); }

/* ── 표 ── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius-s); margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.tbl caption { text-align: left; font-size: 13px; color: var(--text-3); padding: 10px 14px 0; caption-side: top; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--sunken); vertical-align: top; }
.tbl thead th { font-size: 13px; color: var(--text-3); font-weight: 600; background: var(--canvas); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl tbody th { font-weight: 650; white-space: nowrap; }
.tbl tbody th small { font-weight: 400; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl td.num, .tbl td .num { text-align: right; white-space: nowrap; }
.tbl td.num { text-align: right; }
.tbl thead th:nth-child(n+2) { text-align: right; }
.tbl small { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; }
.tbl .strong { font-weight: 700; color: var(--navy-800); }
.tbl tr.hl { background: var(--navy-50); }
.tbl.tracks thead th:nth-child(n+3), .tbl.tracks td:nth-child(n+3) { text-align: left; }
.tbl.tracks { min-width: 760px; }
.stages { margin: 0; padding-left: 18px; }
.stages li { margin: 0 0 6px; }
.stages li:last-child { margin-bottom: 0; }
.stages small { display: block; color: var(--text-3); font-size: 12.5px; }

/* ── 안전마진 ── */
.margin { border-radius: var(--radius); padding: 18px; background: var(--canvas); border: 1px solid var(--border); margin-bottom: 14px; }
.margin-eq { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.margin-eq > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.margin-eq i { font-style: normal; font-size: 22px; color: var(--text-3); text-align: center; }
.margin-eq span { font-size: 12.5px; color: var(--text-3); }
.margin-eq b { font-size: 19px; letter-spacing: -0.03em; }
.margin-eq em { font-style: normal; font-size: 12px; color: var(--text-3); }
.margin-eq .res { border-width: 2px; }
.margin.neg .res { border-color: #E8C9BC; background: var(--maroon-bg); }
.margin.neg .res b { color: var(--maroon); }
.margin.pos .res { border-color: #B9DFD2; background: var(--pass-bg); }
.margin.pos .res b { color: var(--pass); }
.margin > p { margin: 12px 0 0; font-size: 14.5px; }

/* ── 가점·추첨 비율 ── */
.ratio { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ratio li { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: center; font-size: 14.5px; }
.bar { height: 12px; border-radius: 999px; background: #D9E6F7; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--navy-600); border-radius: 999px 0 0 999px; }
.ratio b { font-weight: 650; white-space: nowrap; }

.types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.types li { background: var(--canvas); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px 14px; font-size: 14.5px; }
.types b { color: var(--navy-800); margin-right: 4px; }
.types .num { color: var(--text-3); margin-left: 4px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { font-size: 13px; padding: 8px 10px; color: var(--text-2); }

/* ── 일정 ── */
.timeline { list-style: none; margin: 0 0 8px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; display: flex; gap: 16px; padding: 7px 0; }
.timeline .dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-600); margin-top: 4px; z-index: 1; }
.timeline div { display: grid; grid-template-columns: 140px 1fr; gap: 2px 16px; width: 100%; }
.timeline b { font-weight: 650; }
.timeline time { font-variant-numeric: tabular-nums; color: var(--navy-800); font-weight: 600; }
.timeline small { grid-column: 2; color: var(--text-3); font-size: 13px; }

/* ── 앱 안내·출처 ── */
.app-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; border-radius: 18px; padding: 22px 26px; margin: 24px 0 16px; }
.app-cta strong { font-size: 17px; }
.app-cta p { margin: 4px 0 0; color: rgba(255,255,255,.78); font-size: 14.5px; }
.btn { flex: none; background: #fff; color: var(--navy-800); font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 12px; font-size: 15px; }
.src { font-size: 13.5px; color: var(--text-2); padding: 4px 4px 0; }
.src p { margin: 0 0 8px; }
.site-foot { border-top: 1px solid var(--border); padding: 20px 0 32px; font-size: 13px; color: var(--text-3); }
.site-foot a { color: var(--text-2); }

/* ── 태블릿 ── */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .toc { position: sticky; top: var(--top-h); z-index: 20; margin: 0 -20px 16px; background: rgba(246,247,249,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .toc ol { flex-direction: row; overflow-x: auto; gap: 6px; padding: 10px 20px; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; padding: 6px 12px 6px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
  .toc a span { width: 20px; height: 20px; border-radius: 999px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

/* ── 모바일 ── */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .toc { margin: 0 -16px 12px; }
  .toc ol { padding: 10px 16px; }
  .hero { padding: 20px 0 22px; }
  .facts { gap: 8px; margin-top: 18px; }
  .fact { padding: 12px; }
  .fact b { font-size: 19px; }
  .sec { padding: 20px 16px; border-radius: 16px; margin-bottom: 12px; }
  .sec h2 { font-size: 19px; }
  .sec-no { width: 30px; height: 30px; font-size: 14px; }
  .kv > div, .grid2 .kv > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .kv dt { font-size: 13px; color: var(--text-3); }
  .grid2 { grid-template-columns: 1fr; }
  .margin { padding: 12px; }
  .margin-eq { grid-template-columns: 1fr; gap: 6px; }
  .margin-eq i { display: none; }
  .margin-eq > div { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 8px; }
  .margin-eq em { width: 100%; }
  .ratio li { grid-template-columns: 1fr auto; }
  .ratio .bar { grid-column: 1 / -1; grid-row: 2; }
  .timeline div { grid-template-columns: 1fr; }
  .timeline small { grid-column: 1; }
  .app-cta { flex-direction: column; align-items: stretch; padding: 20px; }
  .btn { text-align: center; }
  /* 표는 좁은 화면에서 카드처럼 편다 — 가로 스크롤 없이 읽히게 */
  .tbl-wrap { border: 0; overflow: visible; }
  .tbl { min-width: 0 !important; }
  .tbl caption { display: block; padding: 0 0 8px; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 8px; background: #fff; }
  .tbl tr.hl { background: var(--navy-50); }
  .tbl tbody th { padding: 0 0 6px; border: 0; font-size: 15px; white-space: normal; }
  .tbl td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; border: 0; text-align: right !important; }
  .tbl td::before { content: attr(data-label); color: var(--text-3); font-size: 13px; text-align: left; flex: none; }
  .tbl td .cv { text-align: right; }
  .tbl td small { display: inline; margin-left: 6px; }
  .tbl tbody th small { display: inline; margin-left: 6px; }
  .tbl.tracks td { display: block; text-align: left !important; }
  .tbl.tracks td .cv { display: block; text-align: left; }
  .tbl.tracks td::before { display: block; margin-bottom: 2px; }
}

/* ── 목록 ── */
.index-main { padding-top: 24px; padding-bottom: 48px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.card strong { font-size: 18px; letter-spacing: -0.02em; }
.card-meta { font-size: 13px; color: var(--text-3); }
.card-row { font-size: 14.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ═══════════ 2차(2026-09-17): 상세보기·지도·달력·전형카드·목록 ═══════════ */
.pg { display: inline-block; font-size: 11.5px; color: var(--text-3); background: var(--sunken); border-radius: 5px; padding: 0 6px; margin-left: 4px; vertical-align: middle; white-space: nowrap; }
.raw { font-size: 13px; color: var(--text-2); background: var(--canvas); border-left: 3px solid var(--border-strong); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 8px 0 0; }
.order { margin: 0 0 8px; font-size: 14px; }
.order b { color: var(--navy-700); margin-right: 6px; }
.bul { margin: 4px 0; padding-left: 18px; font-size: 14px; }
.bul li { margin: 3px 0; }
h4 { margin: 14px 0 6px; font-size: 14.5px; color: var(--navy-800); }

/* 상세보기(details) */
.dt { border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
.dt > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 40px 11px 14px; position: relative; font-size: 14.5px; }
.dt > summary::-webkit-details-marker { display: none; }
.dt > summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy-400); border-bottom: 2px solid var(--navy-400); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.dt[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.dt > summary:hover { background: var(--canvas); border-radius: var(--radius-s); }
.dt[open] > summary { border-bottom: 1px solid var(--sunken); border-radius: var(--radius-s) var(--radius-s) 0 0; }
.dt-b { padding: 12px 14px 14px; }
.dt.mini { border: 0; background: transparent; margin-top: 8px; }
.dt.mini > summary { padding: 6px 28px 6px 0; color: var(--navy-600); font-weight: 600; font-size: 14px; display: inline-flex; }
.dt.mini > summary::after { right: 8px; }
.dt.mini[open] > summary { border: 0; }
.dt.mini > summary:hover { background: transparent; text-decoration: underline; }
.dt.mini > summary small { color: var(--text-3); font-weight: 400; margin-left: 6px; }
.dt.mini .dt-b { padding: 6px 0 0; }

/* 위치 지도 2장 */
.maps2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map { margin: 0; }
.map-box { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #eef1f4; aspect-ratio: 1 / 1; }
.map-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map figcaption { font-size: 13.5px; color: var(--text-2); padding: 8px 2px 0; }
.map figcaption b { color: var(--text); }
.home { position: absolute; transform: translate(-50%, -100%); z-index: 5; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.home i { width: 22px; height: 22px; background: var(--danger); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(3px, -3px); box-shadow: 0 2px 6px rgba(0,0,0,.35); order: 2; }
.home b { order: 1; background: var(--navy-900); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.25); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.gl { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.spin, .ipin { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--navy-700); border: 1.5px solid var(--navy-600); box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: default; outline: none; }
.spin .gl, .ipin .gl { width: 13px; height: 13px; }
.spin b { display: none; position: absolute; left: 125%; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: var(--text); border: 1px solid var(--border-strong); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; box-shadow: var(--shadow-raised); }
.ipin b { display: none; position: absolute; left: 50%; bottom: 125%; transform: translateX(-50%); white-space: nowrap; background: #fff; color: var(--text); border: 1px solid var(--border-strong); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; box-shadow: var(--shadow-raised); }
.spin.on b, .spin:hover b, .spin:focus b, .ipin:hover b, .ipin:focus b { display: block; }
.spin:hover, .spin:focus, .ipin:hover, .ipin:focus { z-index: 9; }
.near.st li span { display: inline-flex; align-items: center; gap: 6px; }
.near.st .gl { color: var(--navy-600); }

/* 주변 인프라 지도 — 종류별 색 */
.map.infra { max-width: 560px; margin: 0 auto 14px; }
.rings { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(39,73,122,.35); }
.ring.r1k { border: 1.5px solid rgba(39,73,122,.6); background: rgba(39,73,122,.04); }
.ring em { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 11px; font-weight: 700; color: var(--navy-700); background: rgba(255,255,255,.9); padding: 0 5px; border-radius: 4px; }
.k-subway { --kc: #27497A; } .k-daycare { --kc: #B4761A; } .k-kinder { --kc: #C0582B; } .k-elem { --kc: #147A5E; } .k-mid { --kc: #1F6F6B; }
.k-high { --kc: #6B4E9E; } .k-mart { --kc: #A4471F; } .k-park { --kc: #3F7D2C; } .k-hosp { --kc: #B3261E; }
.ipin { color: var(--kc, var(--navy-700)); border-color: var(--kc, var(--navy-600)); }
.legend { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; }
.legend li { display: inline-flex; align-items: center; gap: 4px; color: var(--kc); font-weight: 600; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat .dt > summary, .cat-flat { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cat-flat { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 11px 14px; background: var(--canvas); font-size: 14.5px; }
.cat-h { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.cat-h .gl { color: var(--kc); width: 17px; height: 17px; }
.cat-n { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.cat-n b { color: var(--navy-800); font-size: 15px; margin-left: 2px; }
.cat-n.zero b { color: var(--text-3); font-weight: 500; }
.near.out { padding: 4px 14px 0; font-size: 13px; color: var(--text-3); }
.near.out b { color: var(--text-3); font-weight: 500; }

/* 평형 묶음 */
.bands { display: grid; gap: 8px; }
.band > summary { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px; padding-top: 13px; padding-bottom: 13px; }
.band-n { font-size: 19px; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.band-n small { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.band-m { color: var(--text-2); font-size: 14px; }
.band-p { text-align: right; }
.band-p small { display: block; font-size: 12px; color: var(--text-3); }
.band-p b { font-size: 17px; color: var(--navy-800); }
.opts { list-style: none; padding: 0; margin: 0; }
.opts li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.opts li small { display: block; color: var(--text-3); font-size: 12px; }
.opts b { white-space: nowrap; font-weight: 650; }

/* 전형 카드 */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.track { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--canvas); min-width: 0; }
.track header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.track h4 { margin: 0; font-size: 16px; }
.track header b { font-size: 15px; color: var(--navy-700); background: var(--navy-50); padding: 2px 10px; border-radius: 999px; }
.conds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.dt { min-width: 0; }
.dt-b { overflow-x: auto; }
.stages > li { min-width: 0; }
.cond > summary { padding-top: 9px; padding-bottom: 9px; font-size: 14px; }
.chip-l { flex: none; font-size: 11.5px; font-weight: 700; color: var(--navy-600); background: var(--navy-50); padding: 1px 7px; border-radius: 5px; }
.lbl { margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.lbl small { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stage > summary { font-size: 14px; }
.st-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: 12px; font-weight: 700; }
.st-t { flex: 1; min-width: 0; }
.st-t b { color: var(--navy-600); }
.st-u { flex: none; font-weight: 650; color: var(--text); }
.score { margin-top: 6px; }
.score-h { margin: 0 0 6px; font-size: 13.5px; }
.score ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.score li { background: var(--canvas); border-radius: 8px; padding: 8px 10px; }
.score li > div { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.score li > div span { color: var(--navy-600); font-weight: 700; white-space: nowrap; }
.score li p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.lv { font-size: 12px; background: #fff; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-2); }
.lv b { color: var(--navy-800); }
.score li small { display: block; color: var(--text-3); font-size: 12px; margin-top: 4px; }
.lot ol { margin: 0; padding-left: 20px; font-size: 14px; }
.lot li { margin: 3px 0; }
.tbl.inc { min-width: 480px; font-size: 13.5px; }
.tbl.inc th em { display: block; font-style: normal; font-size: 11px; color: var(--pass); }
.tbl.pay td:nth-child(3) { text-align: left; }

/* 규제 */
.rules { display: grid; gap: 8px; }
.rule-d > summary, .rule-flat { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.rule-flat { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 11px 14px; }
.rule-k { color: var(--text-2); font-size: 14px; font-weight: 600; }
.rule-v { font-size: 14.5px; }
.law { background: var(--canvas); border-radius: 8px; padding: 10px 12px; margin-top: 8px; }
.law:first-child { margin-top: 0; }
.law.easy { background: var(--navy-50); }
.law b { font-size: 14px; color: var(--navy-800); }
.law p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.law .links a { font-size: 13px; margin-right: 8px; }

/* 달력 */
.cals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 8px; }
.cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal caption { text-align: left; font-weight: 800; font-size: 16px; color: var(--navy-800); padding: 0 3px 6px; }
.cal th { font-size: 12px; color: var(--text-3); font-weight: 600; padding: 2px 0; }
.cal td { vertical-align: top; height: 58px; background: var(--canvas); border-radius: 8px; padding: 4px; font-size: 12px; overflow: hidden; }
.cal td.pad { background: transparent; }
.cal .dn { display: block; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cal td.sun .dn { color: var(--danger); }
.cal td.sat .dn { color: var(--navy-600); }
.cal td.has { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ec); }
.ev { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; line-height: 1.25; color: var(--ec); word-break: keep-all; }
.e-notice { --ec: #5B7BA8; } .e-apply { --ec: #27497A; } .e-result { --ec: #147A5E; } .e-doc { --ec: #B4761A; } .e-contract { --ec: #A4471F; }
.cal-leg { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); }
.cal-leg li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--ec); margin-right: 5px; vertical-align: -1px; }

/* 갤러리 */
.gallery a { display: block; }
.gallery.wide { grid-template-columns: 1fr; }
.gallery.wide img { max-height: 720px; object-fit: contain; background: #fff; }
.band .gallery { margin-top: 12px; }

/* 목록 */
.rg { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.rg a { color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.rg a b { margin-left: 4px; color: #9FC3F0; }
.rg a.on { background: #fff; color: var(--navy-800); border-color: #fff; }
.rg a.on b { color: var(--navy-800); }
.empty { padding: 40px 16px; text-align: center; color: var(--text-3); background: var(--surface, #fff); border: 1px dashed var(--border); border-radius: 14px; }
.rg-sec { margin-bottom: 28px; }
.rg-sec h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.02em; }
.rg-sec h2 small { font-size: 14px; color: var(--text-3); font-weight: 500; }
.card { gap: 8px; }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.st-on { background: var(--pass-bg); color: var(--pass); }
.st-soon { background: var(--navy-50); color: var(--navy-600); }
.st-off { background: var(--sunken); color: var(--text-3); }
.card-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 4px 0 0; }
.card-kv div { display: flex; flex-direction: column; }
.card-kv dt { font-size: 12px; color: var(--text-3); }
.card-kv dd { margin: 0; font-size: 15px; font-weight: 650; color: var(--text); }
.card-kv dd.neg { color: var(--maroon); }
.card-kv dd.pos { color: var(--pass); }

/* 노선 지도(가장 가까운 역 + 앞뒤 역) */
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lines polyline { fill: none; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; opacity: .9; vector-effect: non-scaling-stroke; }
.ldot { position: absolute; transform: translate(-50%, -50%); width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2.5px solid var(--lc); z-index: 2; }
.lst { position: absolute; transform: translate(-50%, -50%); z-index: 4; display: flex; align-items: center; }
.lst i { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--lc); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.lst b { position: absolute; left: 20px; white-space: nowrap; background: #fff; color: var(--text); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.lst.near1 i { width: 22px; height: 22px; border-width: 5px; }
.lst.near1 b { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.lchip { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--lc); padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.near.st .st-1 span { font-weight: 700; }
.near.st em { font-style: normal; font-size: 11.5px; color: var(--navy-600); background: var(--navy-50); padding: 0 6px; border-radius: 5px; margin-left: 4px; }

/* 인프라 목록 ↔ 지도 강조 */
button.ipin { padding: 0; font: inherit; cursor: pointer; }
.ipin.extra { display: none; }
.map-box.dim .ipin { opacity: .22; }
.map-box.dim .ipin.on { opacity: 1; display: grid; background: var(--kc); color: #fff; border-color: #fff; width: 26px; height: 26px; z-index: 6; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.map-box.dim .ipin.on .gl { width: 15px; height: 15px; }
.map-box.dim .ipin.sel { z-index: 8; transform: translate(-50%, -50%) scale(1.25); }
.map-box.dim .ipin.sel b { display: block; }
.cat.act .dt, .cat.act .cat-flat { border-color: var(--kc, var(--navy-600)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy-600) 18%, transparent); }
.cat li[data-id] { cursor: pointer; border-radius: 6px; padding-left: 4px; padding-right: 4px; margin: 0 -4px; }
.cat li[data-id]:hover { background: var(--canvas); }
.cat li.sel { background: var(--navy-50); font-weight: 700; }
.cat-flat { cursor: pointer; }

/* 지도 → 카카오맵 */
a.map-box { display: block; color: inherit; text-decoration: none; }
.kmap { position: absolute; right: 8px; bottom: 8px; z-index: 9; background: #FEE500; color: #191600; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* 자금 조달 표 */
.tbl.fund { min-width: 0; }
.tbl.fund thead th:nth-child(n+2) { text-align: right; }
.tbl.fund tbody th { white-space: normal; font-weight: 600; }
.tbl.fund tbody th small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.tbl.fund td small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 400; }
.tbl.fund tr.sub-h > * { border-top: 2px solid var(--border); }
.tbl.fund tr.sum > * { background: var(--canvas); }
.tbl.fund tr.total > * { background: var(--navy-50); font-size: 15.5px; }
.tbl.fund tr.total td strong { color: var(--navy-800); font-size: 17px; }
.assume { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.assume li { margin: 3px 0; }

/* 전형 — 지역 우선 · 핵심 자격 */
.rg-mode { margin: 0 0 10px; font-size: 13.5px; border-radius: 8px; padding: 8px 10px; }
.rg-mode b { font-size: 12px; padding: 1px 7px; border-radius: 5px; margin-right: 6px; }
.rg-mode small { display: block; margin-top: 3px; color: var(--text-2); font-size: 12.5px; }
.rg-mode.priority { background: var(--check-bg); }
.rg-mode.priority b { background: var(--check); color: #fff; }
.rg-mode.split, .rg-mode.agency { background: var(--pass-bg); }
.rg-mode.split b, .rg-mode.agency b { background: var(--pass); color: #fff; }
.rg-sum { display: grid; gap: 6px; margin-bottom: 14px; }
.rg-sum p { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.rg-sum p.ok { background: var(--pass-bg); }
.rg-sum p.ok b { color: var(--pass); }
.rg-sum p.warn { background: var(--check-bg); }
.rg-sum p.warn b { color: var(--check-text); }
.keys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.keys .dt.key { flex: 1 1 auto; min-width: 45%; }
.key > summary { padding-top: 8px; padding-bottom: 8px; }
.key-h { font-weight: 700; font-size: 14.5px; color: var(--navy-800); }

/* 조감도 */
.aerial { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #0B1626; }
.aerial img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.aerial figcaption { position: absolute; left: 12px; top: 12px; background: rgba(11,22,38,.72); color: #fff; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.struct { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 6px; padding: 28px 12px 12px; background: linear-gradient(transparent, rgba(11,22,38,.85)); }
.sc { font-size: 13px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 4px 10px; border-radius: 999px; }
.sc b { margin-right: 4px; }
.sc.flat b { color: #9FE3C9; }
.sc.tower b { color: #FFC9A8; }

@media (max-width: 960px) {
  .tracks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .maps2 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .band > summary { grid-template-columns: 1fr auto; }
  .band > summary .band-m { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .band-p b { font-size: 15.5px; }
  .rule-d > summary, .rule-flat { grid-template-columns: 1fr; gap: 2px; }
  .rule-k { font-size: 12.5px; color: var(--text-3); }
  .cal td { height: 50px; padding: 3px; }
  .ev { font-size: 10px; letter-spacing: -0.03em; }
  .cals { grid-template-columns: 1fr; }
  .home b { font-size: 11px; max-width: 120px; }
  .tbl.inc { display: table !important; min-width: 460px !important; }
  .tbl.inc thead { position: static; width: auto; height: auto; clip: auto; }
  .tbl.inc thead, .tbl.inc tbody { display: table-row-group !important; }
  .tbl.inc thead { display: table-header-group !important; }
  .tbl.inc tr { display: table-row !important; border: 0; padding: 0; }
  .tbl.inc th, .tbl.inc td { display: table-cell !important; padding: 6px 8px; text-align: right !important; }
  .tbl.inc td::before { content: none; }
  /* 납부 일정표는 4칸이라 모바일에서도 표 그대로 — 카드로 펴면 9장이 늘어진다 */
  .tbl.pay { display: table !important; font-size: 13px; }
  .tbl.pay thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group !important; }
  .tbl.pay tbody { display: table-row-group !important; }
  .tbl.pay tr { display: table-row !important; border: 0; padding: 0; margin: 0; }
  .tbl.pay th, .tbl.pay td { display: table-cell !important; padding: 7px 6px; border-bottom: 1px solid var(--sunken); }
  .tbl.pay td::before { content: none; }
  .tbl.pay td .cv { text-align: inherit; }
  .tbl.pay tbody th { font-size: 13px; white-space: nowrap; }
  /* 자금표도 3칸 표 그대로 */
  .tbl.fund { display: table !important; font-size: 13px; }
  .tbl.fund thead { position: static; width: auto; height: auto; clip: auto; display: table-header-group !important; }
  .tbl.fund tbody { display: table-row-group !important; }
  .tbl.fund tr { display: table-row !important; border: 0; padding: 0; margin: 0; background: transparent; }
  .tbl.fund th, .tbl.fund td { display: table-cell !important; padding: 7px 6px; border-bottom: 1px solid var(--sunken); }
  .tbl.fund td { text-align: right !important; }
  .tbl.fund td::before { content: none; }
  .tbl.fund tbody th { font-size: 13px; }
  .tbl.fund tr.total td strong { font-size: 14.5px; }
  .rg-sum p { grid-template-columns: 1fr; gap: 2px; }
  .keys .dt.key { min-width: 100%; }
  .struct { position: static; background: #0B1626; }
  .aerial img { max-height: 320px; }
  .tbl-wrap.scroll { overflow-x: auto; border: 1px solid var(--border); }
  .dt-b { padding: 10px 12px 12px; }
  .tbl td.num { white-space: normal; }
  .tbl td .cv small { display: block; margin-left: 0; }
}

.grp-note { margin: -6px 0 12px; font-size: 13.5px; color: var(--text-3); }

/* 접수 마감된 공고 — 목록에서 빠진 공고 페이지가 고아가 되지 않게 링크만 모아 둔다 */
.closed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.closed-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.closed-list a { font-weight: 700; color: var(--navy-800); text-decoration: none; }
.closed-list span { font-size: 13px; color: var(--text-3); }
