/* Visual bridge for More-than-Human Materialien. Functional selectors stay in the plugin. */
body.mth-theme :where(.mth-material-tabs, .mth-material-login-required, .mth-material-empty) {
    --mth-material-accent: var(--mth-accent);
    --mth-material-accent-dark: var(--mth-accent-strong, #056554);
    --mth-material-ink: var(--mth-ink);
    --mth-material-muted: var(--mth-muted);
    --mth-material-line: var(--mth-line);
    --mth-material-surface: var(--mth-surface);
    --mth-material-card: var(--mth-paper, #fff);
    --mth-material-soft: rgba(8, 122, 103, 0.065);
    --mth-material-shadow: var(--mth-shadow);
    margin-block: clamp(1rem, 3vw, 2rem);
    max-width: var(--mth-wide);
    width: 100%;
}

body.mth-theme .mth-material-tabs {
    border-radius: var(--mth-radius-lg, 1rem);
}

body.mth-theme .mth-material-panel-header h2,
body.mth-theme .mth-material-content :where(h2, h3, h4),
body.mth-theme :where(.mth-material-login-required, .mth-material-empty) h2 {
    color: var(--mth-material-ink);
}

body.mth-theme .mth-material-tab:hover {
    background: var(--mth-material-card);
}

@media (prefers-color-scheme: dark) {
    body.mth-theme :where(.mth-material-tabs, .mth-material-login-required, .mth-material-empty) {
        --mth-material-accent: #65cdb8;
        --mth-material-accent-dark: #8cddcc;
        --mth-material-ink: #e9f8f3;
        --mth-material-muted: #aec3b8;
        --mth-material-line: rgba(174, 195, 184, 0.22);
        --mth-material-surface: #18372c;
        --mth-material-card: #10251d;
        --mth-material-soft: rgba(233, 248, 243, 0.055);
        --mth-material-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    }

    body.mth-theme .mth-material-tab {
        background: rgba(16, 37, 29, 0.55);
    }

    body.mth-theme .mth-material-tab:hover,
    body.mth-theme .mth-material-tab.is-active {
        background: var(--mth-material-card);
    }

    body.mth-theme .mth-material-content .wp-block-file__button,
    body.mth-theme .mth-material-content .wp-element-button {
        color: #10231b;
    }
}