/* Experience 4.0.10 — targeted CLS/LCP hardening (additive; keeps 4.0.9 design) */

.st-panel {
  contain: layout;
}
#stKpis.st-grid {
  min-height: 18rem;
  contain: layout;
}
.st-panel .st-table-wrap {
  min-height: 360px;
  contain: layout;
}
#stBlTable,
#stBezirkTable {
  min-height: 360px;
  display: block;
  contain: layout;
}
section[aria-labelledby="stBlTitle"] {
  min-height: 42rem;
  contain: layout;
}
.st-kpi-value {
  min-height: 1.35em;
  font-variant-numeric: tabular-nums;
}

.dq-kpi-grid {
  min-height: 9rem;
  contain: layout;
}
.dq-prose {
  min-height: 7.5rem;
  contain: layout;
}
#dqCompleteness.dq-prose {
  min-height: 14rem;
}
.dq-card-grid {
  min-height: 12rem;
  contain: layout;
}

.cmp-chart-slot,
#cmpChart {
  min-height: 300px !important;
  height: 300px !important;
  contain: strict;
}

.pm-map-wrap {
  position: relative;
  min-height: 420px;
  /* Soft fill only — decorative SVG outline removed (not CRS-aligned with markers) */
  background-color: #e8eef5;
  background-image: none;
  contain: layout style;
}
.pm-map-wrap.is-basemap-on {
  background-image: none;
}
#pmMap {
  /* absolute fill is owned by portal-map-4.0.6.css — keep only paint hint here */
  z-index: 1;
  background: transparent;
}
.page-map #pmMap {
  position: absolute !important;
  inset: 0 !important;
  min-height: 0 !important;
}
/* Boost early text LCP vs late map chrome */
.pm-lcp-anchor + h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem) !important;
  letter-spacing: -0.02em;
}
.pm-app h1,
.p-section h1 {
  content-visibility: visible;
}
@media (max-width: 768px) {
  .pm-map-wrap,
  #pmMap {
    min-height: 320px;
  }
}

/* 4.0.11/4.0.12 compare CLS — reserve picker/table so #cmpChart does not jump */
.cmp-pick {
  min-height: 168px;
  contain: layout;
}
#exCompareTable {
  min-height: 120px;
  contain: layout;
}
.cmp-chart-slot-411,
#cmpChart.cmp-chart-slot,
#cmpChart {
  min-height: 320px !important;
  height: 320px !important;
  max-height: 320px !important;
  contain: strict;
  overflow: hidden;
  content-visibility: visible;
  box-sizing: border-box;
  padding: 0 !important;
}
#cmpChart canvas,
#cmpBars {
  display: block !important;
  width: 100% !important;
  height: 300px !important;
  max-height: 300px !important;
}
@media (max-width: 640px) {
  /* 1-column pick cards: reserve full stack height before JS paints */
  .cmp-pick {
    min-height: 560px;
  }
  #exCompareTable {
    min-height: 160px;
  }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .cmp-pick {
    min-height: 320px;
  }
}

/* 4.0.11 map LCP: early typography + stable map box (no content-visibility defer) */
.pm-lcp-anchor + h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.15;
  min-height: 2.5rem;
  content-visibility: visible;
}
.pm-app {
  min-height: 420px;
  contain: layout;
}
@media (max-width: 768px) {
  .pm-app {
    min-height: 360px;
  }
}
