@font-face { font-family: Inter; src: url('/assets/Inter-Variable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
/* Shared polish for every data tool frame. scripts/build-data-tools.mjs writes it into public/tools/tools.css,
   which each tool page links after its own inline styles. Selectors stay at element weight, so a tool's own class
   rules still decide its layout. The controls match the question form on /contact: 48px fields, a firm border,
   and the site focus ring. */
:where(form) { padding: clamp(16px, 2.4vw, 24px); border-radius: 12px; }
label, .label { font-size: 0.9rem; letter-spacing: -0.005em; }
.field { gap: 6px; }

input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="color"], [type="file"])),
select, textarea {
  min-height: 48px; padding: 11px 14px; border: 1px solid #7e8f84; border-radius: 6px; background-color: #fff;
  font-size: 1rem; line-height: 1.4; color: var(--ink, #12362c);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2312362c'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
select::-ms-expand { display: none; }
input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"])):hover, select:hover, textarea:hover { border-color: var(--forest, #12362c); }
input:where(:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"])):focus, select:focus, textarea:focus { border-color: var(--forest, #12362c); box-shadow: 0 0 0 1px var(--forest, #12362c); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus-ring, #84621f); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #67756e; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest, #12362c); }

/* Secondary buttons read as buttons, not tinted boxes. */
button { min-height: 44px; border-radius: 6px; border-color: #c3cdc6; transition: background-color 160ms ease, border-color 160ms ease; }
button:hover { border-color: var(--forest, #12362c); }

/* Short currency pickers next to an amount need room for the chevron. */
.pair select { flex-basis: 6.5rem; width: 6.5rem; }

@media (prefers-reduced-motion: reduce) { input, select, textarea, button { transition: none; } }
