:root { color-scheme: light dark; --fg:#1a1a1a; --bg:#fff; --muted:#666; --line:#e5e5e5; }
@media (prefers-color-scheme: dark) { :root { --fg:#e8e8e8; --bg:#141414; --muted:#999; --line:#2e2e2e; } }
body { max-width: 720px; margin: 0 auto; padding: 1.5rem; background: var(--bg); color: var(--fg);
  font: 17px/1.75 -apple-system, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; }
a { color: inherit; }
header, footer { border-color: var(--line); border-style: solid; border-width: 0; padding: 1rem 0; }
header { border-bottom-width: 1px; } footer { border-top-width: 1px; color: var(--muted); }
h1 { font-size: 1.8rem; line-height: 1.35; }
.meta, .tags { color: var(--muted); font-size: .9rem; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 700; font-size: 1.15rem; }
.post-list p { color: var(--muted); margin: .3rem 0 0; }
.coupang { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 2rem 0; }
.coupang ul { padding-left: 1.2rem; } .disclosure { color: var(--muted); }
table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: .5rem; }
img { max-width: 100%; height: auto; }
.lead { color: var(--muted); font-size: 1.05rem; }
.calc { display: grid; gap: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem; }
.calc label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.calc label.chk { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.calc select, .calc input[type=range] { width: 100%; font: inherit; padding: .4rem; }
.calc output { font-weight: 400; color: var(--muted); }
.result { margin: 1.5rem 0; }
.result .total { font-size: 1.4rem; margin: 0 0 .8rem; }
.result th { text-align: left; width: 10rem; font-weight: 500; color: var(--muted); }
.verdict { padding: .8rem 1rem; border-left: 3px solid currentColor; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.faq dt { font-weight: 700; margin-top: 1rem; }
.faq dd { margin: .3rem 0 0; color: var(--muted); }
.scroll { overflow-x: auto; margin: 1.5rem 0; }
.matrix { border-collapse: collapse; font-size: .9rem; min-width: 100%; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: center; white-space: nowrap; }
.matrix thead th { background: color-mix(in srgb, var(--fg) 6%, transparent); font-size: .85rem; }
.matrix tbody th { text-align: left; font-weight: 600; }
.matrix small { color: var(--muted); font-weight: 400; }
.matrix td.ok { font-variant-numeric: tabular-nums; }
.matrix td.no { color: var(--muted); }
.legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .6rem; font-size: .9rem; }

/* --- 차트 --- */
.viz-root {
  --surface-1: #fcfcfb; --text-primary: #0b0b0b; --text-secondary: #52514e;
  --series-1: #2a78d6; --grid: #e3e3df;
  margin: 1.8rem 0; padding: 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .viz-root {
    --surface-1: #1a1a19; --text-primary: #fff; --text-secondary: #c3c2b7;
    --series-1: #3987e5; --grid: #333330;
  }
}
:root[data-theme="dark"] .viz-root {
  --surface-1: #1a1a19; --text-primary: #fff; --text-secondary: #c3c2b7;
  --series-1: #3987e5; --grid: #333330;
}
.viz-root svg { width: 100%; height: auto; display: block; }
.viz-root .grid { stroke: var(--grid); stroke-width: 1; }
.viz-root .axis { stroke: var(--text-secondary); stroke-width: 1; }
.viz-root .line { stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; }
.viz-root .dot { fill: var(--series-1); stroke: var(--surface-1); stroke-width: 2; }
.viz-root .bar { fill: var(--series-1); }
.viz-root .tick { fill: var(--text-secondary); font-size: 13px; }
.viz-root .value { fill: var(--text-primary); font-size: 13px; font-weight: 600; }
.viz-root .axis-label { fill: var(--text-secondary); font-size: 12px; }
.viz-root figcaption {
  color: var(--muted); font-size: .88rem; text-align: center; margin-top: .5rem;
}
