/* pricing calculator */
.calc { background: var(--paper); border: 2px solid var(--ink); border-radius: 4px; padding: 1.5rem; box-shadow: 8px 8px 0 var(--yellow); }
.calc h2 { margin-bottom: 1.2rem; }
.calc-grid { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 860px) { .calc-grid { grid-template-columns: 1fr 1.1fr; } }
.calc-inputs { display: grid; gap: 1rem; align-content: start; }
.calc-inputs label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.calc-inputs .hint { font-weight: 400; color: var(--muted); }
.calc-inputs input, .calc-inputs select { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--rule); border-radius: 4px; padding: .6rem .7rem; }
.calc-inputs input { font-size: 1.3rem; font-weight: 700; }
.calc-inputs input:focus, .calc-inputs select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 25%, transparent); }
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.presets button { font: inherit; font-size: .85rem; padding: .25rem .65rem; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--text); cursor: pointer; }
.presets button:hover { border-color: var(--ink); color: var(--ink); }
.calc-warn { margin: 0; background: var(--pink); color: var(--text); padding: .6rem .8rem; border-radius: 3px; font-size: .92rem; }
.calc-out { background: var(--bg); border-radius: 4px; padding: 1.2rem 1.3rem; }
.calc-label { margin: 0; color: var(--muted); font-weight: 600; }
.calc-big { margin: .1rem 0; font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; color: var(--ink-strong); line-height: 1.1; }
.calc-sub { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.calc-lines { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 1rem 0 .6rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.calc-lines dt { color: var(--text); }
.calc-lines dd { margin: 0; font-weight: 700; color: var(--ink-strong); text-align: right; }
.rates th[scope=row], .rates td:nth-child(3), .rates td:nth-child(4) { white-space: nowrap; }
.rates td:nth-child(2), .rates td:nth-child(5) { min-width: 10rem; }
