/*
 * Host-only styles: the few class names ASP.NET Core itself renders, which no component owns.
 * Everything else is design tokens and scoped component CSS from Kagaku.UI.
 */

/* FocusOnNavigate moves focus to the heading; the ring would read as a selection, not a target. */
h1:focus {
    outline: none;
}

/* EditForm's field-level validation classes. */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--success);
}

.invalid {
    outline: 1px solid var(--danger);
}

.validation-message {
    color: var(--danger);
    font-size: var(--text-sm);
}

/* ErrorBoundary's fallback content. */
.blazor-error-boundary {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--danger-subtle);
    color: var(--text);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
}

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