/*
* Header image
*/
@media screen {
    .md-header {
        background-image: url('../assets/header-bg.png');
        background-size: cover;
        background-position: center;
        background-color: transparent;
    }

    .md-header__inner {
        background-color: transparent;
    }

    .md-tabs {
        background-color: transparent;
    }

    [data-md-color-scheme="default"] .md-tabs__link {
        color: #1a1a1a;
    }
}

/**
 * HTTP method badges for OpenAPI documentation (neoteroi.mkdocsoad)
 */
.http-get, .http-post, .http-put, .http-delete, .http-patch,
.http-options, .http-head, .http-trace {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    color: #fff;
    vertical-align: middle;
}

.http-get     { background-color: #61affe; border: 1px solid #61affe; }
.http-post    { background-color: #49cc90; border: 1px solid #49cc90; }
.http-put     { background-color: #fca130; border: 1px solid #fca130; }
.http-delete  { background-color: #f93e3e; border: 1px solid #f93e3e; }
.http-patch   { background-color: #50e3c2; border: 1px solid #50e3c2; }
.http-options { background-color: #0d5aa7; border: 1px solid #0d5aa7; }
.http-head    { background-color: #9012fe; border: 1px solid #9012fe; }
.http-trace   { background-color: #785446; border: 1px solid #785446; }

/**
 * Hide auto-generated example disclaimer
 */
.small-note {
    display: none;
}

/**
 * Universal badges
 * Usage: <span class="badge badge-{color}">TEXT</span>
 * Colors: blue, green, orange, red, purple, teal, gray, indigo, yellow, pink
 */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
    color: #fff;
}

.badge-blue    { background-color: #2196f3; }
.badge-green   { background-color: #4caf50; }
.badge-orange  { background-color: #ff9800; }
.badge-red     { background-color: #f44336; }
.badge-purple  { background-color: #9c27b0; }
.badge-teal    { background-color: #009688; }
.badge-indigo  { background-color: #3f51b5; }
.badge-yellow  { background-color: #f59e0b; color: #1a1a1a; }
.badge-pink    { background-color: #e91e63; }
.badge-gray    { background-color: #757575; }

/**
 * Grafana dashboard cards
 * Layout the Material grid card so the preview sits on top,
 * description fills the middle, and the download button is pinned
 * to the bottom even if cards have different content length.
 */
.grafana-cards.grid.cards > ul > li,
.grafana-cards.grid.cards > ol > li {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.grafana-cards.grid.cards > ul > li > *,
.grafana-cards.grid.cards > ol > li > * {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
}

.grafana-cards.grid.cards > ul > li > p:first-child,
.grafana-cards.grid.cards > ol > li > p:first-child {
    margin: 0 0 0.8rem 0;
}

.grafana-cards.grid.cards > ul > li > p:last-child,
.grafana-cards.grid.cards > ol > li > p:last-child {
    margin-top: auto;
    margin-bottom: 0.8rem;
}

.grafana-preview {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.grafana-cards.grid.cards .badge {
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
}
