/* Developer docs (/docs/). Articles reuse the help center's layout (help.css); this adds code,
   tables and the docs home. The API reference page (/docs/api/) is Scalar, themed in its page. */

/* ---------- Article bodies ---------- */
.dc-body > pre,
.dc-body > table,
.dc-body > h3 {
  max-width: 680px;
}
.dc-body h3 {
  margin-top: 32px;
  font: 500 19px / 1.3 var(--sans);
  color: var(--ink);
  scroll-margin-top: 88px;
}
.dc-body > ul,
.dc-body > ol {
  padding-left: 22px;
}
.dc-body > ul {
  list-style: disc;
}
.dc-body > ol {
  list-style: decimal;
}
.dc-body li + li {
  margin-top: 6px;
}
.hc.dc code {
  font-family: var(--code);
}
.hc.dc :not(pre) > code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--mist);
  font-size: 0.86em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.hc.dc pre {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--ink);
  color: #eceef2;
  font: 13.5px / 1.6 var(--code);
  tab-size: 2;
}
.hc.dc pre code {
  font: inherit;
}
.dc-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #1e1728;
  color: #c9cad3;
  font: 500 12px / 1.4 var(--sans);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.hc.dc pre:hover .dc-copy,
.dc-copy:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .dc-copy {
    opacity: 1;
  }
}
.dc-copy:hover {
  color: #fff;
}
.dc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.dc-body th,
.dc-body td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hc-line);
  text-align: left;
  vertical-align: top;
}
.dc-body th {
  font: 500 12px / 1.4 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dc-body td:first-child {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .dc-body table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- Docs home ---------- */
.dc-hero-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .dc-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 56px;
  }
}
.dc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.dc-glance {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  background: #fff;
}
.dc-glance dl {
  margin: 0 0 16px;
  font-size: 14px;
}
.dc-glance dl > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hc-line);
}
.dc-glance dt {
  font: 500 12px / 1.7 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dc-glance dd {
  margin: 0;
  color: var(--ink);
}
.dc-glance a {
  text-decoration: underline;
  text-decoration-color: rgba(184, 53, 90, 0.5);
  text-underline-offset: 3px;
}
.dc-cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .dc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .dc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.dc-cards a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--hc-line);
  border-radius: 16px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.dc-cards a:hover {
  border-color: rgba(30, 23, 40, 0.3);
  box-shadow: var(--shadow);
}
.dc-cards strong {
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.dc-cards span {
  font-size: 15px;
  color: var(--muted);
}
.dc-what ul {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}
.dc-what strong {
  font-weight: 600;
  color: var(--ink);
}
.dc-what p {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
}

/* ---------- API reference ---------- */
.dc-api .nav.hidden {
  transform: none;
}
.dc-api-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px var(--gutter);
  border-top: 1px solid rgba(30, 23, 40, 0.12);
  border-bottom: 1px solid rgba(30, 23, 40, 0.12);
  font-size: 14px;
  color: var(--muted);
}
.dc-api-bar .crumbs ol {
  margin: 0;
}
.dc-api-bar p a {
  color: var(--ink);
}
.dc-api-bar p a:hover {
  text-decoration: underline;
}
.dc-api-root {
  min-height: 80vh;
}
.dc-api-fallback {
  padding: 48px var(--gutter);
}
.dc-api-root .dc-api-fallback a {
  text-decoration: underline;
}
/* The site's own .badge (security section) shares a class name with Scalar's version badges. */
.dc-api .scalar-app .badge {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
}
/* Scalar's footer link in the sidebar; the page credits nothing it doesn't need to. */
.dc-api .scalar-app a[href*="utm_source=powered-by"] {
  display: none;
}
