:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #b45309;
  --accent-light: #fef3c7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
.container { max-width: 820px; margin: 0 auto; padding: 0 20px; }
header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 32px;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 0.95rem; font-weight: 500; }
nav a:hover { color: var(--accent); }
main { min-height: 68vh; }
h1 { font-size: 1.9rem; line-height: 1.25; margin-bottom: 16px; }
h2 { font-size: 1.4rem; margin: 28px 0 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 18px 22px; }
li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }
.card-list { list-style: none; margin: 24px 0; padding: 0; }
.card-item { border: 1px solid var(--border); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.card-item a { font-size: 1.15rem; font-weight: 700; color: var(--text); text-decoration: none; }
.card-item a:hover { color: var(--accent); }

/* 계산기 위젯 스타일 */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  margin: 26px 0;
}
.calc-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; color: var(--accent); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 16px; }
.calc-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: var(--muted); }
.calc-field input, .calc-field select {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; background: #fff;
}
.calc-result {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px;
}
.res-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.res-row:last-child { border-bottom: none; font-weight: 700; font-size: 1.08rem; color: var(--accent); }
.gst-badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.82rem; font-weight: 700; margin-top: 10px;
}
.gst-free { background: #dcfce7; color: #166534; }
.gst-tax { background: #fee2e2; color: #991b1b; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-links { margin-bottom: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; margin-right: 16px; }
.footer-links a:hover { text-decoration: underline; }
