/* tools.html — page-only composition. Shared components: calculator, tool layout, estimate panel,
   form fields, tables, sub-navigation (../system.css). */

.page-hero-media img { object-position: 58% 40%; }
.subnav + .section { border-top: 0; }
.calc-section { isolation: isolate; overflow: clip; }

/* physician vs conventional quote comparison */
.quote-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.quote-shared, .quote-loan { border: 0; margin: 0; min-width: 0; }
.quote-shared { grid-column: 1 / -1; }
.quote-legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; font-size: var(--t-body); font-weight: 500; letter-spacing: -.02em; color: var(--l-text); }
.quote-legend + * { clear: both; }
.quote-shared-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quote-loans { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.quote-loan .field > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.quote-result { grid-column: 1 / -1; }
.quote-result .table-scroll { margin-top: 18px; }
.compare-table { font-size: var(--t-small); }
.compare-table th, .compare-table td { padding: 12px 16px 12px 0; }
.compare-table thead th { padding-top: 0; }
.compare-table th.num, .compare-table td.num { text-align: right; padding-right: 0; padding-left: 16px; }
.compare-table tbody th { font-weight: 400; color: var(--d-muted); }
.compare-table tr.is-key th, .compare-table tr.is-key td { color: #fff; font-weight: 500; }
.compare-table tr.is-key td:last-child { color: var(--mint-hi); }
.quote-result .fine { margin-top: 18px; }
.quote-result [data-download] { margin-top: 18px; }
.quote-fine { margin-top: 24px; }

/* planning tools */
.tool-section .estimate-rows { margin-top: 14px; }
.tool-section .estimate-caption { margin-top: 18px; }
.tool-section .estimate-empty p { color: var(--d-muted); }
.tool-section .field > span:first-child { min-height: 2.6em; display: flex; align-items: flex-end; }

/* beyond the payment */
.choice-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.choice-grid .card-link { padding: clamp(26px, 3vw, 40px); min-height: 260px; }
.choice-grid .card-title { font-size: var(--t-h3); font-weight: 300; letter-spacing: -.035em; line-height: 1.1; }
.choice-grid .card-text { max-width: 44ch; }

@media (max-width: 1000px) {
  .quote-shared-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-section .field > span:first-child { min-height: 0; }
}
@media (max-width: 760px) {
  .quote-form, .quote-loans, .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-shared-grid { grid-template-columns: minmax(0, 1fr); }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding-right: 10px; }
}
