h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Leaflet map containment: keep map inside its card */
.leaflet-map-container {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

/* County name labels on map (visible at zoom >= 8) */
.county-label {
    background: none;
    border: none;
    box-shadow: none;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-shadow: 1px 1px 2px #fff, -1px -1px 2px #fff;
    padding: 0;
    white-space: nowrap;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Initial-load overlay — scoped to the parent content column via
   `position: absolute` so the filter sidebar stays uncovered and interactive.
   Markup-side, this is only rendered while _isInitialLoad is true. */
.dashboard-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-loading-content {
    text-align: center;
    padding: 2rem;
}

/* Filter-change "Updating dashboard…" dialog — overlays just the map column.
   Real modal: dimmed backdrop, centered card with shadow, blocks clicks on
   the map underneath so the user can't queue half a dozen filter changes
   while one is in flight. Filter panel itself stays uncovered because it's
   in a sibling column. */
.dashboard-update-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.dashboard-update-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 240px;
}

/* KPI cards — inverted color treatment. Solid OAG navbar navy (#002855)
   background with white text, matching the navbar above. Smaller padding
   and tighter typography than Bootstrap defaults so more KPI tiles fit
   per row without overwhelming the page. */
.kpi-card-ago {
    background-color: #002855;
    border: 1px solid #002855;
    color: #ffffff;
}

.kpi-card-ago .card-body {
    padding: 0.75rem 1rem;
}

.kpi-card-ago .card-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.kpi-card-ago .kpi-card-value,
.kpi-card-ago .kpi-card-spinner {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

/* ── Home landing page ─────────────────────────────────────────────────
   AG-provided landing design: a full-width seal banner, an intro line, three
   image navigation buttons, and the cautionary statement. Purely presentational
   (external stylesheet, no inline script) so it sits under the app CSP. */
.home-landing {
    background: linear-gradient(180deg, #e9f1fb 0%, #dbe8f7 100%);
    min-height: 100%;
    /* AG brand font for the landing copy. ITC Franklin Gothic Std is a licensed
       font — it renders for viewers who have it installed (and once the licensed
       webfont files are added to wwwroot/fonts + declared via @font-face, it will
       render for all public visitors). Fallbacks: Windows' bundled Franklin Gothic
       Medium, then Arial. */
    font-family: "ITC Franklin Gothic Std", "ITC Franklin Gothic",
        "Franklin Gothic Medium", "Franklin Gothic", Arial, sans-serif;
}

.home-banner {
    display: block;
    object-fit: cover;
}

.home-landing-body {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.home-landing-intro {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: #1f3b5c;
    line-height: 1.45;
    margin-bottom: 2rem;
}

/* Image nav buttons — capped size, centered, subtle hover lift so they read as
   clickable. */
.home-landing-buttons a {
    display: inline-block;
    text-decoration: none;
}

.home-landing-buttons img {
    max-width: 240px;
    width: 100%;
    border-radius: 0.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-landing-buttons a:hover img,
.home-landing-buttons a:focus-visible img {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(11, 31, 58, 0.25);
}

.home-landing-caution {
    color: #2b3a4d;
    font-size: 1rem;
    line-height: 1.6;
}

.home-landing-caution p:last-child {
    margin-bottom: 0;
}

/* Navbar active-page indicator — Blazor's NavLink auto-applies .active when
   the current URL matches the link's href. We style it as a bold white label
   with a gold underline (AGO seal accent) so users can see at a glance which
   page they're on. The .text-light utility on each NavLink would otherwise
   make active and inactive links visually identical. */
.navbar-dark .nav-link.active,
.navbar-dark .nav-link.active:hover,
.navbar-dark .nav-link.active:focus {
    color: #ffffff !important;
    font-weight: 600;
    border-bottom: 3px solid #FFE500;
    padding-bottom: calc(0.5rem - 3px);
}
