/* Construction Costs: additive styles scoped to the cost page. */
.cost-page { color: var(--navy, #17233a); }
.cost-page .cost-hero { max-width: 800px; margin: 32px 0 40px; }
.cost-page .cost-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); }
.cost-page .cost-hero p { max-width: 68ch; margin: 0 0 16px; color: #3a475c; font-size: 18px; line-height: 1.6; }
.cost-page .cost-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.cost-page .cost-form,
.cost-page .cost-results { min-width: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line, #e0e5eb); border-radius: 8px; background: #f8fafc; }
.cost-page .cost-form h2,
.cost-page .cost-results h2 { margin: 0 0 16px; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.2; }
.cost-page .cost-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cost-page .cost-field { min-width: 0; margin: 0 0 18px; }
.cost-page .cost-field label,
.cost-page .cost-form legend { display: block; margin: 0 0 7px; color: var(--navy, #17233a); font: 600 15px/1.5 var(--sans, sans-serif); }
.cost-page .cost-form fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.cost-page .cost-field input:not([type="checkbox"]):not([type="radio"]),
.cost-page .cost-field select,
.cost-page .cost-field textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #7d8591; border-radius: 4px; background: #fff; color: var(--navy, #17233a); font: 16px/1.4 var(--sans, sans-serif); }
.cost-page .cost-field input[type="checkbox"],
.cost-page .cost-field input[type="radio"] { width: 20px; height: 20px; accent-color: #a94716; }
.cost-page .cost-field input:hover,
.cost-page .cost-field select:hover,
.cost-page .cost-field textarea:hover { border-color: var(--navy, #17233a); }
.cost-page .cost-help { display: block; margin: 7px 0 0; color: #4a5568; font: 14px/1.55 var(--sans, sans-serif); }
.cost-page .cost-error { margin: 7px 0 0; color: #9b1c1c; font: 600 14px/1.5 var(--sans, sans-serif); }
.cost-page [aria-invalid="true"] { border-color: #9b1c1c !important; }
.cost-page .cost-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 12px 20px; border: 1px solid #a94716; border-radius: 4px; background: #a94716; color: #fff; font: 600 15px/1.4 var(--sans, sans-serif); text-align: center; text-decoration: none; cursor: pointer; }
.cost-page .cost-button:hover { border-color: #85350e; background: #85350e; color: #fff; }
.cost-page .cost-button:disabled { border-color: #6b7280; background: #6b7280; color: #fff; cursor: not-allowed; }
.cost-page :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #d4622a; outline-offset: 3px; }
.cost-page .cost-results { background: #fff; }
.cost-page .cost-result-card { min-width: 0; padding: 18px; border: 1px solid var(--line, #e0e5eb); border-radius: 6px; background: var(--sand, #f4f6f8); overflow-wrap: anywhere; }
.cost-page .cost-result-card + .cost-result-card { margin-top: 12px; }
.cost-page .cost-result-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.cost-page .cost-result-card p { margin: 0 0 8px; line-height: 1.55; }
.cost-page .cost-result-card > :last-child { margin-bottom: 0; }
.cost-page .cost-state-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 24px 0; }
.cost-page .cost-card { display: block; min-width: 0; padding: 20px; border: 1px solid var(--line, #e0e5eb); border-radius: 6px; background: #fff; color: var(--navy, #17233a); overflow-wrap: anywhere; }
.cost-page a.cost-card { text-decoration: none; }
.cost-page a.cost-card:hover { border-color: #a94716; color: var(--navy, #17233a); }
.cost-page a.cost-card:hover h2,
.cost-page a.cost-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.cost-page .cost-card h2,
.cost-page .cost-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.cost-page .cost-card p { margin: 0; color: #3a475c; font-size: 15px; line-height: 1.55; }
.cost-page .cost-note { margin: 24px 0; padding: 18px 20px; border-left: 3px solid #a94716; border-radius: 4px; background: var(--sand, #f4f6f8); color: var(--ink, #2a3446); line-height: 1.6; overflow-wrap: anywhere; }
.cost-page .cost-note > :first-child { margin-top: 0; }
.cost-page .cost-note > :last-child { margin-bottom: 0; }
.cost-page .cost-source-list,
.cost-page .cost-steps { padding-left: 24px; line-height: 1.65; overflow-wrap: anywhere; }
.cost-page .cost-source-list li + li,
.cost-page .cost-steps li + li { margin-top: 8px; }
@media (max-width: 800px) {
  .cost-page .cost-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .cost-page .cost-hero { margin: 28px 0 32px; }
  .cost-page .cost-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cost-page .cost-button { width: 100%; }
}
.cost-path{margin:2rem 0;padding:1.25rem;background:#f4f4f2;border:1px solid #d5d5d1;border-radius:8px}.cost-path figcaption{line-height:1.55}.cost-path-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;list-style:none;padding:0;margin:1rem 0 0}.cost-path-steps li{background:#fff;border:1px solid #d0d0cc;border-radius:6px;padding:1rem;display:flex;flex-direction:column;gap:.35rem}.cost-path-steps span{font-size:.92rem;line-height:1.4}@media(max-width:800px){.cost-path-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.cost-path-steps{grid-template-columns:1fr}}
