/* HIPAA Auditors — official seal brand mark + watermark
   Load on LMS lesson/quiz/course surfaces. Keep opacity low so content stays readable. */

.ha-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    line-height: 1;
}

.ha-brand-mark img,
.ha-brand-mark__seal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
    display: block;
}

.ha-brand-mark--sm img,
.ha-brand-mark--sm .ha-brand-mark__seal {
    width: 28px;
    height: 28px;
}

.ha-brand-mark--lg img,
.ha-brand-mark--lg .ha-brand-mark__seal {
    width: 48px;
    height: 48px;
}

.ha-brand-mark__text {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.ha-brand-mark--on-dark img,
.ha-brand-mark--on-dark .ha-brand-mark__seal {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

/* Soft seal watermark — parent must be position:relative */
.ha-seal-watermark {
    position: relative;
}

.ha-seal-watermark::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: var(--ha-seal-url, url("/learn2.0/assets/images/logo-256.png"));
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: min(42%, 280px);
    opacity: 0.055;
}

.ha-seal-watermark > * {
    position: relative;
    z-index: 1;
}

.ha-seal-watermark--corner::before {
    background-position: right 18px bottom 18px;
    background-size: min(22%, 140px);
    opacity: 0.07;
}

.ha-seal-watermark--hero::before {
    background-position: right 24px center;
    background-size: min(28%, 200px);
    opacity: 0.14;
    filter: brightness(2);
}

/* Fixed corner watermark for players / PDF shell */
.ha-seal-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: contain;
    opacity: 0.12;
    pointer-events: none;
    z-index: 50;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
}

@media (max-width: 640px) {
    .ha-seal-float {
        width: 52px;
        height: 52px;
        right: 12px;
        bottom: 12px;
        opacity: 0.1;
    }
}

@media print {
    .ha-seal-float { display: none; }
}
