/* ============================================================
   BuildSafe — Cost guides & True Cost calculator
   Warm ivory luxury · molten copper accent (matches styles.css)
   ============================================================ */

/* ---------- Guide hero ---------- */
.guide-hero .hero-inner { grid-template-columns: 1fr; }
.guide-hero .hero-copy { max-width: 760px; }
.breadcrumbs { font-size: 0.85rem; color: var(--faint); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--copper-ink); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.estimate-note {
  margin-top: 1rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--copper);
  background: rgba(200, 127, 61, 0.08); border-radius: 0 12px 12px 0;
  font-size: 0.9rem; color: var(--muted); max-width: 640px;
}

/* ---------- Cost table ---------- */
.cost-table-wrap { overflow-x: auto; margin-top: 1.5rem; border-radius: var(--radius); }
.cost-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 32px rgba(140, 95, 40, 0.08);
}
.cost-table th, .cost-table td { padding: 1rem 1.25rem; text-align: left; }
.cost-table thead th {
  background: linear-gradient(135deg, rgba(200, 127, 61, 0.16), rgba(200, 127, 61, 0.06));
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--copper-ink); font-weight: 700;
}
.cost-table tbody tr { border-top: 1px solid var(--line); }
.cost-table tbody tr:hover { background: rgba(200, 127, 61, 0.05); }
.cost-range { white-space: nowrap; color: var(--copper-ink); }

/* ---------- Hub & related lists ---------- */
.guide-list { list-style: none; margin-top: 0.75rem; display: grid; gap: 0.4rem; }
.guide-list li { padding: 0; }
.guide-list .inline-link { font-size: 0.95rem; }
.related-cities { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.75rem; }

/* ---------- True Cost calculator ---------- */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 2rem; align-items: start;
}
.calc-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 12px 32px rgba(140, 95, 40, 0.08);
}
.calc-panel h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.calc-field { margin-bottom: 1.4rem; }
.calc-field label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.calc-field .adj { font-size: 0.8rem; font-weight: 600; color: var(--copper-ink); margin-left: 0.5rem; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--copper); }
.calc-val { display: flex; justify-content: space-between; align-items: baseline; }
.calc-val output { font-weight: 700; color: var(--copper-ink); font-size: 1.1rem; }
.calc-field input[type="number"], .calc-field select {
  width: 100%; padding: 0.8rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1rem;
}
.calc-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.calc-result {
  background: linear-gradient(135deg, #2a2118, #4a3520);
  color: #faf6ef; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 18px 44px rgba(42, 33, 24, 0.25);
}
.calc-result h3 { color: #f5e7cf; font-size: 1.35rem; margin-bottom: 1.25rem; }
.calc-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid rgba(232, 163, 92, 0.25);
  font-size: 0.98rem;
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row strong { color: #f0c98a; }
.calc-hero-num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: #f0c98a; }
.calc-vs {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px dashed rgba(232, 163, 92, 0.4);
}
.calc-vs strong { display: block; color: #f5e7cf; font-size: 1.1rem; margin-bottom: 0.4rem; }
.calc-vs ul { list-style: none; display: grid; gap: 0.35rem; color: #e8d9c0; }
.calc-vs li::before { content: "✓ "; color: #e8a35c; font-weight: 700; }
.calc-foot { margin-top: 2rem; }

@media (max-width: 860px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .cost-table th, .cost-table td { padding: 0.8rem; }
  .cost-range { white-space: normal; }
}
