{{--
    Protera theme-builder section: horizontal divider (visual-only).

    Renders an <hr> whose look is driven by the saved `style` (line/dotted/
    gradient) + `spacing` (sm/md/lg). The scoped styles are emitted once per
    request via @once so multiple placed dividers don't duplicate the CSS.

    @var string $style
    @var string $spacing
--}}
@php
    $styleClass = in_array($style, ['line', 'dotted', 'gradient'], true) ? 'theme-divider--'.$style : 'theme-divider--line';
    $spacingClass = in_array($spacing, ['sm', 'md', 'lg'], true) ? 'theme-divider--'.$spacing : 'theme-divider--md';
@endphp
@once
    {{-- SystemFindings/task-15 — the rules moved to this theme's own
         Resources/assets/css/section-divider.css, byte for byte.

         Still a <link> emitted from HERE rather than an AssetRegistry
         declaration or an @import into web.css: the registry is keyed on route
         names, and no route name says "the operator placed this section on
         this page". Sections render through ThemePageBuilder::render(), so
         `@once` is the only construct that knows. Same position in the
         document as the <style> it replaces. --}}
    <link rel="stylesheet" href="{{ asset('vendor/va-themes/protera/build/assets/section-divider.css') }}">
@endonce
<hr class="theme-divider {{ $styleClass }} {{ $spacingClass }}">
