/* Tachys brand colour — scientific blue */
html[data-theme="light"],
:root {
    --pst-color-primary: #1A5FEB;
    --pst-color-link: #1A5FEB;
    --pst-color-link-hover: #1550C8;
}

html[data-theme="dark"] {
    --pst-color-primary: #4F8EF7;
    --pst-color-link: #4F8EF7;
    --pst-color-link-hover: #6BA3F9;
}

/* Slightly tighten heading tracking */
h1, h2, h3 {
    letter-spacing: -0.02em;
}

/* Module path label used before API items */
.module-path {
    font-family: var(--pst-font-family-monospace);
    font-size: 0.75rem;
    color: var(--pst-color-muted);
    background: var(--pst-color-surface);
    border: 1px solid var(--pst-color-border);
    padding: 2px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ── site header ───────────────────────────────────────────────────────────
 * The wordmark sat flush against the first nav link, so "tachys Quickstart"
 * read as one run of text. Separate the brand from the navigation with space
 * and a hairline rule, and let the links themselves breathe.
 * Only above the theme's collapse breakpoint: below it the links move into
 * the sidebar and a trailing rule would hang off the logo.
 */
.bd-header .navbar-brand {
    gap: 0.6rem;
    /* Bootstrap's own right margin would push the rule off-centre */
    margin-right: 0;
}
.bd-header .navbar-brand .logo__title {
    font-weight: 700;
    letter-spacing: -0.03em;
}

@media (min-width: 992px) {
    .bd-header .navbar-header-items__start {
        margin-right: 1.25rem;
    }
    .bd-header .navbar-header-items__start > .navbar-item {
        position: relative;
        padding-right: 1.25rem;
    }
    .bd-header .navbar-header-items__start > .navbar-item::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 1.5rem;
        background: var(--pst-color-border);
    }
    .bd-header ul.bd-navbar-elements {
        gap: 0.4rem;
    }
    .bd-header ul.bd-navbar-elements .nav-link {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
    }
}
