/* General background changes */

.wy-side-scroll {
  background: #101314;
}

.wy-side-nav-search {
  background: #101314;
}

.wy-body-for-nav {
  background: #212728;
}

.wy-nav-content {
  background: #171c20;
  color: rgb(176, 176, 176);
  min-height: 100vh;
}

/* Update admonitions for dark theme */

.rst-content .admonition,
.rst-content details {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

.rst-content .admonition-title,
.rst-content summary {
  background-color: #2a2a2a;
  color: #ffffff;
}

/* Code blocks */

.rst-content pre code {
  background-color: #1b1f23;
  color: #e6e6e6;
  border: 1px solid #2d3338;
}

/* Inline code */

.rst-content p code,
.rst-content li code,
.rst-content td code {
  padding: 2px 6px;
  border-radius: 3px;
  background-color: #22272b;
  color: #ffcc80;
}

/* Links */

.wy-nav-content a {
  color: #4da3ff;
  text-decoration: none;
}

.wy-nav-content a:hover,
.wy-nav-content a:focus {
  color: #7bbcff;
  text-decoration: none;
}

.wy-nav-content a:visited {
  color: #8ab4f8;
}

/* Fonts */
@font-face {
  font-family: 'FuturaCondensedMedium';
  src:
    url('/fonts/Futura Condensed Medium.woff2') format('woff2'),
    url('/fonts/Futura Condensed Medium.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  /* Font metric overrides to prevent layout shift */
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
  size-adjust: 105%;
}

@font-face {
  font-family: 'GrenzeMedium';
  src:
    url('/fonts/Grenze-Medium.woff2') format('woff2'),
    url('/fonts/Grenze-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  /* Font metric overrides to prevent layout shift */
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 108%;
  /* Subset to Latin characters only for better performance */
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

* {
  font-family: 'GrenzeMedium', sans-serif;
  font-size: 14pt;
}

/* Sidebar search container */
.wy-side-nav-search {
  background-color: #101314;
  border-bottom: 1px solid #2e3338;
}

/* Search input */
.wy-side-nav-search input[type='text'],
#content_search input[type='text'] {
  background-color: #171c20;
  color: #e0e0e0;
  border: 1px solid #2e3338;
  box-shadow: none;
}

/* Placeholder text */
.wy-side-nav-search input::placeholder,
#content_search input[type='text']::placeholder {
  color: #9aa0a6;
}

/* Focus state */
.wy-side-nav-search input[type='text']:focus,
#content_search input[type='text']:focus {
  border-color: #4da3ff;
  outline: none;
}

/* MAKE CONTENT FULL WIDTH */

.wy-nav-content {
  max-width: none;
}

.wy-nav-content-wrap {
  padding-right: 0rem;
}

/* NAVIGATION MENU */

.wy-side-scroll {
  padding-bottom: 4rem;
}

.wy-nav-side {
  padding: 0;
}

.wy-menu-vertical p.caption {
  color: #fcc35d;
  font-weight: normal;
}

.wy-menu-vertical li.current > a,
.wy-menu-vertical li.toctree-l1 > a:hover,
.wy-menu-vertical li.current > a:hover,
.wy-menu-vertical li.toctree-l2.current > a,
.wy-menu-vertical li.toctree-l2,
.wy-menu-vertical li.toctree-l2 a,
.wy-menu-vertical li.toctree-l2 a:hover {
  background-color: #303a42;
  color: white;
}

.wy-menu-vertical li.toctree-l1.current > a,
.wy-menu-vertical li.toctree-l2,
.wy-menu-vertical li.toctree-l2 a {
  border: none;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a {
  background-color: #303a42;
  color: white;
  border: none;
}

/* TABLE */

table {
  color: white;
}

th {
  color: white;
}

.rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
  background-color: #303a42;
}

/* HIGHLIGHT */

.hljs-number {
  color: #ffcc80;
}

/* Hide footer text and anchor elements */

footer,
footer > a {
  font-size: 0;
}

footer .rst-footer-buttons,
footer .rst-footer-buttons * {
  font-size: 1rem;
}

/* Navigation buttons */

.btn-neutral {
  background-color: #fcc35d !important;
  color: #171C20; !important;
}
