/* Phramea CMS — footer / panel attribution badge */
.phramea-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    transition: color .2s ease, opacity .2s ease;
}

.phramea-badge:hover {
    color: var(--phramea-primary, #0B8FA3);
    opacity: 1;
}

.phramea-badge-text {
    font-size: inherit;
    font-weight: 500;
    white-space: nowrap;
}

.phramea-badge-logo {
    display: block;
    height: var(--phramea-badge-height, 28px);
    width: auto;
    min-width: 108px;
    flex-shrink: 0;
    color: inherit;
    overflow: visible;
}

.phramea-badge--frontend {
    color: var(--footer-link, rgba(255, 255, 255, .78));
}

.phramea-badge--frontend .phramea-badge-logo {
    --phramea-badge-height: 30px;
    min-width: 118px;
}

.phramea-badge--frontend:hover {
    color: var(--footer-link-hover, var(--phramea-primary, #0B8FA3));
}

.phramea-badge--admin {
    padding: .35rem .65rem;
    border-radius: .45rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.phramea-badge--admin:hover {
    background: rgba(11, 143, 163, 0.06);
}

.phramea-badge--admin .phramea-badge-logo {
    --phramea-badge-height: 26px;
    min-width: 100px;
}

/* Light footer backgrounds (custom theme) */
footer[style*="background:#fff"],
footer[style*="background: #fff"],
footer[style*="background-color:#fff"],
footer[style*="background-color: #fff"],
body:not(.dark-theme) footer.footer-light {
    --footer-link: rgba(15, 23, 42, .72);
    --footer-link-hover: var(--phramea-primary, #0B8FA3);
}

@media (max-width: 575.98px) {
    .phramea-badge {
        justify-content: center;
    }

    .phramea-badge-logo {
        --phramea-badge-height: 24px;
        min-width: 92px;
    }
}
