/* Shared styles for the pre-rendered static pages (how-it-works, rules, maps). */
:root {
  color-scheme: dark;
  --bg-1: #1f2240;
  --bg-2: #2d1f3d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #e8eaf2;
  --text-muted: #a7abc4;
  --accent: #4285f4;
  --accent-soft: rgba(66, 133, 244, 0.55);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
a {
  color: #7cabf8;
}
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 40px;
}
.site-header a.brand {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.site-header .tagline {
  color: var(--text-muted);
  font-size: 0.95em;
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
  font-size: 0.95em;
}
h1 {
  font-size: 2.1em;
  line-height: 1.2;
  margin: 0 0 12px;
}
.lede {
  font-size: 1.15em;
  color: var(--text-muted);
  margin: 0 0 32px;
}
h2 {
  font-size: 1.45em;
  margin: 48px 0 12px;
}
h3 {
  font-size: 1.1em;
  margin: 24px 0 8px;
}
section p,
section li {
  color: var(--text);
}
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95em;
}
th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-border);
}
th {
  color: var(--text-muted);
  font-weight: 600;
}
.cta {
  margin-top: 56px;
  text-align: center;
}
.cta a.button {
  display: inline-block;
  padding: 14px 32px;
  margin: 6px;
  font-size: 1.05em;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
}
.cta a.button.secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--accent-soft);
}
footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.9em;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
