:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1f2933;
  --muted: #55606a;
  --border: #e2e8f0;
  --accent: #2b6cb0;
  --accent-soft: #ebf4ff;
  --code-bg: #f7fafc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

header {
  margin-bottom: 32px;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.3;
}

h2 { margin-top: 32px; }

p { margin: 0 0 12px; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 16px 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid rgba(43, 108, 176, 0.2);
}

.anchor {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  margin-right: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.rule {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  background: #f9fbff;
}

.rule-title {
  font-weight: 600;
  margin-bottom: 8px;
}

dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 24px;
  margin: 0;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
}

ul {
  padding-left: 18px;
  margin: 0 0 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

table th,
table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

table th {
  background: #f5f7fa;
}

.json-block {
  margin: 12px 0 0;
}

pre {
  background: var(--code-bg);
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  border: 1px solid var(--border);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
}

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

input[type="search"],
select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 220px;
}

.muted {
  color: var(--muted);
}

footer {
  margin-top: 40px;
}
