.public-reference {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: 28px;
  padding-top: 132px;
  padding-bottom: 72px;
  min-height: 80vh;
}
.public-reference + .public-footer > .landing-section-inner,
.getapi-docs + .public-footer > .landing-section-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 28px;
}
.public-reference h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  margin: 16px 0 24px;
}
.reference-eyebrow {
  color: #afa4ed;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.reference-intro {
  max-width: 760px;
  font-size: 1.15rem;
  color: #c5c3d4;
  line-height: 1.8;
}
.reference-provenance {
  margin: 28px 0;
  padding: 18px 22px;
  background: #13111f;
  border: 1px solid #302c45;
  border-radius: 12px;
  color: #b8b5c8;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.public-reference a {
  color: #c4b7ff;
}
.public-reference section {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid #302c45;
  border-radius: 16px;
  background: #0c0a16;
}
.public-reference section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.public-reference section p,
.public-reference section li {
  line-height: 1.8;
  color: #c5c3d4;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.public-reference section ol {
  padding-left: 24px;
}
.public-reference code {
  color: #e4dcff;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}
.public-reference button,
.public-reference input,
.public-reference select {
  border: 1px solid #514966;
  color: #f4f0ff;
  background: #181322;
  padding: 12px;
  border-radius: 8px;
  font: inherit;
}
.public-reference button {
  cursor: pointer;
}
.public-reference :is(input, select, button):focus-visible {
  outline: 2px solid #c4b7ff;
  outline-offset: 3px;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 32px 0;
}
.catalog-filters label {
  display: grid;
  gap: 10px;
  flex: 1;
  min-width: 180px;
}
.catalog-filters input,
.catalog-filters select {
  width: 100%;
}
.catalog-filters output {
  padding: 12px 0;
  font-variant-numeric: tabular-nums;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.catalog-grid article {
  height: 100%;
  padding: 24px;
  border: 1px solid #302c45;
  border-radius: 16px;
  background: linear-gradient(145deg, #151024, #090912);
}
.catalog-grid h2 {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.catalog-grid p {
  color: #b8b5c8;
  line-height: 1.65;
  font-size: 0.88rem;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.catalog-grid article > a {
  display: inline-block;
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
/* Reserve filter geometry before enhancement to avoid shifting model cards. */
.catalog-filters[hidden] {
  display: flex !important;
  visibility: hidden;
}
@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .public-reference {
    padding-top: 110px;
  }
  .public-reference section {
    padding: 20px;
  }
}
.getapi-docs {
  --background: #05050d;
  --foreground: #f7f8ff;
  --card: #13111f;
  --primary: #c4b7ff;
  --muted: #181322;
  --muted-foreground: #b8b5c8;
  --border: #302c45;
  --ring: #c4b7ff;
  --destructive: #ff9797;
}

/*
Copyright (C) 2023-2026 QuantumNous

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

For commercial licensing, please contact support@quantumnous.com
*/
.getapi-docs {
  min-height: 100svh;
  background:
    radial-gradient(
      circle at 50% 0%,
      color-mix(in oklab, var(--primary) 12%, transparent),
      transparent 34rem
    ),
    var(--background);
  color: var(--foreground);
}

.getapi-docs .getapi-docs__hero {
  margin-inline: auto;
  max-width: 72rem;
  padding: 8rem 1rem 4rem;
  text-align: center;
}

.getapi-docs .getapi-docs__hero > p:first-child,
.getapi-docs .getapi-docs__guide section > p:first-child {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.getapi-docs .getapi-docs__hero h1 {
  margin: 0.75rem auto 1rem;
  max-width: 54rem;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.getapi-docs .getapi-docs__hero > p:last-child {
  margin-inline: auto;
  max-width: 44rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.75;
}

.getapi-docs .getapi-docs__video-tutorials {
  scroll-margin-top: 6rem;
  margin-inline: auto;
  max-width: 72rem;
  padding: 0 1rem 4rem;
}

.getapi-docs .getapi-docs__video-tutorials-header {
  margin: 0 auto 1.5rem;
  text-align: center;
}

.getapi-docs .getapi-docs__video-tutorials-header > p {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.getapi-docs .getapi-docs__video-tutorials-header h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.getapi-docs .getapi-docs__video-grid {
  display: grid;
  gap: 1.25rem;
}

.getapi-docs .getapi-docs__video-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in oklab, var(--card) 92%, transparent);
  padding: 1rem;
}

.getapi-docs .getapi-docs__video-card h3 {
  font-size: 1rem;
  font-weight: 650;
}

.getapi-docs .getapi-docs__layout {
  display: grid;
  gap: 2rem;
  margin-inline: auto;
  max-width: 72rem;
  padding: 0 1rem 6rem;
}

.getapi-docs .getapi-docs__toc nav {
  display: none;
}

.getapi-docs .getapi-docs__toc details {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  padding: 1rem;
}

.getapi-docs .getapi-docs__toc summary,
.getapi-docs .getapi-docs__toc nav > p {
  cursor: pointer;
  font-weight: 650;
}

.getapi-docs .getapi-docs__toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.getapi-docs .getapi-docs__toc a:hover {
  color: var(--foreground);
}

.getapi-docs .getapi-docs__content,
.getapi-docs .getapi-docs__guide {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.getapi-docs .getapi-docs__guide--deferred {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 80rem;
}

.getapi-docs .getapi-docs__guide section {
  scroll-margin-top: 6rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in oklab, var(--card) 92%, transparent);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.getapi-docs .getapi-docs__guide h2 {
  margin-block: 0.45rem 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.getapi-docs .getapi-docs__guide p,
.getapi-docs .getapi-docs__guide li {
  color: var(--muted-foreground);
  line-height: 1.75;
}

.getapi-docs .getapi-docs__guide a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.getapi-docs .getapi-docs__actions,
.getapi-docs .getapi-docs__guide section > ol {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.getapi-docs .getapi-docs__guide section > ol {
  flex-direction: column;
  gap: 0.4rem;
  list-style: decimal;
  padding-left: 1.25rem;
}

.getapi-docs .getapi-docs__guide code {
  display: inline-block;
  margin-block: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--muted);
  padding: 0.55rem 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

.getapi-docs .getapi-docs__copy-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.getapi-docs .getapi-docs__copy-value code {
  flex: 1 1 18rem;
}

.getapi-docs .getapi-docs__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  width: 100%;
}

.getapi-docs .getapi-docs__media video {
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--muted);
}

.getapi-docs .getapi-docs__media figcaption {
  width: 100%;
  border: 1px solid var(--destructive);
  border-radius: 0.65rem;
  color: var(--destructive);
  padding: 0.75rem;
  text-align: center;
}

.getapi-docs .getapi-docs__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
  margin: 1.5rem auto 0;
  width: 100%;
}

.getapi-docs .getapi-docs__image-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--muted);
  cursor: zoom-in;
  outline: none;
}

.getapi-docs .getapi-docs__image-trigger:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 35%, transparent);
}

.getapi-docs .getapi-docs__image-trigger img {
  display: block;
  max-height: 24rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (min-width: 64rem) {
  .getapi-docs .getapi-docs__video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .getapi-docs .getapi-docs__layout {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 4rem;
  }

  .getapi-docs .getapi-docs__toc nav {
    position: sticky;
    top: 6rem;
    display: block;
  }

  .getapi-docs .getapi-docs__toc details {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .getapi-docs *,
  .getapi-docs *::before,
  .getapi-docs *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
