/* The front page's look for the Guide, Privacy Policy and Terms: a soft pastel sky with twinkling
   stars in light mode, a sunset rising from the bottom of the page in dark mode. Each page's <head>
   picks .gv-light or .gv-dark before it shows; theme.js runs the switch and adds the stars. */
:root{--hf:'M PLUS Rounded 1c','Plus Jakarta Sans',system-ui,sans-serif;--iri:linear-gradient(120deg,#cbb8ff 0%,#ffc3e0 35%,#ffe7b3 62%,#b9efe0 100%);
  --bg:#e6e0fd;--ink:#2a2547;--sub:#5f5a7a;--muted:#7d77a0;--card-strong:rgba(255,255,255,0.97);--card-solid:#ffffff;--star:#a68ff0;--line:rgba(140,120,220,0.18);--nav:rgba(255,255,255,0.75);--bar:rgba(251,248,255,0.94);--pick:rgba(169,139,232,0.16);
  --hi-text:linear-gradient(120deg,#7a55f5,#e9509a 55%,#1fa886);--shadow:0 16px 40px rgba(120,100,200,0.13);--link:#6d4fe0;--foot:#5f5a7a;
  --tip-bg:#e9f8f1;--tip-line:#bfead6;--warn-bg:#fff1e6;--warn-line:#ffd2b0;--code-bg:#efe9ff;--code-ink:#4b3fb3;color-scheme:light}
html.gv-dark{--bg:#15122c;--ink:#f4f0ff;--sub:#bdb6dc;--muted:#9a93c0;--card-strong:rgba(37,32,70,0.97);--card-solid:#221d40;--star:#fff6dc;--line:rgba(255,255,255,0.11);--nav:rgba(255,255,255,0.07);--bar:rgba(21,18,44,0.92);--pick:rgba(205,185,255,0.18);
  --hi-text:linear-gradient(120deg,#cdb9ff,#ffb3d6 55%,#a6f0d9);--shadow:0 16px 40px rgba(0,0,0,0.38);--link:#c6b5ff;--foot:#f4f0ff;
  --tip-bg:rgba(127,217,191,0.1);--tip-line:rgba(127,217,191,0.28);--warn-bg:rgba(255,180,138,0.1);--warn-line:rgba(255,180,138,0.3);--code-bg:rgba(205,185,255,0.14);--code-ink:#e3d9ff;color-scheme:dark}
html,body{margin:0;background:var(--bg)}
body{position:relative;min-height:100vh;color:var(--ink);font:16px/1.65 'Plus Jakarta Sans',Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
body > :not(.gv-sky-wrap):not(header):not(script){position:relative;z-index:1}
body > header{z-index:5}
/* The soft round pointer, the same as on the front page. Links and buttons keep the hand,
   and text keeps the text cursor */
body{cursor:url(/cursor-light.png) 5 3,auto;cursor:-webkit-image-set(url(/cursor-light.png) 1x,url(/cursor-light@2x.png) 2x) 5 3,auto;cursor:image-set(url(/cursor-light.png) 1x,url(/cursor-light@2x.png) 2x) 5 3,auto}
html.gv-dark body{cursor:url(/cursor-dark.png) 5 3,auto;cursor:-webkit-image-set(url(/cursor-dark.png) 1x,url(/cursor-dark@2x.png) 2x) 5 3,auto;cursor:image-set(url(/cursor-dark.png) 1x,url(/cursor-dark@2x.png) 2x) 5 3,auto}
:is(p,li,h1,h2,h3,td,th){cursor:text}
:is(a,button,select,summary,label){cursor:pointer}
/* The sky: two layers that crossfade, and stars */
.gv-sky-wrap{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.gv-sky{position:absolute;inset:0;transition:opacity 0.6s ease}
.gv-sky-l{background:linear-gradient(0deg,#f8e2da 0%,#f6e0ec 12%,#ebe0fa 30%,#e6e0fd 50%,#e6e0fd 100%)}
.gv-sky-d{opacity:0;background:linear-gradient(0deg,#5a3441 0%,#4e2f54 10%,#36295f 24%,#1f1a46 38%,#13102e 50%,#0d0b24 100%)}
.gv-dark .gv-sky-l{opacity:0}
.gv-dark .gv-sky-d{opacity:1}
.gv-star{position:absolute;fill:var(--star);opacity:0.5;animation:gvTwinkle 3s ease-in-out var(--delay,0s) infinite}
/* Stars twinkle by fading only: scaling tiny shapes makes them jitter as they snap to whole pixels */
@keyframes gvTwinkle{0%,100%{opacity:0.1}50%{opacity:0.8}}
/* Light / dark switch */
.gv-theme{position:relative;flex-shrink:0;width:72px;height:40px;padding:0;border-radius:999px;border:1px solid var(--line);background:var(--nav);cursor:pointer}
.gv-theme > svg{position:absolute;top:50%;translate:0 -50%;stroke:var(--muted)}
.gv-theme > svg:first-child{left:11px}
.gv-theme > svg:nth-child(2){right:11px}
.gv-theme:focus-visible{outline:2px solid #a98be8;outline-offset:2px}
.gv-knob{position:absolute;top:4px;left:4px;width:30px;height:30px;border-radius:50%;background:var(--iri);box-shadow:0 2px 8px rgba(80,60,160,0.3);transition:left 0.3s cubic-bezier(0.3,0.75,0.3,1)}
.gv-dark .gv-knob{left:36px}
@media (max-width:520px){
  .gv-theme{width:60px;height:36px}
  .gv-theme > svg{width:14px;height:14px}
  .gv-theme > svg:first-child{left:9px}
  .gv-theme > svg:nth-child(2){right:9px}
  .gv-knob{width:26px;height:26px}
  .gv-dark .gv-knob{left:28px}
}
@media (prefers-reduced-motion: reduce){.gv-star{animation:none}.gv-sky,.gv-knob{transition:none}}
