/* Site colour themes (theme picker in the navbar). Shared by index.html and the
   standalone pages; the early script in partials/theme_head.html sets html.theme-*. */
html.theme-dark, body.theme-dark {
  --bg:#1b1b2f; --fg:#f5f5ff; --accent:#3b82f6; --hover:#2f2f44; --border:#3a3a4d; --highlight:#ffda6a; --muted:#a3a3b8;
}
html.theme-light, body.theme-light {
  --bg:#fdfdfd; --fg:#111; --accent:#0078d7; --hover:#e8f0fe; --border:#ccc; --highlight:#0056b3; --muted:#666;
}
html.theme-neon, body.theme-neon {
  --bg:#090914; --fg:#f5f3ff; --accent:#00d4ff; --hover:#191936; --border:#34245c; --highlight:#f0ff3d; --muted:#a78bfa;
}
html.theme-sunset, body.theme-sunset {
  --bg:#21131a; --fg:#fff7ed; --accent:#f97316; --hover:#3a2026; --border:#6b2f2f; --highlight:#ffd166; --muted:#f9a8a8;
}
html.theme-lavender, body.theme-lavender {
  --bg:#191326; --fg:#fbf7ff; --accent:#a855f7; --hover:#2b2140; --border:#4c3575; --highlight:#f5d0fe; --muted:#c4b5fd;
}
html.theme-country, body.theme-country {
  --bg:#fff8e7; --fg:#2f2519; --accent:#7c4a21; --hover:#f1dfbd; --border:#d3b782; --highlight:#7c2d12; --muted:#7a6a53;
}
html.theme-ocean, body.theme-ocean {
  --bg:#071b2f; --fg:#e8f8ff; --accent:#0891b2; --hover:#10324d; --border:#164e63; --highlight:#67e8f9; --muted:#94a3b8;
}
html.theme-forest, body.theme-forest {
  --bg:#0f1f18; --fg:#f0fdf4; --accent:#16a34a; --hover:#18382a; --border:#276749; --highlight:#bef264; --muted:#9ca3af;
}
html.theme-rose, body.theme-rose {
  --bg:#2a1118; --fg:#fff1f2; --accent:#e11d48; --hover:#461c28; --border:#7f1d1d; --highlight:#fda4af; --muted:#fecdd3;
}
html.theme-cyber, body.theme-cyber {
  --bg:#050816; --fg:#ecfeff; --accent:#7c3aed; --hover:#111132; --border:#312e81; --highlight:#22d3ee; --muted:#a5b4fc;
}
html.theme-coffee, body.theme-coffee {
  --bg:#f5eee6; --fg:#2b1d14; --accent:#8b5e34; --hover:#ead8c5; --border:#c9a27d; --highlight:#5b3418; --muted:#745f4e;
}
html.theme-arctic, body.theme-arctic {
  --bg:#eef7ff; --fg:#0f172a; --accent:#0284c7; --hover:#dbeafe; --border:#93c5fd; --highlight:#075985; --muted:#64748b;
}
html.theme-royal, body.theme-royal {
  --bg:#140f2d; --fg:#fff7ed; --accent:#7e22ce; --hover:#251a4a; --border:#5b21b6; --highlight:#fbbf24; --muted:#c4b5fd;
}
html.theme-retro, body.theme-retro {
  --bg:#24160f; --fg:#fff7d6; --accent:#d97706; --hover:#3b2416; --border:#92400e; --highlight:#fef08a; --muted:#fdba74;
}
html.theme-candy, body.theme-candy {
  --bg:#fff1f8; --fg:#3b1230; --accent:#ec4899; --hover:#fce7f3; --border:#f9a8d4; --highlight:#9d174d; --muted:#9f5f80;
}

html[class*="theme-"], body[class*="theme-"] { background: var(--bg) !important; color: var(--fg) !important; }
html[class*="theme-"] nav, body[class*="theme-"] nav { background: color-mix(in srgb, var(--bg) 82%, #000 18%) !important; border-bottom:1px solid var(--border) !important; }
html[class*="theme-"] nav a, body[class*="theme-"] nav a { color: var(--highlight) !important; }
html[class*="theme-"] nav a:hover, body[class*="theme-"] nav a:hover { color: var(--accent) !important; }
