/* ============================================================
   AiX Documentation
   Custom Material for MkDocs Theme

   DDX Business Solutions Limited
   ============================================================ */


/* ============================================================
   1. AIX DESIGN VARIABLES
   ============================================================ */

   :root {
    --aix-primary: #087eae;
    --aix-primary-dark: #164a68;
    --aix-primary-darker: #123e58;
    --aix-accent: #2196f3;

    --aix-text: #263b4d;
    --aix-text-muted: #60758a;

    --aix-border: #e2e8ee;
    --aix-sidebar-bg: #f8fafc;
    --aix-content-bg: #ffffff;

    --aix-active-bg: #eaf4ff;
    --aix-hover-bg: #f0f6fb;

    --aix-success-bg: #eefaf4;
    --aix-info-bg: #eef7ff;
}


/* ============================================================
   2. GLOBAL LAYOUT
   ============================================================ */

.md-grid {
    max-width: 1500px;
}

.md-main {
    background-color: var(--aix-content-bg);
}

.md-content {
    min-width: 0;
}


/* ============================================================
   3. HEADER
   ============================================================ */

.md-header {
    background: linear-gradient(
        135deg,
        var(--aix-primary-darker) 0%,
        var(--aix-primary-dark) 100%
    );

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}


/* AiX logo */

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    height: 1.9rem;
    width: auto;
}


/* Site title */

.md-header__title {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}


/* Search box */

.md-search__form {
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.12);
}

.md-search__input {
    font-size: 0.68rem;
}


/* ============================================================
   4. LEFT SIDEBAR
   ============================================================ */

.md-sidebar--primary {
    width: 12.5rem;
}


/* Sidebar navigation container */

.md-sidebar--primary .md-sidebar__scrollwrap {
    background-color: var(--aix-sidebar-bg);
}


/* Remove excessive navigation spacing */

.md-sidebar--primary .md-nav {
    font-size: inherit;
}


/* ------------------------------------------------------------
   Normal menu items
   ------------------------------------------------------------ */

.md-sidebar--primary .md-nav__link {
    font-size: 0.64rem;
    line-height: 1.30;

    margin-top: 0.10rem;
    margin-bottom: 0.10rem;

    padding-top: 0.15rem;
    padding-bottom: 0.15rem;

    color: var(--aix-text-muted);

    transition:
        color 0.15s ease,
        background-color 0.15s ease;
}


/* ------------------------------------------------------------
   Major section headings
   GETTING STARTED / ARCHITECTURE / DEPLOYMENT / etc.
   ------------------------------------------------------------ */

.md-sidebar--primary
.md-nav__item--section
> .md-nav__link {
    font-size: 0.56rem;

    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.065em;

    color: #526b80;

    margin-top: 0.80rem;
    margin-bottom: 0.20rem;

    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}


/* First section does not need large top spacing */

.md-sidebar--primary
.md-nav__item--section:first-child
> .md-nav__link {
    margin-top: 0.25rem;
}


/* ------------------------------------------------------------
   Active navigation page
   ------------------------------------------------------------ */

.md-sidebar--primary .md-nav__link--active {
    color: var(--aix-primary) !important;

    font-weight: 600;

    background-color: var(--aix-active-bg);

    border-left: 3px solid var(--aix-accent);

    padding-left: 0.45rem;

    border-radius: 0 4px 4px 0;
}


/* ------------------------------------------------------------
   Navigation hover
   ------------------------------------------------------------ */

.md-sidebar--primary .md-nav__link:hover {
    color: var(--aix-primary);

    background-color: var(--aix-hover-bg);

    border-radius: 4px;
}


/* ------------------------------------------------------------
   Navigation expand/collapse icons
   ------------------------------------------------------------ */

.md-sidebar--primary .md-nav__icon {
    width: 0.85rem;
    height: 0.85rem;

    opacity: 0.7;
}


/* ------------------------------------------------------------
   Nested navigation
   ------------------------------------------------------------ */

.md-sidebar--primary
.md-nav
.md-nav {
    margin-left: 0.25rem;
}


/* ============================================================
   5. RIGHT SIDEBAR / TABLE OF CONTENTS
   ============================================================ */

.md-sidebar--secondary {
    width: 11rem;
}


/* TOC title */

.md-sidebar--secondary .md-nav__title {
    font-size: 0.57rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.06em;

    color: #526b80;

    margin-bottom: 0.45rem;
}


/* TOC entries */

.md-sidebar--secondary .md-nav__link {
    font-size: 0.60rem;

    line-height: 1.30;

    color: var(--aix-text-muted);

    margin-top: 0.12rem;
    margin-bottom: 0.12rem;
}


/* Active TOC entry */

.md-sidebar--secondary .md-nav__link--active {
    color: var(--aix-primary);

    font-weight: 600;
}


/* TOC hover */

.md-sidebar--secondary .md-nav__link:hover {
    color: var(--aix-primary);
}


/* ============================================================
   6. MAIN CONTENT TYPOGRAPHY
   ============================================================ */

.md-typeset {
    font-size: 0.72rem;
    line-height: 1.65;

    color: var(--aix-text);
}


/* ------------------------------------------------------------
   Page title / H1
   ------------------------------------------------------------ */

.md-typeset h1 {
    font-size: 1.65rem;

    font-weight: 700;

    line-height: 1.25;

    letter-spacing: -0.025em;

    color: #18364b;

    margin-bottom: 1.0rem;
}


/* ------------------------------------------------------------
   H2
   ------------------------------------------------------------ */

.md-typeset h2 {
    font-size: 1.18rem;

    font-weight: 650;

    line-height: 1.35;

    color: #1d3b50;

    margin-top: 1.8rem;
    margin-bottom: 0.75rem;

    padding-bottom: 0.35rem;

    border-bottom: 1px solid var(--aix-border);
}


/* ------------------------------------------------------------
   H3
   ------------------------------------------------------------ */

.md-typeset h3 {
    font-size: 0.96rem;

    font-weight: 650;

    color: #29475d;

    margin-top: 1.45rem;
    margin-bottom: 0.55rem;
}


/* ------------------------------------------------------------
   H4
   ------------------------------------------------------------ */

.md-typeset h4 {
    font-size: 0.80rem;

    font-weight: 650;

    color: #36556c;

    margin-top: 1.2rem;
    margin-bottom: 0.45rem;
}


/* ------------------------------------------------------------
   Paragraphs
   ------------------------------------------------------------ */

.md-typeset p {
    margin-top: 0.55rem;
    margin-bottom: 0.75rem;
}


/* ============================================================
   7. LINKS
   ============================================================ */

.md-typeset a {
    color: var(--aix-primary);

    text-decoration: none;
}

.md-typeset a:hover {
    color: var(--aix-primary-dark);

    text-decoration: underline;
}


/* ============================================================
   8. LISTS
   ============================================================ */

.md-typeset ul,
.md-typeset ol {
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
}

.md-typeset li {
    margin-bottom: 0.18rem;
}


/* ============================================================
   9. TABLES
   ============================================================ */

.md-typeset table:not([class]) {
    font-size: 0.66rem;

    border: 1px solid var(--aix-border);

    border-radius: 6px;

    overflow: hidden;
}


/* Table header */

.md-typeset table:not([class]) th {
    font-weight: 650;

    color: #29475d;

    background-color: #f4f7fa;

    border-bottom: 1px solid var(--aix-border);
}


/* Table cells */

.md-typeset table:not([class]) td {
    vertical-align: top;
}


/* ============================================================
   10. CODE
   ============================================================ */

.md-typeset code {
    font-size: 0.66rem;

    border-radius: 4px;
}


/* Code blocks */

.md-typeset pre > code {
    font-size: 0.64rem;

    line-height: 1.55;
}


/* ============================================================
   11. ADMONITIONS
   ============================================================ */

.md-typeset .admonition,
.md-typeset details {
    font-size: 0.68rem;

    border-radius: 6px;

    box-shadow: none;
}


/* Admonition title */

.md-typeset .admonition-title,
.md-typeset summary {
    font-weight: 650;
}


/* ============================================================
   12. IMAGES
   ============================================================ */

.md-typeset img {
    max-width: 100%;

    height: auto;

    border-radius: 4px;
}


/* Optional image border

   Add:

   ![Architecture](image.png){ .aix-image }

*/

.md-typeset img.aix-image {
    border: 1px solid var(--aix-border);

    padding: 4px;

    background: #ffffff;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}


/* ============================================================
   13. MERMAID DIAGRAMS
   ============================================================ */

.mermaid {
    text-align: center;

    margin-top: 1rem;
    margin-bottom: 1.5rem;

    padding: 1rem;

    border: 1px solid var(--aix-border);

    border-radius: 6px;

    background-color: #ffffff;
}


/* ============================================================
   14. BREADCRUMBS / NAVIGATION PATH
   ============================================================ */

.md-path {
    font-size: 0.60rem;

    color: var(--aix-text-muted);
}


/* ============================================================
   15. FOOTER
   ============================================================ */

.md-footer {
    background-color: var(--aix-primary-darker);
}


/* Previous / next navigation */

.md-footer__link {
    font-size: 0.66rem;
}


/* Footer metadata */

.md-footer-meta {
    background-color: #10364d;
}


/* ============================================================
   16. SEARCH RESULTS
   ============================================================ */

.md-search-result__title {
    font-size: 0.75rem;
}

.md-search-result__article {
    font-size: 0.66rem;
}

.md-search-result__meta {
    font-size: 0.60rem;
}


/* ============================================================
   17. SCROLLBARS
   ============================================================ */

.md-sidebar__scrollwrap::-webkit-scrollbar {
    width: 5px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
    background-color: #c8d2dc;

    border-radius: 5px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-track {
    background: transparent;
}


/* ============================================================
   18. MOBILE / TABLET
   ============================================================ */

@media screen and (max-width: 76.234375em) {

    .md-sidebar--primary {
        width: 12.1rem;
    }

}


@media screen and (max-width: 44.984375em) {

    .md-typeset {
        font-size: 0.74rem;
    }

    .md-typeset h1 {
        font-size: 1.45rem;
    }

    .md-typeset h2 {
        font-size: 1.10rem;
    }

}


/* ============================================================
   19. PRINT
   ============================================================ */

@media print {

    .md-header,
    .md-sidebar,
    .md-footer {
        display: none !important;
    }

    .md-content {
        margin: 0 !important;
    }

    .md-typeset {
        font-size: 10pt;
    }

}