.catalog-insights {
  --insight-ink: #eaf3f5;
  --insight-subtle: #b7cbd4;
  --insight-accent: #b7e5df;
  color: var(--insight-ink);
  background: #142a3a;
  border: 1px solid #294655;
  border-radius: 6px;
  padding: clamp(16px, 3.2vw, 48px);
  scroll-margin-top: 92px;
}

.insight-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.insight-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  color: inherit;
}

.insight-heading p,
.insight-note {
  color: var(--insight-subtle);
  margin: .5rem 0 0;
  line-height: 1.45;
}

.catalog-insights .text-link {
  color: var(--insight-accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
}

.insight-fields,
.insight-compare-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.insight-fields {
  margin: 22px 0 12px;
}

.insight-fields label {
  display: grid;
  gap: 6px;
  color: var(--insight-ink);
  font-size: .83rem;
  font-weight: 700;
}

.insight-fields select {
  width: 100%;
  height: 44px;
  color: var(--ink);
  background: #f5f9fa;
  border: 1px solid #91aeb9;
  border-radius: 4px;
  padding-inline: 10px;
  font-size: .95rem;
}

.insight-city-card,
.insight-developer-card {
  background: #203d4d;
  border: 1px solid #3d5867;
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0,1.28fr) minmax(0,1fr);
  min-width: 0;
  overflow: hidden;
}

.insight-city-meta,
.insight-developer-info {
  padding: clamp(13px, 2.1vw, 24px);
}

.insight-city-card:not(:has(.insight-city-image)),
.insight-developer-card:not(:has(.insight-developer-image)) {
  grid-template-columns: minmax(0,1fr);
}

.insight-city-card h3,
.insight-developer-card h3 {
  font-size: clamp(1.24rem, 2vw, 1.85rem);
  color: inherit;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.insight-facts {
  display: grid;
  gap: 6px;
  margin: 14px 0 8px;
  line-height: 1.35;
}

.insight-facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
}

.insight-facts div:first-child {
  flex-direction: column;
  margin-bottom: 5px;
}

.insight-facts dt,
.insight-local-count {
  color: var(--insight-subtle);
  font-size: .83rem;
}

.insight-facts dd {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.insight-facts div:first-child dd {
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
}

.insight-city-card meter {
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 0;
  background: #466879;
  accent-color: var(--insight-accent);
}

.insight-city-card meter::-webkit-meter-bar {
  height: 8px;
  background: #466879;
  border: 0;
  border-radius: 0;
}

.insight-city-card meter::-webkit-meter-optimum-value { background: #9fdcd2; }
.insight-city-card meter::-moz-meter-bar { background: #9fdcd2; }

.insight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 6px;
}

.insight-links .text-link,
.insight-developer-projects .text-link {
  flex: 0 1 auto;
  font-size: .85rem;
}

.insight-city-image,
.insight-developer-image {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 145px;
}

.insight-city-image img,
.insight-developer-image img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.insight-city-image:is(:hover,:focus-visible) img,
.insight-developer-image:is(:hover,:focus-visible) img {
  transform: scale(1.025);
}

.insight-developer-card {
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
}

.insight-local-count {
  margin: 8px 0 0;
}

.insight-developer-projects {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  max-height: 224px;
  overflow: auto;
}

.insight-developer-projects li + li {
  border-top: 1px solid #527080;
}

.insight-developer-card .button,
.insight-actions .button {
  color: var(--insight-ink);
  background: #263f50;
  border-color: #77939f;
}

.insight-developer-card .button { margin-top: 12px; }
.insight-actions { margin-top: 13px; }
.insight-entry,.insight-jump { min-height: 44px; }
.insight-entry { display: inline-flex; align-items: center; margin-top: 8px; }

@media (max-width: 1040px) {
  .insight-city-card { grid-template-columns: minmax(0,1fr); }
  .insight-city-image { aspect-ratio: 1.9; }
}

@media (max-width: 600px) {
  .insight-heading { display: block; }
  .insight-fields { margin-top: 8px; grid-template-columns: minmax(0,1fr); }
  .insight-compare-grid,.insight-developer-card { grid-template-columns: minmax(0,1fr); }
  .insight-developer-image { aspect-ratio: 1.65; }
  .insight-note { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .insight-city-image img,.insight-developer-image img { transition: none; }
}
