/* Accurids CI 2026 brand, as the app's light theme (platform/core-ui/src/brand.ts in accurids) */
:root > * {
    /* Header and tabs: Paper bars with Dark Green ink */
    --md-primary-fg-color: #FCFAF6;
    --md-primary-fg-color--light: #FCFAF6;
    --md-primary-fg-color--dark: #FCFAF6;
    --md-primary-bg-color: #252F1C;
    --md-primary-bg-color--light: rgba(37, 47, 28, 0.72);

    /* Active elements: Blood Orange. Never small text: 2.52:1 on Light Beige */
    --md-accent-fg-color: #FF6A3D;
    --md-accent-fg-color--transparent: rgba(255, 106, 61, 0.14);

    /* Light Beige ground, Dark Green text, Dark Brown secondary text */
    --md-default-bg-color: #F5F1E8;
    --md-default-fg-color: #252F1C;
    --md-default-fg-color--light: #605950;
    --md-default-fg-color--lighter: rgba(37, 47, 28, 0.32);
    --md-default-fg-color--lightest: rgba(37, 47, 28, 0.07);
    --md-typeset-color: #252F1C;
    --md-typeset-a-color: #252F1C;

    /* Code on Paper, boxed: a monospace face alone does not stand out on the beige ground */
    --md-code-bg-color: #FCFAF6;
    --md-code-fg-color: #252F1C;

    --md-footer-bg-color: #FCFAF6;
    --md-footer-bg-color--dark: #FCFAF6;
    --md-footer-fg-color: #252F1C;
    --md-footer-fg-color--light: #605950;
    --md-footer-fg-color--lighter: #605950;
}

/* Headlines in Crimson Pro, copy in Inter */
.md-content h1,
.md-content h2,
.md-header__title,
.md-nav__title[for="__drawer"] {
    font-family: "Crimson Pro", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--md-default-fg-color);
}

/* Still fits next to the opened search field */
.md-header__title {
    font-size: 1rem;
}

/* Logo alignment and size */
.md-header__button.md-logo img {
    display: block;
    width: auto;
    height: 1.2rem;
}

/* Header padding */
.md-header {
    padding: 0.5em;
}

/* The bars end in a Beige hairline instead of a shadow */
.md-header {
    box-shadow: 0 1px 0 #DBD3C7;
}

.md-tabs {
    border-bottom: 1px solid #DBD3C7;
}

.md-search__form {
    background-color: #EFE9DE;
    box-shadow: inset 0 0 0 1px #DBD3C7;
}

.md-search__form:hover {
    background-color: #E8E2D7;
}

/* Material marks title matches by accent colour alone; with dark green text they need the underline back */
.md-search-result mark,
.md-search-result .md-typeset h1 mark,
.md-search-result .md-typeset h2 mark {
    color: var(--md-default-fg-color);
    text-decoration: underline;
    text-decoration-color: #FF6A3D;
}

.md-footer {
    border-top: 1px solid #DBD3C7;
}

/* Links: Dark Green ink, Blood Orange marks the underline */
.md-typeset a {
    text-decoration: underline;
    text-decoration-color: #FF6A3D;
    text-underline-offset: 2px;
}

.md-typeset a:focus,
.md-typeset a:hover,
.md-nav__link:focus,
.md-nav__link:hover {
    color: var(--md-typeset-a-color);
    text-decoration-thickness: 2px;
}

/* Links and text share one ink, so the current page is marked as in the app's side drawer */
.md-nav__link--active {
    font-weight: 600;
    border-left: 2px solid #FF6A3D;
    padding-left: 0.4rem;
}

.md-typeset code {
    border: 1px solid #DBD3C7;
    border-radius: 0.2rem;
}

.md-typeset pre > code {
    border-radius: 0.4rem;
}

.md-typeset table:not([class]) {
    background-color: #FCFAF6;
    border-color: #DBD3C7;
}

.md-typeset table:not([class]) th {
    background-color: #EFE9DE;
}

/* Admonitions in the brand's info and warning tones */
.md-typeset .admonition.note,
.md-typeset details.note {
    border-color: #317088;
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
    background-color: rgba(49, 112, 136, 0.1);
}

.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before {
    background-color: #317088;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
    border-color: #CE8510;
}

.md-typeset .warning > .admonition-title,
.md-typeset .warning > summary {
    background-color: rgba(206, 133, 16, 0.1);
}

.md-typeset .warning > .admonition-title::before,
.md-typeset .warning > summary::before {
    background-color: #CE8510;
}

/* Dropdown version selector styling */
.md-version-selector {
    margin-left: auto;
    /* Aligns dropdown to the right */
    padding: 0 10px;
    font-size: 14px;
}

.md-version-selector select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

/* Ensure alignment of the dropdown with the rest of the navbar */
.md-header-nav__title,
.md-version-selector {
    display: inline-block;
    vertical-align: middle;
}
