/* Portal interim AA roles (issues 355/1389). The ONLY Portal file that may own a colour literal.
   The pinned SDK defines its status *-text roles for dark mode only (--sm360-badge-*-text), and its light
   --sm360-*-text values do not reach WCAG AA on --sm360-bg-primary. Until sm360-sdk publishes light AA
   status text roles, the four light values below are the SDK's own documented light fallbacks from
   sm360.css; the dark block maps them to the SDK's dark badge roles. The action roles already have SDK
   sources: they resolve through the tenant brand, so a tenant brand edit still wins. The hover fallback
   mixes the action with the theme's text role (not the ink), so it moves a shade away from the ink in both
   themes and keeps AA after a tenant brand edit.
   Loaded before thruu.css by Pages/_Host.cshtml. */
:root {
    --thruu-status-success-text: #047857;
    --thruu-status-warning-text: #b45309;
    --thruu-status-danger-text: #b91c1c;
    --thruu-status-info-text: #1d4ed8;
    --thruu-action: var(--sm360-action, var(--sm360-teal));
    --thruu-on-action: var(--sm360-action-ink, var(--sm360-tenant-on-brand));
    --thruu-action-hover: var(--sm360-action-hover, color-mix(in srgb, var(--sm360-action, var(--sm360-teal)) 90%, var(--sm360-text-primary)));
}

[data-theme="dark"] {
    --thruu-status-success-text: var(--sm360-badge-success-text);
    --thruu-status-warning-text: var(--sm360-badge-warning-text);
    --thruu-status-danger-text: var(--sm360-badge-danger-text);
    --thruu-status-info-text: var(--sm360-badge-info-text);
}
