/* Free tool pages (/tools/…). Laid on legal.css, which gives the page, the
   header bar and the footer; this adds the calculator and the CTA. */
.tool { background: #f5f7f6; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin: 18px 0 8px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tool input[type="number"] { font: 600 22px/1.2 "General Sans", Arial, sans-serif; color: var(--ink); padding: 10px 12px; border: 1px solid #c5cdca; border-radius: 8px; background: #fff; width: 100%; }
.tool input[type="number"]:focus { outline: 2px solid var(--ocean); outline-offset: 1px; border-color: var(--ocean); }
.tool-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tool-out div, .tool-back { background: var(--ocean); color: #fff; border-radius: 8px; padding: 10px 12px; }
.tool-out span, .tool-back span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.tool-out strong, .tool-back strong { display: block; font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tool-back { align-self: end; }
.tool-err { color: #a3261b; font-size: 13px; margin: 10px 0 0; }
.tool-foot { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.tool-foot legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.tool-foot label { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); font-size: 14px; }
.tool-h { font-size: 17px; margin: 22px 0 10px; padding-top: 14px; }
.tables { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; }
.tables table td, .tables table th { font-variant-numeric: tabular-nums; }
.cta { margin-top: 34px; padding: 18px 20px; border-radius: 12px; background: #0b1d3a; color: #f3eee5; }
.cta p { margin: 6px 0; max-width: none; }
.cta-btn { display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: 8px; background: #d0af74; color: #08121a; font-weight: 600; text-decoration: none; }
.cta-btn:hover { background: #dcbf8c; }
@media (max-width: 640px) {
  .tool { padding: 16px; }
  .tool-out { grid-template-columns: 1fr 1fr; }
  .tables { grid-template-columns: 1fr; }
}
/* Sheet weight calculator: the cutting-list table. */
.tool-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; max-width: none; }
.tool-inline { margin: 0; align-self: end; }
.tool-lines { margin: 14px 0 8px; background: #fff; }
.tool-lines th, .tool-lines td { padding: 6px 8px; font-size: 13.5px; }
.tool-lines td input { width: 100%; min-width: 56px; font: 600 15px/1.2 "General Sans", Arial, sans-serif; padding: 6px 8px; border: 1px solid #c5cdca; border-radius: 6px; }
.tool-lines .n { color: var(--muted); width: 28px; }
.tool-lines .o-rft, .tool-lines .o-kg { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.tool-x:hover { color: #a3261b; }
.tool-add { border: 1px dashed #9aa6a2; background: #fff; border-radius: 8px; padding: 8px 14px; font: 600 13px "General Sans", Arial, sans-serif; color: var(--ocean); cursor: pointer; }
.tool-add:hover { border-style: solid; }
@media (max-width: 640px) {
  .tool-lines th, .tool-lines td { padding: 4px; font-size: 12px; }
  .tool-lines td input { min-width: 44px; font-size: 14px; padding: 5px; }
}
