{{-- Apply the stored theme before the first paint. TallStackUI's tallstackui_darkTheme() keeps it in localStorage ("dark-theme"), but only runs once Alpine starts, which would flash the light theme. Like the package, any value other than dark/light (true/false) means "system". wire:navigate replaces the attributes with the server's, which drops the class, so it is applied again on every page swap. --}} @include('partials.tallstackui-script') @livewireStyles @vite(['resources/css/app.css', 'resources/js/app.js']) {{ __('layout.skip_to_content') }} @auth {{-- Sticky from md up; on narrow screens (and 400 % zoom) the wrapped header would take too much of the view. --}}
{{ app(\App\Modules\Shared\Application\UseCases\CompanyDetailsStore::class)->menuName() }}
@else
@include('partials.locale-switch') @include('partials.theme-toggle')
@endauth
{{ $slot }}
{{-- While the header is sticky, scroll-padding-top keeps focused elements, anchors (#tasks) and the skip link target from scrolling under it (WCAG 2.4.11). The offset follows the header's height as it wraps or resizes, and is set again after wire:navigate swaps the page (data-navigate-once: the listeners are added only once). --}} @livewireScripts