:root {
  color: #172026;
  background: #f6f7f9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: #1f5f8f;
}

/* Shell */

.docs-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.docs-header {
  background: white;
  border-bottom: 1px solid #dce2e7;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.docs-header .logo {
  font-size: 17px;
  font-weight: 600;
  color: #172026;
  text-decoration: none;
}

.docs-header nav {
  display: flex;
  gap: 20px;
}

.docs-header nav a {
  font-size: 14px;
  color: #42515c;
  text-decoration: none;
}

.docs-header nav a:hover {
  color: #172026;
}

/* Two-column layout */

.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
}

/* Sidebar */

.docs-sidebar {
  background: white;
  border-right: 1px solid #dce2e7;
  padding: 20px 0;
  position: sticky;
  top: 49px;
  height: calc(100vh - 49px);
  overflow-y: auto;
}

.docs-sidebar nav {
  display: flex;
  flex-direction: column;
}

.docs-sidebar a {
  padding: 9px 20px;
  font-size: 14px;
  color: #42515c;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.docs-sidebar a:hover {
  color: #172026;
  background: #f0f2f5;
}

.docs-sidebar a[aria-current="page"] {
  color: #27343d;
  font-weight: 600;
  border-left-color: #27343d;
  background: #f0f2f5;
}

/* Content area */

.docs-content {
  padding: 40px 48px;
  max-width: 760px;
}

/* Section headings */

.doc-section h1 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #172026;
}

.doc-section > p {
  line-height: 1.65;
  color: #42515c;
  margin: 0 0 24px;
}

/* Quickstart steps */

.qs-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qs-step {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}

.qs-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #27343d;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.qs-step-body h2 {
  margin: 2px 0 8px;
  font-size: 17px;
  color: #172026;
}

.qs-step-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #42515c;
  line-height: 1.55;
}

.qs-cta {
  display: inline-block;
  border: 1px solid #27343d;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  color: #27343d;
  text-decoration: none;
}

.qs-cta:hover {
  background: #27343d;
  color: white;
}

/* Code blocks */

.code-block {
  background: #1e2a32;
  color: #e8edf1;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  margin: 12px 0 20px;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
}

/* Inline code */

code {
  background: #edf0f3;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.code-block code {
  background: none;
  padding: 0;
  font-size: inherit;
}

/* Framework tab bar */

.tab-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-btn {
  border: 1px solid #dce2e7;
  border-radius: 6px;
  background: white;
  color: #42515c;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}

.tab-btn:hover {
  border-color: #27343d;
  color: #172026;
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
  background: #27343d;
  border-color: #27343d;
  color: white;
}

.fw-description {
  font-size: 14px;
  color: #42515c;
  margin: 0 0 4px;
}

/* SDK Reference */

.sdk-entry {
  border: 1px solid #dce2e7;
  border-radius: 8px;
  background: white;
  padding: 20px;
  margin-bottom: 20px;
}

.sdk-entry h2 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #172026;
}

.sdk-entry .signature {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: #42515c;
  margin: 0 0 12px;
}

.sdk-entry > p:not(.signature) {
  margin: 0 0 14px;
  font-size: 14px;
  color: #42515c;
  line-height: 1.55;
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.params-table th,
.params-table td {
  border-bottom: 1px solid #e7ebef;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.params-table th {
  color: #60707d;
  font-weight: 600;
}

.param-name {
  white-space: nowrap;
}

.param-optional {
  color: #9aabba;
  font-size: 11px;
  margin-left: 4px;
}

/* Concepts */

.concept-entry {
  margin-bottom: 20px;
}

.concept-entry dl {
  margin: 0;
}

.concept-entry dt {
  font-weight: 600;
  color: #172026;
  margin-bottom: 4px;
}

.concept-entry dd {
  margin: 0;
  font-size: 14px;
  color: #42515c;
  line-height: 1.6;
}

/* API Reference */

.api-list {
  padding-left: 20px;
  margin: 0;
}

.api-list li {
  font-size: 14px;
  color: #42515c;
  padding: 5px 0;
  line-height: 1.4;
}

/* Troubleshooting */

.ts-entry {
  border: 1px solid #dce2e7;
  border-radius: 8px;
  background: white;
  padding: 20px;
  margin-bottom: 16px;
}

.ts-entry h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #172026;
}

.ts-causes {
  margin: 0 0 14px;
  padding-left: 20px;
  font-size: 14px;
  color: #42515c;
  line-height: 1.6;
}

.ts-causes li {
  margin-bottom: 4px;
}

.ts-fix {
  background: #f0f7f3;
  border-left: 3px solid #2d7d5a;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: #1a4d38;
  line-height: 1.5;
}

/* Responsive */

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

  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #dce2e7;
    padding: 10px 0;
  }

  .docs-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 12px;
    gap: 2px;
  }

  .docs-sidebar a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 8px 10px;
  }

  .docs-sidebar a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: #27343d;
  }

  .docs-content {
    padding: 24px 20px;
  }
}
