/* ---------------------------------------------------------
   REMOVE NAVIGATION BUTTONS (About, Dark toggle)
   --------------------------------------------------------- */
.button_nav_wrapper {
    display: none !important;
}

#mode_toggle {
  display: none !important;
}

@media (min-width: 992px) {
  a[title="Toggle sidebar"] {
    display: none !important;
  }
}

/* ---------------------------------------------------------
   Reduce whitespace above the main content area (before first title) 
   --------------------------------------------------------- */
div.document div.documentwrapper {
  padding-top: 0; 
}

/* ---------------------------------------------------------
   REMOVE FOOTER COPYRIGHT & THEME CREDIT
   --------------------------------------------------------- */
.footer[role="contentinfo"],
#theme_credit {
    display: none !important;
}

/* ---------------------------------------------------------
   CHANGE PICCOLO TOP NAV BAR COLOR
   --------------------------------------------------------- */
/* Background for the inner nav bar */
#top_nav nav {
    background-color: #545454 !important;   
}

/* Optional: match outer container too */
#top_nav {
    background-color: #545454 !important;
}

/* ---------------------------------------------------------
   SLIGHTLY MORE VERTICAL SPACE BETWEEN PARAGRAPHS
   --------------------------------------------------------- */
div.line-block {
    margin-bottom: 0.5em;
}
div.line-block .line {
    margin-bottom: 0.25em;
}
/* ---------------------------------------------------------
   LOGO 
   --------------------------------------------------------- */
img[src*="epw_logo"] {
  height: 44px !important;
  width: auto !important;
  border-radius: 4px !important;
  background: #fff !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  display: block !important;
}

@media (min-width: 992px) {
  /* The link that wraps the logo */
  #top_nav a:has(img) {
    display: inline-flex;
    align-items: center;
  }

  /* The text itself */
  #top_nav a:has(img)::after {
    content: "EPW code";
    margin-left: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
  }
}


/* ---------------------------------------------------------
   Sidebar vertical alignment under the top gray bar
   -------------------------------------------------------- */
div.sphinxsidebarwrapper {
  padding-top: 12px !important;  
}
#right_sidebar {
  padding-top: 75px ! important;
}

/* ---------------------------------------------------------
   Toctree caption in sidebar (e.g., "PROJECT") 
   --------------------------------------------------------- */

div.sphinxsidebar p.caption > .caption-text {
  color: #2863b3 !important;
}

div.sphinxsidebar p.caption > span.caption-text {
  text-transform: none;      /* disable ALL CAPS */
  font-weight: 600;       
  color: #2863b3; 
}

/* ---------------------------------------------------------
   Highlight color
   --------------------------------------------------------- */
.highlight,
.highlight pre,
pre {
  background-color: #f6f8fa;
}

/* ---------------------------------------------------------
   Expand the main text on large screens 
   --------------------------------------------------------- */

@media (min-width: 1200px) {
  div.document div.documentwrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

