/* 공통 스타일: shared/base.css 를 수정한 뒤 tools/sync-shared.sh 로 각 사이트에 복사 */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f0f0ec;
  --text: #1c1c1a;
  --muted: #6b6b66;
  --line: #e2e2dc;
  --accent: #1f6feb;
  --accent-ink: #ffffff;
  --good: #1a7f4b;
  --warn: #b45309;
  --bad: #c0392b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211; --surface: #1b1b1a; --surface-2: #252523; --text: #ececea;
    --muted: #a3a39c; --line: #33332f; --accent: #4c8dff; --accent-ink: #0b0b0b;
    --good: #3fb97a; --warn: #f0a24a; --bad: #ef6b5b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211; --surface: #1b1b1a; --surface-2: #252523; --text: #ececea;
  --muted: #a3a39c; --line: #33332f; --accent: #4c8dff; --accent-ink: #0b0b0b;
  --good: #3fb97a; --warn: #f0a24a; --bad: #ef6b5b; color-scheme: dark;
}
* { 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", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header.site .brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 17px; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 12px; }
h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.25; margin: 28px 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 20px 0 6px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 140px; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 16px; cursor: pointer; background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
button.secondary, .btn.secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
button:disabled { opacity: .5; cursor: not-allowed; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { background: var(--surface-2); color: var(--text); border-color: var(--line); font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.result { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--muted); }
.row .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.big { font-size: clamp(28px, 6vw, 40px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
details summary { cursor: pointer; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer.site { margin-top: 48px; border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
footer.site .tools a { margin-right: 12px; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 520px) { .card { padding: 16px; } header.site nav { display: none; } }
