/* Base type, focus ring and Blazor's error bar, from the Boca Bio design system. Colors come from the Blazorise theme
   (Components/PortalTheme.cs); page and component styles live in each component's own .razor.css. */

:root {
    /* Rig Sans is Boca Bio's licensed face (not bundled); Outfit (Google Fonts) is the closest free match. */
    --boca-font: "Rig Sans", "RigSans-R", Outfit, system-ui, sans-serif;
    --boca-heading: #1084B9;  /* heading blue: 24px+ only */
    --boca-shadow-card: 0 0 14px 0 rgba(0, 0, 0, 0.25);
    /* gradient-brand (blue-deep to purple-logo): full-width promo bands only, with white text; never buttons or cards. */
    --boca-gradient-brand: linear-gradient(103deg, #0F7BAC 26.04%, #662782 90.91%);
}

/* Dense portal UI: 16/24 body in ink (the marketing site's 20-22px is too large here). Two weights only: 400 and 700. */
body {
    font-family: var(--boca-font);
    font-size: 16px;
    line-height: 24px;
}

/* Headings: H1 in heading blue (large enough for its 4.18:1); H2 and H3 in ink, since portal H3s are under 24px. */
h1, .h1 { font-size: 40px; line-height: 50px; font-weight: 700; letter-spacing: -0.16px; color: var(--boca-heading); }
h2, .h2 { font-size: 28px; line-height: 36px; font-weight: 700; }
h3, .h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
h1:focus { outline: none; }
/* Every button is a pill (radius-pill), small and large sizes included. Blazorise's generated theme styles load after
   this file and give .btn-sm and .btn-lg their own radius, hence !important. */
.btn, .btn-sm, .btn-lg { font-weight: 700; border-radius: 500px !important; }

/* Cards lift with shadow-card; buttons, inputs and menus stay flat. */
.card { box-shadow: var(--boca-shadow-card); border: 0; }
.btn, .dropdown-menu, .form-control, .form-select { box-shadow: none !important; }

/* Tables are square. */
.table, .table > :not(caption) > * > * { border-radius: 0; }

/* Focus: 2px solid action purple, offset 2px (9.7:1 on white). */
a:focus-visible, button:focus-visible, .btn:focus-visible, .form-control:focus, .form-select:focus,
.form-check-input:focus, .nav-link:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--bs-primary) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

/* Validation messages from the server-rendered sign-in forms. */
.validation-message { color: var(--bs-danger); font-size: 14px; }

/* Blazor's error bar: hidden until the framework shows it after a real error. */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: 12px 20px;
    background: var(--bs-light); color: var(--bs-danger); border-top: 2px solid var(--bs-danger); font-weight: 700; }
#blazor-error-ui .reload { color: inherit; margin-left: 8px; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 20px; top: 10px; }

.blazor-error-boundary { padding: 1rem; background: var(--bs-danger); color: var(--bs-white); }
.blazor-error-boundary::after { content: "An error has occurred."; }
