/* The fixed tabs' height: the page starts under them, and the banner sticks right below them. */
:root {
    --docs-tabs-height: 3.25rem;
}

body {
    padding-top: calc(var(--pc-navbar-height) + var(--docs-tabs-height));
}

.docs-tabs {
    position: fixed;
    top: var(--pc-navbar-height);
    left: 0;
    right: 0;
    z-index: 1029;
    height: var(--docs-tabs-height);
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0 1rem;
    background-color: color-mix(in srgb, var(--pc-bg) var(--pc-bar-alpha), transparent);
    -webkit-backdrop-filter: var(--pc-bar-blur);
    backdrop-filter: var(--pc-bar-blur);
    border-bottom: 1px solid var(--pc-line);
}

/* main.css puts Montserrat on every element with !important; the tabs follow the platform like the navbar. */
.docs-tabs,
.docs-tabs * {
    font-family: var(--pc-font) !important;
}

.docs-tabs .nav-link {
    padding: 0.875rem 0.75rem;
    color: var(--pc-muted);
    font-size: 14px;
    font-weight: 500;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.docs-tabs .nav-link:hover,
.docs-tabs .nav-link:focus {
    color: var(--pc-fg);
    border-bottom-color: var(--pc-line2);
}

.docs-tabs .nav-link.active {
    color: var(--pc-fg);
    border-bottom-color: var(--pc-fg);
    background-color: transparent;
}

.docs-error {
    max-width: 40rem;
    margin: 2rem;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--pc-bad) 30%, transparent);
    border-radius: 10px;
    background: var(--pc-bad-bg);
    color: var(--pc-fg);
    font-family: var(--pc-font) !important;
    font-size: 15px;
}

/* The platform banner: a full-width strip tinted with the accent, an accent edge and a bold lead, so a new reader
   sees it first while it still reads as text. It sticks under the tabs, so it stays in view however far the page
   scrolls. */
.docs-banner {
    position: sticky;
    top: calc(var(--pc-navbar-height) + var(--docs-tabs-height));
    z-index: 1028;
    padding: 16px 20px 16px 16px;
    border-left: 4px solid var(--pc-accent);
    border-bottom: 1px solid color-mix(in srgb, var(--pc-accent) 35%, transparent);
    background: color-mix(in srgb, var(--pc-accent) 14%, var(--pc-bg));
    color: var(--pc-fg);
    font-family: var(--pc-font) !important;
    font-size: 15px;
    line-height: 1.5;
}

.docs-banner strong {
    color: var(--pc-accent2);
    font-family: var(--pc-font) !important;
    font-weight: 600;
}

.docs-banner a {
    color: var(--pc-accent2);
    font-family: var(--pc-font) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.docs-banner a:hover,
.docs-banner a:focus-visible {
    text-decoration-thickness: 2px;
}
