:root {
  --ink: #16202b;
  --muted: #5b6b7c;
  --line: #d8e0e8;
  --brand: #14507a;
  --brand-soft: #eef4f9;
  --warn: #8a4b00;
  --bg: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  overflow-wrap: break-word;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

a { color: var(--brand); }
a:hover { text-decoration: none; }

h1 { font-size: 1.6rem; line-height: 1.35; margin: 24px 0 12px; }
h2 { font-size: 1.2rem; margin: 28px 0 10px; }
h3 { font-size: 1.03rem; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 1.2em; }
li { margin: 4px 0; }

.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; padding-top: 12px; padding-bottom: 10px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand strong { font-size: 1.15rem; }
.brand span { color: var(--muted); font-size: .82rem; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.site-head nav a { text-decoration: none; }
.site-head nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; }

.crumbs { max-width: 1080px; margin: 12px auto -8px; padding: 0 16px; font-size: .84rem; color: var(--muted); }

main { padding-bottom: 40px; }

.hero p { max-width: 62ch; }
.tagline { color: var(--muted); }

.verify-box { background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.verify-list { margin: 6px 0 0; padding-left: 1.2em; font-size: .93rem; }

.search-box { background: var(--brand-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.search-box label { display: block; font-size: .9rem; color: var(--muted); }
.search-box input { width: 100%; max-width: 420px; padding: 10px 12px; margin: 8px 0; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.search-results { list-style: none; padding: 0; margin: 4px 0 0; }
.search-results li { border-top: 1px solid var(--line); padding: 6px 0; font-size: .95rem; }
.search-results li:first-child { border-top: 0; }

.cards { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards li { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cards .when { color: var(--muted); font-size: .9rem; }
.cards .who { font-size: .95rem; }
.cards .dday { color: var(--warn); font-weight: 700; font-size: .9rem; }

.link-list { list-style: none; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.steps ol { counter-reset: step; list-style: none; padding: 0; }
.steps li { border-left: 3px solid var(--brand); padding: 4px 0 4px 12px; margin: 12px 0; }
.steps h3 { margin: 0 0 4px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
caption { caption-side: top; text-align: left; padding: 8px 10px; color: var(--muted); font-size: .85rem; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; white-space: normal; }
thead th { background: var(--brand-soft); position: sticky; top: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
.data-table td, .data-table th { min-width: 84px; }

.na { color: var(--warn); font-size: .88rem; }
.muted { color: var(--muted); }
.chk { color: var(--muted); font-size: .85rem; }

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

.details-list { list-style: none; padding: 0; }

.related { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 12px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.tool-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: end; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tool-form .field { display: flex; flex-direction: column; gap: 4px; }
.tool-form label, .tool-form legend { font-size: .9rem; color: var(--muted); }
.tool-form select, .tool-form input[type="date"] { padding: 8px 10px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tool-form button { padding: 10px 16px; font-size: 1rem; border: 0; border-radius: 8px; background: var(--brand); color: #fff; cursor: pointer; }
.tool-form .rounds { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 0; }
.chkbox { display: block; font-size: .95rem; }
.tool-result { margin-top: 14px; }
.tool-result .headline { font-size: 1.05rem; background: var(--brand-soft); border-radius: var(--radius); padding: 10px 12px; }

.ad-slot { margin: 22px 0; min-height: 0; }
.commentary p { max-width: 68ch; }

.site-foot { border-top: 1px solid var(--line); background: #fafcfd; margin-top: 40px; padding: 20px 0 30px; font-size: .9rem; }
.foot-sources ul { list-style: none; padding: 0; }
.checked-line { color: var(--muted); }
.foot-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.disclaimer { color: var(--muted); margin-top: 14px; }

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  body { font-size: 15.5px; }
  .site-head nav ul { gap: 4px 10px; font-size: .88rem; }
  table { font-size: .86rem; }
  .data-table td, .data-table th { min-width: 72px; padding: 6px 7px; }
  .cards { grid-template-columns: 1fr; }
}

.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.ad-slot { min-height: 0; margin: 18px 0; }
.notice { background: #fff7ec; border: 1px solid #f0d9b5; border-radius: var(--radius); padding: 10px 14px; }
.related ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; }
footer.site-foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 16px 0 28px; }
footer.site-foot ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; }

th, td { word-break: keep-all; }
@media (max-width: 640px) { .tw table { min-width: 560px; } }
