/* Blazor-only styles. Global theme = VrilWebHosting (site.css + hosting-premium.css + vril.notifications.premium.css). */

html, body {
    font-family: var(--vril-font-sans, var(--tblr-font-sans-serif, "Familjen Grotesk", system-ui, sans-serif));
}

/* Prevent document-level horizontal scroll from decorative overflow (nav shimmer, marquee, 100vw bleed). */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

.page,
.page-wrapper,
.page-body {
    max-width: 100%;
    overflow-x: clip;
}

/* Navbar keeps dropdowns; clip only horizontal bleed from gradient/shimmer pseudo-elements. */
header.navbar.vril-nav-gradient-surface {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

/* Marquee animation uses wide inline text + translateX; contain within the track. */
.messages-system-marquee,
.messages-system-marquee-track,
.chat-pin-marquee {
    overflow-x: clip;
    max-width: 100%;
}

.chat-pin-marquee-inner {
    will-change: transform;
}

/* Used throughout layout (MainLayout col, flex rows); allows flex/grid children to shrink below content width. */
.min-w-0 {
    min-width: 0 !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

h1:focus {
    outline: none;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbmsiPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    background: rgba(15, 23, 42, 0.95);
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
    color: #fff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 1rem;
}

#blazor-error-ui .reload {
    color: #93c5fd;
}

/* Company public page (/company/{slug}) — larger readable typography (scoped wrapper in CompanyPublic.razor) */
.vril-company-public-page .vril-page-title {
    font-size: clamp(1.85rem, 4.2vw, 2.5rem);
    line-height: 1.2;
}

.vril-company-public-page .vril-page-subtitle {
    font-size: 1.125rem;
}

.vril-company-public-page .vril-org-nav .btn {
    font-size: 1rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.vril-company-public-page .vril-org-nav .dropdown-item,
.vril-company-public-page .vril-org-nav .dropdown-item-text {
    font-size: 1rem;
}

.vril-company-public-page .card-body {
    font-size: 1.0625rem;
}

.vril-company-public-page .card-body .text-secondary.big,
.vril-company-public-page .card-body p,
.vril-company-public-page .card-body .btn-link,
.vril-company-public-page .card-body code {
    font-size: 1.0625rem;
}

.vril-company-public-page .card-body h2 {
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.vril-company-public-page .timeline-event-card h4 {
    font-size: 1.2rem;
}

.vril-company-public-page .timeline-event-card .text-secondary.small,
.vril-company-public-page .card-body .text-secondary.small {
    font-size: 0.98rem;
}

.vril-company-public-page .org-about-body {
    font-size: 1.0625rem;
}
