/* BenchLab — 포멀·미니멀 화이트 (DESIGN.md)
   정보 위계 우선, 장식 최소, 여백으로 구분 */
:root {
  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --surface: #f0f2f5;
  --surface-2: #e8eaed;
  --border: #e6e8ec;
  --border-2: #d0d5dd;
  --text: #101828;
  --text-2: #667085;
  --text-3: #98a2b3;
  --accent: #175cd3;
  --accent-soft: #eff4ff;
  --green: #067647;
  --green-soft: #ecfdf3;
  --amber: #b54708;
  --amber-soft: #fffaeb;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.app { display: flex; min-height: 100vh; }

/* ── 사이드바 ── */
.sidebar {
  width: 240px; flex: 0 0 240px;
  border-right: 1px solid var(--border);
  padding: 24px 14px 16px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  background: var(--bg-elevated);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 12px 24px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, #2e90fa 0%, #175cd3 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 650; font-size: 15px; line-height: 1.25; display: flex; flex-direction: column; letter-spacing: -0.02em; }
.brand-ko { font-weight: 400; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  margin-bottom: 2px;
}
a.nav-item:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.nav-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.disabled { opacity: .5; cursor: default; }
.soon { font-size: 10.5px; background: var(--surface); border-radius: 999px; padding: 2px 8px; color: var(--text-3); }
.side-foot {
  margin-top: auto; padding: 14px 12px 8px; font-size: 11.5px; color: var(--text-3);
  border-top: 1px solid var(--border); line-height: 1.5;
}
.side-foot-mobile { display: none; }

/* ── 본문 ── */
.main { flex: 1; min-width: 0; background: var(--bg); }
.page { max-width: 1080px; margin: 0 auto; padding: 44px 44px 64px; }

.hero {
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  padding-bottom: 28px;
}
.hero h1 {
  font-size: 32px; font-weight: 700; margin: 0 0 14px;
  letter-spacing: -0.03em; line-height: 1.25; color: var(--text);
}
.hero p { color: var(--text-2); font-size: 15.5px; margin: 0; max-width: 40em; line-height: 1.7; }

.stats { display: flex; gap: 12px; margin: 28px 0 4px; }
.stat {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 24px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.02em; color: var(--text); }
.stat-label { color: var(--text-2); font-size: 12.5px; margin-top: 4px; font-weight: 500; }
.stats-note { margin: 0 0 4px; color: var(--text-3); font-size: 12.5px; }

.section { margin-top: 40px; }
.section.featured-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.section h2 {
  font-size: 17px; font-weight: 650; margin: 0 0 6px;
  letter-spacing: -0.02em; color: var(--text);
}
.section > p { margin: 0; }
.section-kicker {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 6px;
}

.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.page-head .ko { font-size: 17px; font-weight: 500; color: var(--text-2); margin-left: 10px; }
.count { color: var(--text-2); font-size: 13.5px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; margin-top: 10px; }

/* ── 배지 ── */
.badge {
  display: inline-block; font-size: 12px; font-weight: 500;
  padding: 2.5px 10px; border-radius: 999px;
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border);
}
.badge.blue { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.model-row-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.model-row-badges .badge { font-size: 11px; padding: 1px 7px; }

/* 파라미터 추정 표시 */
.estimated { color: var(--amber); }
.est-mark {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 0 5px; border-radius: 4px; vertical-align: middle;
  background: var(--amber-soft); color: var(--amber);
}
.param-source { margin: 10px 0 0; font-size: 13px; }

/* 모델 해석 · 분야 강점 카드 */
.model-headline {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  max-width: 52rem;
}
.aa-overall-banner {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid #c7d7fe;
  background: linear-gradient(180deg, #f5f8ff 0%, var(--accent-soft) 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.aa-overall-banner.empty {
  background: var(--surface);
}
.aa-overall-label {
  font-weight: 600;
  color: var(--accent);
}
.aa-overall-value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--text);
}
.aa-overall-link {
  margin-left: auto;
  font-size: 13px;
}
.str-score-lg { font-size: 20px; }
.str-unit { font-size: 13px; color: var(--text-2); margin-left: 2px; }
.evidence-summary { margin: 0 0 14px; font-size: 13px; color: var(--text-2); }
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.strength-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--bg-elevated);
  min-width: 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.strength-card.legacy { border-color: #f9dbaf; background: #fffcf5; }
/* 전역 .empty(center)와 분리 */
.strength-card.no-score {
  background: var(--surface);
  box-shadow: none;
  border-style: dashed;
}
.strength-card.overall {
  border-color: #b2ccff;
  background: linear-gradient(180deg, #f8faff 0%, #eef4ff 100%);
  grid-column: 1 / -1;
}
.strength-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.strength-head h3 {
  margin: 0; font-size: 15px; font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}
.strength-head .badges {
  margin-top: 0; width: auto; flex-shrink: 0; max-width: 55%;
  justify-content: flex-end;
}
.str-body { min-width: 0; }
.str-line {
  margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}
.str-line:last-child { margin-bottom: 0; }
.str-empty-note { color: var(--text-2); font-size: 13px; }
.str-empty-box {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 24, 40, 0.03);
  border: 1px dashed var(--border-2);
}
.str-empty-box a { font-weight: 500; }
.str-score-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px;
}
.str-score { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.str-warn { color: #8a5a00; }
.section-lead code {
  font-size: 12px; background: var(--surface); padding: 1px 6px; border-radius: 4px;
}
@media (max-width: 720px) {
  .strength-grid { grid-template-columns: 1fr; }
}

/* ── 메타 그리드 ── */
.meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 22px;
  box-shadow: var(--shadow-sm);
}
.meta-item {
  background: var(--bg-elevated); padding: 16px 18px; min-width: 0;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.meta-item:nth-child(4n) { border-right: none; }
.meta-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-3);
}
.meta-value {
  font-size: 14px; font-weight: 550; margin-top: 6px; color: var(--text);
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.45;
}

/* ── 목록 ── */
.lim { margin: 0; padding-left: 18px; }
.lim li { margin-bottom: 6px; }
.lim li::marker { color: var(--text-2); }
.links { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; }

/* ── 예시 카드 (마크다운 렌더링) ── */
.example { background: var(--surface); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; }
.example-title { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.md { font-size: 14px; }
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md code { font-family: var(--mono); font-size: 12.5px; background: #eceff3; padding: 1.5px 5px; border-radius: 4px; }
.md pre { background: #1f1f1f; color: #e8eaed; padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
.md pre code { background: none; color: inherit; padding: 0; }
.md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md th, .md td { border: 1px solid var(--border-2); padding: 5px 12px; }
.md th { background: var(--surface-2); }
.md blockquote {
  margin: 10px 0 0; padding: 8px 14px; border-left: 3px solid var(--border-2);
  color: var(--text-2); font-size: 13px; background: #fff; border-radius: 0 8px 8px 0;
}

/* ── 테이블 ── */
.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; overflow-x: auto; background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: var(--surface); text-align: left; font-weight: 600; font-size: 11.5px;
  color: var(--text-3); padding: 11px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap; letter-spacing: 0.02em; text-transform: uppercase;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
td.strong { font-weight: 700; }
td.muted { color: var(--text-2); }
td.src { color: var(--text-2); min-width: 200px; }
.orig { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }

/* ── 카드 그리드 ── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 16px;
  background: var(--bg-elevated); display: block; color: var(--text);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card:hover {
  box-shadow: var(--shadow-md); border-color: #c7d7fe;
  text-decoration: none; transform: translateY(-1px);
}
.bcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bcard-name { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.bcard-date { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.bcard-ko { color: var(--text-2); font-size: 13px; margin-top: 1px; }
.bcard-org { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.bcard-desc {
  font-size: 13.5px; color: var(--text-2); margin: 12px 0 14px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bcard-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.bcard-meta {
  margin-top: 14px; font-size: 12.5px; color: var(--text-3);
  border-top: 1px solid var(--border); padding-top: 10px;
}

/* ── 필터 ── */
.filters { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.search {
  width: 100%; max-width: 420px; padding: 9px 14px;
  border: 1px solid var(--border-2); border-radius: 8px;
  font: inherit; font-size: 14px; outline: none; background: var(--bg);
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-row { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.filter-kicker {
  font-size: 12px; font-weight: 600; color: var(--text-2);
  margin-right: 2px; letter-spacing: 0.02em;
}
.chip-row-topics { padding-top: 2px; }
.chip {
  font: inherit; font-size: 12.5px; font-weight: 500;
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--bg); color: var(--text-2);
}
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip-featured { border-color: #c5d9f8; }
.chip-featured.on { background: var(--accent-soft); color: var(--accent); }

.section-lead {
  color: var(--text-2); font-size: 14px; margin: 0 0 18px !important;
  max-width: 48em; line-height: 1.65;
}
.section-lead strong { color: var(--text); font-weight: 600; }
.strategy-note {
  margin: 20px 0 0; padding: 14px 16px;
  background: var(--surface); border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 13.5px; color: var(--text-2); line-height: 1.6;
}
.strategy-note strong { color: var(--text); }
.more-link { margin: 12px 0 0; font-size: 13.5px; }

.sort-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.sort-label {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  flex-shrink: 0;
}

.story-list { display: flex; flex-direction: column; gap: 16px; }
.story-blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story-blog-card { display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: 20px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.story-blog-card:hover { text-decoration: none; border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.story-card-meta { display: flex; align-items: center; gap: 8px; }
.story-kicker { color: var(--text-2); font-size: 12px; font-weight: 600; }
.story-blog-card h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.35; }
.story-blog-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--text-2); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-blog-card time, .story-article time { margin-top: auto; color: var(--text-3); font-size: 12px; }
.story-number { flex: 0 0 auto; color: var(--accent); font: 700 14px/1 var(--mono); }
.story-home-link { margin: 18px 0; color: var(--text-2); font-size: 14px; }
.story-series { margin: 0 0 10px !important; color: var(--text-2); font-size: 13px !important; font-weight: 600; }
.story-article { max-width: 900px; }
@media (max-width: 980px) { .story-blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .story-blog-list { grid-template-columns: 1fr; } }
.story-article-head { max-width: 40rem; margin: 28px auto 34px; }
.story-article-head h1 { margin: 8px 0; font-size: 34px; line-height: 1.25; letter-spacing: -0.04em; }
.story-article-head p { color: var(--text-2); font-size: 17px; margin: 0 0 10px; }
.story-body { max-width: 40rem; margin: 0 auto; font-size: 16px; line-height: 1.85; }
.story-body h2 { margin: 34px 0 10px; font-size: 22px; line-height: 1.35; }
.story-body p { margin: 0 0 20px; }
.story-related, .story-nextprev { max-width: 40rem; margin: 34px auto 0; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.story-related strong { width: 100%; }
.story-nextprev { justify-content: space-between; border-top: 1px solid var(--border); padding-top: 20px; }
.story-chapter { margin: 0; }
.story-chapter p { max-width: 68em; }
.story-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; }
.story-links div { display: flex; gap: 8px; }
.story-links dt { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.story-links dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.glossary-list { display: flex; flex-direction: column; gap: 12px; }
.glossary-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; background: var(--bg);
}
.glossary-card h3 {
  margin: 0 0 8px; font-size: 15.5px; font-weight: 600;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.glossary-en {
  font-weight: 500; font-size: 12.5px; color: var(--text-2);
  font-family: var(--mono);
}
.glossary-card p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.65; }
.setting-cell { cursor: help; max-width: 220px; }
.compare-pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.compare-pickers label { display: flex; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.compare-pickers select { width: 100%; padding: 9px 10px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg-elevated); color: var(--text); font: inherit; }
.compare-model-search { grid-column: 1 / -1; }
.compare-related { margin-top: 18px; }
.compare-hint { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text-2); font-size: 13.5px; }
.compare-hint strong { color: var(--text); margin-right: 6px; }
.compare-hint ul { margin: 8px 0 0; padding-left: 20px; color: #8a5a00; }
.compare-warning { margin: 16px 0; padding: 12px 16px; border: 1px solid #f9dbaf; border-radius: var(--radius-sm); background: var(--amber-soft); color: #8a5a00; }
.compare-warning strong { color: var(--text); }
.compare-warning ul { margin: 5px 0 0; padding-left: 20px; }
.compare-cell { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.compare-cell > strong { font-family: var(--mono); font-size: 15px; color: var(--text); }
.compare-cell-setting { color: var(--text-2); font-size: 11.5px; line-height: 1.35; }
.compare-cell-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.compare-cell-missing { color: var(--text-2); }
.compare-cell-mismatch { background: var(--amber-soft); margin: -6px; padding: 6px; border-radius: 6px; }
.compare-row-mismatch td { vertical-align: top; }
.compare-link { font-size: 12px; }
.compare-domains { display: flex; flex-direction: column; gap: 18px; }
.compare-domain { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.compare-domain .table-wrap { overflow: visible; }
.compare-domain-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.compare-domain-head h2 { margin: 0; font-size: 17px; }
.compare-domain-head p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; }
.compare-domain-empty { margin: 0; color: var(--text-3); font-size: 13.5px; }
.compare-primary td:first-child { font-weight: 600; }
.compare-primary td:first-child .badge { margin-left: 6px; vertical-align: middle; }
.compare-bench-name { position: relative; }
.compare-bench-name[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 8;
  width: max(220px, 100%);
  max-width: 22rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.compare-more td { padding: 0; }
.compare-more details { color: var(--text-2); font-size: 13px; }
.compare-more summary { cursor: pointer; padding: 10px 0; }
.compare-secondary { width: 100%; border-collapse: collapse; }
.compare-secondary td { padding: 10px 8px; border-top: 1px solid var(--border); }
.compare-relative { margin: 10px 0 0; color: var(--text-2); font-size: 13px; }
.compare-empty { padding: 28px 20px; }
.compare-empty strong { color: var(--text); }
.compare-empty p { margin: 8px 0 0; }
.compare-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin-top: 12px; font-size: 13px; }
@media (max-width: 720px) { .compare-pickers { grid-template-columns: 1fr; } }

/* ── 가이드 페이지 전용 ── */
.page-with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 40px; align-items: start; }
.page-toc, .guide-toc { position: sticky; top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.page-toc p, .guide-toc p { margin: 0 0 10px; color: var(--text-3); font-size: 11.5px; font-weight: 650; }
.page-toc a, .guide-toc a { display: block; padding: 7px 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.page-toc a:hover, .guide-toc a:hover { color: var(--accent); }
.section, .compare-domain, .guide-section { scroll-margin-top: 20px; }
.guide-page { max-width: 1120px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 48px; align-items: start; }
.guide-hero { padding: 8px 0 34px; border-bottom: 1px solid var(--border); }
.guide-hero h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.25; letter-spacing: -0.03em; }
.guide-kicker { margin: 0 0 7px; color: var(--text-3); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.guide-dek { margin: 0; max-width: 42rem; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.guide-intro { margin: 24px 0 0; max-width: 48rem; color: var(--text-2); }
.guide-toc { position: sticky; top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.guide-toc p { margin: 0 0 10px; color: var(--text-3); font-size: 11.5px; font-weight: 650; }
.guide-toc a { display: block; padding: 7px 0; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.guide-toc a:hover { color: var(--accent); }
.guide-section { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 18px; margin-top: 48px; scroll-margin-top: 24px; }
.guide-step { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 12px/1 var(--mono); }
.guide-section-content { min-width: 0; }
.guide-section h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; letter-spacing: -0.025em; }
.guide-section p:not(.guide-kicker):not(.guide-caption) { margin: 0 0 12px; max-width: 52rem; }
.guide-note { margin: 18px 0 0; padding: 13px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); color: var(--text-2); font-size: 13.5px; }
.guide-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.guide-process div { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); box-shadow: var(--shadow-sm); }
.guide-process b { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #fff; font: 700 12px/1 var(--mono); }
.guide-caption { margin: 10px 0 0; color: var(--text-2); font-size: 13px; }
.guide-next-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; }
@media (max-width: 900px) {
  .page-with-toc, .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .page-toc, .guide-toc { position: static; order: -1; }
}
@media (max-width: 760px) { .guide-section { margin-top: 36px; } .guide-process { grid-template-columns: 1fr; } }

/* ── 기타 ── */
.back { font-size: 13px; color: var(--text-2); display: inline-block; margin-bottom: 18px; }
.back:hover { color: var(--accent); }
.empty { color: var(--text-2); padding: 40px 0; text-align: center; }
.loading { padding: 80px; text-align: center; color: var(--text-2); }
.lineage { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.refchip {
  display: inline-block; font-family: var(--mono); font-size: 12.5px;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 11px; border-radius: 999px; margin: 0 4px;
}
.refchip.plain { background: var(--surface); color: var(--text-2); cursor: default; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    width: auto; flex: none; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--border);
    flex-direction: row; align-items: center; flex-wrap: wrap;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 100%;
    flex: 1 1 100%;
    min-width: 0;
  }
  .sidebar .nav-item { flex: 0 0 auto; }
  .side-foot {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding-top: 10px;
  }
  .side-foot-meta { display: none; }
  .side-foot-desktop { display: none; }
  .side-foot-mobile { display: inline; }
  .brand { padding-bottom: 8px; }
  .page { padding: 24px 18px; }
  .grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { flex-direction: column; }
}

.compare-related { margin-top: 12px; }
.compare-related summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 8px 0 6px; }
.compare-related .table-wrap { margin-top: 4px; }
