/* /widgets — embeddable-widgets gallery. Dark-theme page matching the
   cite-block / pricing visual language: translucent cards, thin borders. */

.widgets-page {
    max-width: 1060px;
    padding-bottom: 4rem;
}

.wg-hero {
    padding: 3rem 0 1.5rem;
}

.wg-hero h1 {
    font-weight: 700;
    letter-spacing: .01em;
}

.wg-sub {
    max-width: 720px;
    margin: .75rem auto 0;
    color: var(--text-muted, #9aa7b4);
}

.wg-chips {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.wg-chip {
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: var(--text-muted, #9aa7b4);
    white-space: nowrap;
}

.wg-chip .bi {
    margin-right: .3rem;
}

.wg-steps {
    margin: 1.5rem 0 .5rem;
}

.wg-step {
    height: 100%;
    padding: 1.1rem 1rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
}

.wg-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: .5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    font-weight: 700;
}

.wg-step p {
    margin-bottom: 0;
    color: var(--text-muted, #9aa7b4);
}

.wg-widget {
    margin-top: 3rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
}

.wg-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.wg-widget-title .bi {
    margin-right: .45rem;
    opacity: .8;
}

.wg-widget-desc {
    color: var(--text-muted, #9aa7b4);
    max-width: 780px;
}

.wg-demo-wide {
    margin: 1rem 0;
}

.wg-demo-pair {
    margin: .25rem 0 1rem;
}

.wg-embed-row {
    margin-top: .75rem;
}

.wg-snippet {
    background: rgba(0, 0, 0, .35);
    border-radius: 6px;
    padding: .6rem .8rem;
    margin-bottom: .5rem;
    font-size: .78rem;
    white-space: pre-wrap;
    word-break: break-all;
    color: #cdd6de;
}

.wg-note {
    color: var(--text-muted, #9aa7b4);
    margin-bottom: 0;
    margin-top: .75rem;
}

.wg-note code {
    font-size: .78rem;
}

/* Mock article context */
.wg-article {
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
}

.wg-article-inner {
    padding: 1.5rem 1.75rem 1.25rem;
}

.wg-article-kicker {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted, #9aa7b4);
    margin-bottom: .4rem;
}

.wg-article-h {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.wg-article-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.wg-article-text {
    flex: 1 1 auto;
    min-width: 0;
}

.wg-article-text p {
    color: #c6cfd7;
    line-height: 1.65;
}

.wg-article-fade {
    opacity: .45;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
    margin-bottom: 0;
}

.wg-article-widget {
    flex: 0 0 360px;
}

@media (max-width: 767.98px) {
    .wg-article-body {
        flex-direction: column;
    }

    .wg-article-widget {
        flex-basis: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.wg-cta {
    margin-top: 3rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.wg-btn {
    margin: .35rem .25rem 0;
    padding: .55rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    color: #0d1117;
    background: #e8edf2;
    border: 1px solid #e8edf2;
}

.wg-btn:hover {
    background: #ffffff;
    color: #0d1117;
}

.wg-btn-secondary {
    background: transparent;
    color: #e8edf2;
    border-color: rgba(255, 255, 255, .35);
}

.wg-btn-secondary:hover {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}
