:root {
    --w2m-plum: #673148;
    --w2m-rose: #7a3e58;
    --w2m-soft-rose: #b78899;
    --w2m-light-rose: #d9b7c6;
    --bs-link-color: var(--w2m-plum);
    --bs-link-color-rgb: 103, 49, 72;
    --bs-link-hover-color: var(--w2m-rose);
    --bs-link-hover-color-rgb: 122, 62, 88;
}

/* Keep syntax, navigation, and generated labels in the shared brand palette. */
code span.at,
code span.ch,
code span.ss,
code span.st,
code span.vs {
    color: var(--w2m-rose);
}

#quarto-margin-sidebar nav ul li a.active,
#quarto-sidebar a.sidebar-item-text.sidebar-link.active {
    color: var(--w2m-plum);
    text-decoration-color: var(--w2m-soft-rose);
}

.content span.doc-label-property::after,
.content span.doc-label-cli::after,
.content span.doc-label-cli-group::after,
.gd-code-copy.gd-code-copied {
    color: var(--w2m-plum);
    border-color: var(--w2m-plum);
}

.content span.doc-label-property::after,
.content span.doc-label-cli::after,
.content span.doc-label-cli-group::after {
    background-color: color-mix(
        in srgb,
        var(--w2m-plum) 5%,
        transparent
    );
}

/* A compact hero puts the install command in the first viewport. */
.gd-hero {
    padding: 1rem 1rem 0.5rem;
}

.gd-hero-logo {
    margin-bottom: 0.75rem;
}

.gd-hero-name {
    display: none;
}

/* Dark mode uses lighter rose values to preserve contrast. */
html.quarto-dark:root,
html[data-bs-theme="dark"]:root {
    --gd-accent: var(--w2m-soft-rose);
}

body.quarto-dark {
    --gd-active-link: var(--w2m-light-rose);
    --gd-link-color: var(--w2m-light-rose);
    --gd-syn-string: var(--w2m-light-rose);
    --bs-link-color: var(--w2m-light-rose);
    --bs-link-color-rgb: 217, 183, 198;
}

body.quarto-dark p a:hover,
body.quarto-dark li a:hover,
body.quarto-dark .parameter-default,
body.quarto-dark .gd-code-copy.gd-code-copied {
    color: var(--w2m-soft-rose);
}

@media (max-width: 768px) {
    .gd-hero-badges {
        max-width: 320px;
        margin-inline: auto;
    }
}

/* Keep the icon in the hero while the navbar uses the short command name. */
.navbar-logo {
    display: none;
}
