:root {
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --orange-400: #fb923c;
  --orange-300: #fdba74;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --cloud: #f8fafc;
  --white: #fff;
  --line: #e2e8f0;
  --nav-height: 4rem;
  --sidebar-width: 17.5rem;
  --content-gap-max: 1.75rem;
  --paragraph-gap: 0.875rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Ubuntu, Arial, sans-serif;
  color: var(--slate-700);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 0%, rgb(251 146 60 / 8%), transparent 24rem),
    var(--cloud);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  background: linear-gradient(110deg, #172f73, var(--blue-900));
  border-bottom: 3px solid var(--orange-400);
  box-shadow: 0 8px 30px rgb(15 23 42 / 14%);
}

.navbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 90rem;
  height: var(--nav-height);
  padding: 0 1.5rem;
  margin: 0 auto;
}

.docs-brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: baseline;
  color: var(--white);
  text-decoration: none;
}

.docs-brand span {
  font-size: 1.125rem;
  font-weight: 700;
}

.docs-brand strong {
  color: var(--orange-300);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-links {
  display: flex;
  gap: 0.5rem;
}

.desktop-links a {
  padding: 0.5rem 0.75rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.375rem;
}

.desktop-links a:hover,
.desktop-links a[aria-current="page"] {
  color: var(--white);
  background: rgb(255 255 255 / 10%);
}

.mobile-toggle,
.mobile-menu {
  display: none;
}

.page-spacer {
  height: var(--nav-height);
}

.docs-layout {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  padding-left: var(--sidebar-width);
  overflow: hidden;
}

.docs-layout::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(37 99 235 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(37 99 235 / 8%) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 3rem 3rem;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 90%), transparent 92%);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 90%), transparent 92%);
  animation: docs-grid-drift 18s linear infinite;
}

@keyframes docs-grid-drift {
  to {
    background-position: 3rem 3rem;
  }
}

.sidebar {
  position: fixed;
  z-index: 10;
  top: var(--nav-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  padding: var(--content-gap-max) 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(255 255 255 / 92%);
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 30px rgb(15 23 42 / 3%);
}

.sidebar-group + .sidebar-group {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.sidebar h2 {
  margin: 0 0 0.5rem;
  color: var(--slate-900);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.sidebar h2 a {
  padding: 0.5rem 0.75rem;
  color: var(--slate-900);
  font-size: inherit;
  font-weight: inherit;
  border-radius: 0.5rem;
}

.sidebar h2 a:hover,
.sidebar h2 a[aria-current="page"] {
  color: var(--orange-400);
}

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

.sidebar a {
  display: block;
  padding: 0.625rem 0.75rem;
  color: var(--slate-700);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
}

.sidebar a:hover,
.sidebar a[aria-current="page"] {
  color: var(--orange-400);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.site-main {
  width: min(100%, 72rem);
  padding: var(--content-gap-max) clamp(2.25rem, 5vw, 5rem);
  margin: 0 auto;
}

.site-main.has-page-toc {
  display: grid;
  grid-template-columns: minmax(0, 48rem) minmax(11rem, 14rem);
  gap: clamp(2.5rem, 5vw, 5rem);
  width: min(100%, 78rem);
}

.article-column {
  min-width: 0;
}

.site-main h1,
.site-main h2 {
  color: var(--slate-900);
}

.site-main h1 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  color: var(--blue-800);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #dbeafe;
  border-radius: 999px;
}

.docs-hero {
  position: relative;
  padding: var(--content-gap-max) clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), #14265d);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.25rem;
  box-shadow: 0 24px 55px -30px rgb(30 58 138 / 70%);
}

.docs-hero::after {
  position: absolute;
  top: -7rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  content: "";
  background: radial-gradient(circle, rgb(251 146 60 / 38%), transparent 68%);
}

.docs-hero .eyebrow {
  color: var(--orange-300);
  background: rgb(255 255 255 / 9%);
}

.docs-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0.875rem 0 0.625rem;
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.docs-hero p {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0;
  color: rgb(255 255 255 / 74%);
  font-size: 1rem;
  line-height: 1.625;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-actions a {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
}

.button-primary {
  color: var(--slate-900);
  background: var(--orange-400);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 28%);
}

.topic-groups {
  margin-top: var(--content-gap-max);
}

.topic-group + .topic-group {
  padding-top: var(--paragraph-gap);
  margin-top: var(--paragraph-gap);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.section-heading > span {
  display: grid;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blue-900);
  border-radius: 0.625rem;
  place-items: center;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.section-heading p {
  margin-top: 0.125rem;
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.5;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.875rem;
  align-items: center;
  padding: 1.25rem;
  color: var(--slate-700);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  box-shadow: 0 12px 28px -24px rgb(15 23 42 / 55%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  border-color: var(--orange-300);
  box-shadow: 0 18px 36px -24px rgb(30 58 138 / 45%);
  transform: translateY(-2px);
}

.topic-card h3,
.topic-card p {
  margin: 0;
}

.topic-card h3 {
  color: var(--slate-900);
  font-size: 0.95rem;
}

.topic-card p {
  margin-top: 0.125rem;
  color: var(--slate-500);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.topic-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--blue-800);
  font-size: 0.75rem;
  font-weight: 800;
  background: #eff6ff;
  border-radius: 0.625rem;
  place-items: center;
}

.topic-arrow {
  color: var(--orange-400);
  font-size: 1.25rem;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: var(--content-gap-max);
  color: var(--slate-500);
  font-size: 0.8125rem;
}

.breadcrumbs a {
  font-weight: 600;
  text-decoration: none;
}

.article-header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 0.75rem 0 0.375rem;
}

.article-header p {
  margin: 0;
  color: var(--slate-500);
  font-size: 1.125rem;
  line-height: 1.55;
}

.content-panel {
  max-width: 48rem;
  padding: 1.5rem;
  margin-top: var(--content-gap-max);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-400);
  border-radius: 0.75rem;
  box-shadow: 0 16px 35px -30px rgb(15 23 42 / 60%);
}

.content-panel h2,
.content-panel p {
  margin: 0;
}

.content-panel p {
  margin-top: 0.5rem;
}

.steps-section {
  max-width: 48rem;
  margin-top: var(--content-gap-max);
}

.steps-list {
  display: grid;
  gap: 1rem;
}

.steps-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: rgb(255 255 255 / 74%);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.steps-list article > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blue-900);
  border-radius: 50%;
  place-items: center;
}

.steps-list h3,
.steps-list p {
  margin: 0;
}

.steps-list h3 {
  color: var(--slate-900);
  font-size: 0.95rem;
}

.steps-list p {
  margin-top: 0.25rem;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.next-step {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 48rem;
  padding: 1.25rem;
  margin-top: var(--content-gap-max);
  color: var(--white);
  background: var(--blue-900);
  border-radius: 0.75rem;
}

.next-step div {
  display: grid;
  gap: 0.25rem;
}

.next-step span {
  color: rgb(255 255 255 / 65%);
  font-size: 0.75rem;
}

.next-step a {
  flex: 0 0 auto;
  color: var(--orange-300);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: var(--content-gap-max);
}

.resource-grid > a {
  padding: 1.5rem;
  color: var(--slate-700);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
}

.resource-grid > a:hover {
  border-color: var(--orange-300);
  box-shadow: 0 18px 35px -28px rgb(30 58 138 / 55%);
}

.resource-grid span {
  color: var(--orange-400);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-grid h2 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.1rem;
}

.resource-grid p {
  min-height: 4.5rem;
  margin: 0;
  color: var(--slate-500);
  font-size: 0.875rem;
}

.resource-grid strong {
  display: block;
  margin-top: 1.25rem;
  color: var(--blue-800);
  font-size: 0.8125rem;
}

.docs-prose {
  color: #3f4652;
  font-size: 1rem;
}

.docs-prose .article-header p {
  max-width: 44rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.prose-section {
  padding-top: var(--paragraph-gap);
  margin-top: var(--paragraph-gap);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.article-header + .prose-section {
  padding-top: 0;
  margin-top: var(--content-gap-max);
  border-top: 0;
}

.prose-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3125rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.prose-section h3 {
  color: var(--slate-900);
}

.prose-section > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
}

.article-body-heading {
  padding-top: var(--paragraph-gap);
  margin-top: var(--paragraph-gap);
  border-top: 1px solid var(--line);
}

.article-body-heading h2 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.article-body-heading + .article-content-section {
  padding-top: 0;
  margin-top: var(--paragraph-gap);
  border-top: 0;
}

.article-content-section > p {
  margin: 0 0 0.875rem;
  line-height: 1.625;
}

.article-content-section > p a {
  color: var(--blue-800);
  font-weight: 500;
  text-decoration: none;
}

.article-content-section > p a:hover {
  color: var(--orange-400);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-list-block,
.article-table-block {
  margin: 1.5rem 0 1.75rem;
}

.article-list-block h3,
.article-table-block h3 {
  margin: 0 0 0.5rem;
  color: var(--slate-900);
  font-size: 1rem;
}

.article-list-block ol,
.article-list-block ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.5rem;
  margin: 0;
}

.article-list-block li {
  padding-left: 0.25rem;
  line-height: 1.625;
}

.article-list-block li::marker {
  color: var(--orange-400);
  font-weight: 700;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.article-table-block table {
  width: 100%;
  min-width: 32rem;
  border-spacing: 0;
  border-collapse: collapse;
  text-align: left;
}

.article-table-block th,
.article-table-block td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.article-table-block th {
  color: var(--slate-900);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.article-table-block td {
  color: var(--slate-700);
  font-size: 0.875rem;
  line-height: 1.45;
}

.article-table-block tbody tr:last-child td {
  border-bottom: 0;
}

.documentation-steps {
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
  counter-reset: documentation-step;
}

.documentation-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1.75rem;
  counter-increment: documentation-step;
}

.documentation-steps li::before {
  z-index: 1;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  content: counter(documentation-step);
  background: var(--blue-900);
  border-radius: 50%;
  place-items: center;
}

.documentation-steps li:not(:last-child)::after {
  position: absolute;
  top: 2.25rem;
  bottom: 0;
  left: 1.09375rem;
  width: 1px;
  content: "";
  background: var(--line);
}

.documentation-steps h3,
.documentation-steps p {
  margin: 0;
}

.documentation-steps h3 {
  font-size: 1rem;
}

.documentation-steps p {
  margin-top: 0.2rem;
  color: var(--slate-500);
}

.article-steps li {
  grid-template-columns: 2.25rem minmax(0, 1fr);
}

.article-steps li::before {
  display: none;
  content: none;
}

.article-steps .step-number {
  z-index: 1;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blue-900);
  border-radius: 50%;
  place-items: center;
}

.code-example {
  margin: 1.5rem 0 1.75rem;
  overflow: hidden;
  background: #0b1538;
  border: 1px solid rgb(148 163 184 / 28%);
  border-radius: 0.875rem;
  box-shadow: 0 18px 38px -28px rgb(15 23 42 / 75%);
}

.code-toolbar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 3.25rem;
  padding: 0.75rem 0.875rem 0;
  color: rgb(255 255 255 / 75%);
  background: rgb(255 255 255 / 4%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.code-toolbar > div {
  min-width: 0;
}

.code-toolbar strong {
  display: block;
  padding: 0 0.375rem 0.65rem;
  color: var(--white);
  font-size: 0.8125rem;
}

.code-tabs {
  display: flex;
  gap: 0.125rem;
  overflow-x: auto;
}

.code-tabs button,
.copy-code {
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.code-tabs button {
  position: relative;
  padding: 0.5rem 0.625rem 0.7rem;
  color: rgb(255 255 255 / 55%);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.code-tabs button::after {
  position: absolute;
  right: 0.5rem;
  bottom: 0;
  left: 0.5rem;
  height: 2px;
  content: "";
  background: var(--orange-400);
  transform: scaleX(0);
}

.code-tabs button[aria-selected="true"] {
  color: var(--orange-300);
}

.code-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.copy-code {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
  color: rgb(255 255 255 / 72%);
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 0.375rem;
}

.copy-code:hover,
.copy-code.copied {
  color: var(--white);
  border-color: var(--orange-400);
}

.code-example [data-code-panel][hidden] {
  display: none;
}

.code-example pre {
  max-width: 100%;
  padding: 1.25rem;
  margin: 0;
  overflow-x: auto;
}

.code-example code {
  color: #e2e8f0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.46;
  tab-size: 2;
}

.article-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: var(--paragraph-gap);
  margin-top: var(--paragraph-gap);
  border-top: 1px solid var(--line);
}

.article-pagination a {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem;
  color: var(--slate-700);
  text-decoration: none;
  background: rgb(255 255 255 / 78%);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.article-pagination a:hover {
  border-color: var(--orange-300);
  box-shadow: 0 14px 28px -24px rgb(30 58 138 / 55%);
}

.article-pagination .next-page {
  text-align: right;
}

.article-pagination .next-page:only-child {
  grid-column: 2;
}

.article-pagination span {
  color: var(--blue-800);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-pagination strong {
  color: var(--slate-900);
  font-size: 0.9rem;
}

.article-pagination small {
  color: var(--slate-500);
  font-size: 0.75rem;
  line-height: 1.45;
}

.next-steps-section {
  padding: 1.5rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), #14265d);
  border-radius: 0.75rem;
}

.next-steps-section h2,
.next-steps-section p {
  color: var(--white);
}

.next-steps-section p {
  opacity: 0.76;
}

.next-steps-section a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--orange-300);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.documentation-link-list {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  background: rgb(255 255 255 / 76%);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.documentation-link-list > a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  color: var(--slate-700);
  text-decoration: none;
}

.documentation-link-list > a + a {
  border-top: 1px solid var(--line);
}

.documentation-link-list > a:hover {
  background: #eff6ff;
}

.documentation-link-list > a > span {
  color: var(--blue-800);
  font-size: 0.75rem;
  font-weight: 800;
}

.documentation-link-list h3,
.documentation-link-list p {
  margin: 0;
}

.documentation-link-list h3 {
  font-size: 0.95rem;
}

.documentation-link-list p {
  margin-top: 0.125rem;
  color: var(--slate-500);
  font-size: 0.8125rem;
}

.documentation-link-list strong {
  color: var(--orange-400);
  font-size: 1.25rem;
}

.on-this-page {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - 4rem);
  padding-left: 1.25rem;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}

.on-this-page h2 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--slate-700);
  font-size: 0.8125rem;
  font-weight: 600;
}

.on-this-page h2 svg {
  width: 0.875rem;
  height: 0.875rem;
}

.on-this-page nav {
  display: grid;
  gap: 0.125rem;
}

.on-this-page a {
  padding: 0.35rem 0;
  color: var(--slate-500);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-decoration: none;
}

.on-this-page a:hover,
.on-this-page a.active {
  color: var(--orange-400);
  font-weight: 700;
}

#api-tools,
.resource-grid > a {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.site-main p,
.site-main li {
  max-width: 48rem;
  line-height: 1.625;
}

.docs-article > section {
  padding-top: var(--paragraph-gap);
  margin-top: var(--paragraph-gap);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.docs-footer {
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  padding: 1rem 1.5rem;
  color: rgb(255 255 255 / 75%);
  background: var(--blue-900);
  border-top: 3px solid var(--orange-400);
  margin-left: var(--sidebar-width);
}

.docs-footer p {
  margin: 0;
  font-size: 0.8125rem;
}

.docs-footer nav {
  display: flex;
  gap: 1rem;
}

.docs-footer a {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-footer a:hover {
  color: var(--orange-300);
}

@media (max-width: 68rem) {
  .site-main.has-page-toc {
    display: block;
    width: min(100%, 54rem);
  }

  .on-this-page {
    display: none;
  }
}

@media (max-width: 48rem) {
  .desktop-links,
  .sidebar {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--white);
    cursor: pointer;
    background: transparent;
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 0.375rem;
    place-items: center;
  }

  .mobile-menu.open {
    display: block;
    padding: 0.75rem 1.5rem 1rem;
    background: var(--blue-900);
  }

  .mobile-menu nav {
    display: grid;
    gap: 0.25rem;
  }

  .mobile-topic-links {
    display: grid;
    gap: 1rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }

  .mobile-topic-links h2 {
    padding: 0 0.75rem;
    margin: 0 0 0.25rem;
    color: var(--orange-300);
    font-size: 0.6875rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .mobile-topic-links a {
    padding-block: 0.5rem;
    font-size: 0.8125rem;
  }

  .mobile-menu a {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem;
    color: var(--white);
    text-decoration: none;
    border-radius: 0.375rem;
  }

  .mobile-menu a[aria-current="page"] {
    background: rgb(255 255 255 / 10%);
  }

  .mobile-menu a span {
    color: rgb(255 255 255 / 70%);
    font-size: 0.75rem;
  }

  .docs-layout {
    padding-left: 0;
  }

  .docs-layout::before {
    left: 0;
  }

  .site-main {
    padding: var(--content-gap-max) 1.25rem;
  }

  .topic-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-grid p {
    min-height: auto;
  }

  .next-step {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-pagination .next-page,
  .article-pagination .next-page:only-child {
    grid-column: auto;
    text-align: left;
  }

  .docs-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-layout::before {
    animation: none;
  }
}
