/* 개념 뷰어 스타일: concepts/index.html과 concepts/<slug>/index.html이 함께 쓴다. */
  :root {
    --c-linalg: #33569e;
    --c-calc: #b85c26;
    --c-prob: #1c7f68;
    --c-info: #7d3d92;
    --c-disc: #93701f;
    --c-numeric: #a13b52;
    --c-linalg-bg: #e9edf7;
    --c-calc-bg: #f6e8dd;
    --c-prob-bg: #e1f0ea;
    --c-info-bg: #efe1f3;
    --c-disc-bg: #f2ead9;
    --c-numeric-bg: #f5e3e7;
    --c-xai: #6a3f8f;
    --c-llm: #2f6a5a;
    --c-product: #a1327d;
    --c-mlops: #2f5a7d;
    --c-recsys: #7d3f2f;
    --c-arch: #6a5a1f;
    --c-pm: #7d2f5a;
    --c-xai-bg: #efe6f5;
    --c-llm-bg: #e3f0ea;
    --c-product-bg: #f5e3ef;
    --c-mlops-bg: #e6eef5;
    --c-recsys-bg: #f5e8e3;
    --c-arch-bg: #f0eee0;
    --c-pm-bg: #f5e3ee;
    --c-marketing: #a15332;
    --c-marketing-bg: #f6e9e2;
    --c-stat: #3d5a80;
    --c-causal: #bf5b4d;
    --c-disc2: #5f7a3d;
    --c-num2: #2d7d8a;
    --c-stat-bg: #e7ecf3;
    --c-causal-bg: #f7e6e3;
    --c-disc2-bg: #eef2e3;
    --c-num2-bg: #e1eef0;
    --c-eval: #6b4f9e;
    --c-eval-bg: #ede7f5;
    --c-linalg2: #4a3d8a;
    --c-calc2: #8a6a1f;
    --c-info2: #8a2f5a;
    --c-linalg2-bg: #ece9f7;
    --c-calc2-bg: #f2ecdb;
    --c-info2-bg: #f5e3ec;
    --c-found: #2f7a4a;
    --c-axis: #2f6a7a;
    --c-found-bg: #e6f2ea;
    --c-axis-bg: #e6f0f2;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --c-linalg: #7d9be4;
      --c-calc: #e3966a;
      --c-prob: #5cc7a6;
      --c-info: #cb8fdd;
      --c-disc: #d3b25c;
      --c-numeric: #db8fa0;
      --c-linalg-bg: #1c2333;
      --c-calc-bg: #2b2119;
      --c-prob-bg: #162a24;
      --c-info-bg: #291f2e;
      --c-disc-bg: #2a2216;
      --c-numeric-bg: #3a2028;
      --c-xai: #b98fd6;
      --c-llm: #7ecbb0;
      --c-product: #d98fc4;
      --c-mlops: #7eaad4;
      --c-recsys: #d69a7e;
      --c-arch: #cbc07e;
      --c-pm: #d67eb0;
      --c-xai-bg: #2a2233;
      --c-llm-bg: #1a2b26;
      --c-product-bg: #2e1f2a;
      --c-mlops-bg: #1c2733;
      --c-recsys-bg: #2e2119;
      --c-arch-bg: #28281a;
      --c-pm-bg: #2e1f29;
      --c-marketing: #d99a7e;
      --c-marketing-bg: #2e221b;
      --c-stat: #8ba3c9;
      --c-causal: #e0917f;
      --c-disc2: #98b56e;
      --c-num2: #6fc1cc;
      --c-stat-bg: #1e2733;
      --c-causal-bg: #33221e;
      --c-disc2-bg: #232c1c;
      --c-num2-bg: #17282a;
      --c-eval: #b79be0;
      --c-eval-bg: #261f33;
      --c-linalg2: #a89bdb;
      --c-calc2: #d4bb6f;
      --c-info2: #d68fac;
      --c-linalg2-bg: #23203a;
      --c-calc2-bg: #2c2618;
      --c-info2-bg: #2e1f28;
      --c-found: #7ecb96;
      --c-axis: #7ecbd6;
      --c-found-bg: #1a2b20;
      --c-axis-bg: #1a2a2c;
    }
  }
  :root[data-theme="dark"] {
    --c-linalg: #7d9be4;
    --c-calc: #e3966a;
    --c-prob: #5cc7a6;
    --c-info: #cb8fdd;
    --c-disc: #d3b25c;
    --c-numeric: #db8fa0;
    --c-linalg-bg: #1c2333;
    --c-calc-bg: #2b2119;
    --c-prob-bg: #162a24;
    --c-info-bg: #291f2e;
    --c-disc-bg: #2a2216;
    --c-numeric-bg: #3a2028;
    --c-xai: #b98fd6;
    --c-llm: #7ecbb0;
    --c-product: #d98fc4;
    --c-mlops: #7eaad4;
    --c-recsys: #d69a7e;
    --c-arch: #cbc07e;
    --c-pm: #d67eb0;
    --c-xai-bg: #2a2233;
    --c-llm-bg: #1a2b26;
    --c-product-bg: #2e1f2a;
    --c-mlops-bg: #1c2733;
    --c-recsys-bg: #2e2119;
    --c-arch-bg: #28281a;
    --c-pm-bg: #2e1f29;
    --c-marketing: #d99a7e;
    --c-marketing-bg: #2e221b;
    --c-stat: #8ba3c9;
    --c-causal: #e0917f;
    --c-disc2: #98b56e;
    --c-num2: #6fc1cc;
    --c-stat-bg: #1e2733;
    --c-causal-bg: #33221e;
    --c-disc2-bg: #232c1c;
    --c-num2-bg: #17282a;
    --c-eval: #b79be0;
    --c-eval-bg: #261f33;
    --c-linalg2: #a89bdb;
    --c-calc2: #d4bb6f;
    --c-info2: #d68fac;
    --c-linalg2-bg: #23203a;
    --c-calc2-bg: #2c2618;
    --c-info2-bg: #2e1f28;
    --c-found: #7ecb96;
    --c-axis: #7ecbd6;
    --c-found-bg: #1a2b20;
    --c-axis-bg: #1a2a2c;
  }
  :root[data-theme="light"] {
    --c-linalg: #33569e;
    --c-calc: #b85c26;
    --c-prob: #1c7f68;
    --c-info: #7d3d92;
    --c-disc: #93701f;
    --c-numeric: #a13b52;
    --c-linalg-bg: #e9edf7;
    --c-calc-bg: #f6e8dd;
    --c-prob-bg: #e1f0ea;
    --c-info-bg: #efe1f3;
    --c-disc-bg: #f2ead9;
    --c-numeric-bg: #f5e3e7;
    --c-xai: #6a3f8f;
    --c-llm: #2f6a5a;
    --c-product: #a1327d;
    --c-mlops: #2f5a7d;
    --c-recsys: #7d3f2f;
    --c-arch: #6a5a1f;
    --c-pm: #7d2f5a;
    --c-xai-bg: #efe6f5;
    --c-llm-bg: #e3f0ea;
    --c-product-bg: #f5e3ef;
    --c-mlops-bg: #e6eef5;
    --c-recsys-bg: #f5e8e3;
    --c-arch-bg: #f0eee0;
    --c-pm-bg: #f5e3ee;
    --c-marketing: #a15332;
    --c-marketing-bg: #f6e9e2;
    --c-stat: #3d5a80;
    --c-causal: #bf5b4d;
    --c-disc2: #5f7a3d;
    --c-num2: #2d7d8a;
    --c-stat-bg: #e7ecf3;
    --c-causal-bg: #f7e6e3;
    --c-disc2-bg: #eef2e3;
    --c-num2-bg: #e1eef0;
    --c-eval: #6b4f9e;
    --c-eval-bg: #ede7f5;
    --c-linalg2: #4a3d8a;
    --c-calc2: #8a6a1f;
    --c-info2: #8a2f5a;
    --c-linalg2-bg: #ece9f7;
    --c-calc2-bg: #f2ecdb;
    --c-info2-bg: #f5e3ec;
    --c-found: #2f7a4a;
    --c-axis: #2f6a7a;
    --c-found-bg: #e6f2ea;
    --c-axis-bg: #e6f0f2;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: var(--font-kr); line-height: 1.65; -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; }
  .back-link {
    font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim);
    text-decoration: none; display: flex; align-items: center; gap: 6px;
  }
  .back-link:hover { color: var(--ink); }
  .domain-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  }
  .domain-tag .dot { width: 8px; height: 8px; border-radius: 50%; }
  main h1 { font-size: clamp(24px, 3.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; text-wrap: balance; }
  .concept-route {
    display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: 760px; margin: -4px 0 22px;
    font-size: 13px; line-height: 1.6;
  }
  .concept-route a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .concept-route a:hover, .concept-route a:focus-visible { color: var(--ink); border-bottom-color: var(--highlight); }
  .concept-route__type { color: var(--ink-faint); font-weight: 700; margin-right: 4px; }
  .explanation {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
    padding: 22px 24px; margin-bottom: 28px; color: var(--ink-dim); font-size: 15px;
    line-height: 1.85; max-width: 66ch;
  }
  .explanation strong { color: var(--ink); }
  .example-box {
    background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: 14px;
    padding: 20px 22px; margin-bottom: 28px; max-width: 66ch;
  }
  .example-label {
    display: flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint);
    margin: 0 0 14px;
  }
  .example-label::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--highlight); }
  .example-body { color: var(--ink-dim); font-size: 14.5px; line-height: 1.85; }
  .example-body p { margin: 0 0 12px; }
  .example-body p:last-child { margin-bottom: 0; }
  .example-body .katex-display { margin: 10px 0; overflow-x: auto; overflow-y: hidden; }
  .example-body strong { color: var(--ink); }
  .intuition-box {
    background: var(--surface); border-left: 3px solid var(--highlight); border-radius: 4px;
    padding: 16px 20px; margin-bottom: 24px; max-width: 66ch;
    color: var(--ink-dim); font-size: 14.5px; line-height: 1.85;
  }
  .intuition-box p { margin: 0 0 10px; }
  .intuition-box p:last-child { margin-bottom: 0; }
  .intuition-box strong { color: var(--ink); }
  .example-body table { border-collapse: collapse; margin: 6px 0 12px; font-size: 14px; }
  .example-body th, .example-body td { border-bottom: 1px solid var(--line-soft); padding: 5px 10px; text-align: center; }
  .example-body th { color: var(--ink-faint); font-weight: 600; }
  .takeaway-box {
    max-width: 66ch; margin: -12px 0 28px; padding: 10px 16px;
    border-left: 3px solid var(--highlight); font-weight: 700; color: var(--ink); font-size: 15px;
  }
  .check-box { max-width: 66ch; margin: 0 0 28px; }
  .check-box .check-label { font-size: 12px; font-weight: 700; color: var(--ink-faint); letter-spacing: .04em; margin: 0 0 10px; }
  .check-q { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; }
  .check-q .q-text { margin: 0 0 12px; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.7; }
  .check-q .q-num { color: var(--highlight); margin-right: 6px; }
  .check-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 14.5px; line-height: 1.7; color: var(--ink-dim);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin: 0 0 8px; cursor: pointer; }
  .check-opt:hover:not([disabled]) { border-color: var(--highlight); }
  .check-opt[disabled] { cursor: default; }
  .check-opt.is-right { border-color: var(--c-prob); background: var(--c-prob-bg); color: var(--ink); }
  .check-opt.is-wrong { border-color: var(--c-causal); background: var(--c-causal-bg); color: var(--ink); }
  .check-opt .why { display: none; margin-top: 6px; font-size: 13.5px; color: var(--ink-dim); }
  .check-q.answered .check-opt .why { display: block; }
  .check-result { display: none; margin: 4px 0 0; font-size: 14px; font-weight: 700; }
  .check-q.answered .check-result { display: block; }
  .proposition-box {
    max-width: 66ch; margin: 0 0 16px; padding: 14px 18px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-dim); font-size: 14.5px; line-height: 1.85;
  }
  .proposition-box .label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-faint); margin-bottom: 4px; }
  .hl { background: color-mix(in srgb, var(--highlight) 25%, transparent); padding: 0 3px; border-radius: 3px; }
  .note-box, .warn-box, .def-box {
    border-radius: 10px; padding: 16px 20px; margin: 0 0 24px; max-width: 66ch;
    font-size: 14.5px; line-height: 1.8; color: var(--ink-dim);
  }
  .note-box { background: var(--surface); border-left: 3px solid var(--highlight); }
  .def-box { background: var(--surface); border: 1px solid var(--line-soft); }
  .warn-box {
    background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--highlight-bg) 8px 16px);
    border: 1px solid var(--highlight);
  }
  .note-box .box-label, .warn-box .box-label, .def-box .def-term {
    display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--highlight); margin: 0 0 8px;
  }
  .note-box p, .warn-box p, .def-box p { margin: 0 0 10px; }
  .note-box p:last-child, .warn-box p:last-child, .def-box p:last-child { margin-bottom: 0; }
  .note-box strong, .warn-box strong, .def-box strong { color: var(--ink); }
  .steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: step; max-width: 66ch; }
  .steps .step-item {
    counter-increment: step; position: relative; padding-left: 34px;
    margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; color: var(--ink-dim);
  }
  .steps .step-item:last-child { margin-bottom: 0; }
  .steps .step-item::before {
    content: counter(step); position: absolute; left: 0; top: 0.15em;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--highlight); color: #fff; font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center; line-height: 1;
  }
  .steps .step-item strong { color: var(--ink); }
  .content-table { border-collapse: collapse; margin: 0 0 24px; max-width: 66ch; font-size: 14px; }
  .content-table th, .content-table td { border: 1px solid var(--line-soft); padding: 8px 14px; text-align: center; }
  .content-table th { background: var(--surface); color: var(--ink); font-weight: 700; }
  .content-table td { color: var(--ink-dim); }
  .diagram-box {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
    padding: 24px; margin-bottom: 28px; max-width: 760px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
  }
  .diagram-box svg { max-width: 100%; height: auto; }
  .diagram-caption { font-size: 12.5px; color: var(--ink-faint); text-align: center; max-width: 60ch; }
  .diagram-box text { fill: var(--ink); font-family: var(--font-kr); }
  .diagram-box .dg-dim { fill: var(--ink-faint); }
  .diagram-box .dg-accent { fill: var(--highlight); }
  .diagram-box .dg-line { stroke: var(--line); }
  .diagram-box .dg-stroke-accent { stroke: var(--highlight); }
  .diagram-box .dg-stroke-ink { stroke: var(--ink-dim); }
  .related-box { margin-bottom: 28px; }
  .related-box .related-label {
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin: 0 0 10px;
  }
  .related-links { display: flex; flex-wrap: wrap; gap: 8px; }
  .related-links a {
    font-size: 13px; color: var(--ink-dim); text-decoration: none;
    padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft);
  }
  .related-links a:hover { border-color: var(--ink-faint); color: var(--ink); }
  .proof-heading {
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-faint); margin: 32px 0 12px;
  }
  .part-heading {
    font-size: 14.5px; font-weight: 800; color: var(--ink);
    margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  }
  .part-heading:first-child { border-top: none; padding-top: 0; }
  .proof-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
  @media (min-width: 900px) {
    .proof-grid { grid-template-columns: 1fr 360px; gap: 28px; }
    .proof-explain { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
  }
  .proof-left { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; }
  .proof-row {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px;
    padding: 18px 20px;
  }
  .proof-step-title { margin: 0 0 8px; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
  .proof-row.is-revealed { border-color: var(--highlight); }
  .proof-text { margin: 0 0 12px; font-size: 15px; line-height: 1.9; }
  .proof-text .katex { font-size: 1.04em; }
  .proof-text .katex-display { margin: 10px 0; }
  .blank {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.4em; padding: 1px 8px; margin: 0 2px;
    border: 1.5px dashed var(--ink-faint); border-radius: 6px;
    font-family: var(--font-mono); font-size: 0.92em; color: var(--ink-dim);
    cursor: pointer; background: var(--surface-2);
  }
  .blank:hover { border-color: var(--highlight); color: var(--ink); }
  .blank:focus-visible, .reveal-btn:focus-visible, .series-nav a:focus-visible, .completion-box a:focus-visible {
    outline: 3px solid var(--highlight); outline-offset: 3px;
  }
  .blank.revealed { border-style: solid; border-color: var(--highlight); background: var(--highlight-bg); color: var(--ink); cursor: default; }
  .reveal-btn {
    align-self: flex-start;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 999px; cursor: pointer;
    background: var(--surface-2); border: 1px solid var(--line);
    color: var(--ink-dim);
  }
  .reveal-btn:hover { border-color: var(--highlight); color: var(--ink); }
  .reveal-btn:disabled { opacity: 0.5; cursor: default; }
  .attempt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .attempt-input {
    flex: 1 1 180px; min-width: 0; max-width: 320px; padding: 6px 10px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
    font-family: var(--font-mono); font-size: 13px;
  }
  .attempt-input:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
  .attempt-hint { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--ink-faint); }
  .attempt-mine { margin: 8px 0 0; font-size: 13px; color: var(--ink-dim); }
  .attempt-mine b { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
  .locked-hint { margin: 0; font-size: 13px; color: var(--ink-faint); padding: 4px 2px; }
  .proof-explain {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
    padding: 16px 18px; font-size: 13.5px; color: var(--ink-dim);
  }
  .proof-explain h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin: 0 0 12px; }
  .explain-card { display: none; }
  .explain-card.is-active { display: block; }
  .explain-card .card-title { font-weight: 800; color: var(--ink); margin: 0 0 8px; font-size: 13.5px; }
  .explain-card .card-item { margin: 0 0 14px; padding-left: 12px; border-left: 2px solid var(--highlight); line-height: 1.75; }
  .explain-card .card-item p { margin: 0 0 6px; }
  .explain-card .card-item .k { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); margin: 0 0 2px; }
  .explain-empty { color: var(--ink-faint); font-style: normal; }
  .series-nav {
    margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--line-soft);
    border-radius: 14px; background: var(--surface); max-width: 760px;
  }
  .publication-meta {
    max-width: 760px; margin: 0 0 18px; padding: 18px 20px;
    border: 1px solid var(--line-soft); border-left: 4px solid var(--highlight);
    border-radius: 14px; background: var(--surface);
  }
  .publication-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
  .publication-status, .publication-version {
    display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
    border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 800;
  }
  .publication-status { color: var(--ink); background: var(--highlight-bg); border: 1px solid var(--highlight); }
  .publication-version { color: var(--ink-dim); background: var(--surface-2); border: 1px solid var(--line); }
  .publication-date { color: var(--ink-faint); font-family: var(--font-mono); font-size: 11.5px; }
  .publication-note { margin: 0; color: var(--ink-dim); font-size: 13.5px; line-height: 1.7; }
  .publication-version-help { margin-top: 10px; color: var(--ink-faint); font-size: 12.5px; }
  .publication-version-help summary { cursor: pointer; color: var(--ink-dim); font-weight: 700; }
  .publication-version-help p { margin: 7px 0 0; }
  .publication-journey {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px;
    font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
  }
  .publication-journey a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
  .publication-journey [aria-current="step"] { color: var(--ink); font-weight: 800; }
  .publication-journey .separator { color: var(--line); }
  .series-kicker, .proof-progress-label {
    margin: 0 0 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 800;
    letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase;
  }
  .series-toc { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
  .series-toc a, .series-prev-next a, .completion-box a {
    color: var(--ink-dim); text-decoration: none; border-bottom: 1px solid var(--line);
  }
  .series-toc a { padding: 5px 9px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 12.5px; }
  .series-toc a[aria-current="page"] { color: var(--ink); border-color: var(--highlight); background: var(--highlight-bg); font-weight: 800; }
  .series-prev-next { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
  .series-prev-next .next { margin-left: auto; text-align: right; }
  .proof-progress {
    max-width: 68ch; margin: 0 0 18px; padding: 12px 14px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--line-soft);
  }
  .proof-progress-label { margin-bottom: 5px; }
  .proof-progress-status { margin: 0; color: var(--ink-dim); font-size: 13.5px; }
  .completion-box {
    max-width: 68ch; margin: 24px 0 28px; padding: 18px 20px; border: 1px solid var(--highlight);
    border-radius: 12px; background: var(--highlight-bg); color: var(--ink-dim); font-size: 14px;
  }
  .completion-box[hidden] { display: none; }
  .completion-box strong { display: block; color: var(--ink); margin-bottom: 6px; }
  .completion-next-status { display: block; margin-top: 7px; color: var(--ink-faint); font-size: 12.5px; }
  main footer {
    margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line-soft);
    font-size: 12px; color: var(--ink-faint);
  }
  /* 내용이 늦게 그려져도 아래 공용 푸터가 화면 안에서 밀려나지 않게(CLS) */
  #content { min-height: 100vh; }
  .loading, .not-found { color: var(--ink-faint); font-size: 14px; padding: 40px 0; }

  /* 읽기 레이아웃: 본문은 읽기 폭으로 가운데, 넓은 화면에서는 왼쪽에 목차와 읽은 정도 */
  .wrap { max-width: 1240px; }
  .reader { display: block; }
  .reader-main { min-width: 0; max-width: 760px; margin: 0 auto; }
  .reader-main .explanation, .reader-main .example-box, .reader-main .intuition-box, .reader-main .takeaway-box,
  .reader-main .check-box, .reader-main .proposition-box, .reader-main .proof-progress, .reader-main .completion-box,
  .reader-main .note-box, .reader-main .warn-box, .reader-main .def-box, .reader-main .steps, .reader-main .proof-left { max-width: none; }
  .reader-main .proof-grid { grid-template-columns: 1fr; }
  .reader-main .proof-explain { position: static; max-height: none; }
  .toc { display: none; }
  @media (min-width: 1100px) {
    .reader { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
    .reader-main { margin: 0; max-width: none; }
    .reader-main > #content > :not(.proof-part) { max-width: 760px; }
    .reader-main .proof-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
    .reader-main .proof-left { max-width: 760px; }
    .reader-main .proof-explain { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
    .toc { display: block; position: sticky; top: 76px; font-size: 13px; }
  }
  .toc[hidden] { display: none; }
  .toc-label { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-faint); }
  .toc-meter { height: 3px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin: 0 0 6px; }
  .toc-meter span { display: block; height: 100%; width: 0; background: var(--highlight); transition: width .15s linear; }
  .toc-pct { margin: 0 0 14px; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-soft); }
  .toc a { display: block; padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent;
    color: var(--ink-dim); text-decoration: none; line-height: 1.45; }
  .toc a:hover { color: var(--ink); }
  .toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--highlight); }
  .toc a .toc-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--ink-faint); }
  .toc a:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }
  [data-toc] { scroll-margin-top: 76px; }
  /* 좁은 화면: 화면 맨 위 얇은 진행 막대 */
  .read-bar { position: fixed; left: 0; top: var(--nav-h, 48px); height: 3px; width: 100%; z-index: 60; pointer-events: none;
    transform-origin: 0 50%; transform: scaleX(0); background: var(--highlight); }
  @media (min-width: 1100px) { .read-bar { display: none; } }

  /* 불러오는 동안 보이는 뼈대 화면 */
  .skel { display: block; }
  .skel i { display: block; border-radius: 10px; background: var(--surface-2); position: relative; overflow: hidden; }
  .skel i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 6%, transparent), transparent);
    animation: skel 1.4s ease-in-out infinite; }
  @keyframes skel { to { transform: translateX(100%); } }
  @media (prefers-reduced-motion: reduce) { .skel i::after { animation: none; } }
  .skel .s-tag { width: 140px; height: 26px; border-radius: 999px; margin-bottom: 16px; }
  .skel .s-h1 { width: min(560px, 90%); height: 34px; margin-bottom: 22px; }
  .skel .s-box { height: 84px; margin-bottom: 20px; }
  .skel .s-ex { height: 190px; margin-bottom: 20px; }
  .skel .s-line { height: 14px; margin-bottom: 10px; }
  .skel .s-line.short { width: 70%; }
  .skel-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-faint); }

/* 미리 만든 첫 화면(scripts/build-concept-pages.mjs). 뷰어가 뜨면 같은 자리를 다시 그린다. */
.prerender { line-height: 1.75; }
.prerender h1 { font-size: var(--fs-display, 32px); line-height: 1.25; margin: 8px 0 12px; }
.prerender h2 { font-size: 19px; margin: 28px 0 8px; }
.prerender-kicker, .prerender-sub { color: var(--ink-2); font-size: 14px; margin: 0; }
.search-answer {
  margin: 20px 0 12px; padding: 4px 0 4px 14px; border-left: 2px solid var(--hairline, currentColor);
}
.search-answer p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.search-aliases { margin: 0 0 28px; color: var(--ink-dim); font-size: 14px; }
.search-aliases strong { color: var(--ink); margin-right: 8px; }
.english-term { margin: 0 0 18px; color: var(--ink-dim); font-size: 14px; }
.english-term__label { color: var(--ink); font-weight: 600; margin-right: 4px; }
/* 한 줄 정의: 상자 없이 본문 첫 문장처럼 보이게 둔다 */
.concept-lead { margin: 0 0 18px; max-width: 66ch; color: var(--ink); font-size: 17px; line-height: 1.75; }
.concept-lead strong { font-weight: 700; }
.prerender .tex-display { display: block; margin: 6px 0; }
.prerender .blank-static { display: inline-block; min-width: 2.2em; padding: 0 6px; text-align: center; border-bottom: 2px dashed var(--ink-faint); }
.prerender details { margin: 10px 0; padding: 8px 12px; border: 1px solid var(--line, rgba(128,128,128,.3)); border-radius: 10px; }
.prerender summary { cursor: pointer; font-size: 14px; color: var(--ink-dim); }
.prerender .pr-options, .prerender .pr-checks ol { padding-left: 1.2em; }
.prerender .pr-options { list-style: none; padding-left: 0; }
.prerender .pr-part { margin: 22px 0 4px; font-weight: 600; }
.prerender .pr-step h3 { font-size: 16px; margin: 14px 0 4px; }
