/* Static content pages (ville/<slug>/, villes/), generated by
   scripts/build-solar-cities.mjs. Loaded after style.css and brand.css;
   every rule is scoped under .cp so the estimator page is untouched. */

.cp-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.cp-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.cp-crumbs a { color: var(--muted); }

.cp-head { margin-bottom: 28px; }
.cp h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
  color: var(--text);
}
.cp-answer { font-size: 18px; line-height: 1.6; margin: 0 0 22px; max-width: 760px; }
.cp-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--w-radius-pill, 999px);
  text-decoration: none;
}
.cp-cta:hover { background: var(--orange-2); text-decoration: none; }

.cp-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 8px 0 10px;
}
.cp-figures > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}
.cp-fig { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1.1; color: var(--navy); }
.cp-unit { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

.cp-section { margin: 40px 0; }
.cp h2 { font-size: 22px; margin: 0 0 14px; color: var(--text); }
.cp h3 { font-size: 16px; margin: 22px 0 6px; color: var(--text); }
.cp p { line-height: 1.65; }
.cp-note { font-size: 14px; color: var(--muted); }
.cp-meta { font-size: 13px; color: var(--muted); margin-top: 14px; }
.cp-near { font-size: 14px; line-height: 1.9; }
.cp-method { padding-left: 20px; line-height: 1.6; }
.cp-method li { margin-bottom: 8px; }

/* Wide tables scroll inside their own box, never the page */
.cp-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
}
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
}
.cp-table th, .cp-table td {
  padding: 10px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cp-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg);
  white-space: normal;
  vertical-align: bottom;
}
.cp-table th[scope="row"], .cp-table td:first-child { text-align: left; }
.cp-table tbody tr:last-child > * { border-bottom: 0; }
.cp-months th, .cp-months td, .cp-months td:first-child { text-align: center; }

@media (max-width: 620px) {
  .cp-main { padding: 20px 16px 0; }
  .cp-figures { grid-template-columns: 1fr 1fr; }
  .cp-fig { font-size: 26px; }
  .cp-answer { font-size: 16px; }
}
