:root {
    --md-primary-fg-color: #1565c0;
    --md-primary-fg-color--light: #1e88e5;
    --md-primary-fg-color--dark: #0d47a1;
    --md-accent-fg-color: #1565c0;
    --md-hue: 210;
}

body[data-md-color-primary="blue"] {
    --md-primary-fg-color: #1565c0;
    --md-primary-fg-color--light: #1e88e5;
    --md-primary-fg-color--dark: #0d47a1;
    --md-accent-fg-color: #1565c0;
}

.md-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 0 4px rgba(0,0,0,.14),0 4px 8px rgba(0,0,0,.28);
}

.md-header__inner {
    height: 3.2rem;
}

.md-tabs {
    background: linear-gradient(180deg, rgba(0,0,0,.07) 0%, transparent 100%);
}

.md-tabs__list {
    justify-content: center;
}

.md-header__topic {
    font-weight: 700;
}

.md-grid {
    max-width: 72rem;
}

.md-logo img {
    width: 2.4rem;
    height: 2.4rem;
}

[data-md-color-scheme="slate"] {
    --md-hue: 210;
    --md-default-bg-color: #1a1d23;
    --md-code-bg-color: #20232a;
}

.home-hero {
    text-align: center;
    padding: 2.5rem 0 2rem 0;
}

.home-hero .hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.home-hero .hero-logo {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

.home-hero .hero-title-row h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.home-hero .subtitle {
    font-size: 1.2rem;
    color: var(--md-primary-fg-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.home-hero .description {
    font-size: 1.1rem;
    max-width: 40rem;
    margin: 0 auto 1.5rem auto;
    opacity: 0.85;
}

.home-hero .install-code {
    display: inline-block;
    background: var(--md-code-bg-color);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-family: var(--md-code-font-family);
    font-size: 1rem;
    border: 1px solid var(--md-primary-fg-color--light);
}

.home-hero .install-code::before {
    content: "$ ";
    opacity: 0.5;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.home-features .feature-card {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home-features .feature-card:hover {
    border-color: var(--md-primary-fg-color--light);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.home-features .feature-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.home-features .feature-card h3 a {
    color: var(--md-primary-fg-color);
    text-decoration: none;
}

.home-features .feature-card h3 a:hover {
    text-decoration: underline;
}

.home-features .feature-card p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.param-table th {
    text-align: left;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid var(--md-primary-fg-color);
    font-weight: 600;
}

.param-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--md-default-fg-color--lightest);
    vertical-align: top;
}

.param-table td:first-child {
    font-family: var(--md-code-font-family);
    font-size: 0.9rem;
    white-space: nowrap;
}

.param-table td:nth-child(2) {
    font-size: 0.85rem;
    opacity: 0.7;
    white-space: nowrap;
}

.info-box {
    border-left: 4px solid var(--md-primary-fg-color);
    background: var(--md-code-bg-color);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.info-box-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.info-box p {
    margin: 0;
    font-size: 0.9rem;
}

.warning-box {
    border-left-color: #ff9800;
}

.danger-box {
    border-left-color: #f44336;
}

.signature {
    background: var(--md-code-bg-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-family: var(--md-code-font-family);
    font-size: 0.85rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.signature .keyword {
    color: #7c4dff;
    font-weight: 500;
}

.signature .param {
    color: #1565c0;
}

.signature .type {
    color: #00bcd4;
}

.signature .arrow {
    color: #7c4dff;
}

/* Make the logo bigger in the drawer sidebar too */
.md-nav__button .md-logo img,
.md-nav__title .md-logo img {
    width: 2.4rem;
    height: 2.4rem;
}
