/* NAV-07: exactly one horizontal scroll owner: UL inside existing category NAV. */
.dj-desktop-topics,.dj-mobile-topics{position:relative;display:flex;align-items:center;gap:0;min-width:0;overflow:visible}
:is(.dj-desktop-topics,.dj-mobile-topics) nav.wp-block-navigation{flex:1 1 auto;width:auto;min-width:0;max-width:100%;overflow:visible}
:is(.dj-desktop-topics,.dj-mobile-topics) ul.wp-block-navigation__container::-webkit-scrollbar{display:none}
:is(.dj-desktop-topics,.dj-mobile-topics) .wp-block-navigation__responsive-container,
:is(.dj-desktop-topics,.dj-mobile-topics) .wp-block-navigation__responsive-container-content{width:100%;min-width:0;max-width:100%}
:is(.dj-desktop-topics,.dj-mobile-topics) .wp-block-navigation__container{display:flex;align-items:stretch;flex-wrap:nowrap;flex:1 1 auto;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:auto;gap:8px;margin:0;padding:10px 0;list-style:none}
:is(.dj-desktop-topics,.dj-mobile-topics) .wp-block-navigation-item{flex:1 0 125px;max-width:146px;min-width:0;margin:0;padding:0}
:is(.dj-desktop-topics,.dj-mobile-topics) a.wp-block-navigation-item__content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;height:100%;min-height:130px;padding:6px 4px 8px;white-space:normal;color:#242723;text-decoration:none!important;border:0;border-radius:9px;box-shadow:none;font:13px/1.25 Arial,Helvetica,sans-serif;text-align:center}
:is(.dj-desktop-topics,.dj-mobile-topics) a.wp-block-navigation-item__content:hover{background:#f7f6f2}
:is(.dj-desktop-topics,.dj-mobile-topics) a.wp-block-navigation-item__content:focus-visible{outline:2px solid #8a775c;outline-offset:-2px}
:is(.dj-desktop-topics,.dj-mobile-topics) .dj-topic-media{display:flex;align-items:center;justify-content:center;width:100%;height:84px;flex:none;overflow:hidden}
:is(.dj-desktop-topics,.dj-mobile-topics) .dj-topic-media img{display:block;width:84px;height:84px;object-fit:contain;mix-blend-mode:multiply}
:is(.dj-desktop-topics,.dj-mobile-topics) .wp-block-navigation-item__label{display:block;min-height:32px;max-width:135px;text-align:center}
:is(.dj-desktop-topics,.dj-mobile-topics) :is(.current-menu-item>a,a[aria-current="page"]){background:#f6f4ef;box-shadow:inset 0 -2px #8a775c;font-weight:600}
.dj-topic-step{position:relative;display:flex;flex:0 0 28px;align-items:center;justify-content:center;width:28px;height:44px;padding:0;border:0;background:white;color:#7b8078;cursor:pointer;z-index:1;border-radius:3px}
.dj-topic-step svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.4;fill:none}
.dj-topic-step:hover{color:#242723;background:#f6f4ef}
.dj-topic-step:focus-visible{outline:2px solid #8a775c;outline-offset:-2px}
.dj-topic-step:disabled{visibility:hidden;pointer-events:none}
.dj-topic-step[hidden]{display:none!important}
@media(min-width:781px){
 .dj-header-shell.dj-is-compact .dj-desktop-topics .wp-block-navigation__container{padding:2px 0;gap:14px;min-width:100%}
 .dj-header-shell.dj-is-compact .dj-desktop-topics .wp-block-navigation-item{flex:0 0 auto;max-width:none}
 .dj-header-shell.dj-is-compact .dj-desktop-topics a.wp-block-navigation-item__content{flex-direction:row;min-height:40px;padding:3px 5px;gap:7px;font-size:12px;white-space:nowrap;align-items:center}
 .dj-header-shell.dj-is-compact .dj-desktop-topics .dj-topic-media{width:30px;height:30px}
 .dj-header-shell.dj-is-compact .dj-desktop-topics .dj-topic-media img{width:30px;height:30px}
 .dj-header-shell.dj-is-compact .dj-desktop-topics .wp-block-navigation-item__label{min-height:0;max-width:none}
}
@media(max-width:780px){
 .dj-desktop-topics-slot{display:none}
 .dj-mobile-topics .wp-block-navigation-item{flex:0 0 86px;max-width:86px}
 .dj-mobile-topics .wp-block-navigation__container{gap:5px;padding:8px 0}
 .dj-mobile-topics a.wp-block-navigation-item__content{min-height:104px;padding:4px 2px 6px;gap:4px;font-size:11.5px}
 .dj-mobile-topics .dj-topic-media,.dj-mobile-topics .dj-topic-media img{height:60px}
 .dj-mobile-topics .dj-topic-media img{width:60px}
 .dj-mobile-topics .wp-block-navigation-item__label{min-height:28px}
 .dj-topic-step{flex-basis:24px;width:24px;height:44px}
}
@media(prefers-reduced-motion:reduce){:is(.dj-desktop-topics,.dj-mobile-topics) ul.wp-block-navigation__container{scroll-behavior:auto}}

/* UX-03: readable mobile labels, smaller rail on return scroll. */
@media(max-width:780px){
 .dj-mobile-topics a.wp-block-navigation-item__content{font-size:12.5px;line-height:1.25}
 .dj-mobile-topics .wp-block-navigation-item__label{min-height:32px}
 .dj-header-shell.dj-is-compact .dj-mobile-topics .wp-block-navigation__container{padding-block:5px}
 .dj-header-shell.dj-is-compact .dj-mobile-topics a.wp-block-navigation-item__content{min-height:91px;gap:3px}
 .dj-header-shell.dj-is-compact .dj-mobile-topics .dj-topic-media,
 .dj-header-shell.dj-is-compact .dj-mobile-topics .dj-topic-media img{height:46px}
 .dj-header-shell.dj-is-compact .dj-mobile-topics .dj-topic-media img{width:46px}
}
@media(max-height:500px){
 .dj-header-shell.dj-is-compact .dj-topic-media{display:none}
 .dj-header-shell.dj-is-compact .dj-mobile-topics a.wp-block-navigation-item__content{min-height:42px;justify-content:center;padding-block:5px}
}

/* UX-04: stable arrow slots and comfortable touch targets, no edge-width jump. */
body.dj-modular .dj-topic-step{flex:0 0 44px;width:44px;height:44px;min-width:44px;color:var(--dj-color-accent,#78684F);background:transparent}
body.dj-modular .dj-topic-step svg{width:18px;height:18px;stroke-width:1.5}
body.dj-modular .dj-topic-step:disabled{visibility:visible;opacity:.28;cursor:default;pointer-events:none}
body.dj-modular .dj-topic-step:not(:disabled):hover{background:var(--dj-color-warm,#F7F5F0)}
body.dj-modular :is(.dj-desktop-topics,.dj-mobile-topics) ul.wp-block-navigation__container{overflow-anchor:none}
