/* Google Fonts: OpenSans for UI text, Fira Code for code blocks */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Override theme fonts */
:root {
    --pst-font-family-base: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --pst-font-family-code: 'Fira Code', Consolas, 'Courier New', monospace;
}

/* Sphinx default overrides */
body, .bd-content {
    font-family: var(--pst-font-family-base);
}

/* Code blocks */
.highlight, pre.literal-block, pre.code, code.literal {
    font-family: var(--pst-font-family-code) !important;
}

/* Sidebar and navbar */
.bd-header, .bd-sidebar-primary, .sidebar-primary {
    font-family: var(--pst-font-family-base);
}

/* Logo title text styling - stack title + version vertically */
.logo__title {
    font-family: var(--pst-font-family-base);
    font-weight: 600;
    font-size: 1rem;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
    gap: 0.1rem;
}

/* Resize logo */
.logo__image {
    max-height: 128px !important;
    width: auto !important;
}

/* Version text below title */
.logo__title .version {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Ensure code blocks have proper background */
.highlight {
    background-color: var(--pst-color-code-background) !important;
    border-radius: 4px;
    padding: 0.5em;
}
