.md-typeset ul li, .md-typeset ol li{
    margin-bottom: 0em;
}

[data-md-color-scheme="default"] {
  --md-typeset-kbd-border-color: #7e56c2;
}

.md-typeset kbd {
  font-size: .78em;
}

.md-typeset blockquote {
	border-left: .2rem solid hsl(262deg 47% 55%);

}

[data-md-color-primary=blue-grey] {
    --md-primary-fg-color: #0b5570;
    --md-primary-fg-color--light: #0F6888;
    --md-primary-fg-color--dark: #0B516A;
    --md-primary-bg-color: #fff;
    --md-typeset-a-color: #00bbff;
    --md-primary-bg-color--light: hsla(0,0%,100%,.7);
}

.md-banner__inner {
    font-size: .7rem;
    margin: .1rem auto;
    padding: 0 .8rem;
}

/* Center standalone images in content */
.md-typeset img {
    display: block;
    margin: 1.25rem auto;
    max-width: 35%;
}

.plateau-img img {
    width: 80%;
    max-width: 1100px;
}

.miningoverview-img img {
    width: 80%;
    max-width: 1100px;
}

/* Larger images with specific class */
.md-typeset img.large-image {
    max-width: 70%;
}

/* Distinct tab backgrounds (light + dark) */
[data-md-color-scheme="default"] .md-typeset .tabbed-content {
    background: #f6f7fb;
    border: 1px solid #dfe2e8;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-content {
    background: #1f2530;
    border: 1px solid #2f3745;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

/* Center mermaid flowcharts */
.md-typeset .mermaid {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto;
}

/* Soften question admonitions with neutral gray */
[data-md-color-scheme="default"] .md-typeset .admonition.question {
    background: #f7f7f7;
    border-color: #d4d4d4;
}

[data-md-color-scheme="default"] .md-typeset .admonition.question > .admonition-title {
    background: #ededed;
    color: #444;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question {
    background: #252a33;
    border-color: #3a404c;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question > .admonition-title {
    background: #2c323d;
    color: #d9d9d9;
}

/* Match the question icon tint to the gray palette */
[data-md-color-scheme="default"] .md-typeset .admonition.question > .admonition-title::before {
    background-color: #6b6b6b;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question > .admonition-title::before {
    background-color: #b5b5b5;
}

/* Image Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* Zoom animation keyframes */
@keyframes zoom {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoom-out {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

/* Modal Image */
.modal-img {
    animation-name: zoom;
    animation-duration: 0.25s;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    object-fit: contain;
}

.modal-img__zoom-out {
    animation-name: zoom-out;
    animation-duration: 0.25s;
}

/* Add hover effect to images to indicate they're clickable */
.md-typeset img:hover {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

/* Make TL;DR sections slightly smaller font */
.md-typeset .admonition.tldr {
    font-size: 0.92em;
}

/* Remove whitespace under headings */
.md-typeset h1 {
    margin-bottom: -0.65rem;
}