/* 팔레트는 검증된 기본값을 그대로 쓴다. 다크는 자동 반전이 아니라
   같은 여덟 색을 다크 표면용으로 다시 고른 값이다. */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --plane: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);

  --series-1: #2a78d6;  /* blue */
  --series-2: #eb6834;  /* orange */
  --series-3: #1baf7a;  /* aqua */

  --diverge-pos: #2a78d6;
  --diverge-neg: #e34948;
  --diverge-mid: #f0efec;

  --good: #0ca30c;
  --warning: #fab219;
  --critical: #d03b3b;
  --delta-up: #006300;

  --radius: 10px;
  --gap: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-1: #1a1a19;
    --plane: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --grid: #2c2c2a;
    --axis: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --diverge-pos: #3987e5;
    --diverge-neg: #e66767;
    --diverge-mid: #383835;
    --delta-up: #0ca30c;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-1: #1a1a19;
  --plane: #0d0d0d;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --grid: #2c2c2a;
  --axis: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --diverge-pos: #3987e5;
  --diverge-neg: #e66767;
  --diverge-mid: #383835;
  --delta-up: #0ca30c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--plane);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

header.page {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

header.page h1 {
  font-size: 22px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 20px;
  max-width: 60ch;
}

.meta-line {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 3px 9px;
}
.theme-toggle:hover { background: var(--surface-1); }

/* 신선도 점. 색만으로 상태를 전하지 않도록 title과 텍스트를 함께 둔다. */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot.ok { background: var(--good); }
.dot.stale { background: var(--warning); }
.dot.missing { background: var(--critical); }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-bottom: 28px;
}

.tile {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
}

.tile .label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.tile .value {
  font-size: 28px;
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tile .sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tile .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pos { color: var(--delta-up); }
.neg { color: var(--critical); }

section.panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  margin-bottom: var(--gap);
}

section.panel > h2 {
  font-size: 16px;
  font-weight: 620;
  margin: 0 0 2px;
}

section.panel > .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  max-width: 72ch;
}

.chart { width: 100%; height: 200px; }
.chart.tall { height: 420px; }

.footnote {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.footnote ul { margin: 6px 0 0; padding-left: 18px; }
.footnote li { margin-bottom: 3px; }

.loading, .error {
  color: var(--text-muted);
  font-size: 14px;
  padding: 20px 0;
}
.error { color: var(--critical); }

@media (max-width: 640px) {
  .wrap { padding: 18px 14px 48px; }
  .tile .value { font-size: 24px; }
  .meta-line { margin-left: 0; width: 100%; }
}

/* 패널 헤더에 탭을 나란히 둔다 */
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tabs { display: flex; gap: 4px; flex: none; }

.tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 4px 12px;
}
.tab:hover { background: var(--plane); }
.tab[aria-selected="true"] {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--surface-1);
}

/* 재생 슬라이더. 사이클이 어떻게 도는지 눈으로 보는 장치다. */
.playbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
}

.play-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 4px 12px;
  flex: none;
  min-width: 78px;
}
.play-btn:hover { background: var(--plane); }

.playbar input[type="range"] {
  flex: 1;
  accent-color: var(--series-1);
  min-width: 80px;
}

.playdate {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
  min-width: 92px;
  text-align: right;
}

/* 표 뷰. 색 구분에 기대지 않고도 같은 데이터를 읽을 수 있어야 한다. */
.table-wrap { margin-top: 10px; }
.table-wrap summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.table-scroll { overflow-x: auto; margin-top: 8px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.data-table th, .data-table td {
  text-align: right;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}
.data-table tbody tr:hover { background: var(--plane); }

.q-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.q-badge .swatch {
  width: 8px; height: 8px; border-radius: 2px; flex: none;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.legend-row .item { display: flex; align-items: center; gap: 6px; }
.legend-row .swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }

.spark-cell { padding: 2px 10px !important; }
.num { font-variant-numeric: tabular-nums; }

/* 활발도의 강약. 방향성 색을 쓰지 않고 명도로만 구분한다. */
.data-table td.strong { color: var(--text-primary); font-weight: 620; }
.data-table td.faint { color: var(--text-muted); }

/* 축적 진행 표시. 데이터가 없는 게 결함이 아니라 설계라는 걸 보여준다. */
.accrual { padding: 6px 0 2px; }
.accrual-head { display: flex; align-items: baseline; gap: 10px; }
.accrual-count {
  font-size: 30px;
  font-weight: 640;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.accrual-count .of { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.accrual-label { font-size: 13.5px; color: var(--text-secondary); }
.accrual-bar {
  height: 6px;
  background: var(--grid);
  border-radius: 3px;
  overflow: hidden;
  margin: 12px 0 10px;
}
.accrual-bar span {
  display: block;
  height: 100%;
  background: var(--series-1);
  border-radius: 3px;
}
.accrual-note { font-size: 12.5px; color: var(--text-muted); margin: 0; max-width: 62ch; }

@media (max-width: 640px) {
  /* RRG는 좁아지면 여덟 개 라벨이 가로로 뭉친다. 세로를 늘려 정사각형에
     가깝게 만들면 점이 흩어져 라벨이 서로 비껴간다. */
  .chart.tall { height: 380px; }

  .panel-head { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: flex-start; }

  .playbar { flex-wrap: wrap; }
  .playbar input[type="range"] { order: 3; flex-basis: 100%; }
  .playdate { min-width: 0; margin-left: auto; }

  section.panel { padding: 14px 14px 12px; }
  .legend-row { gap: 10px; font-size: 12px; }
}

/* ── 자금 전장 지도 ─────────────────────────────────────── */

.hero { padding-bottom: 16px; }

.hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.stance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  flex: none;
}
.stance-legend .item { display: flex; align-items: center; gap: 5px; }
.stance-legend .ring {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid;
  flex: none;
}

.map-wrap {
  position: relative;
  margin-top: 6px;
}

#flow-map {
  width: 100%;
  height: 460px;
  display: block;
  border-radius: 10px;
  /* 저수지 아래가 바다처럼 가라앉아 보이게 아주 옅은 수직 그라디언트를 깐다 */
  background: linear-gradient(180deg, transparent 0%, var(--plane) 22%, var(--plane) 100%);
}

.map-tip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  max-width: 250px;
  z-index: 4;
  transform: translate(-50%, -100%);
}
.map-tip .tip-name { font-weight: 640; font-size: 13.5px; }
.map-tip .tip-sym { color: var(--text-muted); font-weight: 500; }
.map-tip .tip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.map-tip .tip-row b { color: var(--text-primary); font-weight: 600; }
.map-tip .tip-note {
  color: var(--text-muted);
  font-size: 11.5px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* 진영 카드. 캔버스를 못 읽는 경우에도 같은 정보를 얻게 하는 안전망이다. */
.troops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.troop {
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--plane);
}
.troop .t-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.troop .t-name { font-weight: 620; font-size: 13.5px; }
.troop .t-stance { font-size: 11.5px; color: var(--text-secondary); }
.troop .t-flow {
  font-size: 15px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.troop .t-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.troop.hot .t-meta { color: var(--text-secondary); font-weight: 560; }

/* 상세 영역 */
.detail-zone { margin-top: 8px; }
.detail-zone > summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 560;
  color: var(--text-secondary);
  padding: 12px 2px;
  user-select: none;
}
.detail-zone > summary::-webkit-details-marker { display: none; }
.detail-zone > summary:hover { color: var(--text-primary); }
.detail-zone > summary .chev { display: inline-block; transition: transform 0.15s; }
.detail-zone[open] > summary .chev { transform: rotate(90deg); }

@media (max-width: 640px) {
  #flow-map { height: 400px; }
  .troops { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .stance-legend { font-size: 11.5px; gap: 8px; }
}

/* 범례와 조작 버튼을 지도 바로 위 한 줄로 묶는다 */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 2px;
}

.ghost-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  padding: 4px 11px;
}
.ghost-btn:hover { background: var(--plane); color: var(--text-primary); }

.map-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.troop { cursor: pointer; transition: border-color 0.12s, transform 0.12s; }
.troop:hover { transform: translateY(-1px); }
.troop:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }

/* 지도에서 골라 온 행을 잠시 밝힌다 */
@keyframes pick-glow {
  0%   { background: color-mix(in srgb, var(--series-1) 26%, transparent); }
  100% { background: transparent; }
}
.data-table tr.picked { animation: pick-glow 2.6s ease-out; }

/* ── 데이터 출처 ─────────────────────────────────────────── */

.sources {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.sources h2 { font-size: 15px; font-weight: 620; margin: 0 0 4px; }
.sources .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 10px;
  max-width: 70ch;
}

.source-lines {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.source-lines li { margin: 0; }
.source-lines b { color: var(--text-primary); font-weight: 600; margin-right: 2px; }
.s-late { color: var(--warning); font-size: 12px; }

.source-asof {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

@media (max-width: 640px) {
  .map-toolbar { gap: 8px; }
}

/* ── 시장 상세 화면 ─────────────────────────────────────── */

.detail-head { padding-bottom: 14px; }

.back-btn { margin-bottom: 12px; }

.dh-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.dh-title h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.dh-sym { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.dh-stance {
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid;
  border-radius: 20px;
  padding: 2px 10px;
}
.dh-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 10px 0 0;
  max-width: 72ch;
}

.tile-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 3px;
}

.detail-chart { margin-top: 14px; }
.detail-chart:first-of-type { margin-top: 6px; }
.dc-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}
.dc-note { color: var(--text-muted); font-weight: 400; }

#view-detail .tiles { margin-bottom: 16px; }
#view-detail .panel .tiles { margin: 12px 0 0; }

/* 상세 화면의 타일은 값이 짧아 조금 작아도 된다 */
#view-detail .tile .value { font-size: 24px; }
#view-detail .tile .value.strong { color: var(--text-primary); }

@media (max-width: 640px) {
  .dh-title h2 { font-size: 19px; }
  #view-detail .tile .value { font-size: 21px; }
}

.map-tip .tip-more {
  color: var(--series-1);
  font-size: 11.5px;
  margin-top: 5px;
}

/* 글로벌 지표 탭 머리. 패널 배경 없이 얇게 둬야 아래 내용과 한 덩어리로 읽힌다. */
.global-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.global-header .gh-text { max-width: 62ch; }
.global-header h2 {
  font-size: 16px;
  font-weight: 620;
  margin: 10px 0 2px;
}
.global-header p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.global-header .tabs { flex: none; }

@media (max-width: 640px) {
  .global-header { align-items: stretch; }
  .global-header .tabs { flex-wrap: wrap; }
}

/* 표 안에 눕히는 작은 막대. 숫자 옆에서 격차를 눈으로 잡아 준다. */
.minibar {
  display: inline-block;
  width: 52px;
  height: 5px;
  background: var(--grid);
  border-radius: 3px;
  overflow: hidden;
  margin-right: 7px;
  vertical-align: middle;
}
.minibar > span {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.base-tag {
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 6px;
  margin-left: 2px;
}

.troop .t-basis {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 3px;
}

/* ── 문서 페이지 (소개·약관) ─────────────────────────────── */

.doc { max-width: 74ch; line-height: 1.75; }
.doc h2 {
  font-size: 17px;
  font-weight: 640;
  margin: 26px 0 8px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 {
  font-size: 14.5px;
  font-weight: 620;
  margin: 20px 0 6px;
}
.doc p { font-size: 14px; color: var(--text-secondary); margin: 0 0 10px; }
.doc ul { font-size: 14px; color: var(--text-secondary); padding-left: 20px; margin: 0 0 10px; }
.doc li { margin-bottom: 5px; }
.doc b { color: var(--text-primary); }
.doc a { color: var(--series-1); }
.doc-date { font-size: 12.5px; color: var(--text-muted) !important; }
.doc-foot {
  margin-top: 28px !important;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

/* 투자 유의사항은 눈에 띄어야 한다 */
.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--warning);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--plane);
}
.notice p:last-child { margin-bottom: 0; }

/* ── 광고 자리와 푸터 ───────────────────────────────────── */

.ad-slot { margin: 20px 0; min-height: 0; }

/* 광고가 없을 때 들어가는 자체 안내. 광고처럼 보이지 않게 담백하게 둔다. */
.house-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  text-decoration: none;
  transition: border-color 0.12s;
}
.house-ad:hover { border-color: var(--series-1); }
.house-title { font-size: 14px; font-weight: 620; color: var(--text-primary); }
.house-text { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.house-cta { font-size: 13px; font-weight: 560; color: var(--series-1); flex: none; }

.site-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.foot-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 12px;
  max-width: 78ch;
}
.foot-disclaimer b { color: var(--text-secondary); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.foot-links a { color: var(--text-secondary); text-decoration: none; }
.foot-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* ── 인사이트 글 ────────────────────────────────────────── */

.ghost-link { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.ghost-link:hover { color: var(--text-primary); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag { font-size: 12.5px; color: var(--series-1); font-weight: 560; }

.insight-title {
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.3;
}
.insight-source { font-size: 13px; color: var(--text-muted); margin: 0 0 20px; }

.lead {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 22px 0;
  max-width: 74ch;
}
.lead b { color: var(--text-primary); }

/* 본 서비스로 데려가는 배너. 글은 검색으로 들어오는 문이고, 목적지는 지도다. */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--series-1) 22%, var(--surface-1)),
    var(--surface-1));
  border: 1px solid var(--border);
  text-decoration: none;
  margin: 8px 0 4px;
  transition: border-color 0.12s;
}
.cta-banner:hover { border-color: var(--series-1); }
.cta-banner.bottom { margin-top: 26px; }
.cta-kicker { font-size: 12.5px; color: var(--text-muted); }
.cta-title { font-size: 15.5px; font-weight: 620; color: var(--text-primary); margin-top: 2px; }
.cta-btn { font-size: 13.5px; font-weight: 600; color: var(--series-1); flex: none; }

.reading, .limits {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 20px;
  margin: 0;
}
.reading li { margin-bottom: 12px; }
.limits li { margin-bottom: 7px; }
.reading b { color: var(--text-primary); }

/* 이어서 볼 것 */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.rel-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--plane);
  text-decoration: none;
  transition: border-color 0.12s;
}
.rel-card:hover { border-color: var(--series-1); }
.rel-title { font-size: 14.5px; font-weight: 620; color: var(--text-primary); }
.rel-sum { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

/* 인사이트 목록 */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.list-card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  text-decoration: none;
  transition: border-color 0.12s, transform 0.12s;
}
.list-card:hover { border-color: var(--series-1); transform: translateY(-2px); }
.list-title {
  font-size: 17px;
  font-weight: 640;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.list-sum { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; }

.data-table td a { color: var(--text-primary); text-decoration: none; }
.data-table td a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .insight-title { font-size: 22px; }
  .lead { font-size: 15px; }
  .cta-banner { padding: 15px 18px; }
}
