:root {
  --primary: #6050f5;
  --primary-dark: #4a3de0;
  --bg: #f7f4ff;
  --surface: #ffffff;
  --text: #231f20;
  --muted: #4d4d4d;
  --border: #eaeaea;
  --accent-green: #2bb673;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(135deg, #6050f5 0%, #7467e8 50%, #5b8def 100%);
  color: #fff;
  padding: 2rem 1.25rem 2.5rem;
}

.site-header-inner {
  max-width: 860px;
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  opacity: 0.95;
  margin-bottom: 0.75rem;
}

.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.meta {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.layout {
  max-width: 860px;
  margin: -1.5rem auto 3rem;
  padding: 0 1.25rem;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(96, 80, 245, 0.08);
  padding: 2rem 1.75rem;
}

@media (min-width: 640px) {
  .card {
    padding: 2.5rem 2.5rem;
  }
}

.toc {
  background: #f8f9ff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.35rem 0;
}

.toc a {
  font-weight: 500;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

section p,
section li {
  color: var(--text);
}

section ul,
section ol {
  padding-left: 1.35rem;
}

section li {
  margin: 0.4rem 0;
}

.highlight {
  background: #ede9ff;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.contact-box {
  background: #e2f5ec;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav {
  margin-bottom: 0.75rem;
}

.site-footer nav a {
  margin: 0 0.75rem;
  font-weight: 500;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

table.data-table th,
table.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data-table th {
  background: #f8f9ff;
  font-weight: 600;
  color: var(--primary-dark);
}

table.data-table tr:last-child td {
  border-bottom: none;
}

table.data-table code {
  font-size: 0.85em;
  background: #f0f0f5;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.subsection {
  margin-top: 1rem;
}
