/* Equal canvas geometry for results, analytics and municipality surfaces. */
html body :is(#mapCounty,#mapCountySenate,#mapAnalysis,#mapAnalysisGovernor,#mapAnalysisSenate,#mapAnalysisHouse,#mapHero,.cm-municipality-map).cm-detail-map-viewport.cm-detail-map-viewport{
  box-sizing:border-box !important;
  width:100% !important;
  height:440px !important;
  min-height:440px !important;
  max-height:440px !important;
  aspect-ratio:auto !important;
  padding:0 !important;
}
@media(max-width:760px){
  html body :is(#mapCounty,#mapCountySenate,#mapAnalysis,#mapAnalysisGovernor,#mapAnalysisSenate,#mapAnalysisHouse,#mapHero,.cm-municipality-map).cm-detail-map-viewport.cm-detail-map-viewport{
    height:360px !important;
    min-height:360px !important;
    max-height:360px !important;
  }
}

/* Old analytics-card rules used negative margins and full-bleed widths. These
   are now panes of the results card and must share its content box. */
html body.en-primary-detail :is(#liveMapCard,#liveMapCardSenate) > .cmep-map-pane:is(#resultsMapPane,#resultsMapPaneSenate,#analysisMapCard,#analysisMapCardGovernor,#analysisMapCardSenate){
  box-sizing:border-box !important;
  width:100% !important;max-width:100% !important;min-width:0 !important;
  margin:0 !important;padding:0 !important;
  border:0 !important;border-radius:0 !important;
  background:transparent !important;box-shadow:none !important;
}
html body.en-primary-detail :is(#liveMapCard,#liveMapCardSenate) .cmep-map-pane > :is(.cm-map-frame,.analysis-legend){
  box-sizing:border-box !important;width:100% !important;max-width:100% !important;
  min-width:0 !important;margin-inline:0 !important;
}
html body.en-primary-detail :is(#liveMapCard,#liveMapCardSenate) .cmep-map-pane > .analysis-legend{
  min-height:32px !important;gap:8px !important;
}
