I have my posts in the following manner:
<!-- src/pages/posts/[id].astro -->
---
// some code, some getStaticPath
const item: Post = Astro.props.post;
---
<PostLayout>
<div>
<Pills list={item.frontmatter.tags} />
<HeadTag post={item} />
</div>
<main>
<item.Content />
</main>
</PostLayout>
<style type="sass">
// when I use the different styles here, under main, they get scoped.
// when I add the is:global tag, they don't get the access to the CSS properties.
</style>