The AMP validator throws an error if you try to override the classes .-amp-xxxxxas suggested in another answer.
I fixed this problem by creating my own class:
.myheader {
background-color:yellow;
}
and I added this class to the header:
<amp-accordion>
<section expanded>
<h2 class="myheader">Section 1</h2>
<p>Bunch of awesome content</p>
</section>
...
source
share