/* Table-style line numbers (default in many Sphinx themes) */
table.highlighttable td.linenos { padding-right: 12rem; }   /* space between nums & code */
table.highlighttable td.code    { padding-left: 12rem; }  /* optional: breathe on code side */

/* Inline-style line numbers (if you use 'inline' linenos) */
div.highlight span.lineno { margin-right: 2rem; display: inline-block; min-width: 3ch; text-align: right; }

body { border: 4rem solid red !important; }