:root {
    --brand-primary: #F5D216;
    --brand-primary-dark: #D9B40F;
    --brand-primary-light: #FFF9CC;
    --brand-accent: #0F172A;
    --brand-dark: #FFFFFF;
    --brand-darker: #111111;
    --brand-surface: #FFFFFF;
    --brand-surface-alt: #F9FAFB;
    --brand-border: #E5E7EB;
    --brand-text: #1F2933;
}

html {
    font-size: 13px;
}

body.brand-body {
    background: #FFFFFF;
    color: var(--brand-text);
    font-size: 0.9rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

body.brand-body h1,
body.brand-body h2,
body.brand-body h3,
body.brand-body h4,
body.brand-body h5,
body.brand-body h6 {
    color: var(--brand-text);
    margin-bottom: 0.75rem;
    line-height: 1.25;
    font-weight: 600;
}

body.brand-body h1 { font-size: 1.85rem; }
body.brand-body h2 { font-size: 1.55rem; }
body.brand-body h3 { font-size: 1.3rem; }
body.brand-body h4 { font-size: 1.15rem; }
body.brand-body h5 { font-size: 1rem; }
body.brand-body h6 { font-size: 0.9rem; }

body.brand-body p,
body.brand-body label,
body.brand-body span,
body.brand-body li {
    font-size: 0.9rem;
}

input,
select,
textarea,
button {
    font-size: 0.9rem;
}

.btn-brand-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    background: var(--brand-primary);
    color: #111111;
    box-shadow: 0 12px 22px rgba(245, 210, 22, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand-sm:hover,
.btn-brand-sm:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(245, 210, 22, 0.35);
}

.brand-surface {
    background-color: var(--brand-surface);
    border: 1px solid var(--brand-border);
    border-radius: 1.25rem;
}

.brand-card {
    background-color: var(--brand-surface-alt);
    border: 1px solid var(--brand-border);
    border-radius: 1.25rem;
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    background: var(--brand-primary);
    color: #111111;
    box-shadow: 0 15px 30px rgba(245, 210, 22, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(245, 210, 22, 0.45);
}

.btn-brand-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    background-color: var(--brand-primary);
    color: #111111;
}

.badge-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 210, 22, 0.45);
    background: rgba(245, 210, 22, 0.18);
    color: #7a6800;
    font-size: 0.75rem;
    font-weight: 600;
}

.brand-divider {
    border-color: rgba(31, 41, 49, 0.08);
}

.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-base {
    color: var(--brand-text) !important;
}

.bg-brand-gradient {
    background-image: linear-gradient(120deg, var(--brand-primary), var(--brand-primary-dark));
    color: #111111;
}

.border-brand-primary {
    border-color: var(--brand-primary) !important;
}

.focus-ring-brand:focus {
    --tw-ring-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

/****************************
 * Tailwind utility overrides
 ****************************/
/* Remove prior blue overrides */
.text-blue-500,
.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-blue-900,
.text-cyan-500 {
    color: inherit !important;
}

.bg-blue-500,
.bg-blue-600,
.bg-blue-700,
.bg-blue-800,
.bg-blue-900 {
    background-color: inherit !important;
    color: inherit !important;
}

.border-blue-500,
.border-blue-600,
.border-blue-700,
.border-blue-800,
.border-cyan-500 {
    border-color: inherit !important;
}

.hover\:bg-blue-500:hover,
.hover\:bg-blue-600:hover,
.hover\:bg-blue-700:hover {
    background-color: inherit !important;
}

.focus\:ring-blue-500:focus,
.focus\:ring-blue-600:focus,
.focus\:ring-blue-700:focus {
    --tw-ring-color: inherit !important;
}

.focus\:border-blue-500:focus,
.focus\:border-blue-600:focus,
.focus\:border-blue-700:focus {
    border-color: inherit !important;
}

.from-blue-500,
.from-blue-600,
.from-blue-700,
.to-blue-500,
.to-blue-600,
.to-blue-700 {
    --tw-gradient-from: inherit !important;
    --tw-gradient-stops: inherit !important;
    --tw-gradient-to: inherit !important;
}

/****************************
 * Utility helpers
 ****************************/
.brand-kpi {
    border: 1px solid rgba(31, 41, 55, 0.08);
    background: linear-gradient(160deg, rgba(245, 210, 22, 0.2), rgba(255, 255, 255, 0.9));
}

.brand-chip {
    border: 1px solid rgba(245, 210, 22, 0.35);
    background-color: rgba(245, 210, 22, 0.15);
    color: #6d5a00;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.brand-pill {
    background-color: rgba(245, 210, 22, 0.18);
    color: #6d5a00;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.brand-shadow {
    box-shadow: 0 25px 45px rgba(17, 24, 39, 0.1);
}

.brand-surface-border {
    border: 1px solid rgba(31, 41, 55, 0.08);
}

.nav-glow {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.glass-panel {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.link-brand,
.link-brand:hover,
.link-brand:focus {
    color: var(--brand-primary);
    font-weight: 600;
}

.accent-text {
    color: #F5D216;
}

.accent-chip {
    background-color: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #F5D216;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 600;
}
