/*
This file is intended for site-wide, top-level CSS properties.
It should not be used in conjunction with Tailwind CSS,
as mixing both caused UI anomalies.
*/

body {
    /* Override the mkdocs default of 0.5rem */
    font-size: 0.8rem; /* 16px */
}

/* hide site name */
/* Explicitly specifying what we want to hide to fix certain UI elements */
.md-nav--lifted > label:nth-child(1) {
    font-size: 0;
}

/* hide site name */
.md-header__topic {
    visibility: hidden;
}

/* Footer customization */
.md-footer {
    background-color: transparent !important;
}

.md-footer-meta {
    background-color: transparent !important;
}

/* Don't hide these containers, just remove default styling */
.md-footer-meta__inner {
    padding: 0 !important;
    background-color: transparent !important;
}

/* Hide specific default elements */
.md-footer-copyright,
.md-footer-social {
    display: none !important;
}

/* For all default footer nav sections */
.md-footer-nav {
    display: none !important;
}

/* Ensure the footer is visible */
.md-footer {
    display: block !important;
}

/*
"Added in <version>" marker for reference entries (e.g. environment variables,
devenv.yaml options). Write the `[added-in:X.Y]` shorthand (expanded by
hooks/added_in.py) on its own line directly after a heading.

On reference pages, the hook moves markers into section headings (h2/h3) after
Markdown rendering, which keeps the headings' normal margins and anchors. On
other pages, markers stay below their heading and are slightly more prominent.
*/
:is(h2, h3) > small.added-in {
    flex: 0 0 auto;
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: lowercase;
}

:is(h2, h3):has(> small.added-in) {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    column-gap: 0.5rem;
}

:is(h1, h2, h3):has(+ p > small.added-in) {
    margin-bottom: 0.4rem;
}

:is(h1, h2, h3) + p:has(> small.added-in) {
    margin-top: 0;
}

:is(h1, h2, h3) + p > small.added-in {
    font-size: 0.7rem;
    font-weight: 500;
}

small.added-in {
    color: var(--md-default-fg-color--light);
    white-space: nowrap;
}
