You know that moment when you're building something and hit a wall that every reasonable part of your brain says should already be solved by now? That was me, three weeks ago, staring at an HTML component with tabs. Not some exotic, over-engineered UI. Just tabs. The kind every front-end dev builds on their lunch break. A nav strip at the top, panels below, click a tab and the content switches. Dead simple. Except I wasn't trying to render it in a browser. I wanted to render it in a PDF. A little context: what is TreePress? TreePress is a VS Code extension I'm building that exports any open file to a pixel-faithful, searchable PDF. The entire value proposition is that the output looks exactly like what you see in your editor — same syntax highlighting, same colour theme, same font, same layout. No compromises. That means when someone opens a file like a styled HTML page or a documentation file that uses tab components, TreePress can't just flatten it. The tabs have to come through.…