/* ═══════════════════════════════════════════════════════════
   2423 LICENSE_GEN — style.css
   출발점: DesignKit kit-lineart(모노라인) → "법률 문서/타자 원고" 변형
   · 종이(paper) 바탕 + 먹(ink) 1색 + 주홍 도장색 액센트 1색
   · 1px 헤어라인, 그림자·그라디언트·블러·글로우 없음, 모서리 3px
   · Source Serif 4(제목) / Source Sans 3(본문) / IBM Plex Mono(원문·식별자)
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --sunk: #f4f2ec;
  --ink: #1c1b19;
  --ink-2: #4a4843;
  --ink-3: #6f6c64;
  --line: #e3e0d8;
  --line-2: #cbc6ba;
  --accent: #b4432b;
  --accent-soft: #f5e4dc;
  --on-ink: #fbfaf7;
  --mark: #f7e2b8;
  --r: 3px;
  --w: 1180px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', 'Noto Serif KR', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Hiragino Sans', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141413; --surface: #1b1a19; --sunk: #201f1d; --ink: #ecebe6; --ink-2: #c3c0b8; --ink-3: #97948b;
    --line: #2e2d2a; --line-2: #45433e; --accent: #e3806a; --accent-soft: #3a2520; --on-ink: #141413; --mark: #4a3a1c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141413; --surface: #1b1a19; --sunk: #201f1d; --ink: #ecebe6; --ink-2: #c3c0b8; --ink-3: #97948b;
  --line: #2e2d2a; --line-2: #45433e; --accent: #e3806a; --accent-soft: #3a2520; --on-ink: #141413; --mark: #4a3a1c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
code, pre, kbd { font-family: var(--mono); }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.small { font-size: 13px; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 헤더 ── */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.hd-inner { max-width: var(--w); margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1.5px solid var(--ink); border-radius: var(--r); font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 19px; color: var(--accent); line-height: 1; }
.brand-text { font-family: var(--mono); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand-text span { color: var(--ink-3); font-weight: 400; }
.hd-tools { display: flex; align-items: center; gap: 8px; }
.lang-select { height: 32px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 0 8px; font-size: 13px; max-width: 120px; }
.theme-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); cursor: pointer; }
.nav { max-width: var(--w); margin: 0 auto; padding: 0 16px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 10px 0 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
@media (min-width: 960px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header > .hd-inner { display: contents; }
  .brand { grid-column: 1; grid-row: 1; padding-left: max(16px, calc((100vw - var(--w)) / 2 + 16px)); height: 56px; }
  .nav { grid-column: 2; grid-row: 1; border-top: 0; padding: 0; align-self: stretch; align-items: stretch; }
  .nav a { display: flex; align-items: center; padding: 0; border-bottom-width: 2px; margin-bottom: 0; }
  .hd-tools { grid-column: 3; grid-row: 1; justify-self: end; padding-right: max(16px, calc((100vw - var(--w)) / 2 + 16px)); }
}

/* ── 레이아웃 ── */
.wrap { max-width: var(--w); margin: 0 auto; padding: 20px 16px 40px; }
.page { max-width: 860px; }
.page.wide { max-width: var(--w); }
.page-head { padding: 12px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.page-head h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 10px; font-weight: 700; }
.lede { font-size: 17px; color: var(--ink-2); margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.crumb { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb .sep { color: var(--line-2); }
.sec-h { font-size: 22px; margin: 34px 0 6px; }
.page-head h1, .prose h2, .prose h3, .sec-h, .lgroup h2, .gt, .vd-label { font-family: var(--serif); }
:is(:lang(ko), :lang(ja), :lang(zh), :lang(ar)) :is(.page-head h1, .prose h2, .prose h3, .sec-h, .lgroup h2, .gt, .vd-label) { font-family: var(--sans); }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── 도구: 탭 ── */
.tool-main { padding-top: 14px; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-2); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 16px 10px 0; margin-right: 18px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: baseline; gap: 8px; }
.tab .tn { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab[aria-selected="true"] .tn { color: var(--accent); }

.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.panel.out { padding: 0; display: flex; flex-direction: column; }
.field { display: block; margin-bottom: 14px; min-width: 0; }
.flabel { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.flabel em { font-style: normal; font-weight: 400; text-transform: none; color: var(--ink-3); letter-spacing: 0; }
.field input[type="text"], .field select { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); padding: 0 10px; font-size: 15px; }
.field input[type="text"]:focus, .field select:focus { border-color: var(--ink); outline: none; }
.row2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .row2 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

.chip-group { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 6px 0; border-top: 1px dashed var(--line); }
.chip-group:first-of-type { border-top: 0; padding-top: 0; }
.chip-label { font-size: 12px; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; font-family: var(--mono); font-size: 13px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip span:hover { border-color: var(--ink); }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; max-width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 12px; font-size: 13px; border-right: 1px solid var(--line-2); cursor: pointer; background: var(--bg); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

.lic-card { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 13px; }
.lic-card .lc-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.lic-card .lc-top a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.lc-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lc-rules span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 4px; }
.lc-rules ul { margin: 0; padding: 0; list-style: none; }
.lc-rules li { padding-block: 1px; padding-inline-start: 14px; position: relative; line-height: 1.45; }
.lc-rules .r-p li::before { content: '+'; position: absolute; inset-inline-start: 0; font-family: var(--mono); color: var(--ink); }
.lc-rules .r-c li::before { content: '!'; position: absolute; inset-inline-start: 0; font-family: var(--mono); color: var(--accent); }
.lc-rules .r-l li::before { content: '−'; position: absolute; inset-inline-start: 0; font-family: var(--mono); color: var(--ink-3); }
.lc-rules li.none::before { content: ''; }
.lc-rules li.none { color: var(--ink-3); padding-left: 0; }

.out-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); background: var(--sunk); flex-wrap: wrap; }
.file-name { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.file-name::before { content: '▤ '; color: var(--ink-3); font-weight: 400; }
.out-btns { display: flex; gap: 6px; }
.out-note { border-bottom: 1px solid var(--line); background: var(--accent-soft); padding: 8px 14px; font-size: 13px; color: var(--ink); }
.out-note p { margin: 2px 0; }
pre.doc { margin: 0; padding: 16px; font-size: 12.5px; line-height: 1.6; white-space: pre; overflow: auto; max-height: 64vh; min-height: 260px; flex: 1; }
pre.doc mark { background: var(--mark); color: inherit; padding: 0 1px; }
.extra-files { border-top: 1px solid var(--line); padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xf-label { font-size: 12px; color: var(--ink-3); }

/* 마법사 */
.q { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0 10px; min-width: 0; }
.q:first-child { border-top: 0; padding-top: 0; }
.q legend { float: left; width: 100%; font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.q .opts { clear: both; }
.q .qn { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.q.is-off { opacity: 0.45; }
.opts { display: grid; gap: 6px; }
.opt { display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px; align-items: start; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--bg); }
.opt input { margin: 3px 0 0; accent-color: var(--accent); grid-row: span 2; }
.opt:has(input:checked) { border-color: var(--ink); }
.opt-t { font-size: 14px; font-weight: 500; }
.opt-d { font-size: 12.5px; color: var(--ink-3); grid-column: 2; line-height: 1.45; }
.rec { list-style: none; margin: 0; padding: 0; }
.rec-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.rec-item.top { background: var(--sunk); }
.rec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rec-rank { font-family: var(--mono); font-size: 12px; width: 22px; height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.rec-item.top .rec-rank { background: var(--accent); border-color: var(--accent); color: #fff; }
.rec-id { font-family: var(--mono); font-weight: 600; font-size: 18px; }
.rec-name { color: var(--ink-3); font-size: 13px; }
.rec-why { margin: 8px 0 10px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.rec-act { display: flex; gap: 8px; flex-wrap: wrap; }
.panel.out > .small { padding: 12px 16px; margin: 0; }

/* ── 광고(애드핏 규정: 래퍼에 radius·overflow 금지) ── */
.ad-wrap { margin: 28px auto 0; }
.ad-grid { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 672px; margin: 0 auto; }
.ad-grid[data-ad-layout="mixed"] { max-width: 760px; }
.ad-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.ad-cell { max-width: 100%; }
.ad-row.ad-mo { display: none; }
.ad-row.ad-pc { display: flex; }
.ad-row.ad-any { display: flex; }
@media (max-width: 719px) { .ad-row.ad-pc { display: none; } .ad-row.ad-mo { display: flex; } }
.prose .ad-wrap { margin: 30px auto; }

/* ── 본문(prose) ── */
.prose { font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 22px; line-height: 1.35; margin: 38px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose code { font-size: 0.88em; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 0 4px; }
.prose blockquote { margin: 16px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--sunk); color: var(--ink-2); font-size: 15px; }
pre.code { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow-x: auto; font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
pre.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.doc-table th, .doc-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table thead th { background: var(--sunk); font-size: 12.5px; font-weight: 600; }
.doc-table tbody tr:last-child > * { border-bottom: 0; }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 4px; color: var(--ink-2); }

/* 규칙 표 (상세) */
.rules { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (min-width: 720px) { .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rcol { padding: 12px 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .rcol { border-bottom: 0; border-inline-end: 1px solid var(--line); } .rcol:last-child { border-inline-end: 0; } }
.rcol h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.rcol ul { list-style: none; padding: 0; margin: 0; }
.rcol li { margin: 0 0 8px; font-size: 14px; line-height: 1.45; padding-inline-start: 16px; position: relative; }
.rcol li::before { position: absolute; inset-inline-start: 0; font-family: var(--mono); }
.r-permissions li::before { content: '+'; }
.r-conditions li::before { content: '!'; color: var(--accent); }
.r-limitations li::before { content: '−'; color: var(--ink-3); }
.rcol li.none::before { content: ''; }
.rk { display: block; font-weight: 600; }
.rd { display: block; font-size: 12.5px; color: var(--ink-3); }
.src-note { font-size: 12px; color: var(--ink-3); margin: 6px 0 20px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.pill-label { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.pill { font-size: 13px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 2px 7px; background: var(--surface); }

/* 허브 카드 */
.lgroup { margin-bottom: 30px; }
.lgroup h2 { font-size: 20px; margin: 0 0 2px; }
.lgroup > p { margin: 0 0 12px; font-size: 14px; }
.lgrid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .lgrid { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.lcard { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.lcard:hover .lc-id { color: var(--accent); }
.lc-id { font-family: var(--mono); font-weight: 600; font-size: 15px; grid-row: span 2; min-width: 108px; }
.lc-name { font-size: 13px; color: var(--ink-3); }
.lc-sum { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.glist { border-top: 1px solid var(--line); }
.gcard { display: grid; grid-template-columns: 38px 1fr; gap: 2px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.gcard:hover .gt { color: var(--accent); }
.gn { font-family: var(--mono); font-size: 13px; color: var(--accent); grid-row: span 2; padding-top: 3px; }
.gt { font-weight: 600; font-size: 17px; }
.gd { font-size: 14px; color: var(--ink-3); }

/* 매트릭스 (비교·호환성) */
.matrix-wrap { max-height: 78vh; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); padding: 6px 8px; text-align: center; background: var(--surface); }
.matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--sunk); font-weight: 600; font-size: 12px; }
.matrix thead tr:nth-child(2) th { top: 29px; }
.matrix tbody th { position: sticky; inset-inline-start: 0; z-index: 1; text-align: start; font-family: var(--mono); font-weight: 600; white-space: nowrap; background: var(--surface); }
.matrix tbody th a { text-decoration: none; }
.matrix tbody th a:hover { color: var(--accent); }
.matrix .corner { position: sticky; inset-inline-start: 0; z-index: 3; text-align: start; }
.matrix th.rt { vertical-align: bottom; min-width: 64px; max-width: 92px; font-weight: 500; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.cmatrix th.rt { min-width: 38px; max-width: none; }
.cmatrix th.rt span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; max-height: 140px; white-space: nowrap; font-family: var(--mono); }
.cmatrix th.rt.nr span { writing-mode: horizontal-tb; transform: none; font-family: var(--sans); white-space: normal; }
.cmatrix th.rt.nr { min-width: 64px; }
.matrix td.on { color: var(--ink); font-size: 15px; }
.matrix td.on.k-conditions { color: var(--accent); }
.matrix td.on.k-limitations { color: var(--ink-3); }
.matrix td.off { color: var(--line-2); }
.matrix tbody tr:hover > * { background: var(--sunk); }
.tg { text-align: center; }
.v { white-space: nowrap; }
.v-yes { color: var(--ink); }
.v-cond { color: var(--accent); }
.v-no { color: var(--ink-3); }
.cmatrix td { font-size: 15px; }
.compat-mini td.v { font-weight: 600; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; margin: 8px 0 10px; }
.legend dt { font-weight: 600; margin-top: 10px; }
.legend dt small { font-weight: 400; color: var(--ink-3); }
.legend dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

/* 호환성 검사기 */
.checker .row2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checker .row2 { grid-template-columns: 1fr 1fr; } }
.verdict { border-top: 1px solid var(--line); padding-top: 14px; }
.vd-head { display: flex; align-items: center; gap: 10px; }
.vd-mark { font-size: 30px; line-height: 1; }
.vd-label { font-size: 22px; font-weight: 700; }
.vd-q { margin: 6px 0 8px; color: var(--ink-2); font-size: 14px; }
.vd-notes { margin: 0; padding-left: 20px; color: var(--ink); font-size: 15px; }
.vd-notes li { margin: 4px 0; }
.warn { margin-top: 10px; }

/* 페이저 */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 16px; }
.pager a { text-decoration: none; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pager a span { font-size: 12px; color: var(--ink-3); }
.pager a b { font-weight: 600; overflow-wrap: anywhere; }
.pager a:hover b { color: var(--accent); }
.pager .next { text-align: end; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--sunk); padding: 28px 16px 36px; }
.ft-cols { max-width: var(--w); margin: 0 auto; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ft-cols { grid-template-columns: 1.3fr 1.3fr 1fr; } }
.ft-col h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 8px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.ft-links a { text-decoration: none; color: var(--ink-2); }
.ft-links a:hover { color: var(--ink); text-decoration: underline; }
.ft-mono a { font-family: var(--mono); font-size: 13px; }
.ft-disclaimer, .ft-copy { max-width: var(--w); margin: 18px auto 0; font-size: 12.5px; color: var(--ink-3); }
.ft-copy { margin-top: 6px; font-family: var(--mono); font-size: 12px; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--on-ink); padding: 9px 16px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 899px) { .lc-rules { display: none; } .lic-card .lc-top { margin-bottom: 0; } }
@media (max-width: 520px) {
  .prose { font-size: 16px; }
  pre.doc { font-size: 12px; max-height: 70vh; }
  .lc-rules { grid-template-columns: 1fr; }
  .out-btns .btn { padding: 6px 10px; }
  .lc-id { min-width: 96px; }
}
@media print {
  .site-header, .site-footer, .tabs, .panel.form, .ad-wrap, .out-btns { display: none !important; }
  pre.doc { max-height: none; }
}

/* RTL(ar): 영어 원문·식별자·코드는 항상 LTR 로 표시 */
pre.doc, pre.code, .pill, .rec-id, .chip span, .lc-id, .file-name, .matrix tbody th { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] pre.doc, [dir="rtl"] pre.code { text-align: left; }
:lang(ar) .eyebrow, :lang(ar) .flabel, :lang(ar) .rcol h3, :lang(ar) .ft-col h2 { letter-spacing: 0; font-family: var(--sans); }
