.api-docs-hero {
  padding-block: 2.75rem 2rem;
}

.api-reference-section {
  border-top: 1px solid #dbe4ef;
  background: #f4f7fb;
}

.api-reference-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  width: min(1800px, 100%);
  min-height: 78vh;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 22px 70px rgb(15 34 58 / 8%);
}

.api-navigation {
  border-right: 1px solid #20324b;
  color: #eef5ff;
  background:
    radial-gradient(circle at 20% 0%, rgb(38 111 232 / 22%), transparent 26rem),
    #0b1729;
}

.api-navigation-head {
  position: sticky;
  top: 72px;
  z-index: 3;
  padding: 1.3rem 1rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(11 23 41 / 96%);
  backdrop-filter: blur(14px);
}

.api-navigation-head strong {
  display: block;
  margin-bottom: .8rem;
  font-size: .95rem;
  letter-spacing: .02em;
}

.api-search input {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: .7rem;
  padding: .72rem .8rem;
  color: #fff;
  font: inherit;
  background: rgb(255 255 255 / 7%);
}

.api-search input::placeholder {
  color: #90a2bb;
}

.api-search input:focus {
  outline: 3px solid rgb(64 139 255 / 25%);
  border-color: #62a0ff;
}

.api-navigation nav {
  padding: .75rem;
}

.api-group {
  margin: 0 0 1rem;
}

.api-group h2 {
  margin: 0;
  padding: .5rem .55rem;
  color: #89a1bf;
  font-size: .71rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.api-operation-link {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
  gap: .6rem;
  align-items: start;
  width: 100%;
  margin: .12rem 0;
  padding: .62rem .58rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  color: #dce8f7;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.api-operation-link:hover,
.api-operation-link[aria-current="true"] {
  border-color: rgb(116 168 255 / 28%);
  background: rgb(47 111 216 / 18%);
  transform: translateX(2px);
}

.api-operation-link strong {
  display: block;
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.api-operation-link small {
  display: block;
  overflow: hidden;
  margin-top: .2rem;
  color: #8fa3bd;
  font: .69rem/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-method {
  display: inline-flex;
  justify-content: center;
  min-width: 3.2rem;
  border-radius: .35rem;
  padding: .19rem .38rem;
  color: #fff;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .045em;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
}

.api-method.get { background: #087ea4; }
.api-method.post { background: #16803c; }
.api-method.put { background: #a05a00; }
.api-method.patch { background: #7c3aed; }
.api-method.delete { background: #c02632; }

.api-detail {
  min-width: 0;
  padding: 0;
  background: #fff;
}

.api-detail:focus {
  outline: none;
}

.api-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 440px);
  min-height: 100%;
}

.api-detail-content {
  min-width: 0;
  padding: clamp(2rem, 4vw, 4.25rem);
}

.api-breadcrumb {
  margin: 0 0 .7rem;
  color: #6b7b91;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.api-breadcrumb span {
  margin-inline: .25rem;
  color: #a5b2c3;
}

.api-detail h1 {
  max-width: 22ch;
  margin: 0 0 1rem;
  color: #0b1d33;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.api-detail h2 {
  color: #10233d;
}

.api-detail p {
  max-width: 78ch;
  color: #52647a;
  line-height: 1.68;
}

.api-route {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1.2rem 0 2.2rem;
  padding: .78rem .85rem;
  border: 1px solid #d9e3ef;
  border-radius: .75rem;
  background: #f7f9fc;
}

.api-route code {
  overflow-wrap: anywhere;
  color: #152b47;
  font-size: .9rem;
}

.api-doc-section {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  gap: 1rem;
  margin: 1.1rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid #e3eaf3;
}

.api-doc-section + .api-doc-section {
  margin-top: -1.1rem;
}

.api-section-number {
  padding-top: .22rem;
  color: #2373df;
  font: 800 .75rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.api-doc-section h2 {
  margin: 0 0 .38rem;
  font-size: 1.12rem;
}

.api-doc-section p {
  margin: 0;
}

.api-auth,
.api-furs-rule {
  display: flex;
  gap: .9rem;
  margin: 1.25rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid #c9dcf7;
  border-radius: .8rem;
  background: #f0f6ff;
}

.api-auth-icon {
  display: grid;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: #246ed2;
}

.api-auth p,
.api-furs-rule p {
  margin: .18rem 0 0;
  color: #334e70;
}

.api-doc-block {
  margin: 2.35rem 0;
}

.api-doc-block > h2 {
  margin: 0 0 .6rem;
  font-size: 1.35rem;
  letter-spacing: -.015em;
}

.api-doc-block > p {
  margin: 0 0 1rem;
}

.api-doc-block > .api-overline {
  margin-bottom: .25rem;
  color: #2871d4;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.api-table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe4ef;
  border-radius: .8rem;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}

.api-table th,
.api-table td {
  padding: .72rem .78rem;
  border-bottom: 1px solid #e4ebf3;
  vertical-align: top;
  text-align: left;
}

.api-table th {
  color: #5f7085;
  font-size: .69rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f7f9fc;
}

.api-table tr:last-child td {
  border-bottom: 0;
}

.api-table code,
.api-doc-section code,
.api-auth code {
  color: #175cae;
  font-size: .88em;
  overflow-wrap: anywhere;
}

.api-required {
  display: inline-block;
  margin-left: .25rem;
  border-radius: 999px;
  padding: .08rem .32rem;
  color: #a61b1b;
  font-size: .62rem;
  font-weight: 800;
  background: #fff0f0;
}

.api-none,
.api-loading,
.api-empty {
  padding: 1rem;
  color: #72839a;
}

.api-response-card {
  margin: .8rem 0;
  border: 1px solid #dce5ef;
  border-left-width: 4px;
  border-radius: .8rem;
  overflow: hidden;
  background: #fff;
}

.api-response-card.success { border-left-color: #1b8d4b; }
.api-response-card.error { border-left-color: #d14747; }

.api-response-title {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .85rem 1rem 0;
  color: #203650;
  font-size: .87rem;
}

.api-status {
  flex: 0 0 auto;
  border-radius: .35rem;
  padding: .18rem .42rem;
  color: #fff;
  font: 800 .72rem/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #1b8d4b;
}

.api-response-card.error .api-status {
  background: #c13c3c;
}

.api-response-card .api-code {
  margin: .8rem;
}

.api-code {
  overflow: hidden;
  margin: .8rem 0;
  border: 1px solid #223a59;
  border-radius: .75rem;
  color: #dbe8f8;
  background: #0a1628;
  box-shadow: 0 12px 30px rgb(0 12 30 / 14%);
}

.api-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.4rem;
  padding: .45rem .65rem .45rem .85rem;
  border-bottom: 1px solid #223a59;
  background: #101f35;
}

.api-code-label {
  color: #93a8c4;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.api-code button {
  border: 1px solid #38506f;
  border-radius: .4rem;
  padding: .28rem .48rem;
  color: #d7e5f5;
  font: inherit;
  font-size: .69rem;
  background: #172a44;
  cursor: pointer;
}

.api-code button:hover {
  border-color: #6e94c5;
  background: #203b60;
}

.api-code pre {
  max-height: 29rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  font: .78rem/1.58 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre;
}

.api-example-rail {
  min-width: 0;
  color: #e4edf9;
  background:
    radial-gradient(circle at 100% 0%, rgb(40 111 222 / 24%), transparent 28rem),
    #0d1b2f;
}

.api-example-sticky {
  position: sticky;
  top: 72px;
  padding: clamp(2rem, 3vw, 3.2rem) clamp(1.1rem, 2.2vw, 2rem);
}

.api-example-kicker {
  margin: 0 0 .3rem;
  color: #77aaf6 !important;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.api-example-rail h2 {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: 1.65rem;
}

.api-furs-rule {
  display: block;
  border-color: #bfe5d0;
  background: #f0fbf5;
}

.api-furs-rule p {
  color: #295840;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1400px) {
  .api-reference-shell { grid-template-columns: 290px minmax(0, 1fr); }
  .api-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .api-example-sticky { position: static; }
}

@media (max-width: 850px) {
  .api-docs-hero { padding-block: 2rem 1.35rem; }
  .api-reference-shell { grid-template-columns: 1fr; }
  .api-navigation { border-right: 0; border-bottom: 1px solid #20324b; }
  .api-navigation-head { position: static; }
  .api-navigation nav { max-height: 24rem; overflow: auto; }
  .api-detail-content { padding: 1.7rem 1rem 2.5rem; }
  .api-detail h1 { font-size: 2rem; }
  .api-doc-section { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .api-route { align-items: flex-start; }
}
