/* SpectraHub Forum V114: compact subforum popovers, unread hierarchy and latest-reply links. */

/* Keep subforums in a menu, rather than stretching the main category with a long inline list. */
body.spectrahubForum .homeForumList .xfCategory,
body.spectrahubForum .homeForumList .xfNodeList {
  overflow:visible!important;
}
body.spectrahubForum .homeForumList .xfCategory{isolation:auto!important}
body.spectrahubForum .homeForumList .xfCategory:has(.shV114SubMenu[open]){position:relative!important;z-index:70!important}
body.spectrahubForum .homeForumList .shV114ForumNode{position:relative!important;min-width:0!important}
body.spectrahubForum .homeForumList .shV114ForumNode:has(.shV114SubMenu[open]){z-index:75!important}
body.spectrahubForum .homeForumList .shV114ForumNode .xfNodeMain{overflow:visible!important}
body.spectrahubForum .shV114ForumNode .xfNodeMain h3{
  display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important;
}
body.spectrahubForum .shV114SubMenu{position:relative!important;display:block!important;width:max-content!important;max-width:100%!important;margin-top:7px!important;z-index:76!important}
body.spectrahubForum .shV114SubToggle{
  display:inline-flex!important;align-items:center!important;gap:7px!important;justify-content:flex-start!important;
  list-style:none!important;cursor:pointer!important;
  background:#424a54!important;color:#d3e0ee!important;border:1px solid #596877!important;
  border-radius:5px!important;min-height:27px!important;padding:3px 10px!important;
  font:650 14px/1.2 system-ui,Arial,sans-serif!important;
  box-shadow:none!important;
}
body.spectrahubForum .shV114SubToggle::-webkit-details-marker{display:none!important}
body.spectrahubForum .shV114SubToggle:hover,
body.spectrahubForum .shV114SubToggle:focus-visible,
body.spectrahubForum .shV114SubMenu[open]>.shV114SubToggle{background:#4c5866!important;border-color:#819aad!important;color:#fff!important}
body.spectrahubForum .shV114SubToggle:focus-visible{outline:2px solid #7ab8ff!important;outline-offset:2px!important}
body.spectrahubForum .shV114SubChevron{display:inline-flex!important;font-size:14px!important;line-height:1!important;transition:transform .15s ease!important}
body.spectrahubForum .shV114SubMenu[open] .shV114SubChevron{transform:rotate(180deg)!important}
body.spectrahubForum .shV114SubCount{background:#566779!important;color:#f2f7fb!important;min-width:17px!important;text-align:center!important;border-radius:30px!important;padding:2px 5px!important;font-size:14px!important}
body.spectrahubForum .shV114SubPanel{
  position:absolute!important;top:calc(100% + 5px)!important;left:0!important;
  display:grid!important;gap:2px!important;
  min-width:240px!important;width:max-content!important;max-width:min(360px,calc(100vw - 40px))!important;
  max-height:min(440px,65vh)!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  padding:6px!important;background:#333c46!important;
  border:1px solid #5b6c7b!important;border-radius:7px!important;
  box-shadow:0 16px 36px rgba(0,0,0,.38)!important;
  z-index:300!important;
}
body.spectrahubForum .shV114SubMenu:not([open]) .shV114SubPanel{display:none!important}
body.spectrahubForum .shV114SubLink{
  display:grid!important;grid-template-columns:17px minmax(0,1fr) auto!important;
  align-items:center!important;gap:9px!important;min-height:36px!important;
  padding:7px 9px!important;color:#c4d6e8!important;text-decoration:none!important;
  border-radius:5px!important;background:transparent!important;
  font:600 14px/1.35 system-ui,Arial,sans-serif!important;white-space:normal!important;
}
body.spectrahubForum .shV114SubLink:hover,
body.spectrahubForum .shV114SubLink:focus-visible{background:#455363!important;color:#fff!important;outline:none!important}
body.spectrahubForum .shV114SubIcon{width:17px!important;height:17px!important;display:inline-flex!important;justify-content:center!important;align-items:center!important;opacity:.75!important}
body.spectrahubForum .shV114SubIcon .shFa,
body.spectrahubForum .shV114SubIcon .shFa img{width:15px!important;height:15px!important}
body.spectrahubForum .shV114SubLink.is-unread{color:#80e5ad!important;font-weight:800!important}
body.spectrahubForum .shV114SubLink.is-unread .shV114SubIcon img{filter:brightness(0) saturate(100%) invert(78%) sepia(21%) saturate(1000%) hue-rotate(89deg) brightness(102%)!important;opacity:1!important}
body.spectrahubForum .shV114SubUnreadLabel{
  border-radius:3px!important;border:1px solid rgba(105,220,155,.4)!important;
  background:rgba(80,176,116,.15)!important;color:#a0ffc7!important;
  padding:2px 5px!important;font:800 14px/1.3 system-ui,Arial,sans-serif!important;
}

/* Unread highlights bubble up through every level of nested forums. */
body.spectrahubForum .shV114UnreadDot{display:inline-block!important;width:7px!important;height:7px!important;flex:0 0 7px!important;border-radius:50%!important;background:#6de7a0!important;box-shadow:0 0 0 2px rgba(76,190,120,.17)!important;vertical-align:middle!important}
body.spectrahubForum .shV114UnreadForum .shV114ForumName,
body.spectrahubForum .shV114ForumNode .xfNodeMain h3 a.shV114ForumName{color:inherit!important}
body.spectrahubForum .shV114UnreadForum .xfNodeMain h3 a.shV114ForumName,
body.spectrahubForum .shV114UnreadTopicLink,
body.spectrahubForum .shV114UnreadTopic .shV99TopicTitle{color:#8df1b6!important}
body.spectrahubForum .shV114UnreadForum .shV99ForumIcon{background:#295543!important;border-color:#4a9870!important}
body.spectrahubForum .shV114UnreadForum .shV99ForumIcon .shFa img{filter:brightness(0) saturate(100%) invert(81%) sepia(20%) saturate(1066%) hue-rotate(87deg) brightness(103%) contrast(93%)!important}
body.spectrahubForum .shV114UnreadTopic .shV108StarterAvatar{border-color:#65c997!important}
body.spectrahubForum .shV114UnreadTopic .shV108LastTime{color:#9adcb7!important}
body.spectrahubForum .shV114NewBadge{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;border:1px solid rgba(107,224,148,.48)!important;color:#9ff1bb!important;background:rgba(54,150,91,.19)!important;padding:2px 6px!important;border-radius:4px!important;font:700 14px/1.3 system-ui,Arial,sans-serif!important}

/* The same compact subforum selector on the forum detail page. */
body.spectrahubForum .shV114ForumPageSubs{margin-top:12px!important;z-index:75!important}
body.spectrahubForum .shV110ForumPageHead,
body.spectrahubForum .shV110ForumPageInfo{overflow:visible!important}
body.spectrahubForum .shV110ForumPageHead:has(.shV114ForumPageSubs[open]){position:relative!important;z-index:100!important}
body.spectrahubForum .shV110ForumPageHead h1>.shV114UnreadDot{margin-left:12px!important}

@media(max-width:760px){
  body.spectrahubForum .shV114SubPanel{max-width:min(300px,calc(100vw - 65px))!important;min-width:195px!important}
  body.spectrahubForum .homeForumList .shV114ForumNode{row-gap:8px!important}
  body.spectrahubForum .shV114SubToggle{min-height:30px!important}
}

/* Highlight the same unread topic in the compact newest-activity sidebar. */
body.spectrahubForum .shActivityItem.shV114UnreadActivity strong{color:#9cf2be!important}
body.spectrahubForum .shActivityItem.shV114UnreadActivity .shActivityAvatar{border-color:#68ce99!important}
