:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --panel: #ffffff;
  --panel-soft: #fbfaf7;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #047857;
  --brand-soft: #ecfdf5;
  --brand-line: #a7f3d0;
  --code: #0f172a;
  --code-text: #e2e8f0;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --warn-line: #fde68a;
  --danger: #991b1b;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.14), transparent 28%),
    radial-gradient(circle at 90% 6%, rgba(20, 184, 166, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.68;
}

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

a:hover {
  text-decoration: underline;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.top-links a {
  color: #334155;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  max-height: calc(100vh - 104px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.sidebar-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 14px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--brand-soft);
  color: var(--brand);
  text-decoration: none;
}

.content {
  min-width: 0;
}

.hero,
.doc-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.hero {
  padding: 40px;
}

.hero-eyebrow,
.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.04em;
}

h1 {
  margin: 12px 0 18px;
  max-width: 820px;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 950;
}

h2 {
  margin: 42px 0 16px;
  font-size: 32px;
  font-weight: 900;
}

h3 {
  margin: 30px 0 12px;
  font-size: 22px;
  font-weight: 900;
}

p {
  margin: 10px 0;
}

.lead {
  max-width: 820px;
  color: #475569;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.doc-card {
  margin-top: 18px;
  padding: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.tile h3 {
  margin-top: 0;
}

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

.callout,
.warning,
.danger {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 18px;
}

.callout {
  border: 1px solid var(--brand-line);
  background: var(--brand-soft);
}

.warning {
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
}

.danger {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  color: var(--danger);
}

code {
  padding: 2px 7px;
  border-radius: 8px;
  background: #eef2f7;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

pre {
  overflow: auto;
  margin: 16px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--code);
  color: var(--code-text);
  font-size: 14px;
  line-height: 1.65;
}

pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

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

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

li + li {
  margin-top: 6px;
}

.footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .top-links {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }

  .hero,
  .doc-card {
    padding: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
