:root {
  --ink: #0b1220;
  --text: #111827;
  --muted: #6b7280;
  --hairline: #e5e7eb;
  --wash: #fbfbfc;
  --accent: #0f2a56;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--wash);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: -0.01em;
}

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

.docs-container {
  width: min(1040px, 92vw);
  margin-inline: auto;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--wash) 88%, #fff);
  border-bottom: 1px solid var(--hairline);
}

.docs-header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding-block: 10px;
}

.docs-brand {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.docs-brand:visited {
  color: var(--ink);
}

.docs-brand-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.docs-brand-tag {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.docs-navlinks {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.docs-navlinks a,
.docs-navlinks a:visited {
  padding: 8px 5px;
  border-radius: 10px;
  color: color-mix(in srgb, var(--muted) 85%, var(--ink));
  text-decoration: none;
  white-space: nowrap;
}

.docs-navlinks a:hover {
  background: color-mix(in srgb, var(--hairline) 35%, transparent);
  color: var(--ink);
}

.docs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.docs-home {
  display: none;
  padding: 7px 4px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.docs-home:visited {
  color: var(--accent);
}

.docs-home:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.docs-primary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--hairline));
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.docs-primary:visited {
  color: var(--accent);
}

.docs-primary:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.docs-main {
  max-width: 860px;
  flex: 1 0 auto;
  padding-block: 42px 56px;
  line-height: 1.65;
}

.docs-main h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.docs-main h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.docs-main p,
.docs-main li {
  font-size: 16px;
}

.docs-main p {
  margin-block: 0 16px;
}

.docs-main ul {
  margin-block: 0 18px;
  padding-left: 1.4em;
}

.docs-main a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.docs-main a:visited {
  color: var(--accent);
}

.docs-main a:hover {
  text-decoration-color: currentColor;
}

.docs-footer {
  flex: 0 0 auto;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
}

.docs-footgrid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px;
}

.docs-footer-identity {
  display: grid;
  gap: 2px;
}

.docs-footer-identity strong {
  color: var(--ink);
  font-weight: 700;
}

.docs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.docs-footer a,
.docs-footer a:visited {
  color: var(--accent);
  text-decoration: none;
}

.docs-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 920px) {
  .docs-header-inner {
    min-height: 58px;
    display: flex;
    gap: 10px;
    padding-block: 9px;
  }

  .docs-brand {
    margin-right: auto;
  }

  .docs-navlinks {
    display: none;
  }

  .docs-home {
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .docs-container {
    width: min(1040px, 94vw);
  }

  .docs-brand {
    gap: 0;
  }

  .docs-brand-name {
    font-size: 17px;
  }

  .docs-brand-tag {
    display: none;
  }

  .docs-actions {
    gap: 8px;
  }

  .docs-home {
    font-size: 12px;
  }

  .docs-primary {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .docs-main {
    padding-block: 30px 42px;
    line-height: 1.62;
  }

  .docs-main h1 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .docs-main h2 {
    margin-top: 26px;
    font-size: 20px;
  }

  .docs-footgrid {
    flex-direction: column;
    gap: 10px;
    padding-block: 18px;
  }
}

@media (max-width: 420px) {
  .docs-container {
    width: min(1040px, 93vw);
  }

  .docs-header-inner {
    gap: 8px;
  }

  .docs-actions {
    gap: 6px;
  }

  .docs-home {
    padding-inline: 2px;
  }

  .docs-primary {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .docs-home {
    display: none;
  }
}
