/* FIVE:CNR Wiki V104 — full-width footer and genuine smooth category motion.
   Loaded LAST, overriding the legacy V56/V66/V86/V89/V96 conflicts. */
@media (min-width:901px) {
  /* V89 reserved an invisible 11px scrollbar gutter, breaking the footer divider. */
  html body .layout > aside.sidebar#sidebar {
    scrollbar-gutter:auto!important;
  }
  html body .layout > aside.sidebar#sidebar > .side-foot.cnr-side-brand {
    box-sizing:border-box!important;
    position:relative!important;
    flex:0 0 69px!important;
    min-height:69px!important;
    height:69px!important;
    align-self:stretch!important;
    width:calc(100% + 36px)!important;
    max-width:none!important;
    margin:9px -16px -9px -20px!important;
    padding:11px 16px 12px 35px!important;
    border-top:0!important;
    border-left:0!important;
    border-right:0!important;
    background:#050807!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:0!important;
  }
 html body .layout > aside.sidebar#sidebar > .side-foot.cnr-side-brand::before {
    content:""!important;
    display:block!important;
    position:absolute!important;
    top:18px!important;
    left:0!important;
    right:0!important;
    height:1px!important;
    background:#273029!important;
}
  html body .layout > aside.sidebar#sidebar > .side-foot.cnr-side-brand .cnr-side-brand-info.cnr-v67-foot {
    display:flex!important;
    box-sizing:border-box!important;
    flex-direction:row!important;
    flex:1 1 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:32px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
  }
  html body .layout > aside.sidebar#sidebar .cnr-side-brand-info.cnr-v67-foot .cnr-side-brand-icon {
    display:block!important;
    flex:0 0 18px!important;
    order:-1!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
    color:#55C84A!important;
    align-self:center!important;
  }
  html body .layout > aside.sidebar#sidebar .cnr-side-brand-info.cnr-v67-foot .cnr-side-brand-copy {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    flex:1 1 auto!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    gap:3px!important;
    text-align:left!important;
  }
  html body .layout > aside.sidebar#sidebar .cnr-side-brand-copy strong {
    font-size:11px!important;
    line-height:1.15!important;
    font-weight:750!important;
    color:#d7e2d9!important;
  }
  html body .layout > aside.sidebar#sidebar .cnr-side-brand-copy span {
    font-size:10px!important;
    line-height:1.15!important;
    color:#88978b!important;
  }
}
/* Native details stay open throughout the closing animation; its contents
   transition from measured height to zero, without jumping or flashing. */
html body aside.sidebar#sidebar #categoryList details.category > .category-children {
  display:block!important;
  box-sizing:border-box!important;
  height:auto!important;
  max-height:0!important;
  opacity:0!important;
  visibility:hidden!important;
  overflow:hidden!important;
  padding-top:0!important;
  padding-bottom:0!important;
  transform:none!important;
  animation:none!important;
  contain:none!important;
  transition:max-height .36s cubic-bezier(.25,.8,.25,1),
             opacity .26s ease,
             padding-top .36s cubic-bezier(.25,.8,.25,1),
             padding-bottom .36s cubic-bezier(.25,.8,.25,1),
             visibility 0s linear .36s!important;
}
html body aside.sidebar#sidebar #categoryList details.category.cnr-expanded > .category-children {
  max-height:var(--cnr-category-height, 900px)!important;
  opacity:1!important;
  visibility:visible!important;
  padding-top:7px!important;
  padding-bottom:4px!important;
  overflow:hidden!important;
  transition:max-height .36s cubic-bezier(.25,.8,.25,1),
             opacity .26s ease,
             padding-top .36s cubic-bezier(.25,.8,.25,1),
             padding-bottom .36s cubic-bezier(.25,.8,.25,1),
             visibility 0s!important;
}
/* Animate chevrons while retaining V59's icon artwork. */
html body aside.sidebar#sidebar #categoryList details.category > summary .category-chevron::after {
  transition:transform .32s cubic-bezier(.25,.8,.25,1)!important;
}
html body aside.sidebar#sidebar #categoryList details.category:not(.cnr-expanded) > summary .category-chevron::after {
  transform:rotate(45deg)!important;
}
html body aside.sidebar#sidebar #categoryList details.category.cnr-expanded > summary .category-chevron::after {
  transform:rotate(225deg)!important;
}
@media(prefers-reduced-motion:reduce){
  html body aside.sidebar#sidebar #categoryList details.category > .category-children,
  html body aside.sidebar#sidebar #categoryList details.category.cnr-expanded > .category-children,
  html body aside.sidebar#sidebar #categoryList details.category > summary .category-chevron::after {
    transition:none!important;
  }
}
