/* ==========================================================================
   Vuln-X background watermark: "VULN-X" with a small, widely spaced "THRIVE"
   under it. ONE decorative element per page:  <div class="vx-watermark" aria-hidden="true"></div>
   - The words are drawn with CSS generated content, so the page's own text,
     search results and copy/paste are unaffected, and aria-hidden hides them
     from assistive tech as well.
   - position: fixed + z-index: -1 puts it on the page background, behind every
     in-flow block, card, form and table, without touching their positioning.
     Sidebar, modals, dropdowns, toasts and the cookie banner all use z-index >= 1.
   - Static: no animation, no JavaScript, no libraries.
   - Strength is one number: --vx-wm-alpha (about 4-7% reads as a watermark).
   ========================================================================== */

.vx-watermark {
    --vx-wm-alpha: 0.058;
    --vx-wm-accent: var(--primary, #38BDF8);
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    contain: layout paint;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    font-family: var(--font-ui, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* Engraved look: a pale, very low-alpha face, a dark edge on the upper-left (the cut
   shadowing the surface) and a thin cyan light catching the lower-right lip. */
.vx-watermark::before {
    content: 'VULN-X';
    font-size: clamp(3.4rem, 15.5vw, 17rem);
    letter-spacing: 0.06em;
    padding-left: 0.06em;                       /* balances the trailing letter-space so the word is truly centred */
    color: rgba(226, 240, 252, var(--vx-wm-alpha));
    text-shadow:
        -1px -2px 1px rgba(0, 0, 0, 0.62),
        1px 2px 0 rgba(125, 216, 252, 0.085);
}
@supports (color: color-mix(in srgb, red 10%, transparent)) {
    .vx-watermark::before {
        text-shadow:
            -1px -2px 1px rgba(0, 0, 0, 0.62),
            1px 2px 0 color-mix(in srgb, var(--vx-wm-accent) 17%, transparent);
    }
}

.vx-watermark::after {
    content: 'THRIVE';
    margin-top: clamp(0.5rem, 1.9vw, 1.75rem);
    font-size: clamp(0.85rem, 2.55vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.9em;
    padding-left: 0.9em;
    color: rgba(125, 216, 252, calc(var(--vx-wm-alpha) * 1.55));
    text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.55);
}

/* The landing page already has a strong 3D hero: keep the mark at the quiet end of the range there. */
body.landing-3d .vx-watermark { --vx-wm-alpha: 0.046; }

@media (max-width: 575.98px) {
    .vx-watermark { --vx-wm-alpha: 0.052; }
    body.landing-3d .vx-watermark { --vx-wm-alpha: 0.046; }
    .vx-watermark::after { letter-spacing: 0.7em; padding-left: 0.7em; }
}

/* Never in print (existing report/page branding is left alone), and not for forced-colour / high-contrast modes. */
@media print { .vx-watermark { display: none !important; } }
@media (forced-colors: active), (prefers-contrast: more) { .vx-watermark { display: none; } }

/* ---- retire the old text watermark (assets/css/style.css, "Text Watermark Layer") ----
   Its words were already transparent; keep them that way and stop the app pages from
   generating the hidden text at all. On login/terms pages the same pseudo-element also
   carries the soft cyan background glow, so only its text stays pinned transparent there. */
body.app-body::before { content: none; }
body.login-body::before { color: transparent !important; text-shadow: none !important; }
