/*
 * Global guard: decorative hero / illustration / margin-art must never swallow clicks.
 * Descendants default to pointer-events:auto even when a parent has pointer-events:none.
 * Interactive content sits in separate layers with isolation + z-index (see §content).
 */

/* §decorative — aria-hidden decoration (exclude modal scrims/backdrops that must receive clicks) */
[aria-hidden="true"]:not(.kk-filter-scrim):not(.modal-backdrop):not([class*="scrim"]):not([class*="backdrop"]),
[aria-hidden="true"]:not(.kk-filter-scrim):not(.modal-backdrop):not([class*="scrim"]):not([class*="backdrop"]) * {
  pointer-events: none;
}

/* The aria-hidden node itself must not capture taps (descendants-only rules are insufficient). */
[aria-hidden="true"]:not(.kk-filter-scrim):not(.modal-backdrop):not([class*="scrim"]):not([class*="backdrop"]) {
  pointer-events: none;
}

/* §decorative — shared class suffixes for art / hero bands / spots */
[class*="__art"],
[class*="__art"] *,
[class*="__hero-art"],
[class*="__hero-art"] *,
[class*="__emp-art"],
[class*="__emp-art"] *,
[class*="__card-spot"],
[class*="__card-spot"] *,
.hero-art,
.hero-art *,
.cand-hero::before,
.cand-hero::after,
.cand-hero--profession-band::after,
.cand-hero__media,
.cand-hero__media *,
.cand-hero__mob-figures-wrap,
.cand-hero__mob-figures-wrap *,
.ob-illustrated-step__hero-band,
.ob-illustrated-step__mobile-cover,
.ob-illustrated-step__mobile-cover::before,
.ob-illustrated-step__mobile-cover-art,
.ob-illustrated-step__mobile-cover-art *,
.ob-illustrated-step__art,
.ob-illustrated-step__art *,
.ob-illustrated-step__art-img-wrap,
.ob-illustrated-step__art-img-wrap *,
.ob-finale__art,
.ob-finale__art *,
.ob-finale__hero::before,
.ob-finale__hero::after,
.ob-journey__art-block,
.ob-journey__art-block *,
.ob-journey__art,
.ob-journey__art *,
.ndm .band .art,
.ndm-hero__art,
.ndm-hero__art *,
.ref-verif-hero__art,
.ref-verif-hero__art *,
.ref-verif-gev-hero__art,
.ref-verif-gev-hero__art *,
.ref-verif-illustrated-band,
.ref-verif-illustrated-band *,
.cand-band__art,
.cand-band__art *,
.cand-empty__art,
.cand-empty__art *,
.cand-apply-tip__art,
.cand-apply-tip__art *,
.kompas-tip__art,
.kompas-tip__art *,
.kb-nearby-banner__art,
.kb-nearby-banner__art *,
.bk-hero__art,
.bk-hero__art *,
.pp-company__hero-art,
.pp-company__hero-art *,
.test-mirror__hero-art,
.test-mirror__hero-art *,
.err-hero__art,
.err-hero__art *,
.wa-guide__art,
.wa-guide__art *,
.pub-theme .pub-landing__hero-art-band,
.pub-theme .pub-landing__hero-scene,
.pub-theme .pub-landing__hero-scene *,
.gd-side-scene__art,
.gd-side-scene__art *,
.gev-hero__art,
.gev-hero__art * {
  pointer-events: none;
}

.cand-compact-hero__art,
.cand-compact-hero__art *,
.cand-hero__compact-c-art,
.cand-hero__compact-c-art *,
.test-block-stage__mobile-hero--band,
.test-block-stage__mobile-hero--compact,
.test-block-stage__mobile-hero__figure,
.test-block-stage__mobile-hero__figure *,
.test-block-stage__mobile-hero__fade,
.test-block-stage__scene-band {
  pointer-events: none;
}

/* Compact hero band: inert shell; copy (and its controls) stay clickable. */
header.cand-compact-hero.cand-hero--compact-preview-c {
  pointer-events: none;
}

header.cand-compact-hero.cand-hero--compact-preview-c .cand-compact-hero__copy,
header.cand-compact-hero.cand-hero--compact-preview-c .cand-compact-hero__copy * {
  pointer-events: auto;
}

/* §content — raise interactive copy/forms above full-bleed art */
.cand-hero__copy,
.ob-illustrated-step__body,
.ob-illustrated-step__form,
.ob-illustrated-step__head,
.ob-finale__hero-inner,
.ob-finale__wrap,
.pub-theme .pub-landing__hero-copy,
.pub-theme .pub-landing__hero-grid,
.ndm .band .bt,
.ref-verif-gev-hero .ref-verif-cand-hero__copy,
.test-mirror__hero-inner,
.bk-page__hero-stack,
.panel-page--cand-ill .panel-page__body,
.panel-page--cand-ill main,
.kb-apps--illustrated .kb-apps__toolbar,
.jobsy-discovery .filter-bar,
.test-block-stage__content,
.test-block-stage__content .test-shell__main,
.test-block-stage__content .test-shell__card,
.test-block-stage__content .test-flow,
.ob-illustrated-step--compact-preview-c .cand-compact-hero--onboarding .cand-compact-hero__copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.ob-illustrated-step--compact-preview-c > header.cand-compact-hero--onboarding {
  pointer-events: none;
}

.ob-illustrated-step--compact-preview-c > header.cand-compact-hero--onboarding .cand-compact-hero__copy {
  pointer-events: auto;
}
