:root {
  --ink: #16201b;
  --muted: #5b6763;
  --line: #d9dfdb;
  --brand: #14532d;
  --brand-soft: #eef5f0;
  --warn-bg: #fff6e6;
  --warn-line: #d9a248;
  --danger: #a4232b;
  --ok: #1c6b4a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9f8;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.68;
  font-size: 16px;
}

.chrome { background: #fff; border-bottom: 1px solid var(--line); }
.chrome .in { max-width: 960px; margin: 0 auto; padding: 10px 16px; }

nav.chrome .in { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
nav.chrome .brand { font-weight: 700; color: var(--brand); text-decoration: none; margin-right: 4px; }
nav.chrome a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 4px 2px; }
nav.chrome a[aria-current="page"] { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); }

main { max-width: 780px; margin: 0 auto; padding: 20px 16px 40px; }

h1 { font-size: 1.5rem; line-height: 1.35; margin: 0 0 6px; color: var(--brand); letter-spacing: -0.01em; }
h2 { font-size: 1.12rem; margin: 28px 0 8px; }
h3 { font-size: 1rem; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 0 0 6px; }
a { color: #14532d; }
a:hover { text-decoration: underline; }
code { background: #eef1ef; padding: 1px 4px; border-radius: 4px; font-size: 0.92em; }

.updated { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.lead { font-size: 1.02rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.error { color: var(--danger); font-weight: 600; margin: 8px 0 0; font-size: 14px; }
.error:empty { display: none; }

.rateband {
  background: var(--brand-soft);
  border: 1px solid #cfe0d5;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #25402f;
  margin: 0 0 14px;
}
.rateband strong { color: var(--brand); }

.notice-n1 { border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); font-size: 13px; }
.notice-n1 p { margin: 0 0 6px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.result[hidden] { display: none; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0; margin-bottom: 8px; font-size: 15px; color: var(--brand); }

.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field.checkbox { display: flex; gap: 8px; align-items: flex-start; }
.field.checkbox label { font-weight: 400; margin: 0; font-size: 14px; }
input[type="text"], input[type="date"], input[type="search"], input[type="number"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c4bd;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
select[size] { padding: 6px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #7fb28f; outline-offset: 1px; }
input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }

button, .cta {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  margin: 0 6px 6px 0;
}
button:hover, .cta:hover { background: #0f3f22; text-decoration: none; }
button:disabled { background: #b6c2ba; border-color: #b6c2ba; cursor: not-allowed; }
.cta.secondary, button.secondary { background: #fff; color: var(--brand); border-color: #9dbcab; }
.cta.secondary:hover, button.secondary:hover { background: var(--brand-soft); }
.actions { margin: 14px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.basis { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; }
.big { font-size: 1.85rem; font-weight: 700; color: var(--brand); margin: 0 0 2px; letter-spacing: -0.02em; }
.unit { font-size: 1.02rem; margin: 0 0 2px; }

.grid4 { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 4px; }
.mini { background: var(--brand-soft); border: 1px solid #d5e4da; border-radius: 10px; padding: 12px; }
.mini h3 { margin: 0 0 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.mini p { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.mini p.small { font-weight: 400; font-size: 13px; }

.warn-list { list-style: none; padding: 0; margin: 0 0 12px; }
.warn-list li {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 0 0 6px;
}
.warn-list:empty { display: none; }

.tw { overflow-x: auto; margin: 0 0 16px; }
.tw table { min-width: 480px; }
.tw table.compare-table { min-width: 600px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 0 0 16px; background: #fff; word-break: keep-all; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--brand-soft); color: var(--brand); }
tbody th { background: #fafcfb; font-weight: 600; }
.compare-table caption { text-align: left; font-size: 13px; color: var(--muted); padding: 0 0 6px; }

@media (max-width: 559px) {
  .tw table.compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 0 0 10px;
    padding: 6px 12px;
    background: #fff;
  }
  .compare-table tbody th {
    display: block;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
    color: var(--brand);
  }
  .compare-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px dashed var(--line);
    padding: 6px 0;
    font-weight: 600;
  }
  .compare-table tbody td:last-child { border-bottom: 0; }
  .compare-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 400;
    font-size: 13px;
  }
}

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; font-size: 14px; }

.sources, .related { margin: 24px 0 0; }
.src-list li { font-size: 14px; word-break: break-word; }

footer.chrome { border-top: 1px solid var(--line); border-bottom: 0; margin: 24px 0 0; }
footer.chrome .in { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 20px 16px 28px; max-width: 960px; }
footer .disc { color: var(--muted); font-size: 12.5px; margin: 0; }
footer h2 { font-size: 12px; color: var(--muted); margin: 0 0 4px; text-transform: none; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0 0 3px; font-size: 13px; }

.timeline { padding-left: 20px; }
.timeline li { margin: 0 0 10px; }
.timeline strong { display: block; font-size: 14px; }
.timeline span { font-size: 14px; }
.timeline [data-tl-due] { color: var(--brand); font-weight: 700; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 24px; position: relative; font-size: 14px; }
.checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--brand); }

.sheet { border: 1px solid var(--line); }
.sheet h2 { margin-top: 0; }

@page { size: A4; margin-top: 14mm; margin-right: 12mm; margin-bottom: 14mm; margin-left: 12mm; }

@media print {
  body { background: #fff; font-size: 11pt; }
  nav.chrome, footer.chrome, .no-print, .actions, button, .cta, .rateband, .notice-n1, .sources, .related {
    display: none !important;
  }
  main { max-width: none; padding: 0; }
  .card { border: 0; padding: 0; margin: 0 0 10px; }
  .sheet { border: 0; }
  table { font-size: 10pt; word-break: normal; }
  .tw { overflow: visible; }
  .tw table, .tw table.compare-table { min-width: 0; }
  td, th { overflow-wrap: break-word; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 16pt; }
  .checklist li::before { content: "☐"; }
}

@media (min-width: 560px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  footer.chrome .in { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
