/* Visible labels and their click/focus footprints are now the same element.
   Back, CTA, artwork, header motion and measured section targets stay owned by
   their existing modules. The four-item row ends at the authored Details edge. */
[data-alma-retired-product-nav]{display:none!important}
.alma-product-nav-links{display:flex;align-items:center;gap:clamp(12px,1.666666667cqw,24px)}
.alma-product-nav-links :is(a,button){position:static!important;inset:auto!important;width:auto!important;height:auto!important;min-width:0;border:0;background:none;padding:10px 0!important;margin:0!important;color:#263034;white-space:nowrap;font:400 clamp(11px,.972222222cqw,18px)/1 Onest,sans-serif;font-kerning:none;letter-spacing:0;cursor:pointer;text-decoration:none!important;transition:opacity .45s ease}
.alma-product-nav-links :is(a,button):hover{opacity:.8}
.alma-product-nav-links :is(a,button):focus-visible{outline:1px solid currentColor;outline-offset:4px}
@media(min-width:1000px){
 .on-model #header .model-nav.alma-product-nav-owner{opacity:1!important;pointer-events:none}
 .on-model #header .model-nav.alma-product-nav-owner>[data-back]{opacity:0;pointer-events:auto}
 #header .model-nav .alma-product-nav-links,.catalog-header>.alma-product-nav-links{position:absolute;right:18.823750814%;top:calc(36.345 / 94 * 100% - 10px);width:max-content;height:auto;margin:0;z-index:5;pointer-events:auto}
 .catalog-header .alma-product-nav-links [data-gallery-header-role].gallery-photo-light{color:#fff!important}
}
@media(max-width:999px){
 .catalog-header>.alma-product-nav-links{display:none}
 .on-model.menu-open #header .model-nav .alma-product-nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%}
 .on-model.menu-open #header .model-nav .alma-product-nav-links a{display:flex;align-items:center;min-height:44px;font-size:16px}
 .mobile-model-anchors[data-alma-product-navigation]{left:24px!important;width:calc(100% - 48px)!important;gap:8px!important;justify-content:space-between!important}
 .mobile-model-anchors[data-alma-product-navigation] a{position:static!important;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0!important;color:#263034!important;font:400 12px/1 Onest,sans-serif;white-space:nowrap;visibility:visible!important}
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]{display:grid;grid-template-columns:repeat(4,minmax(44px,max-content));justify-content:space-between;gap:0 6px;padding:4px 24px}
 /* Keep the existing Back control clear of the left-aligned gallery title. */
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>:first-child{grid-column:1 / -1;justify-self:end}
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>button{min-width:44px;min-height:44px;padding:0;font:400 12px/1 Onest,sans-serif;white-space:nowrap}
 /* Keyboard focus stays with the four real labels. An outward ring crosses
    the gallery title; an inset ring would cross these unpadded glyphs. */
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>button[data-product-stop]:focus-visible{
  outline:none;text-decoration-line:underline;text-decoration-thickness:2px;
  text-decoration-color:currentColor;text-underline-offset:6px;text-decoration-skip-ink:none;
 }
 #product-pages .catalog-header:has(.catalog-mobile-nav[data-alma-product-navigation]){height:96px}
 #product-pages:has(.catalog-mobile-nav[data-alma-product-navigation]) .catalog-section:first-of-type{margin-top:96px}
}
@media(prefers-reduced-motion:reduce){.alma-product-nav-links :is(a,button){transition:none}}
@media(max-width:999px) and (forced-colors:active){
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>button[data-product-stop]:focus-visible{
  text-decoration-color:ButtonText;forced-color-adjust:auto;
 }
}

/* Photo protection owns paint only. Authored absolute title/Back positions
   remain unchanged; only static semantic controls need a local paint context. */
@media(forced-colors:none){
 .catalog-header [data-gallery-header-role].gallery-photo-protected,
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>button.gallery-photo-protected,
 #header .alma-product-nav-links a.gallery-photo-protected,
 #header .approved-model-header .approved-text.gallery-photo-protected{
  isolation:isolate;color:#263034!important;-webkit-text-fill-color:currentColor!important;
 }
 .catalog-header .alma-product-nav-links>button.gallery-photo-protected,
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>button.gallery-photo-protected,
 #header .alma-product-nav-links>a.gallery-photo-protected{position:relative!important}
 .catalog-header [data-gallery-header-role].gallery-photo-protected::before,
 #product-pages .catalog-mobile-nav[data-alma-product-navigation]>button.gallery-photo-protected::before,
 #header .alma-product-nav-links a.gallery-photo-protected::before,
 #header .approved-model-header .approved-text.gallery-photo-protected::before{
  content:"";position:absolute;pointer-events:none;z-index:-1;
  left:var(--gallery-protection-x);top:var(--gallery-protection-y);
  width:var(--gallery-protection-width);height:var(--gallery-protection-height);
  background:rgba(233,236,233,.96);border-radius:2px;
 }
 .catalog-header button.gallery-photo-protected:focus-visible,
 #header .alma-product-nav-links>a.gallery-photo-protected:focus-visible{
  outline:none!important;text-decoration:none!important;
 }
 .catalog-header button.gallery-photo-protected:focus-visible::before,
 #header .alma-product-nav-links>a.gallery-photo-protected:focus-visible::before{
  box-shadow:inset 0 0 0 1px #263034;
 }
}

/* A semantic Back hit area and its authored visible label are one focus owner.
   CSS mirrors focus paint only; it never transfers focus or scrolls. */
@media(min-width:1000px){
 #header:has(.model-nav.alma-product-nav-owner>[data-back]:focus-visible) .approved-model-header [data-gallery-focus-label="back"],
 .catalog-header:has(>[data-gallery-focus-owner="back"]:focus-visible) [data-gallery-header-role="back"]{
  outline:1px solid currentColor;outline-offset:3px;
 }
 .catalog-header>[data-gallery-focus-owner="back"]:focus-visible{outline:none}
}
@media(min-width:1000px) and (forced-colors:none){
 #header:has(.model-nav.alma-product-nav-owner>[data-back]:focus-visible) .approved-model-header [data-gallery-focus-label="back"].gallery-photo-protected,
 .catalog-header:has(>[data-gallery-focus-owner="back"]:focus-visible) [data-gallery-header-role="back"].gallery-photo-protected{outline:none}
 #header:has(.model-nav.alma-product-nav-owner>[data-back]:focus-visible) .approved-model-header [data-gallery-focus-label="back"].gallery-photo-protected::before,
 .catalog-header:has(>[data-gallery-focus-owner="back"]:focus-visible) [data-gallery-header-role="back"].gallery-photo-protected::before{
  box-shadow:inset 0 0 0 1px #263034;
 }
}

/* Filled Discuss plaques keep their authored fill and lift. Keyboard focus
   also has a static visible mark, including reduced-motion/no-motion mode. */
@media(min-width:1000px){
 #header:has(>.header-cta:focus-visible) .approved-model-header [data-gallery-focus-label="discuss"],
 .catalog-header:has(>[data-gallery-focus-owner="discuss"]:focus-visible) [data-gallery-focus-label="discuss"]{
  outline:1px solid #fff;outline-offset:3px;
 }
 .catalog-header>[data-gallery-focus-owner="discuss"]:focus-visible{outline:none}
}
@media(min-width:1000px) and (forced-colors:active){
 #header:has(>.header-cta:focus-visible) .approved-model-header [data-gallery-focus-label="discuss"],
 .catalog-header:has(>[data-gallery-focus-owner="discuss"]:focus-visible) [data-gallery-focus-label="discuss"]{outline-color:ButtonText}
}
