/* Shared base styles for all demo pages */
:root {
  --demo-navy: #061248;
  --demo-text: #17213f;
  --demo-muted: #566079;
  --demo-bg: #ffffff;
  --demo-soft-bg: #f6f8ff;
  --demo-line: #d9deea;
  --demo-card: #ffffff;
  --demo-blue: #4547f2;
  --demo-shadow: 0 18px 50px rgba(9, 18, 65, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--demo-text);
  background: var(--demo-bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.demo-topbar {
  width: min(1200px, calc(100% - 48px));
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.demo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--demo-line);
  border-radius: 999px;
  color: var(--demo-navy);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(9, 18, 65, 0.05);
}

.demo-back-link:hover {
  border-color: var(--demo-navy);
}

@media (max-width: 768px) {
  .demo-topbar {
    width: calc(100% - 28px);
    margin-top: 14px;
  }
}
