/* -- fonts ---- */

@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

/* -- root ----*/

  :root {
    --primary: #0AAD89;
    --secondary: #6582A3;
    --red: #DD4768;
    --yellow: #FD7F11;
    --green: #0AAD89;
    --blue: #1F77B4;
    --light_blue: #87B7FF;
    --menu-bg: #FFFFFF;
    --content-bg: #FAFAFA;
    --text: #121F2E;
    --card-table: #EFF2F4;
    --card-table-1: #E6EBEF;
  }

  [data-theme="dark"] {
    --menu-bg: #17293C;
    --content-bg: #121F2F;
    --text: #E8EAEB;
    --card-table: #162739;
    --card-table-1: #0E1A27;
  }
  
  html, body {
    min-height: 100%;
  }
  
  html {
    font-size: 14px;
    color: var(--text);
    font-family: Roboto, sans-serif;
  }

  body {
    margin: 0;
    background-color: var(--content-bg);
  }

  h1 {
    font-weight: 400;
    font-size: 30px;
    margin: 30px 0px 20px;
  }
  
  h2 {
    font-weight: 400;
    font-size: 24px;
    margin: 0px 0px 20px 0px;
  }

  h3 {
    font-weight: 400;
    font-size: 21px;
    margin: 0px 0px 20px 0px;
  }

  h4 {
    font-weight: 500;
    font-size: 19px;
    margin: 0px 0px 20px 0px;
  }

  section {
    margin-bottom: 45px;
  }

  p.rubric {
    font-weight: 500;
    font-size: 17px;
    margin: 25px 0px 10px;
    color: var(--secondary);
  }
  
  p, span {
    line-height: 24px;
    margin-block-start: 0px;
    margin-block-end: 0px;
  }

  p {
    margin-bottom: 10px;
    font-size: 15px;
  }

  p > img {
    vertical-align: middle;
  }

  .section {
    margin-bottom: 50px;
  }
  
  hr {
    border: none;
    border-bottom: 1px solid var(--card-table);
    margin-top: 30px;
  }

  i {
    font-size: smaller;
  }

  h1 a.headerlink,
  h2 a.headerlink,
  h3 a.headerlink,
  h4 a.headerlink {
    opacity: 0;
  }

  h1:hover a.headerlink,
  h2:hover a.headerlink,
  h3:hover a.headerlink,
  h4:hover a.headerlink {
    opacity: 80%;
    color: var(--secondary);
    margin-left: 5px;
  }

  h1 i.primary,
  h2 i.primary,
  h3 i.primary,
  h4 i.primary {
    color: var(--primary);
  }

/* -- topbar ---- */

  .topbar {
    display: flex;
    align-items: flex-end;
    height: 72px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--secondary);
    background: var(--menu-bg);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
  }
  
  .topbar .logo-mini,
  .topbar .burger {
    display: none;
  }
  
  div.logo {
    margin-right: 30px;
  }

  img.logo {
    width: 160px;
  }

  .topbar .menu-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: -webkit-fill-available;
  }

  .topbar .wrapper {
    display: flex;
    align-items: flex-end;
  }

  .topbar ul li {
    width: 135px;
    float: left;
    list-style-type: none;
    text-align: center;
    margin: 0px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
  }

  .topbar ul li a {
    text-decoration: none;
    color: var(--secondary);
    margin: 0px;
    padding: 10px 0;
  }

  li.toctree-l1:hover {
    border-bottom: 2px solid;
    border-bottom-color: var(--secondary);
    color: var(--secondary);
    cursor: pointer;
    font-weight: 500;
  }

  li.toctree-l1:hover a {
    color: var(--secondary);
    font-weight: 500;
  }

  li.toctree-l1.current {
    color: var(--secondary);
    border-bottom: 2px solid;
    border-bottom-color: var(--secondary);
    font-weight: 500;
  }

  .topbar ul li a.current {
    color: var(--secondary);
    font-weight: 500;
  }

  .language-select-wrapper {
    margin-left: 100px;
    margin-bottom: 10px;
  }

  .language-select-wrapper select {
    background: var(--menu-bg);
    border: none;
    outline: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 14px;
  }

  /* -- sidebar ---- */

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100%;
    padding: 90px 20px 20px;
    color: var(--secondary);
    box-sizing: border-box;
    overflow: scroll;
    z-index: 1;
  }

  .sidebar a.reference,
  link {
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
  }

  .sidebar li {
    margin-top: 10px;
  }
  
  .sidebar li > a:hover,
  .sidebar li > a.active {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
  }

  .sidebar > ul {
    list-style-type: none;
    padding-left: 0px;
  }

  .sidebar > ul > li > ul {
    padding-left: 0px;
    list-style-type: none;
  }

  .sidebar > ul > li > ul > li > ul {
    padding-left: 30px;
    list-style-type: disc;
  }

  .sidebar > ul > li > ul > li > ul > li > ul {
    padding-left: 20px;
    list-style-type: disc;
  }

  .sidebar > ul > li > a {
    display: none;
  }

  .sidebar > ul > li > ul > li > ul > li::marker,
  .sidebar > ul > li > ul > li > ul > li > ul > li::marker {
    font-size: 18px;
  }

  .sidebar a {
    text-decoration: none;
  }

/* -- content ---- */

  .content {
    margin-top: 72px;
    position: relative;
    padding: 20px 200px 50px 300px;
    background: var(--content-bg);
    box-sizing: border-box;
  }

  .content-index,
  .content-reference {
    margin-top: 72px;
    padding: 20px 30px 50px 300px;
    background: var(--content-bg);
    box-sizing: border-box;
  }

  .content .bold,
  .content-index .bold,
  .content-reference .bold {
    font-weight: bold;
  }

  .p {
    margin-bottom: 30px;
  }

  .content-index > section > p {
    margin-right: 300px;
  }

  .content-reference table,
  .content-index table {
    width: 75%;
  }

  ol,
  ul {
    padding-left: 25px;
    margin-bottom: 15px;
  }

  .content ol.arabic > li::marker,
  .content ol.arabic.simple > li::marker {
    color: var(--text);
    font-size: 14px;
  }

  .content li > ul,
  .content-index li > ul,
  .content-reference li > ul,
  .content li > ol,
  .content-index li > ol,
  .content-reference li > ol {
    padding-left: 15px;
    margin-bottom: 0px;
  }
    
  .content li {
    margin-top: 5px;
  }

  .content li::marker,
  .content-index li::marker,
  .content-reference li::marker {
    color: var(--secondary);
    font-size: 18px;
  }

  .content a.reference,
  .content-index a.reference,
  .content-reference a.reference {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
  }

  .content a.reference:hover,
  .content-index a.reference:hover,
  .content-reference a.reference:hover {
    text-decoration: underline;
  }

  .content .section {
    scroll-margin-top: 100px;
  }

  .content .highlight {
    margin: 30px 0px 30px;
  }

  dt {
    display: list-item;
    list-style-type: disc;
    margin: 10px 0px 10px 15px;
  }

  dt::marker {
    color: var(--secondary);
    font-size: 18px;
  }

  dd {
    margin-left: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-table);
  }

  dd > p {
    margin-bottom: 0px;
  }

  .content dd > dl,
  .content-reference dd > dl {
    margin-left: 15px;
    margin-bottom: 0px;
  }

  dd:last-child {
    border: none;
  }

  .content dd > ul,
  .content-reference dd > ul {
    padding-left: 30px;
    margin-bottom: 10px;
  }

  .content ol > li > p,
  .content-reference ol > li > p {
    padding-left: 10px;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px;
    border: 0.5px var(--card-table);
    box-shadow: 2px 2px 2px 0px var(--card-table);
  }

  th > p {
    font-weight: 500;
    padding: 5px;
    vertical-align: middle;
    margin: 0px;
    line-height: 22px;
  }

  th {
    text-align: left;
  }

  th, td {
    border-collapse: collapse;
    border: 1px solid var(--card-table);
    line-height: 22px;
  }

  td > p {
    padding: 5px 10px;
    vertical-align: middle;
    line-height: 22px;
    margin: 0px;
  }

  iframe {
    margin-top: 15px;
  }

  .content img {
    border-radius: 5px;
    border: 1px solid var(--card-table-1);
    margin: 15px;
  }

  figure {
    margin-left: 20px;
  }

  blockquote {
    margin-left: 25px;
  }

  .article-list {
    margin: 0px;
    column-count: 2;
    column-gap: 20px;
  }

  .article-list > li {
    margin: 10px 0px 15px 0px;
  }

/* -- toggle ---- */

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    margin-right: 45px;
    margin-bottom: 8px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    width: 52px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: -2px;
    right: 0;
    bottom: 0;
    border-radius: 34px;
    background-color: var(--card-table);
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    border-radius: 50%;
    background-color: white;
    z-index: 2;
  }

  .slider-animated {
    width: 52px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: -2px;
    right: 0;
    bottom: 0;
    border-radius: 34px;
    background-color: var(--card-table);
    transition: .4s;
  }
  
  .slider-animated:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    border-radius: 50%;
    background-color: white;
    transition: .4s;
    z-index: 2;
  }

  .switch-img {
    margin: 6px 10px;
    z-index: 1;
  }
  
  input:checked + .slider, input:checked + .slider-animated {
    background-color: var(--primary);
  }
  
  input:focus + .slider, input:focus + .slider-animated {
    box-shadow: 0 0 1px var(--primary);
  }
  
  input:checked + .slider:before, input:checked + .slider-animated:before {
    transform: translateX(26px);
  }
  
/* -- search ---- */

  .search {
    width: 210px;
    border-bottom: 1px solid var(--secondary);
    margin-block-end: 0;
    white-space: nowrap;
  }
  
  .search input {
    width: 182px;
    border-color: transparent;
    margin-bottom: 10px;
    color: var(--secondary);
    background: transparent;
  }
  
  .search input:focus {
    outline: transparent;
  }
  
  .search input::placeholder {
    font-size: 14px;
    color: var(--secondary);
    font-family: Roboto, sans-serif;
  }
  
  .search img {
    width: 20px;
    vertical-align: middle;
  }

/* -- search results ---- */

  ul.search-results p.context span.highlighted {
    color: var(--primary);
  }

  ul.search-results {
    text-decoration: none;
  }

  ul.search-results li {
    margin-top: 30px;
  }

  ul.search-results li > a {
    font-size: 17px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    margin: 10px 0px;
  }

  ul.search-results p.context div.path,
  ul.search-results p.context div.path > a {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    margin-top: 25px;
  }

  ul.search-results p.context div.excerpt {
    margin: 10px 0px;
  }

  .founded {
    color: var(--primary);
  }

/* -- cards ---- */

  .info-card {
    display: flex;
    flex-flow: wrap;
    margin-bottom: 30px;
  }

  .card h4 {
    font-size: 15px;
    font-weight: 500;
    margin: 0px 0px 20px;
    color: var(--primary);
    text-decoration: none;
  }

  .card {
    display: block;
    width: 300px;
    padding: 20px;
    background: var(--card-table);
    border-radius: 8px;
    margin-top: 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: var(--text);
  }

  .card:hover {
    background: var(--card-table-1);
    cursor: pointer;
  }

  .card:not(:last-child) {
    margin-right: 20px;
  }

/* -- breadcrumbs ----*/

  .breadcrumbs {
    font-weight: 500;
  }
  
  .breadcrumbs a {
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
  }
  
  .breadcrumbs a:hover {
    text-decoration: underline;
  }
  
  .breadcrumbs span {
    color: var(--primary);
  }
  
  #home {
    width: 20px;
    vertical-align: text-bottom;
    border: none;
    margin: 0px;
  }
  
  .breadcrumbs .separator {
    color: var(--secondary);
    margin: 5px;
  }
  
/* -- expandable blocks ----*/

  .info {
    display: flex;
    font-size: 14px;
    font-weight: 500;
    padding-top: 15px;
    cursor: pointer;
    color: var(--secondary);
    border-radius: 5px;
    background-color: var(--card-table);
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .info::before {
    content: "";
    display: block;
    background: url(expand.png) no-repeat;
    background-size: 15px 15px;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    float: left;
  }

  .panel {
    padding-left: 10px;
    background-color: var(--card-table);
    border-radius: 5px;
  }

  .accordion::before {
    transform: rotate(45deg);
    transition: transform .3s ease-in-out;
  }

  .accordion.active::before {
    transform: rotate(90deg);
  }

  li > span {
    background: var(--card-table-1);
    font-family: 'Roboto Mono', monospace;
  }

/* -- admonitions and roles ---- */

  .note {
    max-width: 600px;
    padding: 20px;
    margin: 30px 0 30px;
    background: var(--card-table);
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--secondary);
  }

  .note p.admonition-title {
    display: flex;
    margin-bottom: 10px;
    color: var(--secondary);
    margin-top: 0px;
  }

  .note::before {
    content: "";
    display: block;
    background: url(note.png) no-repeat;
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    float: left;
  }

  .important {
    max-width: 600px;
    padding: 20px;
    margin: 30px 0 30px;
    background: var(--card-table);
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--primary);
  }

  .important p.admonition-title {
    display: flex;
    margin-bottom: 10px;
    color: var(--primary);
    margin-top: 0px;
  }

  .important::before {
    content: "";
    display: block;
    background: url(important.png) no-repeat;
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    float: left;
  }

  .attention {
    max-width: 600px;
    padding: 20px;
    margin: 30px 0 30px;
    background: var(--card-table);
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--red);
  }

  .attention p.admonition-title {
    display: flex;
    margin-bottom: 10px;
    color: var(--red);
    margin-top: 0px;
  }

  .attention::before {
    content: "";
    display: block;
    background: url(attention.png) no-repeat;
    background-size: 18px 18px;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    float: left;
  }

  .seealso {
    max-width: 600px;
    padding: 20px;
    margin: 30px 0 30px;
    background: var(--card-table);
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--secondary);
  }

  .seealso p.admonition-title {
    display: flex;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 400;
    margin-top: 0px;
  }

  .seealso p {
    margin-bottom: 0px;
  }

  .comment {
    color: var(--secondary);
    font-style: italic;
  }

  .tag {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    padding: 5px 10px;
    color: var(--secondary);
    background: var(--card-table);
    margin-right: 10px;
    border-radius: 100px;
    line-height: 30px;
  }

  .tag:hover {
    background: var(--card-table-1);
    cursor: pointer;
  }

  .param {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
  }

  .type {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 4px;
    color: var(--secondary);
    background: var(--card-table-1);
    margin-left: 10px;
    border-radius: 2px;
  }

  .ok {
    color: var(--green);
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    margin-right: 10px;
  }
  
  .error {
    color: var(--red);
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    margin-right: 10px;
  }
  
  .get {
    color: var(--content-bg);
    background-color: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    padding: 2px 4px;
    margin-right: 10px;
  }
  
  .post {
    color: var(--content-bg);
    background-color: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    padding: 2px 4px;
    margin-right: 10px;
  }

  .put {
    color: var(--content-bg);
    background-color: var(--yellow);
    border: 1px solid var(--yellow);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    padding: 2px 4px;
    margin-right: 10px;
  }

  .patch {
    color: var(--content-bg);
    background-color: var(--light_blue);
    border: 1px solid var(--light_blue);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    padding: 2px 4px;
    margin-right: 10px;
  }
  
  .delete {
    color: var(--content-bg);
    background-color: var(--red);
    border: 1px solid var(--red);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    padding: 2px 4px;
    margin-right: 10px;
  }
  
  .base {
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace
  }
  
  .endpoint {
    color: var(--text);
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
  }
  
  .path-param {
    color: var(--secondary);
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
  }

  .required {
    color: var(--primary);
    font-size: 15px;
    font-family: 'Roboto Mono', monospace;
  }

/* -- api ---- */

  .content-reference .rubric {
    margin-top: 0px;
  }

  .content-reference p,
  .content-reference li {
    width: 85%;
  }

  .content-reference ul {
    padding-left: 15px;
  }

  pre {
    font-size: 14px;
    font-family: 'Roboto Mono', monospace;
  }

  tt, code {
    font-family: 'Roboto Mono';
    color: var(--secondary);
    border: 1px solid var(--card-table-1);
    border-radius: 4px;
    background-color: var(--card-table);
    padding: 0px 5px;
    font-size: 12px;
  }

  .split {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  .split > div {
    width: 100%;
    height: fit-content;
  }

  .highlight {
    background: var(--card-table) !important;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 30px;
    overflow-x: scroll;
    padding-left: 10px;
  }
  
  .highlight-header {
    background: var(--card-table-1);
    padding: 10px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
  }
  
  .highlight-header p {
    margin: 0px;
    width: 100%;
  }
  
  .highlight-body {
    padding: 10px 20px;
    background: var(--card-table);
  }
  
  .highlight-body p {
    margin: 10px 0;
  }
  
  .highlight select {
    margin-left: auto;
    background: var(--card-table-1);
    border: none;
    outline: none;
    color: var(--secondary);
    cursor: pointer;
  }
  
  .highlight option:hover {
    background: none;
    color: var(--secondary);
  }

/* -- mobile version ---- */

  @media (max-width: 1280px) {

    .content-reference table,
    .content-index table {
      width: 100%;
    }
    
    .content table {
      max-width: 600px;
    }
    
    .content td img {
    display: block;
    }
  }

  @media (max-width: 960px) {

    .topbar {
      align-items: center;
      justify-content: space-between;
      position: fixed;
      top: 0;
      z-index: 1;
      width: 100%;
      padding: 0px 20px;
    }
  
    .topbar .menu-wrapper,
    .topbar .a,
    .topbar .logo {
      display: none;
    }

    .topbar .menu-wrapper.open {
      display: block;
      position: absolute;
      top: 72px;
      left: 0;
      background-color: var(--menu-bg);
      border-radius: 3px;
      padding: 10px;
    }

    .topbar .wrapper {
      display: block;
    }

    .topbar .wrapper ul {
      padding: 0px 5px;
    }

    .topbar .menu-wrapper.open .search {
      width: 100%;
      margin-top: 15px;
      margin-bottom: 50px;
    }

    .topbar .menu-wrapper.open .search input {
      width: 90%;
    }

    .topbar .menu-wrapper.open li.toctree-l1 {
      color: var(--secondary);
      border-bottom: none;
      font-weight: 400;
      padding-bottom: 15px;
      text-align: left;
      width: 100%;
    }

    .topbar .menu-wrapper.open li.toctree-l1:last-child {
      border-bottom: none;
      margin-bottom: 10px;
    }

    .topbar .menu-wrapper.open li.toctree-l1.current {
      color: var(--primary);
      font-weight: 400;
    }

    #home {
      display: inherit;
    }

    .language-select-wrapper {
      margin: 10px 0px;
      width: 100%;
    }
  
    .switch {
      margin-right: 0;
      margin-bottom: 0;
    }
  
    .topbar .logo-mini,
    .topbar .burger {
      display: block;
    }

    .topbar .logo-mini {
      width: 33px;
    }
  
    .content,
    .content-index,
    .content-reference {
      margin-top: 72px;
      padding: 50px 20px;
    }

    .content-index > section > p {
      margin: 0px;
    }

    .sidebar {
      display: none;
    }

    .content img {
      margin: 0px;
    }

    .search-results {
      display: block;
      width: 100%;
    }

    .search-results {
      padding: 20px 20px;
    }

    .upcoming-maintenances {
      padding: 50px 20px 20px;
    }
  
    .card-change {
      width: 80%;
    }

    .split {
      display: block;
    }

    .highlight {
      width: 100%;
    }

    .article-list {
      column-count: 1;
    }
  }