/* V43 — menu parity, two true category levels and horizontal grab-to-scroll. */
#featured .nv43-featured-panel{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  padding:16px;
}
#featured .nv43-featured-panel[hidden],
#featured .nv43-child-panel[hidden]{display:none!important}
#featured .nv43-rail-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
#featured .nv43-rail-heading small{
  color:#a3a8bc;
  margin-left:9px;
  font-size:9px;
  letter-spacing:.09em;
}
#featured .nv43-rail-instruction{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#8891a6;
  font-size:10px;
  font-weight:500;
  white-space:nowrap;
}
#featured .nv43-rail-shell{
  display:flex;
  align-items:stretch;
  gap:9px;
  min-width:0;
  width:100%;
}
#featured .nv43-rail-arrow{
  flex:0 0 33px;
  min-width:33px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #dee3f1;
  background:#f8f9fe;
  border-radius:11px;
  color:#5949bc;
  cursor:pointer;
  transition:background .2s,border-color .2s,transform .2s;
}
#featured .nv43-rail-arrow:hover:not(:disabled){
  background:#ede8ff;
  border-color:#b7aaf4;
  transform:translateY(-1px);
}
#featured .nv43-rail-arrow:disabled{opacity:.37;cursor:default}
#featured .nv43-rail-arrow:focus-visible,
#featured [data-featured-rail] :is(button,a):focus-visible{outline:2px solid #644ce1;outline-offset:2px}
#featured .nv43-root-rail,
#featured .nv43-child-rail{
  display:flex!important;
  flex:1 1 auto;
  align-items:stretch;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:nowrap!important;
  min-width:0;
  max-width:100%;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  padding:2px 2px 9px;
  cursor:grab;
  touch-action:pan-x pan-y;
}
#featured [data-featured-rail]::-webkit-scrollbar{display:none}
#featured [data-featured-rail].is-dragging{
  cursor:grabbing;
  scroll-snap-type:none;
  scroll-behavior:auto;
  user-select:none;
}
#featured [data-featured-rail].is-drag-released{
  scroll-snap-type:none;
  scroll-behavior:auto;
}
#featured [data-featured-rail] a{
  -webkit-user-drag:none;
  user-select:none;
}

#featured .nv43-category-card.yh18-featured-tab{
  box-sizing:border-box;
  flex:0 0 clamp(168px,18.6vw,222px)!important;
  width:clamp(168px,18.6vw,222px);
  min-width:0!important;
  max-width:none!important;
  height:106px;
  min-height:106px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 13px;
  border:1px solid #e3e4f6;
  border-radius:13px;
  background:#f7f7ff;
  color:#684bd1;
  scroll-snap-align:start;
  text-align:center;
  font-weight:750;
  font-size:10px;
  line-height:1.35;
  position:relative;
  transition:background .22s,border-color .22s,box-shadow .22s;
  cursor:pointer;
}
#featured .nv43-category-card.yh18-featured-tab .yh26-filter-icon{
  flex:0 0 auto;
  display:flex;
  width:37px;
  height:37px;
  align-items:center;
  justify-content:center;
  color:inherit;
  border-radius:10px;
  background:rgba(255,255,255,.83);
}
#featured .nv43-category-card.yh18-featured-tab .yh26-filter-name{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  max-width:100%;
  line-height:1.35;
  overflow:hidden;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
}
#featured .nv43-category-card.yh18-featured-tab .nv43-subcategory-indicator{
  position:absolute;
  top:6px;
  right:7px;
  font-size:8px;
  display:inline-flex;
  align-items:center;
  gap:2px;
  color:#897bc4;
  opacity:.8;
}
#featured .nv43-category-card.yh18-featured-tab.active,
#featured .nv43-category-card.yh18-featured-tab.is-parent-selected{
  background:#eaf2ff;
  color:#2265e8;
  border:2px solid #3979fd;
  box-shadow:0 9px 22px rgba(76,96,190,.08);
}
#featured .nv43-category-card.yh18-featured-tab.software.active,
#featured .nv43-category-card.yh18-featured-tab.software.is-parent-selected{
  background:#eee8ff;
  color:#6744d6;
  border:2px solid #9275ec;
}
#featured .nv43-category-card.yh18-featured-tab:hover:not(.active):not(.is-parent-selected){
  background:#f0edff;
  border-color:#bdb3e9;
  box-shadow:0 8px 18px rgba(53,50,130,.07);
}
#featured .nv43-child-panel{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:12px;
  border:1px solid #ebe9f7;
  border-radius:12px;
  background:linear-gradient(100deg,#fbfaff,#f7f9ff);
  animation:nv43-arrive .25s ease-out both;
}
#featured .nv43-child-heading{
  color:#6556ad;
  font-size:10px;
  font-weight:800;
  letter-spacing:.055em;
}
#featured .nv43-child-heading>span{display:inline-flex;align-items:center;gap:6px}
#featured .nv43-rail-all{display:inline-flex;align-items:center;gap:5px;color:#6e5fd6;font-size:10px;font-weight:700}
#featured .nv43-child-shell .nv43-rail-arrow{flex-basis:30px;min-width:30px;border-radius:9px}
/* Grid's minmax(0,1fr) prevents a long nested menu from expanding its own
   flex container to its full intrinsic width instead of becoming scrollable. */
#featured .nv43-child-panel{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
#featured .nv43-child-shell{
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr) 30px;
  width:100%;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
#featured .nv43-child-rail{
  box-sizing:border-box;
  flex:none;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  gap:8px;
  align-items:center;
  padding:2px 2px 6px;
}
#featured .nv43-child-rail>.nv43-subcategory-link{
  flex:0 0 auto!important;
  min-width:max-content;
  max-width:230px;
}

#featured .nv43-subcategory-link{
  flex:0 0 auto;
  max-width:230px;
  min-height:37px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  padding:9px 13px;
  white-space:nowrap;
  border:1px solid #e0ddf1;
  border-radius:10px;
  background:#fff;
  color:#535e82;
  font:700 10px/1.35 Poppins,sans-serif;
  cursor:pointer;
  scroll-snap-align:start;
  transition:border-color .18s,background .18s,color .18s;
}
#featured .nv43-subcategory-link span{overflow:hidden;text-overflow:ellipsis}
#featured .nv43-subcategory-link:hover,
#featured .nv43-subcategory-link.active{
  border-color:#826deb;
  background:#ece8ff;
  color:#5b47bc;
}
#featured .nv43-empty-category{
  padding:28px;
  border:1px dashed #dadceb;
  border-radius:14px;
  color:#6f7791;
  background:#fafaff;
  font-size:12px;
}
#featured .nv43-empty-category strong{color:#192a48}
#featured .nv43-empty-category a{display:inline-flex;align-items:center;gap:7px;color:#6552d4;font-weight:800}
@keyframes nv43-arrive{from{opacity:.45;transform:translateY(-6px)}to{opacity:1;transform:none}}
/* Mobile has its own filter layout, not scaled-down desktop tiles. */
#featured .nv43-featured-panel .featured-mobile-only{display:none}
#featured .featured-mobile-heading{display:none}
@media(min-width:769px) and (max-width:800px){
  #featured .nv43-featured-panel{padding:12px;gap:11px}
  #featured .nv43-rail-instruction{display:none}
  #featured .nv43-root-rail{gap:8px}
  #featured .nv43-category-card.yh18-featured-tab{
    flex-basis:clamp(145px,41vw,185px)!important;
    width:clamp(145px,41vw,185px);
    height:97px;
    min-height:97px;
  }
  #featured .nv43-rail-arrow{flex-basis:27px;min-width:27px}
  #featured .nv43-subcategory-link{max-width:200px}
}
@media(max-width:768px){
  #featured>.container{width:100%!important;max-width:1200px;padding-inline:20px;min-width:0}
  #featured .yh18-featured-title{display:block}
  #featured .yh18-featured-title h2{font-size:24px;line-height:1.3;margin:0}
  #featured .yh18-featured-title :is(.yh18-featured-avatar,.yh6-eyebrow,p,h2>span){display:none}
  #featured .yh18-featured-title h2>.featured-mobile-heading{display:inline}
  #featured .yh24-featured-subfilters{margin:0 0 8px}
  #featured .nv43-featured-panel{padding:0;gap:4px;border:0;background:transparent;box-shadow:none;border-radius:0;animation:none}
  #featured .nv43-rail-heading{font-size:11px;line-height:16px;font-weight:600;color:#63708a}
  #featured .nv43-rail-heading>.yh24-featured-filter-caption,
  #featured :is(.nv43-rail-instruction,.nv43-rail-arrow,.nv43-rail-all,.nv43-child-heading-mark){display:none}
  #featured .nv43-featured-panel .featured-mobile-only{display:inline-flex}
  #featured .featured-desktop-label{display:none}
  #featured .nv43-child-heading>.nv43-child-heading-mark{display:none}
  #featured .nv43-rail-shell,#featured .nv43-child-shell{display:flex!important;gap:0;overflow:hidden}
  #featured .nv43-root-rail,#featured .nv43-child-rail{padding:2px;gap:8px;scroll-snap-type:none;scroll-behavior:auto;cursor:auto}
  #featured .nv43-category-card.yh18-featured-tab,
  #featured .nv43-subcategory-link,
  #featured .featured-mobile-all{flex:0 0 auto!important;width:auto;max-width:none;min-width:max-content;height:40px;min-height:40px;display:inline-flex;flex-direction:row;justify-content:center;align-items:center;gap:7px;padding:8px 12px;border:1px solid #dfe4ee;border-radius:10px;background:#fff;color:#263451;box-shadow:none;transform:none;font:500 12px/20px Poppins,sans-serif;white-space:nowrap;cursor:pointer}
  #featured .nv43-category-card.yh18-featured-tab .yh26-filter-icon{width:20px;height:20px;background:transparent;border:0;color:var(--np-ink,var(--ns-ink,#6554df));border-radius:0}
  /* IconService emits a desktop-sized inline font. A 16px glyph uses the
     shared 1.25em icon slot (20px), exactly matching the mobile wrapper. */
  #featured .nv43-category-card.yh18-featured-tab .yh26-filter-icon .icon{font-size:16px!important}
  #featured .nv43-category-card.yh18-featured-tab .yh26-filter-name{display:inline;overflow:visible;white-space:nowrap;text-align:left;font:inherit;color:inherit}
  #featured .nv43-subcategory-link span{overflow:visible;text-overflow:clip;color:inherit}
  #featured .nv43-category-card::before{display:none}
  #featured .nv43-category-card.yh18-featured-tab:is(.active,.is-parent-selected),
  #featured .nv43-subcategory-link.active,
  #featured .featured-mobile-all[aria-selected=true]{background:#eeedff;border-color:#8375e5;color:#4937bd;box-shadow:inset 0 0 0 1px #8375e5}
  #featured .nv43-child-panel{padding:0;gap:2px;border:0;background:transparent;border-radius:0;animation:none}
  #featured .yh18-card-brand>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;min-width:0;flex:1}
  #featured .yh18-card-brand small{margin:0}
  #featured .yh18-card-brand h3{grid-column:1/-1;overflow-wrap:anywhere}
  /* Keep badges in the header flow: horizontal scrollers clip negative tops. */
  #featured .yh18-favorite{position:static;transform:none;max-width:100%;padding:3px 7px;font-size:8px;line-height:12px;white-space:nowrap;box-shadow:none}
  #featured.is-group-results .yh18-featured-panes{display:grid;grid-auto-flow:column;grid-auto-columns:calc(100% - 24px);gap:14px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;min-width:0}
  #featured.is-group-results .yh18-featured-panes::-webkit-scrollbar{display:none}
  #featured.is-group-results .yh18-featured-pane:not([hidden]){display:contents}
  /* Existing package rails declare display:grid!important in motion-v22.
     Only the group-wide view flattens those rails into one native scroller. */
  #featured.is-group-results .yh18-featured-pane .yh18-featured-grid{display:contents!important}
  #featured.is-group-results .yh18-featured-card{min-width:0}
  #featured.is-group-results .yh18-carousel-row,
  #featured.is-group-results .yh18-featured-footer{display:none}
}
@media(max-width:375px){
  #featured>.container{padding-inline:16px}
}
/* Desktop free-drag should never snap back to the nearest child link.
   Arrow and autoplay retain their explicit smooth scroll behavior. */
#featured .nv43-child-rail{scroll-snap-type:none!important;scroll-behavior:auto}
#featured .nv43-child-rail,#featured .nv43-child-rail *{user-select:none;-webkit-user-select:none}
@media(prefers-reduced-motion:reduce){
  #featured [data-featured-rail]{scroll-behavior:auto}
  #featured .nv43-child-panel{animation:none}
  #featured .nv43-category-card.yh18-featured-tab{transition:none}
}
