/* Free calculators (lead magnets). Loaded only by the calculadora-* tool pages, after site.css.
   Same system: navy/ink/gold, Archivo, the accountant's double rule under a total. Gold only on dark. */
.tool .hero { padding-bottom: 16px; }
.tool .hero .wrap { display: block; }
.tool .hero h1 { font-size: clamp(1.9rem, 5.4vw, 3.3rem); max-width: 24ch; }
.tool .hero p { max-width: 40em; }
.tool .calc { padding-top: 16px; }
.tool .calc form { max-width: none; align-content: start; }

/* Checkbox rows (site.css stretches every input to 100%) */
label.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
label.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--navy); }
label.check span { display: grid; gap: 4px; }
input[type="date"] { min-height: 50px; -webkit-appearance: none; appearance: none; }

/* Result: breakdown rows, total ruled off like the big figure */
.result .big { max-width: 100%; font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
.result .sub { color: var(--muted); }
.result table td:first-child { padding-right: 16px; }
.result table td:last-child { white-space: nowrap; vertical-align: bottom; }
.result table tr.total td { font-weight: 700; border-bottom: 3px double var(--navy); }
.result table small { display: block; color: var(--muted); font-weight: 400; }
.result .payer { margin: 16px 0 0; padding: 12px 16px; background: var(--paper); border-left: 4px double var(--navy); font-size: .95rem; }
.result .payer:empty { display: none; }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }

/* Funnel card under the result */
.funnel { margin-top: 16px; }
.funnel h2 { font-size: 1.15rem; line-height: 1.25; }
.funnel .actions { margin-top: 16px; }
.funnel .fine-print { margin-top: 14px; }

/* Notice on a dark surface (amnesty): clearly apart from the calculation */
.aviso { margin-top: 16px; padding: 20px 24px; border-radius: 4px; border-left: 4px double var(--gold); background: var(--ink); color: var(--on-ink); }
.aviso strong { color: #fff; }
.aviso p { margin: 0 0 12px; }
.aviso .btn { padding: 12px 18px; }

/* Explanation column */
.explain .wrap { max-width: 780px; }
.explain h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 2em 0 .6em; }
.explain h2:first-child { margin-top: 0; }
.explain h3 { margin: 1.6em 0 .35em; }
.explain details > :last-child { margin-bottom: 0; }
.explain details > p:first-of-type, .explain details > table:first-of-type { margin-top: 14px; }
.explain details table { margin-bottom: 1em; }
.explain .formula { font-weight: 700; font-variant-numeric: tabular-nums lining-nums; padding: 10px 14px; background: var(--paper); border-left: 4px double var(--navy); }
.explain .sources { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .92rem; }
.explain .sources h2 { font-size: 1.1rem; margin-top: 1em; }
.explain .sources li { line-height: 1.5; margin: .35em 0; }
.explain .more { margin-top: 48px; }
.explain .more .card strong { display: block; color: var(--navy); margin-bottom: 4px; }
.tool .calc form { align-self: start; }
.explain table td:last-child { white-space: nowrap; padding-left: 16px; vertical-align: bottom; }
.explain table td.free { white-space: normal; }
