:root {
  --bg: #ffffff; --fg: #1d2421; --muted: #5d6762; --line: #dfe4e1; --soft: #f4f7f5;
  --accent: #1f6f43; --accent-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141816; --fg: #e6ebe8; --muted: #a2aca7; --line: #2e3532; --soft: #1c211f; --accent: #5cb88a; --accent-fg: #0e1210; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; word-break: keep-all; }
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; font-size: 20px; color: var(--fg); text-decoration: none; }
.top nav a { margin-left: 14px; color: var(--fg); text-decoration: none; font-size: 15px; }
.top nav a:first-child { margin-left: 0; }
main { padding-top: 8px; padding-bottom: 40px; }
h1 { font-size: 26px; line-height: 1.35; margin: 20px 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 20px; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 20px 0 8px; }
.lead { color: var(--muted); margin-top: 0; }
.note { color: var(--muted); font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 14px; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 4px 18px 10px; margin: 18px 0; }
.box h2 { margin-top: 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); border-radius: 6px;
  padding: 9px 16px; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: 0.4; cursor: default; }
.buy { padding-top: 14px; }
.disclosure, .disclosure-inline { font-size: 14px; color: var(--muted); }
.disclosure { background: var(--soft); border-bottom: 1px solid var(--line); margin: 0; padding: 8px 16px; text-align: center; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--fg); }
.tile b { display: block; font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; }
.tile:hover, .tile:focus { border-color: var(--accent); }
.filters, .calc { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 14px 0; }
.calc { flex-direction: column; align-items: flex-start; }
.filters label, .calc label { font-size: 15px; }
input, select { font: inherit; font-size: 15px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); max-width: 100%; }
input[type="number"] { width: 110px; }
input[type="search"] { width: 180px; }
input[type="checkbox"] { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
fieldset label { display: inline-block; margin-right: 10px; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.near { padding-left: 18px; }
.near span { color: var(--muted); font-size: 14px; }
.cols { columns: 3 200px; padding-left: 18px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 12px 0 28px; }
.foot a { color: var(--muted); }
@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
