/* Docs + use cases — shadcn-inspired (zinc dark) */

.docs-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    padding-top: 5.5rem;
    padding-bottom: 0;
}

.docs-page > main {
    flex: 1 1 auto;
    width: 100%;
}

.docs-page > .site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ── Hero ── */
.docs-hero,
.docs-endpoint-head,
.docs-ep-hero {
    margin-top: clamp(6rem, 15vh, 12rem);
    margin-bottom: clamp(7.5rem, 18vh, 13.5rem);
}

.docs-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.25rem;
    border-radius: 9999px;
    border: 1px solid hsl(0 0% 100% / 0.1);
    background: hsl(0 0% 100% / 0.04);
    font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(0 0% 63%);
}

.docs-hero__title {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: hsl(0 0% 98%);
    line-height: 1.1;
}

.docs-hero__lead {
    margin-top: 1.25rem;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    line-height: 1.6;
    color: hsl(0 0% 63%);
    max-width: 48rem;
}

.docs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* ── Buttons (shadcn) ── */
.docs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.docs-btn--primary {
    background: hsl(0 0% 98%);
    color: hsl(0 0% 9%);
}

.docs-btn--primary:hover {
    background: hsl(0 0% 90%);
}

.docs-btn--ghost {
    border-color: hsl(0 0% 100% / 0.12);
    color: hsl(0 0% 98%);
    background: transparent;
}

.docs-btn--ghost:hover {
    background: hsl(0 0% 100% / 0.06);
}

.docs-index__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: clamp(3rem, 6vh, 5rem);
}

@media (min-width: 640px) {
    .docs-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .docs-index__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.docs-index__grid .api-endpoints__cell {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: #000;
    min-height: 9.5rem;
}

.docs-index__separator {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: clamp(5rem, 10vh, 7.5rem) 0 clamp(2.25rem, 4.5vh, 3.25rem);
}

.docs-index__separator--first {
    padding-top: 0;
}

.docs-index__separator-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: hsl(0 0% 98%);
}

.docs-index__separator-count {
    font-size: clamp(0.875rem, 1.15vw, 0.9375rem);
    font-weight: 500;
    color: hsl(0 0% 55%);
    white-space: nowrap;
}

/* ── Cards (shadcn Card) ── */
.docs-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    height: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(0 0% 4%);
    box-shadow: 0 1px 2px hsl(0 0% 0% / 0.35);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.docs-card:hover {
    border-color: hsl(0 0% 100% / 0.14);
    background: hsl(0 0% 6%);
    box-shadow: 0 4px 12px hsl(0 0% 0% / 0.35);
}

.docs-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    flex-shrink: 0;
}

.docs-card__icon--embed { background: hsl(217 91% 60% / 0.12); color: hsl(217 91% 75%); }
.docs-card__icon--aggregate { background: hsl(262 83% 58% / 0.12); color: hsl(262 83% 75%); }
.docs-card__icon--sync { background: hsl(142 71% 45% / 0.12); color: hsl(142 71% 65%); }
.docs-card__icon--widget { background: hsl(32 95% 44% / 0.12); color: hsl(32 95% 60%); }
.docs-card__icon--import { background: hsl(199 89% 48% / 0.12); color: hsl(199 89% 65%); }
.docs-card__icon--guide { background: hsl(0 0% 100% / 0.06); color: hsl(0 0% 70%); }

.docs-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1 1 auto;
}

.docs-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: hsl(0 0% 98%);
    letter-spacing: -0.01em;
}

.docs-card__desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: hsl(0 0% 55%);
}

.docs-card__footer {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(0 0% 100% / 0.06);
    font-size: 0.8125rem;
    font-weight: 500;
    color: hsl(0 0% 63%);
    transition: color 0.15s ease;
}

.docs-card:hover .docs-card__footer {
    color: hsl(0 0% 98%);
}

/* ── Badge (endpoint detail) ── */
.docs-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.docs-badge--method {
    background: hsl(142 76% 36% / 0.15);
    color: hsl(142 69% 58%);
    border-color: hsl(142 76% 36% / 0.25);
}

/* ── Endpoint detail page ── */
.docs-ep-hero--compact {
    margin-top: clamp(3rem, 8vh, 6rem);
    margin-bottom: clamp(2rem, 5vh, 3rem);
}

.docs-ep-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: hsl(0 0% 55%);
    text-decoration: none;
    transition: color 0.15s ease;
}

.docs-ep-back:hover {
    color: hsl(0 0% 98%);
}

.docs-ep-lead {
    margin-top: 1rem;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.55;
    color: hsl(0 0% 70%);
    max-width: 42rem;
}

.docs-ep-request {
    margin-bottom: clamp(2rem, 4vh, 3rem);
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(0 0% 100% / 0.1);
    background: hsl(0 0% 5%);
}

.docs-ep-request__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.docs-ep-request__method {
    flex-shrink: 0;
}

.docs-ep-request__url {
    flex: 1 1 12rem;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    line-height: 1.5;
    color: hsl(0 0% 88%);
    word-break: break-all;
}

.docs-ep-request__auth,
.docs-ep-request__note {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: hsl(0 0% 55%);
}

.docs-ep-request__note {
    color: hsl(0 0% 70%);
}

.docs-ep-copy {
    flex-shrink: 0;
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(0 0% 100% / 0.12);
    background: hsl(0 0% 100% / 0.04);
    color: hsl(0 0% 90%);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.docs-ep-copy:hover {
    background: hsl(0 0% 100% / 0.08);
    border-color: hsl(0 0% 100% / 0.18);
}

.docs-ep-copy.is-copied {
    border-color: hsl(142 76% 36% / 0.4);
    color: hsl(142 69% 58%);
}

.docs-ep-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .docs-ep-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        gap: 2rem;
    }

    .docs-ep-aside {
        position: sticky;
        top: 6rem;
    }
}

.docs-ep-panel {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(0 0% 4%);
}

.docs-ep-main .docs-ep-panel + .docs-ep-panel {
    margin-top: 1rem;
}

.docs-ep-aside .docs-ep-panel + .docs-ep-panel {
    margin-top: 1rem;
}

.docs-ep-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.docs-ep-panel__title {
    margin: 0;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: hsl(0 0% 98%);
}

.docs-ep-panel__text,
.docs-ep-panel__hint {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: hsl(0 0% 63%);
}

.docs-ep-panel__hint {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.docs-ep-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 1rem;
    line-height: 1.65;
    color: hsl(0 0% 63%);
}

.docs-ep-list li + li {
    margin-top: 0.5rem;
}

.docs-ep-params {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.docs-ep-param {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    align-items: baseline;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: hsl(0 0% 100% / 0.03);
}

.docs-ep-param__name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    color: hsl(0 0% 90%);
}

.docs-ep-param__hint {
    font-size: 0.9375rem;
    color: hsl(0 0% 55%);
}

.docs-ep-panel--code .docs-tabs__list {
    width: 100%;
}

.docs-ep-code-wrap {
    margin-top: 0;
}

/* ── Sections ── */
.docs-section {
    margin-bottom: 2.5rem;
}

.docs-section__title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: hsl(0 0% 98%);
    margin-bottom: 0.75rem;
}

.docs-section__body {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: hsl(0 0% 63%);
}

.docs-inline-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125em;
    color: hsl(0 0% 85%);
    background: hsl(0 0% 100% / 0.06);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    border: 1px solid hsl(0 0% 100% / 0.06);
}

.docs-code-block {
    margin: 0;
    padding: 1rem 1.125rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(0 0% 3%);
    overflow-x: auto;
}

.docs-code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: hsl(0 0% 72%);
    white-space: pre;
}

/* ── Tabs (shadcn) ── */
.docs-tabs__list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(0 0% 6%);
}

.docs-tabs__btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: hsl(0 0% 55%);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.docs-tabs__btn:hover {
    color: hsl(0 0% 90%);
}

.docs-tabs__btn--active {
    background: hsl(0 0% 12%);
    color: hsl(0 0% 98%);
    box-shadow: 0 1px 2px hsl(0 0% 0% / 0.3);
}

.docs-tabs__panel[hidden] {
    display: none;
}

/* ── Article body ── */
.docs-article {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(0 0% 100% / 0.08);
    background: hsl(0 0% 4%);
}

.docs-article h2 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(0 0% 98%);
    margin: 1.5rem 0 0.5rem;
}

.docs-article h2:first-child {
    margin-top: 0;
}

.docs-article p,
.docs-article li {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: hsl(0 0% 63%);
}

.docs-article ul {
    margin: 0 0 1rem 1.25rem;
}

/* ── Crosslinks ── */
.docs-crosslinks {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid hsl(0 0% 100% / 0.08);
}

.docs-crosslinks__head {
    margin-bottom: 1.25rem;
}

.docs-crosslinks__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(0 0% 98%);
}

.docs-crosslinks__lead {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: hsl(0 0% 55%);
}

.docs-empty {
    color: hsl(0 0% 55%);
    font-size: 0.9375rem;
}

.site-nav__link--active {
    color: hsl(0 0% 98%);
}

.endpoint-cell__link {
    text-decoration: none;
    color: inherit;
}

.endpoint-cell__link:hover .endpoint-cell__name {
    color: #fff;
}

.endpoint-cell__docs {
    font-size: 0.8125rem;
    color: #7a7a7a;
    margin-top: 0.35rem;
}
