/* Page-specific additions are reserved for the visual QA phase. */

/* Hide archived consent interface. */
#cc-window, .cc-revoke, .cc-revoke-custom, .cmplz-cookiebanner, .cmplz-soft-cookiewall { display: none !important; }

#colophon.site-footer {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  clear: both;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
  background: #EFF1F4;
}

#colophon .site-info,
#colophon .container-fluid,
#colophon .row-footer {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#colophon .row-footer > .container {
  max-width: 1140px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Kill leftover narrow footers from old landing versions */
.container-fluid.footer.col-lg-7,
div.footer.col-lg-7,
.container-fluid.footer {
  display: none !important;
}

/* Peugeot / dealer landings: keep form block readable when hero assets are missing */
.row-2 .div-form {
  margin: 24px auto 8px;
  max-width: 420px;
  width: 100%;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #d9dee7;
  box-sizing: border-box;
}
.row-2 .div-form > p {
  font-weight: 700;
  color: #162133;
  margin-bottom: 16px;
}
.branding_title_landing p {
  margin: 0;
  color: #fff;
  font-weight: 700;
}
.branding_title_landing span {
  color: #c9d2e3;
}

/* Hide empty carousel leftovers */
.carousel .carousel-inner:empty,
#carouselOfertas,
#carouselOfertasResponsive,
#carouselHeader {
  display: none !important;
}

/* Don't show disabled monetization leftovers */
.romlifooter:empty { display: none !important; }

/* ============================================================
   Unified layout — same menu rail + full-width text pages
   ============================================================ */

/* Hide leftover WordPress mastheads from old PSA Retail pages */
#masthead.site-header,
.site-branding-container {
  display: none !important;
}

/* Shared nav rail = Bootstrap .container (1140px) */
nav[aria-label="Navegación principal"] > .container,
nav[aria-label="Main navigation"] > .container {
  max-width: 1140px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* Text/legal pages (.entry): kill Twenty Nineteen half-column layout */
.site-main > .entry,
.site-main > article.entry {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
  width: 100%;
}

.entry .entry-header {
  margin: 2rem 0 1rem !important;
  max-width: 100% !important;
}

.entry .entry-content > *,
.entry .entry-summary > *,
.entry .entry-summary > .wp-block-group > .wp-block-group__inner-container > *,
.entry .entry-content > .wp-block-group > .wp-block-group__inner-container > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.entry .entry-content > *.alignwide,
.entry .entry-content > *.alignfull,
.entry .entry-content > *.aligncenter,
.entry .entry-content > *.alignleft,
.entry .entry-content > *.alignright {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Article template (content + sidebar) uses the same rail */
.site-main > .container {
  max-width: 1140px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .site-main > .entry,
  .site-main > article.entry {
    max-width: 100%;
  }
}
