/* Help center (/docs). Page bodies come from the help build (help/tools/build.mjs). */
.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px;
  gap: clamp(24px, 3vw, 48px);
  padding-top: 32px;
  padding-bottom: clamp(64px, 8vw, 112px);
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  font-size: var(--t-sm);
  padding-right: 8px;
}
.docs-nav nav {
  margin-top: 16px;
  display: grid;
  gap: 2px;
}
.docs-nav summary {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink);
}
.docs-nav summary:hover,
.docs-nav li a:hover {
  background: var(--sunk);
}
.docs-nav ul {
  list-style: none;
  margin: 2px 0 8px;
  padding: 0 0 0 10px;
}
.docs-nav li a {
  display: block;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  text-decoration: none;
}
.docs-nav li a[aria-current='page'] {
  background: var(--blue-wash);
  color: var(--blue-ink);
  font-weight: 600;
}
.docs-nav-extra {
  margin-top: 8px;
  padding: 6px 8px;
  font-weight: 600;
}
.docs-nav-toggle {
  display: none;
}
.docs-search {
  position: relative;
}
.docs-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.docs-search-large {
  max-width: 620px;
  margin-top: 24px;
}
.docs-search-large input {
  height: 52px;
  font-size: var(--t-lg);
  padding: 0 18px;
}
.docs-search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-window);
  padding: 6px;
}
.docs-search-results a {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.docs-search-results a:hover,
.docs-search-results a[aria-selected='true'] {
  background: var(--sunk);
}
.docs-search-results small,
.docs-hits small {
  color: var(--ink-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.docs-search-results span,
.docs-hits span {
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.docs-search-results p {
  margin: 8px 10px;
  color: var(--ink-2);
}
.docs-article {
  min-width: 0;
  max-width: 760px;
}
.docs-article h1 {
  font-size: var(--t-2xl);
  margin: 12px 0 12px;
}
.docs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.docs-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue-wash);
  color: var(--blue-ink);
}
.docs-badge-quiet {
  background: var(--sunk);
  color: var(--ink-2);
}
.docs-body .help-ui {
  font-weight: 600;
}
.docs-body kbd {
  font-family: var(--font-text);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--rule-2);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  background: var(--surface);
}
.docs-body .help-table {
  overflow-x: auto;
}
.docs-body .help-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.docs-body .help-callout {
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  background: var(--sunk);
}
.docs-body .help-callout > :first-child {
  margin-top: 0;
}
.docs-body .help-callout > * + * {
  margin-top: 8px;
}
.docs-body .help-callout-title {
  font-weight: 600;
  font-size: var(--t-sm);
}
.docs-body .help-callout-tip {
  background: var(--green-wash);
}
.docs-body .help-callout-warning {
  background: var(--red-wash);
}
.docs-body .help-callout-admin,
.docs-body .help-callout-desktop,
.docs-body .help-callout-android {
  background: var(--blue-wash);
}
.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.docs-pager a {
  display: grid;
  gap: 2px;
  max-width: 48%;
  text-decoration: none;
  color: var(--ink);
}
.docs-pager small {
  color: var(--ink-3);
}
.docs-pager-next {
  margin-left: auto;
  text-align: right;
}
.docs-reviewed {
  margin-top: 24px;
  color: var(--ink-3);
}
.docs-toc {
  position: sticky;
  top: 88px;
}
.docs-toc-sub {
  padding-left: 12px;
}
.docs-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.docs-cards a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.docs-cards a:hover {
  border-color: var(--rule-2);
  box-shadow: var(--shadow-window);
}
.docs-cards span {
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.docs-cards small {
  color: var(--ink-3);
}
.docs-latest {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-bottom: 24px;
}
.docs-hits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.docs-hits a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
}
.docs-hits a:hover {
  background: var(--sunk);
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
}
@media (max-width: 820px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }
  .docs-nav-toggle {
    display: inline-flex;
    justify-self: start;
  }
  .docs-nav {
    display: none;
    position: static;
    max-height: none;
  }
  .docs-nav.open {
    display: block;
  }
}
.docs-feature {
  margin-top: 32px;
  color: var(--ink-3);
}
