@layer multisaid-typography;
@import url("multisaid-workflow-typography.css?v=20261203-ux") layer(multisaid-typography);

@font-face {
    font-family: "Inter Variable";
    src: url("inter-variable.woff2?v=20261203-inter-r2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Inter Variable";
    src: url("inter-variable-italic.woff2?v=20261203-inter-r2") format("woff2");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono Variable";
    src: url("jetbrains-mono-variable.woff2?v=20261203-inter-r2") format("woff2");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}

@layer multisaid-typography {
    :root {
        --multisaid-font: "Inter Variable", Helvetica, Arial, system-ui, sans-serif;
        --multisaid-parameter-font: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Consolas, monospace;
        --multisaid-text-weight: 300;
        --multisaid-control-weight: 200;
        --font-display: var(--multisaid-font) !important;
        --font-body: var(--multisaid-font) !important;
        --font-mono: var(--multisaid-font) !important;
    }

    /* Apply the same type roles to assay pages and late-loading native widgets. */
    :where(html, body, body *) {
        font-family: var(--multisaid-font) !important;
    }

    :where(html, body, body *),
    :where(body *)::before,
    :where(body *)::after,
    :where(body *)::marker {
        font-weight: var(--multisaid-role-weight, var(--multisaid-text-weight)) !important;
        font-variation-settings: normal !important;
    }

    :where(
        .home-hero-lead, .home-atlas-lead, .lead, .subtitle,
        .analysis-panel__subtitle, .dataset-hero__subtitle, .page-hero__subtitle, .page-hero__description,
        .section-header__subtitle, .drawer-subtitle, .mi-subtitle, .table-subtitle,
        button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"],
        a.primary, a.secondary, a.btn, a.button, a.download-btn
    ) {
        --multisaid-role-weight: var(--multisaid-control-weight);
    }

    :where(h1, h2, h3, h4, h5, h6, [role="heading"], svg text, svg tspan) {
        --multisaid-role-weight: var(--multisaid-text-weight);
    }

    :where(input, textarea)::placeholder {
        font-family: var(--multisaid-font) !important;
        font-weight: var(--multisaid-text-weight) !important;
        font-variation-settings: normal !important;
    }

    ::file-selector-button {
        font-family: var(--multisaid-font) !important;
        font-weight: var(--multisaid-control-weight) !important;
    }
}

/* Keep the existing mobile button stack when the lighter labels take less space. */
@media (max-width: 396px) {
    .home-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
