# Main

- File ID: file:jg997z:main-razor
- Path: NexusReader.Maui/Main.razor
- Role: program-entry
- Layer: frontend

## Purpose

Root Blazor component for the MAUI app that wires routing, authorization gating, default layout, focus-on-navigation behavior and a not-found fallback UI.

## Key Details

Defines the app root Router (line 4) with an AuthorizeRouteView that uses MainHubLayout (line 6). NotAuthorized shows RedirectToLogin (line 8). FocusOnNavigate sets focus to <h1> after navigation (line 11). NotFound renders a friendly message inside the MainHubLayout (lines 13-16).

## Symbols

- No extracted symbols.

## Dependencies

- No resolved dependencies.

## Calls

- No resolved calls.

## Unresolved References

- dependency-target: NexusReader.UI.Shared
- dependency-target: Microsoft.AspNetCore.Components.Routing

## Coverage

- Symbols: 0
- Executable symbols: 0
- Executable symbols with control flow: 0
- Grounded edges: 0
- Unresolved references: 2
- Control-flow fragments: 0
- Unresolved jumps: 0
- Unsupported constructs: 0
- Control-flow coverage: 100%
- Required diagrams: 1
- Generated diagrams: 1

## Diagrams

### Main Neighborhood

```mermaid
flowchart LR
    file_jg997z_main_razor("Main")
```

## Diagram Validation

- Status: pass
