/* Care Practice Snapshot: WordPress / Elementor layout guard (design CSS stays untouched).
   Forces the 720px centred column even if the theme overrides the generic .wrap class. */

/* 1. Let the shortcode widget use the full width of its container */
.elementor-widget-shortcode,
.elementor-widget-shortcode > .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode {
  width: 100% !important;
  max-width: none !important;
}

/* 2. Header band + main stretch full width as normal blocks */
header.band,
header.band + main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
main:has(> #app) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3. The 720px centred column (width capped by the viewport, not by the parent) */
header.band > .wrap,
#app.wrap {
  box-sizing: border-box !important;
  width: min(720px, 100vw) !important;
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  float: none !important;
}
header.band > .wrap { display: flex !important; }

/* 4. Stop grids and text from stretching the column */
#app .screen,
#app .intro,
#app .gate,
#app .report,
#app .q { min-width: 0 !important; max-width: 100% !important; }
#app h1, #app h2, #app h3, #app p { max-width: 100%; overflow-wrap: break-word; }
#app .topics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#app .form   { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#app .topic, #app .field { min-width: 0 !important; }
@media (max-width: 560px) {
  #app .topics, #app .form { grid-template-columns: minmax(0, 1fr) !important; }
}
