This is the first time I use Astro (and components, in general), and applying styles is leading me to a dead end because of encapsulation.
What I want is to style certain layout (for example, a blog section) and all of its sub-layouts with a different style from the rest of the site. Style must be consistent inside the blog: headers, text, colors, links styles, etc., and code must be DRY.
In my unexperienced logic, if I write styles in blogLayout.astro, they should be inherited by postLayout.astro, categoryLayout.astro and blogContactLayout.astro. But they don't.
I tried two working solutions:
Dropping and external .css file in the middle of the body of blogLayout.astro.
Write global styles and create a lot of classes just for the blog, but the docs recommendation is to use component styles, not globals.
I would like to know how it is done in this components age.