html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg2: #ffffff;
  --bg3: #eef3f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-primary: #f7f9fc;
  --bg-secondary: #eef3f8;
  --border: #d7e0ea;
  --border2: #9aa8ba;
  --border-hover: #9aa8ba;
  --text: #111827;
  --text-primary: #111827;
  --text-secondary: #46556a;
  --text-dim: #46556a;
  --dim: #46556a;
  --muted: #69778b;
  --text-muted: #69778b;
  --gold: #9a6700;
  --gold-dim: rgba(154, 103, 0, 0.12);
  --navy: #29476f;
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #059669;
  --purple: #7c3aed;
  --red: #dc2626;
  --accent-blue: #2563eb;
  --accent-cyan: #0891b2;
  --accent-green: #059669;
  --accent-purple: #7c3aed;
  --accent-orange: #b45309;
  --accent-red: #dc2626;
  --accent-pink: #db2777;
  --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e8eef7 58%, #fff7e1 100%);
  --shadow: 0 4px 22px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 34px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] body {
  background: var(--bg);
}

html[data-theme="light"] .nav,
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(154, 103, 0, 0.12) 0%, transparent 62%);
}

html[data-theme="light"] .query-code,
html[data-theme="light"] .code,
html[data-theme="light"] pre {
  background: rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .btn-outline {
  color: var(--text-primary);
  border-color: var(--border);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 72px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card, var(--bg2));
  color: var(--text-secondary, var(--dim));
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.site-icp-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 32px 28px;
  color: var(--text-muted, var(--muted));
  font-size: 12px;
  text-align: center;
}

.site-icp-footer a {
  color: var(--text-muted, var(--muted));
  text-decoration: none;
}

.site-icp-footer a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .site-icp-footer {
    padding: 16px 16px 24px;
  }
}
