.api-hero {
  background: radial-gradient(circle at top right, rgba(107, 143, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f7f9ff 100%);
}

.api-base-url {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  color: #18213a;
  background: #eef2ff;
  border: 1px solid rgba(107, 143, 255, 0.35);
  border-radius: 12px;
}

.api-base-url strong {
  color: #4a6fe3;
}

.api-base-url code {
  overflow-wrap: anywhere;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  color: #3355bd;
  background: #ffffff;
  border: 1px solid rgba(74, 111, 227, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  background: #eef2ff;
  outline: none;
}

.endpoint-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.endpoint {
  display: grid;
  grid-template-columns: 74px minmax(230px, 0.9fr) minmax(240px, 1.6fr) minmax(130px, 0.7fr);
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  background: #ffffff;
  border: 1px solid var(--kn-border);
  border-radius: 12px;
}

.endpoint code {
  overflow-wrap: anywhere;
  color: #272a30;
  font-size: 13px;
  font-weight: 700;
}

.endpoint p {
  margin: 0;
  color: var(--kn-text-secondary);
  font-size: 13px;
}

.endpoint-scope {
  justify-self: start;
  padding: 5px 8px;
  color: #52607d;
  background: #f3f4f6;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.method {
  display: inline-grid;
  place-items: center;
  min-width: 62px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.method-get {
  color: #176b4d;
  background: #e8f8f1;
}

.method-post {
  color: #315cc4;
  background: #eaf0ff;
}

.method-put,
.method-patch {
  color: #8a5a0b;
  background: #fff5db;
}

.method-delete {
  color: #a23e4c;
  background: #fdecef;
}

.code-sample {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  background: #121625;
  border: 1px solid #252c43;
  border-radius: 14px;
}

.code-sample figcaption {
  padding: 10px 14px;
  color: #aab4d0;
  background: #181d2e;
  border-bottom: 1px solid #252c43;
  font-size: 12px;
  font-weight: 700;
}

.code-sample pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  color: #e8ecf8;
  background: transparent;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}

.code-sample code {
  color: inherit;
}

.field-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.field-list li {
  padding: 10px 12px;
  background: #f8f9fc;
  border: 1px solid var(--kn-border);
  border-radius: 10px;
}

.field-list code {
  color: #3355bd;
  font-weight: 750;
}

.required {
  color: #a23e4c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.optional {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sequence {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sequence .card {
  position: relative;
}

.sequence-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #ffffff;
  background: #4a6fe3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.notice-danger {
  border-color: rgba(190, 59, 78, 0.32);
  background: #fff5f6;
}

.notice-success {
  border-color: rgba(35, 147, 99, 0.28);
  background: #f0fbf6;
}

.status-production {
  color: #176b4d;
  background: #e8f8f1;
}

@media (max-width: 1100px) {
  .endpoint {
    grid-template-columns: 74px minmax(180px, 1fr) minmax(220px, 1.4fr);
  }

  .endpoint-scope {
    grid-column: 2 / -1;
  }

  .sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .endpoint {
    grid-template-columns: 1fr;
  }

  .endpoint-scope {
    grid-column: auto;
  }

  .sequence {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm 13mm 16mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  kanan-doc-navigation,
  .sidebar {
    display: none !important;
  }

  body {
    color: #171a22;
    background: #ffffff;
    font-size: 10pt;
  }

  .shell {
    display: block;
  }

  .main {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .hero,
  .section {
    padding: 16px 0;
    background: #ffffff;
    border: 0;
    box-shadow: none;
  }

  .hero {
    min-height: 245mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    break-after: page;
  }

  .hero h1 {
    max-width: 150mm;
    font-size: 30pt;
    line-height: 1.08;
  }

  .hero > p:not(.eyebrow) {
    max-width: 160mm;
    font-size: 12pt;
  }

  .quick-links {
    display: none;
  }

  .section + .section {
    border-top: 1px solid #dfe3ec;
  }

  h2,
  h3,
  figcaption,
  thead {
    break-after: avoid;
  }

  .card,
  .callout,
  .endpoint,
  .code-sample,
  .table-wrap,
  tr {
    break-inside: avoid;
  }

  .grid-2,
  .grid-3,
  .sequence {
    gap: 8px;
  }

  .endpoint {
    grid-template-columns: 58px minmax(160px, 0.9fr) minmax(210px, 1.5fr) minmax(110px, 0.7fr);
    padding: 8px 10px;
  }

  .endpoint-scope {
    grid-column: auto;
  }

  .code-sample {
    background: #121625;
    border-color: #252c43;
  }

  .code-sample pre {
    overflow: visible;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 8.2pt;
  }

  a {
    color: #315cc4;
    text-decoration: none;
  }

  .footer-links {
    margin-bottom: 0;
  }
}
