/*
 * The preview of a published asset (partials/asset_preview.html,
 * services/seo.py): on its own page, in the access-code card
 * (asset_preview.html, body class auth-preview), and - while the access code
 * is switched off - at the top of the archive page until the asset window
 * opens (index.html). Both pages are dark; text colours come from the page.
 */

.asset-preview {
    overflow-wrap: anywhere;
}

/* A fixed 16:10 frame: nothing moves when the picture arrives. */
.asset-preview-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0 0 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.asset-preview-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.asset-preview-kind {
    margin: 0 0 18px;
    font-size: 14px;
    opacity: 0.7;
}

.asset-preview-text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.asset-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asset-preview-tags li {
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
}

/* Its own page: a wider card, the code form between the title and the texts. */
.auth-preview .card {
    width: min(560px, 100%);
}

.asset-preview-gate {
    margin: 0 0 22px;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* The archive page: above the grid. */
.container > .asset-preview {
    max-width: 720px;
    margin: 8px auto 24px;
}
