// Applies the saved theme before first paint (external file: the CSP blocks inline scripts). try { var t = localStorage.getItem("rc-theme"); document.documentElement.setAttribute("data-theme", t === "light" ? "light" : "dark"); } catch (e) {}