:root {
    /* Primary Colors */
    --md-primary-fg-color:        #7e22ce;
    --md-primary-fg-color--light: #a78bfa;
    --md-primary-fg-color--dark:  #4c1d95;

    /* Accent Colors */
    --md-accent-fg-color:         #b8a4f4;
    --md-accent-bg-color:         #fff;

    /* Background Colors */
    --md-bg-color:                #f9f5ff;
    --md-bg-color--light:         #fafafa;
    --md-bg-color--dark:          #2d2d2d;

    /* Text Colors */
    --md-text-color:              #333;
    --md-text-color--light:       #666;
    --md-text-color--dark:        #fff;

    /* Border Colors */
    --md-border-color:            #d1d5db;
    --md-border-color--light:     #e5e7eb;
    --md-border-color--dark:      #4b5563;

    /* Button Colors */
    --md-button-bg-color:         #7e22ce;
    --md-button-bg-color--hover:  #6b21a8;
    --md-button-text-color:       #fff;

    /* Link Colors */
    --md-link-color:              #7e22ce;
    --md-link-color--hover:       #4c1d95;
}

/* Hide the site name text next to logo */
.md-header__topic:first-child {
    display: none;
}

/* Hide site name in mobile sidebar */
.md-nav--primary .md-nav__title[for="__drawer"] {
    font-size: 0;
}

/* Smaller header logo */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    height: 1.2rem;
    width: auto;
}

/* Hero image sizing */
@media screen and (min-width: 60em) {
    .mdx-hero__image {
        width: 26rem !important;
        transform: translateX(4rem) !important;
    }
    .mdx-hero__image img {
        max-width: 100%;
        height: auto;
    }
    .mdx-hero__content {
        max-width: 28rem !important;
        padding-bottom: 4vw;
    }
}

/* Reduce white space below hero */
.mdx-container {
    padding-bottom: 0;
    padding-top: 2rem;
}

.mdx-hero__content {
    padding-bottom: 2rem;
}

/* Mobile: image below text */
@media screen and (max-width: 59.984375em) {
    .mdx-hero {
        display: flex;
        flex-direction: column;
    }
    .mdx-hero__content {
        order: 1;
    }
    .mdx-hero__image {
        order: 2;
        text-align: center;
    }
    .mdx-hero__image img {
        max-width: 80%;
        height: auto;
    }
}

/* Rounded search box */
.md-search__form {
    border-radius: 0.5rem;
}

.md-search__input {
    border-radius: 0.5rem;
}

.md-search__output {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Push "APIs" tab to the right */
.md-tabs__list {
    display: flex;
}

.md-tabs__item:last-child {
    margin-left: auto;
}

/* Hero Get Started button */
.mdx-hero .md-button {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-radius: 0.5rem;
}

/* Sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.md-footer {
    margin-top: auto;
}

/* Smaller article h1 headers */
.md-typeset h1 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
