:root {
  --page-bg: #f4f7fb;
  --page-grad-a: rgba(37, 99, 235, 0.1);
  --page-grad-b: rgba(255, 106, 82, 0.08);
  --card-bg: #ffffff;
  --card-border: #d9e2ef;
  --text-main: #0f172a;
  --text-muted: #4b5a73;
  --accent: #2563eb;
  --accent-soft: #e8f0ff;
  --accent-strong: #1d4ed8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 6% 6%, var(--page-grad-a), transparent 38%),
    radial-gradient(circle at 90% 4%, var(--page-grad-b), transparent 42%),
    var(--page-bg);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}

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

a:hover {
  text-decoration: underline;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 0.95rem;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.brand span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.16;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 14px;
}

.reviewed {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid #c5d8ff;
  border-radius: 999px;
  padding: 7px 14px;
}

.reviewed::before {
  content: "\2022";
  color: #2563eb;
  font-size: 0.85rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

h2 {
  font-size: 1.27rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 16px 0 8px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

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

th {
  background: #eef4ff;
  color: #0f172a;
}

code {
  background: #eef4ff;
  border: 1px solid #ccdbff;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #1d4ed8;
}

pre {
  margin-top: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.side-index {
  position: sticky;
  top: 84px;
}

.side-index h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.side-index a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
}

.side-index a:hover {
  background: #eef4ff;
  color: var(--accent);
  text-decoration: none;
}

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

.links a {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid #cbd9f1;
  background: #fff;
  padding: 7px 12px;
  text-decoration: none;
}

.links a:hover {
  background: #eef4ff;
  text-decoration: none;
}

@media (max-width: 640px) {
  .container {
    padding-top: 20px;
  }

  .card {
    padding: 18px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .brand span {
    display: none;
  }
}

@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .side-index {
    position: static;
  }
}
