:root { --bg:#fafaf7; --fg:#1d2320; --muted:#5b6660; --accent:#e8890c; --card:#fff; --line:#e3e1d8; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--fg); }
.wrap { max-width:640px; margin:0 auto; padding:16px; }
.brand { font-weight:700; color:var(--fg); text-decoration:none; }
h1 { font-size:1.75rem; line-height:1.2; margin:.5rem 0; }
h2 { font-size:1.25rem; margin:0 0 .25rem; }
.lead { color:var(--muted); }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; margin:16px 0; }
label { display:block; margin:0 0 14px; font-weight:600; }
input, select { display:block; width:100%; margin-top:4px; padding:10px; font:inherit; border:1px solid var(--line); border-radius:8px; background:#fff; }
fieldset { border:0; padding:0; margin:0 0 14px; }
legend { font-weight:600; padding:0; }
label.inline { display:inline-block; margin-right:16px; font-weight:400; }
label.inline input, label.check input { display:inline-block; width:auto; margin:0 6px 0 0; }
label.check { font-weight:400; font-size:.9rem; color:var(--muted); }
button, .btn { display:inline-block; width:100%; padding:12px; font:inherit; font-weight:700; text-align:center; text-decoration:none; color:#fff; background:var(--accent); border:0; border-radius:8px; cursor:pointer; }
.hp { position:absolute; left:-9999px; }
.result div { margin:6px 0; }
.big { font-size:1.4rem; font-weight:700; color:var(--accent); }
table { width:100%; border-collapse:collapse; }
th, td { padding:8px 0; border-bottom:1px solid var(--line); text-align:left; }
td { text-align:right; font-weight:600; }
footer { color:var(--muted); font-size:.85rem; }
footer a { color:var(--muted); }
.muted { color:var(--muted); font-size:.9rem; }
.provinces { line-height:2; }
.points { padding-left:1.1rem; }
table.examples th { font-size:.8rem; color:var(--muted); font-weight:600; text-align:right; }
table.examples td { font-size:.9rem; }
table.examples th:first-child, table.examples td:first-child { text-align:left; }
table.examples td, table.examples th { white-space:nowrap; padding-left:6px; }
table.examples td:first-child, table.examples th:first-child { padding-left:0; }
@media (max-width:480px) { .hide-sm { display:none; } }
.btn + .btn { margin-top:10px; }
.btn.secondary { background:#fff; color:var(--fg); border:1px solid var(--line); }
