:root {
  --navy: #0c1f3f;
  --orange: #ff6a34;
  --bg: #f6f7fb;
  --border: #e4e7ef;
  --muted: #6b7280;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--navy);
}
h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.brand img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}
.back-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover {
  color: var(--navy);
}

.page-head {
  max-width: 1000px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.page-head h1 {
  font-size: 30px;
  margin: 0 0 6px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.layout {
  max-width: 1000px;
  margin: 28px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.tabs {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
}
.tab-btn {
  text-align: left;
  background: none;
  border: none;
  padding: 11px 14px;
  border-radius: 9px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}
.tab-btn:hover {
  background: #f2f4f9;
}
.tab-btn.active {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.doc-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  min-height: 400px;
  box-shadow: 0 12px 32px rgba(12, 31, 63, 0.05);
}
.doc-muted {
  color: var(--muted);
  font-size: 14px;
}

.doc-content h1 {
  font-size: 26px;
  margin: 0 0 6px;
}
.doc-content > h1:first-child + p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 0;
}
.doc-content h1:not(:first-child) {
  font-size: 19px;
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.doc-content h2 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.doc-content p {
  line-height: 1.7;
  font-size: 14.5px;
  margin: 0 0 12px;
  color: #1f2937;
}
.doc-content ul,
.doc-content ol {
  line-height: 1.7;
  font-size: 14.5px;
  color: #1f2937;
  padding-left: 22px;
  margin: 0 0 14px;
}
.doc-content li {
  margin-bottom: 4px;
}
.doc-content strong {
  color: var(--navy);
}
.doc-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 26px 0;
}
.doc-content a {
  color: var(--orange);
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .tab-btn {
    white-space: nowrap;
  }
  .doc-panel {
    padding: 26px 20px;
  }
}
