/* ============================================================
   사슬 블로그 — 스타일 v2
   네이비 한 톤. 강조는 한 곳만 진하게, 나머지는 옅게.
   3D·그라데이션·베벨 없음.
   ============================================================ */

:root {
  --bg: #ffffff;
  --panel: #f3f6fb;
  --surface-2: #e6edf7;
  --text: #182137;
  --text-soft: #53617b;
  --text-mute: #8591a6;
  --line: #dfe6f0;
  --line-soft: #e9eef5;
  --navy: #0d2a5e;
  --accent: #1479c4;

  /* 명도 변주 — t1이 강조 */
  --t1: #0d2a5e;
  --t2: #3d5e94;
  --t3: #97acd0;
  --t4: #cad6ea;
  --on-t1: #ffffff;
  --on-t3: #0d2a5e;

  /* 채운 강조 블록 (KPI 강조 카드, 경고 박스, 막히는 단계, 분류 칩) */
  --em-bg: #0d2a5e;
  --on-em: #ffffff;

  --code-bg: #f5f7fb;
  --wrap: 720px;
  --wide: 900px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e131b;
    --panel: #151c27;
    --surface-2: #202b3b;
    --text: #e8eef7;
    --text-soft: #a3b1c6;
    --text-mute: #77879f;
    --line: #243045;
    --line-soft: #1c2533;
    --navy: #7cc6f6;
    --accent: #4fc3f7;
    --t1: #4fc3f7;
    --t2: #3a8fc4;
    --t3: #2f5b87;
    --t4: #26395a;
    --on-t1: #0e131b;
    --on-t3: #e8eef7;
    --em-bg: #17396a;
    --on-em: #ffffff;
    --code-bg: #151c27;
  }
}

:root[data-theme="dark"] {
  --bg: #0e131b;
  --panel: #151c27;
  --surface-2: #202b3b;
  --text: #e8eef7;
  --text-soft: #a3b1c6;
  --text-mute: #77879f;
  --line: #243045;
  --line-soft: #1c2533;
  --navy: #7cc6f6;
  --accent: #4fc3f7;
  --t1: #4fc3f7;
  --t2: #3a8fc4;
  --t3: #2f5b87;
  --t4: #26395a;
  --on-t1: #0e131b;
  --on-t3: #e8eef7;
  --em-bg: #17396a;
  --on-em: #ffffff;
  --code-bg: #151c27;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: -0.006em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}


.tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 헤더 메뉴 · 언어 선택 ---------- */

.site-header .brand { margin-right: auto; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--panel); }
.main-nav a[aria-current] { color: var(--text); }

.lang-switch { position: relative; }

.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover,
.lang-switch[open] summary { color: var(--text); background: var(--panel); }
.lang-switch .globe { flex: 0 0 auto; }

.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 42, 94, 0.12);
}
.lang-switch li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}
.lang-switch li a:hover { background: var(--panel); }
.lang-switch li a[aria-current] { font-weight: 700; color: var(--navy); }
.lang-switch li a[aria-current]::after { content: " ✓"; }

/* ---------- 글 아래 "다른 글" ---------- */

.more-posts {
  margin: 64px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.more-posts h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.more-posts ul { list-style: none; margin: 0; padding: 0; }
.more-posts li { border-bottom: 1px solid var(--line-soft); }
.more-posts li:last-child { border-bottom: 0; }
.more-posts a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}
.more-posts a:hover .mp-title { color: var(--accent); }
.mp-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.more-posts time { flex: 0 0 auto; font-size: 13px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.more-posts + .post-nav { margin-top: 28px; }

/* ---------- 언어별 글꼴 · 줄바꿈 ----------
   한국어는 어절 단위(keep-all). 일본어·중국어는 띄어쓰기가 없어서 keep-all이면
   한 줄이 화면 밖으로 나간다 → 글자 단위로 끊되 금칙 처리(line-break: strict). */

html[lang="en"] body { word-break: normal; letter-spacing: 0; }

html[lang="ja"] body {
  font-family: "Pretendard JP Variable", "Pretendard JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
  letter-spacing: 0.01em;
}

html[lang="zh-Hans"] body {
  font-family: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  word-break: normal;
  line-break: strict;
  overflow-wrap: anywhere;
  letter-spacing: 0.01em;
}

/* 한자·가나 제목은 자간을 좁히면 뭉친다 */
html[lang="ja"] :is(h1, h2, h3, .fig-title, .brand),
html[lang="zh-Hans"] :is(h1, h2, h3, .fig-title, .brand) { letter-spacing: 0; }

/* ---------- 목록 ---------- */

.home-intro { padding: 48px 0 28px; border-bottom: 1px solid var(--line); }

.home-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.post-list { list-style: none; margin: 0; padding: 0; }

.post-list li { border-bottom: 1px solid var(--line); }

.post-list a {
  display: block;
  padding: 22px 0;
  color: inherit;
  text-decoration: none;
}

.post-list h2 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post-list a:hover h2 { color: var(--accent); }

.empty { color: var(--text-mute); }


.meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

/* ---------- 글 머리 ---------- */

.post-head {
  padding: 48px 0 26px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.post-head h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.38;
  font-weight: 750;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ---------- 본문 ---------- */

.post > h2 {
  margin: 72px 0 18px;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.post > h3 {
  margin: 40px 0 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.post > p { margin: 0 0 22px; }
.post > ul, .post > ol { margin: 0 0 22px; padding-left: 20px; }
.post > ul > li, .post > ol > li { margin-bottom: 9px; padding-left: 2px; }
.post > ul > li::marker, .post > ol > li::marker { color: var(--text-mute); }

.post a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.post a:hover { border-bottom-color: var(--accent); }

.post strong { font-weight: 750; }

.post hr { border: 0; border-top: 1px solid var(--line); margin: 60px 0 32px; }

.post blockquote {
  margin: 0 0 22px;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--line);
  color: var(--text-soft);
}
.post blockquote p:last-child { margin-bottom: 0; }

.post code {
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.86em;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  word-break: break-all;
}

.post pre {
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow-x: auto;
  line-height: 1.65;
}
.post pre code { background: none; border: 0; padding: 0; font-size: 14px; word-break: normal; }

.post table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.post th, .post td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.post thead th { background: var(--surface-2); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ============================================================
   도표 — 공통 패널
   ============================================================ */

.fig { margin: 44px 0 52px; }

@media (min-width: 960px) {
  .fig {
    width: var(--wide);
    /* 본문 폭(wrap - 좌우 여백 40px)보다 넓게, 가운데 정렬 */
    margin-left: calc((var(--wrap) - 40px - var(--wide)) / 2);
  }
}

.fig-panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 26px 28px 20px;
}

.fig-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.fig-head-text { min-width: 0; }

.fig-kicker {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--t2);
}

.fig-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.fig-hero { text-align: right; flex: 0 0 auto; }

.fig-hero-value {
  margin: 0;
  font-size: 46px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--navy);
  white-space: nowrap;
}
.fig-hero-value span {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.fig-hero-label {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mute);
}

.fig figcaption {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}

.fig-kpi figcaption { border-top: 0; padding-top: 0; margin-top: 14px; }

.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig text { font-family: inherit; }

/* 톤 — SVG fill과 HTML 배경을 같은 클래스로 */
.t1 { fill: var(--t1); background: var(--t1); }
.t2 { fill: var(--t2); background: var(--t2); }
.t3 { fill: var(--t3); background: var(--t3); }
.t4 { fill: var(--t4); background: var(--t4); }

.fig-error {
  background: #fff3f3;
  border: 1px solid #f3c6c6;
  color: #9b2226;
  font-size: 13px;
}

/* ---------- 직접 찍은 캡처 ---------- */

.shot { margin: 32px 0 40px; }

@media (min-width: 960px) {
  .shot {
    width: var(--wide);
    margin-left: calc((var(--wrap) - 40px - var(--wide)) / 2);
  }
}

.shot img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.shot figcaption {
  margin: 12px auto 0;
  max-width: 34em;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-mute);
}

/* ---------- KPI ---------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.kpi-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.kpi-card.is-accent { background: var(--em-bg); }

.kpi-label {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  min-height: 2.9em;
  color: var(--text-soft);
}

.kpi-value {
  margin: 14px 0 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--navy);
  white-space: nowrap;
}

.kpi-unit {
  margin-left: 3px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.kpi-note {
  margin: auto 0 0;
  padding-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mute);
}

.kpi-card.is-accent .kpi-label { color: color-mix(in srgb, var(--on-em) 78%, transparent); }
.kpi-card.is-accent .kpi-value { color: var(--on-em); }
.kpi-card.is-accent .kpi-unit { color: color-mix(in srgb, var(--on-em) 72%, transparent); }
.kpi-card.is-accent .kpi-note { color: color-mix(in srgb, var(--on-em) 62%, transparent); }

/* ---------- 세로 막대 ---------- */

.baseline { stroke: var(--line); stroke-width: 1.5; }

.v-label {
  paint-order: stroke;
  stroke: var(--panel);
  stroke-width: 5px;
  stroke-linejoin: round;
  font-size: 12px;
  font-weight: 600;
  fill: var(--text-mute);
  font-variant-numeric: tabular-nums;
}
.v-label.is-hi { font-size: 14px; font-weight: 800; fill: var(--text); }
.v-label.is-zero { font-size: 12px; font-weight: 700; fill: var(--text-mute); }

.x-label {
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--text-mute);
  font-variant-numeric: tabular-nums;
}

.zero-mark { fill: var(--t4); }

.avg-line { stroke: var(--t2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.avg-label { font-size: 13px; font-weight: 800; fill: var(--navy); }

.col, .slice, .hbar { transition: opacity .15s ease; }
.fig svg:hover .col { opacity: .45; }
.fig svg .col:hover { opacity: 1; }

/* ---------- 가로 막대 ---------- */

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }

.hbar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.hbar-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.hbar-label small {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-mute);
}

.hbar-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-soft);
  white-space: nowrap;
}
.hbar-value small {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-mute);
}
.hbar.is-accent .hbar-value { color: var(--navy); }

.hbar-track {
  height: 16px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.hbar-fill { height: 100%; border-radius: 8px; }

.hbars:hover .hbar { opacity: .5; }
.hbars .hbar:hover { opacity: 1; }

/* ---------- 도넛 ---------- */

.donut-wrap {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.donut-svg { max-width: 290px; }

.slice-path { stroke: var(--panel); stroke-width: 4; stroke-linejoin: round; }

.donut-in { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.t1-ink { fill: var(--on-t1); }
.t3-ink, .t4-ink { fill: var(--on-t3); }

.donut-c-value { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; fill: var(--text); }
.donut-c-label { font-size: 13px; font-weight: 600; fill: var(--text-mute); }

.donut-legend { list-style: none; margin: 0; padding: 0; }

.donut-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.donut-legend li:first-child { padding-top: 0; }
.donut-legend li:last-child { border-bottom: 0; padding-bottom: 0; }

.donut-legend .sw { width: 12px; height: 12px; border-radius: 3px; }

.lg-text b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.lg-text small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--text-mute); }

.lg-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.lg-value small { font-size: 14px; font-weight: 700; margin-left: 1px; }
.donut-legend li.is-accent .lg-value { color: var(--navy); }

/* ---------- 단계 (프로세스 카드) ---------- */

.psteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pstep {
  background: var(--bg);
  border-radius: 16px;
  padding: 20px 20px 22px;
}

.pstep.is-hard { background: var(--em-bg); }

.pstep-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pstep-hex {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.pstep-hex span {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.pstep.is-hard .pstep-hex { background: color-mix(in srgb, var(--on-em) 16%, transparent); }
.pstep.is-hard .pstep-hex span { color: var(--on-em); }

.pstep-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
}
.pstep.is-hard .pstep-time { color: color-mix(in srgb, var(--on-em) 75%, transparent); }

.pstep-title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.pstep.is-hard .pstep-title { color: var(--on-em); }

.pstep-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
.pstep.is-hard .pstep-desc { color: color-mix(in srgb, var(--on-em) 80%, transparent); }

/* ---------- 강조 박스 ---------- */

.callout {
  margin: 36px 0;
  padding: 24px 26px;
  border-radius: 18px;
  background: var(--panel);
}
.callout.is-warn { background: var(--em-bg); }

.callout-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.callout.is-warn .callout-title { color: var(--on-em); }

.callout-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-soft);
}
.callout.is-warn .callout-body { color: color-mix(in srgb, var(--on-em) 84%, transparent); }

/* ---------- 하단 ---------- */

.post-nav { margin: 72px 0 0; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; }
.post-nav a { color: var(--accent); text-decoration: none; font-weight: 700; }
.post-nav a:hover { text-decoration: underline; }

.site-footer {
  margin-top: 96px;
  padding-block: 32px 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-mute);
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--text-soft); }

/* ---------- 좁은 화면 ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .tagline { display: none; }
  .main-nav a { padding: 6px 8px; font-size: 13.5px; }
  .lang-switch summary span { display: none; }
  .more-posts a { flex-direction: column; gap: 2px; }
  .home-intro { padding: 32px 0 20px; }
  .post-head { padding: 40px 0 28px; margin-bottom: 32px; }
  .post-head h1 { font-size: 26px; }
  .post > h2 { font-size: 22px; margin-top: 56px; }
  .fig { margin: 36px 0 40px; }
  .fig-panel { padding: 22px 18px 18px; border-radius: 10px; }
  .fig-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .fig-hero { text-align: left; }
  .fig-hero-value { font-size: 38px; }
  .kpi-grid, .kpi-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-card { padding: 18px 16px 16px; }
  .kpi-value { font-size: 32px; }
  .psteps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .donut-wrap { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .donut-svg { max-width: 240px; }
  .donut-legend { width: 100%; }
  .post-list h2 { font-size: 17px; }
}

@media (max-width: 420px) {
  .psteps { grid-template-columns: 1fr; }
  .kpi-value { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- 최신 네트워크 수치 표 ---------- */

.netstats { margin: 24px 0 32px; }
.netstats table { margin: 0; }
.netstats td.num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.netstats figcaption { margin-top: 10px; font-size: 13px; color: var(--text-mute); }
.netstats-empty { color: var(--text-mute); }

.home-intro a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-intro a:hover { text-decoration: underline; }

/* ---------- 글 안 계산기 ---------- */

.calc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 28px 0 34px;
  padding: 22px 24px;
  background: var(--panel);
  border-radius: 12px;
}
.calc label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.calc input {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.calc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.calc output {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--em-bg);
  color: var(--on-em);
  font-weight: 700;
  line-height: 1.6;
}
@media (max-width: 520px) { .calc { grid-template-columns: 1fr; } }

/* ---------- 대표 그림 (글 맨 위) ---------- */

.cover {
  margin: 0 0 44px;
  padding: 30px 32px 26px;
  background: var(--panel);
  border-radius: 14px;
}
@media (min-width: 960px) {
  .cover { width: var(--wide); margin-left: calc((var(--wrap) - 40px - var(--wide)) / 2); }
}
.cover-head { margin-bottom: 26px; }
.cover-kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--t2); }
.cover-title {
  margin: 0; font-size: 24px; line-height: 1.4; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text); text-wrap: balance;
}
.cover figcaption { margin-top: 20px; font-size: 13px; line-height: 1.7; color: var(--text-mute); }

/* 흐름 */
.cv-flow { display: flex; align-items: stretch; gap: 0; }
.cv-node {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 18px 18px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.cv-node.is-em { background: var(--em-bg); border-color: var(--em-bg); color: var(--on-em); }
.cv-node-label { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 800; letter-spacing: -0.02em; }
.cv-node-sub { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-soft); }
.cv-node.is-em .cv-node-sub { color: var(--on-em); opacity: .8; }

.cv-arrow {
  flex: 0 0 64px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.cv-arrow-line { position: relative; display: block; width: 44px; height: 2px; background: var(--t3); }
.cv-arrow-line::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border-left: 8px solid var(--t3); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.cv-arrow-label { font-size: 12px; font-weight: 700; color: var(--t2); white-space: nowrap; }
.cv-arrow.is-broken { flex-basis: 110px; }
.cv-arrow.is-broken .cv-arrow-line {
  background: repeating-linear-gradient(90deg, var(--navy) 0 6px, transparent 6px 11px);
}
.cv-arrow.is-broken .cv-arrow-line::after { border-left-color: var(--navy); }
.cv-arrow.is-broken .cv-arrow-label {
  padding: 2px 8px; border-radius: 999px; background: var(--em-bg); color: var(--on-em);
}

/* 계산식 */
.cv-formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 12px; }
.cv-term {
  flex: 1 1 0; min-width: 120px;
  padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.cv-term.is-em { background: var(--em-bg); border-color: var(--em-bg); color: var(--on-em); }
.cv-term-value {
  margin: 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -0.04em;
  color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cv-term.is-em .cv-term-value { color: var(--on-em); }
.cv-term-value span { margin-left: 3px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.cv-term-label { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
.cv-term.is-em .cv-term-label { color: var(--on-em); opacity: .8; }
.cv-op { flex: 0 0 auto; align-self: center; font-size: 24px; font-weight: 700; color: var(--t3); }

/* 떠도는 말 → 확인 결과 */
.cv-myth { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.25fr); align-items: stretch; }
.cv-claim, .cv-verdict { padding: 20px 22px; border-radius: 12px; }
.cv-claim { background: var(--bg); border: 1px dashed var(--t3); display: flex; flex-direction: column; justify-content: center; }
.cv-verdict { background: var(--em-bg); color: var(--on-em); }
.cv-tag { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--text-mute); }
.cv-verdict .cv-tag { color: var(--on-em); opacity: .7; }
.cv-claim-text { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--text-soft); }
.cv-verdict-text { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; }
.cv-facts { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cv-facts li {
  margin: 0; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: var(--on-em);
}

/* 날짜별 점 */
.cv-timeline { display: grid; gap: 10px; }
.cv-row, .cv-axis { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; }
.cv-row { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.cv-row-label { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.cv-row-sub { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-soft); }
.cv-cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: center; height: 40px; }
.cv-cell { display: flex; align-items: center; justify-content: center; }
.cv-dot { display: block; border-radius: 50%; background: var(--t3); }
.cv-dot.is-em { background: var(--t1); }
.cv-empty { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.cv-axis { padding: 0 17px; }
.cv-axis > div { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); font-size: 12px; color: var(--text-mute); text-align: center; }

@media (max-width: 760px) {
  .cover { padding: 22px 18px 18px; border-radius: 12px; margin-bottom: 36px; }
  .cover-title { font-size: 20px; }
  .cv-flow { flex-direction: column; }
  .cv-arrow, .cv-arrow.is-broken { flex-basis: 44px; flex-direction: row; }
  .cv-arrow-line { width: 2px; height: 22px; }
  .cv-arrow-line::after {
    right: -4px; top: auto; bottom: -1px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--t3); border-bottom: 0;
  }
  .cv-arrow.is-broken .cv-arrow-line { background: repeating-linear-gradient(180deg, var(--navy) 0 5px, transparent 5px 9px); }
  .cv-arrow.is-broken .cv-arrow-line::after { border-left-color: transparent; border-top-color: var(--navy); }
  .cv-myth { grid-template-columns: 1fr; }
  .cv-myth > .cv-arrow { flex-basis: auto; height: 40px; }
  .cv-term { min-width: 0; flex-basis: calc(50% - 30px); }
  .cv-term-value { font-size: 24px; }
  .cv-row, .cv-axis { grid-template-columns: 1fr; gap: 8px; }
  .cv-axis > div { padding: 0; }
  .cv-axis > span { display: none; }
}

/* 공유 이미지(1200×630)로 찍을 때 — 카드 안에 꽉 차게 zoom (tools/covers.py) */
.cover-card { width: 1200px; height: 630px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.cover-fit { flex: none; width: 860px; }
.cover-card .cover { width: auto; margin: 0; }
.cover-card .cover figcaption { display: none; }
.cover-card .cv-formula { flex-wrap: nowrap; }
.cover-card .cv-term { min-width: 0; }
.cover-card-brand { margin: 12px 6px 0; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--text-mute); }

/* 목록 썸네일 원본 (600×360, tools/covers.py가 찍음) */
.thumb-card { width: 600px; height: 360px; box-sizing: border-box; padding: 0 50px; display: flex; align-items: center;
  background: var(--panel); border-left: 14px solid var(--t1); }
.thumb-card.is-em { background: var(--em-bg); border-left-color: var(--t3); }
.thumb-text { margin: 0; font-size: 72px; line-height: 1.2; font-weight: 800; letter-spacing: -0.04em; color: var(--navy);
  word-break: keep-all; overflow-wrap: normal; text-wrap: balance; }
.thumb-card.is-em .thumb-text { color: var(--on-em); }

/* 목록 썸네일 (대표 그림을 찍은 PNG) */
.post-list a { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: center; }
.pl-thumb { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 760px) {
  .post-list a { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; }
  .pl-thumb { border-radius: 6px; }
}

/* 좁은 화면: 칸이 많은 표는 표 안에서 옆으로 밀리게 (페이지가 가로로 넘치지 않게) */
@media (max-width: 760px) {
  .post table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; -webkit-overflow-scrolling: touch; }
  .post th, .post td { padding: 10px 10px; }
  .post th { white-space: nowrap; }

  /* 계산식은 세로로 쌓고, 연산 기호는 가운데 */
  .cv-formula { flex-direction: column; align-items: stretch; gap: 6px; }
  .cv-term { flex-basis: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; }
  .cv-term-label { margin: 0; text-align: right; }
  .cv-op { font-size: 20px; line-height: 1; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pl-thumb { filter: brightness(.82); border-color: transparent; } }
:root[data-theme="dark"] .pl-thumb { filter: brightness(.82); border-color: transparent; }

/* 첫 화면 "처음 오셨다면" */
.start-here { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.sh-head { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--t2); }
.start-here ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.start-here a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--panel); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.45; }
.start-here a:hover { background: var(--surface-2); }
.sh-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--em-bg); color: var(--on-em); font-size: 13px; font-weight: 800; }
@media (max-width: 760px) { .start-here ol { grid-template-columns: 1fr; } }

/* ---------- 칸 고르기 · 아카이브 · 연표 · 네트워크 기록 ---------- */
.sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 4px; }
.sec-tabs a { padding: 7px 14px; border-radius: 999px; background: var(--panel); color: var(--text-soft);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sec-tabs a span { margin-left: 4px; font-weight: 600; color: var(--text-mute); }
.sec-tabs a[aria-current="page"] { background: var(--em-bg); color: var(--on-em); }
.sec-tabs a[aria-current="page"] span { color: var(--on-em); opacity: .7; }
.sec-tabs a:hover:not([aria-current]) { background: var(--surface-2); }
.page-lead { margin: 0 0 8px; color: var(--text-soft); }

.ar-cards { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ar-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: 12px;
  background: var(--panel); color: var(--text); text-decoration: none; border: 0; }
.ar-cards a:hover { background: var(--surface-2); }
.ar-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.ar-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }
.ar-sub { margin: -8px 0 12px; font-size: 14px; color: var(--text-mute); }
.ar-claims { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.ar-claims li { margin: 0; border-bottom: 1px solid var(--line); }
.ar-claims a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 2px; color: var(--text); text-decoration: none; border: 0; }
.ac-claim { font-weight: 700; }
.ac-verdict { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--em-bg); color: var(--on-em); font-size: 13px; font-weight: 700; }

.tl { list-style: none; margin: 24px 0 0; padding: 0; border-left: 2px solid var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 0 0 26px 22px; }
.tl-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--t3); border: 2px solid var(--bg); }
.tl-item.is-blog::before { background: var(--t1); }
.tl-date { font-size: 14px; font-weight: 700; color: var(--text-soft); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-kind { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 6px; background: var(--panel); font-size: 12px; font-weight: 700; color: var(--t2); }
.tl-item.is-blog .tl-kind { background: var(--em-bg); color: var(--on-em); }
.tl-text { margin: 0; line-height: 1.7; }
.tl-src { margin: 4px 0 0; font-size: 13px; }

.net-table { overflow-x: auto; margin: 20px 0; }
.net-table table { min-width: 720px; }
.net-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 760px) {
  .ar-cards { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .ar-claims a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .main-nav a { padding: 6px 6px; }
}
/* 본문 목록·링크 규칙(.post > ul, .post a)이 새지 않게 */
.post > ol.tl { padding-left: 0; margin-left: 6px; }
.post > ol.tl > li.tl-item { margin: 0; padding: 0 0 26px 24px; }
.post > ul.ar-cards, .post > ul.ar-claims { padding-left: 0; }
.post > ul.ar-cards > li, .post > ul.ar-claims > li { margin: 0; padding: 0; }
.post .sec-tabs a, .post .ar-cards a, .post .ar-claims a { border-bottom: 0; }
.post .ar-cards a, .post .ar-claims a { color: var(--text); }
.net-table td:first-child { white-space: nowrap; }

/* 소식 정리 카드 (```news) */
.news-list { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 12px; }
.post > ul.news-list { padding-left: 0; }
.post > ul.news-list > li { margin: 0; padding: 0; }
.news-item { padding: 18px 20px; border-radius: 12px; background: var(--panel); }
.news-meta { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--t2); }
.news-type { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: var(--bg); }
.news-title { margin: 0 0 10px; font-size: 16.5px; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; }
.news-row { margin: 4px 0 0; font-size: 14.5px; line-height: 1.65; }
.news-row b { display: inline-block; min-width: 72px; margin-right: 6px; font-size: 12.5px; color: var(--text-mute); }
.news-row.is-checked b { color: var(--navy); }
.news-src { margin: 8px 0 0; font-size: 13px; }
.tl-item.is-exchange .tl-kind { background: var(--surface-2); color: var(--text); }

/* 제보 칸 */
.tip-form { display: grid; gap: 18px; margin: 28px 0 40px; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.tip-field { display: grid; gap: 7px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.tip-field select, .tip-field textarea, .tip-field input { width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; font-size: 15.5px; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; }
.tip-field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.tip-field select:focus, .tip-field textarea:focus, .tip-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tip-field ::placeholder { color: var(--text-mute); }
.tip-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tip-form button { justify-self: start; padding: 12px 26px; font: inherit; font-size: 15.5px; font-weight: 800; color: var(--on-em); background: var(--em-bg); border: 0; border-radius: 9px; cursor: pointer; }
.tip-form button:disabled { opacity: .6; cursor: wait; }
.tip-status { margin: 0; padding: 12px 14px; font-size: 14.5px; font-weight: 600; border-radius: 9px; background: var(--surface-2); color: var(--text); }
.tip-status.is-bad { background: transparent; border: 1px solid var(--line); color: var(--text-soft); }
@media (max-width: 560px) {
  .tip-form { padding: 18px 16px; }
  .tip-form button { justify-self: stretch; }
}

/* 폰: 메뉴가 4개라 한 줄에 안 들어간다 → 1줄 로고·언어, 2줄 메뉴 (넘치면 옆으로 밀기) */
.brand { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 8px; row-gap: 0; }
  .main-nav { order: 3; width: calc(100% + 12px); margin: 0 -6px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
}

/* ---------- 읽기 흐름 정리 (2026-09-25) ----------
   1) 그림·캡처·요약 그림을 본문과 같은 폭으로: 좁고 넓고가 번갈아 나오면 눈이 계속 옮겨 다닌다
   2) "출처:" 줄은 작은 회색 한 줄로 답 바로 밑에 붙인다
   3) 묶음 제목(## 다음에 ### 질문이 오는 곳)은 위에 선을 긋고, 질문과 답은 한 덩어리로 붙인다 */
@media (min-width: 960px) {
  .fig, .shot, .cover { width: auto; margin-left: 0; margin-right: 0; }
}
.post > p.src {
  margin: -12px 0 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-mute);
}
.post > p.src a { color: var(--text-soft); text-decoration-color: var(--line); }
.post > p.src a:hover { color: var(--accent); }
.post > h2:has(+ h3) {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 23px;
}
.post > h2:has(+ h3) + h3 { margin-top: 22px; }
.post > h3 { margin: 44px 0 10px; }
.post > h3 + p { margin-top: 0; }
/* 요약 그림이 본문 폭으로 좁아졌으니 화살표 칸을 줄여 상자에 자리를 준다 (모바일 세로 배치는 그대로) */
@media (min-width: 761px) {
  .cv-arrow { flex-basis: 36px; }
  .cv-arrow-line { width: 22px; }
}
/* 캡처는 눌러서 원본 크기로 볼 수 있게 */
.shot a.shot-zoom { display: block; cursor: zoom-in; }
.shot a.shot-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* 목차 (```toc): 질문 목록을 묶음별로. 누르면 그 질문으로 이동 */
.toc { margin: 8px 0 44px; padding: 22px 24px 20px; background: var(--panel); border-radius: 12px; }
.toc-label { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--text-mute); }
.toc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.toc-group { min-width: 0; }
.toc .toc-h { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 800; color: var(--text); text-decoration: none; }
.post .toc ul { list-style: none; margin: 0; padding: 0; }
.post .toc li { margin: 0; padding: 0; }
.toc li a { display: block; padding: 3px 0; font-size: 14px; line-height: 1.5; color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.post h2[id], .post h3[id] { scroll-margin-top: 84px; }
@media (max-width: 640px) {
  .toc { padding: 18px 16px; }
  .toc-groups { grid-template-columns: 1fr; }
}
/* 목차 링크는 밑줄 없이 (본문 링크의 밑줄 규칙을 덮는다) */
.post .toc a { border-bottom: 0; }
.post .toc li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* 한눈에 보기 표(바로 뒤에 목차가 오는 표): 항목 이름은 한 줄로 */
.post > table:has(+ p + .toc) td:first-child,
.post > .table-wrap:has(+ p + .toc) td:first-child { white-space: nowrap; font-weight: 700; color: var(--text-soft); }

/* 막힐 때 갈림길 (```fix) */
.fix { margin: 18px 0 30px; padding: 18px 20px; background: var(--panel); border-radius: 12px; display: grid; gap: 10px; }
.fix p { margin: 0; }
.fix-q { font-weight: 750; line-height: 1.6; }
.fix-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--em-bg); color: var(--on-em); font-size: 12.5px; font-weight: 800; vertical-align: 1px; }
.fix-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; font-size: 15.5px; line-height: 1.65; }
.fix-row > b { font-size: 13px; font-weight: 800; padding-top: 2px; }
.fix-row.is-yes > b { color: #1f7a4d; }
.fix-row.is-no > b { color: #b0452a; }
.fix-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.post .fix-steps li { margin: 0; padding-left: 2px; }
.fix-then { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-mute); margin-bottom: 1px; }
.fix code { font-size: 13.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fix-row.is-yes > b { color: #6fd3a0; } :root:not([data-theme="light"]) .fix-row.is-no > b { color: #ff9f7a; } }
:root[data-theme="dark"] .fix-row.is-yes > b { color: #6fd3a0; }
:root[data-theme="dark"] .fix-row.is-no > b { color: #ff9f7a; }
@media (max-width: 560px) { .fix { padding: 16px 14px; } .fix-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- 덜 꾸민 화면 (2026-09-25) ----------
   카드·칩·번호 동그라미·표어 그림이 AI가 만든 보고서처럼 보인다는 지적.
   글자를 키우고(어르신도 읽게), 꾸밈은 빼고, 글 자체가 앞에 오게 한다. */
body { font-size: 18px; }
.post > p, .post > ul, .post > ol { line-height: 1.9; }
.post .meta, .post-list .meta, .post > p.src, .shot figcaption, .cover figcaption, .fig figcaption { font-size: 15px; }
.post > p.src { margin-top: -10px; }
/* 글 맨 위 표어 그림은 화면에서 뺀다 (공유 미리보기 이미지로만 쓴다) */
.post > .cover, .post > figure.cover { display: none; }
/* 첫 화면 */
.start-plain { margin: 0 0 28px; font-size: 16.5px; line-height: 1.8; color: var(--text-soft); }
.start-plain a { color: var(--accent); font-weight: 600; }
.sec-tabs a, .sec-tabs a[aria-current] { background: none !important; border: 0; border-radius: 0; padding: 4px 0; margin-right: 18px; color: var(--text-soft); font-weight: 600; box-shadow: none; }
.sec-tabs a[aria-current] { color: var(--text); border-bottom: 2px solid var(--text); }
.pl-desc { margin: 6px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 막힐 때 갈림길: 상자·칩 대신 평범한 문단 */
.fix { background: none; padding: 2px 0 2px 18px; border-left: 3px solid var(--line); border-radius: 0; }
.fix-tag { background: none; color: var(--text-mute); padding: 0; margin-right: 6px; font-size: 14px; }
.fix-tag::after { content: ":"; }

/* 블로그·뉴스 분리 (2026-09-25) */
.news-more { margin: -8px 0 26px; font-size: 15.5px; color: var(--text-soft); }
.news-more a { color: var(--accent); font-weight: 600; }
.draft-flag { display: inline-block; margin: 0 0 10px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text-mute); vertical-align: 3px; }
h2 .draft-flag { margin: 0 6px 0 0; }
/* 뉴스·칸 페이지의 글 목록이 본문 링크 모양(파란 글씨, 밑줄, 들여쓰기)을 따라가지 않게 */
.post > ul.post-list { padding-left: 0; margin-left: 0; }
.post > ul.post-list > li { padding-left: 0; }
.post > ul.post-list > li::marker { content: none; }
.post .post-list a, .post .post-list a:hover { color: inherit; border-bottom: 0; }
.post .post-list h2 { margin: 0; font-size: 20px; }

/* ---------- 목록 썸네일 (2026-09-25): 블로그는 한 줄 목록, 뉴스는 격자 ---------- */
.post-list a { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 26px; align-items: center; }
.pl-media { width: 200px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.pl-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pl-noimg { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 12px 14px; box-sizing: border-box; font-size: 14px; font-weight: 700; color: var(--text-soft); background: var(--panel); }
@media (max-width: 640px) {
  .post-list a { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; align-items: start; }
  .pl-media { width: 96px; border-radius: 8px; }
  .pl-noimg { font-size: 11.5px; padding: 8px; }
  .pl-desc { -webkit-line-clamp: 2; }
}

.news-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
@media (min-width: 960px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: var(--wide); margin-left: calc((var(--wrap) - 40px - var(--wide)) / 2); }
}
.post > ul.news-grid { padding-left: 0; }
.news-grid li { margin: 0; padding: 0; }
.news-grid li::marker { content: none; }
.news-grid a, .post .news-grid a { display: flex; flex-direction: column; gap: 12px; height: 100%; color: inherit; text-decoration: none; border-bottom: 0; }
.ng-media { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.ng-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ng-date { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 16px; box-sizing: border-box; background: var(--em-bg); color: var(--on-em); }
.ng-date b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.ng-date span { font-size: 13px; opacity: .75; }
.ng-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--text-mute); }
.ng-tag { padding: 1px 7px; border-radius: 5px; background: var(--panel); color: var(--text-soft); font-weight: 700; font-size: 13px; }
.news-grid h2, .post .news-grid h2 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 750; letter-spacing: -0.02em; }
.news-grid a:hover h2 { color: var(--accent); }
.ng-desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (min-width: 960px) {
  .post > ul.news-grid { width: var(--wide); margin-left: calc((var(--wrap) - 40px - var(--wide)) / 2); margin-right: 0; }
}

/* ---------- 사슬 퀴즈 ---------- */
.quiz { margin: 28px 0 36px; }
.qz-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.post > ol.qz-levels, .post .qz-levels { padding-left: 0; }
.qz-level { margin: 0 !important; padding: 18px 18px 16px !important; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.qz-level::marker { content: none; }
.qz-level.is-passed { border-color: var(--accent); }
.qz-step { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-mute); }
.qz-level h3, .qz-placement h3 { margin: 0; font-size: 21px; }
.qz-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); flex: 1; }
.qz-rec { margin: 2px 0 6px; font-size: 14px; color: var(--text-mute); }
.quiz button { justify-self: start; align-self: flex-start; padding: 10px 18px; font: inherit; font-size: 16px; font-weight: 700; color: var(--on-em); background: var(--em-bg); border: 0; border-radius: 9px; cursor: pointer; }
.quiz button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qz-placement { margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--panel); }
.qz-placement p { margin: 6px 0 12px; font-size: 15.5px; color: var(--text-soft); }
.qz-progress { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text-mute); }
.qz-q { margin: 0 0 16px; font-size: 22px; line-height: 1.5; }
.qz-choices { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.qz-choices li { margin: 0 !important; padding: 0 !important; }
.qz-choices li::marker { content: none; }
.quiz .qz-choices button { width: 100%; text-align: left; font-weight: 600; font-size: 17px; line-height: 1.5; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); padding: 14px 16px; }
.quiz .qz-choices button:not(:disabled):hover { border-color: var(--accent); }
.quiz .qz-choices button.is-right { border-color: #1f7a4d; background: #e3f3ea; }
.quiz .qz-choices button.is-wrong { border-color: #b0452a; background: #fbe9e3; }
.quiz .qz-choices button:disabled { cursor: default; }
.qz-feedback { margin-top: 16px; }
.qz-result { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.qz-result.is-right { color: #1f7a4d; }
.qz-result.is-wrong { color: #b0452a; }
.qz-explain { margin: 0 0 14px; font-size: 16.5px; line-height: 1.75; }
.qz-explain a { display: block; margin-top: 6px; font-size: 15px; }
.qz-final { padding: 22px; border-radius: 12px; background: var(--panel); }
.qz-score { margin: 0 0 6px; font-size: 20px; }
.qz-score b { font-size: 34px; }
.qz-actions button + button { margin-left: 8px; background: var(--bg); color: var(--text); border: 1.5px solid var(--line); }
.qz-all { margin: 10px 0 0; font-size: 15px; color: var(--text-soft); }
.qz-all summary { cursor: pointer; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quiz .qz-choices button.is-right { background: #173a2a; } :root:not([data-theme="light"]) .quiz .qz-choices button.is-wrong { background: #3d1f16; } }
:root[data-theme="dark"] .quiz .qz-choices button.is-right { background: #173a2a; }
:root[data-theme="dark"] .quiz .qz-choices button.is-wrong { background: #3d1f16; }
@media (max-width: 640px) { .qz-levels { grid-template-columns: 1fr; } .qz-q { font-size: 20px; } }

/* ---------- 쉬운 말 세 줄 · 접는 칸 (2026-09-26, 60~70대 독자 기준) ---------- */
.easy { margin: 6px 0 34px; padding: 18px 22px 16px; background: var(--panel); border-left: 4px solid var(--navy); border-radius: 4px 12px 12px 4px; }
.easy-label { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.post .easy ul { margin: 0; padding-left: 20px; }
.post .easy li { margin: 4px 0; font-size: 18.5px; line-height: 1.7; font-weight: 600; color: var(--text); }
.more { margin: 22px 0 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.more > summary { cursor: pointer; padding: 15px 18px; font-size: 16.5px; font-weight: 750; color: var(--text); list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 800; color: var(--navy); }
.more[open] > summary::before { content: "−"; }
.more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.more-body { padding: 0 20px 6px; border-top: 1px solid var(--line-soft); }
.more-body > :first-child { margin-top: 16px; }

/* ---------- 첫 화면 입구 버튼 · 지금 많이 묻는 것 · 뉴스 첫 화면 보강 (2026-09-27) ---------- */
.start { margin: 0 0 30px; display: grid; gap: 12px; justify-items: start; }
.start-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 24px; border-radius: 14px; background: var(--em-bg); color: var(--on-em); font-size: 19px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.start-btn:hover { filter: brightness(1.08); }
.start-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.start .start-plain { margin: 0; }
.ask-now { margin: 0 0 34px; padding: 20px 22px 18px; background: var(--panel); border-radius: 14px; }
.ask-now h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -0.01em; }
.ask-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.ask-list li { margin: 0; }
.ask-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; font-weight: 650; line-height: 1.45; text-decoration: none; }
.ask-list a:hover { color: var(--accent); }
@media (max-width: 640px) { .ask-list { grid-template-columns: 1fr; } .start-btn { font-size: 18px; padding: 15px 20px; } }
.news-net { margin: 0 0 22px; padding: 12px 16px; border-radius: 10px; background: var(--panel); font-size: 15.5px; color: var(--text-soft); }
.news-net b { color: var(--text); margin-right: 6px; }
.news-recent-h { margin: 38px 0 14px; font-size: 20px; }

/* 첫 화면 윗부분 균형 (2026-09-27 사용자 "라인이 이상해"): 옛 구분선을 없애고, 소개 문장을 본문 크기로 올리고, 버튼은 한 단계 가볍게 */
.home-intro { padding: 44px 0 0; border-bottom: 0; }
.home-intro p { font-size: 18px; line-height: 1.7; color: var(--text); }
.start { margin: 24px 0 36px; gap: 12px; }
.start-btn { font-size: 17px; padding: 14px 22px; border-radius: 12px; }
@media (max-width: 640px) {
  .home-intro { padding: 30px 0 0; }
  .home-intro p { font-size: 17px; }
  .start { margin: 20px 0 30px; }
  .start-btn { font-size: 16.5px; padding: 13px 20px; }
}

/* 사실 확인: 글 끝 "확인 기록" 칸 · 정정 기록 페이지 (2026-09-27) */
.ck-box { margin: 48px 0 0; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ck-box h2 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.ck-box h2::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--navy); vertical-align: 1px; }
.ck-tr { font-size: 13px; font-weight: 400; color: var(--text-mute); }
.ck-box p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.ck-parts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 12px; padding: 0; list-style: none; font-size: 14.5px; color: var(--text-soft); }
.ck-parts b { color: var(--text); font-variant-numeric: tabular-nums; }
.ck-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px !important; }
.ck-min { padding: 12px 20px; }
.cr-how { padding-left: 22px; line-height: 1.75; }
.cr-how li { margin-bottom: 8px; }
.cr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cr-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.cr-item p { margin: 0 0 6px; line-height: 1.65; }
.cr-item p:last-child { margin-bottom: 0; }
.cr-meta { font-size: 13.5px; color: var(--text-mute); }
.cr-fix { display: grid; gap: 4px; font-size: 16px; }
.cr-before s { color: var(--text-mute); }
.cr-after { font-weight: 700; }
.cr-lb { display: inline-block; min-width: 4.5em; margin-right: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-mute); }
.cr-why, .cr-where { font-size: 14.5px; color: var(--text-soft); }
@media (max-width: 640px) { .ck-box { padding: 16px 16px 14px; } .cr-item { padding: 14px; } }

/* 모든 페이지 맨 아래 "틀린 곳 알려주기" (2026-09-27) */
.report-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 48px 0 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.report-bar p { margin: 0; font-size: 15px; color: var(--text-soft); }
.report-btn, .ck-report { display: inline-block; padding: 8px 14px; border-radius: 9px; background: var(--em-bg); color: var(--on-em) !important; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.report-btn:hover, .ck-report:hover { opacity: .9; }
.tip-about { margin: 0 0 16px; padding: 10px 14px; border-radius: 9px; background: var(--bg); border: 1px solid var(--navy); font-size: 15px; font-weight: 700; color: var(--text); }
.tip-about a { font-weight: 700; overflow-wrap: anywhere; }

/* 카더라 뉴스 칸 (```rumor): 확인된 사실과 다르게 보이도록 점선 테두리, 흐린 글자 (2026-09-27) */
.rumor { margin: 28px 0; padding: 14px 18px 12px; border: 1.5px dashed var(--text-mute); border-radius: 12px; background: transparent; }
.rumor-label { display: inline-block; margin: 0 0 8px !important; padding: 2px 10px; border-radius: 999px; background: var(--panel); color: var(--text-soft); font-size: 13px !important; font-weight: 800; letter-spacing: -0.01em; }
.rumor p { margin: 0 0 6px; font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.rumor .rumor-foot { margin: 8px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-mute); }
.rumor .rumor-foot a { color: var(--text-mute); }

/* 이슈 모아 보기 (해시태그, 2026-09-28): 작고 둥근 테두리 칩. 아이콘 없음. 지금 보는 이슈만 네이비 */
.issue-chip { display: inline-block; flex: 0 0 auto; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text-soft); font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.issue-chip:hover { border-color: var(--navy); color: var(--navy); }
.issue-chip[aria-current="page"] { border-color: var(--navy); color: var(--navy); font-weight: 750; }
.issue-chip.is-all { border-style: dashed; color: var(--text-mute); }
/* 본문 링크 규칙(.post a)이 칩을 덮지 않게 */
.post a.issue-chip { color: var(--text-soft); border: 1px solid var(--line); }
.post a.issue-chip:hover, .post a.issue-chip[aria-current="page"] { border-color: var(--navy); color: var(--navy); }
.post a.issue-chip.is-all { border-style: dashed; color: var(--text-mute); }
/* 글 머리: 날짜 줄 아래 */
.issue-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 12px 0 0; }
/* 목록 위 이슈 칩: 가로 스크롤 없이 여러 줄로 감싼다 (2026-09-28 운영자 "가로스크롤로 만들지 말아줘") */
.issue-bar { display: block; margin: 8px 0 14px; }
.issue-bar-h { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 800; color: var(--text); }
.issue-bar-row { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.issue-bar-row .issue-chip { padding: 6px 13px; font-size: 14.5px; }
.post .issue-bar { margin-top: 36px; }
/* 이슈 페이지 */
.issue-kicker { margin: -18px 0 10px !important; font-size: 14.5px; color: var(--text-mute); }
.issue-list-h { margin: 32px 0 6px; font-size: 18px; }
.post > ul.issue-hub { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.post > ul.issue-hub > li { margin: 0; padding: 0; }
.post .issue-hub a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.post .issue-hub a:hover { border-color: var(--navy); }
.ih-name { font-size: 18px; font-weight: 750; color: var(--navy); }
.ih-count { align-self: center; font-size: 14px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.ih-desc { grid-column: 1 / -1; font-size: 15px; line-height: 1.7; color: var(--text-soft); }
@media (max-width: 640px) {
  .post .issue-hub a { padding: 14px; }
}

/* 첫 화면 간격 (2026-09-28 운영자 "너무 촘촘해") */
.home-intro + .start, .start { margin-bottom: 44px; }
.ask-now { margin-bottom: 48px; padding: 24px 26px 20px; }
.ask-now h2 { margin-bottom: 14px; }
.issue-bar + .sec-tabs, .issue-bar ~ .sec-tabs { margin-top: 36px; }
@media (max-width: 640px) {
  .ask-now { margin-bottom: 36px; padding: 20px 18px 16px; }
  .issue-bar-row .issue-chip { font-size: 14px; padding: 5px 11px; }
}
.ask-list { gap: 2px 32px; }
.ask-list a { padding: 13px 0; }

/* 글 아래 이동 링크를 버튼으로 (2026-09-28 운영자 "버튼은 버튼처럼 보여야 함").
   글자 사이의 " · " 구분점은 글자 크기 0으로 숨기고, 링크마다 테두리 버튼 */
.post-nav { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0; }
.post-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15.5px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.post-nav a:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.post-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-nav a:first-child { background: var(--em-bg); border-color: var(--em-bg); color: var(--on-em); }
.post-nav a:first-child:hover { opacity: .92; color: var(--on-em); }
@media (max-width: 640px) { .post-nav a { flex: 1 1 100%; justify-content: center; } }

/* ---------- "예를 들면" 칸 · 본문 설명 그림 (2026-09-28 운영자 "예시와 이미지를 넣으면") ----------
   예를 들면: 쉬운 말 세 줄(네이비 왼쪽 선)·카더라(점선)와 다르게, 연한 바탕 + 톤다운 머리 띠. 아이콘 없음
   설명 그림(```diagram): 대표 그림의 흐름·계산식·날짜별 비교를 본문 크기로. 강조(em)는 한 곳만 */
.example { margin: 26px 0 32px; background: var(--panel); border-radius: 12px; overflow: hidden; }
.post .example-label { margin: 0; padding: 8px 20px; background: var(--surface-2); font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-soft); }
.example-body { padding: 16px 20px 4px; }
.post .example-body p { margin: 0 0 14px; font-size: 17px; line-height: 1.8; }
.post .example-body ul, .post .example-body ol { margin: 0 0 14px; padding-left: 22px; font-size: 17px; line-height: 1.8; }
.post .example-body li { margin: 2px 0; }
/* 칸 안 삽화 (tools/examples/make.mjs, 옅은 카드째 그린 SVG라 다크 모드에서도 그대로) */
.post .example-body .example-fig { margin: 2px 0 16px; }
.example-img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; border-radius: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .example-img { filter: brightness(.92); } }
:root[data-theme="dark"] .example-img { filter: brightness(.92); }
@media (max-width: 560px) { .example-label { padding: 7px 16px; } .example-body { padding: 14px 16px 2px; } }

.fig-diagram { background: var(--panel); border-radius: 12px; padding: 22px 24px 18px; }
.fig-diagram > .fig-title { margin-bottom: 16px; }
.fig-diagram .cv-node { padding: 14px 14px; word-break: keep-all; overflow-wrap: anywhere; }
.fig-diagram .cv-node-label { font-size: 15.5px; }
.fig-diagram .cv-node-sub { font-size: 13px; }
@media (min-width: 761px) {
  .fig-diagram .cv-node { padding: 13px 12px; }
  .fig-diagram .cv-arrow { flex-basis: 28px; }
  .fig-diagram .cv-arrow-line { width: 16px; }
}
@media (max-width: 760px) {
  .fig-diagram { padding: 18px 16px 14px; }
  .fig-diagram .cv-arrow { flex-basis: 30px; }
  .fig-diagram .cv-arrow-line { height: 16px; }
}

/* ---------- 사이트 안 검색 (2026-09-29) ---------- */
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text-soft); }
.search-link:hover, .search-link[aria-current] { color: var(--text); background: var(--panel); }
.search-form { display: flex; gap: 8px; margin: 8px 0 14px; }
.search-input { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 17px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.search-input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.search-btn { flex: 0 0 auto; font: inherit; font-weight: 700; padding: 0 18px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; cursor: pointer; }
.search-status { color: var(--text-soft); font-size: 14.5px; margin: 0 0 8px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { border-top: 1px solid var(--line); }
.search-results a { display: block; padding: 14px 2px; color: inherit; border-bottom: 0; }
.search-results a:hover .sr-title { text-decoration: underline; }
.sr-meta { display: block; font-size: 13px; color: var(--text-soft); }
.sr-title { display: block; font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.sr-snip { display: block; font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
.sr-snip mark { background: #ffe99a; color: inherit; padding: 0 1px; border-radius: 2px; }
.post .search-results li::marker { content: none; }
.post > ul.search-results > li { padding-left: 0; }

/* ---------- 아랍어: 오른쪽에서 왼쪽 (2026-09-29) ---------- */
:lang(ar) body, html[lang="ar"] body { font-family: 'Noto Sans Arabic', 'Pretendard Variable', Pretendard, system-ui, sans-serif; }
html[lang="ru"] body { font-family: 'Pretendard Variable', Pretendard, 'Noto Sans', system-ui, sans-serif; }
[dir="rtl"] .site-header .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .post ul, [dir="rtl"] .post ol { padding-left: 0; padding-right: 1.4em; }
[dir="rtl"] blockquote { border-left: 0; border-right: 4px solid var(--line); padding-left: 0; padding-right: 16px; }
[dir="rtl"] pre, [dir="rtl"] code, [dir="rtl"] .num, [dir="rtl"] table td { unicode-bidi: plaintext; }
[dir="rtl"] .lang-switch ul { right: auto; left: 0; }
[dir="rtl"] .easy { border-left: 0; border-right: 4px solid var(--navy); }
[dir="rtl"] .fix { border-left: 0; border-right: 3px solid var(--line); padding: 2px 18px 2px 0; }
[dir="rtl"] .post > ul.post-list, [dir="rtl"] .post > ul.news-list, [dir="rtl"] .post > ul.news-grid, [dir="rtl"] .post > ul.search-results,
[dir="rtl"] .post > ul.ar-cards, [dir="rtl"] .post > ul.ar-claims, [dir="rtl"] .post > ol.qz-levels { padding-right: 0; }
[dir="rtl"] .tl { border-left: 0; border-right: 2px solid var(--line); }
[dir="rtl"] .search-results a, [dir="rtl"] .sr-snip { text-align: right; }
[dir="rtl"] .easy { border-radius: 12px 4px 4px 12px; }
[dir="rtl"] .tl-item { padding: 0 22px 26px 0; }
[dir="rtl"] .tl-item::before { left: auto; right: -7px; }

/* ---------- 글 맨 아래 "다 읽었다면, 이 글도" 썸네일 카드 (2026-09-29) ---------- */
.related .rel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.related .rel-grid li { border-bottom: 0; }
.related .rel-grid a { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; color: inherit; }
.rel-media { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: flex-end; }
.rel-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rel-media span { padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--text-soft); }
.rel-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.related .rel-grid a:hover .rel-title { color: var(--accent); }
.related time { font-size: 12.5px; color: var(--text-mute); }
@media (min-width: 760px) { .related .rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rel-media img { filter: brightness(.85); } }
:root[data-theme="dark"] .rel-media img { filter: brightness(.85); }

/* ---------- 왼쪽 세로줄 장식 없애기 (2026-09-29 운영자: "왼쪽 라인 하나 들어간 디자인 다 빼줘, 사각형 테두리로") ---------- */
.easy, [dir="rtl"] .easy { border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); }
.post blockquote, [dir="rtl"] .post blockquote, [dir="rtl"] blockquote { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--bg); }
.fix, [dir="rtl"] .fix { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }

/* 공유하기 (2026-10-01) — 글 끝, 어르신도 누르기 쉽게 큰 버튼 */
.share-box { margin: 36px 0 8px; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); }
.share-head { margin: 0 0 12px; font-size: 18px; }
.share-main { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-btn { font: inherit; font-size: 16px; font-weight: 700; padding: 12px 18px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; min-height: 48px; }
.share-btn:hover { border-color: var(--navy); }
.share-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.share-primary[hidden] { display: none; }
.share-msg { font-size: 15px; font-weight: 700; color: var(--navy); }
.share-also { margin: 14px 0 0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.share-also span { color: var(--text-soft); }
.share-link { font-weight: 700; }
.share-hint { margin: 10px 0 0; font-size: 14px; color: var(--text-soft); }

/* 언어 바꾸기 (2026-10-01): 버튼은 어느 화면이든 "지구 + Language + 코드", 목록은 코드 + 그 언어 이름 + 영어 이름 */
.lang-switch .ls-cur { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--navy); }
.lang-switch .ls-word { font-weight: 600; }
.lang-switch li a { display: flex; align-items: baseline; gap: 8px; }
.lang-switch .ls-code { flex: 0 0 26px; font-size: 11.5px; font-weight: 800; color: var(--text-soft); letter-spacing: .04em; }
.lang-switch li a small { margin-inline-start: auto; font-size: 12px; color: var(--text-soft); }
@media (max-width: 640px) { .lang-switch summary .ls-word { display: none; } }

/* 언어 국기 (2026-10-01) */
.lang-switch .flag { flex: 0 0 auto; display: block; border-radius: 3px; }
.lang-switch summary { gap: 6px; }
.lang-switch .ls-cur { border: 0; padding: 0; color: var(--text); font-size: 13px; }
.lang-switch li a { align-items: center; }
.lang-switch .ls-code { flex: 0 0 auto; }
