/* fonts import */
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap");

/* custom themeing */
.wy-body-for-nav {
  --bg-color0: #fff;
  --bg-color1: #fbfafc;
  --layout-color0: #e7e7e7;
  --layout-color1: #9840d2;
  --shadow-0: rgb(0 33 121 / 8%);
  --shadow-1: rgb(0 0 0 / 7%);
  --font-color0: #000;
  --font-color1: #3d3d3d;
  --font-color2: #8e8e8e;
  --font-color3: #cacaca;
  --font-color4: #ffffff;
  --brand-color0: #46096f;
  --brand-color1: #df0982;
  --active-gradient0: linear-gradient(45deg,
      var(--brand-color1),
      var(--brand-color0));
  --active-gradient1: linear-gradient(rgb(135, 0, 202) -41.11%,
      rgba(216, 164, 250, 0.92) 197.13%);
}

.wy-body-for-nav {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 400;
}

/* Left Navbar */
.wy-nav-side {
  background-color: var(--bg-color0);
  box-shadow: var(--shadow-1) 0px 10px 55px;
}

.wy-side-nav-search {
  background-color: var(--bg-color0);
  color: var(--font-color0);
}

.wy-side-nav-search>a {
  color: var(--font-color0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wy-side-nav-search>a::before {
  content: "";
  background-image: url(../logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 28px;
  height: 28px;
}

.wy-side-nav-search>div.version {
  color: var(--font-color2) !important;
}

.wy-menu-vertical li.current>a,
.wy-menu-vertical li.on a {
  background-image: var(--active-gradient0);
  background-size: 150%;
  background-position: left;
  color: var(--font-color4);
  transition: background-position 150ms ease;
}

.wy-menu-vertical li.current>a:hover,
.wy-menu-vertical li.on a:hover {
  background-image: var(--active-gradient0);
  background-size: 150%;
  background-position: right;
}

.wy-menu-vertical li.current>a:hover button.toctree-expand,
.wy-menu-vertical li.on a:hover button.toctree-expand {
  color: var(--font-color3);
}

/* left nav bar list item */
.wy-menu-vertical a {
  color: var(--font-color1);
}

.wy-menu-vertical a:hover {
  background-image: var(--active-gradient1);
  color: var(--font-color4);
}

.wy-nav-content {
  background-color: var(--bg-color1);
  max-width: 100dvw;
  max-width: 100vw;
  min-height: 100dvh;
  min-height: 100vh;
}

/* headers */
.rst-content .toctree-wrapper>p.caption,
h1,
h2,
h3,
h4,
h5,
h6,
legend {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  color: var(--brand-color0);
}


/* Style h1 headers only on API and stubs pages */
html[data-content_root="../"] h1 {
  opacity: 0.5 !important;
  color: #000000 !important;
  font-size: 100% !important;
  font-weight: normal !important;
  font-style: italic !important;
}

.wy-menu-vertical header,
.wy-menu-vertical p.caption {
  color: var(--brand-color0);
}

.wy-menu-vertical li.current>a button.toctree-expand,
.wy-menu-vertical li.on a button.toctree-expand {
  color: var(--font-color4);
}

/* Style the counter cards */
.card {
  box-shadow: 0 6px 20px 0 var(--shadow-0);
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  background-color: var(--bg-color0);
  transition: transform 150ms ease;
}

.card>h3 {
  color: var(--font-color0);
}

.card:hover {
  transform: scale(1.05);
}

/* buttons */
.btn {
  display: inline-flex;
  gap: 4px;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: 0px;
  border: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0.02857em;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 4px;
  text-transform: capitalize;
  color: var(--font-color4);
  background-color: var(--layout-color1);
}

.btn:active {
  padding: 6px 8px;
}

.btn-neutral {
  color: var(--font-color4) !important;
  background-color: var(--layout-color1) !important;
  transition: background-image 150ms linear;
}

.btn-neutral:hover {
  color: var(--font-color4) !important;
  background-image: var(--active-gradient1) !important;
}

.btn-neutral:visited {
  color: var(--font-color4) !important;
}

/* Search box */
.wy-side-nav-search input[type="text"] {
  webkit-transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  -o-transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-appearance: none;
  outline: transparent;
  height: 45px;
  padding: 0 30px;
  border-radius: 45px;
  width: 100%;
  outline: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid var(--layout-color0);
  background-color: var(--bg-color0);
  font-size: 14px;
  line-height: 1.42857143;
  color: var(--font-color1);
  display: inline;
  overflow: visible;
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
}

/* common elements */
.rst-content p a {
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  background: var(--active-gradient0);
  -webkit-background-clip: text;
  background-clip: text;
}

.wy-breadcrumbs>li.wy-breadcrumbs-aside>a {
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  background: var(--active-gradient0);
  -webkit-background-clip: text;
  background-clip: text;
}

/* img */
.rst-content img {
  border-radius: 8px;
}

/* highlighted texts */
.rst-content .highlighted {
  -webkit-text-fill-color: var(--font-color4);
  text-fill-color: var(--font-color4);
}

.rst-content code.xref,
.rst-content tt.xref,
a .rst-content code,
a .rst-content tt {
  -webkit-text-fill-color: var(--brand-color0);
  text-fill-color: var(--brand-color0);
}

/* =============================================================================
   ADMONITION BOXES STYLING
   ============================================================================= */

/* Shared border radius for enhanced elements */
.rst-content .note-enhanced,
.rst-content .seealso,
.rst-content .seealso table.autosummary {
  border-radius: 10px;
}

/* Note Enhanced Boxes */
.rst-content .note-enhanced {
  font-size: 1.5em;
  background: white;
  box-shadow: 0 4px 18px rgba(70, 9, 111, 0.50);
}

.rst-content .note-enhanced .admonition-title {
  border-radius: 10px 10px 0 0;
  background: var(--active-gradient0);
  color: #ffffff !important;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  padding: 12px 16px;
}

.rst-content .note-enhanced .admonition-title::before {
  display: none !important;
}

/* Seealso Boxes */
.rst-content .seealso {
  font-size: 1.1em;
  background: white;
  box-shadow: 0 4px 18px rgba(70, 9, 111, 0.50);
}

/* Reduce line spacing in formulation sections */
.rst-content .seealso p {
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.rst-content .seealso ol,
.rst-content .seealso ul {
  margin-bottom: 0.5em;
}

.rst-content .seealso li {
  margin-bottom: 0.3em;
  line-height: 1.3;
}

.rst-content .seealso .math {
  margin: 0.2em 0;
  line-height: 1.2;
}

.rst-content .seealso .admonition-title {
  border-radius: 10px 10px 0 0;
  padding-top: 16px;
  background: white;
  color: var(--brand-color0) !important;
  font-weight: bold;
}

.rst-content .seealso.note-enhanced-size .admonition-title::before,
.rst-content .left-box .admonition-title::before,
.rst-content .right-box .admonition-title::before {
  display: none !important;
}

.rst-content .seealso.note-enhanced-size>.admonition-title {
  font-weight: bold;
  text-align: center;
}

/* Tables */
.rst-content .seealso table.autosummary {
  border-collapse: separate;
  border-spacing: 0;
  border-width: 2px !important;
}

/* =============================================================================
   SIDE-BY-SIDE ALGORITHM LAYOUT
   ============================================================================= */

/* Container Layout */
.side-by-side {
  display: flex;
}

.left-box,
.right-box {
  flex-direction: column;
}

/* Algorithm Boxes */
.rst-content .left-box .note,
.rst-content .right-box .note {
  background: white !important;
  overflow: hidden !important;
}

/* Algorithm Titles */
.left-box .admonition-title,
.right-box .admonition-title {
  text-align: center;
  font-size: 1em !important;
}

/* =============================================================================
   PAGE-SPECIFIC FIXES
   ============================================================================= */

/* Hide duplicate title on all qbraid_algorithms submodule pages */
section[id^="module-qbraid_algorithms."]>p:first-of-type {
  display: none;
}