/* QA Auditor(게임 QA·감사기) — style.css */

:root {
  --bg: #f9f9f7;
  --bg-elev: #fcfcfb;
  --bg-sunk: #f0efec;
  --text: #0b0b0b;
  --text-dim: #52514e;
  --text-muted: #898781;
  --border: #e1e0d9;
  --border-strong: #c3c2b7;
  --accent: #2454e0;
  --accent-hover: #1c3fb0;
  --accent-soft: #e7edfc;
  --highlight: #c7e94a;
  --highlight-ink: #1d2b04;
  --ink: #101826;
  --good: #0ca30c;
  --warn: #c98500;
  --danger: #e34948;
  --sev-critical: #b3261e;
  --sev-high: #d97706;
  --sev-medium: #2454e0;
  --sev-low: #8a90a0;
  --radius: 12px;
  --radius-sm: 8px;
  --mono: ui-monospace, "Cascadia Code", Consolas, "D2Coding", monospace;
  --sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  --shadow: 0 1px 2px rgba(16, 20, 30, .06), 0 8px 24px rgba(16, 20, 30, .06);
  --shadow-hover: 0 2px 6px rgba(16, 20, 30, .08), 0 14px 32px rgba(16, 20, 30, .1);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* 테마 상태별로 따로 지정한다. "light dark"로 두면 화이트 테마를 강제해도
     OS가 다크일 때 select·스크롤바 같은 네이티브 UI만 검게 남아 어긋난다. */
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg-elev: #1a1a19;
  --bg-sunk: #151514;
  --text: #ffffff;
  --text-dim: #c3c2b7;
  --text-muted: #898781;
  --border: #2c2c2a;
  --border-strong: #383835;
  --accent: #6f97ff;
  --accent-hover: #8fb0ff;
  --accent-soft: #17203a;
  --highlight: #d8f26e;
  --highlight-ink: #16220a;
  --ink: #1c2740;
  --good: #0ca30c;
  --warn: #c98500;
  --danger: #e66767;
  --sev-critical: #f0736a;
  --sev-high: #e0a34a;
  --sev-medium: #6f97ff;
  --sev-low: #9aa0ae;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-hover: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0d0d0d;
    --bg-elev: #1a1a19;
    --bg-sunk: #151514;
    --text: #ffffff;
    --text-dim: #c3c2b7;
    --text-muted: #898781;
    --border: #2c2c2a;
    --border-strong: #383835;
    --accent: #6f97ff;
    --accent-hover: #8fb0ff;
    --accent-soft: #17203a;
    --highlight: #d8f26e;
    --highlight-ink: #16220a;
    --ink: #1c2740;
    --good: #0ca30c;
    --warn: #c98500;
    --danger: #e66767;
    --sev-critical: #f0736a;
    --sev-high: #e0a34a;
    --sev-medium: #6f97ff;
    --sev-low: #9aa0ae;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- 본문 바로가기(키보드 사용자용) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; text-decoration: none; font-size: 14px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- 상단바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.brand-mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), var(--accent-hover));
  color: #fff; font-size: 15px;
  box-shadow: 0 1px 2px rgba(16, 20, 30, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .2s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: -.01em; }
.brand-text small { color: var(--text-dim); font-size: 11.5px; }
.brand:hover .brand-text strong { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- 테마 선택 ---------- */
.theme-switch {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-sunk); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px;
}
.theme-opt {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; border-radius: 999px;
  color: var(--text-dim); font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 11px; cursor: pointer; white-space: nowrap; transition: .15s;
}
.theme-opt:hover { color: var(--text); }
.theme-opt[aria-checked="true"] { background: var(--bg-elev); color: var(--accent); box-shadow: 0 1px 2px rgba(16, 20, 30, .12); }
.theme-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.theme-ico { font-size: 12.5px; line-height: 1; }

/* ---------- 히어로 ---------- */
.hero { position: relative; padding: 48px 0 30px; isolation: isolate; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -120px; right: -140px;
  width: 520px; height: 520px; pointer-events: none;
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 20%, transparent) 0%, transparent 60%),
              linear-gradient(-25deg, color-mix(in srgb, var(--highlight) 24%, transparent) 0%, transparent 55%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 70%, 55% 100%, 0% 60%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px;
  background: var(--ink); color: var(--highlight);
  border-radius: 999px; padding: 5px 13px 5px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); flex: none; }
.hero h1 { margin: 0 0 14px; font-size: 31px; line-height: 1.36; letter-spacing: -.03em; max-width: 900px; }
.hero h1 em {
  font-style: normal; position: relative; color: var(--highlight-ink);
  background: var(--highlight); padding: 1px 8px; border-radius: 5px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero-sub { margin: 0; color: var(--text-dim); max-width: 760px; font-size: 15.5px; }

/* ---------- 카드 ---------- */
.card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.card-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.step-no {
  display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%;
  background: var(--ink); color: var(--highlight); font-size: 12px; font-weight: 700;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--highlight) 22%, transparent);
}
.hidden { display: none !important; }
.muted { color: var(--text-dim); font-weight: 400; }
.small { font-size: 12.8px; }
.note-card h2 { font-size: 15px; margin: 0 0 8px; }
.note-card p { margin: 0 0 8px; }

/* ---------- 분석 모드 탭 ---------- */
.mode-card { padding-top: 16px; border-top: 3px solid var(--accent); }
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.mode-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-sunk); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 16px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: .15s var(--ease);
}
.mode-tab:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.mode-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-tab.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.mode-tab .mode-ico { font-size: 15px; line-height: 1; }
.mode-summary { margin: 12px 0 0; }

/* ---------- 버튼 ---------- */
.primary-btn, .ghost-btn, .danger-btn {
  font-family: inherit; font-size: 14px; font-weight: 600;
  border-radius: 999px; padding: 9px 18px; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
  text-decoration: none; display: inline-block;
}
.primary-btn { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(16, 20, 30, .1); }
.primary-btn:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 35%, transparent),
              0 0 0 3px color-mix(in srgb, var(--highlight) 20%, transparent);
}
.primary-btn:active { transform: translateY(0); }
.primary-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ghost-btn { background: transparent; color: var(--text-dim); border-color: var(--border-strong); }
.ghost-btn:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.danger-btn { background: transparent; color: var(--danger); border-color: var(--danger); }
.danger-btn:hover { background: var(--danger); color: #fff; }
.primary-btn:focus-visible, .ghost-btn:focus-visible, .danger-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.primary-btn.small, .ghost-btn.small, .danger-btn.small { padding: 6px 13px; font-size: 13px; }
.primary-btn.tiny, .ghost-btn.tiny, .danger-btn.tiny { padding: 3px 9px; font-size: 12px; }
.badge {
  background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-actions { display: flex; gap: 5px; white-space: nowrap; }

/* ---------- 폼 ---------- */
textarea, input[type="text"], input[type="number"], input[type="url"], input[type="search"], select {
  width: 100%;
  background: var(--bg-sunk); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; font-family: inherit; font-size: 14.5px; line-height: 1.6;
}
textarea { resize: vertical; }
textarea, input, select { transition: border-color .15s, box-shadow .15s; }
textarea:focus, input:focus, select:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.field small.muted { font-size: 12px; }
.inline-field {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.8px; color: var(--text-dim); white-space: nowrap;
}
.inline-field select, .inline-field input { width: auto; min-width: 120px; padding: 6px 10px; font-size: 13.5px; }
.inline-field.grow { flex: 1 1 200px; min-width: 180px; }
.inline-field.grow input { width: 100%; }
.mini-input { padding: 4px 7px !important; font-size: 12.5px !important; min-width: 0; }

.rules-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }

/* ---------- 상태/진행 ---------- */
.status-line { font-size: 12.8px; color: var(--text-dim); }
.status-line.error { color: var(--danger); }
.progress { height: 6px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------- 드롭존 ---------- */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; cursor: pointer; transition: .15s;
  background: var(--bg-sunk);
}
.dropzone:hover, .dropzone.over, .dropzone:focus-visible {
  border-color: var(--accent); background: var(--accent-soft); outline: none;
}
.dropzone-inner { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.dz-ico { font-size: 26px; }

/* ---------- 문서 목록 ---------- */
.doc-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 13px; background: var(--bg-sunk);
}
.doc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-main strong { font-size: 14px; overflow-wrap: anywhere; }
.doc-warn { color: var(--warn); }
.doc-preview {
  background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; max-height: 46vh; overflow: auto; white-space: pre-wrap;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; margin: 0;
}

/* ---------- 요약 ---------- */
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.sum-box {
  border: 1px solid var(--border); border-top: 3px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 11px 16px 10px; min-width: 88px; background: var(--bg-elev); box-shadow: var(--shadow);
}
.sum-box strong { display: block; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
.sum-box span { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; }
.sum-critical { border-top-color: var(--sev-critical); }
.sum-high { border-top-color: var(--sev-high); }
.sum-medium { border-top-color: var(--sev-medium); }
.sum-low { border-top-color: var(--sev-low); }

/* ---------- 심각도 배지 ---------- */
.sev {
  display: inline-block; border-radius: 999px; padding: 2px 11px;
  font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .03em;
}
.sev-critical { background: var(--sev-critical); }
.sev-high { background: var(--sev-high); }
.sev-medium { background: var(--sev-medium); }
.sev-low { background: var(--sev-low); }

/* ---------- 테이블 ---------- */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.data-table td.wrap-cell { white-space: normal; }
.data-table th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; background: var(--bg-sunk); }
.data-table code { font-family: var(--mono); font-size: 12px; }
.findings-table tbody tr:hover { background: var(--bg-sunk); }
.finding-title { font-weight: 600; }
.finding-sub { margin-top: 1px; }
.row-done { opacity: .55; }
.row-done .finding-title { text-decoration: line-through; }
.table-empty { color: var(--text-muted); font-size: 13.5px; padding: 20px 0; text-align: center; }

/* ---------- 모달 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 18, .55);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.modal-box {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; max-width: 560px; width: 100%; box-shadow: var(--shadow);
  max-height: 90vh; min-height: 0; overflow-y: auto;
}
.modal-box.wide { max-width: 780px; }
.modal-box h2 { margin-top: 0; font-size: 19px; }
.modal-box h3 { font-size: 14.5px; margin: 18px 0 6px; }
.help-list { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.help-list code { background: var(--bg-sunk); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12.5px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.detail-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.evidence {
  margin: 0 0 4px; padding: 10px 14px; border-left: 3px solid var(--border-strong);
  background: var(--bg-sunk); white-space: pre-wrap; font-size: 14px;
}
.doc-note {
  background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 13px; color: var(--text-dim); margin: 16px 0 0;
}

/* ---------- 푸터 ---------- */
.foot { padding: 30px 20px 44px; color: var(--text-dim); font-size: 12.5px; text-align: center; }
.foot p { margin: 0; }
.foot-links { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.foot-links a { color: var(--text-dim); text-decoration: none; font-size: 12.5px; }
.foot-links a:hover { color: var(--accent); }
.foot-links span { color: var(--border-strong); }

/* ---------- 정적 문서 페이지 (가이드 / 방침 / 약관) ---------- */
.doc { padding: 32px 0 60px; max-width: 820px; }
.doc .back-link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-dim); text-decoration: none; font-size: 13.5px; margin-bottom: 20px;
  transition: color .15s, gap .15s var(--ease);
}
.doc .back-link:hover { color: var(--accent); gap: 8px; }
.doc h1 { font-size: 23px; margin: 0 0 6px; letter-spacing: -.02em; }
.doc-meta { color: var(--text-dim); font-size: 13px; margin: 0 0 26px; }
.doc h2 { font-size: 17px; margin: 1.9em 0 .6em; letter-spacing: -.01em; border-bottom: 1px solid var(--border); padding-bottom: .3em; }
.doc h3 { font-size: 14.5px; margin: 1.5em 0 .4em; }
.doc p, .doc li { margin: .55em 0; font-size: 14.5px; line-height: 1.75; }
.doc ul, .doc ol { padding-left: 1.4em; margin: .6em 0; }
.doc a { color: var(--accent); }
.doc code {
  background: var(--bg-sunk); padding: 1px 5px; border-radius: 4px;
  font-family: var(--mono); font-size: 12.8px;
}
.doc table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1em 0; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: none; }
.doc th { background: var(--bg-sunk); font-weight: 600; }
.doc blockquote {
  margin: 1em 0; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-sunk); color: var(--text-dim);
}
.doc-note-box {
  background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 13.5px; color: var(--text-dim); margin: 1.6em 0 0;
}

/* ---------- 반응형 ---------- */
@media (max-width: 720px) {
  .hero { padding: 28px 0 20px; }
  .hero::before { display: none; }
  .hero h1 { font-size: 21px; }
  .card { padding: 16px; }
  .mode-card { padding-top: 13px; }
  .mode-tab { padding: 8px 13px; font-size: 13px; }
  .topbar-inner { height: 52px; }
  .theme-label { display: none; }
  .theme-opt { padding: 5px 9px; }
  .theme-ico { font-size: 14px; }
  .card-head-actions { width: 100%; }
  .findings-table th:nth-child(4), .findings-table td:nth-child(4) { display: none; }
}

/* ---------- 상단 메뉴 · 아티클 목록 (2026-09-19 추가) ---------- */
.topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 8px; }
.topnav a {
  padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--text-dim);
  text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s;
}
.topnav a:hover { color: var(--accent); background: var(--bg-sunk); }
.topnav a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--bg-sunk); }
@media (max-width: 900px) {
  .topbar-inner { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; row-gap: 4px; }
  .topnav { order: 3; width: 100%; margin: 0; overflow-x: auto; padding-bottom: 4px; }
  .brand-text small { display: none; }
}
.doc pre {
  background: var(--bg-sunk); border: 1px solid var(--border); border-radius: var(--radius-sm, 8px);
  padding: 12px 14px; margin: 1em 0; overflow-x: auto;
  font-family: var(--mono, ui-monospace, monospace); font-size: 12.6px; line-height: 1.65;
}
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc kbd {
  display: inline-block; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; line-height: 1;
  padding: 3px 6px 4px; border-radius: 5px; background: var(--bg-sunk);
  border: 1px solid var(--border); border-bottom-width: 2px; color: var(--text);
}
.doc .lead { font-size: 15.5px; color: var(--text); line-height: 1.8; }
.article-group { margin: 2em 0 0; font-size: 13px; letter-spacing: .04em; color: var(--text-dim); font-weight: 700; }
.article-list { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 12px; }
.article-list li { margin: 0; }
.article-list a {
  display: block; padding: 15px 17px; border: 1px solid var(--border); border-radius: var(--radius-sm, 8px);
  background: var(--bg-sunk); text-decoration: none; transition: border-color .15s, transform .15s;
}
.article-list a:hover { border-color: var(--accent); transform: translateY(-1px); }
.article-list .art-title { display: block; font-size: 15px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.article-list .art-desc { display: block; font-size: 13px; color: var(--text-dim); margin-top: 4px; line-height: 1.65; }
.doc .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1em 0; }
.doc .stat { border: 1px solid var(--border); border-radius: var(--radius-sm, 8px); padding: 12px 14px; background: var(--bg-sunk); }
.doc .stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.doc .stat span { font-size: 12.5px; color: var(--text-dim); }
