/* Teymen CMS 3.0 - global brand compatibility layer */
:root{
  --brand-primary:var(--site-primary-color,#ff5802);
  --brand-secondary:var(--site-secondary-color,#111827);
  --accent-color:var(--brand-primary);
  --primary-color:var(--brand-primary);
  --pando-accent:var(--brand-primary);
  --bs-primary:var(--brand-primary);
  --bs-primary-rgb:var(--site-primary-rgb,255,88,2);
  --bs-danger:var(--brand-primary);
  --bs-danger-rgb:var(--site-primary-rgb,255,88,2);
}

/* Legacy themes used Bootstrap danger/primary as brand accent. */
.text-danger,.text-primary{color:var(--brand-primary)!important}
.bg-danger,.bg-primary{background-color:var(--brand-primary)!important}
.border-danger,.border-primary{border-color:var(--brand-primary)!important}
.btn-danger,.btn-primary{
  --bs-btn-bg:var(--brand-primary);
  --bs-btn-border-color:var(--brand-primary);
  --bs-btn-hover-bg:var(--brand-secondary);
  --bs-btn-hover-border-color:var(--brand-secondary);
  --bs-btn-active-bg:var(--brand-secondary);
  --bs-btn-active-border-color:var(--brand-secondary);
}
.bg-danger-subtle,.bg-primary-subtle{background-color:rgba(var(--site-primary-rgb,255,88,2),.12)!important}
.text-bg-danger,.text-bg-primary{background-color:var(--brand-primary)!important;color:#fff!important}

/* Common legacy accent aliases used by old sections. */
[style*="--tego-red"],[style*="--accent-color"],[style*="--primary-color"]{
  --tego-red:var(--brand-primary)!important;
  --accent-color:var(--brand-primary)!important;
  --primary-color:var(--brand-primary)!important;
}

/* Keep focus/interactive language consistent. */
.form-control:focus,.form-select:focus,.form-check-input:focus{
  border-color:var(--brand-primary)!important;
  box-shadow:0 0 0 .2rem rgba(var(--site-primary-rgb,255,88,2),.16)!important;
}
.form-check-input:checked{background-color:var(--brand-primary)!important;border-color:var(--brand-primary)!important}

/* Unified semantic helper classes for new templates. */
.brand-accent{color:var(--brand-primary)!important}
.brand-bg{background:var(--brand-primary)!important}
.brand-border{border-color:var(--brand-primary)!important}
