/* CP312: full-width logo slots, aligned footer, and a quiet footer approach. */
.pg-visual-system .pg-site-header .header-inner > .logo,
.pg-visual-system .pg-home-header .pg-home-nav > .pg-home-logo {
  display: flex !important;
  flex: 1 1 0% !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-right: 12px !important;
  overflow: visible !important;
  justify-content: flex-start !important;
}

.pg-visual-system .pg-site-header .header-inner > .logo picture,
.pg-visual-system .pg-home-header .pg-home-nav > .pg-home-logo picture {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 44px !important;
  overflow: visible !important;
  line-height: 0 !important;
}

.pg-visual-system .pg-site-header .header-inner > .logo img,
.pg-visual-system .pg-home-header .pg-home-nav > .pg-home-logo img {
  display: block !important;
  flex-shrink: 0 !important;
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
  object-position: left center !important;
  overflow: visible !important;
}

.pg-visual-system footer#pg-footer.pg-footer-v4 {
  position: relative !important;
  padding: 0 !important;
  overflow: visible !important;
  background-color: #0A1119 !important;
  background-image: none !important;
  border-top: 1px solid rgba(195, 210, 227, .12) !important;
  text-align: left !important;
}

.pg-visual-system footer#pg-footer.pg-footer-v4::before,
.pg-visual-system footer#pg-footer.pg-footer-v4::after,
.subpage-shell footer#pg-footer.pg-footer-v4::before,
.pg-page-quote footer#pg-footer.pg-footer-v4::before {
  display: none !important;
  content: none !important;
  background-image: none !important;
}

.pg-visual-system footer#pg-footer.pg-footer-v4 > .container {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 48px 32px 96px !important;
  text-align: left !important;
}

.pg-visual-system footer#pg-footer .pg-footer-brand,
.pg-visual-system footer#pg-footer .pg-footer-contact,
.pg-visual-system footer#pg-footer .pg-footer-discover,
.pg-visual-system footer#pg-footer .pg-footer-support,
.pg-visual-system footer#pg-footer .pg-footer-trust,
.pg-visual-system footer#pg-footer .pg-footer-legal {
  text-align: left !important;
}

.pg-visual-system footer#pg-footer .pg-footer-logo {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 20px 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  text-align: left !important;
}

.pg-visual-system footer#pg-footer .pg-footer-logo img {
  display: block !important;
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.pg-visual-system footer#pg-footer .pg-footer-contact-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding-inline: 0 !important;
  text-align: left !important;
}

.pg-visual-system footer#pg-footer .pg-footer-social {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

.pg-visual-system footer#pg-footer .pg-social-icon-unconfigured {
  opacity: .68;
  cursor: default;
}

/* Finder filters fill their desktop panel evenly while retaining the mobile disclosure. */
@media (min-width: 769px) {
  .filter-panel:has([data-pg-registry-search]) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: end !important;
  }
  .filter-panel:has([data-pg-registry-search]) .pg-filter-disclosure,
  .filter-panel:has([data-pg-registry-search]) .pg-filter-disclosure-fields {
    display: contents !important;
  }
  .filter-panel:has([data-pg-registry-search]) .pg-filter-disclosure > summary {
    display: none !important;
  }
}

/* A corner consent panel on desktop and a short bar above the mobile action bar. */
.pg-cookie-banner {
  z-index: 1300 !important;
  left: 16px !important;
  right: auto !important;
  bottom: 16px !important;
  transform: none !important;
  width: min(420px, calc(100% - 32px)) !important;
  max-width: 420px !important;
  max-height: min(48vh, 380px) !important;
  padding: 14px !important;
  gap: 8px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  background: #0A1119 !important;
  border-color: rgba(195, 210, 227, .18) !important;
}
.pg-cookie-copy p {
  -webkit-line-clamp: 2 !important;
  max-height: 2.9em !important;
  font-size: .82rem !important;
}
.pg-cookie-banner-options {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px 10px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
}
.pg-cookie-banner-option { padding: 2px 0 !important; gap: 6px !important; }
.pg-cookie-actions { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
.pg-cookie-actions .pg-consent-btn { min-height: 36px !important; padding: 6px 9px !important; font-size: .76rem !important; }

/* Remove the decorative raster layer from every route and use only the navy surfaces. */
:root {
  --pg-approved-energy-art: none !important;
  --pg-lightning-source-art: none !important;
  --pg-lightning-only-filter: none !important;
  --pg-subpage-energy-art: none !important;
}
body.pg-visual-system,
body.pg-page-quote,
.page.home-shell,
.page.subpage-shell,
.pg-page-quote .pg-quote-page,
.pg-page-private { background-color: #020811 !important; }
.page.home-shell::before,
.page.home-shell::after,
.page.subpage-shell::before,
.page.subpage-shell::after,
.pg-page-quote .pg-quote-page::before,
.pg-page-private::before,
.pg-page-private::after,
.pg-partner-page .pg-partner-signal::before,
.pg-industry-page .pg-partner-signal::before,
.pg-industry-page .pg-industry-hero::before,
.pg-industry-page .pg-partner-hero::before,
.pg-partner-page .pg-partner-hero::before,
.pg-a920-pro-hero-media::before,
.pg-a8900-case-hero::before,
.pg-visual-system footer#pg-footer.pg-footer-v4::before,
.pg-page-quote .pg-quote-footer::before {
  display: none !important;
  content: none !important;
  background-image: none !important;
  animation: none !important;
}
.pg-visual-system footer#pg-footer.pg-footer-v4,
.pg-page-quote .pg-quote-footer {
  background-color: #0A1119 !important;
  background-image: none !important;
  border-top: 1px solid rgba(195, 210, 227, .12) !important;
}

/* The page-level artwork ends before the footer instead of continuing behind it. */
.page.home-shell::before,
.page.subpage-shell::before,
.page.subpage-shell::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - clamp(220px, 28vh, 420px)), transparent 100%) !important;
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - clamp(220px, 28vh, 420px)), transparent 100%) !important;
}

@media (max-width: 768px) {
  .pg-visual-system footer#pg-footer.pg-footer-v4 > .container {
    padding: 36px 16px 96px !important;
  }
  .pg-cookie-banner {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(42dvh, 300px) !important;
    padding: 10px !important;
    gap: 6px !important;
  }
  .pg-cookie-copy p { -webkit-line-clamp: 2 !important; max-height: 2.8em !important; }
  .pg-cookie-banner-options { grid-template-columns: 1fr 1fr !important; padding: 4px 6px !important; }
  .pg-cookie-banner-option strong { font-size: .72rem !important; }
  .pg-cookie-banner-option small { font-size: .66rem !important; line-height: 1.25 !important; }
  .pg-cookie-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 5px !important; }
  .pg-cookie-actions .pg-consent-btn { min-height: 34px !important; padding: 5px 4px !important; font-size: .68rem !important; }
}

@media (max-width: 768px) {
  .filter-panel:has([data-pg-registry-search]) { grid-template-columns: 1fr !important; gap: 10px !important; }
  .filter-panel:has([data-pg-registry-search]) .pg-filter-disclosure { display: block !important; }
  .filter-panel:has([data-pg-registry-search]) .pg-filter-disclosure > summary { display: list-item !important; }
  .filter-panel:has([data-pg-registry-search]) .pg-filter-disclosure-fields { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
}
