/* classic admonitions */

.md-typeset .admonition,
.md-typeset details {
    border-width: 0;
    border-left-width: 4px;
    font-size: unset;
}

/* table fonts and colors */

.md-typeset table:not([class]) {
    font-size: unset;
    line-height: initial;
}

.md-typeset table:not([class]) th {
    background-color: var(--md-code-bg-color);
}

/* draft elements */

.mkdocs-draft-marker {
    color: crimson;
}

samp {
    color: crimson;
    font-family: unset;
    font-weight: bold;
}

/* fancy borders */

.shadow {
box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.5);
}

/* print settings */

.md-typeset h2,
.md-typeset h3 {
    page-break-after: avoid;
}

@page {
    margin: 0.5in;
}

@media print {
    .md-main__inner {
        margin-top: 0;
    }

    .mkdocs-draft-marker, samp {
        display: none !important;
    }

    .screenonly {
        display: none !important;
    }
}

@media screen {
    .printonly {
        display: none !important;
    }
}

/* child pages in sections aren't indented? */
/* thanks to https://github.com/squidfunk/mkdocs-material/discussions/6460#discussioncomment-7936316 */
.md-nav[data-md-level="1"] > .md-nav__list {
    margin-left: 1em;
    padding-left: 0.5em;

    /* it kind of looks cool with the line, but it breaks with the standard 
    in the theme of using negative space for distinguishing layout regions */
    /* border-left: 1px solid var(--md-accent-fg-color); */
}

.auto-index {
    display: none;
}

.auto-index svg {
    fill: currentColor;
    flex-shrink: 0;
    height: 1.3em;
    margin-right: 0.25em;
    vertical-align: text-bottom;
}

/* to make things less redundant, show the auto-index only when not showing the sidebar */
@media screen and (max-width:76.234375em) {
    .auto-index {
        display: block;
    }
}

/* highlight the linked heading */
@keyframes highlight {
    0% {
        background: none;
        color:var(--md-typeset-color);
        text-decoration: none;
    }
    50%{
        background: #7E56C2;
        color: #fff;
        text-decoration: underline;
    }
    100% {
        background: none;
        color:var(--md-typeset-color);
        text-decoration: none;
    }
}

:target {
    /* animation: 3s ease-in-out 0s highlight; */
    /* animation: 3s cubic-bezier(0.4, 0, 0.6, 1) 0s highlight; */
    /* animation: 3s cubic-bezier(0.2, 0, 0.8, 1) 0s highlight; */
    /* https://cubic-bezier.com/#.75,0,.25,1 this thing was helpful.  */
    /* animation: 3s cubic-bezier(1, 0, 0, 1) 0s highlight; */
    animation: 3s cubic-bezier(.75,0,.25,1) 0s highlight;
}
