/* https://gist.github.com/notpushkin/efdf663a5d170fb94c47c3d1f6a5583f */

.md-grid {
    max-width: 80rem;
}

.md-main__inner {
    display: flex;
    height: 100%;
    margin-top: 0.5rem;
}

.md-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 2.4rem;
    flex-shrink: 0;
    align-self: flex-start;
    width: 12.1rem;
    height: calc(100vh - 4.8rem);
    padding: 1.2rem 0;
}

.md-sidebar[data-md-state="lock"] {
    position: sticky;
}

.md-sidebar--secondary {
    order: 2;
    margin-left: 0;
    transform: none;
}

.md-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-grow: 1;
}

/*
.md-typeset .headerlink {
    // Example: color: dimgrey !important;
    color: dimgrey !important;
    display: initial !important;
    transition: initial !important;
}

.md-typeset .headerlink:hover {
    // Example: color: black !important;
    color: black !important;
}

.md-typeset .headerlink {
    opacity: initial !important;
}

.md-typeset p[id] .headerlink:focus, .md-typeset p[id]:hover .headerlink, .md-typeset p[id]:target .headerlink {
    -webkit-transform: translate(0);
    transform: translate(0);
    opacity: 1
}

.md-typeset p[id] .headerlink:focus, .md-typeset p[id]:hover .headerlink:hover, .md-typeset p[id]:target .headerlink{
    color:#536dfe
}
*/

/* Image formatting */

img {
    border-radius: 3.5%;
    border: 2px solid;
}

img.no-border {
    border-radius: 0%;
    border: 0px;
}

img.square-border {
    border-radius: 0%;
    border: 1.5px solid;
}

/* Table formatting */

/* https://stackoverflow.com/a/61290527 */

/* Only override for dark ("slate") scheme */
th {
    background-color: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
}

th:first-of-type {
    border-top-left-radius: 10px;
}
th:last-of-type {
    border-top-right-radius: 10px;
}
tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 10px;
}
tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 10px;
}

td {
    white-space: nowrap;
    max-width: 200px;
    overflow-y: hidden;
}

.long {
    white-space: normal;
    min-width: 250px;
    max-width: none;
    overflow-wrap: break-word;
}

/* Colors */

/* https://stackoverflow.com/a/35231016 */

.black {
    color: black;
}

.gray {
    color: gray;
}

.grey {
    color: gray;
}

.silver {
    color: silver;
}

.white {
    color: white;
}

.maroon {
    color: maroon;
}

.red {
    color: red;
}

.magenta {
    color: magenta;
}

.fuchsia {
    color: fuchsia;
}

.pink {
    color: pink;
}

.orange {
    color: orange;
}

.yellow {
    color: yellow;
}

.lime {
    color: lime;
}

.green {
    color: green;
}

.olive {
    color: olive;
}

.teal {
    color: teal;
}

.cyan {
    color: cyan;
}

.aqua {
    color: aqua;
}

.blue {
    color: blue;
}

.navy {
    color: navy;
}

.purple {
    color: purple;
}

/* .tippy-box {
    background-color:var(--pst-color-surface);
    color:var(--pst-color-text-base);
    border: 1px solid var(--pst-color-border);
} */