Set custom SCSS for the top level category '{$a->name}' with id '{$a->id}' and its children '{$a->children}'.  This will generate SCSS for the theme selector prefixed with '.category-{$a->id}' and for all child ids.  If the SCSS does not appear to be applied, then use the browser development tools to investigate and check the PHP log file.