/* CP282.3: legacy art placements stay off; the last-loaded shared stylesheet
   restores the luminance-keyed lightning layer consistently on all routes. */
:root {
  --pg-approved-energy-art: none;
}

body.pg-page-private {
  position: relative;
  isolation: isolate;
}

body.pg-page-private::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: var(--pg-approved-energy-art);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: min(1600px, 100vw) auto;
  opacity: .16;
  mix-blend-mode: screen;
}

/* Shared top chrome makes the blue/red energy identity consistent on every
   public subpage while keeping the logo and navigation on a solid dark base. */
.subpage-shell > header,
.pg-page-quote .pg-quote-header {
  background-color: rgba(2, 8, 17, .97) !important;
  background-image:
    linear-gradient(90deg, rgba(2, 8, 17, .96), rgba(2, 8, 17, .77) 58%, rgba(2, 8, 17, .95)),
    var(--pg-approved-energy-art) !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 48%;
  background-size: auto, min(580px, 52vw) auto;
}

.pg-page-quote .pg-quote-page {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(2, 8, 17, .10), rgba(2, 8, 17, .22)) !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* All subpages share this footer treatment. The dark veil protects legibility. */
.subpage-shell .footer.pg-footer-v4::before,
.pg-page-quote .pg-quote-footer::before {
  content: "" !important;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 17, .50), rgba(2, 8, 17, .70)),
    var(--pg-approved-energy-art) !important;
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 45%;
  background-size: cover, min(1440px, 100%) auto;
}

.subpage-shell .footer.pg-footer-v4 > .container,
.pg-page-quote .pg-quote-footer > * {
  position: relative;
  z-index: 1;
}

/* Replace legacy red-only vectors inside the model-specific visual frames. */
.subpage-shell .product-page[data-pg-product-id="a920"] .pg-a920-pro-hero-media::before,
.subpage-shell .product-page[data-pg-product-id="a8900"] .pg-a8900-case-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: var(--pg-approved-energy-art) !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 118% auto;
}

@media (max-width: 900px) {
  body.pg-page-private::before {
    background-image: var(--pg-approved-energy-art), var(--pg-approved-energy-art);
    background-position: left top, right top;
    background-size: auto 58vh, auto 58vh;
    background-repeat: repeat-y, repeat-y;
    opacity: .14;
  }

  .subpage-shell > header,
  .pg-page-quote .pg-quote-header {
    background-image:
      linear-gradient(90deg, rgba(2, 8, 17, .94), rgba(2, 8, 17, .82) 58%, rgba(2, 8, 17, .94)),
      var(--pg-approved-energy-art) !important;
    background-position: center, right 50%;
    background-size: auto, 390px auto;
  }

  .pg-page-quote .pg-quote-footer::before {
    opacity: .25;
    background-image:
      linear-gradient(180deg, rgba(2, 8, 17, .52), rgba(2, 8, 17, .75)),
      var(--pg-approved-energy-art) !important;
    background-position: center, center 50%;
    background-size: cover, 168vw auto;
  }

  .subpage-shell .product-page[data-pg-product-id="a920"] .pg-a920-pro-hero-media::before,
  .subpage-shell .product-page[data-pg-product-id="a8900"] .pg-a8900-case-hero::before {
    background-position: center 48%;
    background-size: 142% auto;
    opacity: .23;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-page-quote .pg-quote-page,
  body.pg-page-private::before {
    background-attachment: scroll;
  }
}

/* CP253: carry the approved energy treatment through page content instead of
   reserving its full color and detail for the footer. */
.page.subpage-shell {
  position: relative;
  isolation: isolate;
  z-index: 0;
  background-color: #020811 !important;
  background-image:
    radial-gradient(ellipse at 8% 18%, rgba(0, 132, 255, .12), transparent 36%),
    radial-gradient(ellipse at 92% 70%, rgba(255, 18, 57, .09), transparent 34%),
    linear-gradient(180deg, #020811 0%, #030914 55%, #01050b 100%) !important;
}

.page.subpage-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: var(--pg-approved-energy-art);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: min(2172px, 100vw) auto;
  opacity: .22;
  filter: contrast(1.55) saturate(1.2);
  mix-blend-mode: screen;
}

.subpage-shell main > .subpage-visual-scene,
.subpage-shell main > .legal-page,
.subpage-shell main > .section {
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(2, 8, 17, .10), rgba(2, 8, 17, .22)) !important;
}

.subpage-shell .footer.pg-footer-v4::before {
  background-image: var(--pg-approved-energy-art) !important;
  background-position: center 48%;
  background-size: min(1800px, 100%) auto;
  opacity: .25 !important;
  filter: contrast(1.8) saturate(1.25);
  mix-blend-mode: screen;
}

.subpage-shell .footer.pg-footer-v4::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 17, .24), rgba(2, 8, 17, .4));
}

.subpage-shell .footer.pg-footer-v4 > .container {
  z-index: 1;
}

/* Keep the locked homepage hero unchanged while carrying its approved storm
   through the supporting sections on desktop and mobile. */
.pg-page-home :is(.pgd-section, .pgd-finder, .pgd-brands, .pgd-protection,
  .pgm-copy, .pgm-benefits, .pgm-categories, .pgm-accessory-links, .pgm-promo) {
  position: relative;
  isolation: isolate;
}

.pg-page-home :is(.pgd-section, .pgd-finder, .pgd-brands, .pgd-protection,
  .pgm-copy, .pgm-benefits, .pgm-categories, .pgm-accessory-links, .pgm-promo)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: var(--pg-approved-energy-art), var(--pg-approved-energy-art);
  background-repeat: no-repeat, no-repeat;
  background-position: left center, right center;
  background-size: auto 100%, auto 100%;
  opacity: .13;
  filter: contrast(1.45) saturate(1.18);
  mix-blend-mode: screen;
}

/* The standalone B2B request form has a separate page shell. */
.pg-page-quote .pg-quote-page {
  position: relative;
  isolation: isolate;
}

.pg-page-quote .pg-quote-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: var(--pg-approved-energy-art);
  background-repeat: repeat-y;
  background-position: center top;
  background-size: min(2172px, 100vw) auto;
  opacity: .25;
  filter: contrast(1.45) saturate(1.18);
  mix-blend-mode: screen;
}

@media (max-width: 900px) {
  .page.subpage-shell::before {
    inset: 0;
    background-image: var(--pg-approved-energy-art), var(--pg-approved-energy-art);
    background-size: auto 58vh, auto 58vh;
    background-position: left top, right top;
    background-repeat: repeat-y, repeat-y;
    opacity: .24;
    filter: contrast(1.4) saturate(1.15);
  }

  body.pg-page-private::before {
    background-image: var(--pg-approved-energy-art), var(--pg-approved-energy-art);
    background-size: auto 58vh, auto 58vh;
    background-position: left top, right top;
    background-repeat: repeat-y, repeat-y;
    opacity: .20;
  }

  .subpage-shell .footer.pg-footer-v4::before {
    background-size: cover, auto 58vh;
    background-position: center, center center;
    opacity: .25 !important;
  }

  .pg-page-home :is(.pgd-section, .pgd-finder, .pgd-brands, .pgd-protection,
    .pgm-copy, .pgm-benefits, .pgm-categories, .pgm-accessory-links, .pgm-promo)::before {
    background-size: auto max(100%, 220px), auto max(100%, 220px);
    opacity: .12;
  }

  .pg-page-quote .pg-quote-page::before {
    background-image: var(--pg-approved-energy-art), var(--pg-approved-energy-art);
    background-size: auto 58vh, auto 58vh;
    background-position: left top, right top;
    background-repeat: repeat-y, repeat-y;
    opacity: .21;
    filter: contrast(1.35) saturate(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page.subpage-shell::before,
  body.pg-page-private::before { background-attachment: scroll; }
}

/* Keep the expanded destination navigation readable on desktop subpages. */
@media (min-width:901px){
  body:not(.pg-page-home) .nav{gap:clamp(10px,1.25vw,18px)}
  body:not(.pg-page-home) .links{gap:clamp(9px,1vw,15px)}
  body:not(.pg-page-home) .links>a:not(.cta),body:not(.pg-page-home) .links>.lang .langbtn{font-size:.72rem;letter-spacing:0;white-space:nowrap}
  body:not(.pg-page-home) .links>a.cta{white-space:nowrap;padding-inline:14px}
}
@media (min-width:901px) and (max-width:1150px){
  body:not(.pg-page-home) .logo img{width:clamp(145px,14vw,170px)}
  body:not(.pg-page-home) .links{gap:8px}
  body:not(.pg-page-home) .links>a:not(.cta),body:not(.pg-page-home) .links>.lang .langbtn{font-size:.65rem}
  body:not(.pg-page-home) .pg-command-trigger-nav{display:none}
}


/* CP253/v238: show complete product artwork and keep large registries compact. */
body.pg-page-category .product-page[data-category-id="screen_protection"] .product-image-wrap {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 18% 82%, rgba(0, 112, 255, .16), transparent 42%),
    radial-gradient(ellipse at 82% 82%, rgba(255, 22, 60, .13), transparent 40%),
    #020811 !important;
}
body.pg-page-category .product-page[data-category-id="screen_protection"] .product-image-wrap > img {
  object-fit: contain !important;
  padding: 0;
  mix-blend-mode: screen;
  transform: scale(1.28);
}

.subpage-shell .registry-grid[data-pg-registry] {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  scroll-margin-top: 104px;
  max-height: min(70vh, 48rem);
  max-height: min(70dvh, 48rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  align-content: start;
}
.subpage-shell .registry-grid[data-pg-registry][hidden] {
  display: none !important;
}
.pg-registry-selection-title {
  margin: 18px 0 10px;
  color: #f4f8ff;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}
.registry-select-prompt {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border: 1px dashed rgba(75, 160, 225, .42);
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(5, 18, 34, .72), rgba(2, 8, 17, .56));
  color: #c4d7ec;
}
.registry-select-prompt[hidden],
.pg-registry-selection-title[hidden] {
  display: none !important;
}
.subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 15px;
  border-radius: 14px;
}
.subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card][hidden] {
  display: none !important;
}
.subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] h2 {
  margin: 0;
  font-size: clamp(.96rem, 1.2vw, 1.08rem) !important;
  line-height: 1.25;
}
.subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] p {
  margin: 0;
  font-size: .78rem;
  line-height: 1.35;
}
.subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] .product-more {
  margin-top: 3px;
  font-size: .78rem;
  line-height: 1.3;
}

/* Partnership form introduction sits above a full-width form. */
.subpage-shell .pg-partner-page .pg-partner-form-wrap {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.subpage-shell .pg-partner-page .pg-partner-form-wrap > div:first-child {
  max-width: none;
}
.subpage-shell .pg-partner-page .pg-partner-form-wrap .pg-partner-form {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .subpage-shell .registry-grid[data-pg-registry] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: min(62dvh, 40rem);
  }
  .subpage-shell .pg-partner-page .pg-partner-form-wrap .pg-partner-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .subpage-shell .registry-grid[data-pg-registry] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .subpage-shell .registry-grid[data-pg-registry] > [data-pg-registry-card] {
    padding: 11px 12px;
  }
  .subpage-shell .pg-partner-page .pg-partner-form-wrap .pg-partner-form {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* CP259: crisp lightning with no blurred smoke duplicate. */
.page.subpage-shell::before {
  opacity: .22 !important;
  filter: contrast(1.32) saturate(1.08) brightness(1.02);
  backdrop-filter: none !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
html { scroll-behavior: smooth; scroll-padding-top: clamp(76px, 8vh, 108px); }
.pg-reveal { opacity: 0; transition: opacity .42s cubic-bezier(.2,.65,.25,1); }
.pg-reveal.is-visible { opacity: 1; }
@media (max-width: 900px) {
  .page.subpage-shell::before {
    background-image: var(--pg-approved-energy-art), var(--pg-approved-energy-art);
    background-size: auto 66vh, auto 66vh;
    background-position: left top, right top;
    background-repeat: repeat-y, repeat-y;
    opacity: .22 !important;
    filter: contrast(1.32) saturate(1.08) brightness(1.02);
    backdrop-filter: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .pg-reveal, .pg-reveal.is-visible { opacity: 1 !important; transition: none !important; }
}

/* Keep every atmospheric use of the approved lightning art below the 25% cap. */
body.pg-page-private::before{image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}
.subpage-shell .footer.pg-footer-v4::before{opacity:.25!important;filter:contrast(1.3) saturate(1.08);image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}
@media(max-width:900px){.subpage-shell .footer.pg-footer-v4::before{opacity:.25!important}}
