Why do nested selectors in SASS sometimes create very long CSS selectors?
Because each nested level adds the parent selectors in front, making the final CSS selector longer and more specific, which can be hard to read and maintain.
💡 Flatten nesting to keep selectors short and clear, as shown in render_steps where nesting is minimized.
Why does removing nesting not change the visual output?
Because SASS compiles nested selectors into flat CSS rules with the same specificity and effect, so the browser renders the same styles visually.
💡 Nesting is a convenience for writing code, not a visual requirement.
Why might deep nesting cause slower CSS parsing or harder debugging?
Long selectors from deep nesting can slow down the browser's matching process and make it harder to find which rule applies, confusing developers.
💡 Keep nesting shallow to improve performance and clarity.