/* FIVE:CNR Wiki V86 — restrained sidebar category redesign */
:root { --cnr-sidebar-accent:#55C84A; }

/* The parent category is a neutral group. Only the selected article is accented. */
.sidebar #categoryList details.category > summary,
.sidebar #categoryList details.category.cnr-expanded > summary,
.sidebar #categoryList details.category[open] > summary {
  display:flex!important;align-items:center!important;
  box-sizing:border-box!important;min-height:41px!important;
  padding:10px 9px 10px 11px!important;
  background:#101713!important;
  border:1px solid #26392d!important;border-radius:6px!important;
  box-shadow:none!important;
  color:#e8eee9!important;
  transition:background-color .18s ease,border-color .18s ease!important;
  cursor:pointer!important;
}
.sidebar #categoryList details.category > summary::before,
.sidebar #categoryList details.category.cnr-expanded > summary::before {
  content:none!important;display:none!important;
}
.sidebar #categoryList details.category > summary:hover {
  background:#152119!important;border-color:#36533b!important;
}
.sidebar #categoryList details.category > summary:focus-visible {
  outline:2px solid var(--cnr-sidebar-accent)!important;outline-offset:3px!important;
}
.sidebar #categoryList details.category > summary .category-name,
.sidebar #categoryList details.category > summary .category-name > span:not(.category-icon) {
  color:#e8eee9!important;stroke:none!important;
}
.sidebar #categoryList details.category > summary .category-icon,
.sidebar #categoryList details.category > summary .category-icon svg {
  color:#55C84A!important;fill:#55C84A!important;
}
.sidebar #categoryList details.category > summary .category-chevron {color:#899b8f!important;}
.sidebar #categoryList details.category:not(.cnr-expanded) > summary {
  background:#0d120f!important;border-color:#263229!important;
}
.sidebar #categoryList details.category > summary .category-name {
  font-size:11px!important;font-weight:700!important;letter-spacing:-.2px!important;
  gap:8px!important;
}

/* Understated tree line; no secondary green bars down the entire list. */
.sidebar #categoryList details.category .category-children,
.sidebar #categoryList details.category[open] .category-children {
  box-sizing:border-box!important;
  margin:0 0 0 14px!important;
  padding:0 0 0 10px!important;
  border-left:1px solid #2b392e!important;
  background:transparent!important;
  overflow:hidden!important;
  max-height:0!important;opacity:0!important;visibility:hidden!important;
  transition:max-height .22s ease,opacity .18s ease,visibility 0s linear .22s!important;
}
.sidebar #categoryList details.category.cnr-expanded .category-children,
.sidebar #categoryList details.category[open].cnr-expanded .category-children {
  max-height:360px!important;
  padding-top:7px!important;padding-bottom:4px!important;
  opacity:1!important;visibility:visible!important;
  transition:max-height .22s ease,opacity .18s ease,visibility 0s!important;
}

/* Navigation entry: consistent height and fixed icon, never shift on hover. */
.sidebar #categoryList .category-children > a.cnr-guide-link,
.sidebar #categoryList .category-children > a.cnr-guide-link:not(.active) {
  display:flex!important;align-items:center!important;
  gap:7px!important;box-sizing:border-box!important;width:100%!important;
  min-height:34px!important;margin:0!important;
  padding:8px 6px 8px 9px!important;
  font-size:11px!important;font-weight:600!important;letter-spacing:-.12px!important;
  line-height:1.25!important;
  background:transparent!important;
  color:#aab7ad!important;
  border:1px solid transparent!important;border-radius:5px!important;
  box-shadow:none!important;transform:none!important;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease!important;
}
.sidebar #categoryList .category-children > a.cnr-guide-link:hover:not(.active) {
  color:#e6efe8!important;background:#152019!important;border-color:#243b2b!important;
  transform:none!important;
}
.sidebar #categoryList .category-children > a.cnr-guide-link.active,
.sidebar #categoryList .category-children > a.cnr-guide-link[aria-current="page"] {
  display:flex!important;align-items:center!important;gap:7px!important;
  box-sizing:border-box!important;width:100%!important;min-height:34px!important;
  margin:0!important;padding:8px 6px 8px 9px!important;
  background:#122017!important;border:1px solid #2a4330!important;
  color:#55C84A!important;border-radius:5px!important;
  font-size:11px!important;font-weight:700!important;
  transform:none!important;box-shadow:none!important;
}
.sidebar #categoryList .category-children > a.cnr-guide-link.active:hover {
  background:#18291c!important;border-color:#3a5e41!important;
}
.sidebar #categoryList .category-children > a.cnr-guide-link.active::before,
.sidebar #categoryList .category-children > a.cnr-guide-link[aria-current="page"]::before {
  content:""!important;display:block!important;position:absolute!important;
  left:-1px!important;top:5px!important;bottom:5px!important;
  height:auto!important;width:3px!important;border-radius:2px!important;
  background:var(--cnr-sidebar-accent)!important;transform:none!important;
}
.sidebar #categoryList .category-children > a.cnr-guide-link:not(.active)::before {
  display:none!important;
}
.sidebar #categoryList .cnr-guide-icon {display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;color:inherit;}
.sidebar #categoryList .cnr-guide-icon svg {width:14px;height:14px;display:block;}
.sidebar #categoryList .cnr-guide-text {flex:1;min-width:0;white-space:nowrap;}
.sidebar #categoryList .cnr-guide-check {display:none;flex:0 0 11px;width:11px;height:11px;color:#55C84A;}
.sidebar #categoryList .cnr-guide-link.active .cnr-guide-check {display:inline-flex;align-items:center;justify-content:center;}
.sidebar #categoryList .cnr-guide-check svg {width:11px;height:11px;display:block;}
.sidebar #categoryList .cnr-guide-link:focus-visible {outline:2px solid #55C84A!important;outline-offset:2px!important;}
@media (prefers-reduced-motion: reduce) {
 .sidebar #categoryList details.category .category-children,
 .sidebar #categoryList details.category > summary,
 .sidebar #categoryList .category-children > a.cnr-guide-link {transition:none!important;}
}

/* V6: prevent legacy placeholder rules from styling icon/text spans */
.sidebar #categoryList .category-children a.cnr-guide-link span::after{content:none!important;display:none!important;}
.sidebar #categoryList .category-children a.cnr-guide-link span{padding:0!important;cursor:inherit!important;font-size:inherit!important;color:inherit!important;transform:none!important;}
.sidebar #categoryList .category-children a.cnr-guide-link{position:relative!important;text-decoration:none!important;white-space:nowrap!important;}
.sidebar #categoryList .category-children a.cnr-guide-link .cnr-guide-icon{display:inline-flex!important;flex:0 0 14px!important;}
.sidebar #categoryList .category-children a.cnr-guide-link .cnr-guide-text{display:block!important;flex:1 1 auto!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.sidebar #categoryList .category-children a.cnr-guide-link .cnr-guide-check{display:none!important;}
.sidebar #categoryList .category-children a.cnr-guide-link.active .cnr-guide-check{display:inline-flex!important;flex:0 0 11px!important;}
.sidebar #categoryList details.category > summary .category-name span{transform:none!important;}

/* V47 - sidebar scrollbar definitive green */
html body .sidebar, html body aside.sidebar {
 scrollbar-color: #55C84A #080d09 !important;
 scrollbar-width: auto !important;
}
html body .sidebar::-webkit-scrollbar { width: 11px !important; background:#080d09 !important; }
html body .sidebar::-webkit-scrollbar-track { background:#080d09 !important; }
html body .sidebar::-webkit-scrollbar-thumb { background:#55C84A !important; background-color:#55C84A !important; border:2px solid #080d09 !important; border-radius:10px !important; min-height:35px; }
html body .sidebar::-webkit-scrollbar-thumb:hover { background:#6cdb61 !important; }

/* V49: consistent compact sidebar scrollbar; override legacy V47 */
html body .sidebar, html body aside.sidebar { scrollbar-width: thin !important; scrollbar-color: #55C84A #080d09 !important; }
html body .sidebar::-webkit-scrollbar, html body aside.sidebar::-webkit-scrollbar { width: 4px !important; height: 4px !important; background: #080d09 !important; }
html body .sidebar::-webkit-scrollbar-track, html body aside.sidebar::-webkit-scrollbar-track { background: #080d09 !important; }
html body .sidebar::-webkit-scrollbar-thumb, html body aside.sidebar::-webkit-scrollbar-thumb { background: #55C84A !important; background-color: #55C84A !important; border: 0 !important; border-radius: 6px !important; min-height: 0 !important; box-shadow: none !important; }
html body .sidebar::-webkit-scrollbar-thumb:hover, html body aside.sidebar::-webkit-scrollbar-thumb:hover { background: #55C84A !important; }
html body .sidebar::-webkit-scrollbar-button, html body aside.sidebar::-webkit-scrollbar-button { display: none !important; width: 0 !important; height: 0 !important; }

/* V52: Sol menude ince gorunen thumb; Chrome scrollbar-width:thin onceligini kaldir. */
html body .sidebar, html body aside.sidebar { scrollbar-width: auto !important; scrollbar-color: auto !important; }
html body .sidebar::-webkit-scrollbar, html body aside.sidebar::-webkit-scrollbar { width: 8px !important; background: #080d09 !important; }
html body .sidebar::-webkit-scrollbar-track, html body aside.sidebar::-webkit-scrollbar-track { background: #080d09 !important; }
html body .sidebar::-webkit-scrollbar-thumb, html body aside.sidebar::-webkit-scrollbar-thumb,
html body .sidebar::-webkit-scrollbar-thumb:hover, html body aside.sidebar::-webkit-scrollbar-thumb:hover {
  background: #55C84A !important; background-clip: padding-box !important;
  border: 3px solid transparent !important; border-radius: 8px !important;
  box-shadow: none !important; min-height: 0 !important;
}
html body .sidebar::-webkit-scrollbar-button, html body aside.sidebar::-webkit-scrollbar-button { display:none !important; width:0 !important; height:0 !important; }


/* FIVE:CNR V123 - LSSD icon: muted forest green (not bright brand green) */
html body .sidebar #categoryList .cnr-jobs-children > a.cnr-guide-link[href="lssd.html"] .cnr-guide-icon,
html body .sidebar #categoryList .cnr-jobs-children > a.cnr-guide-link[href="lssd.html"] .cnr-guide-icon svg {
  color: #287A3D !important;
  stroke: #287A3D !important;
}
html body .sidebar #categoryList .cnr-jobs-children > a.cnr-guide-link[href="lssd.html"] .cnr-guide-icon svg * {
  stroke: #287A3D !important;
  fill: none !important;
}
