<header class="npc-dossier-header faction-dossier-header" style="--npc-accent: {{profile.accent}};">
    <div class="npc-dossier-portrait faction-dossier-emblem">{{#if profile.imageSrc}}<img src="{{profile.imageSrc}}" alt="{{profile.name}}">{{else}}<i class="fas fa-map-location-dot"></i>{{/if}}</div>
    <div class="npc-dossier-title"><h2>{{profile.name}}</h2><p>{{profile.subtitle}}</p>
        {{#if profile.showTabs}}<nav class="npc-dossier-tabs" aria-label="Location dossier tabs"><button type="button" class="{{#if profile.tabs.isProfileTab}}active{{/if}}" data-action="setLocationDossierTab" data-tab="profile">Profile</button><button type="button" class="{{#if profile.tabs.isJournalTab}}active{{/if}}" data-action="setLocationDossierTab" data-tab="journal">Journal</button>
            {{#if profile.hasChronicle}}<button type="button" class="npc-dossier-tab-icon {{#if profile.tabs.isChronicleTab}}active{{/if}}" data-action="setLocationDossierTab" data-tab="chronicle" title="Chronicle" aria-label="Chronicle"><i class="fas fa-scroll"></i></button>{{/if}}</nav>{{/if}}
    </div>
    {{#if profile.showActions}}<button type="button" class="npc-dossier-action" data-action="openLocationActions" title="Location actions" aria-label="Location actions"><i class="fas fa-ellipsis"></i></button>{{/if}}
</header>
{{#if profile.showBody}}<section class="npc-dossier-section">
    {{#if profile.profileRows.length}}<h3 class="npc-profile-section-heading npc-profile-information"><span><i class="fas fa-feather-pointed"></i> Information</span></h3><div class="npc-dossier-custom-row location-dossier-profile-rows">{{#each profile.profileRows}}<span class="{{#if multiline}}is-multiline{{/if}}"><em>{{label}}</em><strong>{{value}}</strong></span>{{/each}}</div>{{/if}}
    {{#if profile.hasCurrentThread}}
    <section class="npc-profile-current-thread">
        <h3 class="npc-profile-section-heading is-thread"><span><i class="fas fa-wand-sparkles"></i> Current Thread</span>{{#if profile.canRerollCurrentThread}}<button type="button" class="faction-current-thread-reroll" data-action="rerollLocationCurrentThread" title="Reroll Current Thread" aria-label="Reroll Current Thread"><i class="fas fa-dice"></i></button>{{/if}}</h3>
        <div class="faction-current-thread-grid">{{#each profile.currentThread}}<article><span><i class="{{icon}}"></i> {{label}}</span><strong>{{value}}</strong></article>{{/each}}</div>
    </section>
    {{/if}}
    {{#unless profile.profileRows.length}}{{#unless profile.hasCurrentThread}}<div class="npc-dossier-empty compact">{{profile.emptyLabel}}</div>{{/unless}}{{/unless}}
</section>{{/if}}
