I am adding style to an accordion item, but when the calcite-accordion-item is first added to the calcite-accordion container, the shadowRoot ".header" is not available yet. What is another way to add style to this?
Accordion item not styled until shadowRoot is ready.

Accordion item styled.

Only works when shadowRoot is built.
document.querySelectorAll('calcite-accordion-item').forEach((node) => {
let el = node.shadowRoot.querySelector('.header');
if (el) {
el.style.setProperty('background-color', 'rgb(27, 54, 93)');
el.style.setProperty('border', '1px solid rgb(23, 134, 180)');
// add bottom margin
el.style.setProperty('margin-bottom', '2px');
}
el = node.shadowRoot.querySelector('.heading');
if (el)
el.style.setProperty('color', 'rgb(255, 200, 69');
});