body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.page {
  width: 90%;
  max-width: 980px;
  margin: 0 auto;
}

a {
  color: #0645ad;
  text-decoration: none;
  transition: color 0.1s;
}

a:visited {
  color: #0b0080;
}

a:hover {
  color: #033b8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus {
  outline: 2px solid #0645ad;
  outline-offset: 2px;
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.brand {
  flex-shrink: 0;
  color: #222;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  padding-right: 5px;
}

.brand:visited {
  color: #222;
}

.brand:hover {
  color: #0645ad;
  text-decoration: none;
}

.brand img {
  margin-right: 7px;
  vertical-align: middle;
}

.site-header nav {
  display: flex;
  align-items: flex-end;
  gap: 0 18px;
}

.site-header nav a {
  font-weight: 600;
  padding: 0 5px;
}

.site-header nav a[aria-current="page"] {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a[aria-current="page"]:hover {
  text-decoration: none;
}

.github-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  background: #f6f8fa;
  color: #1f2328;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s, border-color 0.1s;
}

.github-link:visited {
  color: #1f2328;
}

.github-link:hover {
  background: #eaf0f7;
  border-color: #b0bec8;
  color: #1f2328;
  text-decoration: none;
}

.github-link img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

main {
  padding: 38px 0 52px;
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.25;
}

.project-description {
  margin: 0 0 34px;
  color: #444;
  font-size: 19px;
}

section {
  margin-top: 30px;
}

h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding-left: 24px;
}

li {
  margin: 5px 0;
}

ul.spaced > li {
  margin: 0 0 14px;
}

ul + p,
ol + p {
  margin-top: 16px;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #f6f8fa;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 12px 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  border-radius: 0;
}

.key-info code {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  word-break: break-word;
}

.site-footer {
  padding: 14px 0 20px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0 0 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d1d9e0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  background: #f6f8fa;
  color: #1f2328;
  cursor: pointer;
}

/* Docs layout - sidebar lives outside .page, to its left */
.docs-outer {
  display: grid;
  grid-template-columns: 1fr min(90%, 980px) 1fr;
}

.docs-sidebar {
  grid-column: 1;
  justify-self: end;
  align-self: start;
  position: sticky;
  top: 20px;
  width: 150px;
  padding: 38px 24px 0 0;
  text-align: right;
}

.docs-content {
  grid-column: 2;
  padding: 38px 0 52px;
  min-width: 0;
}

.docs-content-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.docs-content-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.docs-sidebar-section {
  margin-bottom: 24px;
}

.docs-sidebar-section h3 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.docs-sidebar-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-sidebar-section li {
  margin: 0;
}

.docs-sidebar-section a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: #444;
}

.docs-sidebar-section a[aria-current="page"] {
  color: #222;
  font-weight: 600;
}

.docs-sidebar-section a:hover {
  color: #222;
}

.docs-content h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.25;
}

.docs-content h3 {
  margin: 22px 0 6px;
  font-size: 16px;
  line-height: 1.4;
}

.docs-content table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  font-size: 15px;
}

.docs-content th,
.docs-content td {
  padding: 6px 10px;
  border: 1px solid #e1e4e8;
  text-align: left;
  vertical-align: top;
}

.docs-content th {
  background: #f6f8fa;
  font-weight: 600;
}

.docs-content td,
.docs-content th {
  hyphens: auto;
}

@media (max-width: 480px) {
  .docs-content table {
    font-size: 14px;
  }

  .docs-content th,
  .docs-content td {
    padding: 5px 6px;
  }
}

.docs-content :not(pre) > code {
  overflow-wrap: anywhere;
}

.docs-content ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

/* Language picker page */
.docs-nav-mobile {
  display: none;
  flex-shrink: 0;
  margin-left: auto;
}

.docs-nav-mobile select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}

@media (max-width: 1340px) {
  .docs-outer {
    display: block;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-nav-mobile {
    display: block;
  }

  .docs-content {
    width: 90%;
    max-width: 980px;
    margin: 0 auto;
    padding-top: 28px;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-header nav {
    order: 3;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
  }

  .site-header nav a {
    display: inline-block;
    margin: 0 14px 5px 0;
  }

  .lang-switcher {
    order: 2;
  }

  main {
    padding-top: 28px;
  }

  .project-description {
    font-size: 18px;
  }
}
