/* Small readability tweaks over the readthedocs theme. */
.wy-nav-content {
    max-width: 960px;
}
h1, h2, h3 {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}
code, pre, tt {
    font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
    font-size: 0.92em;
}
table.docutils {
    width: 100%;
}
blockquote {
    border-left: 4px solid #4a90d9;
    padding: 0.5em 1em;
    margin: 1em 0;
    background: #f5f7fa;
}

/* Anchor for the in-content "View on GitHub" button. Without this,
 * absolute positioning would resolve against the viewport. */
.rst-content {
    position: relative;
}

/* "View on GitHub" button injected by js/repo_button.js, anchored
 * to the top-right of the article content area (inside
 * `.rst-content`). Sits beside the page's H1 instead of floating
 * over the prose. */
#gos-repo-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 0.95em;
    border-radius: 8px;
    background: #1f2937;
    color: #ffffff !important;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
    transition: background 120ms ease, transform 120ms ease;
}
#gos-repo-button:hover,
#gos-repo-button:focus {
    background: #111827;
    transform: translateY(-1px);
    color: #ffffff !important;
    text-decoration: none !important;
}
#gos-repo-button svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 640px) {
    /* Collapse to icon-only on phones so the page H1 isn't
     * visually crowded. */
    #gos-repo-button { padding: 0.45em 0.55em; }
    #gos-repo-button .gos-repo-button-label { display: none; }
}
