/*
 * Shared authority branding guard.
 * This file is loaded after the legacy page styles so old purple/indigo
 * accents cannot leak into the authority or branch experiences.
 */
:root {
    --authority-primary: #0d4b43;
    --authority-primary-light: #2f7a67;
    --authority-primary-dark: #07352f;
    --authority-accent: #b99a5b;
    --authority-gold-soft: #dccb96;
}

html, body, button, input, select, textarea {
    font-family: 'Tajawal', sans-serif;
}

/* Legacy class names still used by a few older pages. */
.text-indigo, .text-purple, .text-violet {
    color: var(--authority-primary) !important;
}
.bg-purple, .bg-indigo, .bg-violet {
    background: var(--authority-primary) !important;
}
.border-purple, .border-indigo, .border-violet {
    border-color: var(--authority-primary) !important;
}

/* Inline legacy fills and gradients. */
[style*="#4f46e5"], [style*="#6366f1"], [style*="#7c3aed"],
[style*="#8b5cf6"], [style*="#6d28d9"], [style*="#5b21b6"] {
    background: var(--authority-primary) !important;
    border-color: var(--authority-primary) !important;
}
[style*="background:#1e1b4b"], [style*="background:#312e81"],
[style*="background:#1e1b4b"], [style*="background:#312e81"],
[style*="background:linear-gradient(135deg,#4f46e5"],
[style*="background:linear-gradient(135deg,#6366f1"],
[style*="background:linear-gradient(135deg,#7c3aed"] {
    background: linear-gradient(135deg, var(--authority-primary), var(--authority-primary-light)) !important;
    border-color: var(--authority-primary) !important;
}
[style*="background:#eef2ff"], [style*="background:#ede9fe"],
[style*="background-color:#eef2ff"], [style*="background-color:#ede9fe"],
[style*="background:#f5f0ff"], [style*="background-color:#f5f0ff"] {
    background: #e5f0eb !important;
}
[style*="color:#4f46e5"], [style*="color:#6366f1"], [style*="color:#7c3aed"],
[style*="color:#8b5cf6"], [style*="color:#6d28d9"], [style*="color:#5b21b6"],
[style*="color:#a5b4fc"], [style*="color:#818cf8"] {
    color: var(--authority-accent) !important;
}
[style*="border:#4f46e5"], [style*="border:#6366f1"],
[style*="border:#7c3aed"], [style*="border:#8b5cf6"],
[style*="border-color:#4f46e5"], [style*="border-color:#6366f1"],
[style*="border-color:#7c3aed"], [style*="border-color:#8b5cf6"] {
    border-color: var(--authority-primary) !important;
}

/* Older chat/support surfaces used a purple shell. */
.support-widget, .support-modal, .chat-widget {
    --support-accent: var(--authority-primary);
}

/* Keep focus rings and dashed upload states on the same identity. */
*:focus-visible {
    outline-color: var(--authority-accent);
}