/*
 * Accops CMS Documentation — Extra CSS
 * Version: 1.0
 * Compatible with MkDocs Material 9.x
 */

/* ========================================================================
   MAIN LAYOUT
   ======================================================================== */

.md-grid {
    max-width: 80rem;
    margin-right: auto;
    margin-left: auto;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.md-footer-meta {
    display: none;
}

/* ========================================================================
   CONTENT STYLING
   ======================================================================== */

.highlight {
    margin: 1em 0;
    border-radius: 0.4em;
}

.md-typeset table:not([class]) {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.4em;
    overflow: hidden;
}

.md-typeset table:not([class]) th {
    background-color: var(--md-default-fg-color--lightest);
    font-weight: 600;
}

.md-typeset .admonition {
    border-left: 4px solid;
    border-radius: 0.4em;
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
}

/* ========================================================================
   ACCOPS BRAND COLORS
   ======================================================================== */

.md-typeset a {
    color: #ff5722;
}

.md-typeset a:hover {
    color: #f4511e;
}

.md-typeset .md-button {
    background-color: #ff5722;
    border-color: #ff5722;
    color: white;
}

.md-typeset .md-button:hover {
    background-color: #f4511e;
    border-color: #f4511e;
}

/* ========================================================================
   SCREENSHOT IMAGES
   ======================================================================== */

.md-typeset img {
    border: 0.5px solid var(--md-default-fg-color--light);
    border-radius: 0.4em;
    margin: 1em 0;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset img {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========================================================================
   SEARCH
   ======================================================================== */

.md-search-result mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 0.2em;
    border-radius: 0.2em;
}

/* ========================================================================
   DARK MODE
   ======================================================================== */

[data-md-color-scheme="slate"] {
    --md-code-bg-color: #1a1a1a;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

/* Ensure tables scroll horizontally on narrow viewports instead of clipping */
.md-typeset__scrollwrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tablet and below (≤ 960px) */
@media screen and (max-width: 960px) {
    .md-typeset table:not([class]) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .md-typeset img {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile (≤ 600px) */
@media screen and (max-width: 600px) {
    .md-grid {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .md-typeset table:not([class]) {
        font-size: 0.8rem;
    }

    .md-typeset code {
        font-size: 0.78rem;
        word-break: break-word;
    }

    .md-typeset .md-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5em;
    }
}

/* ========================================================================
   PRINT
   ======================================================================== */

@media print {
    .md-header,
    .md-tabs,
    .md-sidebar,
    .md-footer {
        display: none;
    }
}

/* ========================================================================
   ACCESSIBILITY
   ======================================================================== */

a:focus,
button:focus,
input:focus {
    outline: 2px solid #ff5722;
    outline-offset: 2px;
}
