/* 직대딩 디자인 시스템 — 로고 하늘색(#9CCDEF · #70BADF)과 잉크(#0B0F14)에서 출발 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #f5f9fc;
  --bg-2: #eaf3fa;
  --surface: #ffffff;
  --surface-2: #f0f6fb;
  --ink: #0b0f14;
  --ink-2: #2a3542;
  --muted: #566372;
  --line: #dfe8f0;
  --accent: #70badf;
  --accent-2: #9ccdef;
  --accent-ink: #14699a; /* 흰 배경 위 텍스트 4.5:1 이상 */
  --accent-soft: #e4f2fb;
  --ok: #17794a;
  --warn: #9a5b00;
  --shadow: 0 1px 2px rgb(11 15 20 / 6%), 0 8px 24px -12px rgb(20 80 120 / 18%);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #090d12;
  --bg-2: #0d141b;
  --surface: #111a23;
  --surface-2: #16212c;
  --ink: #eef4fa;
  --ink-2: #c9d5e1;
  --muted: #92a2b3;
  --line: #1f2c39;
  --accent: #9ccdef;
  --accent-2: #70badf;
  --accent-ink: #9ccdef;
  --accent-soft: #12283a;
  --ok: #5fd6a0;
  --warn: #f0b95a;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px -14px rgb(0 0 0 / 60%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090d12; --bg-2: #0d141b; --surface: #111a23; --surface-2: #16212c;
    --ink: #eef4fa; --ink-2: #c9d5e1; --muted: #92a2b3; --line: #1f2c39;
    --accent: #9ccdef; --accent-2: #70badf; --accent-ink: #9ccdef; --accent-soft: #12283a;
    --ok: #5fd6a0; --warn: #f0b95a;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 10px 30px -14px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font); letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

/* ───────── 헤더 ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 22px; width: auto; }
.theme-light-only { display: block; } .theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-light-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-light-only { display: none; }
  :root:not([data-theme="light"]) .theme-dark-only { display: block; }
}
.nav { display: flex; gap: 2px; margin-left: 20px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.bar-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(.97); }
.icon-btn kbd { font: 500 12px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.icon-btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn.sq { width: 40px; padding: 0; justify-content: center; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; margin: 0; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .menu-btn { display: inline-flex; }
  .icon-btn .lbl, .icon-btn kbd { display: none; }
  .icon-btn.search { width: 40px; padding: 0; justify-content: center; }
}

/* ───────── 히어로 ───────── */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 30%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 70%),
    radial-gradient(36% 46% at 82% 18%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  filter: blur(30px); opacity: .55;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .02em;
  color: var(--accent-ink); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
h1.display {
  margin: 20px 0 0; font-size: clamp(40px, 8.2vw, 92px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800;
  text-wrap: balance;
}
h1.display .grad {
  background: linear-gradient(100deg, #5eb0da 0%, #9ccdef 55%, #70badf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 24px 0 0; max-width: 40em; font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px;
  font: 700 16px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { box-shadow: 0 10px 30px -10px rgb(11 15 20 / 50%); transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* ───────── 섹션 · 카드 ───────── */
section.block { padding: clamp(40px, 6vw, 72px) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
h2.sec { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.sec-sub { margin: 8px 0 0; color: var(--muted); max-width: 38em; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s;
}
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover, .card.hover:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.c-12 { grid-column: span 12; } .c-8 { grid-column: span 8; } .c-7 { grid-column: span 7; }
.c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; }
@media (max-width: 900px) { .c-8, .c-7, .c-6, .c-5, .c-4 { grid-column: span 12; } }
.card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.03em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card .tag { font-size: 13px; font-weight: 700; color: var(--accent-ink); margin-bottom: 10px; display: block; }
.card .go { margin-top: 18px; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card .go svg { width: 18px; height: 18px; flex: none; }
.card.dark { background: var(--ink); color: var(--bg); border-color: transparent; }
:root[data-theme="dark"] .card.dark { background: #16212c; color: var(--ink); }
.card.dark p, .card.dark .tag { color: color-mix(in srgb, currentColor 72%, transparent); }
.card.tint { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); }

.stat-row { display: flex; flex-wrap: wrap; gap: 28px 44px; }
.stat b { display: block; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.card.dark .stat span { color: color-mix(in srgb, currentColor 65%, transparent); }

/* 타임라인 */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time { font-weight: 800; letter-spacing: -0.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.timeline b { display: block; letter-spacing: -0.02em; }
.timeline small { color: var(--muted); font-size: 14px; }

/* ───────── 폼 · 계산기 ───────── */
label.f { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
input, select {
  height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 0 14px; font: 500 16px var(--font); width: 100%;
}
input:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
input[type="search"] { padding-left: 44px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23788796' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 14px center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.periods { display: grid; gap: 12px; margin: 18px 0; }
.period { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.period .p-note { grid-column: 1 / -1; margin: -2px 0 0; }
.period .p-note:empty { display: none; }
.period .p-note.good { color: var(--accent-ink); font-weight: 600; }
.chk { display: inline-flex; align-items: center; gap: 8px; height: 48px; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
input:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .period { grid-template-columns: 1fr 1fr; } .period .nm { grid-column: 1 / -1; } .period .rm { grid-column: span 1; } }
.rm { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.rm:hover { color: var(--ink); border-color: var(--accent); }
.result {
  margin-top: 22px; padding: 22px; border-radius: var(--radius-sm); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.result .big { font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .big small { font-size: .4em; font-weight: 700; letter-spacing: -0.02em; margin-left: 4px; color: var(--muted); }
.meter { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); overflow: hidden; margin: 16px 0 10px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.note { font-size: 14px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }

/* ───────── FAQ ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
details.q { border-top: 1px solid var(--line); }
details.q:last-child { border-bottom: 1px solid var(--line); }
details.q summary {
  list-style: none; cursor: pointer; padding: 22px 4px; display: flex; gap: 16px; align-items: baseline;
  font-weight: 700; font-size: 18px; letter-spacing: -0.025em; line-height: 1.45;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary .n { color: var(--accent-ink); font-variant-numeric: tabular-nums; min-width: 2ch; }
details.q summary::after { content: "+"; margin-left: auto; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .25s; }
details.q[open] summary::after { transform: rotate(45deg); }
details.q .a { padding: 0 4px 26px 34px; color: var(--ink-2); max-width: 46em; }
details.q .a p { margin: 0 0 10px; } details.q .a ul { margin: 0 0 10px; padding-left: 20px; }
details.q .a li { margin: 4px 0; }
mark { background: color-mix(in srgb, var(--accent) 38%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ───────── 표 ───────── */
.toolbar { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 820px) { .toolbar { grid-template-columns: 1fr 1fr; } .toolbar .wide { grid-column: span 2; } }
.table-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: auto; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: middle; }
thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none; }
thead th[aria-sort="ascending"]::after { content: " ↑"; } thead th[aria-sort="descending"]::after { content: " ↓"; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
td.num, th.num { text-align: right; }
td.univ { font-weight: 700; letter-spacing: -0.02em; }
td small { color: var(--muted); display: block; font-size: 13px; }
.bar-cell { display: grid; grid-template-columns: 1fr 56px; gap: 10px; align-items: center; min-width: 150px; }
.bar-cell .track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-cell .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.bar-cell b { text-align: right; font-weight: 800; }
.spark { width: 84px; height: 28px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--accent-ink); }

/* ───────── 검색 팔레트 ───────── */
dialog.palette {
  border: 1px solid var(--line); border-radius: 22px; padding: 0; width: min(640px, calc(100% - 24px));
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%); margin-top: 12vh;
}
dialog.palette::backdrop { background: rgb(8 14 20 / 50%); backdrop-filter: blur(4px); }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 60px; font-size: 18px; padding: 0 22px 0 52px; background-position: 22px center; background-color: transparent; }
.palette input:focus-visible { outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette li a { display: block; padding: 12px 14px; border-radius: 12px; color: inherit; text-decoration: none; }
.palette li a:hover, .palette li a.on { background: var(--accent-soft); }
.palette li b { display: block; letter-spacing: -0.02em; }
.palette li small { color: var(--muted); }
.palette .hint { padding: 12px 22px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ───────── 푸터 ───────── */
.site-footer { position: relative; border-top: 1px solid var(--line); margin-top: 64px; padding: 52px 0 36px; background: var(--bg-2); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent); opacity: .7; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 32px 40px; align-items: start; }
.foot-brand img { height: 22px; width: auto; margin-bottom: 14px; }
.foot-brand p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; max-width: 30em; line-height: 1.65; }
.foot-brand .foot-tag { color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -0.03em; margin-bottom: 6px; }
.visits { display: flex; gap: 12px; margin-top: 14px; }
.visits[hidden] { display: none; }
.visits > div { min-width: 118px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.visits > div:nth-child(2) { animation-delay: .1s; }
.visits span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.visits b { display: block; margin-top: 2px; font-size: 24px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.visits > div:first-child b { color: var(--accent-ink); }
.foot-col h4 { margin: 0 0 14px; font-size: 13px; color: var(--muted); letter-spacing: .04em; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { display: inline-block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; transition: color .2s, transform .2s; }
.foot-col a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.foot-col a:hover { color: var(--ink); transform: translateX(2px); }
.foot-col a:hover::after { transform: scaleX(1); }
.to-top { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.to-top svg { width: 16px; height: 16px; transition: transform .25s; }
.to-top:hover { border-color: var(--accent); background: var(--accent-soft); }
.to-top:hover svg { transform: translateY(-3px); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }
.foot-bottom p { margin: 0; color: var(--muted); font-size: 13px; max-width: 46em; line-height: 1.6; }
.foot-copy { white-space: nowrap; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } .to-top { justify-self: start; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 26px 20px; } .to-top { grid-column: 1 / -1; } }
.legal-meta { margin: 0 0 18px; }
.prose h2 { scroll-margin-top: 88px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 8px 0; line-height: 1.7; }

/* 본문 페이지 */
.page-head { padding: clamp(40px, 7vw, 80px) 0 12px; }
.page-head h1 { margin: 14px 0 0; font-size: clamp(34px, 6vw, 60px); line-height: 1.1; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; }
.prose { max-width: 46em; }
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 46em; }
.prose h2 { font-size: 26px; letter-spacing: -0.03em; margin: 44px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; border-radius: 0 14px 14px 0; color: var(--ink-2); }
.callout.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
/* ───────── 움직임 ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(2.5%, 3%, 0) scale(1.06); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-copy > *, .hero:not(:has(.hero-grid)) .wrap > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2), .hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3), .hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4), .hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > :nth-child(5) { animation-delay: .32s; }
.hero::before { animation: drift 16s ease-in-out infinite; }
.eyebrow i { animation: pulse 2.2s ease-out infinite; }
.brand img { transition: transform .35s cubic-bezier(.2, .7, .2, 1); transform-origin: left center; }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }
.bar-cell .track i { transform-origin: left center; animation: grow 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
.reveal:not(.in) .bar-cell .track i { animation-play-state: paused; transform: scaleX(0); }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgb(11 15 20 / 35%); }
.btn:active, .chip:active { transform: scale(.97); }
.btn svg { transition: transform .25s; }
.btn:hover svg, .card .go:hover svg { transform: translateX(3px); }
.card .go svg { transition: transform .25s; }
a.card:hover .go svg { transform: translateX(4px); }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
details.q > :not(summary) { animation: rise .35s ease both; }
.bento > .reveal:nth-child(2) { transition-delay: .06s; }
.bento > .reveal:nth-child(3) { transition-delay: .12s; }
.bento > .reveal:nth-child(4) { transition-delay: .18s; }
body { transition: background-color .3s, color .3s; }
/* ───────── 히어로: 바뀌는 문구 + 오른쪽 미리보기 ───────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
h1.rot { display: grid; font-size: clamp(38px, 6.4vw, 78px); }
h1.rot .ph { grid-area: 1 / 1; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), filter .6s ease; pointer-events: none; }
h1.rot .ph.on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
h1.rot .ph.out { opacity: 0; transform: translateY(-24px); filter: blur(6px); }
.no-js h1.rot .ph:not(.on), .js-static h1.rot .ph:not(.on) { display: none; }
.hero-vis { position: relative; min-height: 400px; }
.vcard {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgb(11 15 20 / 38%); padding: 20px;
}
.v-ring { left: 2%; top: 4%; width: 262px; display: flex; align-items: center; gap: 14px; animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both, float 7s 1.2s ease-in-out infinite; }
.v-ring svg { flex: none; transform: rotate(-90deg); }
.rg-bg { fill: none; stroke: var(--surface-2); stroke-width: 11; }
.rg-fg { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring 1.8s .6s cubic-bezier(.3, .7, .2, 1) forwards; }
.rg-txt b { display: block; font-size: 22px; letter-spacing: -.04em; line-height: 1.1; }
.rg-txt span { font-size: 12.5px; color: var(--muted); }
.v-bars { right: 0; bottom: 4%; width: min(100%, 330px); animation: rise .9s .4s cubic-bezier(.2, .7, .2, 1) both, float 8s 1.6s ease-in-out infinite reverse; }
.v-bars .vh { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.v-bars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v-bars li { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.v-bars .bar-cell { min-width: 0; }
.vchip {
  position: absolute; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgb(11 15 20 / 60%); white-space: nowrap;
}
.vchip.c1 { right: 6%; top: 4%; animation: rise .8s .7s both, float 6s 1.5s ease-in-out infinite; }
.vchip.c2 { left: 0; top: 52%; background: var(--accent); color: #0B0F14; animation: rise .8s .85s both, float 9s 1.8s ease-in-out infinite reverse; }
.vchip.c3 { left: 8%; bottom: 2%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); animation: rise .8s 1s both, float 7.5s 2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ring { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-vis { min-height: 0; display: grid; gap: 14px; }
  .vcard, .vchip { position: static; width: auto; animation: none !important; }
  .v-ring { max-width: 280px; }
  .vchip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero .wrap > *, .hero-vis *, .hero::before, .ph, .eyebrow i, .bar-cell .track i, details.q > :not(summary) { animation: none !important; }
  .reveal:not(.in) .bar-cell .track i { transform: none; }
}

@media print { .site-header, .site-footer, .cta, .toolbar { display: none; } body { background: #fff; } }

/* ───────── 내신 계산기 ───────── */
.g-row { display: grid; grid-template-columns: 112px minmax(100px, 1.2fr) 84px 150px minmax(0, 2.4fr) 56px; gap: 10px; align-items: end; padding: 12px 0; border-top: 1px dashed var(--line); }
.g-row:first-child { border-top: 0; }
.g-row input, .g-row select { height: 44px; padding: 0 10px; font-size: 15px; }
.g-row .rm { height: 44px; padding: 0 8px; font-size: 13px; }
.g-row.off { opacity: .45; }
.g-val { display: grid; gap: 10px; }
.g-val-raw { grid-template-columns: repeat(3, 1fr); }
.g-row[data-mode="grade"] .g-val-raw, .g-row[data-mode="raw"] .g-val-grade { display: none; }
.g-row .lb { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (min-width: 761px) { .g-row:not(:first-child) .lb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 761px) { .g-row:not(:first-child) .g-val-raw .lb { position: static; width: auto; height: auto; clip: auto; overflow: visible; } }
.g-note { grid-column: 1 / -1; min-height: 0; margin: -2px 0 2px 2px; font-size: 13px; }
.g-note:empty { display: none; }
.g-note b { color: var(--accent-ink); }
.g-sems-table { width: 100%; min-width: 0; font-size: 14px; }
.g-sems-table th, .g-sems-table td { padding: 8px 10px; cursor: default; position: static; background: transparent; }
@media (max-width: 760px) {
  .g-row { grid-template-columns: 1fr 1fr; padding: 16px 0; gap: 10px; }
  .g-row .g-val { grid-column: 1 / -1; }
  .g-row .rm { grid-column: 1 / -1; height: 38px; }
}

/* ───────── 계산기 페이지 공통 ───────── */
.sec-h { margin: 0 0 18px; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.035em; font-weight: 800; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps .sn, .steps-label .sn {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--accent); color: #0B0F14; font-weight: 800; font-size: 15px;
}
.steps li > div > b { display: block; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.steps-label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 12px; }
.steps-label small { font-weight: 500; }
.opt { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px; background: var(--surface); }
.opt > summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; }
.opt > summary::-webkit-details-marker { display: none; }
.opt > summary::after { content: " ▾"; color: var(--muted); }
.opt[open] > summary::after { content: " ▴"; }
.opt ul { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); } .opt li { margin: 6px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions .btn, .copy { height: 44px; }
.copy { margin-top: 14px; }
.copy:disabled { opacity: .5; cursor: not-allowed; }
.result .empty { color: var(--muted); }
.faq-mini { border-radius: var(--radius-sm); }
.hub .card { display: flex; flex-direction: column; }
.hub .card h3 { font-size: 26px; }
.tick { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.tick li::before { content: "✓"; color: var(--accent-ink); font-weight: 800; margin-right: 8px; }
.hub .go { margin-top: auto; padding-top: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.live {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 45; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 700 15px var(--font); padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 16px 36px -14px rgb(11 15 20 / 60%); animation: rise .3s ease both; max-width: calc(100vw - 32px);
}
.live[hidden] { display: none; }

/* ───────── 커뮤니티 ───────── */
.bi { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 6px 16px -10px rgb(11 15 20 / 40%); }
.bi svg { width: 100%; height: 100%; display: block; }
.bi img { width: 66%; height: 66%; object-fit: contain; display: block; }
.bi-yt svg { width: 70%; height: 70%; }
.bi-nv { background: #03C75A; border-color: transparent; }
.bi-gen { background: var(--surface-2); }
.bi.lg { width: 54px; height: 54px; border-radius: 15px; }
.bi.sm { width: 38px; height: 38px; border-radius: 11px; }
.bi.xs { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }
.cm-bar { position: sticky; top: 64px; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); margin-top: 14px; }
.cm-bar-in { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; }
.cm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.cm-chips::-webkit-scrollbar { display: none; }
.cm-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px var(--font); cursor: pointer; transition: border-color .2s, transform .15s, background .2s; white-space: nowrap; }
.cm-chip:first-child { padding-left: 16px; }
.cm-chip:hover { border-color: var(--accent); }
.cm-chip i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.cm-chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cm-chip[aria-pressed="true"] i { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.cm-search { flex: 0 1 320px; min-width: 200px; }
.cm-search input { height: 42px; border-radius: 999px; }
.cm-wrap { padding-top: 22px; padding-bottom: 8px; }
.cm-note { margin: 0 0 6px; }
.cm-sec { padding: 26px 0 8px; }
.cm-sec[hidden] { display: none; }
.cm-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.cm-head h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.035em; font-weight: 800; }
.cm-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.cm-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }
.cm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: 0 22px 44px -26px rgb(11 15 20 / 40%); }
.cm-card[hidden], .cm-room[hidden] { display: none; }
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cm-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.cm-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.03em; line-height: 1.3; }
.cm-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.cm-card .cm-tip { color: var(--muted); font-size: 13.5px; }
.cm-go { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-go em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.cm-go b { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: 15px; }
.cm-go svg { width: 18px; height: 18px; transition: transform .25s; }
.cm-card:hover .cm-go svg, .cm-room:hover svg { transform: translateX(3px); }
.cm-sub { margin-top: 22px; padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.cm-sub h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.03em; }
.cm-sub h3 small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.cm-sub .note { margin: 0 0 14px; }
.cm-rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cm-room { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.cm-room:hover { border-color: #FFCD00; transform: translateY(-2px); }
.cm-room > div { display: grid; gap: 3px; min-width: 0; }
.cm-room .cm-badge { justify-self: start; padding: 2px 8px; font-size: 11.5px; }
.cm-room b { font-size: 15px; letter-spacing: -0.02em; line-height: 1.35; }
.cm-room > div > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cm-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.srow b { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1000px) { .cm-rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .cm-bar-in { flex-direction: column; align-items: stretch; gap: 10px; } .cm-search { flex: none; } .cm-bar { position: static; } }
@media (max-width: 480px) { .cm-rooms { grid-template-columns: 1fr; } .cm-sub { padding: 14px; } }
.search-rows { display: grid; gap: 12px; margin-top: 14px; }
.srow { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; padding-top: 12px; border-top: 1px dashed var(--line); }
.srow:first-child { border-top: 0; padding-top: 0; }
.srow > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .2s, transform .15s; }
.chip-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.li { flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .2s, color .2s; }
.li svg { width: 22px; height: 22px; }
.li.lg { width: 50px; height: 50px; border-radius: 15px; }
.li.lg svg { width: 25px; height: 25px; }
.off-lead { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: linear-gradient(110deg, var(--accent-soft), var(--surface)); }
.off-lead .li { background: var(--accent); color: #0B0F14; }
.off-lead b { display: block; font-size: 17px; letter-spacing: -0.025em; }
.off-lead p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; }
.off-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.off { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .25s, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.off > div { display: grid; gap: 3px; min-width: 0; }
.off:hover { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgb(11 15 20 / 40%); }
.off:hover .li { background: var(--accent); color: #0B0F14; transform: rotate(-6deg) scale(1.06); }
.off-label { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.off b { font-size: 17px; letter-spacing: -0.025em; }
.off-desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.off em { font-style: normal; margin-top: 6px; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.off em svg { width: 14px; height: 14px; transition: transform .25s; }
.off:hover em svg { transform: translate(2px, -2px); }
.tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: t; }
.tip { grid-column: span 2; position: relative; display: flex; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.tip:nth-child(-n+2) { grid-column: span 3; }
.tip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: .85; }
.tip-warn::before { background: var(--warn); }
.tip-warn .li { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tip:hover { transform: translateY(-2px); }
.tip:hover .li { transform: scale(1.08) rotate(-4deg); }
.tip-n { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.tip b { display: block; font-size: 17px; letter-spacing: -0.025em; margin-bottom: 4px; }
.tip p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .off-grid { grid-template-columns: 1fr 1fr; } .tip, .tip:nth-child(-n+2) { grid-column: span 3; } }
@media (max-width: 620px) { .off-grid, .tips { grid-template-columns: 1fr; } .tip, .tip:nth-child(-n+2) { grid-column: auto; } .srow { grid-template-columns: 1fr; gap: 8px; } .off-lead { align-items: flex-start; } }


/* ───────── 경쟁률 섹션 ───────── */
.subtabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 6px 2px; margin-top: 14px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14.5px; transition: border-color .2s, background .2s, transform .15s; }
.subtabs a:hover { border-color: var(--accent); transform: translateY(-1px); }
.subtabs a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.subtabs a[aria-current="page"] .li { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
label.school-picker { max-width: 23rem; margin-top: 14px; }
.coverage-details { margin-top: 14px; }
.coverage-details summary { cursor: pointer; font-weight: 700; }
.li.xs { width: 26px; height: 26px; border-radius: 8px; }
.li.xs svg { width: 15px; height: 15px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tile b { display: block; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; font-variant-numeric: tabular-nums; }
.tile:first-child b { color: var(--accent-ink); }
.tile span { display: block; margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank a { display: grid; grid-template-columns: 34px minmax(120px, 220px) 1fr; gap: 14px; align-items: center; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.rank a:hover { border-color: var(--accent); transform: translateX(3px); }
.rk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--ink-2); }
.rank li:nth-child(1) .rk { background: #FFD76A; color: #5a4300; }
.rank li:nth-child(2) .rk { background: #D9DEE5; color: #3b4450; }
.rank li:nth-child(3) .rk { background: #F0B98B; color: #5b2f0d; }
.rn { font-weight: 700; letter-spacing: -0.02em; }
.rank .bar-cell { min-width: 0; grid-template-columns: 1fr 64px; }
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.uni-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, box-shadow .25s; }
.uni-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: 0 20px 40px -26px rgb(11 15 20 / 40%); }
.uni-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.uni-top h3 { margin: 0; font-size: 17px; letter-spacing: -0.03em; }
.uni-num b { font-size: 38px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.uni-num span { margin-left: 6px; color: var(--muted); font-size: 13px; }
.uni-spark .spark { width: 100%; height: 36px; }
.uni-meta { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.uni-act { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.uni-act a { flex: 1; text-align: center; padding: 9px 0; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; transition: border-color .2s, background .2s; }
.uni-act a:hover { border-color: var(--accent); background: var(--accent-soft); }
.miss-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.miss { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.go-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.go-card { display: flex; gap: 16px; align-items: center; }
.go-card b { display: block; font-size: 17px; letter-spacing: -0.025em; }
.go-card p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.toolbar.tb5 { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
.toolbar.tb4 { grid-template-columns: 2fr 1fr 1.4fr 1fr; }
.toolbar.tb4i { grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .toolbar.tb4i { grid-template-columns: 1fr 1fr; } }
.seg-n { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: color-mix(in srgb, currentColor 14%, transparent); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.si-at { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 420px) { .si-at.n3 { grid-template-columns: 1fr 1fr; } }
.at { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.at span { font-size: 11.5px; color: var(--muted); }
.at b { font-size: 14px; line-height: 1.35; }
.v-ok { color: var(--ok); } .v-no { color: var(--warn); } .v-unk { color: var(--muted); } .v-mid { color: var(--ink); }
.si-card .uni-meta b { color: var(--accent-ink); }
.si-at.n3 { grid-template-columns: repeat(3, 1fr); }
.si-chk { margin: 0; font-size: 12.5px; color: var(--ok); font-weight: 600; }
.si-chk.part { color: var(--muted); }
.si-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--ink-2); font-size: 13.5px; }
.pill.info { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.rt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.rt-h { display: flex; align-items: center; gap: 8px; }
.si-notes { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
table.plain th { text-align: left; white-space: nowrap; width: 1%; padding-right: 20px; }
.si-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 18px; }
.si-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.si-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.si-card[hidden] { display: none; }
.si-h { margin: 6px 0 0; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.si-tr, .si-dp { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.si-tr li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.si-tr .rd { font-size: 12px; font-weight: 800; color: var(--accent-ink); }
.si-tr .tn { color: var(--ink-2); line-height: 1.4; }
.si-tr b { font-variant-numeric: tabular-nums; }
.si-dp { display: flex; flex-wrap: wrap; gap: 6px; }
.si-dp li { padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.dc { display: flex; flex-direction: column; gap: 2px; position: relative; padding: 8px 12px 8px 26px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.35; }
.dc small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.dc i, .dc-dot { position: absolute; left: 11px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dc-dot { position: static; display: inline-block; margin-right: 8px; }
.dc.ok i, .dc-dot.ok { background: var(--ok); }
.dc.gone i, .dc-dot.gone { background: var(--warn); }
.dc.gone { color: var(--muted); }
.dc.unk i, .dc-dot.unk { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.toolbar.tb2 { grid-template-columns: 3fr 1fr; }
@media (max-width: 820px) { .toolbar.tb5, .toolbar.tb4, .toolbar.tb2 { grid-template-columns: 1fr 1fr; } .toolbar .wide { grid-column: span 2; } }
.toolbar .f > span { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.cnt { height: 48px; display: flex; align-items: center; font-weight: 800; font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend .reset { height: 34px; margin-left: auto; padding: 0 14px; font-size: 13px; }
.empty-msg { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-msg[hidden], .table-wrap[hidden] { display: none; }
.trend-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.segs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg { height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 700 14.5px var(--font); cursor: pointer; transition: background .2s, color .2s; }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.trend-actions { display: flex; gap: 8px; }
.trend-actions[hidden] { display: none; }
.trend-empty { padding: 60px 0; }
.trend-actions .btn { height: 38px; padding: 0 14px; font-size: 13px; }
.uc { padding-left: 12px; }
.uc .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 8px; }
.uc[aria-pressed="false"] { opacity: .55; }
.uc[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.uc[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.chart-box { position: relative; margin-top: 6px; }
#chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.gl { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.ax { fill: var(--muted); font-size: 12px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.ln { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.2s cubic-bezier(.3, .7, .2, 1) forwards; }
.pt { fill: var(--surface); stroke: var(--c); stroke-width: 3; cursor: pointer; transition: r .15s; outline: none; }
.pt:hover, .pt:focus-visible { r: 7.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -12px rgb(11 15 20 / 55%); display: grid; gap: 1px; }
.chart-tip[hidden] { display: none; }
.chart-tip b { font-size: 14px; } .chart-tip span { font-size: 12px; opacity: .75; } .chart-tip em { font-style: normal; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; } .chart-tip small { font-size: 12px; opacity: .75; }
.s0 { --c: #2f9fd8; } .s1 { --c: #f08a3c; } .s2 { --c: #3bb273; } .s3 { --c: #a068d6; } .s4 { --c: #e0527a; } .s5 { --c: #c9a227; } .s6 { --c: #5b8aa3; }
:root[data-theme="dark"] .s0 { --c: #5cc0f2; } :root[data-theme="dark"] .s1 { --c: #ffa25e; } :root[data-theme="dark"] .s2 { --c: #5fd195; } :root[data-theme="dark"] .s3 { --c: #bf93f0; } :root[data-theme="dark"] .s4 { --c: #ff7a9d; } :root[data-theme="dark"] .s5 { --c: #e6c14a; } :root[data-theme="dark"] .s6 { --c: #86b6cf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s0 { --c: #5cc0f2; } :root:not([data-theme="light"]) .s1 { --c: #ffa25e; } :root:not([data-theme="light"]) .s2 { --c: #5fd195; } :root:not([data-theme="light"]) .s3 { --c: #bf93f0; } :root:not([data-theme="light"]) .s4 { --c: #ff7a9d; } :root:not([data-theme="light"]) .s5 { --c: #e6c14a; } :root:not([data-theme="light"]) .s6 { --c: #86b6cf; } }
@media (prefers-reduced-motion: reduce) { .ln { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } .go-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rank a { grid-template-columns: 30px 1fr; } .rank .bar-cell { grid-column: 1 / -1; } }

/* ───────── 내비게이션 서브메뉴 ───────── */
.nav-dd { position: relative; display: flex; }
.nav-dd .dd-top { display: inline-flex; align-items: center; gap: 4px; }
.nav-dd .chev { width: 14px; height: 14px; transition: transform .2s; }
.dd-menu {
  position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; margin-top: 6px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -24px rgb(11 15 20 / 45%);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; } /* 마우스가 틈을 지나도 유지 */
.nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dd:hover .chev, .nav-dd:focus-within .chev { transform: rotate(180deg); }
.nav .dd-menu a { display: grid; gap: 2px; border-radius: 12px; padding: 10px 14px; }
.nav .dd-menu a b { font-size: 15px; }
.nav .dd-menu a small { font-weight: 500; font-size: 13px; color: var(--muted); }
.nav .dd-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.nav .dd-menu a[aria-current="page"] small { color: var(--ink-2); }
@media (max-width: 820px) {
  .nav-dd { display: block; }
  .nav-dd .chev { display: none; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; margin: 0 0 4px 12px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .nav .dd-menu a { padding: 10px 14px; }
  .nav .dd-menu a b { font-size: 16px; }
  .nav-dd::after { display: none; }
}

/* 고정 헤더(64px)에 가려지지 않도록 앵커 위치를 내린다 */
[id] { scroll-margin-top: 88px; }
.p-note { grid-column: 1 / -1; color: var(--warn); font-weight: 600; margin-top: -4px; }
.p-note:empty { display: none; }

/* 표 → 모바일 카드 */
@media (max-width: 720px) {
  .table-wrap.cards { overflow: visible; border: 0; background: transparent; box-shadow: none; max-height: none !important; }
  .cards table { min-width: 0 !important; display: block; }
  .cards thead { display: none; }
  .cards tbody { display: grid; gap: 12px; }
  .cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
  .cards tr[hidden] { display: none; }
  .cards td { display: block; border: 0 !important; padding: 0 !important; background: transparent !important; }
  .cards td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
  .cards td.univ { grid-column: 1 / -1; font-size: 17px; }
  .cards td.univ::before { display: none; }
  .cards td.num { text-align: left; }
  .cards td .bar-cell { min-width: 0; }
}

/* ───────── 홈 카드 ───────── */
.ct { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.ct .li { width: 34px; height: 34px; border-radius: 10px; }
.ct .li svg { width: 18px; height: 18px; }
.card.dark .ct { color: color-mix(in srgb, currentColor 80%, transparent); }
.card.dark .ct .li { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
.home .card:hover .li { transform: rotate(-6deg) scale(1.06); }
.hc-stats::before { content: ""; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 68%); pointer-events: none; }
.stat-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 26px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 16px; overflow: hidden; }
.stat-grid .stat { padding: 20px 22px; border: 0 solid color-mix(in srgb, currentColor 14%, transparent); }
.stat-grid .stat:nth-child(odd) { border-right-width: 1px; }
.stat-grid .stat:nth-child(-n+2) { border-bottom-width: 1px; }
.stat-grid .stat b { font-size: clamp(28px, 3.6vw, 42px); }
@media (max-width: 420px) { .stat-grid .stat { padding: 16px; } }
.mini-meter { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); }
.mini-meter div { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.mini-meter b { font-size: 18px; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-meter i { display: block; height: 8px; margin-top: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.rank-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.rank-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.rank-list li:hover { background: var(--accent-soft); }
.rank-list em { font-style: normal; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--accent-soft); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.rank-list li:first-child em { background: var(--accent); color: #0B0F14; }
.rank-list span { font-weight: 700; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl2 { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 18px; }
.tl2::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-soft)); }
.tl2 li { position: relative; display: grid; gap: 6px; }
.tl2 li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.tl2 li:last-child::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.tl2 time { justify-self: start; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.tl2 b { display: block; letter-spacing: -.02em; }
.tl2 small { color: var(--muted); font-size: 14px; }
.faq-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.faq-list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.02em; transition: border-color .2s, background .2s, transform .2s; }
.faq-list a:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: var(--accent-soft); transform: translateX(3px); }
.faq-list .n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--accent-soft); color: var(--accent-ink); }
.faq-list a:hover .n { background: var(--accent); color: #0B0F14; }
.faq-list span:not(.n) { flex: 1; min-width: 0; }
.faq-list svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.chips-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips-mini span { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
