/*
 * Docs subsite styling — magazine-style layout, low box density.
 *
 * Visual contract (don't break without re-running Playwright sweep):
 *   - Only ONE bordered surface per logical region: the article reading column.
 *   - Sidebar / TOC / pagination / breadcrumb / related list rely on typography
 *     and hairlines, not nested cards.
 *   - All text containers must allow long-word wrapping (overflow-wrap).
 *   - All viewports keep horizontal scroll restricted to `<pre>` only.
 */

.docs-page {
  --docs-bg-soft: rgba(255, 255, 255, 0.02);
  --docs-bg-strong: rgba(8, 18, 33, 0.74);
  --docs-rule: rgba(129, 167, 224, 0.16);
  --docs-rule-strong: rgba(129, 167, 224, 0.32);
  --docs-link: #b6d0ff;
  --docs-link-hover: #ffffff;
  --docs-prose-max: 76ch;
}

.docs-shell {
  width: var(--docs-container);
  margin: 0 auto;
  padding: 14px 0 96px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 200px;
  column-gap: 40px;
  align-items: start;
}

/*
 * On the index/home page there's no right-rail TOC, so we collapse to a
 * two-column shell. We rewrite the columns inside each responsive breakpoint
 * below; this base rule applies only when no breakpoint matched (≥1180px).
 */
.docs-page--index .docs-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  column-gap: 48px;
}

/* ── Drawer toggle (mobile) ───────────────────────────── */
.docs-drawer-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 18px 0 8px;
  padding: 12px 16px;
  border: 1px solid var(--docs-rule);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.docs-drawer-toggle__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(47, 128, 237, 0.18);
  font-size: 0.9rem;
}

/* ── Sidebar ──────────────────────────────────────────── */
.docs-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.docs-sidebar__nav {
  display: grid;
  gap: 18px;
  padding-bottom: 36px;
}

.docs-sidebar__home,
.docs-group__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.docs-sidebar__home {
  font-weight: 700;
  color: var(--text);
}

.docs-sidebar__home-icon,
.docs-group__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.docs-sidebar__home:hover,
.docs-sidebar__home.is-active {
  background: rgba(47, 128, 237, 0.14);
  color: var(--text);
}

.docs-group {
  display: grid;
  gap: 4px;
}

.docs-group__title {
  margin: 6px 0 4px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.docs-group__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.docs-group__link.is-active {
  position: relative;
  color: var(--text);
  background: rgba(47, 128, 237, 0.16);
}

.docs-group__link.is-active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6aa3ff, #2f80ed);
}

.docs-group__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ── Search ───────────────────────────────────────────── */
.docs-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  border: 1px solid var(--docs-rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.docs-search:focus-within {
  border-color: rgba(147, 197, 253, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.docs-search__icon {
  color: var(--muted);
  font-size: 0.95rem;
}

.docs-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px 10px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.92rem;
}

.docs-search input::placeholder {
  color: var(--muted);
}

.docs-search input:focus {
  outline: none;
}

.docs-search-results {
  display: grid;
  gap: 2px;
}

.docs-search-results:empty {
  display: none;
}

.docs-search-results a {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  transition: background-color 0.18s ease;
  min-width: 0;
}

.docs-search-results a:hover {
  background: rgba(47, 128, 237, 0.14);
}

.docs-search-results strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.docs-search-results p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Main column ──────────────────────────────────────── */
.docs-main {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: -12px;
}

.docs-breadcrumb a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.docs-breadcrumb a:hover {
  color: var(--text);
  border-bottom-color: rgba(147, 197, 253, 0.6);
}

.docs-breadcrumb__sep {
  color: rgba(147, 197, 253, 0.5);
}

.docs-breadcrumb__current {
  color: var(--text);
  font-weight: 600;
}

.docs-masthead {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--docs-rule);
}

.docs-masthead__title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.docs-masthead__summary {
  margin: 0;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: var(--docs-prose-max);
}

.docs-masthead__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.docs-masthead__meta-key {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.72rem;
  margin-right: 4px;
}

/* ── Inline TOC (shown on mobile/medium widths) ───────── */
.docs-toc-inline {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--docs-rule);
  border-radius: 14px;
  background: var(--docs-bg-soft);
}

.docs-toc-inline > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.docs-toc-inline > summary::-webkit-details-marker {
  display: none;
}

.docs-toc-inline > summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.docs-toc-inline[open] > summary::after {
  transform: rotate(180deg);
}

.docs-toc-inline__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.18);
  color: #cfe2ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.docs-toc-inline ol {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
}

.docs-toc-inline a {
  color: var(--muted-strong);
  border-bottom: 1px solid transparent;
}

.docs-toc-inline a:hover {
  color: var(--text);
  border-bottom-color: rgba(147, 197, 253, 0.5);
}

/* ── Article (the one bordered surface) ───────────────── */
.docs-article {
  position: relative;
  padding: 28px 32px 36px;
  border: 1px solid var(--docs-rule);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(13, 26, 46, 0.78), rgba(8, 17, 31, 0.92));
  box-shadow: 0 24px 60px rgba(2, 8, 18, 0.28);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.docs-article > :first-child {
  margin-top: 0;
}

.docs-article > :last-child {
  margin-bottom: 0;
}

/* ── Right-rail TOC (desktop) ─────────────────────────── */
.docs-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding-top: 4px;
  display: grid;
  gap: 12px;
  font-size: 0.88rem;
}

.docs-toc--placeholder {
  visibility: hidden;
  height: 1px;
}

.docs-toc__label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 700;
}

.docs-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  border-left: 1px solid var(--docs-rule);
}

.docs-toc__list li {
  padding-left: 12px;
  position: relative;
}

.docs-toc__list a {
  color: var(--muted-strong);
  line-height: 1.55;
  display: block;
  padding: 2px 0;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.docs-toc__list a:hover {
  color: var(--text);
}

.docs-toc__list a.is-active {
  color: var(--text);
  font-weight: 700;
}

.docs-toc__list a.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0.5em;
  bottom: 0.5em;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6aa3ff, #2f80ed);
}

/* ── Related (lighter than before, single column) ─────── */
.docs-related {
  display: grid;
  gap: 12px;
}

.docs-related__heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.docs-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--docs-rule);
}

.docs-related__list li {
  border-bottom: 1px solid var(--docs-rule);
}

.docs-related__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px 4px;
  color: var(--text);
  transition: background-color 0.18s ease;
  min-width: 0;
}

.docs-related__link:hover {
  background: rgba(47, 128, 237, 0.08);
}

.docs-related__icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(47, 128, 237, 0.16);
  font-size: 1.08rem;
  flex-shrink: 0;
}

.docs-related__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.docs-related__body strong {
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.docs-related__desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.docs-related__arrow {
  align-self: center;
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.docs-related__link:hover .docs-related__arrow {
  color: var(--text);
  transform: translateX(2px);
}

/* ── Pagination ───────────────────────────────────────── */
.docs-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.docs-pagination__placeholder {
  display: block;
}

.docs-pagination__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--docs-rule);
  border-radius: 14px;
  background: var(--docs-bg-soft);
  color: var(--text);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  min-width: 0;
}

.docs-pagination__link:hover {
  border-color: var(--docs-rule-strong);
  background: rgba(47, 128, 237, 0.1);
  transform: translateY(-1px);
}

.docs-pagination__link--next {
  justify-content: flex-end;
  text-align: right;
}

.docs-pagination__arrow {
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
}

.docs-pagination__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.docs-pagination__label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-pagination__copy strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

/* ── Docs home (index page) ───────────────────────────── */
.docs-home {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.docs-home__hero {
  padding: 28px 32px;
  border: 1px solid var(--docs-rule-strong);
  border-radius: 20px;
  background:
    radial-gradient(640px 280px at 0% 0%, rgba(47, 128, 237, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(15, 30, 54, 0.95), rgba(8, 18, 33, 0.92));
  box-shadow: 0 28px 80px rgba(2, 8, 18, 0.34);
}

.docs-home__hero .eyebrow {
  color: #9bc1ff;
}

.docs-home__title {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 2.6vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.docs-home__lead {
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 1.02rem;
  line-height: 1.72;
  max-width: var(--docs-prose-max);
}

.docs-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.docs-home__index {
  display: grid;
  gap: 20px;
}

.docs-home__index-head h3 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.docs-home__index-body {
  display: grid;
  gap: 28px;
}

.docs-home__group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.docs-home__group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  color: #cfe2ff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-home__group-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(147, 197, 253, 0.35), transparent);
}

.docs-home__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
}

.docs-home__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 14px 4px;
  color: var(--text);
  border-bottom: 1px solid var(--docs-rule);
  transition: background-color 0.18s ease, padding 0.18s ease;
  min-width: 0;
}

.docs-home__item:hover {
  background: rgba(47, 128, 237, 0.08);
  padding-left: 8px;
}

.docs-home__item-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(47, 128, 237, 0.14);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.docs-home__item-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.docs-home__item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.docs-home__item-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.docs-home__item-arrow {
  color: var(--muted);
  align-self: center;
  font-size: 1.05rem;
}

.docs-home__item:hover .docs-home__item-arrow {
  color: var(--text);
}

/* ── Prose / typography overrides ─────────────────────── */
.docs-article.prose {
  max-width: none;
  line-height: 1.78;
  font-size: 1.02rem;
}

.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 110px;
}

.prose h2 {
  margin: 40px 0 14px;
  font-size: 1.55rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--docs-rule);
}

.prose h2:first-of-type {
  margin-top: 8px;
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.prose h4 {
  margin: 20px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-strong);
}

.prose .header-anchor {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.prose .header-anchor:hover::before {
  content: '#';
  position: absolute;
  left: -1.1em;
  color: var(--muted);
  font-weight: 400;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table {
  max-width: var(--docs-prose-max);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 4px;
}

.prose a {
  color: var(--docs-link);
  border-bottom: 1px solid rgba(182, 208, 255, 0.34);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.prose a:hover {
  color: var(--docs-link-hover);
  border-bottom-color: var(--docs-link-hover);
}

.prose strong {
  color: var(--text-strong);
}

.prose img {
  max-width: 100%;
  border-radius: 12px;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--docs-rule);
  margin: 32px 0;
}

.prose code:not(pre code) {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

.prose pre {
  max-width: 100%;
  overflow: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  table-layout: fixed;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--docs-rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.prose th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-strong);
}

.prose blockquote {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(147, 197, 253, 0.55);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  border-radius: 0 10px 10px 0;
}

.prose blockquote p {
  margin: 0;
}

/* code-block (markdown highlight wrapper) – tighter */
.code-block {
  margin: 22px 0;
  border: 1px solid var(--docs-rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--code-bg);
  max-width: 100%;
}

.code-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--docs-rule);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow: auto;
  font-size: 0.86rem;
  line-height: 1.65;
}

/* ── Callouts (info/warn/danger) ─────────────────────── */
.callout {
  margin: 22px 0;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 3px solid #93c5fd;
  background: rgba(47, 128, 237, 0.08);
  display: grid;
  gap: 8px;
}

.callout--info {
  background: rgba(47, 128, 237, 0.08);
  border-left-color: #93c5fd;
}

.callout--warn {
  background: rgba(249, 115, 22, 0.08);
  border-left-color: var(--accent);
}

.callout--danger {
  background: rgba(251, 113, 133, 0.1);
  border-left-color: var(--danger);
}

.callout__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}

.callout__body > :first-child {
  margin-top: 0;
}

.callout__body > :last-child {
  margin-bottom: 0;
}

.callout__body p {
  margin: 6px 0;
  line-height: 1.7;
}

.callout__body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 162, 218, 0.18);
  overflow-wrap: anywhere;
}

/* ── kbd inside docs ─────────────────────────────────── */
.docs-article kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  padding: 0.18em 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1180px) {
  .docs-shell,
  .docs-page--index .docs-shell {
    grid-template-columns: 240px minmax(0, 1fr) 184px;
    column-gap: 32px;
  }

  .docs-page--index .docs-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 1080px) {
  .docs-shell,
  .docs-page--index .docs-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 32px;
  }

  .docs-toc {
    display: none;
  }

  .docs-toc-inline {
    display: block;
  }
}

@media (max-width: 880px) {
  .docs-shell,
  .docs-page--index .docs-shell {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-bottom: 80px;
  }

  .docs-drawer-toggle {
    display: inline-flex;
  }

  .docs-sidebar {
    position: fixed;
    inset: 84px 16px 16px;
    z-index: 45;
    max-height: none;
    overflow-y: auto;
    padding: 18px;
    border: 1px solid var(--docs-rule-strong);
    border-radius: 18px;
    background: rgba(7, 16, 29, 0.96);
    backdrop-filter: blur(12px);
    transform: translateX(-110%);
    transition: transform 0.22s ease;
  }

  .docs-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 28px 80px rgba(2, 8, 18, 0.4);
  }

  .docs-article {
    padding: 22px 18px 26px;
    border-radius: 16px;
  }

  .docs-masthead__title {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  .docs-home__hero {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .docs-home__title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  .docs-home__list {
    grid-template-columns: 1fr;
  }

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

  .docs-pagination__link--next {
    justify-content: flex-start;
    text-align: left;
    flex-direction: row-reverse;
  }

  .docs-related__link {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .docs-related__arrow {
    display: none;
  }
}
