/* 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/logo-glow.css */
/* Client logo hover: a single restrained state with no lift, clone, glow or pulse. */
html body.light-theme .client-logo,
html body.light-theme .client-logo:is(:hover, :focus-visible, :focus-within) {
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

html body.light-theme .client-logo::before,
html body.light-theme .client-logo::after,
html body.light-theme .rp-contour-leak {
    display: none !important;
    content: none !important;
    animation: none !important;
}

html body.light-theme .client-logo .rp-logo-filter-wrap {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transform: none !important;
    animation: none !important;
    filter: none !important;
}

html body.light-theme .client-logo img {
    transform: none !important;
    animation: none !important;
    transition: filter .2s ease, opacity .2s ease !important;
}

html body.light-theme .client-logo:is(:hover, :focus-visible, :focus-within) img {
    transform: none !important;
    animation: none !important;
    filter: grayscale(1) brightness(0) !important;
    opacity: 1 !important;
}

/* White client marks remain white in every dark-theme interaction state. */
html[data-theme="dark"] body.light-theme .client-logo.client-logo img,
html[data-theme="dark"] body.light-theme .client-logo.client-logo:is(:hover, :focus-visible, :focus-within) img {
    filter: grayscale(1) brightness(0) invert(1) !important;
    opacity: 1 !important;
}

/* Remove the former contour treatment from software, model and brand marks too. */
html body.light-theme :is(.ai-logo, .tool-item, .case-tool, .case-pipeline-list, .prompt-library-index-brand, .rp-brand) .rp-contour-leak {
    display: none !important;
    content: none !important;
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html body.light-theme .client-logo img {
        transition: none !important;
    }
}

/* A restrained diagonal reflection for every Rafał Pawlik mark. The helper
   element is positioned by logo-glow.js exactly over the source image, so the
   sweep never affects the adjacent label or changes the layout. */
:is(
    .rp-brand,
    .contact-vcard-mark,
    .rp-footer-vcard-mark,
    .ai-contact-vcard-mark
).rp-contour-host {
    position: relative;
    isolation: isolate;
}

html body :is(
    .rp-brand,
    .contact-vcard-mark,
    .rp-footer-vcard-mark,
    .ai-contact-vcard-mark
).rp-contour-host > .rp-contour-leak {
    position: absolute;
    z-index: 2;
    left: var(--rp-contour-left, 0);
    top: var(--rp-contour-top, 0);
    display: block !important;
    width: var(--rp-contour-width, 0);
    height: var(--rp-contour-height, 0);
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    content: normal !important;
    animation: none !important;
}

html body :is(
    .rp-brand,
    .contact-vcard-mark,
    .rp-footer-vcard-mark,
    .ai-contact-vcard-mark
) > .rp-contour-leak::before {
    position: absolute;
    inset: -115%;
    display: block;
    background: linear-gradient(
        135deg,
        transparent 34%,
        rgba(255, 255, 255, .015) 40%,
        rgba(255, 255, 255, .07) 45%,
        rgba(255, 255, 255, .27) 50%,
        rgba(219, 237, 255, .1) 56%,
        rgba(255, 255, 255, .02) 61%,
        transparent 67%
    );
    content: "";
    filter: blur(4px);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translate3d(-46%, 46%, 0);
    will-change: transform, opacity;
}

@media (hover: hover) and (pointer: fine) {
    html body :is(
        .rp-brand,
        .contact-vcard-mark,
        .rp-footer-vcard-mark,
        .ai-contact-vcard-mark
    ) > .rp-contour-source:hover ~ .rp-contour-leak::before {
        animation: rp-brand-light-sweep 1080ms cubic-bezier(.22, .72, .26, 1) both;
    }
}

html body :is(
    .rp-brand:focus-visible,
    .contact-vcard:focus-visible .contact-vcard-mark,
    .rp-footer-vcard:focus-visible .rp-footer-vcard-mark,
    .ai-contact-vcard:focus-visible .ai-contact-vcard-mark
) > .rp-contour-leak::before {
    animation: rp-brand-light-sweep 1080ms cubic-bezier(.22, .72, .26, 1) both;
}

@keyframes rp-brand-light-sweep {
    0% {
        opacity: 0;
        transform: translate3d(-46%, 46%, 0);
    }
    20% { opacity: .68; }
    76% { opacity: .48; }
    100% {
        opacity: 0;
        transform: translate3d(46%, -46%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html body :is(
        .rp-brand,
        .contact-vcard-mark,
        .rp-footer-vcard-mark,
        .ai-contact-vcard-mark
    ) > .rp-contour-leak::before {
        display: none;
        animation: none !important;
    }
}
