/* Shared hero treatment. Keep native controls and each page's own text. */
@layer webnau-hero {
  :is(.ve-hero, .wn-p15-hero, .wn909-document .hero, .wn-about-hero,
      .wn287-page-banner, .wn357-commercial, .wn367-welcome, .wn-login-intro,
      #main-body .primary-content:not(:has(> .wn287-page-banner, > .wn909-document)) > .header-lined:has(h1):not(:empty),
      #order-standard_cart .cart-body > .header-lined:has(h1)) {
    --wn-hero-title: #fff;
    --wn-hero-copy: #eaf4fa;
    --wn-hero-label: #c5dcff;
    background: linear-gradient(105deg, rgba(7,26,51,.98), rgba(16,47,81,.92) 55%, rgba(16,47,81,.82));
    color: var(--wn-hero-copy) !important;
    border-radius: 10px !important;
    padding: clamp(24px,3.5vw,48px) !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    text-align: left !important;
    & :is(h1,.wn287-page-title) {
      color: var(--wn-hero-title) !important;
      -webkit-text-fill-color: currentColor !important;
      font-size: clamp(27px,2.7vw,40px) !important;
      line-height: 1.15 !important;
      letter-spacing: -.025em !important;
      font-weight: 700 !important;
      opacity: 1 !important;
    }
    & h1 :is(em,small,span):not(.ve-hero h1 em), & h2 { color: var(--wn-hero-title) !important; -webkit-text-fill-color:currentColor !important; }
    & p:not(.wn287-page-title) {color:var(--wn-hero-copy) !important; opacity:1 !important; font-size:clamp(15px,1.15vw,17px) !important; line-height:1.55 !important;}
    & :is(.eyebrow,.ve-kicker,.wn357-kicker,.wn367-page-kicker,.wn367-kicker,.wn-p15-kicker) {color:var(--wn-hero-label) !important;}
    & > .hero-inner {padding:0 !important; margin:0 !important; width:100% !important;}
    & :is(.ve-hero-copy,.wn-p15-hero-copy) {background:transparent !important; padding:0 !important;}
    & > :is(.wn-p26-art,.wn357-art) {display:none !important;}
  }
  :is(.ve-hero,.wn-p15-hero,.wn357-commercial) {grid-template-columns:minmax(0,1fr) !important;}
  :is(.ve-hero,.wn-about-hero,.wn-p15-hero,.wn357-commercial,.wn287-page-banner,.wn367-welcome,.wn-login-intro)::before,
  :is(.ve-hero,.wn-about-hero,.wn-p15-hero,.wn357-commercial,.wn287-page-banner,.wn367-welcome,.wn-login-intro)::after {background:none !important;pointer-events:none !important;}
  a[href^="https://www.livroreclamacoes.pt/"], a[href^="https://www.livroreclamacoes.pt/"] * { text-decoration:none !important; }
  @media (forced-colors: active) {
    :is(.ve-hero,.wn-p15-hero,.wn909-document .hero,.wn-about-hero,.wn287-page-banner,.wn357-commercial,.wn367-welcome,.wn-login-intro,#main-body .header-lined:has(h1)) {
      --wn-hero-title:CanvasText; --wn-hero-copy:CanvasText; --wn-hero-label:CanvasText;
      background:Canvas !important; border:1px solid CanvasText !important;
    }
  }
}

/* P008 — exception to the shared hero layer (important layered declarations
   take precedence over unlayered rules). Only the relocated public hero. */
@layer webnau-hero {
  #wn188-intro#wn188-intro#wn188-intro#wn188-intro.wn008-full-hero > .ve-hero {
    border-radius:0!important;
    padding:0!important;
    min-height:clamp(420px,34vw,570px)!important;
  }
  #wn188-intro#wn188-intro#wn188-intro#wn188-intro.wn008-full-hero > .ve-hero > .ve-hero-copy {
    padding:clamp(24px,3vw,44px)!important;
  }
  @media(max-width:991.98px) {
    #wn188-intro#wn188-intro#wn188-intro#wn188-intro.wn008-full-hero > .ve-hero {min-height:0!important;}
    #wn188-intro#wn188-intro#wn188-intro#wn188-intro.wn008-full-hero > .ve-hero > .ve-hero-copy {padding:28px 24px 20px!important;}
  }
}
