/* ===== 6PT TOOL STANDARD v1 (begin) =====
   Every tool page carries this block, so the tools feel like one family. Sizes are set by role, not by page.
   Rules and the checklist for a new tool: docs/tool-design-standard.md. tests/tool-standard.spec.js measures every tool page against it.
   field 40px | action button 36px | toggle 30px | gaps 12px | card padding 14px | corners 22 / 16 / 10 / 8 */
.calc {
  --t-field: 2.5rem; --t-button: 2.25rem; --t-toggle: 1.875rem;
  --t-gap: 12px; --t-pad: 14px; --t-pad-calc: 12px;
  --t-r-calc: 22px; --t-r-card: 16px; --t-r-ctl: 10px; --t-r-in: 8px;
}
.calc { padding: var(--t-pad-calc); border-radius: var(--t-r-calc); }
@container (max-width: 720px) { .calc { padding: 8px; border-radius: 18px; } }   /* a narrow pane (a phone) gives the frame 8px and 18px corners */
.calc-grid { gap: var(--t-gap); }
.card { padding: var(--t-pad); border-radius: var(--t-r-card); }
.card h2 { font-size: 1rem; font-weight: 600; }
.label { font-size: 0.8125rem; font-weight: 600; }
.hint { font-size: 0.75rem; }
/* Fields: 40px */
.calc .input:not(.mini), .calc .sel { height: var(--t-field); min-height: var(--t-field); border-radius: var(--t-r-ctl); }
/* Action buttons: 36px. A button that sits beside a field lines up with it at 40px. */
.calc .btn { height: var(--t-button); min-height: var(--t-button); border-radius: var(--t-r-ctl); font-size: 0.8125rem; }
.calc .mail-row .btn { height: var(--t-field); min-height: var(--t-field); }
.calc .mode { min-height: var(--t-button); padding-block: 0; border-radius: var(--t-r-ctl); }
/* Toggles: segmented switches and pill chips are 30px, buttons sized to their text */
.calc .seg { grid-auto-columns: auto; padding: 3px; border-radius: var(--t-r-ctl); }
.calc .seg button { padding: 5px 11px; line-height: 1.2; font-size: 0.75rem; border-radius: var(--t-r-in); }
.calc .seg .pill { border-radius: var(--t-r-in); }
.calc .chip.small { min-height: var(--t-toggle); padding: 3px 10px; font-size: 0.75rem; border-radius: 999px; }
/* ===== 6PT TOOL STANDARD v1 (end) ===== */
