/* First paint: loaded as a normal stylesheet in <head>, so the browser waits for it before drawing.
   It keeps every page on its own background colour and hides the page body until the main CSS
   (base.css) has arrived. Without it, the dev server (which adds CSS from JavaScript) briefly drew
   bare links and a huge unsized arrow icon at the top of the screen between pages. */
@view-transition{navigation:auto}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}
/* Carbon is the default colour scheme (set by theme.js before paint), so the first frame matches it. */
html{background:#f1f0ee;color:#141414}
html[data-theme="dark"]{background:#141414;color:#f0efec}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]){background:#141414;color:#f0efec}}
html[data-skin="pine"],html:not([data-skin]){background:oklch(95.5% .014 165)}
@supports not (color:oklch(0% 0 0)){html[data-skin="pine"],html:not([data-skin]){background:#e8f3ee}}
html[data-theme="dark"]:not([data-skin]){background:oklch(20% .03 172)}
@supports not (color:oklch(0% 0 0)){html[data-theme="dark"]:not([data-skin]){background:#061a14}}
/* Only pages with the shared header (it starts with the skip link). base.css shows the body again.
   Safety net: the body shows on its own after 2 s even if the main CSS never loads. */
@keyframes tfl-first-paint{to{visibility:visible}}
body:has(>.skip){visibility:hidden;animation:tfl-first-paint 0s 2s forwards}
