:root {
  color-scheme: light;
  --ink: #18211d;
  --muted: #5d6963;
  --line: #d8e0dc;
  --surface: #ffffff;
  --surface-soft: #f3f6f4;
  --blue: #1769aa;
  --blue-soft: #e8f2fa;
  --green: #187a4d;
  --green-soft: #e7f5ed;
  --warning: #8c4d08;
  --warning-soft: #fff4df;
  --code: #111916;
  --code-ink: #eaf2ee;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: var(--blue);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

p code,
li code,
dd code {
  overflow-wrap: anywhere;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 7px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.version-control select {
  height: 34px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
}

.package-link {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.package-link:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.menu-button {
  display: none;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
  font-weight: 650;
}

.docs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 880px);
  gap: 52px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 28px 90px;
}

.sidebar {
  position: sticky;
  top: 102px;
  align-self: start;
  max-height: calc(100vh - 126px);
  overflow-y: auto;
}

.search span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: white;
}

.search input:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue-soft);
}

#docs-nav {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

#docs-nav a {
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

#docs-nav a:hover,
#docs-nav a.active {
  border-left-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

main {
  min-width: 0;
}

section {
  padding: 0 0 58px;
  scroll-margin-top: 92px;
}

section + section {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 46px;
}

h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

p {
  max-width: 780px;
  margin: 12px 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  color: #3d4943;
  font-size: 19px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-facts div {
  padding: 16px;
}

.quick-facts div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.quick-facts div:nth-child(-n+2) {
  border-bottom: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 3px 0 0;
  font-weight: 650;
}

.note {
  margin: 24px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
}

.note.warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.note p {
  margin: 4px 0 0;
  color: var(--ink);
}

.steps {
  padding-left: 22px;
}

.steps li {
  margin: 7px 0;
}

.code-block {
  max-width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 7px;
  background: var(--code);
}

.code-block > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid #2b3832;
  color: #aebbb5;
  font-size: 12px;
}

.code-block button {
  padding: 4px 8px;
  border: 1px solid #4a5a52;
  border-radius: 5px;
  color: var(--code-ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.code-block button:hover {
  border-color: #8ea298;
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: var(--code-ink);
  line-height: 1.55;
}

.comparison,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.comparison article,
.policy-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.comparison h3 {
  margin: 0;
}

.comparison p,
.policy-grid p {
  margin-bottom: 0;
}

.table-wrap {
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  text-transform: uppercase;
}

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

.troubleshooting {
  margin: 18px 0;
  border-top: 1px solid var(--line);
}

.troubleshooting div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.troubleshooting dt {
  font-weight: 700;
}

.troubleshooting dd {
  margin: 0;
  color: var(--muted);
}

.preview figure {
  margin: 24px 0 0;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.preview figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.no-results {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

@media (max-width: 820px) {
  .topbar {
    padding: 9px 14px;
  }

  .package-link,
  .version-control span {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .docs-shell {
    display: block;
    padding: 24px 18px 70px;
  }

  .sidebar {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    z-index: 15;
    display: none;
    max-height: calc(100vh - 68px);
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: white;
  }

  .sidebar.open {
    display: block;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 25px;
  }

  .comparison,
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small,
  .version-control {
    display: none;
  }

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

  .quick-facts div:nth-child(odd) {
    border-right: 0;
  }

  .quick-facts div:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .troubleshooting div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .troubleshooting dt,
  .troubleshooting dd {
    min-width: 0;
  }
}

.platform-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.platform-navigation a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.platform-navigation a:hover,
.platform-navigation a[aria-current="page"] {
  color: var(--blue);
  border-color: var(--blue);
}
