/* FIVE:CNR Wiki V101 — compact sidebar layout without changing standalone link identity.
   SSS and Komut Kütüphanesi now inherit the exact same interaction system as Giriş. */
@media (min-width:901px) {
  html body .layout > aside.sidebar#sidebar {
    padding-top:19px!important;
    padding-bottom:9px!important;
  }
  html body .sidebar > a.side-item,
  html body .sidebar > a.side-item.cnr-v101-standalone {
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-height:40px!important;
    height:40px!important;
    padding:7px 10px!important;
    margin:0 0 3px!important;
    border-radius:5px!important;
    font-size:11px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    font-weight:750!important;
    text-decoration:none!important;
  }
  html body .sidebar > a.side-item .side-book{
    width:15px!important;
    height:16px!important;
    flex:0 0 15px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:inherit!important;
  }
  html body .sidebar > a.side-item .side-book svg {
    width:15px!important;
    height:15px!important;
    display:block!important;
    stroke:currentColor;
  }
  html body .sidebar > .side-label {
    margin-bottom:8px!important;
  }
  html body .sidebar > .side-categories-title {
    margin-top:13px!important;
    margin-bottom:8px!important;
  }
  html body .sidebar > .search-button {
    margin-bottom:18px!important;
    min-height:37px!important;
  }
  html body .sidebar > .side-foot.cnr-side-brand {
    margin-top:auto!important;
  }
  html body .sidebar #categoryList {
    padding-right:0!important;
    margin-top:0!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scrollbar-width:none!important;
    scrollbar-color:transparent transparent!important;
    overscroll-behavior:contain!important;
  }
  html body .sidebar #categoryList::-webkit-scrollbar {
    display:none!important;width:0!important;height:0!important;
  }
  html body .sidebar #categoryList details.category > summary {
    min-height:41px!important;
    height:auto!important;
    padding:10px 9px 10px 11px!important;
  }
  html body .sidebar #categoryList .category-children > a.cnr-guide-link,
  html body .sidebar #categoryList .category-children > a.cnr-guide-link.active,
  html body .sidebar #categoryList .category-children > a.cnr-guide-link[aria-current="page"] {
    min-height:34px!important;
    padding:8px 6px 8px 9px!important;
    line-height:1.25!important;
  }
  html body .sidebar #categoryList details.category.cnr-expanded .category-children,
  html body .sidebar #categoryList details.category[open].cnr-expanded .category-children {
    padding-top:7px!important;
    padding-bottom:4px!important;
  }
}
@media (max-height:740px) and (min-width:901px) {
  html body .sidebar #categoryList .category-children > a.cnr-guide-link,
  html body .sidebar #categoryList .category-children > a.cnr-guide-link.active,
  html body .sidebar #categoryList .category-children > a.cnr-guide-link[aria-current="page"] {
    min-height:31px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
  html body .sidebar > .search-button{margin-bottom:11px!important;}
  html body .sidebar > .side-categories-title{margin-top:9px!important;}
}
@media (max-width:900px) {
  html body .sidebar > a.side-item.cnr-v101-standalone {
    display:flex;align-items:center;gap:9px;
  }
}


/* V103 — smoother accordion indicator */
html body .sidebar #categoryList details.category > summary .category-chevron{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  transition:transform .24s ease,color .18s ease!important;
}
html body .sidebar #categoryList details.category.cnr-expanded > summary .category-chevron{
  transform:rotate(180deg)!important;
}
@media(prefers-reduced-motion:reduce){
  html body .sidebar #categoryList details.category > summary .category-chevron{transition:none!important;}
}
