/* The cost of living pages (built by the API: backend/src/cost-of-living/pages.js). Builds on /home/home.css. */
.col-main { padding-bottom: 48px; }
.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.col-hero { padding: 20px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.col-hero h1 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -0.8px; }

.col-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.col-field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; }
.col-field label { font-weight: 700; font-size: 14px; }
.col-field select { min-height: 48px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); }
.col-form .cta { flex: 0 0 auto; }

.col-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 8px; }
.col-totals .total { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.col-totals .total strong { font-size: 28px; font-weight: 800; color: var(--ink); }
.col-totals .total.good strong { color: var(--ok); }
.col-totals .total.bad strong { color: var(--warn); }

.col-table-wrap { border-radius: var(--radius-lg); background: var(--surface); }
.col-table { font-size: 15px; }
.col-table th, .col-table td { white-space: normal; vertical-align: top; padding: 12px 14px; }
.col-table thead th { font-size: 13px; }
.col-table tbody th { font-weight: 650; color: var(--ink); text-align: left; min-width: 180px; }
.col-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.col-table td.num { text-align: right; min-width: 130px; }
.col-table .inr { display: block; color: var(--muted); font-size: 13px; }
.col-table .range { display: block; color: var(--muted); font-size: 12px; }
.col-table .src { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.col-basis em { font-style: normal; color: var(--muted); }
.col-table tr.grp th { background: var(--ground); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 8px; padding-bottom: 8px; }
.col-table .diff { font-weight: 700; white-space: nowrap; }
.col-table .diff.good { color: var(--ok); }
.col-table .diff.bad { color: var(--warn); }
.col-table tfoot th, .col-table tfoot td { border-top: 1px solid var(--line); font-weight: 800; }

.col-pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.col-pairs details { padding: 0; }
.col-pairs summary { padding: 16px 18px; font-weight: 750; cursor: pointer; }
.col-pairs ul, .col-links ul { list-style: none; margin: 0; padding: 0 18px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.col-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-top: 8px; }
.col-links h3 { font-size: 16px; color: var(--ink); margin-bottom: 10px; }
.col-links ul { padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.col-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.col-cta h2 { font-size: 20px; font-weight: 800; }
.col-cta p { margin-top: 4px; }
.col-method p { color: var(--ink-2); max-width: 900px; }
.col-basis { margin: 8px 0 0; display: grid; gap: 10px; max-width: 900px; font-size: 14px; }
.col-basis dt { font-weight: 700; color: var(--ink); }
.col-basis dd { margin: 2px 0 0; color: var(--ink-2); }

@media (min-width: 641px) { .col-method p, .col-basis dd { text-align: justify; } }
@media (max-width: 640px) {
  .col-hero h1 { font-size: 28px; }
  .col-form .cta { width: 100%; }
  .col-table th, .col-table td { padding: 10px; }
  .col-table tbody th { min-width: 130px; }
  .col-table td.num { min-width: 110px; }
}
