/* Buy This For — tool calculators (loaded only on /tools/ pages).
   Built on the design-system tokens from style.css. */

.tool-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 28px;
}
.tool-intro { color: var(--ink-2); max-width: 72ch; margin: 0 0 20px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 26px; align-items: start; }
.tool-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tool-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.tool-field em { font-style: normal; color: var(--ink-3); }
.tool-field select,
.tool-field input[type="number"] {
  font: 15px var(--sans);
  color: var(--ink);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--paper);
  min-width: 0;
  width: 100%;
}
.tool-field input[type="number"]:focus, .tool-field select:focus { border-color: var(--accent); outline: none; }
.tool-results { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; }
.results-inner { display: grid; grid-template-columns: 1fr; }
.result-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--rule); }
.result-row:last-child { border-bottom: 0; }
.result-row span { font-size: 13px; color: var(--ink-2); }
.result-row b { font-family: var(--mono); font-size: 15px; font-weight: 500; white-space: nowrap; }
.verdict {
  font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--accent-soft); border-radius: var(--radius-sm);
  padding: 10px 12px; margin: 14px 0 0;
}
.tool-grace { margin: 12px 0 0; }
.tool-note { margin: 10px 0 0; }
.tool-disclaimer { margin: 16px 0 0; font-size: 12.5px; }

.tool-cta {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
}
.tool-cta h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0; }
.tool-cta p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; min-width: 260px; }
.tool-cta .buy-row { margin: 0; flex: 0 1 auto; min-width: 160px; }
.tool-cta-link {
  font: 600 13.5px var(--sans);
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  white-space: nowrap;
}
.tool-cta-link:hover { background: var(--accent-soft); }

.tool-method { margin-top: 0; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

@media (max-width: 860px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-card { padding: 20px 16px; }
}
