/** Color definitions
 * Overrides: https://github.com/squidfunk/mkdocs-material/blob/6.0.2/src/assets/stylesheets/main/_colors.scss
 * Ref: https://squidfunk.github.io/mkdocs-material/getting-started/#color-scheme
 */
:root {
    /* Primary color shades */
    --md-primary-fg-color: rgb(63, 168, 223);
    --md-primary-fg-color--light: rgba(0, 133, 202, 0.8);
    --md-primary-fg-color--dark: rgb(0, 133, 202);

    /* Accent color shades */
    --md-accent-fg-color: rgb(0, 133, 202);
    --md-accent-fg-color--transparent: rgba(0, 133, 202, 0.65);

    /* Application specific colors */
    --cor-bg-color: rgb(41, 49, 71);
}

:root > * {
    /* Footer color shades */
    --md-footer-bg-color: white;
    --md-footer-bg-color--dark: var(--cor-bg-color);
    --md-footer-fg-color: grey;
    --md-footer-fg-color--light: lightgrey;
    --md-footer-fg-color--lighter: white;

    /* Typeset color shades */
    /* --md-typeset-a-color: This was earlier same as --md-primary-fg-color - but that is too dark
     *                       And was not distinguishable from --md-typeset-color. So, change this color.
     */
     --md-typeset-a-color: var(--md-primary-fg-color--light);
    }


.md-grid{
    max-width: 100%;
    margin-top: 0;
}

/** Footer
 * Overrides: https://github.com/squidfunk/mkdocs-material/blob/6.0.2/src/assets/stylesheets/main/layout/_footer.scss
 */
.footer-logo {
    width: 12em;
}

/** Header
 * Overrides: https://github.com/squidfunk/mkdocs-material/blob/6.0.2/src/assets/stylesheets/main/layout/_header.scss
 */
.md-header {
    background-color: var(--cor-bg-color);
}
.md-header-nav__button.md-logo {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin: 0px;
}

.md-header-nav__button.md-logo img {
    width: auto;
    height: auto;
    max-height: 2rem;
}

/** Sidebar
 * Overrides: https://github.com/squidfunk/mkdocs-material/blob/6.0.2/src/assets/stylesheets/main/layout/_sidebar.scss
 */
.md-sidebar {
    background-color: rgb(249, 249, 249);
    width: 13rem;
}

/** PDF generation
 * Styles taken from the sample material PDF generation and customize as needed
 * Ref: https://github.com/orzih/mkdocs-with-pdf/blob/v0.7.5/samples/mkdocs-material/docs/assets/css/extra.css
 */
@media print {
  .md-typeset {
    line-height: 1.4;
  }
  .md-typeset ul li,
  .md-typeset ol li {
    margin-bottom: .25rem;
  }

  #doc-toc ul li>a>span,
  .md-typeset h1>span,
  .md-typeset h2>span,
  .md-typeset h3>span {
    display: inline-block;
  }

  .md-typeset h1>span,
  .md-typeset h2>span,
  .md-typeset h3>span {
    padding-right: 0.5rem;
  }

  .md-typeset .tx-content__footer hr {
    background-color: transparent;
    border-bottom: 0.5px solid var(--cor-bg-color);
  }

  /* Overrides: https://github.com/orzih/mkdocs-with-pdf/blob/v0.7.5/mkdocs_with_pdf/styles/_heading.scss */
  article h1 {
    border-bottom: 2px solid black !important;
  }
  article h2 {
    border-bottom: 1px solid grey !important;
  }
  article#doc-cover>.wrapper h2 {
    /* Need to override the border in doc-cover due to the !important above */
    border: none !important;
  }
  article h3 {
    border-bottom: 0.5px solid lightgrey !important;
  }
}
