/* Shared site palettes. See NOTICE.md for upstream credits. */
:root,[data-gd-theme="paper"] {
  --theme-bg: #f2e8d2; --theme-surface: #e9dcbf; --theme-text: #1b1712;
  --theme-muted: #655842; --theme-link: #8c1d12; --theme-rule: #b9a988;
  --theme-bg-rgb: 242,232,210; --theme-text-rgb: 27,23,18; --theme-link-rgb: 140,29,18;
  color-scheme: light;
}
[data-gd-theme="synthwave"] {
  --theme-bg: #262335; --theme-surface: #241b2f; --theme-text: #ffffff;
  --theme-muted: #a0a7d9; --theme-link: #ff7edb; --theme-rule: #555074;
  --theme-bg-rgb: 38,35,53; --theme-text-rgb: 255,255,255; --theme-link-rgb: 255,126,219;
  color-scheme: dark;
}
[data-gd-theme="solarized-light"] {
  --theme-bg: #fdf6e3; --theme-surface: #eee8d5; --theme-text: #073642;
  --theme-muted: #52686f; --theme-link: #005b91; --theme-rule: #93a1a1;
  --theme-bg-rgb: 253,246,227; --theme-text-rgb: 7,54,66; --theme-link-rgb: 0,91,145;
  color-scheme: light;
}
[data-gd-theme="solarized-dark"] {
  --theme-bg: #002b36; --theme-surface: #073642; --theme-text: #fdf6e3;
  --theme-muted: #aab9b8; --theme-link: #66b5e8; --theme-rule: #586e75;
  --theme-bg-rgb: 0,43,54; --theme-text-rgb: 253,246,227; --theme-link-rgb: 102,181,232;
  color-scheme: dark;
}
[data-gd-theme="nord"] {
  --theme-bg: #2e3440; --theme-surface: #3b4252; --theme-text: #eceff4;
  --theme-muted: #d8dee9; --theme-link: #88c0d0; --theme-rule: #616e88;
  --theme-bg-rgb: 46,52,64; --theme-text-rgb: 236,239,244; --theme-link-rgb: 136,192,208;
  color-scheme: dark;
}
[data-gd-theme="dracula"] {
  --theme-bg: #282a36; --theme-surface: #21222c; --theme-text: #f8f8f2;
  --theme-muted: #bfbfc9; --theme-link: #ff79c6; --theme-rule: #6272a4;
  --theme-bg-rgb: 40,42,54; --theme-text-rgb: 248,248,242; --theme-link-rgb: 255,121,198;
  color-scheme: dark;
}
[data-gd-theme="gruvbox"] {
  --theme-bg: #282828; --theme-surface: #32302f; --theme-text: #ebdbb2;
  --theme-muted: #bdae93; --theme-link: #fabd2f; --theme-rule: #665c54;
  --theme-bg-rgb: 40,40,40; --theme-text-rgb: 235,219,178; --theme-link-rgb: 250,189,47;
  color-scheme: dark;
}
[data-gd-theme="github-light"] {
  --theme-bg: #ffffff; --theme-surface: #f6f8fa; --theme-text: #1f2328;
  --theme-muted: #57606a; --theme-link: #0969da; --theme-rule: #d0d7de;
  --theme-bg-rgb: 255,255,255; --theme-text-rgb: 31,35,40; --theme-link-rgb: 9,105,218;
  color-scheme: light;
}
[data-gd-theme="github-dark"] {
  --theme-bg: #0d1117; --theme-surface: #161b22; --theme-text: #e6edf3;
  --theme-muted: #9ea7b3; --theme-link: #58a6ff; --theme-rule: #30363d;
  --theme-bg-rgb: 13,17,23; --theme-text-rgb: 230,237,243; --theme-link-rgb: 88,166,255;
  color-scheme: dark;
}
[data-gd-theme="contrast"] {
  --theme-bg: #ffffff; --theme-surface: #ffffff; --theme-text: #000000;
  --theme-muted: #222222; --theme-link: #000000; --theme-rule: #000000;
  --theme-bg-rgb: 255,255,255; --theme-text-rgb: 0,0,0; --theme-link-rgb: 0,0,0;
  color-scheme: light;
}
[data-gd-theme="synthwave"] {
  --theme-deep: #1e1a2b; --theme-pink: #ff7edb; --theme-yellow: #fede5d;
  --theme-orange: #f97e72; --theme-cyan: #36f9f6; --theme-green: #72f1b8;
  --theme-glow: 0 0 .45rem #ff7edb55;
}
.gd-theme-picker {
  position: fixed; z-index: 1050; right: max(.6rem, env(safe-area-inset-right));
  bottom: max(.6rem, env(safe-area-inset-bottom)); padding: .3rem .5rem;
  border: 1px solid var(--theme-rule); border-radius: .3rem;
  color: var(--theme-text); background: var(--theme-surface);
  font-size: .78rem;
}
.gd-theme-picker select {
  font: inherit; color: var(--theme-text); background: var(--theme-bg);
  border: 1px solid var(--theme-rule); border-radius: .2rem; margin-inline-start: .35rem;
}
body { padding-bottom: calc(3.2rem + env(safe-area-inset-bottom)); }
