/*
===============================================================================================================================
Put your custom CSS in this file.
===============================================================================================================================
*/
.fa-navicon:before, .fa-reorder:before, .fa-bars:before {
    color: #810000 !important;
}
 
mark {
    background: #00ed12 !important;
    color: #000000 !important;
}

th {
    background: #000000 !important;
}

/* Full-width hover */
#sidebar li > a:hover {
  background: rgba(255,255,255,0.05) !important;
}


#sidebar a {
  color: #e8e8e8 !important;
}

/* Sidebar typography only (works regardless of theme structure) */
#sidebar,
#sidebar a,
#sidebar li,
#sidebar span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
}

/* Main sidebar links */
#sidebar a {
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* Make the “section / parent” items slightly stronger */
#sidebar li > a {
  font-weight: 600 !important;
}

/* Make nested items slightly lighter (subcategories) */
#sidebar li li > a {
  font-weight: 500 !important;
  font-size: 14px !important;
  opacity: 0.88;
}


/* Sidebar categories + subcategories */
#sidebar .topics a,
#sidebar .topics li a{
  font-family: "Montserrat", sans-serif !important;
}

/* Category (level 1) */
#sidebar .topics > li > a{
  font-weight: 600 !important;
  font-size: 15px !important;
}

/* Subcategory (level 2+) */
#sidebar .topics li li > a{
  font-weight: 500 !important;
  font-size: 14px !important;
}

/* Force entire sidebar to same font */
#sidebar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif !important;
}




/* Back to main
 website link styling */
.back-main {
    display: block;
    padding: 0.75rem 1rem;
    color: #ddd;
    text-decoration: none;
    font-size: 0.95rem;
}

 

.back-main:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

#sidebar {
    background-color: #282828 !important;
}  


/* TEST: BIG RED divider so we can clearly see it */
#top-header{
  box-shadow: 0 2px 0 #810000 !important; 
    border-bottom: none !important; 
}


/* Remove the blue bar background in the sidebar header area */
#sidebar #header {
  background: transparent !important;
}

/* If there is still a thin strip, it can be a border */
#sidebar #header,
#sidebar #header-wrapper {
  border: 0 !important;
  box-shadow: none !important;
}





#top-header .site-logo img {
  height: 36px;       /* adjust logo size */
  vertical-align: middle;
  display: block;
}


/* Remove auto-numbering in Learn2 sidebar */
#sidebar ul.topics li > a:before {
  content: '' !important;
  display: none !important;

}
/* #sidebar { outline: 3px solid magenta !important; }  */


body {
    font-family: Metropolis, 'Helvetica Neue', sans-serif;
font-size: 1.09rem;

}

/* Back-to-top button */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #111111, #8b0000);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 9999;
}
#back-to-top .fa { font-size: 16px; line-height: 1; }
#back-to-top:hover { transform: translateY(4px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }

/* visible state on scroll */
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* optional: keep off when sidebar overlaps on very small screens */
@media (max-width: 480px) {
  #back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* ===== Fixed Top Header ===== */
#top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #222;
  z-index: 9999; /* keep it above sidebar */
}

/* inner container */
#top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 30px;
}

/* logo */
#top-header .site-logo img {
  height: 76px;
  vertical-align: middle;
}

/* search */
#top-header .search-input {
  background: #222;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  width: 220px;
}

/* icons */
#top-header .header-right img {
  height: 24px;
  margin-left: 15px;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}

#top-header .header-right img:hover {
  opacity: 0.7;
}

/* ===== Adjust page offset so content isn't hidden under header ===== */
body {
  padding-top: 60px !important;
}

/* Search container (THIS is the border you see) */
.searchbox{
background: #1a1a1a !important;
border: 1px solid #1a1a1a !important; 
  box-shadow: none !important;
}

/* On focus: use gold instead of blue if you want */
.searchbox:focus-within{
  border-color: #ffffff !important;        /* change to #000 if you want no accent */
}

/* Input itself */
.searchbox input{
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
} 


/* Change ONLY the sidebar read tick icon shape */
#sidebar i.read-icon.fa-check:before{
  content: "\f14a" !important;   /* check-square */
}

/* optional: color */
#sidebar i.read-icon{
  color: rgba(255,255,255,0.6) !important;
}




/* Keep sidebar header space even if logo is hidden */
#sidebar #header {
  min-height: 60px !important;              /* adjust 70–120 to taste */
  padding: 1rem !important;
}

/* Hide logo image/SVG but keep the header block */
#sidebar #header #logo,
#sidebar #header .site-logo,
#sidebar #header #logo-svg,
#sidebar #header img {
  display: none !important;
}

/* Ensure searchbox sits nicely below header */
#sidebar .searchbox {
  margin-top: 0.75rem !important;
}


/* === FORCE FULL-ROW HOVER/ACTIVE LOOK (no “edges”) === */

/* remove any rounding that makes the fill look clipped */
#sidebar a,
#sidebar li,
#sidebar .topics a,
#sidebar .topics li {
  border-radius: 0 !important;
}

/* Use inset shadow as the row fill (works even if background is clipped by padding) */
#sidebar li > a:hover,
#sidebar .topics li > a:hover {
  background: transparent !important;
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.05) !important;
}


#sidebar ul li.active > a {
    background: #1a1a1a;
    color: #e8e8e8 !important;
}

#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
    background: #282828;
}

/* Active row fill */
#sidebar li.active > a,
#sidebar .topics li.active > a {
  background: transparent !important;
  box-shadow:
    inset 3px 0 0 #ff3c3c,
    inset 0 0 0 9999px rgba(255,255,255,0.03) !important;
}

/* ===== Fix subcategory boxed look (only nested items) ===== */

/* Target ONLY subcategory links (li inside li) */
#sidebar ul li ul li > a,
#sidebar ul li ul li.active > a {
  background: transparent !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Keep your nice full-row fill and left red indicator for subcategories too */
#sidebar ul li ul li > a:hover {
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.05) !important;
}

#sidebar ul li ul li.active > a {
  box-shadow:
    inset 3px 0 0 #ff3c3c,
    inset 0 0 0 9999px rgba(255,255,255,0.03) !important;
}

/* ===== FULL-WIDTH HOVER/ACTIVE WITHOUT BREAKING LAYOUT ===== */

/* Make sure links can host a full-width overlay */
#sidebar ul.topics li.dd-item > a{
  position: relative !important;
  z-index: 0 !important;
}

/* Full-width hover overlay */
#sidebar ul.topics li.dd-item > a::before{
  content: "";
  position: absolute;
  left: -9999px;
  right: -9999px;
  top: 0;
  bottom: 0;
  background: transparent;
  z-index: -1;
}

/* Hover */
#sidebar ul.topics li.dd-item > a:hover::before{
  background: rgba(255,255,255,0.05) !important;
}

/* Active */
#sidebar ul.topics li.dd-item.active > a::before{
  background: rgba(255,255,255,0.03) !important;
}

/* Keep your red bar exactly as you had it */
#sidebar ul.topics li.dd-item.active > a{
  box-shadow: inset 3px 0 0 #ff3c3c !important;
  background: transparent !important; /* overlay handles fill */
}

/* ================================
   LEARN2 SIDEBAR: FULL-WIDTH HOVER + ACTIVE (SAFE)
   - Does NOT break submenus
   - Expands hover to sidebar edges using the theme’s -1rem trick (only on hover/active)
================================ */

/* Keep link as the painted element */
#sidebar ul.topics li.dd-item > a{
  display: block !important;
  background: transparent !important;
}

/* Full-width hover (extends over the sidebar padding) */
#sidebar ul.topics li.dd-item > a:hover{
  margin-left: -1rem !important;
  margin-right: -1rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  background: rgba(255,255,255,0.05) !important;
}

/* Full-width active */
#sidebar ul.topics li.dd-item.active > a{
  margin-left: -1rem !important;
  margin-right: -1rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  background: rgba(255,255,255,0.03) !important;
  box-shadow: inset 3px 0 0 #ff3c3c !important;
}

/* Subcategories: full-width like parent, but indent only the text (not the row) */
#sidebar ul.topics li.dd-item ul li.dd-item > a{
  margin-left: -1rem !important;
  margin-right: -1rem !important;
  padding-left: 1rem !important;   /* keep row padding same as parent */
  padding-right: 1rem !important;
}

/* indent only the label text */
#sidebar ul.topics li.dd-item ul li.dd-item > a span{
  display: inline-block;
  padding-left: 18px !important;   /* adjust 14–22 to taste */
}

/* keep hover/active fill */
#sidebar ul.topics li.dd-item ul li.dd-item > a:hover{
  background: rgba(255,255,255,0.05) !important;
}
#sidebar ul.topics li.dd-item ul li.dd-item.active > a{
  background: rgba(255,255,255,0.03) !important;
}

#sidebar ul.topics li.dd-item ul li.dd-item.active > a{
  box-shadow: inset 3px 0 0 #ff3c3c !important;
}

/* Prevent “dim” look on top-level items */
#sidebar ul.topics > li.dd-item > a{ opacity: 1 !important; }
#sidebar ul.topics li.dd-item ul li.dd-item > a{ opacity: 0.88 !important; }


















/* ==============================
   DARK GUIDE CONTENT AREA
================================= */

/* Main page background */
body,
.page,
#body,
#body-inner {
  background: #111111 !important;
}

/* Content wrapper */
#body-inner {
  color: #e6e6e6 !important;
}

/* Article container (actual guide box) */
#body .padding,
#body .container,
#body-inner > .padding {
  background: #111111 !important;
  
  color: #e6e6e6 !important;
}

/* Remove any white cards */
.card,
.panel,
table {
  background: #1b1f26 !important;
  color: #e6e6e6 !important;
  border-color: #2a2f38 !important;
} 

/* Force all content text to white */
#body-inner,
#body-inner p,
#body-inner li,
#body-inner span,
#body-inner strong,
#body-inner em,
#body-inner div {
  color: #e6e6e6 !important;
}

/* Headings */
#body-inner h1,
#body-inner h2,
#body-inner h3,
#body-inner h4,
#body-inner h5,
#body-inner h6 {
  color: #ffffff !important;
}
#body-inner a {
  color: #4ea1ff !important;
}

#body-inner a:hover {
  color: #ffffff !important;
}
#body-inner table {
  background: #282828 !important;
  border: 1px solid #2a2f38 !important;
}

#body-inner th,
#body-inner td {
  border: 1px solid #2a2f38 !important;
  color: #e6e6e6 !important;
} 
#top-bar {
    background: #282828 !important;
}
hr {
    border-bottom: 4px solid #282828 !important;
}
.notices.yellow {
    background: #282828 !important;
}
.notices.red {
    background: #282828 !important;
}
.notices.blue {
    background: #282828 !important;
}
.notices.green {
    background: #282828 !important;
}
.hljs {
    background: #282828 !important;
}
pre {
    background: #282828 !important;
     border: 1px solid #282828 !important;
}
.hljs, .hljs-subst {
    color: #ffffff !important;
}

/* Hide page title inside guide content */
#body-inner > h1:first-child,
#body-inner > .page-header h1 {
    display: none !important;
}


/* Always expand all sidebar subcategories (Learn2 / Grav) */
#sidebar ul.topics li.dd-item > ul {
  display: contents !important; 
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
} 
