/*
Custom style for NaxToPy Web Documentation 
Date: 07/03/2025
Authors: Manuel Sanchez & Javier de la Fuente
Copyright: (c) 2025 Idaero Solutions
*/

/* Colors for LIGHT theme */
html[data-theme=light]{
  --pst-color-inline-code:#109090;
  --pst-color-danger-bg:#a6e4e4;
  --pst-color-danger:#208a9f;
  --pst-color-secondary:#00699d;
  --pst-color-target:#98cbdd59;
}

/* Colors for LIGHT theme */
html[data-theme=dark]{
  --pst-color-inline-code:#5ad1d1;
  --pst-color-danger-bg:#208a9f;
  --pst-color-danger:#a6e4e4;
  --pst-color-secondary:#ffd500;
}

/* Code highlighting for LIGHT theme */
html[data-theme="light"] .highlight .o {
  color: #3b3b3b;
}
html[data-theme="light"] .highlight .c1 {
  color: #008000;
}
html[data-theme="light"] .highlight .kc {
  color: #6730c5;
}
html[data-theme="light"] .highlight .k {
  color: #6730c5;
}
html[data-theme="light"] .highlight .sa {
  color: #840f0f;
}
html[data-theme="light"] .highlight .s2 {
  color: #b81515;
}

/* Code highlighting for DARK theme */
html[data-theme="dark"] .highlight .o {
  color: #cccccc;
}
html[data-theme="dark"] .highlight .c1 {
  color: #6a9955;
}
html[data-theme="dark"] .highlight .kc {
  color: #36bad4;
}
html[data-theme="dark"] .highlight .k {
  color: #36bad4;
}
html[data-theme="dark"] .highlight .kn {
  color: #36bad4;
}
html[data-theme="dark"] .highlight .sa {
  color: #d53b3b;
}
html[data-theme="dark"] .highlight .s2 {
  color: #ff6666;
}

.bd-main .bd-content .bd-article-container {
    max-width: 100em;
}

card-img-bottom, .sd-card-img-top {
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
  margin-top: 5px;
}

html[data-theme=dark] .bd-content img:not(.only-dark,.dark-light) {
  background-color: #ffffff00;
  border-radius: .25rem;
}

@media (min-width: 960px) {
  .bd-sidebar-primary {
    background-color: var(--pst-color-background);
    border-right: 1px solid var(--pst-color-border);
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100vh - var(--pst-header-height));
    overflow-y: auto;
    padding: 2rem 4rem 1rem 3rem;
    position: sticky;
    top: var(--pst-header-height);
    width: fit-content;
    font-size: var(--pst-sidebar-font-size);
  }
  .bd-page-width {
    max-width: 100%;
  }
}

@media (min-width: 1199.99px) {
  .bd-main .bd-content {
    display: flex;
    height: 100%;
    justify-content: space-between;
  }
  .bd-sidebar-secondary {
    background-color: var(--pst-color-background);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    font-size: var(--pst-sidebar-font-size-mobile);
    max-height: calc(100vh - var(--pst-header-height));
    order: 2;
    overflow-y: auto;
    padding: 2rem 3rem 1rem 0rem;
    position: sticky;
    top: var(--pst-header-height);
    width: fit-content;
  }
}

/* Style the OUTER div (remove theme's blue box, make it orange) */
div.deprecated {
    background-color: #fff3cd !important;
    border-left: 4px solid #ff8c00 !important;
    padding: 0.7em !important;
    border-radius: 4px !important;
    margin: 1em 0 !important;
}

/* Style the text inside */
div.deprecated p {
    margin: 0 !important;
}

/* Make the span inline and orange, NO background */
span.versionmodified.deprecated {
    font-weight: 600 !important;
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Icon Color */
div.deprecated::before,
span.versionmodified.deprecated::before {
    color: #d97706 !important;
}



/*
Hide the search button entirely 
.search-button-field {
    display: none !important;
}

.bd-search {
    display: none;
}
*/