/* =========================================================
   KNOW KOREA — 2026 에디토리얼 스타일
   방향: 종이 바탕 + 먹색 글자 + 색 두 개(파랑=정보, 빨강=논란)
   원칙: 본문 17px, 큰 이름, 높은 대비, 그라데이션·글래스·과한 둥근 모서리 없음
   ========================================================= */
:root {
  --paper: #f4f3ee;
  --card: #ffffff;
  --ink: #121417;
  --ink-2: #3b4049;
  --muted: #676d78;
  --line: #e2e0d8;
  --line-2: #cfccc2;
  --blue: #1d44c4;
  --blue-soft: #e8edfb;
  --red: #d9362b;
  --red-soft: #fdecea;
  --ok: #17803d;
  --ok-soft: #e6f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --surface-2: #faf9f5;
  --hover: #efede6;
  --chip: #ebe9e1;
  --on-ink: #ffffff;
  --scrim: rgba(18, 20, 23, .55);
  --map-empty: #efeee9;
  --map-halo: rgba(255, 255, 255, .85);
  --r: 6px;
  --wrap: 1240px;
  --sans: "IBM Plex Sans KR", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15171b; --card: #1d2026; --ink: #eceae3; --ink-2: #c4c6cc; --muted: #9a9fa9;
    --line: #2d3139; --line-2: #3d424c; --blue: #7c9bff; --blue-soft: #232c47; --red: #ff6b5e; --red-soft: #3a2220;
    --ok: #5fcf85; --ok-soft: #1c3325; --warn: #f0c060; --warn-soft: #3a3020;
    --surface-2: #22252c; --hover: #2a2e36; --chip: #2a2e36; --on-ink: #15171b; --scrim: rgba(0,0,0,.7);
    --map-empty: #2a2e36; --map-halo: rgba(21, 23, 27, .85);
  }
}
:root[data-theme="dark"] {
  --paper: #15171b; --card: #1d2026; --ink: #eceae3; --ink-2: #c4c6cc; --muted: #9a9fa9;
  --line: #2d3139; --line-2: #3d424c; --blue: #7c9bff; --blue-soft: #232c47; --red: #ff6b5e; --red-soft: #3a2220;
  --ok: #5fcf85; --ok-soft: #1c3325; --warn: #f0c060; --warn-soft: #3a3020;
  --surface-2: #22252c; --hover: #2a2e36; --chip: #2a2e36; --on-ink: #15171b; --scrim: rgba(0,0,0,.7);
  --map-empty: #2a2e36; --map-halo: rgba(21, 23, 27, .85);
}
* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; word-break: keep-all; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--muted); }
.num { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--on-ink); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
main { outline: none; }

/* ---------- 헤더 ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--ink); padding-top: env(safe-area-inset-top, 0px); }
.top-in { min-width: 0; display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.mark { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: 48px; height: 48px; background: var(--ink); font: 700 22px/1 var(--sans); letter-spacing: -0.1em; flex: none; }
.mark b { display: inline-block; }
.mark .k1 { transform: scaleX(-1); color: #CD2E3A; }   /* 태극 빨강(건곤감리 기준 상단) */
.mark .k2 { color: #0047A0; }                          /* 태극 파랑 */
.mark .tg { position: absolute; color: #fff; font: normal 9px/1 "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-style: normal; opacity: .95; }
.mark .tl { top: 4px; left: 4px; }
.mark .bl { bottom: 4px; left: 4px; }
.mark .tr { top: 4px; right: 4px; }
.mark .br { bottom: 4px; right: 4px; }
.wm { display: flex; flex-direction: column; line-height: 1.1; }
.wm strong { font-size: 19px; letter-spacing: 0.08em; font-weight: 700; white-space: nowrap; }
.wm em { font-style: normal; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; margin-top: 3px; }
.top-search-toggle { display: none; }
.gnb { display: flex; gap: 4px; }
.gnb a { white-space: nowrap; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--r); }
.gnb a:hover { background: var(--hover); }
.gnb a.on { box-shadow: inset 0 -3px 0 var(--ink); border-radius: 0; }
.qsearch { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.qsearch input { width: 200px; height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.qsearch input:focus { border-color: var(--ink); outline: none; }
.qsearch-submit { display: none; }
.auth { flex: none; }
.demo-bar { background: var(--ink); color: var(--on-ink); font-size: 14px; text-align: center; padding: 6px 16px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.dark { background: var(--ink); color: var(--on-ink); }
.btn.dark:hover { background: var(--ink); opacity: .88; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 15px; }
.btn.ghost { border-color: var(--line-2); }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 메인 배너 ---------- */
.banner { position: relative; margin: 24px 0 8px; border-radius: var(--r); overflow: hidden; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 24px; padding: 40px 48px 64px; opacity: 0; visibility: hidden; transition: opacity .4s; }
.slide.on { opacity: 1; visibility: visible; }
.slide.s-ink { background: #121417; color: #fff; }
.slide.s-red { background: #c8322a; color: #fff; }
.slide.s-blue { background: #1d44c4; color: #fff; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border: 1.5px solid currentColor; margin-bottom: 14px; }
.slide h2 { font-size: 40px; font-weight: 700; max-width: 18em; }
.slide p { font-size: 18px; margin: 12px 0 22px; opacity: .88; max-width: 34em; }
.slide .btn { border-color: #fff; background: #fff; color: #121417; }
.slide .big { font: 600 150px/0.9 var(--mono); text-align: right; letter-spacing: -0.06em; opacity: .95; }
.slide .big small { display: block; font: 600 16px/1.3 var(--sans); letter-spacing: 0; margin-top: 10px; opacity: .8; }
.bctl { position: absolute; left: 48px; bottom: 18px; display: flex; gap: 8px; align-items: center; }
.bctl button { width: 28px; height: 6px; border: 0; padding: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.bctl button.on { background: #fff; }
.bctl .pause { width: auto; height: auto; background: none; color: #fff; font-size: 13px; margin-left: 8px; text-decoration: underline; }

/* ---------- 탐색 레이아웃 ---------- */
.explore { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; margin: 28px 0 56px; }
.side { align-self: start; position: sticky; top: 88px; }
.fbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.fbox h3 { font-size: 15px; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.fbox h3:first-child { margin-top: 0; }
.fsearch { width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.fsearch:focus { border-color: var(--ink); outline: none; background: var(--card); }
.cat { list-style: none; margin: 0; padding: 0; }
.cat button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: var(--r); cursor: pointer; text-align: left; font-weight: 500; }
.cat button:hover { background: var(--hover); }
.cat button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.cat .c { font-family: var(--mono); font-size: 14px; opacity: .7; }
.chk { display: flex; align-items: center; gap: 10px; padding: 5px 2px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.chk .c { margin-left: auto; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.dot { width: 10px; height: 10px; flex: none; background: var(--pc, #999); }
.fsel { width: 100%; height: 42px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); padding: 0 8px; }
.reset { margin-top: 16px; width: 100%; }
.side-toggle { display: none; }

/* ---------- 지도 + 요약 ---------- */
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.maphead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.maphead h2 { font-size: 20px; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 5px 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.kmap { width: 100%; height: auto; display: block; max-height: 560px; }
.kmap path { stroke: var(--card); stroke-width: 1.2; cursor: pointer; transition: opacity .15s; }
.kmap path:hover { opacity: .8; }
.kmap path.sel { stroke: var(--ink); stroke-width: 2.5; }
.kmap path:focus { outline: none; stroke: var(--blue); stroke-width: 3; }
.kmap text { font: 600 11.5px var(--sans); fill: var(--ink); pointer-events: none; paint-order: stroke; stroke: var(--map-halo); stroke-width: 3px; }
.kmap .dim { opacity: .35; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; display: inline-block; background: var(--pc); }
.tip { position: fixed; pointer-events: none; z-index: 30; background: var(--ink); color: var(--on-ink); padding: 6px 10px; font-size: 14px; border-radius: 4px; display: none; }

.summary h2 { font-size: 26px; margin-bottom: 4px; }
.summary .note { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin: 12px 0 16px; }
.stats div { padding: 12px 8px 10px 0; }
.stats b { display: block; font: 600 30px/1.1 var(--mono); letter-spacing: -0.03em; }
.stats span { font-size: 14px; color: var(--muted); }
.pbar { display: flex; height: 14px; margin: 6px 0 6px; }
.pbar span { background: var(--pc); }
.headcard { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; margin-top: 10px; }
.headcard:hover { border-color: var(--ink); }

/* ---------- 결과 목록 ---------- */
.reshead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin: 28px 0 12px; }
.reshead h2 { font-size: 22px; }
.reshead .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 2px 6px 2px 12px; font-size: 14px; }
.fchip button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; color: var(--muted); }
.reshead .sort { margin-left: auto; }
.reshead select { height: 38px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--card); padding: 0 8px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.list li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 120px 110px; gap: 16px; align-items: center; padding: 14px 18px; text-decoration: none; }
.row:hover { background: var(--surface-2); }
.row:active { background: var(--hover); }
.row .nm { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.row .sub { font-size: 15px; color: var(--muted); }
.row .dist { font-weight: 500; }
.row .r { text-align: right; }
.row .row-main { min-width: 0; }
.row .row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .row-meta { display: none; }
.row .m-party { display: none; }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; background: var(--chip); color: var(--ink-2); font-weight: 700; font-size: 22px; border-bottom: 4px solid var(--pc, #999); flex: none; }
.avatar.lg { width: 120px; height: 150px; font-size: 48px; border-bottom-width: 6px; }
.party { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.party::before { content: ""; width: 10px; height: 10px; background: var(--pc); flex: none; }
.flag { display: inline-block; background: #c8322a; color: #fff; font-size: 13px; font-weight: 700; padding: 2px 7px; border-radius: 3px; margin-left: 6px; vertical-align: 3px; letter-spacing: 0.02em; }
.level { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.more { display: block; width: 100%; margin-top: 12px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- 지금 논란 ---------- */
.hotstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.hot { display: block; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--r); padding: 16px 18px; text-decoration: none; }
.hot:hover { border-color: var(--red); }
.hot h3 { font-size: 19px; margin: 4px 0 6px; }
.hot .meta { font-size: 14px; color: var(--muted); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 14px; }
.sechead h2 { font-size: 24px; }

/* ---------- 인물 상세 ---------- */
.crumbs { font-size: 15px; color: var(--muted); margin: 24px 0 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.profile { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 28px; align-items: end; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.profile h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.profile .role { font-size: 20px; font-weight: 600; margin: 4px 0 10px; }
.profile .kv { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; color: var(--ink-2); }
.profile .kv b { color: var(--ink); }
.pstats { display: grid; grid-template-columns: repeat(3, auto); gap: 0 28px; text-align: right; }
.pstats b { display: block; font: 600 34px/1 var(--mono); letter-spacing: -0.03em; }
.pstats span { font-size: 14px; color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin: 28px 0 56px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; }
.panel > h2 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel > h2 .cnt { font: 600 16px var(--mono); color: var(--muted); }
.src { font-size: 13px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 2px 7px; border-radius: 3px; margin-left: auto; letter-spacing: 0; }
.kvt { width: 100%; border-collapse: collapse; font-size: 16px; }
.kvt th { text-align: left; font-weight: 500; color: var(--muted); padding: 9px 12px 9px 0; width: 104px; vertical-align: top; }
.kvt td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.kvt tr:last-child td { border-bottom: 0; }
.kvt ul { margin: 0; padding-left: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .d { font: 500 14px var(--mono); color: var(--muted); }
.nec { font-size: 15px; }
.nec li { margin: 4px 0; }

.arts { list-style: none; margin: 0 0 16px; padding: 0; }
.arts li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.arts li:first-child { padding-top: 0; }
.arts a.t { font-size: 18px; font-weight: 600; text-decoration: none; }
.arts a.t:hover { text-decoration: underline; }
.arts .meta { grid-column: 1; font-size: 14px; color: var(--muted); }
.arts .st { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.wait { background: var(--warn-soft); color: var(--warn); }
.addart { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; }
.addart label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.addart .fl { display: flex; gap: 8px; }
.addart input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 0 12px; background: var(--card); }
.addart input:focus { border-color: var(--ink); outline: none; }
.addart .hint { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.preview { margin-top: 12px; border: 1px solid var(--line-2); background: var(--card); border-radius: var(--r); padding: 12px 14px; }
.preview .dom { font: 500 13px var(--mono); color: var(--muted); }

.cv-on { border: 2px solid var(--red); }
.cv-banner { background: var(--red-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.cv-banner b { color: var(--red); }
.cv-off { text-align: center; padding: 18px 8px 6px; }
.cv-off p { margin: 0 0 14px; color: var(--ink-2); }
.cform textarea { width: 100%; min-height: 96px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 12px; resize: vertical; background: var(--card); }
.cform textarea:focus { border-color: var(--ink); outline: none; }
.cform .fl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.gate { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ctabs { display: flex; gap: 14px; margin: 18px 0 6px; font-size: 15px; }
.ctabs button { border: 0; background: none; padding: 0 0 4px; cursor: pointer; font-weight: 600; color: var(--muted); }
.ctabs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.cmts { list-style: none; margin: 0; padding: 0; }
.cmts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cmts .who { font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cmts .who b { font-weight: 700; }
.cmts .ip { font: 500 13px var(--mono); color: var(--muted); }
.cmts .pv { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.pv.kakao { background: #fee500; color: #191600; }
.pv.naver { background: #03c75a; color: #fff; }
.cmts p { margin: 6px 0 8px; font-size: 17px; }
.cmts .acts { display: flex; gap: 8px; font-size: 14px; }
.cmts .acts button { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.cmts .acts button:hover { border-color: var(--ink); }
.cmts .acts .rep { margin-left: auto; border: 0; color: var(--muted); text-decoration: underline; }
.rules { font-size: 14px; color: var(--muted); margin: 14px 0 0; padding-left: 18px; }

/* ---------- 판정(팩트체크 공통) ---------- */
.vchip { display: inline-block; flex: none; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 3px; white-space: nowrap; background: var(--chip); color: var(--ink-2); }
.vchip.v-true, .vchip.v-same { background: var(--ok-soft); color: var(--ok); }
.vchip.v-mostly, .vchip.v-changed { background: var(--blue-soft); color: var(--blue); }
.vchip.v-context { background: var(--warn-soft); color: var(--warn); }
.vchip.v-false, .vchip.v-opposite { background: var(--red-soft); color: var(--red); }
.vrows { display: grid; gap: 6px; margin-top: 12px; }
.vrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px auto; gap: 10px; align-items: center; font-size: 15px; }
.vbar { height: 10px; background: var(--chip); }
.vbar span { display: block; height: 100%; background: var(--muted); }
.vbar .v-true, .vbar .v-same { background: var(--ok); }
.vbar .v-mostly, .vbar .v-changed { background: var(--blue); }
.vbar .v-context { background: var(--warn); }
.vbar .v-false, .vbar .v-opposite { background: var(--red); }
.vn { text-align: right; color: var(--ink-2); }
.vbtn { border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 1px 10px; font-size: 13px; cursor: pointer; }
.vbtn:hover:not([disabled]) { border-color: var(--ink); }
.vbtn[disabled] { opacity: .4; cursor: default; }
.kr { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--blue); color: var(--blue); white-space: nowrap; }
.lead { color: var(--ink-2); font-size: 15px; margin: -4px 0 14px; }

/* 발언 대조 */
.contrast { border-top: 1px solid var(--line); padding: 18px 0 20px; }
.contrast:first-of-type { border-top: 0; padding-top: 4px; }
.chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.chead h3 { font-size: 19px; }
.qpair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qbox { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.qtag { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.qd { font-size: 14px; color: var(--muted); }
.qbox blockquote, .stmts blockquote { margin: 4px 0 6px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.qbox blockquote::before, .stmts blockquote::before { content: "“"; }
.qbox blockquote::after, .stmts blockquote::after { content: "”"; }
.qv { font-size: 14px; color: var(--muted); margin-top: auto; }
.qv a { color: var(--blue); }
.cnote { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.addbox { margin-top: 16px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 10px 14px; background: var(--surface-2); }
.addbox summary, .claims summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.miniform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.miniform.col { flex-direction: column; }
.miniform.col > * { flex: none; width: 100%; }
.miniform.col .btn { width: auto; }
.miniform label { font-size: 14px; font-weight: 600; margin-bottom: -4px; }
.miniform input, .miniform select, .miniform textarea { min-height: 40px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 6px 10px; background: var(--card); flex: 1 1 220px; min-width: 0; }
.miniform textarea { resize: vertical; }
.miniform .btn { align-self: flex-start; }

/* 발언 기록 */
.stmts { list-style: none; margin: 0; padding: 0; }
.stmts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.stmts li:first-child { padding-top: 0; }
.stmts blockquote { flex-basis: 100%; }
.topic { font-size: 13px; font-weight: 700; background: var(--chip); padding: 1px 7px; border-radius: 3px; }

/* 기사 속 주장 */
.arts li > .claims { grid-column: 1 / -1; margin-top: 8px; }
.claims summary { font-size: 15px; }
.claim { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); }
.ctop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ctext { margin: 0; font-weight: 600; }
.ev { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.ev a { color: var(--blue); }

/* 댓글 확장 */
.csrc { width: 100%; height: 40px; margin-top: 8px; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 0 12px; background: var(--card); }
.csource { font-size: 14px; margin: -2px 0 8px; }
.csource a { color: var(--blue); }
.ctabs { flex-wrap: wrap; align-items: center; }
.cfl { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.cfl:first-of-type { margin-left: auto; }
.cfl input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }

/* 팩트체크 허브 */
.checkhead { margin: 32px 0 8px; }
.checkhead h1 { font-size: 40px; }
.checkhead p { margin: 6px 0 0; color: var(--ink-2); max-width: 44em; }
.ctabs.big { font-size: 17px; margin: 18px 0 14px; gap: 22px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px; text-decoration: none; }
.crow:hover { background: var(--surface-2); }
.ctopic { font-size: 18px; }
.cdates { font-size: 14px; color: var(--muted); white-space: nowrap; }
.cmeta { display: flex; align-items: center; gap: 10px; }
.sso.pass { background: var(--ink); color: var(--on-ink); }

/* ---------- 안내 페이지 ---------- */
.doc { max-width: 860px; margin: 32px auto 64px; }
.doc h1 { font-size: 40px; margin-bottom: 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 16px; border-top: 2px solid var(--ink); }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 16px; border: 1px solid var(--line); border-radius: var(--r); }
.table-scroll table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 0; background: var(--card); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--chip); font-weight: 600; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 7px; border-radius: 3px; }
.tag.y { background: var(--ok-soft); color: var(--ok); }
.tag.c { background: var(--warn-soft); color: var(--warn); }
.tag.n { background: var(--red-soft); color: var(--red); }

/* ---------- 로그인·토스트 ---------- */
.userchip { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.modal { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(420px, 100%); background: var(--card); border-radius: var(--r); padding: 28px; }
.modal-box h2 { font-size: 26px; margin-bottom: 6px; }
.modal-box .x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 28px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.sso { display: block; width: 100%; height: 52px; border: 0; border-radius: var(--r); font-weight: 700; font-size: 17px; cursor: pointer; margin-top: 10px; }
.sso.kakao { background: #fee500; color: #191600; }
.sso.naver { background: #03c75a; color: #fff; }
.fine { font-size: 14px; color: var(--muted); padding-left: 18px; margin: 16px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--r); font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; }

.foot { border-top: 2px solid var(--ink); padding: 28px 0 36px; font-size: 15px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; }

/* ---------- 광고 (항상 '광고' 표기) ---------- */
.ad { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); margin: 0 0 16px; overflow: hidden; }
.ad-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); background: var(--chip); padding: 3px 10px; }
.ad-in { display: block; padding: 14px 16px; text-decoration: none; }
.ad-in b { display: block; font-size: 17px; }
.ad-in span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.ad-in .ad-by { font-size: 13px; color: var(--muted); margin-top: 8px; }
.ad-detail { margin-top: 0; }
.ad-footer { margin: 24px 0 0; }

/* ---------- 갤러리 ---------- */
.tagline { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bgrid.sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--card); }
.bcard:hover { border-color: var(--ink); }
.bcard b { font-size: 17px; }
.bcard.na { border-left: 6px solid var(--blue); }
.bcard.on { border-color: var(--ink); background: var(--surface-2); }
.pchip { display: inline-flex; gap: 6px; align-items: baseline; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pchip:hover { border-color: var(--ink); }
.pchip .muted { font-weight: 400; font-size: 14px; }
.prow { display: grid; grid-template-columns: 78px minmax(0, 1fr) 150px 60px 64px; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; }
.prow:hover { background: var(--surface-2); }
.prow .head { font-size: 14px; font-weight: 600; color: var(--muted); }
.prow .tt { font-size: 17px; font-weight: 600; }
.prow .who { font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.prow .num { text-align: right; font-size: 14px; }
.ptitle { font-size: 26px; margin-bottom: 6px; }
.pmeta { font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.ptext p { margin: 0 0 10px; font-size: 17px; }
.prec { display: flex; gap: 8px; justify-content: center; margin: 20px 0 4px; }

/* ---------- 국적 표기 ---------- */
.nat { display: inline-block; font: 600 12px/1.6 var(--mono); letter-spacing: 0.04em; padding: 0 6px; border: 1px solid var(--blue); color: var(--blue); border-radius: 3px; }
.nat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }

/* ---------- 발언 기록 ---------- */
.stmts { list-style: none; margin: 0; padding: 0; }
.stmts li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stmts li:last-child { border-bottom: 0; }
.stmts .d { font-size: 14px; color: var(--muted); }
.stmts b { font-size: 15px; color: var(--ink-2); }
.stmts p { margin: 4px 0 6px; font-size: 17px; }
.src-link { font-size: 14px; font-weight: 600; }
.srcs { list-style: none; margin: 0 0 12px; padding: 0; font-size: 15px; }
.srcs li { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.srcs li:last-child { border-bottom: 0; }
.gall-link { display: block; padding: 6px 10px; font-weight: 600; text-decoration: none; color: var(--blue); }
.gall-link:hover { text-decoration: underline; }

.stats.s5 { grid-template-columns: repeat(5, 1fr); }
.stats.s5 b { font-size: 24px; }
.stats.s5 span { font-size: 13px; }

/* 데모 데이터 표시 — 실데이터와 구분 */
.demo-chip { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 3px; font-size: 12px; font-weight: 700; color: var(--muted); vertical-align: 3px; }

/* 모바일 터치 피드백 */
button:active, a.btn:active, a.row:active, a.hot:active, a.bcard:active { opacity: .82; }

/* ---------- 반응형 레이아웃 ---------- */
@media (max-width: 1280px) {
  .qsearch input { width: 170px; }
}

@media (max-width: 1080px) {
  .top-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--line-2);
    border-radius: var(--r);
    background: var(--card);
    cursor: pointer;
    margin-left: auto;
  }
  .top-search-toggle:hover, .top-search-toggle[aria-expanded="true"] {
    border-color: var(--ink);
    background: var(--hover);
  }
  .top-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    padding: 10px 16px 0;
    gap: 8px 12px;
  }
  .logo { order: 1; }
  .top-search-toggle { order: 2; }
  .auth { order: 3; }
  .qsearch {
    order: 4;
    width: 100%;
    margin: 4px 0 2px 0;
    display: none;
  }
  .top.search-open .qsearch {
    display: flex;
    gap: 8px;
  }
  .qsearch input {
    flex: 1;
    width: auto;
    height: 44px;
    font-size: 16px;
  }
  .qsearch-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    font-weight: 600;
    font-size: 15px;
    border: 1.5px solid var(--ink);
    border-radius: var(--r);
    background: var(--ink);
    color: var(--on-ink);
    cursor: pointer;
    flex: none;
  }
  .gnb {
    order: 5;
    width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 4px;
    padding: 6px 0 8px;
    margin: 4px 0 0;
    border-top: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gnb::-webkit-scrollbar {
    display: none;
  }
  .gnb a {
    padding: 8px 12px;
    font-size: 15px;
    border-radius: var(--r);
    flex: none;
  }
  .gnb a.on {
    box-shadow: inset 0 -3px 0 var(--ink);
    border-radius: 0;
  }

  .mapgrid { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .stats.s5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  html { font-size: 16px; }
  input, select, textarea { font-size: 16px !important; }
  .wrap { padding: 0 16px; }
  .top-in { padding: 8px 14px 0; gap: 6px 10px; }
  .mark { width: 40px; height: 40px; font-size: 18px; }
  .mark .tg { font-size: 8px; }
  .wm em { display: none; }
  .wm strong { font-size: 16px; letter-spacing: 0.05em; }
  .userchip .nick, .userchip .pv { display: none; }
  .userchip .btn { display: none; }
  .demo-bar { font-size: 12px; padding: 5px 12px; line-height: 1.4; }

  .slide { grid-template-columns: 1fr; padding: 24px 18px 52px; align-items: start; }
  .slide h2 { font-size: clamp(21px, 5.5vw, 28px); line-height: 1.25; }
  .slide p { font-size: 15px; margin: 8px 0 16px; line-height: 1.5; }
  .slide .big { display: none; }
  .bctl { left: 18px; bottom: 14px; gap: 6px; }
  .bctl button { position: relative; width: 26px; height: 5px; border-radius: 3px; }
  .bctl button::after { content: ""; position: absolute; inset: -10px -4px; }
  .bctl .pause { padding: 4px 6px; font-size: 12.5px; }

  .explore { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0 40px; }
  .side { position: static; }
  .side-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--r);
    border: 1.5px solid var(--ink);
  }
  .side .fbox { display: none; margin-top: 10px; padding: 16px; }
  .side.open .fbox { display: block; animation: fboxFade .2s ease; }
  .fsearch { height: 46px; font-size: 16px; }
  .fsel { height: 46px; font-size: 16px; }
  .cat button { min-height: 42px; padding: 8px 12px; font-size: 15px; }
  .chk { padding: 8px 4px; font-size: 15px; }
  .chk input { width: 20px; height: 20px; }

  .mapgrid { grid-template-columns: minmax(0, 1fr); padding: 16px 14px; gap: 16px; }
  .maphead { flex-wrap: wrap; gap: 8px; }
  .maphead h2 { font-size: 18px; }
  .seg button { padding: 6px 10px; font-size: 13.5px; }
  .kmap { max-height: 420px; }
  .summary h2 { font-size: 22px; }
  .summary .note { font-size: 13px; margin: 0 0 8px; }
  .stats.s5 { grid-template-columns: repeat(3, 1fr); gap: 6px 0; }
  .stats.s5 div { padding: 8px 4px; }
  .stats.s5 b { font-size: 22px; }
  .stats.s5 span { font-size: 12.5px; }

  .reshead { margin: 20px 0 10px; gap: 10px; align-items: center; }
  .reshead h2 { font-size: 20px; }
  .reshead .sort { margin-left: auto; font-size: 14px; }
  .reshead select { height: 36px; font-size: 14px; }
  .reshead .chips { width: 100%; }

  .row { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding: 12px 14px; align-items: center; }
  .row .avatar { width: 46px; height: 46px; font-size: 18px; }
  .row .row-main { min-width: 0; }
  .row .row-top { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
  .row .row-top .nm { font-size: 18px; font-weight: 700; }
  .row .row-top .m-party { display: inline-flex; margin-left: auto; }
  .row .row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
  .row .row-meta .dist { font-weight: 600; color: var(--ink-2); }
  .row .row-meta .sep { color: var(--line-2); }
  .row .d-only, .row .dist-col, .row .hide-m, .row .hide-t { display: none !important; }

  .profile { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 18px; }
  .avatar.lg { width: 76px; height: 96px; font-size: 30px; border-bottom-width: 4px; }
  .profile h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.2; margin: 2px 0 4px; }
  .profile .role { font-size: 16px; margin: 2px 0 8px; }
  .profile .kv { gap: 4px 12px; font-size: 14px; }
  .pstats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); text-align: left; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; gap: 6px; }
  .pstats b { font-size: 22px; }
  .pstats span { font-size: 12.5px; }

  .detail { grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 20px 0 40px; }
  .panel { padding: 16px 14px; margin-bottom: 16px; }
  .panel > h2 { font-size: 18px; margin-bottom: 12px; }
  .crumbs { font-size: 14px; margin: 16px 0 10px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .crumbs::-webkit-scrollbar { display: none; }

  .doc h1 { font-size: 28px; }
  .gate { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; }
  .gate button { width: 100%; }
  .qpair { grid-template-columns: 1fr; gap: 10px; }
  .checkhead h1 { font-size: 28px; }
  .cfl:first-of-type { margin-left: 0; }
  .crow { grid-template-columns: minmax(0, 1fr); gap: 6px; }

  .foot { padding: 24px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
  .foot-in { gap: 14px; }
  .foot-links { flex-wrap: wrap; gap: 12px; }

  .modal-box { padding: 24px 18px; max-height: calc(100vh - 32px); }
  .modal-box h2 { font-size: 22px; }
}

@media (max-width: 600px) {
  .vrow { grid-template-columns: 1fr auto auto; grid-template-areas: "vl vn vb" "bar bar bar"; row-gap: 6px; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .vrow:last-child { border-bottom: none; }
  .vrow .vl { grid-area: vl; font-size: 14px; font-weight: 600; line-height: 1.35; }
  .vrow .vn { grid-area: vn; font-size: 14px; font-weight: 600; }
  .vrow .vbtn { grid-area: vb; padding: 2px 10px; min-height: 30px; font-size: 13px; }
  .vrow .vbar { grid-area: bar; height: 8px; border-radius: 4px; overflow: hidden; }

  .kvt { font-size: 14.5px; }
  .kvt th { width: 76px; padding: 8px 6px 8px 0; font-size: 13.5px; }
  .kvt td { padding: 8px 0; word-break: break-all; overflow-wrap: anywhere; }

  .bgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bgrid.sm { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .bcard { padding: 10px 12px; }
  .bcard b { font-size: 15px; }

  .prow { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 14px; gap: 4px 10px; }
  .prow .head { grid-column: 1; font-size: 12.5px; }
  .prow .tt { grid-column: 1; font-size: 16px; }
  .prow .who { grid-column: 1; font-size: 13.5px; }
  .prow .num { grid-row: 1 / span 3; grid-column: 2; align-self: center; font-size: 13.5px; }
  .prow .hide-m { display: none; }
  .stmts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .nat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .stats.s5 { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .avatar.lg { width: 64px; height: 80px; font-size: 26px; }
  .profile h1 { font-size: 25px; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 12px; }
  .top-in { padding: 6px 10px 0; gap: 4px 8px; }
  .mark { width: 36px; height: 36px; font-size: 16px; }
  .wm strong { font-size: 14.5px; }
  .top-search-toggle { padding: 0 8px; font-size: 13px; }
  .btn.sm { padding: 0 8px; font-size: 13px; }
  .row { padding: 10px 10px; gap: 8px; }
  .row .avatar { width: 40px; height: 40px; font-size: 16px; }
}

@keyframes fboxFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
