/* =========================================================================
layout.js — shared header (nav) + footer across every page
Injects a single source of truth into
and
placeholders. Marks the current page link
with aria-current. No fetch / no FOUC risk — pure inline strings.
========================================================================= */
(function () {
'use strict';
// pages are relative to site root; each page passes its key via
const LINKS = [
{ key: 'home', href: 'index.html', label: 'Home' },
{ key: 'models', href: 'models.html', label: 'Models' },
{ key: 'pricing', href: 'pricing.html', label: 'Pricing' },
{ key: 'docs', href: 'docs.html', label: 'Docs' },
{ key: 'faq', href: 'faq.html', label: 'FAQ' },
{ key: 'dashboard', href: 'dashboard.html', label: 'Dashboard' },
];
const ENDPOINT = 'https://apiarium-labs.hf.space/v1/chat/completions';
const PROVIDERS = ['Claude', 'DeepSeek', 'MiniMax', 'MiMo', 'Gemini', 'GLM',
'Qwen', 'NVIDIA', 'Kimi', 'Grok', 'Ollama', 'OpenRouter'];
function navHtml(current) {
const items = LINKS.map(l =>
`