/* Shared display controls. Default pages retain their author's palette. */
.site-controls { display:inline-flex; align-items:center; gap:2px; flex:0 0 auto; isolation:isolate; }
.site-controls--floating { position:fixed; z-index:1000; top:max(10px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right)); padding:2px; border-radius:30px; background:#faf8f2f0; box-shadow:0 1px 12px #0000000a; }
.site-theme { display:grid; place-items:center; flex:0 0 auto; width:44px; height:44px; min-width:44px; min-height:44px; padding:0; border:1px solid transparent; border-radius:50%; cursor:pointer; color:#6b604e; background:transparent; font:24px/1 Georgia,serif; }
.site-theme:hover { border-color:#b4915d40; background:#b4915d12; }
.site-theme:focus-visible { outline:2px solid #b4915d; outline-offset:2px; }
.site-theme [data-theme-icon] { pointer-events:none; transform:rotate(-12deg); }
#site-theme { color:#796342 !important; }
html[data-site-tone=night] #site-theme { color:#d9c29c !important; }
html[data-site-tone=night] .site-controls--floating { background:#14202ef2; }
html[data-site-tone=night] .site-language { color:#e4dfd5; }
html[data-site-tone=night] .site-language__panel { background:#14202e; color:#e4dfd5; border-color:#e4dfd52b; box-shadow:0 12px 40px #0005; }
html[data-site-tone=night] :is(.site-language__heading,.site-language__note) { color:#b3b6bc; }
html[data-site-tone=night] .site-language__status { color:#d8c29d; }
html[data-site-tone=night] .site-language__original { border-color:#e4dfd52b; }
html[data-theme-family=robin][data-site-theme=night] {
  --moon:#101d2b !important; --moon-bright:#172635 !important; --stone:#243240 !important;
  --ink:#eee7da !important; --muted:#abb5bd !important; --gold:#cfb17f !important; --gold-dark:#d4b98b !important;
  --silver:#aabcc8 !important; --sakura:#dfb7c4 !important; --mist:#465766 !important;
  --line:#d9e3e51c !important; --line-strong:#d9e3e536 !important;
  color:#eee7da; background:#101d2b; color-scheme:dark;
}
html[data-theme-family=robin][data-site-theme=night] body { background:radial-gradient(ellipse at 60% 10%,#1c304040,transparent 55rem),#101d2b !important; }
html[data-theme-family=robin][data-site-theme=night] .site-header { background:#101d2bf0 !important; border-color:#d9e3e512 !important; }
html[data-theme-family=robin][data-site-theme=night] :is(body::before,.ambient-field) { opacity:.2; }
html[data-theme-family=robin][data-site-theme=night] .skip-link { color:#101d2b !important; background:#eee7da !important; }
html[data-site-tone=day] { color-scheme:light; }
/* Reuse these tools' theme engines behind the one universal display control. */
html[data-site-controls-ready=true] button.theme-toggle#themeToggle,
html[data-site-controls-ready=true] .speed-card:has(input#themeToggle) { display:none; }
@media(prefers-reduced-motion:reduce) { .site-theme { transition:none; } }
