/* Use https://www.audioeye.com/color-contrast-checker/ to ensure colour contrast */

/* Import Lexend font family */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;500;800&display=swap');

/* Can use @import url('https://www.nerdfonts.com/assets/css/webfont.css'); but
that breaks Pygments named-function highlighting by using completely different
font. Instead using only what's needed from the CSS directly with .nf selector
removed. */
@font-face {
    font-family: "NerdFontsSymbols Nerd Font";
    src: url("https://www.nerdfonts.com/assets/fonts/Symbols-2048-em Nerd Font Complete.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

.nerd-font,
.nerd-fonts {
    font-family: "NerdFontsSymbols Nerd Font";
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* default muted-foreground doesn't work with light-blue background on sigs */
    --muted-foreground: #636d83;
}

html[data-theme="light"] {
    --pst-color-primary: #0197cd;
    --pst-color-secondary: #0197cd;
    --pst-color-secondary-highlight: #6d6a73;
    --pst-color-primary-highlight: #6d6a73;
}

/* Hide the theme switch button */
button[aria-label="Color theme switcher"] {
    display: none !important;
}

.h-14 {
    height: 5rem;
}

img {
    width: 15rem;
    height: auto;
    filter: invert(0) !important;
}

img.shadowed-image {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    margin: 30px auto;
}

.top-banner p {
    margin: 0;
}

* {
    /* Disable ligatures */
    font-variant-ligatures: none;
}

.copy {
    display: none;
}

.dark,
.dark-mode,
header,
footer,
code {
    background-color: white !important;
    color: black !important;
}

a.current.reference.internal,
kbd {
    background-color: #f1f5f9 !important;
    color: black !important;
}

body {
    background-color: white !important;
    color: black !important;
}

/* Updated font assignments */
h1 {
    font-family: 'Lexend', sans-serif !important;
    /* Extra Bold */
    font-weight: 800 !important;
}

h2,
h3,
h4,
h5,
h6,
p.caption {
    font-family: 'Lexend', sans-serif !important;
    /* Medium for subheadings */
    font-weight: 500 !important;
}

html,
body,
p {
    font-family: 'Lexend', sans-serif !important;
    /* Light */
    font-weight: 300 !important;
}

.sig-object {
    display: table;
    margin: 6px 0;
    color: #19527b;
    border-top: 3px solid #93bad4;
    background: #e7f2fa;
    padding: 6px;
    position: relative;
}

:is(.class, .exception)>dd> :is(.attribute, .method, .property)>.sig-object {
    border-left-color: var(--darkreader-border-cccccc, #3e4446);
    border: none;
    border-left: 3px solid #ccc;
}

/* Ensure that inline image (mainly vscode extensions pane icon) stays inline */
#content img.inline {
    margin-top: -1.5ex;
}

/* Card hover effects */
.sd-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.sd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.syside-download-btn {
    padding: 0.5em 1.2em;
    background: #06a6df;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 0 #ccc;
    transition: background 0.2s;
    height: 2.5em;
    display: flex;
    align-items: center;
}

.syside-download-btn:hover {
    background: #0594c7;
}

/* Footer Styles */
.footer-banner {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    width: 100%;
    justify-content: center;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.footer-section h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.footer-section p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #6c757d;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #3498db;
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }
}

/* Align navbar with content container */
.bd-header__inner {
    max-width: 1200px;
    /* Adjust if your content uses a different max-width */
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}