/* Cost & Quote page CSS: only what the calculators need and the kit lacks (system.md: inside a visual or a tool).
   Every size and gap comes from the kit's tokens. */

/* the inputs column */
.est { display: grid; gap: var(--s-5); align-content: start; }
.est .field { font-size: var(--t-small); }
.est .field input, .est .field select { font-size: var(--t-body); }
.est fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); min-width: 0; }
.est legend { font-size: var(--t-small); font-weight: 500; padding: 0; margin-bottom: var(--s-2); }
.est .runs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3) var(--s-4); }
.est .runs .field { gap: var(--s-1); }

/* the result card */
.est-result { gap: var(--s-4); }
.card > p.est-result__total, .est-result__total {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--t-h2); line-height: 1.05; font-variant-numeric: tabular-nums;
}
.est-result__range { font-size: var(--t-body); max-width: 46ch; }
.est-result .rows { margin-block: var(--s-2); }
.rows__value { font-variant-numeric: tabular-nums; }

/* a checkbox field: the box beside its words, the words at body size */
.field--check label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-weight: 400; font-size: var(--t-small); line-height: 1.5; }
.field--check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--action); }

/* the open FAQ in two columns from 1024 */
@media (min-width: 1024px) {
  .grid-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter, 24px); }
  .grid-faq > .faq__item:nth-child(2) { padding-top: 0; }
}

/* the countertop pair: one ratio per row (layout-v4.md 4) */
.pair > .frame { --ratio: 66.6%; }

/* phones: a split's photograph keeps a real share of its section (layout-v4.md 4) */
@media (max-width: 639px) {
  .grid.fill > .frame--fill { min-height: 300px; }
}
@media (max-width: 359px) {
  .nav--split .nav__logo { font-size: 22px; }
}
.legal-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.card > p.est-result__range { color: var(--ink); }
