/* assets/ai-vcard.css */
/* vCard download in the AI contact section and shared editorial footer. */
.ai-contact-details .ai-contact-vcard {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    gap: 14px;
    align-items: center;
    min-height: 82px;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--theme-line, #cbd8e7);
}

.ai-contact-details .ai-contact-vcard-mark {
    display: grid;
    width: 50px;
    height: 50px;
    margin: 0;
    place-items: center;
    overflow: hidden;
    background: #11151a;
}

.ai-contact-details .ai-contact-vcard-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-contact-details .ai-contact-vcard-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
}

.ai-contact-details .ai-contact-vcard-copy em {
    color: var(--theme-accent, #285cc4);
    font: 650 .62rem/1.35 ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-style: normal;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ai-contact-details .ai-contact-vcard-copy strong {
    color: var(--theme-ink, #1e2c3b);
    font-size: clamp(.9rem, 1.25vw, 1.08rem);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.35;
}

.ai-contact-details .ai-contact-vcard > b {
    position: static;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--theme-line-strong, #b8c6d7);
    color: var(--theme-accent, #285cc4);
    font-size: 1rem;
    line-height: 1;
    transition: border-color 180ms ease, background 180ms ease;
}

.ai-contact-details .ai-contact-vcard:hover > b,
.ai-contact-details .ai-contact-vcard:focus-visible > b {
    border-color: var(--theme-accent, #285cc4);
    background: var(--theme-accent-soft, #edf2fb);
}

.rp-footer-contact .rp-footer-vcard {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    gap: 11px;
    align-items: center;
    width: 100%;
    min-height: 60px;
    margin-top: 10px;
    padding: 9px 10px 9px 9px;
    border: 0;
    background: color-mix(in srgb, var(--theme-surface, #fff) 46%, transparent);
    color: var(--theme-ink, #191c20);
    text-decoration: none;
    transition: background 180ms ease;
}

.rp-footer-vcard-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    background: #11151a;
}

.rp-footer-vcard-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-footer-vcard-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.rp-footer-vcard-copy strong {
    color: var(--theme-ink, #191c20);
    font-size: .78rem;
    font-weight: 650;
    line-height: 1.3;
}

.rp-footer-vcard-copy small {
    color: var(--theme-muted, #65707a);
    font-size: .64rem;
    line-height: 1.35;
}

.rp-footer-vcard-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--theme-line-strong, #b8c6d7);
    color: var(--theme-accent, #285cc4);
    font-size: .85rem;
    line-height: 1;
}

.rp-footer-contact .rp-footer-vcard:hover,
.rp-footer-contact .rp-footer-vcard:focus-visible {
    background: color-mix(in srgb, var(--theme-accent-soft, #edf2fb) 72%, var(--theme-surface, #fff));
}

@media (max-width: 700px) {
    .ai-contact-details .ai-contact-vcard {
        grid-template-columns: 46px minmax(0, 1fr) 32px;
        gap: 12px;
        min-height: 74px;
        padding-block: 13px !important;
    }

    .ai-contact-details .ai-contact-vcard-mark {
        width: 46px;
        height: 46px;
    }

    .ai-contact-details .ai-contact-vcard > b {
        width: 32px;
        height: 32px;
    }
}

/* assets/ai-model-marks.css */
/* Compact model marks shared by the homepage AI gallery and the AI subpage. */

/* Cards stay anchored when the pointer enters them. */
#ai-reels .ai-grid .video-card:hover,
#ai-reels .ai-grid .video-card:focus-within,
.ai-page .ai-project:hover,
.ai-page .ai-project:focus-within {
    transform: none !important;
    translate: none !important;
}

/* Homepage: replace verbose badges with a quiet, centered logo row. */
#ai-reels .ai-grid .video-card.has-models .model-badges {
    position: relative !important;
    inset: auto !important;
    z-index: 8 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .65rem !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 3.45rem !important;
    margin: .8rem 0 0 !important;
    padding: .65rem 0 0 !important;
    border-top: 1px solid rgba(95, 118, 145, .24) !important;
    background: transparent !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

#ai-reels .ai-grid .video-card .model-badges::before,
#ai-reels .ai-grid .video-card .model-badge + .model-badge::before {
    content: none !important;
    display: none !important;
}

#ai-reels .ai-grid .video-card .model-badge {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 2.75rem !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    cursor: help;
    overflow: visible !important;
}

#ai-reels .ai-grid .video-card .model-badge > span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#ai-reels .ai-grid .video-card .model-badge img {
    display: block !important;
    width: 2.15rem !important;
    height: 2.15rem !important;
    flex: 0 0 2.15rem !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
}

#ai-reels .ai-grid .video-card .model-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + .5rem);
    z-index: 30;
    width: max-content;
    max-width: min(15rem, 72vw);
    padding: .42rem .6rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .4rem;
    background: #182638;
    color: #fff;
    box-shadow: 0 .45rem 1.35rem rgba(6, 15, 27, .2);
    font: 600 .68rem/1.2 Manrope, Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, .25rem);
    transition: opacity .16s ease, transform .16s ease;
}

#ai-reels .ai-grid .video-card .model-badge:hover::after,
#ai-reels .ai-grid .video-card .model-badge:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

#ai-reels .ai-grid .video-card .model-badge:focus-visible {
    outline: 2px solid #285cc4 !important;
    outline-offset: 3px !important;
}

/* AI subpage: the same centered logo-only treatment. */
.ai-page .ai-project-models {
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    min-height: 3.75rem !important;
    padding-top: .65rem !important;
}

.ai-page .ai-project-models-label {
    display: none !important;
}

.ai-page .ai-project-models-list,
.ai-page .ai-project-models-list.is-multiple {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    align-content: center !important;
    gap: .65rem !important;
    width: 100% !important;
}

.ai-page .ai-project-models a {
    cursor: help;
}

.ai-page .ai-project-models a:hover .ai-logo,
.ai-page .ai-project-models a:focus-visible .ai-logo {
    transform: none !important;
}

.ai-page .ai-project-model-name {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (prefers-reduced-motion: reduce) {
    #ai-reels .ai-grid .video-card .model-badge::after {
        transition: none;
    }
}

/* Some legacy homepage rules are intentionally very specific. Keep this final
   accessibility override stronger so the marks can receive hover and focus. */
html body.light-theme #ai-reels .ai-grid .video-card.has-models .model-badges {
    z-index: 8 !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

html body.light-theme #ai-reels .ai-grid .video-card.has-models .model-badges::before,
html body.light-theme #ai-reels .ai-grid .video-card.has-models .model-badge + .model-badge::before {
    content: none !important;
    display: none !important;
}

html body.light-theme #ai-reels .ai-grid .video-card.has-models .model-badge {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    pointer-events: auto !important;
    font-size: 0 !important;
}

/* Model attribution was intentionally removed from project cards. */
#ai-reels .model-badges,
.ai-page .ai-project-models {
    display: none !important;
}
