/* FocusOnNavigate moves focus to the page <h1> after every SPA navigation
   (App.razor). That programmatic focus must stay silent — but :focus (without
   :not(:focus-visible)) would ALSO swallow a genuine keyboard focus, which
   WCAG 2.4.7 forbids. Scoping to :not(:focus-visible) keeps the route-change
   focus invisible while letting a real Tab-to-heading still show the ring. */
h1:focus:not(:focus-visible) {
    outline: none;
}

/* Story 6.28 (A11) — global keyboard focus ring. MudBlazor controls rely on
   the browser default outline, which is faint on our surfaces; force a 2px
   Caribbean Current ring (Theme-Primary, UX-spec r1230/r1289). Only on
   :focus-visible so mouse/touch activation stays clean. Component-scoped
   :focus-visible rules (ZoneTimeline, InclusieveKalender, FotoGalerij) are
   more specific and keep winning where they exist. */
:focus-visible {
    outline: 2px solid #286e76;
    outline-offset: 2px;
}

/* On the teal AppBar (#286e76) a same-colour ring is invisible — switch to a
   white ring for any focusable control inside the app-bar. */
.mud-appbar :focus-visible {
    outline-color: #ffffff;
}

/* Story 6.28 (A7) — skip-link: first focusable element in each layout, hidden
   off-screen until it receives keyboard focus, then pinned top-left above the
   AppBar (z-index beats the fixed app-bar's 1100). */
.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: #286e76;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transform: translateY(-120%);
    transition: transform 0.15s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
}

/* Story 6.29 (B10) — actieve desktop-nav-sectie in /beheer: onderstreept + volle nadruk
   zodat de admin ziet waar hij staat. De mobiele drawer gebruikt MudBlazor's eigen
   .mud-nav-link-active en blijft ongemoeid. */
.admin-nav-active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        /* Story 6.28 (A22) — de dismiss is nu een echt <button>; strip het
           UA-default knop-chrome zodat hij er blijft uitzien als voorheen. */
        background: none;
        border: none;
        padding: 0;
        font: inherit;
        color: inherit;
    }

.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."
    }

/* MudBlazor's default alert palette uses pastel message text that fails
   WCAG AA 4.5:1 on its tinted backgrounds. Forcing #1a1a1a globally gives
   ~15:1 on every Severity color. Component-scoped ::deep overrides didn't
   reach the alert (scoped CSS gets attached to a page-level wrapper, but
   the axe runner saw an old cache or the build dropped the override).
   Global rule is the simplest deterministic fix. */
.mud-alert-message {
    color: #1a1a1a !important;
}

/* Story 6.25 (AC3) — compacte publieke AppBar op xs: hamburger + merknaam +
   inloggen + taalkiezer moeten samen op 375px passen zonder horizontale
   overflow. Global i.p.v. scoped: MudAppBar-internals hebben geen plain-HTML
   ancestor in MainLayout, dus ::deep bereikt ze niet (zelfde les als de
   .mud-alert-message-regel hierboven). Enkel de publieke schil (.public-appbar);
   /beheer heeft zijn eigen layout. */
@media (max-width: 599px) {
    .public-appbar .mud-toolbar {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Icon-knoppen (hamburger, taalkiezer, bel) compacter: 12px → 8px padding. */
    .public-appbar .mud-icon-button {
        padding: 8px;
    }

    .public-appbar .dk-brand {
        margin-right: 8px !important;
    }

    .public-appbar .dk-brand-text {
        font-size: 0.95rem;
    }

    /* "Inloggen" blijft een zichtbare actie: compacter, maar NIET wegkrimpen
       in de flexbox (anders clipt de label-tekst). */
    .public-appbar .mud-button-filled {
        padding: 6px 10px;
        min-width: 0;
        flex-shrink: 0;
    }

    .public-appbar .mud-button-filled .mud-button-label {
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    /* Ingelogd: de naam-chip mag niet de hele balk opeisen. */
    .public-appbar .dk-user-chip__label {
        max-width: 5.5rem;
    }
}

/* MudBreadcrumbs: het huidige (disabled) item krijgt --mud-palette-action-disabled
   (rgba(0,0,0,0.26)) ≈ 2:1 contrast — ver onder WCAG AA en axe faalde erop op
   /nl/ontdek/keuken. Grey-700 blijft duidelijk "muted" t.o.v. de klikbare items maar
   voldoet (≈5.8:1 op de crème Background). pointer-events:none van MudBlazor blijft gelden. */
.mud-breadcrumbs .mud-breadcrumb-item.mud-disabled > a {
    color: #616161;
}
