diff --git a/website/.gitignore b/website/.gitignore
new file mode 100644
index 00000000..96a70eee
--- /dev/null
+++ b/website/.gitignore
@@ -0,0 +1,3 @@
+/public/
+/resources/
+.hugo_build.lock
diff --git a/website/assets/css/custom.css b/website/assets/css/custom.css
new file mode 100644
index 00000000..4062d916
--- /dev/null
+++ b/website/assets/css/custom.css
@@ -0,0 +1,210 @@
+/* DOSSIER — Custom-CSS-Einstiegspunkt des Hextra-Themes (wird von
+ layouts/_partials/head.html automatisch nach main.css eingebunden).
+
+ Alles hier ist bewusst unter eigenen Klassen (.dossier-*) und einem
+ eigenen Token-Namespace (--do-*) gekapselt, statt html/body global zu
+ überschreiben — das Theme bringt sein eigenes, ausgereiftes Hell/Dunkel-
+ System mit (Tailwind, .dark auf ), das wir für Suche, Docs-Sidebar,
+ Code-Blöcke etc. unverändert weiterverwenden wollen.
+
+ Wo wir bewusst "wie das eigentliche Programm" aussehen wollen — Startseite,
+ Wortmarke oben links —, holen wir uns die echten Farben/den echten Font aus
+ src/styles.css (App-Hell-Theme) in diesen eigenen Namespace. */
+
+@font-face {
+ font-family: "archivo";
+ font-style: normal;
+ font-weight: 100 900;
+ font-display: swap;
+ src: url("/fonts/archivo.woff2") format("woff2");
+}
+
+.dossier-home,
+.dossier-logo {
+ --do-font: "archivo", system-ui, sans-serif;
+ --do-font-mono: ui-monospace, "SF Mono", Menlo, monospace;
+
+ /* 1:1 aus src/styles.css :root (App-Hell-Theme). Akzent bewusst NEUTRAL —
+ kein Petrol-Grün/Teal/Gelb: das war eine veraltete Annahme, die App hat
+ seit einer Nutzer-Vorgabe nur noch diesen einen neutralen Akzent. */
+ --do-panel: #e0dbd4;
+ --do-panel-2: #d4cfc8;
+ --do-field: #f5f2ec;
+ --do-ink: #1a1a18;
+ --do-dim: #555550;
+ --do-muted: #8a8580;
+ --do-border: #c8c2ba;
+ --do-accent: #4a453e;
+ --do-accent-light: #6b655c;
+ --do-accent-dim: #f5f2ec;
+ --do-accent-border: rgba(58, 53, 46, 0.2);
+ /* --input in der App — Sekundär-Button-Fläche (s. .imp-btn in styles.css). */
+ --do-input: #ece8e2;
+
+ --do-radius: 3px;
+}
+
+html.dark .dossier-home,
+html.dark .dossier-logo {
+ /* 1:1 aus src/styles.css :root[data-theme="dark"]. */
+ --do-panel: #1d1d1d;
+ --do-panel-2: #262626;
+ --do-field: #2a2a2a;
+ --do-ink: #ededed;
+ --do-dim: #a8a8a8;
+ --do-muted: #6e6e6e;
+ --do-border: #383838;
+ --do-accent: #4d4d4d;
+ --do-accent-light: #5e5e5e;
+ --do-accent-dim: rgba(255, 255, 255, 0.07);
+ --do-accent-border: rgba(255, 255, 255, 0.22);
+ --do-input: #0a0a0a;
+}
+
+/* ---- Wortmarke oben links — identisch zur App: "dossier" klein, Punkt im
+ neutralen App-Akzent. Ersetzt den generischen Hextra-Seitentitel. ---- */
+.dossier-logo {
+ display: inline-flex;
+ align-items: baseline;
+ font-family: var(--do-font);
+ font-weight: 800;
+ font-size: 1.05rem;
+ letter-spacing: -0.01em;
+ text-transform: lowercase;
+ color: var(--do-ink);
+ white-space: nowrap;
+}
+.dossier-logo__dot {
+ color: var(--do-accent);
+}
+a:hover > .dossier-logo .dossier-logo__dot {
+ filter: brightness(1.25);
+}
+
+/* ---- "bald"-Badge im Hauptmenü (Forum-Link, hugo.toml). ---- */
+.navbar-badge {
+ display: inline-block;
+ font-size: .62em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
+ color: #fff; background: #9a948a; padding: .1em .45em; border-radius: 999px;
+ margin-left: .4em; vertical-align: middle;
+}
+html.dark .navbar-badge { background: #6b665c; }
+
+/* ==================================================================
+ Startseite — eigenes Layout (layouts/index.html), eingehängt in
+ Hextra's Standard-Navbar/Footer/Content-Breite.
+ ================================================================== */
+.dossier-home {
+ font-family: var(--do-font);
+ color: var(--do-ink);
+ max-width: 56rem;
+ margin-inline: auto;
+ padding-block: 0.5rem 2rem;
+}
+.dossier-home h1,
+.dossier-home h2 { font-family: var(--do-font); margin: 0; text-wrap: balance; }
+.dossier-home p { margin: 0; }
+.dossier-home a { text-decoration: none; }
+
+.dh-section { padding-block: clamp(2.2rem, 5vw, 3.4rem); }
+.dh-section + .dh-section { border-top: 1px dashed var(--do-border); }
+
+.dh-label {
+ display: flex; align-items: center; gap: .55em;
+ font-size: .72rem; font-weight: 700; letter-spacing: .14em;
+ text-transform: uppercase; color: var(--do-accent); margin-bottom: 1rem;
+}
+.dh-label::before {
+ content: ""; width: 6px; height: 6px; flex: none;
+ background: var(--do-accent); border-radius: 1px;
+}
+
+/* ---- Hero ---- */
+.dh-hero { padding-block: clamp(1.6rem, 5vw, 2.6rem) clamp(2.2rem, 5vw, 3.2rem); }
+.dh-hero .dh-hook {
+ font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.08;
+ letter-spacing: -.02em; max-width: 24ch;
+}
+.dh-hero .dh-hook .accent { color: var(--do-accent); }
+.dh-hero .dh-lead { font-size: clamp(1.02rem, 1.6vw, 1.14rem); color: var(--do-dim); max-width: 38rem; margin-top: 1.3rem; }
+.dh-hero .dh-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
+.dh-hero .dh-meta { font-size: .85rem; color: var(--do-muted); margin-top: 1.8rem; }
+
+/* Wie .imp-btn in der App (Import-Dialog, src/styles.css) — Pille statt
+ eckigem Button, das ist der tatsächliche Button-Stil des Programms. */
+.dh-btn {
+ display: inline-flex; align-items: center; gap: .4em;
+ font-family: var(--do-font);
+ font-size: .85rem; font-weight: 600;
+ padding: .55em 1.35em; border: 1px solid var(--do-border); border-radius: 999px;
+ background: var(--do-input);
+ color: var(--do-dim);
+ transition: background .14s, border-color .14s, color .14s;
+}
+.dh-btn:hover { color: var(--do-ink); border-color: var(--do-accent-border); }
+.dh-btn--primary { background: var(--do-accent); border-color: var(--do-accent); color: #fff; }
+.dh-btn--primary:hover { background: var(--do-accent-light); border-color: var(--do-accent-light); color: #fff; }
+
+/* ---- App-Mockup unter dem Hero: eine Miniatur der echten Ansichts-
+ Segmentpille + Kommandozeile, rein aus CSS, in den echten Programmfarben
+ — statt eines Screenshots, der sofort veraltet. ---- */
+.dh-mockup {
+ display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
+ margin-top: 2.2rem; padding: .6rem .7rem;
+ background: var(--do-panel); border: 1px solid var(--do-border); border-radius: 8px;
+ font-family: var(--do-font);
+}
+.dh-seg {
+ display: inline-flex; align-items: stretch; height: 24px;
+ border-radius: 8px; overflow: hidden; background: var(--do-field);
+ padding: 2px; gap: 1px;
+}
+.dh-seg__cell {
+ display: inline-flex; align-items: center; justify-content: center;
+ padding: 0 .6rem; border-radius: 5px; font-size: .74rem; font-weight: 600;
+ color: var(--do-dim); background: transparent;
+}
+.dh-seg__cell.is-active { background: var(--do-panel-2); color: var(--do-ink); }
+.dh-cmd {
+ display: inline-flex; align-items: center; gap: .5em;
+ height: 24px; padding-inline: .65rem; border-radius: 6px;
+ background: var(--do-field); color: var(--do-dim); font-size: .78rem;
+ font-family: var(--do-font-mono);
+}
+.dh-cmd::before { content: "›"; color: var(--do-accent); font-family: var(--do-font); font-weight: 700; }
+
+/* ---- Ansatz ---- */
+.dh-ansatz h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.01em; }
+.dh-ansatz p:not(.dh-views) { margin-top: 1rem; max-width: 38rem; color: var(--do-ink); }
+.dh-ansatz .dh-views { margin-top: 1.3rem; font-size: .85rem; color: var(--do-dim); font-family: var(--do-font-mono); }
+
+/* ---- Feature-Liste — ein Datenblatt, keine Karten: Zeilen reagieren
+ dezent auf Hover, wie Zeilen einer Bauteilliste im Programm selbst. ---- */
+.dh-features h2, .dh-features .dh-label { margin-bottom: 1.1rem; }
+.dh-feature-list { margin: 0; }
+.dh-feature-row {
+ display: grid; grid-template-columns: 12.5rem 1fr; gap: 1.4rem;
+ padding: 1rem .7rem; margin-inline: -.7rem;
+ border-top: 1px dashed var(--do-border);
+ transition: background .15s;
+}
+.dh-feature-row:first-child { border-top: 1px solid var(--do-border); }
+.dh-feature-row:hover { background: var(--do-panel-2); }
+.dh-feature-row dt { font-weight: 700; }
+.dh-feature-row dd { margin: 0; color: var(--do-dim); max-width: 34rem; }
+@media (max-width: 640px) {
+ .dh-feature-row { grid-template-columns: 1fr; gap: .3rem; }
+}
+
+/* ---- Stack ---- */
+.dh-stack { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
+.dh-stack .dh-label { margin-bottom: 0; }
+.dh-stack-list { color: var(--do-dim); font-size: .9rem; }
+
+/* ---- Herkunft ---- */
+.dh-origin h2 { font-size: clamp(1.25rem, 2.1vw, 1.5rem); font-weight: 700; max-width: 32ch; }
+.dh-origin p { margin-top: 1rem; color: var(--do-dim); max-width: 38rem; }
+
+.dh-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
+
+@media (prefers-reduced-motion: reduce) { .dossier-home * { transition: none !important; } }
diff --git a/website/content/_index.md b/website/content/_index.md
new file mode 100644
index 00000000..75be7c07
--- /dev/null
+++ b/website/content/_index.md
@@ -0,0 +1,3 @@
+---
+title: "DOSSIER"
+---
diff --git a/website/content/docs/_index.md b/website/content/docs/_index.md
new file mode 100644
index 00000000..c55e3472
--- /dev/null
+++ b/website/content/docs/_index.md
@@ -0,0 +1,22 @@
+---
+title: "Dokumentation"
+linkTitle: "Dokumentation"
+weight: 1
+sidebar:
+ open: true
+---
+
+DOSSIER ist eine Open-Source-Design-Suite für Architekten: klassisches
+2D-Zeichnen und ein semantisches 3D-Gebäudemodell in einem Programm, daraus
+abgeleitet saubere, normgerechte Pläne. Diese Seiten sind der
+laufend aktualisierte Ist-Zustand — für die vollständige Rohfassung siehe
+[STATUS.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/STATUS.md)
+im Repository.
+
+{{< cards >}}
+ {{< card link="anleitung" title="Anleitung" icon="play" subtitle="Bedienung: erste Schritte, Kommandosystem, Bauteile, Export." >}}
+ {{< card link="entwickler" title="Für Entwickler" icon="template" subtitle="Architektur, Technik-Stack, Setup, Konventionen." >}}
+{{< /cards >}}
+
+Das Forum für Fragen, Diskussion und Support folgt — bis dahin ist das
+Repository die primäre Anlaufstelle.
diff --git a/website/content/docs/anleitung/_index.md b/website/content/docs/anleitung/_index.md
new file mode 100644
index 00000000..01a8cc2e
--- /dev/null
+++ b/website/content/docs/anleitung/_index.md
@@ -0,0 +1,38 @@
+---
+title: "Anleitung"
+linkTitle: "Anleitung"
+weight: 1
+sidebar:
+ open: true
+---
+
+Vollständige Anleitung zu DOSSIER — von der Installation über das tägliche
+Zeichnen und Modellieren bis zu Export/Import und bekannten Einschränkungen.
+Für Architektur/Technik-Stack siehe [Für Entwickler](../entwickler/).
+
+## Erste Schritte
+
+{{< cards >}}
+ {{< card link="installation" title="Installation" icon="download" subtitle="Bauen aus dem Quellcode: macOS (Tauri), Linux (Electron), Browser." >}}
+ {{< card link="erste-schritte" title="Erste Schritte" icon="play" subtitle="Start, neues Projekt, Geschosse und Ebenen, Oberfläche." >}}
+ {{< card link="kommandosystem" title="Kommandosystem" icon="terminal" subtitle="Getippte Koordinaten, Tab-Feldzyklus, Snapping — Rhino-artig." >}}
+{{< /cards >}}
+
+## Im Alltag
+
+{{< cards >}}
+ {{< card link="bauteile" title="Bauteile & Zeichnen" icon="cube" subtitle="2D-Werkzeuge und semantische Bauteile: Wände, Türen, Treppen, Dächer, Räume." >}}
+ {{< card link="export-import" title="Export & Import" icon="upload" subtitle="PDF, DXF, IFC4, STL/OBJ, CSV — und Import von DXF/DWG, Swisstopo, OSM." >}}
+ {{< card link="layouts" title="Layouts & Plansätze" icon="document-duplicate" subtitle="Mehrere Viewports pro Blatt, Ausschnitte, Kamera-Presets." >}}
+{{< /cards >}}
+
+## Für Fortgeschrittene
+
+{{< cards >}}
+ {{< card link="troubleshooting" title="Bekannte Einschränkungen" icon="exclamation-circle" subtitle="Was bewusst noch offen ist — ehrlich, ohne Beschönigung." >}}
+ {{< card link="../entwickler" title="Für Entwickler" icon="template" subtitle="Architektur, Technik-Stack, Setup, Konventionen." >}}
+{{< /cards >}}
+
+Das Forum für Fragen, Diskussion und Support folgt — bis dahin ist das
+[Repository](https://git.openbureau.ch/karim/DOSSIER-STANDALONE) die primäre
+Anlaufstelle.
diff --git a/website/content/docs/anleitung/bauteile.md b/website/content/docs/anleitung/bauteile.md
new file mode 100644
index 00000000..29855d17
--- /dev/null
+++ b/website/content/docs/anleitung/bauteile.md
@@ -0,0 +1,45 @@
+---
+title: "Bauteile & Zeichnen"
+linkTitle: "Bauteile & Zeichnen"
+weight: 4
+---
+
+DOSSIER ist bewusst **beides**: ein klassisches 2D-Zeichenprogramm und ein
+semantisches 3D-Gebäudemodell — im selben Plan, mit denselben
+Zeichenwerkzeugen bedienbar.
+
+## 2D-Zeichenwerkzeuge
+
+Linie, Polylinie, Rechteck, Kreis, Bogen, Text, Textspalte, Bild/PDF-Import.
+Freihand-Geometrie ohne semantische Bedeutung — für Beschriftung, Skizzen,
+importierte Referenzpläne, alles, was kein eigenes Bauteil sein muss.
+
+## Semantische Bauteile
+
+- **Wände** — mehrschichtig, mit L-Eck-Gehrung und Prioritäts-T-/X-Stössen
+ (`joinPriority`); konsistent in Grundriss, 3D-Viewport und Live-Schnitt
+- **Decken** — Umriss zeichnen, mit Deckenlöchern (Aussparungen)
+- **Türen & Fenster** — in Wänden gehostet, mit Rahmen/Zarge/Kämpfer/
+ Oberlicht, Detailgrad grob/mittel/fein, echte Rechteck-Löcher im
+ 3D-Wandkörper (kein Mesh-Boolean nötig)
+- **Treppen** — gerade, L-förmig, Wendel
+- **Dächer** — Flach, Pult, Sattel, Walm, Mansarde, Zelt
+- **Stützen**
+- **Räume** — Klick in einen umschlossenen Bereich (oder Umriss zeichnen);
+ automatische Flächenbilanz nach SIA-416 mit CSV-Export
+
+Jedes Bauteil ist Teil des **einen semantischen Modells** — verschiebt man
+eine Wand, verschiebt sie sich in jeder daraus abgeleiteten Ansicht
+gleichzeitig. Mehr dazu: [Grundgedanke](../../entwickler/grundgedanke/).
+
+## Materialien
+
+13 gebündelte PBR-Starter-Materialien plus Live-Suche der kompletten
+[ambientCG](https://ambientcg.com/)-Bibliothek (1K/2K/4K, On-Demand-Download)
+für Wand-, Decken- und Dachflächen im 3D-Viewport.
+
+## Resource Manager
+
+Eigenes natives Fenster für Component-, Hatch-, Linien- und Typ-Editoren mit
+regelbasierten Overrides — z. B. eine Wandtyp-Definition einmal ändern und
+überall im Projekt aktualisieren.
diff --git a/website/content/docs/anleitung/erste-schritte.md b/website/content/docs/anleitung/erste-schritte.md
new file mode 100644
index 00000000..ec452289
--- /dev/null
+++ b/website/content/docs/anleitung/erste-schritte.md
@@ -0,0 +1,51 @@
+---
+title: "Erste Schritte"
+linkTitle: "Erste Schritte"
+weight: 2
+---
+
+## Start
+
+Nach dem Splash-Screen erscheint der Startbildschirm mit drei Optionen:
+
+- **Neues Projekt** — leeres Projekt anlegen
+- **Projekt öffnen …** — bestehende `.obp`-Datei auswählen
+- **Zuletzt geöffnet** — Liste der letzten Projekte mit Zeitstempel
+ (nur in der Desktop-App — im Browser gibt es keine echten Dateipfade zum
+ Wiederöffnen)
+
+Eigenes Dateiformat `.obp`, mit OS-Level-Lock: dieselbe Datei kann nicht
+versehentlich zweimal gleichzeitig geöffnet werden.
+
+## Oberfläche
+
+Grob wie ein klassisches CAD-Programm (Vectorworks/Rhino-artig):
+
+- **Oberleiste** — Wortmarke, Werkzeuge, Ansichts-/Renderer-Umschalter
+- **Kommandozeile** — Rhino-artige getippte Befehle und Koordinaten
+ (s. [Kommandosystem](../kommandosystem/))
+- **Zeichnungsebenen-Panel** — steuert, was im 3D-Viewport sichtbar ist
+- **3D-Viewport** — eigener Rust/WASM/WebGPU-Renderer „Nordstern" (Default),
+ Three.js als leichtgewichtiger Zweitpfad
+- **Grundriss (PlanView)** — als SVG immer aktiv (Interaktions-/Fallback-
+ Ebene), zusätzlich ein WebGL2-Pfad für grosse Pläne
+- **Resource Manager** — eigenes natives Fenster für Component-/Hatch-/
+ Linien-/Typ-Editoren
+
+## Geschosse & Ebenen
+
+Ein Gebäude gliedert sich in **Geschosse** und pro Geschoss in
+**Kategorie-Ebenen** (Wände, Möblierung, Beschriftung, …) — dieselbe
+Denkweise wie im ursprünglichen Rhino-Plugin. Ein Bauteil gehört zu genau
+einem Geschoss; Wände lassen sich nicht geschossübergreifend zeichnen.
+
+## Erstes Bauteil
+
+1. Werkzeug **Wand** wählen (Oberleiste oder Kommandozeile: `wand`)
+2. Ersten Achspunkt setzen — Klick oder Koordinate tippen (`5,3`)
+3. Nächsten Punkt setzen — Doppelklick oder Rechtsklick beendet die Kette
+4. Mit **Tür**/**Fenster** eine Öffnung in die fertige Wand setzen: Wand
+ anklicken, dann Position entlang der Wand bestimmen
+
+Jede Ansicht — 3D, Grundriss, Schnitt, PDF — wird aus demselben Modell
+abgeleitet; siehe [Grundgedanke](../../entwickler/grundgedanke/).
diff --git a/website/content/docs/anleitung/export-import.md b/website/content/docs/anleitung/export-import.md
new file mode 100644
index 00000000..b9817115
--- /dev/null
+++ b/website/content/docs/anleitung/export-import.md
@@ -0,0 +1,42 @@
+---
+title: "Export & Import"
+linkTitle: "Export & Import"
+weight: 5
+---
+
+## Export
+
+| Format | Details |
+|---|---|
+| **PDF** | Vektor-Export, Einzelblatt oder Mehrseiten-Layouts, echte mm-Stiftstärken statt Bildschirm-Hairlines |
+| **DXF** | eigener DXF-Writer |
+| **IFC4** | eigener IFC4-Writer, mit echten Fenster-/Tür-Löchern in den Bauteilen |
+| **STL / OBJ** | Mesh-Export für 3D-Druck bzw. weitere 3D-Programme |
+| **CSV** | Bauteilliste, sowie SIA-416-Flächenbilanz separat |
+
+PDF und die 2D-Formate sind **derselbe Plan** wie im Grundriss — nicht ein
+zusätzlich gerendertes Bild, sondern dieselbe analytische Geometrie mit
+Norm-Strichstärken.
+
+## Import
+
+- **DXF/DWG** — Lesen funktioniert; das Mapping der Entitäten auf echte
+ Wände/Öffnungen ist noch unbegonnen (Import landet aktuell als
+ Referenzgeometrie, nicht als Bauteile) — s.
+ [Bekannte Einschränkungen](../troubleshooting/)
+- **Bild / PDF** — Werkzeug „Bild/PDF": Rasterbilder direkt, PDF-Seiten
+ werden gerendert und als Bild eingebettet; landet als normales
+ Bild-Element im Plan oder Layout
+- **Swisstopo** — swissBUILDINGS3D, swissALTI3D (Terrain), SWISSIMAGE
+ (Luftbild), radiusgenau um den Projektstandort zugeschnitten
+- **OSM-Kontext** — Umgebungsgebäude/-strassen aus OpenStreetMap als
+ Referenz
+- **`.lin` / `.pat`** — eigene Parser für Linientypen und Schraffurmuster
+
+STL/OBJ sind aktuell **nur Export**-Formate, kein Re-Import in DOSSIER.
+
+## Geo-Referenzierung
+
+Ein Projekt kann an einem **Vermessungspunkt** (E/N/H, Schweizer
+Landeskoordinaten) verankert werden. Das Terrain nutzt reale Höhen, das
+Gebäude selbst bleibt bei z = 0 — kein Höhen-Versatz beim Export.
diff --git a/website/content/docs/anleitung/installation.md b/website/content/docs/anleitung/installation.md
new file mode 100644
index 00000000..954812b6
--- /dev/null
+++ b/website/content/docs/anleitung/installation.md
@@ -0,0 +1,63 @@
+---
+title: "Installation"
+linkTitle: "Installation"
+weight: 1
+---
+
+DOSSIER ist eine **Desktop-App**. Es gibt noch keine fertig gepackten
+Installer-Downloads — momentan baut man aus dem Quellcode. Auf macOS aktualisiert
+sich eine laufende App danach selbständig (Tauri-Updater).
+
+## Voraussetzungen
+
+- [Node.js](https://nodejs.org/) (für `npm`)
+- Für native Fenster zusätzlich [Rust](https://www.rust-lang.org/) — Tauri
+ (macOS) bzw. die Rust-Toolchain für die WASM-Engines
+
+## macOS — Tauri (empfohlen, natives Ziel)
+
+```bash
+git clone https://git.openbureau.ch/karim/DOSSIER-STANDALONE.git
+cd DOSSIER-STANDALONE
+npm install
+npm run tauri:dev
+```
+
+Öffnet ein randloses natives Fenster mit eigener Titelleiste. macOS nutzt
+WKWebView mit WebGPU — beide eigenen Rendering-Engines (`render2d`/`render3d`)
+laufen hier im Standardpfad.
+
+## Linux — Electron
+
+```bash
+npm install
+npm run electron
+```
+
+Linux läuft über eine Electron/Chromium-Shell statt Tauri: WebKitGTK (Tauris
+Linux-Webview) bietet kein zuverlässiges WebGPU, das die beiden
+Rust/WASM-Renderer brauchen. Electron/Chromium liefert WebGPU zuverlässig,
+gleiche React-Codebasis, eigene randlose Fenster.
+
+## Browser (eingeschränkt)
+
+```bash
+npm run dev # Vite, http://localhost:5187
+```
+
+Läuft auch im normalen Browser — ohne native Fenster-Integration und ohne
+echtes Dateisystem (Projekte lassen sich nicht über native Speichern/Öffnen-
+Dialoge verwalten, `.obp`-Dateien mit OS-Level-Lock entfallen).
+
+## WASM-Engines neu bauen
+
+Nur die `.rs`-Quellen werden committet, die kompilierten WASM-Pakete
+(`src/engine/pkg*/`) sind gitignored. Nach Änderungen an Rust-Code:
+
+```bash
+npm run build:engine # render2d
+npm run build:engine3d # render3d
+npm run build:truck # trucksolid (CSG/Extrusion)
+```
+
+Details zu allen Rust-Crates: [Technik-Stack](../entwickler/technik-stack/).
diff --git a/website/content/docs/anleitung/kommandosystem.md b/website/content/docs/anleitung/kommandosystem.md
new file mode 100644
index 00000000..1dac80e4
--- /dev/null
+++ b/website/content/docs/anleitung/kommandosystem.md
@@ -0,0 +1,47 @@
+---
+title: "Kommandosystem"
+linkTitle: "Kommandosystem"
+weight: 3
+---
+
+DOSSIER hat neben der Maus ein **Rhino-artiges Kommandosystem**: Werkzeuge
+lassen sich per Kommandozeile starten, und Koordinaten werden getippt statt
+nur geklickt.
+
+## Koordinaten tippen
+
+Während ein Zeichenwerkzeug aktiv ist, akzeptiert die Kommandozeile:
+
+| Eingabe | Bedeutung |
+|---|---|
+| `5,3` | absoluter Punkt (x, y in Metern) |
+| `r5,3` | relativ zum letzten Punkt |
+| `5<45` | Distanz `<` Winkel (Polarkoordinate) |
+
+**Tab** zykelt zwischen den Eingabefeldern (z. B. erst Distanz, dann
+Winkel), wie in Rhino/AutoCAD gewohnt — kein Klicken zwischen Feldern nötig.
+
+## Snapping & Grips
+
+- **Snapping** an Endpunkten, Mittelpunkten, Rasterpunkten — `Shift` erzwingt
+ Ortho (0/90°), `Ctrl` schaltet Fang temporär aus
+- **Grips**: fertige Elemente lassen sich an ihren Kontrollpunkten direkt
+ ziehen, ohne ein Werkzeug zu wechseln
+- Feld-Controller (Tab-Zyklus) und Snapping fürs Grip-Ziehen sind aktuell nur
+ in 2D vollständig — 3D-Grip-Drag ist bewusst noch offen (s.
+ [Bekannte Einschränkungen](../troubleshooting/))
+
+## Bearbeiten
+
+- **Trim/Split/Join** — Linien/Wände an Schnittpunkten stutzen, teilen,
+ zusammenführen
+- **2D-Booleans** für Flächen (Räume, Decken)
+- L-Eck-Gehrung und Prioritäts-T-/X-Stösse bei Wandverbindungen laufen
+ automatisch über den `joinPriority` des jeweiligen Bauteils
+
+## Werkzeuge (Auswahl)
+
+Auswahl, Wand, Decke, Fenster, Tür, Treppe, Raum — sowie die klassischen
+2D-Primitiven Linie, Polylinie, Rechteck, Kreis, Bogen, Text/Textspalte und
+Bild/PDF-Import. Alle über die Oberleiste oder per Kommandozeilen-Kürzel
+erreichbar.
diff --git a/website/content/docs/anleitung/layouts.md b/website/content/docs/anleitung/layouts.md
new file mode 100644
index 00000000..faea2a73
--- /dev/null
+++ b/website/content/docs/anleitung/layouts.md
@@ -0,0 +1,28 @@
+---
+title: "Layouts & Plansätze"
+linkTitle: "Layouts & Plansätze"
+weight: 6
+---
+
+Für Plansätze mit mehreren Blättern (Grundriss, Schnitt, Ansichten,
+Detailpläne) auf demselben Projekt.
+
+## Layouts
+
+Ein **Layout** ist ein Planblatt mit einem oder mehreren **Viewports** —
+jeder Viewport zeigt einen Ausschnitt des Modells in einem bestimmten
+Massstab und einer bestimmten Ansicht (Grundriss, Schnitt, 3D). Mehrere
+Layouts bilden zusammen den Plansatz eines Projekts.
+
+## Ausschnitte (View-Snapshots)
+
+Ein **Ausschnitt** speichert Kameraposition/Zoom einer Ansicht — einmal
+eingerichtet, in beliebig vielen Viewports wiederverwendbar. Praktisch für
+wiederkehrende Blattausschnitte, die sich mit dem Modell mitentwickeln
+sollen.
+
+## Kamera-Presets & Norden-Rotation
+
+Vordefinierte Kamerawinkel für die 3D-Ansicht, plus eine einstellbare
+Nordrichtung — Grundrisse und Ansichten richten sich danach aus, ohne das
+Modell selbst zu drehen.
diff --git a/website/content/docs/anleitung/troubleshooting.md b/website/content/docs/anleitung/troubleshooting.md
new file mode 100644
index 00000000..bfa5f4c2
--- /dev/null
+++ b/website/content/docs/anleitung/troubleshooting.md
@@ -0,0 +1,47 @@
+---
+title: "Bekannte Einschränkungen"
+linkTitle: "Bekannte Einschränkungen"
+weight: 7
+---
+
+DOSSIER ist aus einem Risiko-Spike gewachsen und wird aktiv weiterentwickelt.
+Diese Seite listet **bewusst offene Punkte** ehrlich auf — für die
+vollständige, laufend aktualisierte Bestandsaufnahme siehe
+[STATUS.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/STATUS.md)
+im Repository.
+
+## Modellierung
+
+- **Öffnungen als Rechteck-Löcher, kein echtes Mesh-Boolean** — Türen/Fenster
+ funktionieren heute über achsparallele Rechteck-Löcher im Wandkörper. Ein
+ generisches CSG-Boolean existiert bereits im Rust-Code (`trucksolid`), ist
+ aber noch nicht an die Wand-Pipeline angeschlossen.
+- **3D-Griffsystem unvollständig** — Feld-Controller (Tab-Zyklus) und
+ Snapping für das Ziehen von Grips fehlen in 3D; in 2D vollständig
+ vorhanden.
+- **`make2D`-Kommando fehlt** — eine 3D-Ansicht direkt in einen flachen
+ 2D-Plan mit Füllungen umwandeln, ist noch nicht implementiert.
+- Bekannte, noch nicht bereinigte Doppelspur zwischen `Door[]` und
+ `Opening[]` im Datenmodell.
+
+## Import
+
+- **DWG/DXF-Domänenimport** — das Lesen der Dateien funktioniert, das
+ Mapping der Entitäten auf echte Wände/Öffnungen ist unbegonnen; Import
+ landet aktuell als Referenzgeometrie. DWG-**Schreiben** fehlt ganz.
+
+## Plattform
+
+- Auf **Linux** läuft DOSSIER über eine Electron/Chromium-Shell statt Tauri,
+ weil Tauris Linux-Webview (WebKitGTK) kein zuverlässiges WebGPU bietet, das
+ die beiden Rust/WASM-Renderer brauchen.
+- Der **Browser-Modus** hat keine native Fenster-/Dateisystem-Integration —
+ kein `.obp`-Format mit OS-Level-Lock, keine nativen Speichern/Öffnen-
+ Dialoge.
+
+## Forum
+
+Das Forum für Fragen, Diskussion und Support ist noch nicht online — bis
+dahin ist das
+[Repository](https://git.openbureau.ch/karim/DOSSIER-STANDALONE) (Issues,
+Quellcode) die primäre Anlaufstelle.
diff --git a/website/content/docs/entwickler/_index.md b/website/content/docs/entwickler/_index.md
new file mode 100644
index 00000000..999f8aec
--- /dev/null
+++ b/website/content/docs/entwickler/_index.md
@@ -0,0 +1,20 @@
+---
+title: "Für Entwickler"
+linkTitle: "Für Entwickler"
+weight: 2
+sidebar:
+ open: false
+---
+
+Hintergrund und Referenz für alle, die am Code selbst arbeiten — Architektur,
+Technik-Stack, lokales Setup, Konventionen. Für die Bedienung der App siehe
+[Anleitung](../anleitung/).
+
+{{< cards >}}
+ {{< card link="grundgedanke" title="Grundgedanke" subtitle="Ein Modell, jede Ansicht daraus abgeleitet." >}}
+ {{< card link="stand" title="Stand & Funktionen" subtitle="Was heute funktioniert, was bewusst noch offen ist." >}}
+ {{< card link="technik-stack" title="Technik-Stack" subtitle="Rust/WASM/WebGPU, Tauri, Electron, React." >}}
+ {{< card link="setup" title="Lokal einrichten" subtitle="Bauen, Engines kompilieren, testen." >}}
+ {{< card link="aufbau" title="Aufbau" subtitle="Wie der Code organisiert ist." >}}
+ {{< card link="konventionen" title="Konventionen" subtitle="Sprache, Terminologie, Einheiten, SIA." >}}
+{{< /cards >}}
diff --git a/website/content/docs/entwickler/aufbau.md b/website/content/docs/entwickler/aufbau.md
new file mode 100644
index 00000000..fe6c6245
--- /dev/null
+++ b/website/content/docs/entwickler/aufbau.md
@@ -0,0 +1,29 @@
+---
+title: "Aufbau"
+linkTitle: "Aufbau"
+weight: 5
+---
+
+```text
+src/
+ model/ semantisches Modell (types, joins, parametricWalls, roomStamp, terrain)
+ geometry/ 2D-Kernel (offset/trim/fillet/intersect, ceiling/opening/roomArea/stair/roof/column)
+ commands/ Rhino-artiges Befehlssystem (engine, parser, registry, cmds/)
+ tools/ interaktive Zeichenwerkzeuge, Snapping, Transformationen
+ plan/ Grundriss-Ableitung (generatePlan) + PlanView (SVG) + glPlan (WebGL2) + Rust-Bindings
+ viewport/ Viewport3D (Three.js) + Wasm3DViewport (Rust/wgpu „Nordstern", Default)
+ export/ IFC4-, PDF-, DXF-, STL/OBJ-, CSV-Export aus derselben Plan-/Modell-Struktur
+ materials/ ambientCG-Live-Suche + gebündelte Starter-Bibliothek + PBR-Runtime
+ panels/ dockbares Panel-System + die einzelnen Paletten
+ state/ eigener Store (useSyncExternalStore) + Slices (project/selection/view/layout/…)
+ native/ Tauri-only: native Fenster, macOS-Menüleiste, Fenster-Chrome
+ ui/ App.tsx-Shell, Top-Bar, Resource Manager, Kontextmenü, Kommandozeile, Ribbon
+ io/ Import/Export (DXF, DWG, .lin, .pat), Swisstopo/LV95, OSM-Kontext
+ i18n/ Wörterbücher de/en
+src-tauri/ Rust-Crates (render2d/render3d/geometry/kernel2d/trucksolid/dwgimport),
+ je headless UND per wasm-pack baubar, plus der Tauri-Host selbst
+```
+
+Ausführlicher, aktueller Ist-Zustand inklusive bekannter Doppelspuren und
+offener Punkte in [ARCHITECTURE.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/ARCHITECTURE.md)
+und [STATUS.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/STATUS.md).
diff --git a/website/content/docs/entwickler/grundgedanke.md b/website/content/docs/entwickler/grundgedanke.md
new file mode 100644
index 00000000..50795ac1
--- /dev/null
+++ b/website/content/docs/entwickler/grundgedanke.md
@@ -0,0 +1,26 @@
+---
+title: "Grundgedanke"
+linkTitle: "Grundgedanke"
+weight: 1
+---
+
+Es gibt **ein semantisches Modell** als einzige Wahrheit. Jede Ansicht — 3D,
+Grundriss, Schnitt, Ansicht, PDF — wird daraus **abgeleitet**. Darstellung
+(Detailgrad, Linienstärken, Schraffuren) wird erst beim Rendern angewandt, nie
+in die Geometrie eingebacken. Wer eine Wand verschiebt, verschiebt sie überall.
+
+Konkret heisst das auch: Der Grundriss entsteht nicht aus einem zerschnittenen
+3D-Mesh, sondern **analytisch aus den Bauteil-Parametern** — Wandachsen und
+Dicken werden zu Linien, Öffnungen zu Lücken mit Symbol. Der PDF-Export ist
+derselbe Plan, nur mit echten mm-Stiftstärken statt Bildschirm-Hairlines.
+Schnitte und Ansichten laufen über eine eigene, analytische Rust-Pipeline
+(kein Hidden-Line-Removal nötig) und sind im 3D-Viewport live verdrahtet,
+nicht nur ein Spike.
+
+## Herkunft
+
+DOSSIER ist die eigenständige Neuimplementierung des gleichnamigen
+Rhino-Plugins: dieselbe Denkweise — Geschosse, Kategorie-Ebenen, mehrschichtige
+Bauteile, Prioritäts-Verschneidung — jetzt mit eigenem Datenmodell und eigener
+Rendering-Engine (Rust/WASM/WebGPU, intern „Nordstern" genannt) statt
+Rhino-Aufsatz.
diff --git a/website/content/docs/entwickler/konventionen.md b/website/content/docs/entwickler/konventionen.md
new file mode 100644
index 00000000..d25e31b8
--- /dev/null
+++ b/website/content/docs/entwickler/konventionen.md
@@ -0,0 +1,16 @@
+---
+title: "Konventionen"
+linkTitle: "Konventionen"
+weight: 6
+---
+
+- **Bezeichner im Code sind englisch**, an Vectorworks-Terminologie angelehnt
+ (Design Layer, Component, Hatch, Wall Style). **UI-Texte sind deutsch**,
+ immer über `t('key')` — keine hartcodierten Strings im JSX.
+- **Einheiten:** intern alles in **Metern** (number). Anzeige via `formatM`.
+- **Geometrie:** Wand-Normale `n = leftNormal(u) = (-u.y, u.x)`; bei
+ CCW-Wicklung zeigt `+n` nach innen. Schichten werden aussen (−T/2) → innen
+ (+T/2) gestapelt.
+- **Zeichnungsnormen und Symbolik** durchgängig nach SIA (Schweiz), nicht DIN.
+
+Verbindlich und vollständig in [CONVENTIONS.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/CONVENTIONS.md).
diff --git a/website/content/docs/entwickler/setup.md b/website/content/docs/entwickler/setup.md
new file mode 100644
index 00000000..a64b9c1c
--- /dev/null
+++ b/website/content/docs/entwickler/setup.md
@@ -0,0 +1,28 @@
+---
+title: "Lokal einrichten"
+linkTitle: "Lokal einrichten"
+weight: 4
+---
+
+```bash
+npm install
+npm run dev # Vite, http://localhost:5187
+npm run tauri:dev # Tauri-Fenster (macOS — nativer Zielrahmen dort)
+npm run electron # Electron-Fenster (Linux — WebGPU über Chromium statt WebKitGTK)
+npx tsc -b # Typecheck
+npm run build # tsc -b && vite build
+npm test # vitest run
+```
+
+Die WASM-Engines müssen nach Rust-Änderungen neu gebaut werden (nur `.rs`
+committen, `src/engine/pkg*/` ist gitignored):
+
+```bash
+npm run build:engine # render2d
+npm run build:engine3d # render3d
+npm run build:truck # trucksolid
+```
+
+Änderungen an `render3d`/`Wasm3DViewport` lassen sich nicht per Puppeteer oder
+Headless-Browser verifizieren — im laufenden `tauri:dev`-Fenster selbst
+testen.
diff --git a/website/content/docs/entwickler/stand.md b/website/content/docs/entwickler/stand.md
new file mode 100644
index 00000000..424b64bb
--- /dev/null
+++ b/website/content/docs/entwickler/stand.md
@@ -0,0 +1,45 @@
+---
+title: "Stand & Funktionen"
+linkTitle: "Stand & Funktionen"
+weight: 2
+---
+
+Auszug — vollständige Liste inklusive offener Punkte und bekannter technischer
+Schulden in [STATUS.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/STATUS.md) §3.
+
+- **Semantisches Modell** mit mehrschichtigen Wänden, L-Eck-Gehrung **und**
+ Prioritäts-T-/X-Stössen (`joinPriority` am Component) — konsistent in
+ Grundriss, 3D-Viewport und 3D-Live-Schnitt.
+- **Parametrische Wände**, Decken, Treppen (gerade/L/Wendel), Dächer
+ (Flach/Pult/Sattel/Walm/Mansarde/Zelt), Stützen, SIA-416-Räume mit
+ automatischer Bilanz und CSV-Export.
+- **Türen & Fenster** gehostet in Wänden, mit Rahmen/Zarge/Kämpfer/Oberlicht,
+ Detailgrad grob/mittel/fein, echte Rechteck-Löcher im 3D-Wandkörper.
+- Rhino-artiges **Kommandosystem** mit getippten Koordinaten (`5,3` · `r5,3` ·
+ `5<45`) und Tab-Feld-Zyklus; Snapping, Grips, Trim/Split/Join, 2D-Booleans.
+- **Live 2D↔3D-Schnitt**: eine Schnittebene im 3D-Viewport folgt derselben
+ Prioritäts-Logik wie der 2D-Plan-Schnitt.
+- **Vektor-Export:** PDF (Einzel- und Mehrseiten-Layouts), DXF, IFC4 (mit
+ echten Fenster-/Tür-Löchern), STL/OBJ, CSV-Bauteilliste.
+- **Materialbibliothek**: gebündelte PBR-Starter plus Live-Suche der
+ kompletten ambientCG-Bibliothek (1K/2K/4K, On-Demand-Download).
+- **Layouts/Plansätze** mit mehreren Viewports pro Blatt, Ausschnitte
+ (View-Snapshots), Kamera-Presets, Norden-Rotation.
+- **Import:** DXF/DWG, Swisstopo (swissBUILDINGS3D/-ALTI3D/SWISSIMAGE,
+ radiusgenau zugeschnitten), OSM-Kontextimport, `.lin`/`.pat`.
+- **Native Desktop-Integration** (Tauri): eigene randlose Fenster, native
+ Speichern/Öffnen-Dialoge, eigenes `.obp`-Dateiformat mit OS-Level-Lock gegen
+ Doppelöffnen.
+- **Resource Manager** (Component-/Hatch-/Line-/Typ-Editoren), regelbasierte
+ Overrides, Panel-System (dockbar/floatend), i18n (de/en).
+
+## Bewusst noch offen
+
+- **Echtes Mesh-Boolean für Öffnungen** — heute achsparallele Rechteck-Löcher;
+ ein generisches CSG-Boolean existiert bereits, ist aber nicht an die
+ Wand-Pipeline angeschlossen.
+- **3D-Griffsystem**: Feld-Controller und Snapping fehlen für 3D-Grip-Drag
+ (im 2D vollständig vorhanden).
+- **DWG/DXF-Domänenimport** (Entitäten → echte Wände/Öffnungen) — Lesen
+ funktioniert, das Mapping auf das Modell ist unbegonnen.
+- **`make2D`**-Kommando (3D-Ansicht → flacher 2D-Plan mit Füllungen).
diff --git a/website/content/docs/entwickler/technik-stack.md b/website/content/docs/entwickler/technik-stack.md
new file mode 100644
index 00000000..00f944d2
--- /dev/null
+++ b/website/content/docs/entwickler/technik-stack.md
@@ -0,0 +1,20 @@
+---
+title: "Technik-Stack"
+linkTitle: "Technik-Stack"
+weight: 3
+---
+
+| | |
+|---|---|
+| Shell | **Tauri** auf macOS (WKWebView + WebGPU) · **Electron/Chromium** auf Linux (WebKitGTK kann kein WebGPU) — beide randlos, eigene Titelleiste, gemeinsame React-App |
+| Frontend | React + TypeScript + Vite |
+| 3D | eigener Rust/WASM/WebGPU-Renderer „Nordstern" (`render3d`, Default), Three.js als leichtgewichtiger Zweitpfad |
+| 2D-Plan | eigener Rust/WASM/WebGPU-Renderer (`render2d`), plus ein TS/WebGL2-Renderer (`plan/glPlan`), plus SVG als Interaktions-/Fallback-Ebene |
+| Geometrie | eigener 2D-Kernel (`src/geometry/kernel2d.ts`); ein Rust-Port existiert als Paritätstest |
+| CSG/Extrusion | `trucksolid`-Crate (`truck` + `csgrs`) für das Extrude-Kommando |
+| Export | eigener IFC4-Writer, `jspdf`/`svg2pdf.js` (Vektor-PDF), eigener DXF-Writer, STL/OBJ |
+| Import | `dxf-parser`, `@mlightcad/libredwg-web` (DWG), eigene `.lin`/`.pat`-Parser |
+| Materialien | `jszip` (ambientCG-Zip-Entpacken), Three.js `TextureLoader` |
+
+Alle Rust-Crates laufen sowohl headless als auch per `wasm-pack` gebaut. Details
+zu allen Crates in [ARCHITECTURE.md](https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/ARCHITECTURE.md).
diff --git a/website/data/dossier.yaml b/website/data/dossier.yaml
new file mode 100644
index 00000000..77ff5933
--- /dev/null
+++ b/website/data/dossier.yaml
@@ -0,0 +1,36 @@
+# Inhalt der DOSSIER-Landingpage. Bearbeitbar ohne Template-Änderung.
+
+features:
+ - title: "2D-Zeichenwerkzeuge"
+ body: "Linie, Polylinie, Rechteck, Kreis, Bogen, Text/Textspalte, Bild/PDF-Import — klassisches Freihand-Zeichnen neben den semantischen Bauteilen, im selben Plan."
+ - title: "Semantisches Modell"
+ body: "Mehrschichtige Wände, L-Eck-Gehrung und Prioritäts-T-/X-Stösse — konsistent in Grundriss, 3D-Viewport und Live-Schnitt."
+ - title: "Parametrische Bauteile"
+ body: "Wände, Decken, Treppen (gerade · L · Wendel), Dächer (Flach/Pult/Sattel/Walm/Mansarde/Zelt), Stützen."
+ - title: "Türen & Fenster"
+ body: "In Wänden gehostet, mit Rahmen/Zarge/Kämpfer/Oberlicht und echten Rechteck-Löchern im 3D-Wandkörper."
+ - title: "Kommandosystem"
+ body: "Getippte Koordinaten (5,3 · r5,3 · 5<45), Tab-Feldzyklus, Snapping, Grips, Trim/Split/Join."
+ - title: "Live 2D↔3D-Schnitt"
+ body: "Eine Schnittebene im 3D-Viewport folgt derselben Prioritäts-Logik wie der 2D-Plan-Schnitt. Keine Diskrepanz."
+ - title: "Vektor-Export"
+ body: "PDF mit Mehrseiten-Layouts, DXF, IFC4 (mit echten Fenster-/Tür-Löchern), STL/OBJ, CSV-Bauteilliste."
+ - title: "SIA-416-Räume"
+ body: "Automatische Flächenbilanz mit CSV-Export. Zeichnungsnormen und Symbolik nach SIA."
+ - title: "Materialbibliothek"
+ body: "13 gebündelte PBR-Starter plus Live-Suche der kompletten ambientCG-Bibliothek (1K/2K/4K, On-Demand)."
+ - title: "Layouts & Plansätze"
+ body: "Mehrere Viewports pro Blatt, Ausschnitte (View-Snapshots), Kamera-Presets, Norden-Rotation."
+ - title: "Swisstopo & DXF"
+ body: "swissBUILDINGS3D / ALTI3D / SWISSIMAGE, radiusgenau zugeschnitten; OSM-Kontext; DXF/DWG, .lin/.pat."
+ - title: "Native Desktop-App"
+ body: "Randlose Fenster, native Speichern/Öffnen-Dialoge, eigenes .obp-Format mit OS-Level-Lock gegen Doppelöffnen."
+ - title: "Resource Manager"
+ body: "Component-/Hatch-/Linien-/Typ-Editoren, regelbasierte Overrides, dockbare Panels, i18n (de/en)."
+
+stack:
+ - "TypeScript / React"
+ - "Rust / wgpu"
+ - "WebGPU / WebGL2"
+ - "Tauri"
+ - "Electron"
diff --git a/website/hugo.toml b/website/hugo.toml
new file mode 100644
index 00000000..5a9c0d6d
--- /dev/null
+++ b/website/hugo.toml
@@ -0,0 +1,123 @@
+baseURL = "https://dossier.openbureau.ch/"
+title = "DOSSIER"
+theme = "hextra"
+enableRobotsTXT = true
+enableEmoji = true
+
+defaultContentLanguage = "de"
+[languages.de]
+ label = "Deutsch"
+ weight = 1
+ title = "DOSSIER"
+ contentDir = "content"
+
+[module]
+ [module.hugoVersion]
+ extended = true
+ min = "0.146.0"
+
+[markup]
+ [markup.highlight]
+ noClasses = false
+ [markup.goldmark.renderer]
+ unsafe = true
+
+enableInlineShortcodes = true
+
+[[menu.main]]
+ identifier = "produkt"
+ name = "Produkt"
+ pageRef = "/"
+ weight = 1
+
+[[menu.main]]
+ identifier = "documentation"
+ name = "Dokumentation"
+ pageRef = "/docs"
+ weight = 2
+
+[[menu.main]]
+ identifier = "forum"
+ name = "Forum"
+ url = "https://dossier.openbureau.ch/forum"
+ weight = 3
+
+[[menu.main]]
+ name = "Search"
+ weight = 4
+ [menu.main.params]
+ type = "search"
+
+[[menu.main]]
+ name = "Theme"
+ weight = 5
+ [menu.main.params]
+ type = "theme-toggle"
+
+[[menu.main]]
+ identifier = "quellcode"
+ name = "Quellcode ↗"
+ url = "https://git.openbureau.ch/karim/DOSSIER-STANDALONE"
+ weight = 6
+
+[params]
+ description = "DOSSIER ist eine Open-Source-Design-Suite für Architekten: klassisches 2D-Zeichnen und ein semantisches 3D-Gebäudemodell in einem Programm — daraus abgeleitet saubere, normgerechte Pläne. Eigenständige Desktop-App."
+ externalLinkDecoration = false
+
+ [params.navbar]
+ displayTitle = true
+ displayLogo = false
+ width = "normal"
+
+ [params.theme]
+ default = "light"
+ displayToggle = true
+
+ [params.footer]
+ enable = true
+ displayCopyright = true
+ displayPoweredBy = false
+ width = "normal"
+
+ [params.page]
+ width = "normal"
+
+ displayUpdatedDate = false
+
+ [params.search]
+ enable = true
+ type = "flexsearch"
+ [params.search.flexsearch]
+ index = "content"
+ tokenize = "forward"
+
+ [params.editURL]
+ enable = false
+
+ [params.toc]
+ displayTags = false
+
+ # ---- eigene Inhalte für die bespoke Startseite (layouts/hextra-home.html) ----
+ [params.dossier]
+ wordmark = "DOSSIER"
+ role = "Design-Suite für Architekten — 2D-Zeichnen & semantisches 3D-Modell"
+
+ hookMain = "2D zeichnen. 3D modellieren."
+ hookAccent = "Ein Programm, ein Modell."
+ lead = "DOSSIER ist eine Design-Suite für Architekten, kein reines BIM-Tool: klassisches 2D-Zeichnen (Linien, Polylinien, Bemassung, Rhino-artige Kommandozeile) und ein semantisches 3D-Gebäudemodell (Wände, Türen, Treppen, Dächer als echte Bauteile) im selben Programm. Jeder Plan — Grundriss, Schnitt, Ansicht, PDF — wird aus diesem einen Modell abgeleitet."
+
+ meta = "macOS · Linux · Browser — Rust / WASM / WebGPU — AGPL-3.0"
+
+ ansatzTitle = "Ein Modell. Keine Kopien."
+ ansatzBody = "Es gibt ein semantisches Modell als einzige Wahrheit. Jede Ansicht wird daraus abgeleitet — Darstellung (Detailgrad, Linienstärken, Schraffuren) wird erst beim Rendern angewandt, nie in die Geometrie eingebacken. Wer eine Wand verschiebt, verschiebt sie überall."
+ ansatzViews = "3D-Viewport → Grundriss → Schnitt → Ansicht → PDF-Plansatz → IFC / DXF"
+
+ originTitle = "Aus dem Rhino-Plugin herausgewachsen — jetzt eigenständig."
+ originBody = "DOSSIER ist die eigenständige Neuimplementierung des gleichnamigen Rhino-Plugins: dieselbe Denkweise — Geschosse, Kategorie-Ebenen, mehrschichtige Bauteile, Prioritäts-Verschneidung — jetzt mit eigenem Datenmodell und eigener Rendering-Engine."
+
+ repo = "https://git.openbureau.ch/karim/DOSSIER-STANDALONE"
+ license = "https://git.openbureau.ch/karim/DOSSIER-STANDALONE/raw/branch/master/LICENSE"
+ bureau = "https://openbureau.ch"
+ rapport = "https://rapport.openbureau.ch"
+ forum = "https://dossier.openbureau.ch/forum"
+ forumSoon = false
diff --git a/website/i18n/de.yaml b/website/i18n/de.yaml
new file mode 100644
index 00000000..3e0bcd17
--- /dev/null
+++ b/website/i18n/de.yaml
@@ -0,0 +1 @@
+copyright: "© 2026 Karim Gabriele Varano — DOSSIER ist Teil der [openbureau](https://openbureau.ch)-Suite, AGPL-3.0-or-later."
diff --git a/website/layouts/_partials/navbar-title.html b/website/layouts/_partials/navbar-title.html
new file mode 100644
index 00000000..cb7a5fc8
--- /dev/null
+++ b/website/layouts/_partials/navbar-title.html
@@ -0,0 +1,7 @@
+{{- /* Site-Override der Theme-Wortmarke oben links: statt Logo-Bild + Site-Titel
+ die echte App-Wortmarke — "dossier" klein, Punkt im neutralen App-Akzent,
+ exakt wie in TopBar.tsx/StartScreen.tsx (siehe assets/css/custom.css
+ .dossier-logo). */ -}}
+
+ dossier.
+
diff --git a/website/layouts/index.html b/website/layouts/index.html
new file mode 100644
index 00000000..459c35e6
--- /dev/null
+++ b/website/layouts/index.html
@@ -0,0 +1,74 @@
+{{/* Bespoke Startseite: löst den generischen "hextra-home.html"-Titel-nur-
+ Fallback ab. Hängt in Hextra's eigenem Navbar/Footer/Sidebar-Rahmen
+ (baseof.html "main"-Block, gleiche Struktur wie hextra-home.html),
+ Inhalt/Styling ist eigenständig unter .dossier-home (s. custom.css). */}}
+{{ define "main" }}
+{{ $p := .Site.Params.dossier }}
+{{ $d := hugo.Data.dossier }}
+
+{{ end }}
diff --git a/website/static/fonts/archivo.woff2 b/website/static/fonts/archivo.woff2
new file mode 100644
index 00000000..716d4abd
Binary files /dev/null and b/website/static/fonts/archivo.woff2 differ
diff --git a/website/themes/hextra/.devcontainer/devcontainer.json b/website/themes/hextra/.devcontainer/devcontainer.json
new file mode 100644
index 00000000..d8a32b88
--- /dev/null
+++ b/website/themes/hextra/.devcontainer/devcontainer.json
@@ -0,0 +1,17 @@
+{
+ "image": "mcr.microsoft.com/devcontainers/go:1",
+ "features": {
+ "ghcr.io/devcontainers/features/hugo:1": {
+ "extended": true,
+ "version": "0.161.1"
+ },
+ "ghcr.io/devcontainers/features/node:1": {}
+ },
+ "customizations": {
+ "vscode": {
+ "extensions": ["mhutchie.git-graph", "esbenp.prettier-vscode", "tamasfe.even-better-toml", "budparr.language-hugo-vscode"]
+ }
+ },
+ "postCreateCommand": "npm install",
+ "forwardPorts": [1313]
+}
diff --git a/website/themes/hextra/.gitattributes b/website/themes/hextra/.gitattributes
new file mode 100644
index 00000000..0820376f
--- /dev/null
+++ b/website/themes/hextra/.gitattributes
@@ -0,0 +1,3 @@
+# Mark generated files so they are collapsed by default in GitHub diffs
+assets/css/compiled/main.css linguist-generated=true
+docs/hugo_stats.json linguist-generated=true
diff --git a/website/themes/hextra/.gitignore b/website/themes/hextra/.gitignore
new file mode 100644
index 00000000..7377a08b
--- /dev/null
+++ b/website/themes/hextra/.gitignore
@@ -0,0 +1,9 @@
+node_modules/
+public/
+resources/
+
+.hugo_build.lock
+
+# Playwright
+playwright-report/
+test-results/
diff --git a/website/themes/hextra/.prettierrc b/website/themes/hextra/.prettierrc
new file mode 100644
index 00000000..28eaa1e6
--- /dev/null
+++ b/website/themes/hextra/.prettierrc
@@ -0,0 +1,21 @@
+{
+ "plugins": [
+ "prettier-plugin-go-template"
+ ],
+ "goTemplateBracketSpacing": true,
+ "htmlWhitespaceSensitivity": "css",
+ "printWidth": 200,
+ "singleQuote": false,
+ "tabWidth": 2,
+ "trailingComma": "es5",
+ "overrides": [
+ {
+ "files": [
+ "*.html"
+ ],
+ "options": {
+ "parser": "go-template"
+ }
+ }
+ ]
+}
diff --git a/website/themes/hextra/.vscode/settings.json b/website/themes/hextra/.vscode/settings.json
new file mode 100644
index 00000000..4f3bc8d9
--- /dev/null
+++ b/website/themes/hextra/.vscode/settings.json
@@ -0,0 +1,4 @@
+{
+ "editor.tabSize": 2,
+ "markdown.extension.toc.levels": "2..6"
+}
diff --git a/website/themes/hextra/AGENTS.md b/website/themes/hextra/AGENTS.md
new file mode 100644
index 00000000..c0bbe14c
--- /dev/null
+++ b/website/themes/hextra/AGENTS.md
@@ -0,0 +1,193 @@
+# AGENTS.md
+
+This file provides guidance to AI coding agents when working with code in this repository.
+
+## Project Overview
+
+Hextra is a modern, responsive Hugo theme designed for creating documentation websites, technical blogs, and static sites. Built with Tailwind CSS, it offers features like full-text search, dark mode, multi-language support, and extensive customization options.
+
+## Development Commands
+
+### Initial Setup
+
+When working in a new worktree or fresh clone without `node_modules`, run `npm install` first to install dependencies:
+
+```bash
+npm install
+```
+
+### Development Server
+
+```bash
+# Start development server with theme reloading (recommended for theme development)
+npm run dev:theme
+```
+
+### Building
+
+```bash
+# Build the example site
+npm run build
+
+# Build CSS assets only
+npm run build:css
+```
+
+## Architecture Overview
+
+### Hugo Theme Structure
+
+- **Base Layout**: `layouts/baseof.html` wraps all pages
+- **Specialized Layouts**: `layouts/docs/`, `layouts/blog/`, `layouts/hextra-home.html`
+- **Partials**: Reusable components in `layouts/_partials/`
+ - Core UI: `navbar.html`, `sidebar.html`, `footer.html`, `breadcrumb.html`, `toc.html`
+ - Utilities: `layouts/_partials/utils/` for helper functions
+ - Custom overrides: `layouts/_partials/custom/` for user customizations
+- **Shortcodes**: Custom Markdown extensions in `layouts/_shortcodes/`
+- **Render Hooks**: Custom Markdown rendering in `layouts/_markup/` for codeblocks, headings, images, and links
+
+### Asset Organization
+
+```
+assets/
+├── css/
+│ ├── styles.css # Main stylesheet (Tailwind entry point)
+│ ├── compiled/main.css # Built CSS output (generated)
+│ ├── components/ # Component-specific styles
+│ ├── chroma/ # Syntax highlighting themes
+│ └── custom.css # User customization entry point
+└── js/
+ ├── core/ # Core JS components
+ └── flexsearch.js # Search functionality
+```
+
+### Key Components
+
+- **Search**: FlexSearch-powered full-text search (`assets/js/flexsearch.js`)
+- **Navigation**: Responsive navbar and auto-generated sidebar
+- **Theme Toggle**: Dark/light mode switching
+- **Internationalization**: 20+ language support in `i18n/`
+
+### Content Features
+
+- **Shortcodes**: `callout`, `card`, `cards`, `tabs`, `tab`, `details`, `steps`, `filetree`, `jupyter`, `badge`, `icon`, `pdf`, `include`, `asciinema`, `term`
+- **Code Features**: Syntax highlighting (Chroma), copy buttons, line numbers via render hooks
+- **SEO**: Open Graph, Twitter Cards, structured data
+- **Performance**: Minimal JavaScript, optimized CSS with Tailwind
+
+## Development Workflow
+
+### Example Site Development
+
+The `docs/` directory serves as both documentation and testing ground:
+
+- Test new features here before releasing
+- Configuration examples in `docs/hugo.yaml` showing multi-language setup
+- Content examples demonstrate all theme capabilities
+- Run from docs with: `hugo server --themesDir=../..`
+
+### CSS Development Workflow
+
+- Source: `assets/css/styles.css` (main stylesheet)
+- Build process: Tailwind CSS → PostCSS → `assets/css/compiled/main.css`
+- Component styles organized in `assets/css/components/`
+- Chroma syntax highlighting themes in `assets/css/chroma/`
+- CSS compilation requires Node.js dependencies (PostCSS, Tailwind CSS v4+)
+
+#### Rebuilding CSS after template changes
+
+Tailwind CSS relies on `docs/hugo_stats.json` to know which HTML tags, classes, and IDs are actually used in the built site, so it can tree-shake unused styles. When you modify layouts, partials, or shortcodes you must **regenerate `hugo_stats.json` first**, then rebuild the CSS:
+
+1. **Generate `docs/hugo_stats.json`** — Run Hugo with the `dev.toml` config (which sets `build.buildStats.enable = true`):
+
+ ```bash
+ # Using npm (starts a dev server that writes hugo_stats.json on every rebuild):
+ npm run dev:theme
+
+ # Or a one-shot build using the raw Hugo command:
+ hugo --config=hugo.yaml,../dev.toml --themesDir=../.. --source=docs
+ ```
+
+2. **Build the CSS** — With an up-to-date `hugo_stats.json` in place, compile the stylesheet:
+
+ ```bash
+ npm run build:css
+ ```
+
+> **Why two steps?** `dev.toml` mounts `docs/hugo_stats.json` into the Hugo asset pipeline (`assets/notwatching/hugo_stats.json`) and configures a cache-buster so that changes to the stats file trigger a CSS recompile during `dev:theme`. When running outside the dev server you need to perform these steps manually in order.
+
+### Customization Points
+
+- Custom partials: `layouts/_partials/custom/`
+- Custom CSS: `assets/css/custom.css`
+- Site-specific overrides: Copy any layout to your site's `layouts/` directory
+
+## Configuration & Requirements
+
+### Theme Requirements
+
+- Hugo minimum version: 0.146.0 (extended version required - see `theme.toml`)
+- Go 1.20+ (as specified in `go.mod`)
+- Node.js for CSS compilation (PostCSS, Tailwind CSS v4+)
+
+### Key Configuration Files
+
+- `docs/hugo.yaml` - Example Hugo configuration with multi-language setup
+- `postcss.config.mjs` - PostCSS configuration for CSS processing
+- `package.json` - Node.js dependencies and build scripts
+
+### Development Environment
+
+- Default Hugo development server: Port 1313
+- Development server runs with `--disableFastRender -D` for better development experience
+- Theme development uses `--logLevel=debug` for detailed logging
+
+### Multi-language Support
+
+- Configure languages in `hugo.yaml` (supports 20+ languages including RTL)
+- Translation files in `i18n/` directory (e.g., `en.yaml`, `fa.yaml`, `ja.yaml`, `zh-cn.yaml`)
+- Example supports English, Persian (RTL), Japanese, and Simplified Chinese
+
+## Theme Development Guidelines
+
+### Hugo Theme Conventions
+
+- Theme files in this repository override Hugo defaults
+- Follow Hugo's theme development guidelines for compatibility
+- Maintain backward compatibility with existing configurations
+
+### JavaScript & Performance
+
+- All JavaScript components are designed to have minimal footprint
+- Core JS components in `assets/js/core/`: `theme.js`, `nav-menu.js`, `code-copy.js`, `sidebar.js`, `tabs.js`, etc.
+- FlexSearch powers offline full-text search (`assets/js/flexsearch.js`)
+
+### CSS Architecture
+
+- Uses Tailwind CSS v4+ with PostCSS processing
+- Component-based CSS organization in `assets/css/components/`
+- Compiled output goes to `assets/css/compiled/main.css`
+- Prettier formatting for Go templates and code consistency
+
+### Accessibility (WCAG Compliance)
+
+All new features and UI changes must follow the [Web Content Accessibility Guidelines (WCAG) 2.2](https://www.w3.org/TR/WCAG22/) at the **AA** conformance level. Key requirements:
+
+- **Semantic HTML**: Use appropriate elements (``, ``, ``, ``, ``, etc.) instead of generic ``/`
` where applicable.
+- **ARIA attributes**: Add `aria-label`, `aria-expanded`, `aria-controls`, `aria-current`, `role`, and other ARIA attributes to interactive components (menus, toggles, dropdowns, modals) so screen readers can interpret them.
+- **Keyboard navigation**: All interactive elements must be reachable and operable via keyboard (`Tab`, `Enter`, `Escape`, arrow keys). Manage focus appropriately when opening/closing menus, modals, and drawers.
+- **Focus indicators**: Never remove visible focus outlines. Use the existing `hextra-focus` utility or equivalent visible focus ring styles.
+- **Color contrast**: Text and interactive elements must meet WCAG AA contrast ratios (4.5:1 for normal text, 3:1 for large text). Verify in both light and dark modes.
+- **Images and icons**: Decorative SVGs/icons should have `aria-hidden="true"`. Meaningful images need descriptive `alt` text.
+- **Skip links and landmarks**: Preserve existing skip-navigation links and ARIA landmark roles (`role="navigation"`, `role="search"`, etc.).
+- **Live regions**: Use `aria-live` for dynamic content updates (e.g., search results, status messages) so assistive technology announces changes.
+- **Form controls**: Associate `` elements with inputs. Provide accessible names for buttons that contain only icons.
+
+When introducing a new component or modifying an existing one, verify it works with keyboard-only navigation and review the rendered HTML for proper semantics and ARIA usage.
+
+### Testing & Quality Assurance
+
+- Test all changes in `docs/` before releasing
+- Use `npm run dev:theme` for theme development with hot reloading
+- Format code with `npx prettier --write .` before committing
+- Verify multi-language functionality across supported languages
diff --git a/website/themes/hextra/CLAUDE.md b/website/themes/hextra/CLAUDE.md
new file mode 100644
index 00000000..c0bbe14c
--- /dev/null
+++ b/website/themes/hextra/CLAUDE.md
@@ -0,0 +1,193 @@
+# AGENTS.md
+
+This file provides guidance to AI coding agents when working with code in this repository.
+
+## Project Overview
+
+Hextra is a modern, responsive Hugo theme designed for creating documentation websites, technical blogs, and static sites. Built with Tailwind CSS, it offers features like full-text search, dark mode, multi-language support, and extensive customization options.
+
+## Development Commands
+
+### Initial Setup
+
+When working in a new worktree or fresh clone without `node_modules`, run `npm install` first to install dependencies:
+
+```bash
+npm install
+```
+
+### Development Server
+
+```bash
+# Start development server with theme reloading (recommended for theme development)
+npm run dev:theme
+```
+
+### Building
+
+```bash
+# Build the example site
+npm run build
+
+# Build CSS assets only
+npm run build:css
+```
+
+## Architecture Overview
+
+### Hugo Theme Structure
+
+- **Base Layout**: `layouts/baseof.html` wraps all pages
+- **Specialized Layouts**: `layouts/docs/`, `layouts/blog/`, `layouts/hextra-home.html`
+- **Partials**: Reusable components in `layouts/_partials/`
+ - Core UI: `navbar.html`, `sidebar.html`, `footer.html`, `breadcrumb.html`, `toc.html`
+ - Utilities: `layouts/_partials/utils/` for helper functions
+ - Custom overrides: `layouts/_partials/custom/` for user customizations
+- **Shortcodes**: Custom Markdown extensions in `layouts/_shortcodes/`
+- **Render Hooks**: Custom Markdown rendering in `layouts/_markup/` for codeblocks, headings, images, and links
+
+### Asset Organization
+
+```
+assets/
+├── css/
+│ ├── styles.css # Main stylesheet (Tailwind entry point)
+│ ├── compiled/main.css # Built CSS output (generated)
+│ ├── components/ # Component-specific styles
+│ ├── chroma/ # Syntax highlighting themes
+│ └── custom.css # User customization entry point
+└── js/
+ ├── core/ # Core JS components
+ └── flexsearch.js # Search functionality
+```
+
+### Key Components
+
+- **Search**: FlexSearch-powered full-text search (`assets/js/flexsearch.js`)
+- **Navigation**: Responsive navbar and auto-generated sidebar
+- **Theme Toggle**: Dark/light mode switching
+- **Internationalization**: 20+ language support in `i18n/`
+
+### Content Features
+
+- **Shortcodes**: `callout`, `card`, `cards`, `tabs`, `tab`, `details`, `steps`, `filetree`, `jupyter`, `badge`, `icon`, `pdf`, `include`, `asciinema`, `term`
+- **Code Features**: Syntax highlighting (Chroma), copy buttons, line numbers via render hooks
+- **SEO**: Open Graph, Twitter Cards, structured data
+- **Performance**: Minimal JavaScript, optimized CSS with Tailwind
+
+## Development Workflow
+
+### Example Site Development
+
+The `docs/` directory serves as both documentation and testing ground:
+
+- Test new features here before releasing
+- Configuration examples in `docs/hugo.yaml` showing multi-language setup
+- Content examples demonstrate all theme capabilities
+- Run from docs with: `hugo server --themesDir=../..`
+
+### CSS Development Workflow
+
+- Source: `assets/css/styles.css` (main stylesheet)
+- Build process: Tailwind CSS → PostCSS → `assets/css/compiled/main.css`
+- Component styles organized in `assets/css/components/`
+- Chroma syntax highlighting themes in `assets/css/chroma/`
+- CSS compilation requires Node.js dependencies (PostCSS, Tailwind CSS v4+)
+
+#### Rebuilding CSS after template changes
+
+Tailwind CSS relies on `docs/hugo_stats.json` to know which HTML tags, classes, and IDs are actually used in the built site, so it can tree-shake unused styles. When you modify layouts, partials, or shortcodes you must **regenerate `hugo_stats.json` first**, then rebuild the CSS:
+
+1. **Generate `docs/hugo_stats.json`** — Run Hugo with the `dev.toml` config (which sets `build.buildStats.enable = true`):
+
+ ```bash
+ # Using npm (starts a dev server that writes hugo_stats.json on every rebuild):
+ npm run dev:theme
+
+ # Or a one-shot build using the raw Hugo command:
+ hugo --config=hugo.yaml,../dev.toml --themesDir=../.. --source=docs
+ ```
+
+2. **Build the CSS** — With an up-to-date `hugo_stats.json` in place, compile the stylesheet:
+
+ ```bash
+ npm run build:css
+ ```
+
+> **Why two steps?** `dev.toml` mounts `docs/hugo_stats.json` into the Hugo asset pipeline (`assets/notwatching/hugo_stats.json`) and configures a cache-buster so that changes to the stats file trigger a CSS recompile during `dev:theme`. When running outside the dev server you need to perform these steps manually in order.
+
+### Customization Points
+
+- Custom partials: `layouts/_partials/custom/`
+- Custom CSS: `assets/css/custom.css`
+- Site-specific overrides: Copy any layout to your site's `layouts/` directory
+
+## Configuration & Requirements
+
+### Theme Requirements
+
+- Hugo minimum version: 0.146.0 (extended version required - see `theme.toml`)
+- Go 1.20+ (as specified in `go.mod`)
+- Node.js for CSS compilation (PostCSS, Tailwind CSS v4+)
+
+### Key Configuration Files
+
+- `docs/hugo.yaml` - Example Hugo configuration with multi-language setup
+- `postcss.config.mjs` - PostCSS configuration for CSS processing
+- `package.json` - Node.js dependencies and build scripts
+
+### Development Environment
+
+- Default Hugo development server: Port 1313
+- Development server runs with `--disableFastRender -D` for better development experience
+- Theme development uses `--logLevel=debug` for detailed logging
+
+### Multi-language Support
+
+- Configure languages in `hugo.yaml` (supports 20+ languages including RTL)
+- Translation files in `i18n/` directory (e.g., `en.yaml`, `fa.yaml`, `ja.yaml`, `zh-cn.yaml`)
+- Example supports English, Persian (RTL), Japanese, and Simplified Chinese
+
+## Theme Development Guidelines
+
+### Hugo Theme Conventions
+
+- Theme files in this repository override Hugo defaults
+- Follow Hugo's theme development guidelines for compatibility
+- Maintain backward compatibility with existing configurations
+
+### JavaScript & Performance
+
+- All JavaScript components are designed to have minimal footprint
+- Core JS components in `assets/js/core/`: `theme.js`, `nav-menu.js`, `code-copy.js`, `sidebar.js`, `tabs.js`, etc.
+- FlexSearch powers offline full-text search (`assets/js/flexsearch.js`)
+
+### CSS Architecture
+
+- Uses Tailwind CSS v4+ with PostCSS processing
+- Component-based CSS organization in `assets/css/components/`
+- Compiled output goes to `assets/css/compiled/main.css`
+- Prettier formatting for Go templates and code consistency
+
+### Accessibility (WCAG Compliance)
+
+All new features and UI changes must follow the [Web Content Accessibility Guidelines (WCAG) 2.2](https://www.w3.org/TR/WCAG22/) at the **AA** conformance level. Key requirements:
+
+- **Semantic HTML**: Use appropriate elements (``, ``, ``, ``, ``, etc.) instead of generic ``/`
` where applicable.
+- **ARIA attributes**: Add `aria-label`, `aria-expanded`, `aria-controls`, `aria-current`, `role`, and other ARIA attributes to interactive components (menus, toggles, dropdowns, modals) so screen readers can interpret them.
+- **Keyboard navigation**: All interactive elements must be reachable and operable via keyboard (`Tab`, `Enter`, `Escape`, arrow keys). Manage focus appropriately when opening/closing menus, modals, and drawers.
+- **Focus indicators**: Never remove visible focus outlines. Use the existing `hextra-focus` utility or equivalent visible focus ring styles.
+- **Color contrast**: Text and interactive elements must meet WCAG AA contrast ratios (4.5:1 for normal text, 3:1 for large text). Verify in both light and dark modes.
+- **Images and icons**: Decorative SVGs/icons should have `aria-hidden="true"`. Meaningful images need descriptive `alt` text.
+- **Skip links and landmarks**: Preserve existing skip-navigation links and ARIA landmark roles (`role="navigation"`, `role="search"`, etc.).
+- **Live regions**: Use `aria-live` for dynamic content updates (e.g., search results, status messages) so assistive technology announces changes.
+- **Form controls**: Associate `` elements with inputs. Provide accessible names for buttons that contain only icons.
+
+When introducing a new component or modifying an existing one, verify it works with keyboard-only navigation and review the rendered HTML for proper semantics and ARIA usage.
+
+### Testing & Quality Assurance
+
+- Test all changes in `docs/` before releasing
+- Use `npm run dev:theme` for theme development with hot reloading
+- Format code with `npx prettier --write .` before committing
+- Verify multi-language functionality across supported languages
diff --git a/website/themes/hextra/LICENSE b/website/themes/hextra/LICENSE
new file mode 100644
index 00000000..946f3044
--- /dev/null
+++ b/website/themes/hextra/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 Xin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/website/themes/hextra/README.fa.md b/website/themes/hextra/README.fa.md
new file mode 100644
index 00000000..a57bfb33
--- /dev/null
+++ b/website/themes/hextra/README.fa.md
@@ -0,0 +1,49 @@
+
+
هگزترا
+
English | 简体中文 | فارسی
+
تم هیوگو مدرن، پاسخگو و دارای امکانات کامل برای ایجاد وبسایتهای استاتیک زیبا.
+
+نسخهی نمایشی → [imfing.github.io/hextra](https://imfing.github.io/hextra/fa)
+
+
+
+
+
+
+
+
+
+
+
+## ویژگیها
+
+- **طراحی زیبا** - با الهام از Nextra، هگزترا از Tailwind CSS برای ارائه یک طراحی مدرن که سایت شما را برجسته میکند، استفاده میکند.
+- **طراحی واکنشگرا و حالت تیره** - در تمام دستگاهها، از تلفن همراه، تبلت تا دسکتاپ، عالی به نظر میرسد. حالت تیره نیز برای انطباق با شرایط مختلف روشنایی پشتیبانی میشود.
+- **سریع و سبک** - طراحی شده توسط Hugo، یک ایجادکننده سایت استاتیک سریع مثل رعد و برق که در یک فایل باینری قرار گرفته است، هگزترا ردپای خود را به حداقل میرساند. برای استفاده از آن به جاوااسکریپت یا Node.js نیازی ندارید.
+- **جستجوی متن کامل** - جستجوی متن کاملا آفلاین داخلی طراحی شده توسط FlexSearch، بدون نیاز به پیکربندی اضافی.
+- **امکانات کامل** - برای بهتر کردن محتوای شما مارکداون، برجستهکردن سینتکس، فرمولهای ریاضی LaTeX، نمودارها و عناصر Shortcodeها را شامل میشه. فهرست مطالب، بردکرامب، صفحهبندی، پیمایش نوار کناری و موارد دیگر همه به صورت خودکار تولید میشوند.
+- **چند زبانه و سئو آماده** - سایتهای چند زبانه با حالت چند زبانه Hugo راحت ساخته میشوند. پشتیبانی خارج از جعبه برای برچسبهای سئو، Open Graph و کارتهای توییتر گنجانده شده است.
+- **پشتیبانی از دسترسپذیری** - اجزای تعاملی از نشانهگذاری معنایی، رفتار سازگار با صفحهکلید و بررسیهای خودکار دسترسپذیری استفاده میکنند تا رابط کاربری در گردشکارهای رایج فناوریهای کمکی قابل استفاده بماند.
+
+## شروع کنید
+
+### شروع سریع از طریق Template
+
+استفاده از [Hextra Starter Template](https://github.com/imfing/hextra-starter-template) سادهترین روش برای راهاندازی سریع یک وبسایت جدید با تم هگزترا است. با کلیک بر روی دکمه "Use this template" در بالای صفحه مخزن شروع کنید.
+
+مخزن تم همچنین شامل یک [گردش کار گیتهاب Actions](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) رای بهکاراندازی وبسایت شما در گیتهاب Pages است.
+
+
+
+### استفاده
+
+برای اطلاعات بیشتر به بخش [مستندات](https://imfing.github.io/hextra/fa/docs) مراجعه کنید.
+
+## مشارکت کردن
+
+از مشارکت افراد جدید استقبال میکنیم.
+ برای شروع، [راهنمای مشارکت](.github/CONTRIBUTING.md) را بررسی کنید.
+
+## مجوز
+
+[مجوز MIT](./LICENSE)
diff --git a/website/themes/hextra/README.md b/website/themes/hextra/README.md
new file mode 100644
index 00000000..89a1f7d4
--- /dev/null
+++ b/website/themes/hextra/README.md
@@ -0,0 +1,49 @@
+
+
Hextra
+
English | 简体中文 | فارسی
+
Modern, responsive, batteries-included Hugo theme for creating beautiful static websites.
+
+Demo → [imfing.github.io/hextra](https://imfing.github.io/hextra/)
+
+
+
+
+
+
+
+
+
+
+
+## Features
+
+- **Beautiful Design** - Inspired by Nextra, Hextra utilizes Tailwind CSS to offer a modern design that makes your site look outstanding.
+- **Responsive Layout and Dark Mode** - It looks great on all devices, from mobile to desktop. Dark mode is also supported to accommodate various lighting conditions.
+- **Fast and Lightweight** - Powered by Hugo, a lightning-fast static-site generator housed in a single binary file, Hextra keeps its footprint minimal. No JavaScript or Node.js are needed to use it.
+- **Full-text Search** - Built-in offline full-text search powered by FlexSearch, no extra configuration required.
+- **Battery-included** - Markdown, syntax highlighting, LaTeX math formulae, diagrams and Shortcodes elements to enhance your content. Table of contents, breadcrumbs, pagination, sidebar navigation and more are all automatically generated.
+- **Multi-language and SEO Ready** - Multi-language sites made easy with Hugo's multilingual mode. Out-of-the-box support is included for SEO tags, Open Graph, and Twitter Cards.
+- **Accessibility Support** - Interactive components use semantic markup, keyboard-friendly behavior, and automated accessibility checks to keep the UI usable across common assistive workflows.
+
+## Quick Start
+
+### Use the template
+
+Using the [Hextra Starter Template](https://github.com/imfing/hextra-starter-template) is the simplest method to bootstrap a new website with Hextra theme. Get started by clicking the "Use this template" button on the template repository page.
+
+The template repository also includes a [GitHub Actions workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) for deploying your website to GitHub Pages.
+
+
+
+### Usage
+
+Refer to the [documentation](https://imfing.github.io/hextra/docs) for more information.
+
+## Contributing
+
+Contributions are welcome.
+Check out the [contributing guide](.github/CONTRIBUTING.md) to get started.
+
+## License
+
+[MIT License](./LICENSE)
diff --git a/website/themes/hextra/README.zh-cn.md b/website/themes/hextra/README.zh-cn.md
new file mode 100644
index 00000000..8691f0ed
--- /dev/null
+++ b/website/themes/hextra/README.zh-cn.md
@@ -0,0 +1,46 @@
+
+
Hextra
+
English | 简体中文 | فارسی
+
用于创建美观的静态站点的现代化, 响应式, 功能强大的 Hugo 主题.
+
+演示 → [imfing.github.io/hextra](https://imfing.github.io/hextra/)
+
+
+
+
+
+
+
+
+
+
+
+## 特性
+
+- **美观的设计** - 受 Nextra 的启发,Hextra 利用 Tailwind CSS 提供现代化的设计,使您的网站看起来美观有加.
+- **响应式布局和深色模式支持** - 在任何设备上看起来都足够美观, 无论是手机, 平板电脑或者电脑. 深色模式的支持使 Hextra 可以应对各种照明环境.
+- **快速且轻量** - 由 Hugo 强力支持, Hugo 是一个快如闪电的静态站点生成器, 这一切都只需一个可执行文件, Hextra 始终保持最小化, 无需 Javascript 或者 Node.js.
+- **全文搜索** - 集成了 Flexsearch 的全文搜索, 无需额外的配置.
+- **功能齐全** - Markdown, 代码高亮, LaTex 数学公式, diagrams 图表和 Shortcodes 都可以用于丰富你的内容. 目录, 面包屑导航, 分页, 侧边栏等均由 Hextra 自动生成。
+- **多语言和 SEO Ready** - Hugo 的多语言模式使得构建多语言网站更简单. 具有 SEO tags, Open Graph, 和 Twitter Cards 等诸多开箱即用的功能.
+- **无障碍支持** - 交互组件使用语义化标记、友好的键盘交互以及自动化无障碍检查,以便在常见辅助技术工作流中保持良好的可用性。
+
+## 快速开始
+
+### 使用模板
+
+使用 [Hextra stater template](https://github.com/imfing/hextra-starter-template) 是使用 Hextra 主题的最简单方法. 点击仓库页面上的 `Use this template` 按钮开始使用.
+
+此仓库中包含一个 [GitHub Actions workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) 来帮助你免费在 GitHub Pages 上自动构建和部署网站.
+
+### 使用
+
+转至[文档](https://imfing.github.io/hextra/zh-cn/docs)
+
+## 贡献
+
+该项目正在积极开发中. 欢迎贡献!
+
+## 许可证
+
+[MIT License](./LICENSE)
diff --git a/website/themes/hextra/assets/css/chroma/dark.css b/website/themes/hextra/assets/css/chroma/dark.css
new file mode 100644
index 00000000..c4261570
--- /dev/null
+++ b/website/themes/hextra/assets/css/chroma/dark.css
@@ -0,0 +1,89 @@
+.dark .highlight {
+ /* Background .bg { color: #c9d1d9; background-color: #0d1117; }
+ /* PreWrapper .chroma { color: #c9d1d9; background-color: #0d1117; } */
+ /* Other */ .chroma .x { }
+ /* Error */ .chroma .err { color: #f85149 }
+ /* CodeLine */ .chroma .cl { }
+ /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
+ /* LineTableTD .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } */
+ /* LineTable .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } */
+ /* LineHighlight .chroma .hl { background-color: #ffffcc } */
+ /* LineNumbersTable .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #64686c } */
+ /* LineNumbers .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #6e7681 } */
+ /* Line */ .chroma .line { display: flex; }
+ /* Keyword */ .chroma .k { color: #ff7b72 }
+ /* KeywordConstant */ .chroma .kc { color: #79c0ff }
+ /* KeywordDeclaration */ .chroma .kd { color: #ff7b72 }
+ /* KeywordNamespace */ .chroma .kn { color: #ff7b72 }
+ /* KeywordPseudo */ .chroma .kp { color: #79c0ff }
+ /* KeywordReserved */ .chroma .kr { color: #ff7b72 }
+ /* KeywordType */ .chroma .kt { color: #ff7b72 }
+ /* Name */ .chroma .n { }
+ /* NameAttribute */ .chroma .na { }
+ /* NameBuiltin */ .chroma .nb { }
+ /* NameBuiltinPseudo */ .chroma .bp { }
+ /* NameClass */ .chroma .nc { color: #f0883e; font-weight: bold }
+ /* NameConstant */ .chroma .no { color: #79c0ff; font-weight: bold }
+ /* NameDecorator */ .chroma .nd { color: #d2a8ff; font-weight: bold }
+ /* NameEntity */ .chroma .ni { color: #ffa657 }
+ /* NameException */ .chroma .ne { color: #f0883e; font-weight: bold }
+ /* NameFunction */ .chroma .nf { color: #d2a8ff; font-weight: bold }
+ /* NameFunctionMagic */ .chroma .fm { }
+ /* NameLabel */ .chroma .nl { color: #79c0ff; font-weight: bold }
+ /* NameNamespace */ .chroma .nn { color: #ff7b72 }
+ /* NameOther */ .chroma .nx { }
+ /* NameProperty */ .chroma .py { color: #79c0ff }
+ /* NameTag */ .chroma .nt { color: #7ee787 }
+ /* NameVariable */ .chroma .nv { color: #79c0ff }
+ /* NameVariableClass */ .chroma .vc { }
+ /* NameVariableGlobal */ .chroma .vg { }
+ /* NameVariableInstance */ .chroma .vi { }
+ /* NameVariableMagic */ .chroma .vm { }
+ /* Literal */ .chroma .l { color: #a5d6ff }
+ /* LiteralDate */ .chroma .ld { color: #79c0ff }
+ /* LiteralString */ .chroma .s { color: #a5d6ff }
+ /* LiteralStringAffix */ .chroma .sa { color: #79c0ff }
+ /* LiteralStringBacktick */ .chroma .sb { color: #a5d6ff }
+ /* LiteralStringChar */ .chroma .sc { color: #a5d6ff }
+ /* LiteralStringDelimiter */ .chroma .dl { color: #79c0ff }
+ /* LiteralStringDoc */ .chroma .sd { color: #a5d6ff }
+ /* LiteralStringDouble */ .chroma .s2 { color: #a5d6ff }
+ /* LiteralStringEscape */ .chroma .se { color: #79c0ff }
+ /* LiteralStringHeredoc */ .chroma .sh { color: #79c0ff }
+ /* LiteralStringInterpol */ .chroma .si { color: #a5d6ff }
+ /* LiteralStringOther */ .chroma .sx { color: #a5d6ff }
+ /* LiteralStringRegex */ .chroma .sr { color: #79c0ff }
+ /* LiteralStringSingle */ .chroma .s1 { color: #a5d6ff }
+ /* LiteralStringSymbol */ .chroma .ss { color: #a5d6ff }
+ /* LiteralNumber */ .chroma .m { color: #a5d6ff }
+ /* LiteralNumberBin */ .chroma .mb { color: #a5d6ff }
+ /* LiteralNumberFloat */ .chroma .mf { color: #a5d6ff }
+ /* LiteralNumberHex */ .chroma .mh { color: #a5d6ff }
+ /* LiteralNumberInteger */ .chroma .mi { color: #a5d6ff }
+ /* LiteralNumberIntegerLong */ .chroma .il { color: #a5d6ff }
+ /* LiteralNumberOct */ .chroma .mo { color: #a5d6ff }
+ /* Operator */ .chroma .o { color: #ff7b72; font-weight: bold }
+ /* OperatorWord */ .chroma .ow { color: #ff7b72; font-weight: bold }
+ /* Punctuation */ .chroma .p { }
+ /* Comment */ .chroma .c { color: #8b949e; font-style: italic }
+ /* CommentHashbang */ .chroma .ch { color: #8b949e; font-style: italic }
+ /* CommentMultiline */ .chroma .cm { color: #8b949e; font-style: italic }
+ /* CommentSingle */ .chroma .c1 { color: #8b949e; font-style: italic }
+ /* CommentSpecial */ .chroma .cs { color: #8b949e; font-weight: bold; font-style: italic }
+ /* CommentPreproc */ .chroma .cp { color: #8b949e; font-weight: bold; font-style: italic }
+ /* CommentPreprocFile */ .chroma .cpf { color: #8b949e; font-weight: bold; font-style: italic }
+ /* Generic */ .chroma .g { }
+ /* GenericDeleted */ .chroma .gd { color: #ffa198; background-color: #490202 }
+ /* GenericEmph */ .chroma .ge { color: inherit; font-style: italic }
+ /* GenericError */ .chroma .gr { color: #ffa198 }
+ /* GenericHeading */ .chroma .gh { color: #79c0ff; font-weight: bold }
+ /* GenericInserted */ .chroma .gi { color: #56d364; background-color: #0f5323 }
+ /* GenericOutput */ .chroma .go { color: #8b949e }
+ /* GenericPrompt */ .chroma .gp { color: #8b949e }
+ /* GenericStrong */ .chroma .gs { font-weight: bold }
+ /* GenericSubheading */ .chroma .gu { color: #79c0ff }
+ /* GenericTraceback */ .chroma .gt { color: #ff7b72 }
+ /* GenericUnderline */ .chroma .gl { text-decoration: underline }
+ /* TextWhitespace */ .chroma .w { color: #6e7681 }
+}
+
diff --git a/website/themes/hextra/assets/css/chroma/light.css b/website/themes/hextra/assets/css/chroma/light.css
new file mode 100644
index 00000000..20990c7b
--- /dev/null
+++ b/website/themes/hextra/assets/css/chroma/light.css
@@ -0,0 +1,90 @@
+/* Light theme for syntax highlight */
+/* Generated using `hugo gen chromastyles --style=github` */
+.highlight {
+ /* Background .bg { background-color: #ffffff; } */
+ /* PreWrapper .chroma { background-color: #ffffff; } */
+ /* Other .chroma .x { } */
+ /* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
+ /* CodeLine .chroma .cl { } */
+ /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
+ /* LineTableTD .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } */
+ /* LineTable .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } */
+ /* LineHighlight .chroma .hl { background-color: #ffffcc } */
+ /* LineNumbersTable .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } */
+ /* LineNumbers .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f } */
+ /* Line */ .chroma .line { display: flex; }
+ /* Keyword */ .chroma .k { color: #000000; font-weight: bold }
+ /* KeywordConstant */ .chroma .kc { color: #000000; font-weight: bold }
+ /* KeywordDeclaration */ .chroma .kd { color: #000000; font-weight: bold }
+ /* KeywordNamespace */ .chroma .kn { color: #000000; font-weight: bold }
+ /* KeywordPseudo */ .chroma .kp { color: #000000; font-weight: bold }
+ /* KeywordReserved */ .chroma .kr { color: #000000; font-weight: bold }
+ /* KeywordType */ .chroma .kt { color: #445588; font-weight: bold }
+ /* Name .chroma .n { } */
+ /* NameAttribute */ .chroma .na { color: #008080 }
+ /* NameBuiltin */ .chroma .nb { color: #0086b3 }
+ /* NameBuiltinPseudo */ .chroma .bp { color: #999999 }
+ /* NameClass */ .chroma .nc { color: #445588; font-weight: bold }
+ /* NameConstant */ .chroma .no { color: #008080 }
+ /* NameDecorator */ .chroma .nd { color: #3c5d5d; font-weight: bold }
+ /* NameEntity */ .chroma .ni { color: #800080 }
+ /* NameException */ .chroma .ne { color: #990000; font-weight: bold }
+ /* NameFunction */ .chroma .nf { color: #990000; font-weight: bold }
+ /* NameFunctionMagic .chroma .fm { } */
+ /* NameLabel */ .chroma .nl { color: #990000; font-weight: bold }
+ /* NameNamespace */ .chroma .nn { color: #555555 }
+ /* NameOther .chroma .nx { } */
+ /* NameProperty .chroma .py { } */
+ /* NameTag */ .chroma .nt { color: #000080 }
+ /* NameVariable */ .chroma .nv { color: #008080 }
+ /* NameVariableClass */ .chroma .vc { color: #008080 }
+ /* NameVariableGlobal */ .chroma .vg { color: #008080 }
+ /* NameVariableInstance */ .chroma .vi { color: #008080 }
+ /* NameVariableMagic .chroma .vm { } */
+ /* Literal .chroma .l { } */
+ /* LiteralDate .chroma .ld { } */
+ /* LiteralString */ .chroma .s { color: #dd1144 }
+ /* LiteralStringAffix */ .chroma .sa { color: #dd1144 }
+ /* LiteralStringBacktick */ .chroma .sb { color: #dd1144 }
+ /* LiteralStringChar */ .chroma .sc { color: #dd1144 }
+ /* LiteralStringDelimiter */ .chroma .dl { color: #dd1144 }
+ /* LiteralStringDoc */ .chroma .sd { color: #dd1144 }
+ /* LiteralStringDouble */ .chroma .s2 { color: #dd1144 }
+ /* LiteralStringEscape */ .chroma .se { color: #dd1144 }
+ /* LiteralStringHeredoc */ .chroma .sh { color: #dd1144 }
+ /* LiteralStringInterpol */ .chroma .si { color: #dd1144 }
+ /* LiteralStringOther */ .chroma .sx { color: #dd1144 }
+ /* LiteralStringRegex */ .chroma .sr { color: #009926 }
+ /* LiteralStringSingle */ .chroma .s1 { color: #dd1144 }
+ /* LiteralStringSymbol */ .chroma .ss { color: #990073 }
+ /* LiteralNumber */ .chroma .m { color: #009999 }
+ /* LiteralNumberBin */ .chroma .mb { color: #009999 }
+ /* LiteralNumberFloat */ .chroma .mf { color: #009999 }
+ /* LiteralNumberHex */ .chroma .mh { color: #009999 }
+ /* LiteralNumberInteger */ .chroma .mi { color: #009999 }
+ /* LiteralNumberIntegerLong */ .chroma .il { color: #009999 }
+ /* LiteralNumberOct */ .chroma .mo { color: #009999 }
+ /* Operator */ .chroma .o { color: #000000; font-weight: bold }
+ /* OperatorWord */ .chroma .ow { color: #000000; font-weight: bold }
+ /* Punctuation .chroma .p { } */
+ /* Comment */ .chroma .c { color: #999988; font-style: italic }
+ /* CommentHashbang */ .chroma .ch { color: #999988; font-style: italic }
+ /* CommentMultiline */ .chroma .cm { color: #999988; font-style: italic }
+ /* CommentSingle */ .chroma .c1 { color: #999988; font-style: italic }
+ /* CommentSpecial */ .chroma .cs { color: #999999; font-weight: bold; font-style: italic }
+ /* CommentPreproc */ .chroma .cp { color: #999999; font-weight: bold; font-style: italic }
+ /* CommentPreprocFile */ .chroma .cpf { color: #999999; font-weight: bold; font-style: italic }
+ /* Generic .chroma .g { } */
+ /* GenericDeleted */ .chroma .gd { color: #000000; background-color: #ffdddd }
+ /* GenericEmph */ .chroma .ge { color: #000000; font-style: italic }
+ /* GenericError */ .chroma .gr { color: #aa0000 }
+ /* GenericHeading */ .chroma .gh { color: #999999 }
+ /* GenericInserted */ .chroma .gi { color: #000000; background-color: #ddffdd }
+ /* GenericOutput */ .chroma .go { color: #888888 }
+ /* GenericPrompt */ .chroma .gp { color: #555555 }
+ /* GenericStrong */ .chroma .gs { font-weight: bold }
+ /* GenericSubheading */ .chroma .gu { color: #aaaaaa }
+ /* GenericTraceback */ .chroma .gt { color: #aa0000 }
+ /* GenericUnderline */ .chroma .gl { text-decoration: underline }
+ /* TextWhitespace */ .chroma .w { color: #bbbbbb }
+}
diff --git a/website/themes/hextra/assets/css/compiled/main.css b/website/themes/hextra/assets/css/compiled/main.css
new file mode 100644
index 00000000..a221a0b9
--- /dev/null
+++ b/website/themes/hextra/assets/css/compiled/main.css
@@ -0,0 +1,2 @@
+/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
+@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial}}}@layer theme{:root,:host{--hx-font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--hx-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--hx-color-red-100:oklch(93.6% .032 17.717);--hx-color-red-200:oklch(88.5% .062 18.334);--hx-color-red-900:oklch(39.6% .141 25.723);--hx-color-orange-50:oklch(98% .016 73.684);--hx-color-orange-100:oklch(95.4% .038 75.164);--hx-color-orange-300:oklch(83.7% .128 66.29);--hx-color-orange-400:oklch(75% .183 55.934);--hx-color-orange-800:oklch(47% .157 37.304);--hx-color-amber-100:oklch(96.2% .059 95.617);--hx-color-amber-200:oklch(92.4% .12 95.746);--hx-color-amber-900:oklch(41.4% .112 45.904);--hx-color-yellow-50:oklch(98.7% .026 102.212);--hx-color-yellow-100:oklch(97.3% .071 103.193);--hx-color-yellow-200:oklch(94.5% .129 101.54);--hx-color-yellow-700:oklch(55.4% .135 66.442);--hx-color-yellow-900:oklch(42.1% .095 57.708);--hx-color-green-100:oklch(96.2% .044 156.743);--hx-color-green-200:oklch(92.5% .084 155.995);--hx-color-green-900:oklch(39.3% .095 152.535);--hx-color-blue-100:oklch(93.2% .032 255.585);--hx-color-blue-200:oklch(88.2% .059 254.128);--hx-color-blue-900:oklch(37.9% .146 265.522);--hx-color-indigo-100:oklch(93% .034 272.788);--hx-color-indigo-200:oklch(87% .065 274.039);--hx-color-indigo-900:oklch(35.9% .144 278.697);--hx-color-purple-100:oklch(94.6% .033 307.174);--hx-color-purple-200:oklch(90.2% .063 306.703);--hx-color-purple-900:oklch(38.1% .176 304.987);--hx-color-slate-50:oklch(98.4% .003 247.858);--hx-color-slate-100:oklch(96.8% .007 247.896);--hx-color-slate-900:oklch(20.8% .042 265.755);--hx-color-gray-50:oklch(98.5% .002 247.839);--hx-color-gray-100:oklch(96.7% .003 264.542);--hx-color-gray-200:oklch(92.8% .006 264.531);--hx-color-gray-300:oklch(87.2% .01 258.338);--hx-color-gray-400:oklch(70.7% .022 261.325);--hx-color-gray-500:oklch(55.1% .027 264.364);--hx-color-gray-600:oklch(44.6% .03 256.802);--hx-color-gray-700:oklch(37.3% .034 259.733);--hx-color-gray-800:oklch(27.8% .033 256.848);--hx-color-gray-900:oklch(21% .034 264.665);--hx-color-neutral-50:oklch(98.5% 0 0);--hx-color-neutral-200:oklch(92.2% 0 0);--hx-color-neutral-300:oklch(87% 0 0);--hx-color-neutral-400:oklch(70.8% 0 0);--hx-color-neutral-500:oklch(55.6% 0 0);--hx-color-neutral-600:oklch(43.9% 0 0);--hx-color-neutral-700:oklch(37.1% 0 0);--hx-color-neutral-800:oklch(26.9% 0 0);--hx-color-neutral-900:oklch(20.5% 0 0);--hx-color-black:#000;--hx-color-white:#fff;--hx-spacing:.25rem;--hx-breakpoint-xl:80rem;--hx-text-xs:.75rem;--hx-text-xs--line-height:calc(1 / .75);--hx-text-sm:.875rem;--hx-text-sm--line-height:calc(1.25 / .875);--hx-text-base:1rem;--hx-text-base--line-height:calc(1.5 / 1);--hx-text-lg:1.125rem;--hx-text-lg--line-height:calc(1.75 / 1.125);--hx-text-xl:1.25rem;--hx-text-xl--line-height:calc(1.75 / 1.25);--hx-text-2xl:1.5rem;--hx-text-2xl--line-height:calc(2 / 1.5);--hx-text-3xl:1.875rem;--hx-text-3xl--line-height:calc(2.25 / 1.875);--hx-text-4xl:2.25rem;--hx-text-4xl--line-height:calc(2.5 / 2.25);--hx-text-5xl:3rem;--hx-text-5xl--line-height:1;--hx-font-weight-normal:400;--hx-font-weight-medium:500;--hx-font-weight-semibold:600;--hx-font-weight-bold:700;--hx-font-weight-extrabold:800;--hx-tracking-tighter:-.05em;--hx-tracking-tight:-.025em;--hx-leading-tight:1.25;--hx-radius-xs:.125rem;--hx-radius-sm:.25rem;--hx-radius-md:.375rem;--hx-radius-lg:.5rem;--hx-radius-xl:.75rem;--hx-radius-3xl:1.5rem;--hx-ease-in:cubic-bezier(.4, 0, 1, 1);--hx-ease-out:cubic-bezier(0, 0, .2, 1);--hx-ease-in-out:cubic-bezier(.4, 0, .2, 1);--hx-blur-md:12px;--hx-default-transition-duration:.15s;--hx-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--hx-default-font-family:var(--hx-font-sans);--hx-default-mono-font-family:var(--hx-font-mono);--hx-color-primary-100:hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 44));--hx-color-primary-200:hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 36));--hx-color-primary-300:hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 27));--hx-color-primary-400:hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 16));--hx-color-primary-500:hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));--hx-color-primary-600:hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 45));--hx-color-primary-700:hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 39));--hx-color-primary-800:hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 32));--hx-color-primary-900:hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 24));--hx-color-dark:#111}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--hx-default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--hx-default-font-feature-settings,normal);font-variation-settings:var(--hx-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--hx-default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--hx-default-mono-font-feature-settings,normal);font-variation-settings:var(--hx-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}abbr:where([title]){cursor:help}:where(a,button,[role=tab],[role=menuitem],[role=menuitemradio],input,select,textarea,[tabindex="0"]):not([class*=hextra-focus-visible]):focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--hx-color-primary-200);--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--hx-color-primary-300);--tw-outline-style:none;outline-style:none}:where(a,button,[role=tab],[role=menuitem],[role=menuitemradio],input,select,textarea,[tabindex="0"]):not([class*=hextra-focus-visible]):focus-visible:where(.dark,.dark *){--tw-ring-color:var(--hx-color-primary-800);--tw-ring-offset-color:var(--hx-color-primary-700)}}@layer components;@layer utilities{.hx\:pointer-events-none{pointer-events:none}.hx\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.hx\:absolute{position:absolute}.hx\:relative{position:relative}.hx\:sticky{position:sticky}.hx\:inset-x-0{inset-inline:calc(var(--hx-spacing) * 0)}.hx\:inset-y-0{inset-block:calc(var(--hx-spacing) * 0)}.hx\:top-0{top:calc(var(--hx-spacing) * 0)}.hx\:top-1\/2{top:50%}.hx\:top-8{top:calc(var(--hx-spacing) * 8)}.hx\:top-16{top:calc(var(--hx-spacing) * 16)}.hx\:top-\[40\%\]{top:40%}.hx\:top-full{top:100%}.hx\:right-0{right:calc(var(--hx-spacing) * 0)}.hx\:bottom-0{bottom:calc(var(--hx-spacing) * 0)}.hx\:left-0{left:calc(var(--hx-spacing) * 0)}.hx\:left-\[24px\]{left:24px}.hx\:left-\[36px\]{left:36px}.hx\:z-20{z-index:20}.hx\:z-\[-1\]{z-index:-1}.hx\:order-last{order:9999}.hx\:m-\[11px\]{margin:11px}.hx\:mx-1{margin-inline:calc(var(--hx-spacing) * 1)}.hx\:mx-4{margin-inline:calc(var(--hx-spacing) * 4)}.hx\:mx-auto{margin-inline:auto}.hx\:my-1{margin-block:calc(var(--hx-spacing) * 1)}.hx\:my-1\.5{margin-block:calc(var(--hx-spacing) * 1.5)}.hx\:my-2{margin-block:calc(var(--hx-spacing) * 2)}.hx\:-mt-20{margin-top:calc(var(--hx-spacing) * -20)}.hx\:mt-1{margin-top:calc(var(--hx-spacing) * 1)}.hx\:mt-1\.5{margin-top:calc(var(--hx-spacing) * 1.5)}.hx\:mt-2{margin-top:calc(var(--hx-spacing) * 2)}.hx\:mt-4{margin-top:calc(var(--hx-spacing) * 4)}.hx\:mt-5{margin-top:calc(var(--hx-spacing) * 5)}.hx\:mt-6{margin-top:calc(var(--hx-spacing) * 6)}.hx\:mt-8{margin-top:calc(var(--hx-spacing) * 8)}.hx\:mt-12{margin-top:calc(var(--hx-spacing) * 12)}.hx\:mt-16{margin-top:calc(var(--hx-spacing) * 16)}.hx\:mt-auto{margin-top:auto}.hx\:-mr-2{margin-right:calc(var(--hx-spacing) * -2)}.hx\:mr-1{margin-right:calc(var(--hx-spacing) * 1)}.hx\:mr-2{margin-right:calc(var(--hx-spacing) * 2)}.hx\:-mb-0\.5{margin-bottom:calc(var(--hx-spacing) * -.5)}.hx\:mb-0{margin-bottom:calc(var(--hx-spacing) * 0)}.hx\:mb-2{margin-bottom:calc(var(--hx-spacing) * 2)}.hx\:mb-4{margin-bottom:calc(var(--hx-spacing) * 4)}.hx\:mb-6{margin-bottom:calc(var(--hx-spacing) * 6)}.hx\:mb-8{margin-bottom:calc(var(--hx-spacing) * 8)}.hx\:mb-10{margin-bottom:calc(var(--hx-spacing) * 10)}.hx\:mb-12{margin-bottom:calc(var(--hx-spacing) * 12)}.hx\:mb-16{margin-bottom:calc(var(--hx-spacing) * 16)}.hx\:-ml-2{margin-left:calc(var(--hx-spacing) * -2)}.hx\:ml-2{margin-left:calc(var(--hx-spacing) * 2)}.hx\:ml-4{margin-left:calc(var(--hx-spacing) * 4)}.hx\:line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.hx\:block{display:block}.hx\:flex{display:flex}.hx\:grid{display:grid}.hx\:hidden{display:none}.hx\:inline{display:inline}.hx\:inline-block{display:inline-block}.hx\:inline-flex{display:inline-flex}.hx\:aspect-auto{aspect-ratio:auto}.hx\:size-4{width:calc(var(--hx-spacing) * 4);height:calc(var(--hx-spacing) * 4)}.hx\:h-0{height:calc(var(--hx-spacing) * 0)}.hx\:h-2{height:calc(var(--hx-spacing) * 2)}.hx\:h-3\.5{height:calc(var(--hx-spacing) * 3.5)}.hx\:h-4{height:calc(var(--hx-spacing) * 4)}.hx\:h-5{height:calc(var(--hx-spacing) * 5)}.hx\:h-7{height:calc(var(--hx-spacing) * 7)}.hx\:h-10{height:calc(var(--hx-spacing) * 10)}.hx\:h-16{height:calc(var(--hx-spacing) * 16)}.hx\:h-\[18px\]{height:18px}.hx\:h-full{height:100%}.hx\:h-px{height:1px}.hx\:max-h-\(--menu-height\){max-height:var(--menu-height)}.hx\:max-h-64{max-height:calc(var(--hx-spacing) * 64)}.hx\:max-h-\[calc\(100vh-var\(--navbar-height\)-env\(safe-area-inset-bottom\)\)\]{max-height:calc(100vh - var(--navbar-height) - env(safe-area-inset-bottom))}.hx\:max-h-\[min\(calc\(50vh-11rem-env\(safe-area-inset-bottom\)\)\,400px\)\]{max-height:min(calc(50vh - 11rem - env(safe-area-inset-bottom)), 400px)}.hx\:min-h-\[100px\]{min-height:100px}.hx\:min-h-\[calc\(100vh-var\(--navbar-height\)\)\]{min-height:calc(100vh - var(--navbar-height))}.hx\:w-2{width:calc(var(--hx-spacing) * 2)}.hx\:w-3\.5{width:calc(var(--hx-spacing) * 3.5)}.hx\:w-4{width:calc(var(--hx-spacing) * 4)}.hx\:w-10{width:calc(var(--hx-spacing) * 10)}.hx\:w-64{width:calc(var(--hx-spacing) * 64)}.hx\:w-\[110\%\]{width:110%}.hx\:w-\[180\%\]{width:180%}.hx\:w-full{width:100%}.hx\:w-max{width:max-content}.hx\:w-screen{width:100vw}.hx\:max-w-\[50\%\]{max-width:50%}.hx\:max-w-\[90rem\]{max-width:90rem}.hx\:max-w-\[min\(calc\(100vw-2rem\)\,calc\(100\%\+20rem\)\)\]{max-width:min(100vw - 2rem,100% + 20rem)}.hx\:max-w-full{max-width:100%}.hx\:max-w-none{max-width:none}.hx\:max-w-screen-xl{max-width:var(--hx-breakpoint-xl)}.hx\:min-w-0{min-width:calc(var(--hx-spacing) * 0)}.hx\:min-w-\[18px\]{min-width:18px}.hx\:min-w-\[24px\]{min-width:24px}.hx\:min-w-full{min-width:100%}.hx\:shrink-0{flex-shrink:0}.hx\:grow{flex-grow:1}.hx\:origin-center{transform-origin:50%}.hx\:-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hx\:cursor-default{cursor:default}.hx\:cursor-pointer{cursor:pointer}.hx\:scroll-my-6{scroll-margin-block:calc(var(--hx-spacing) * 6)}.hx\:scroll-py-6{scroll-padding-block:calc(var(--hx-spacing) * 6)}.hx\:list-none{list-style-type:none}.hx\:appearance-none{appearance:none}.hx\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.hx\:flex-col{flex-direction:column}.hx\:flex-wrap{flex-wrap:wrap}.hx\:items-baseline{align-items:baseline}.hx\:items-center{align-items:center}.hx\:items-start{align-items:flex-start}.hx\:justify-between{justify-content:space-between}.hx\:justify-center{justify-content:center}.hx\:justify-end{justify-content:flex-end}.hx\:justify-start{justify-content:flex-start}.hx\:justify-items-start{justify-items:start}.hx\:gap-1{gap:calc(var(--hx-spacing) * 1)}.hx\:gap-1\.5{gap:calc(var(--hx-spacing) * 1.5)}.hx\:gap-2{gap:calc(var(--hx-spacing) * 2)}.hx\:gap-4{gap:calc(var(--hx-spacing) * 4)}.hx\:gap-x-1\.5{column-gap:calc(var(--hx-spacing) * 1.5)}.hx\:gap-x-2{column-gap:calc(var(--hx-spacing) * 2)}.hx\:gap-y-1{row-gap:calc(var(--hx-spacing) * 1)}.hx\:gap-y-2{row-gap:calc(var(--hx-spacing) * 2)}.hx\:overflow-auto{overflow:auto}.hx\:overflow-hidden{overflow:hidden}.hx\:overflow-x-auto{overflow-x:auto}.hx\:overflow-x-hidden{overflow-x:hidden}.hx\:overflow-y-auto{overflow-y:auto}.hx\:overflow-y-hidden{overflow-y:hidden}.hx\:overscroll-contain{overscroll-behavior:contain}.hx\:overscroll-x-contain{overscroll-behavior-x:contain}.hx\:rounded-3xl{border-radius:var(--hx-radius-3xl)}.hx\:rounded-full{border-radius:3.40282e38px}.hx\:rounded-lg{border-radius:var(--hx-radius-lg)}.hx\:rounded-md{border-radius:var(--hx-radius-md)}.hx\:rounded-sm{border-radius:var(--hx-radius-sm)}.hx\:rounded-xl{border-radius:var(--hx-radius-xl)}.hx\:rounded-xs{border-radius:var(--hx-radius-xs)}.hx\:rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.hx\:border{border-style:var(--tw-border-style);border-width:1px}.hx\:border-0{border-style:var(--tw-border-style);border-width:0}.hx\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.hx\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.hx\:border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.hx\:border-amber-200{border-color:var(--hx-color-amber-200)}.hx\:border-black\/5{border-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.hx\:border-black\/5{border-color:color-mix(in oklab, var(--hx-color-black) 5%, transparent)}}.hx\:border-blue-200{border-color:var(--hx-color-blue-200)}.hx\:border-gray-200{border-color:var(--hx-color-gray-200)}.hx\:border-gray-500{border-color:var(--hx-color-gray-500)}.hx\:border-green-200{border-color:var(--hx-color-green-200)}.hx\:border-indigo-200{border-color:var(--hx-color-indigo-200)}.hx\:border-orange-100{border-color:var(--hx-color-orange-100)}.hx\:border-purple-200{border-color:var(--hx-color-purple-200)}.hx\:border-red-200{border-color:var(--hx-color-red-200)}.hx\:border-transparent{border-color:#0000}.hx\:border-yellow-100{border-color:var(--hx-color-yellow-100)}.hx\:bg-amber-100{background-color:var(--hx-color-amber-100)}.hx\:bg-black\/\[\.05\]{background-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.hx\:bg-black\/\[\.05\]{background-color:color-mix(in oklab, var(--hx-color-black) 5%, transparent)}}.hx\:bg-blue-100{background-color:var(--hx-color-blue-100)}.hx\:bg-gray-100{background-color:var(--hx-color-gray-100)}.hx\:bg-gray-200{background-color:var(--hx-color-gray-200)}.hx\:bg-green-100{background-color:var(--hx-color-green-100)}.hx\:bg-indigo-100{background-color:var(--hx-color-indigo-100)}.hx\:bg-neutral-50{background-color:var(--hx-color-neutral-50)}.hx\:bg-neutral-900{background-color:var(--hx-color-neutral-900)}.hx\:bg-orange-50{background-color:var(--hx-color-orange-50)}.hx\:bg-primary-100{background-color:var(--hx-color-primary-100)}.hx\:bg-primary-400{background-color:var(--hx-color-primary-400)}.hx\:bg-primary-600{background-color:var(--hx-color-primary-600)}.hx\:bg-primary-700\/5{background-color:var(--hx-color-primary-700)}@supports (color:color-mix(in lab, red, red)){.hx\:bg-primary-700\/5{background-color:color-mix(in oklab, var(--hx-color-primary-700) 5%, transparent)}}.hx\:bg-purple-100{background-color:var(--hx-color-purple-100)}.hx\:bg-red-100{background-color:var(--hx-color-red-100)}.hx\:bg-transparent{background-color:#0000}.hx\:bg-white{background-color:var(--hx-color-white)}.hx\:bg-yellow-50{background-color:var(--hx-color-yellow-50)}.hx\:bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.hx\:from-gray-900{--tw-gradient-from:var(--hx-color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hx\:to-gray-600{--tw-gradient-to:var(--hx-color-gray-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hx\:bg-clip-text{-webkit-background-clip:text;background-clip:text}.hx\:p-0{padding:calc(var(--hx-spacing) * 0)}.hx\:p-0\.5{padding:calc(var(--hx-spacing) * .5)}.hx\:p-1{padding:calc(var(--hx-spacing) * 1)}.hx\:p-1\.5{padding:calc(var(--hx-spacing) * 1.5)}.hx\:p-2{padding:calc(var(--hx-spacing) * 2)}.hx\:p-4{padding:calc(var(--hx-spacing) * 4)}.hx\:p-6{padding:calc(var(--hx-spacing) * 6)}.hx\:px-1\.5{padding-inline:calc(var(--hx-spacing) * 1.5)}.hx\:px-2{padding-inline:calc(var(--hx-spacing) * 2)}.hx\:px-2\.5{padding-inline:calc(var(--hx-spacing) * 2.5)}.hx\:px-3{padding-inline:calc(var(--hx-spacing) * 3)}.hx\:px-4{padding-inline:calc(var(--hx-spacing) * 4)}.hx\:px-6{padding-inline:calc(var(--hx-spacing) * 6)}.hx\:px-8{padding-inline:calc(var(--hx-spacing) * 8)}.hx\:py-1{padding-block:calc(var(--hx-spacing) * 1)}.hx\:py-1\.5{padding-block:calc(var(--hx-spacing) * 1.5)}.hx\:py-2{padding-block:calc(var(--hx-spacing) * 2)}.hx\:py-2\.5{padding-block:calc(var(--hx-spacing) * 2.5)}.hx\:py-3{padding-block:calc(var(--hx-spacing) * 3)}.hx\:py-4{padding-block:calc(var(--hx-spacing) * 4)}.hx\:py-12{padding-block:calc(var(--hx-spacing) * 12)}.hx\:pt-4{padding-top:calc(var(--hx-spacing) * 4)}.hx\:pt-6{padding-top:calc(var(--hx-spacing) * 6)}.hx\:pt-8{padding-top:calc(var(--hx-spacing) * 8)}.hx\:pr-2{padding-right:calc(var(--hx-spacing) * 2)}.hx\:pr-4{padding-right:calc(var(--hx-spacing) * 4)}.hx\:pr-\[calc\(env\(safe-area-inset-right\)-1\.5rem\)\]{padding-right:calc(env(safe-area-inset-right) - 1.5rem)}.hx\:pr-\[max\(env\(safe-area-inset-left\)\,1\.5rem\)\]{padding-right:max(env(safe-area-inset-left), 1.5rem)}.hx\:pr-\[max\(env\(safe-area-inset-right\)\,1\.5rem\)\]{padding-right:max(env(safe-area-inset-right), 1.5rem)}.hx\:pb-8{padding-bottom:calc(var(--hx-spacing) * 8)}.hx\:pb-\[env\(safe-area-inset-bottom\)\]{padding-bottom:env(safe-area-inset-bottom)}.hx\:pb-px{padding-bottom:1px}.hx\:pl-6{padding-left:calc(var(--hx-spacing) * 6)}.hx\:pl-\[max\(env\(safe-area-inset-left\)\,1\.5rem\)\]{padding-left:max(env(safe-area-inset-left), 1.5rem)}.hx\:text-center{text-align:center}.hx\:text-left{text-align:left}.hx\:align-\[-2\.5px\]{vertical-align:-2.5px}.hx\:align-baseline{vertical-align:baseline}.hx\:align-middle{vertical-align:middle}.hx\:align-text-bottom{vertical-align:text-bottom}.hx\:font-mono{font-family:var(--hx-font-mono)}.hx\:text-2xl{font-size:var(--hx-text-2xl);line-height:var(--tw-leading,var(--hx-text-2xl--line-height))}.hx\:text-4xl{font-size:var(--hx-text-4xl);line-height:var(--tw-leading,var(--hx-text-4xl--line-height))}.hx\:text-base{font-size:var(--hx-text-base);line-height:var(--tw-leading,var(--hx-text-base--line-height))}.hx\:text-lg{font-size:var(--hx-text-lg);line-height:var(--tw-leading,var(--hx-text-lg--line-height))}.hx\:text-sm{font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height))}.hx\:text-xl{font-size:var(--hx-text-xl);line-height:var(--tw-leading,var(--hx-text-xl--line-height))}.hx\:text-xs{font-size:var(--hx-text-xs);line-height:var(--tw-leading,var(--hx-text-xs--line-height))}.hx\:text-\[\.65rem\]{font-size:.65rem}.hx\:text-\[10px\]{font-size:10px}.hx\:leading-5{--tw-leading:calc(var(--hx-spacing) * 5);line-height:calc(var(--hx-spacing) * 5)}.hx\:leading-6{--tw-leading:calc(var(--hx-spacing) * 6);line-height:calc(var(--hx-spacing) * 6)}.hx\:leading-7{--tw-leading:calc(var(--hx-spacing) * 7);line-height:calc(var(--hx-spacing) * 7)}.hx\:leading-none{--tw-leading:1;line-height:1}.hx\:leading-tight{--tw-leading:var(--hx-leading-tight);line-height:var(--hx-leading-tight)}.hx\:font-bold{--tw-font-weight:var(--hx-font-weight-bold);font-weight:var(--hx-font-weight-bold)}.hx\:font-extrabold{--tw-font-weight:var(--hx-font-weight-extrabold);font-weight:var(--hx-font-weight-extrabold)}.hx\:font-medium{--tw-font-weight:var(--hx-font-weight-medium);font-weight:var(--hx-font-weight-medium)}.hx\:font-normal{--tw-font-weight:var(--hx-font-weight-normal);font-weight:var(--hx-font-weight-normal)}.hx\:font-semibold{--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold)}.hx\:tracking-tight{--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight)}.hx\:tracking-tighter{--tw-tracking:var(--hx-tracking-tighter);letter-spacing:var(--hx-tracking-tighter)}.hx\:break-words,.hx\:wrap-break-word{overflow-wrap:break-word}.hx\:text-ellipsis{text-overflow:ellipsis}.hx\:whitespace-nowrap{white-space:nowrap}.hx\:text-\[color\:hsl\(var\(--primary-hue\)\,100\%\,50\%\)\]{color:hsl(var(--primary-hue),100%,50%)}.hx\:text-amber-900{color:var(--hx-color-amber-900)}.hx\:text-blue-900{color:var(--hx-color-blue-900)}.hx\:text-current{color:currentColor}.hx\:text-gray-100{color:var(--hx-color-gray-100)}.hx\:text-gray-500{color:var(--hx-color-gray-500)}.hx\:text-gray-600{color:var(--hx-color-gray-600)}.hx\:text-gray-700{color:var(--hx-color-gray-700)}.hx\:text-gray-800{color:var(--hx-color-gray-800)}.hx\:text-gray-900{color:var(--hx-color-gray-900)}.hx\:text-green-900{color:var(--hx-color-green-900)}.hx\:text-indigo-900{color:var(--hx-color-indigo-900)}.hx\:text-orange-800{color:var(--hx-color-orange-800)}.hx\:text-primary-800{color:var(--hx-color-primary-800)}.hx\:text-purple-900{color:var(--hx-color-purple-900)}.hx\:text-red-900{color:var(--hx-color-red-900)}.hx\:text-slate-50{color:var(--hx-color-slate-50)}.hx\:text-slate-900{color:var(--hx-color-slate-900)}.hx\:text-transparent{color:#0000}.hx\:text-white{color:var(--hx-color-white)}.hx\:text-yellow-900{color:var(--hx-color-yellow-900)}.hx\:capitalize{text-transform:capitalize}.hx\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.hx\:no-underline{text-decoration-line:none}.hx\:underline{text-decoration-line:underline}.hx\:decoration-from-font{text-decoration-thickness:from-font}.hx\:underline-offset-2{text-underline-offset:2px}.hx\:opacity-0{opacity:0}.hx\:opacity-50{opacity:.5}.hx\:opacity-80{opacity:.8}.hx\:shadow-\[0_-12px_16px_\#fff\]{--tw-shadow:0 -12px 16px var(--tw-shadow-color,#fff);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:shadow-\[0_-12px_16px_white\]{--tw-shadow:0 -12px 16px var(--tw-shadow-color,white);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:shadow-\[0_2px_4px_rgba\(0\,0\,0\,\.02\)\,0_1px_0_rgba\(0\,0\,0\,\.06\)\]{--tw-shadow:0 2px 4px var(--tw-shadow-color,#00000005), 0 1px 0 var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:hextra-focus-visible:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--hx-color-primary-200);--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-offset-color:var(--hx-color-primary-300);--tw-outline-style:none;outline-style:none}.hx\:hextra-focus-visible:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--hx-color-primary-800);--tw-ring-offset-color:var(--hx-color-primary-700)}.hx\:hextra-focus-visible-inset:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-color:var(--hx-color-primary-200);--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-outline-style:none;--tw-ring-inset:inset;outline-style:none}.hx\:hextra-focus-visible-inset:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--hx-color-primary-800)}.hx\:shadow-gray-100{--tw-shadow-color:var(--hx-color-gray-100)}@supports (color:color-mix(in lab, red, red)){.hx\:shadow-gray-100{--tw-shadow-color:color-mix(in oklab, var(--hx-color-gray-100) var(--tw-shadow-alpha), transparent)}}.hx\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.hx\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.hx\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.hx\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.hx\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.hx\:duration-75{--tw-duration:75ms;transition-duration:75ms}.hx\:duration-150{--tw-duration:.15s;transition-duration:.15s}.hx\:duration-200{--tw-duration:.2s;transition-duration:.2s}.hx\:ease-in{--tw-ease:var(--hx-ease-in);transition-timing-function:var(--hx-ease-in)}.hx\:ease-in-out{--tw-ease:var(--hx-ease-in-out);transition-timing-function:var(--hx-ease-in-out)}.hx\:outline-none{--tw-outline-style:none;outline-style:none}.hx\:select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hx\:group-hover\:text-gray-900:is(:where(.hx\:group):hover *){color:var(--hx-color-gray-900)}.hx\:group-hover\:underline:is(:where(.hx\:group):hover *){text-decoration-line:underline}.hx\:group-hover\/code\:opacity-100:is(:where(.hx\:group\/code):hover *){opacity:1}}.hx\:group-data-\[active\=true\]\:text-primary-800:is(:where(.hx\:group)[data-active=true] *){color:var(--hx-color-primary-800)}.hx\:group-data-\[theme\=dark\]\:hidden:is(:where(.hx\:group)[data-theme=dark] *),.hx\:group-data-\[theme\=light\]\:hidden:is(:where(.hx\:group)[data-theme=light] *),.hx\:group-data-\[theme\=system\]\:hidden:is(:where(.hx\:group)[data-theme=system] *){display:none}.hx\:group-\[\.copied\]\/copybtn\:block:is(:where(.hx\:group\/copybtn).copied *){display:block}.hx\:group-\[\.copied\]\/copybtn\:hidden:is(:where(.hx\:group\/copybtn).copied *){display:none}.hx\:placeholder\:text-gray-500::placeholder{color:var(--hx-color-gray-500)}.hx\:before\:pointer-events-none:before{content:var(--tw-content);pointer-events:none}.hx\:before\:absolute:before{content:var(--tw-content);position:absolute}.hx\:before\:inset-0:before{content:var(--tw-content);inset:calc(var(--hx-spacing) * 0)}.hx\:before\:inset-y-1:before{content:var(--tw-content);inset-block:calc(var(--hx-spacing) * 1)}.hx\:before\:mr-1:before{content:var(--tw-content);margin-right:calc(var(--hx-spacing) * 1)}.hx\:before\:inline-block:before{content:var(--tw-content);display:inline-block}.hx\:before\:w-px:before{content:var(--tw-content);width:1px}.hx\:before\:bg-gray-200:before{content:var(--tw-content);background-color:var(--hx-color-gray-200)}.hx\:before\:opacity-25:before{content:var(--tw-content);opacity:.25}.hx\:before\:transition-transform:before{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.hx\:before\:content-\[\"\"\]:before{--tw-content:"";content:var(--tw-content)}.hx\:before\:content-\[\'\#\'\]:before{--tw-content:"#";content:var(--tw-content)}.hx\:before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.hx\:before\:content-\[\\\"\\\"\]:before{--tw-content:\"\";content:var(--tw-content)}.hx\:group-open\:before\:rotate-90:is(:where(.hx\:group):is([open],:popover-open,:open) *):before{content:var(--tw-content);rotate:90deg}.hx\:first\:mt-0:first-child{margin-top:calc(var(--hx-spacing) * 0)}.hx\:last-of-type\:mb-0:last-of-type{margin-bottom:calc(var(--hx-spacing) * 0)}@media (hover:hover){.hx\:hover\:border-gray-200:hover{border-color:var(--hx-color-gray-200)}.hx\:hover\:border-gray-300:hover{border-color:var(--hx-color-gray-300)}.hx\:hover\:border-gray-400:hover{border-color:var(--hx-color-gray-400)}.hx\:hover\:border-gray-900:hover{border-color:var(--hx-color-gray-900)}.hx\:hover\:bg-gray-100:hover{background-color:var(--hx-color-gray-100)}.hx\:hover\:bg-gray-800\/5:hover{background-color:var(--hx-color-gray-800)}@supports (color:color-mix(in lab, red, red)){.hx\:hover\:bg-gray-800\/5:hover{background-color:color-mix(in oklab, var(--hx-color-gray-800) 5%, transparent)}}.hx\:hover\:bg-primary-700:hover{background-color:var(--hx-color-primary-700)}.hx\:hover\:bg-slate-50:hover{background-color:var(--hx-color-slate-50)}.hx\:hover\:text-black:hover{color:var(--hx-color-black)}.hx\:hover\:text-gray-700:hover{color:var(--hx-color-gray-700)}.hx\:hover\:text-gray-800:hover{color:var(--hx-color-gray-800)}.hx\:hover\:text-gray-900:hover{color:var(--hx-color-gray-900)}.hx\:hover\:text-primary-600:hover{color:var(--hx-color-primary-600)}.hx\:hover\:opacity-60:hover{opacity:.6}.hx\:hover\:opacity-75:hover{opacity:.75}.hx\:hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:hover\:shadow-gray-100:hover{--tw-shadow-color:var(--hx-color-gray-100)}@supports (color:color-mix(in lab, red, red)){.hx\:hover\:shadow-gray-100:hover{--tw-shadow-color:color-mix(in oklab, var(--hx-color-gray-100) var(--tw-shadow-alpha), transparent)}}}.hx\:focus-visible\:not-sr-only:focus-visible{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.hx\:focus-visible\:fixed:focus-visible{position:fixed}.hx\:focus-visible\:top-2:focus-visible{top:calc(var(--hx-spacing) * 2)}.hx\:focus-visible\:left-2:focus-visible{left:calc(var(--hx-spacing) * 2)}.hx\:focus-visible\:z-50:focus-visible{z-index:50}.hx\:focus-visible\:rounded-md:focus-visible{border-radius:var(--hx-radius-md)}.hx\:focus-visible\:bg-primary-500:focus-visible{background-color:var(--hx-color-primary-500)}.hx\:focus-visible\:bg-white:focus-visible{background-color:var(--hx-color-white)}.hx\:focus-visible\:px-4:focus-visible{padding-inline:calc(var(--hx-spacing) * 4)}.hx\:focus-visible\:py-2:focus-visible{padding-block:calc(var(--hx-spacing) * 2)}.hx\:focus-visible\:text-sm:focus-visible{font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height))}.hx\:focus-visible\:font-medium:focus-visible{--tw-font-weight:var(--hx-font-weight-medium);font-weight:var(--hx-font-weight-medium)}.hx\:focus-visible\:text-white:focus-visible{color:var(--hx-color-white)}.hx\:active\:bg-gray-400\/20:active{background-color:var(--hx-color-gray-400)}@supports (color:color-mix(in lab, red, red)){.hx\:active\:bg-gray-400\/20:active{background-color:color-mix(in oklab, var(--hx-color-gray-400) 20%, transparent)}}.hx\:active\:opacity-50:active{opacity:.5}.hx\:active\:shadow-sm:active{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:active\:shadow-gray-200:active{--tw-shadow-color:var(--hx-color-gray-200)}@supports (color:color-mix(in lab, red, red)){.hx\:active\:shadow-gray-200:active{--tw-shadow-color:color-mix(in oklab, var(--hx-color-gray-200) var(--tw-shadow-alpha), transparent)}}.hx\:data-\[state\=closed\]\:hidden[data-state=closed],.hx\:data-\[state\=open\]\:hidden[data-state=open]{display:none}.hx\:data-\[state\=selected\]\:block[data-state=selected]{display:block}.hx\:data-\[state\=selected\]\:border-primary-500[data-state=selected]{border-color:var(--hx-color-primary-500)}.hx\:data-\[state\=selected\]\:text-primary-600[data-state=selected]{color:var(--hx-color-primary-600)}@media (prefers-contrast:more){.hx\:contrast-more\:border{border-style:var(--tw-border-style);border-width:1px}.hx\:contrast-more\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.hx\:contrast-more\:border-current{border-color:currentColor}.hx\:contrast-more\:border-gray-800{border-color:var(--hx-color-gray-800)}.hx\:contrast-more\:border-gray-900{border-color:var(--hx-color-gray-900)}.hx\:contrast-more\:border-neutral-400{border-color:var(--hx-color-neutral-400)}.hx\:contrast-more\:border-primary-500{border-color:var(--hx-color-primary-500)}.hx\:contrast-more\:border-transparent{border-color:#0000}.hx\:contrast-more\:font-bold{--tw-font-weight:var(--hx-font-weight-bold);font-weight:var(--hx-font-weight-bold)}.hx\:contrast-more\:text-current{color:currentColor}.hx\:contrast-more\:text-gray-700{color:var(--hx-color-gray-700)}.hx\:contrast-more\:text-gray-800{color:var(--hx-color-gray-800)}.hx\:contrast-more\:text-gray-900{color:var(--hx-color-gray-900)}.hx\:contrast-more\:underline{text-decoration-line:underline}.hx\:contrast-more\:shadow-\[0_0_0_1px_\#000\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#000);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:contrast-more\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.hx\:contrast-more\:hover\:border-gray-900:hover{border-color:var(--hx-color-gray-900)}}}@media not all and (min-width:80rem){.hx\:max-xl\:hidden{display:none}}@media not all and (min-width:64rem){.hx\:max-lg\:min-h-\[340px\]{min-height:340px}}@media not all and (min-width:48rem){.hx\:max-md\:sticky{position:sticky}.hx\:max-md\:hidden{display:none}.hx\:max-md\:min-h-\[340px\]{min-height:340px}.hx\:max-md\:\[transform\:translate3d\(0\,-100\%\,0\)\]{transform:translateY(-100%)}.hx\:max-md\:\[transform\:translate3d\(0\,0\,0\)\]{transform:translate(0)}}@media not all and (min-width:40rem){.hx\:max-sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}}@media (min-width:40rem){.hx\:sm\:right-0{right:calc(var(--hx-spacing) * 0)}.hx\:sm\:left-auto{left:auto}.hx\:sm\:block{display:block}.hx\:sm\:flex{display:flex}.hx\:sm\:w-\[110\%\]{width:110%}.hx\:sm\:flex-row{flex-direction:row}.hx\:sm\:items-center{align-items:center}.hx\:sm\:items-start{align-items:flex-start}.hx\:sm\:justify-between{justify-content:space-between}.hx\:sm\:text-xl{font-size:var(--hx-text-xl);line-height:var(--tw-leading,var(--hx-text-xl--line-height))}@media not all and (min-width:64rem){.hx\:sm\:max-lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}}@media (min-width:48rem){.hx\:md\:sticky{position:sticky}.hx\:md\:top-16{top:calc(var(--hx-spacing) * 16)}.hx\:md\:mr-0{margin-right:calc(var(--hx-spacing) * 0)}.hx\:md\:hidden{display:none}.hx\:md\:inline-block{display:inline-block}.hx\:md\:inline-flex{display:inline-flex}.hx\:md\:aspect-\[1\.1\/1\]{aspect-ratio:1.1}.hx\:md\:h-\[calc\(100vh-var\(--navbar-height\)-var\(--menu-height\)\)\]{height:calc(100vh - var(--navbar-height) - var(--menu-height))}.hx\:md\:max-h-\[min\(calc\(100vh-5rem-env\(safe-area-inset-bottom\)\)\,400px\)\]{max-height:min(calc(100vh - 5rem - env(safe-area-inset-bottom)), 400px)}.hx\:md\:w-64{width:calc(var(--hx-spacing) * 64)}.hx\:md\:shrink-0{flex-shrink:0}.hx\:md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.hx\:md\:justify-start{justify-content:flex-start}.hx\:md\:self-start{align-self:flex-start}.hx\:md\:overflow-auto{overflow:auto}.hx\:md\:px-12{padding-inline:calc(var(--hx-spacing) * 12)}.hx\:md\:pt-12{padding-top:calc(var(--hx-spacing) * 12)}.hx\:md\:text-3xl{font-size:var(--hx-text-3xl);line-height:var(--tw-leading,var(--hx-text-3xl--line-height))}.hx\:md\:text-5xl{font-size:var(--hx-text-5xl);line-height:var(--tw-leading,var(--hx-text-5xl--line-height))}.hx\:md\:text-lg{font-size:var(--hx-text-lg);line-height:var(--tw-leading,var(--hx-text-lg--line-height))}.hx\:md\:text-sm{font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height))}}@media (min-width:64rem){.hx\:lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:80rem){.hx\:xl\:block{display:block}.hx\:xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}.hx\:ltr\:right-1\.5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--hx-spacing) * 1.5)}.hx\:ltr\:right-2:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--hx-spacing) * 2)}.hx\:ltr\:right-3:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--hx-spacing) * 3)}.hx\:ltr\:-mr-4:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-right:calc(var(--hx-spacing) * -4)}.hx\:ltr\:mr-auto:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-right:auto}.hx\:ltr\:ml-1:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--hx-spacing) * 1)}.hx\:ltr\:ml-3:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--hx-spacing) * 3)}.hx\:ltr\:ml-auto:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:auto}.hx\:ltr\:rotate-180:where(:dir(ltr),[dir=ltr],[dir=ltr] *){rotate:180deg}.hx\:ltr\:rounded-l-lg:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-left-radius:var(--hx-radius-lg);border-bottom-left-radius:var(--hx-radius-lg)}.hx\:ltr\:rounded-r-lg:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-right-radius:var(--hx-radius-lg);border-bottom-right-radius:var(--hx-radius-lg)}.hx\:ltr\:border-l:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-left-style:var(--tw-border-style);border-left-width:1px}.hx\:ltr\:pr-0:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-right:calc(var(--hx-spacing) * 0)}.hx\:ltr\:pr-2:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-right:calc(var(--hx-spacing) * 2)}.hx\:ltr\:pr-4:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-right:calc(var(--hx-spacing) * 4)}.hx\:ltr\:pr-8:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-right:calc(var(--hx-spacing) * 8)}.hx\:ltr\:pr-9:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-right:calc(var(--hx-spacing) * 9)}.hx\:ltr\:pl-3:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 3)}.hx\:ltr\:pl-4:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 4)}.hx\:ltr\:pl-5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 5)}.hx\:ltr\:pl-6:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 6)}.hx\:ltr\:pl-8:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 8)}.hx\:ltr\:pl-12:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 12)}.hx\:ltr\:pl-16:where(:dir(ltr),[dir=ltr],[dir=ltr] *){padding-left:calc(var(--hx-spacing) * 16)}.hx\:ltr\:text-right:where(:dir(ltr),[dir=ltr],[dir=ltr] *){text-align:right}.hx\:ltr\:before\:left-0:where(:dir(ltr),[dir=ltr],[dir=ltr] *):before{content:var(--tw-content);left:calc(var(--hx-spacing) * 0)}@media (min-width:48rem){.hx\:ltr\:md\:left-auto:where(:dir(ltr),[dir=ltr],[dir=ltr] *){left:auto}}.hx\:rtl\:left-1\.5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--hx-spacing) * 1.5)}.hx\:rtl\:left-2:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--hx-spacing) * 2)}.hx\:rtl\:left-3:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--hx-spacing) * 3)}.hx\:rtl\:mr-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--hx-spacing) * 1)}.hx\:rtl\:mr-3:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--hx-spacing) * 3)}.hx\:rtl\:mr-auto:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:auto}.hx\:rtl\:-ml-4:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-left:calc(var(--hx-spacing) * -4)}.hx\:rtl\:ml-auto:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-left:auto}.hx\:rtl\:-rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:-180deg}.hx\:rtl\:rotate-270:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:270deg}.hx\:rtl\:rounded-l-lg:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-left-radius:var(--hx-radius-lg);border-bottom-left-radius:var(--hx-radius-lg)}.hx\:rtl\:rounded-r-lg:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-right-radius:var(--hx-radius-lg);border-bottom-right-radius:var(--hx-radius-lg)}.hx\:rtl\:border-r:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-right-style:var(--tw-border-style);border-right-width:1px}.hx\:rtl\:pr-3:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 3)}.hx\:rtl\:pr-4:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 4)}.hx\:rtl\:pr-5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 5)}.hx\:rtl\:pr-6:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 6)}.hx\:rtl\:pr-8:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 8)}.hx\:rtl\:pr-12:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 12)}.hx\:rtl\:pr-16:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-right:calc(var(--hx-spacing) * 16)}.hx\:rtl\:pl-0:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-left:calc(var(--hx-spacing) * 0)}.hx\:rtl\:pl-2:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-left:calc(var(--hx-spacing) * 2)}.hx\:rtl\:pl-4:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-left:calc(var(--hx-spacing) * 4)}.hx\:rtl\:pl-8:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-left:calc(var(--hx-spacing) * 8)}.hx\:rtl\:pl-9:where(:dir(rtl),[dir=rtl],[dir=rtl] *){padding-left:calc(var(--hx-spacing) * 9)}.hx\:rtl\:text-left:where(:dir(rtl),[dir=rtl],[dir=rtl] *){text-align:left}.hx\:rtl\:before\:right-0:where(:dir(rtl),[dir=rtl],[dir=rtl] *):before{content:var(--tw-content);right:calc(var(--hx-spacing) * 0)}.hx\:rtl\:before\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *):before{content:var(--tw-content);rotate:180deg}@media (min-width:48rem){.hx\:rtl\:md\:right-auto:where(:dir(rtl),[dir=rtl],[dir=rtl] *){right:auto}}.hx\:dark\:block:where(.dark,.dark *){display:block}.hx\:dark\:hidden:where(.dark,.dark *){display:none}.hx\:dark\:border-amber-200\/30:where(.dark,.dark *){border-color:var(--hx-color-amber-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-amber-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-amber-200) 30%, transparent)}}.hx\:dark\:border-blue-200\/30:where(.dark,.dark *){border-color:var(--hx-color-blue-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-blue-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-blue-200) 30%, transparent)}}.hx\:dark\:border-gray-100\/20:where(.dark,.dark *){border-color:var(--hx-color-gray-100)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-gray-100\/20:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-gray-100) 20%, transparent)}}.hx\:dark\:border-gray-400:where(.dark,.dark *){border-color:var(--hx-color-gray-400)}.hx\:dark\:border-green-200\/30:where(.dark,.dark *){border-color:var(--hx-color-green-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-green-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-green-200) 30%, transparent)}}.hx\:dark\:border-indigo-200\/30:where(.dark,.dark *){border-color:var(--hx-color-indigo-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-indigo-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-indigo-200) 30%, transparent)}}.hx\:dark\:border-neutral-700:where(.dark,.dark *){border-color:var(--hx-color-neutral-700)}.hx\:dark\:border-neutral-800:where(.dark,.dark *){border-color:var(--hx-color-neutral-800)}.hx\:dark\:border-orange-400\/30:where(.dark,.dark *){border-color:var(--hx-color-orange-400)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-orange-400\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-orange-400) 30%, transparent)}}.hx\:dark\:border-purple-200\/30:where(.dark,.dark *){border-color:var(--hx-color-purple-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-purple-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-purple-200) 30%, transparent)}}.hx\:dark\:border-red-200\/30:where(.dark,.dark *){border-color:var(--hx-color-red-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-red-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-red-200) 30%, transparent)}}.hx\:dark\:border-white\/10:where(.dark,.dark *){border-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-white\/10:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-white) 10%, transparent)}}.hx\:dark\:border-yellow-200\/30:where(.dark,.dark *){border-color:var(--hx-color-yellow-200)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:border-yellow-200\/30:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-yellow-200) 30%, transparent)}}.hx\:dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:var(--hx-color-amber-900)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-amber-900) 30%, transparent)}}.hx\:dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:var(--hx-color-blue-900)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-blue-900) 30%, transparent)}}.hx\:dark\:bg-dark:where(.dark,.dark *),.hx\:dark\:bg-dark\/50:where(.dark,.dark *){background-color:var(--hx-color-dark)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-dark\/50:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-dark) 50%, transparent)}}.hx\:dark\:bg-gray-50\/10:where(.dark,.dark *){background-color:var(--hx-color-gray-50)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-gray-50\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-gray-50) 10%, transparent)}}.hx\:dark\:bg-green-900\/30:where(.dark,.dark *){background-color:var(--hx-color-green-900)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-green-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-green-900) 30%, transparent)}}.hx\:dark\:bg-indigo-900\/30:where(.dark,.dark *){background-color:var(--hx-color-indigo-900)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-indigo-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-indigo-900) 30%, transparent)}}.hx\:dark\:bg-neutral-700:where(.dark,.dark *){background-color:var(--hx-color-neutral-700)}.hx\:dark\:bg-neutral-800:where(.dark,.dark *){background-color:var(--hx-color-neutral-800)}.hx\:dark\:bg-neutral-900:where(.dark,.dark *){background-color:var(--hx-color-neutral-900)}.hx\:dark\:bg-orange-400\/20:where(.dark,.dark *){background-color:var(--hx-color-orange-400)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-orange-400\/20:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-orange-400) 20%, transparent)}}.hx\:dark\:bg-primary-300\/10:where(.dark,.dark *){background-color:var(--hx-color-primary-300)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-primary-300\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-primary-300) 10%, transparent)}}.hx\:dark\:bg-primary-400\/10:where(.dark,.dark *){background-color:var(--hx-color-primary-400)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-primary-400\/10:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-primary-400) 10%, transparent)}}.hx\:dark\:bg-primary-600:where(.dark,.dark *){background-color:var(--hx-color-primary-600)}.hx\:dark\:bg-purple-900\/30:where(.dark,.dark *){background-color:var(--hx-color-purple-900)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-purple-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-purple-900) 30%, transparent)}}.hx\:dark\:bg-red-900\/30:where(.dark,.dark *){background-color:var(--hx-color-red-900)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-red-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-red-900) 30%, transparent)}}.hx\:dark\:bg-yellow-700\/30:where(.dark,.dark *){background-color:var(--hx-color-yellow-700)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:bg-yellow-700\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-yellow-700) 30%, transparent)}}.hx\:dark\:from-gray-100:where(.dark,.dark *){--tw-gradient-from:var(--hx-color-gray-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hx\:dark\:to-gray-400:where(.dark,.dark *){--tw-gradient-to:var(--hx-color-gray-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position))}.hx\:dark\:text-amber-200:where(.dark,.dark *){color:var(--hx-color-amber-200)}.hx\:dark\:text-blue-200:where(.dark,.dark *){color:var(--hx-color-blue-200)}.hx\:dark\:text-gray-50:where(.dark,.dark *){color:var(--hx-color-gray-50)}.hx\:dark\:text-gray-100:where(.dark,.dark *){color:var(--hx-color-gray-100)}.hx\:dark\:text-gray-200:where(.dark,.dark *){color:var(--hx-color-gray-200)}.hx\:dark\:text-gray-300:where(.dark,.dark *){color:var(--hx-color-gray-300)}.hx\:dark\:text-gray-400:where(.dark,.dark *){color:var(--hx-color-gray-400)}.hx\:dark\:text-green-200:where(.dark,.dark *){color:var(--hx-color-green-200)}.hx\:dark\:text-indigo-200:where(.dark,.dark *){color:var(--hx-color-indigo-200)}.hx\:dark\:text-neutral-200:where(.dark,.dark *){color:var(--hx-color-neutral-200)}.hx\:dark\:text-neutral-400:where(.dark,.dark *){color:var(--hx-color-neutral-400)}.hx\:dark\:text-orange-300:where(.dark,.dark *){color:var(--hx-color-orange-300)}.hx\:dark\:text-primary-600:where(.dark,.dark *){color:var(--hx-color-primary-600)}.hx\:dark\:text-purple-200:where(.dark,.dark *){color:var(--hx-color-purple-200)}.hx\:dark\:text-red-200:where(.dark,.dark *){color:var(--hx-color-red-200)}.hx\:dark\:text-slate-100:where(.dark,.dark *){color:var(--hx-color-slate-100)}.hx\:dark\:text-white:where(.dark,.dark *){color:var(--hx-color-white)}.hx\:dark\:text-yellow-200:where(.dark,.dark *){color:var(--hx-color-yellow-200)}.hx\:dark\:opacity-80:where(.dark,.dark *){opacity:.8}.hx\:dark\:shadow-\[0_-1px_0_rgba\(255\,255\,255\,\.1\)_inset\]:where(.dark,.dark *){--tw-shadow:0 -1px 0 var(--tw-shadow-color,#ffffff1a) inset;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:dark\:shadow-\[0_-12px_16px_\#111\]:where(.dark,.dark *){--tw-shadow:0 -12px 16px var(--tw-shadow-color,#111);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:dark\:shadow-none:where(.dark,.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.hx\:dark\:group-hover\:text-gray-50:where(.dark,.dark *):is(:where(.hx\:group):hover *){color:var(--hx-color-gray-50)}}.hx\:group-data-\[active\=true\]\:dark\:text-primary-600:is(:where(.hx\:group)[data-active=true] *):where(.dark,.dark *){color:var(--hx-color-primary-600)}.hx\:dark\:placeholder\:text-gray-400:where(.dark,.dark *)::placeholder{color:var(--hx-color-gray-400)}.hx\:dark\:before\:bg-neutral-800:where(.dark,.dark *):before{content:var(--tw-content);background-color:var(--hx-color-neutral-800)}.hx\:dark\:before\:invert:where(.dark,.dark *):before{content:var(--tw-content);--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}@media (hover:hover){.hx\:dark\:hover\:border-gray-100:where(.dark,.dark *):hover{border-color:var(--hx-color-gray-100)}.hx\:dark\:hover\:border-gray-600:where(.dark,.dark *):hover{border-color:var(--hx-color-gray-600)}.hx\:dark\:hover\:border-neutral-500:where(.dark,.dark *):hover{border-color:var(--hx-color-neutral-500)}.hx\:dark\:hover\:border-neutral-700:where(.dark,.dark *):hover{border-color:var(--hx-color-neutral-700)}.hx\:dark\:hover\:border-neutral-800:where(.dark,.dark *):hover{border-color:var(--hx-color-neutral-800)}.hx\:dark\:hover\:bg-gray-100\/5:where(.dark,.dark *):hover{background-color:var(--hx-color-gray-100)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:hover\:bg-gray-100\/5:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--hx-color-gray-100) 5%, transparent)}}.hx\:dark\:hover\:bg-neutral-700:where(.dark,.dark *):hover{background-color:var(--hx-color-neutral-700)}.hx\:dark\:hover\:bg-neutral-800:where(.dark,.dark *):hover{background-color:var(--hx-color-neutral-800)}.hx\:dark\:hover\:bg-neutral-900:where(.dark,.dark *):hover{background-color:var(--hx-color-neutral-900)}.hx\:dark\:hover\:bg-primary-100\/5:where(.dark,.dark *):hover{background-color:var(--hx-color-primary-100)}@supports (color:color-mix(in lab, red, red)){.hx\:dark\:hover\:bg-primary-100\/5:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--hx-color-primary-100) 5%, transparent)}}.hx\:dark\:hover\:bg-primary-700:where(.dark,.dark *):hover{background-color:var(--hx-color-primary-700)}.hx\:dark\:hover\:text-gray-50:where(.dark,.dark *):hover{color:var(--hx-color-gray-50)}.hx\:dark\:hover\:text-gray-100:where(.dark,.dark *):hover{color:var(--hx-color-gray-100)}.hx\:dark\:hover\:text-gray-200:where(.dark,.dark *):hover{color:var(--hx-color-gray-200)}.hx\:dark\:hover\:text-gray-300:where(.dark,.dark *):hover{color:var(--hx-color-gray-300)}.hx\:dark\:hover\:text-neutral-50:where(.dark,.dark *):hover{color:var(--hx-color-neutral-50)}.hx\:dark\:hover\:text-primary-400:where(.dark,.dark *):hover{color:var(--hx-color-primary-400)}.hx\:dark\:hover\:text-white:where(.dark,.dark *):hover{color:var(--hx-color-white)}.hx\:dark\:hover\:shadow-none:where(.dark,.dark *):hover{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.hx\:dark\:focus-visible\:bg-dark:where(.dark,.dark *):focus-visible{background-color:var(--hx-color-dark)}.hx\:data-\[state\=selected\]\:dark\:border-primary-500[data-state=selected]:where(.dark,.dark *){border-color:var(--hx-color-primary-500)}.hx\:data-\[state\=selected\]\:dark\:text-primary-600[data-state=selected]:where(.dark,.dark *){color:var(--hx-color-primary-600)}@media (prefers-contrast:more){.hx\:contrast-more\:dark\:border-current:where(.dark,.dark *){border-color:currentColor}.hx\:contrast-more\:dark\:border-gray-50:where(.dark,.dark *){border-color:var(--hx-color-gray-50)}.hx\:contrast-more\:dark\:border-neutral-400:where(.dark,.dark *){border-color:var(--hx-color-neutral-400)}.hx\:contrast-more\:dark\:border-primary-500:where(.dark,.dark *){border-color:var(--hx-color-primary-500)}.hx\:dark\:contrast-more\:border-neutral-400:where(.dark,.dark *){border-color:var(--hx-color-neutral-400)}.hx\:contrast-more\:dark\:text-current:where(.dark,.dark *){color:currentColor}.hx\:contrast-more\:dark\:text-gray-50:where(.dark,.dark *){color:var(--hx-color-gray-50)}.hx\:contrast-more\:dark\:text-gray-100:where(.dark,.dark *){color:var(--hx-color-gray-100)}.hx\:contrast-more\:dark\:text-gray-300:where(.dark,.dark *){color:var(--hx-color-gray-300)}.hx\:contrast-more\:dark\:shadow-\[0_0_0_1px_\#fff\]:where(.dark,.dark *){--tw-shadow:0 0 0 1px var(--tw-shadow-color,#fff);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.hx\:contrast-more\:dark\:shadow-none:where(.dark,.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.hx\:contrast-more\:dark\:hover\:border-gray-50:where(.dark,.dark *):hover{border-color:var(--hx-color-gray-50)}}}@media print{.hx\:print\:\[display\:none\],.hx\:print\:hidden{display:none}.hx\:print\:bg-transparent{background-color:#0000}}}html{font-size:var(--hx-text-base);line-height:var(--tw-leading,var(--hx-text-base--line-height));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background-color:var(--hx-color-white);width:100%}body:where(.dark,.dark *){background-color:var(--hx-color-dark);color:var(--hx-color-gray-100)}:root{--primary-hue:212deg;--primary-saturation:100%;--primary-lightness:50%;--navbar-height:4rem;--hextra-banner-height:2rem;--menu-height:3.75rem}.dark{--primary-hue:204deg;--primary-saturation:100%;--primary-lightness:50%}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.content :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 2);font-size:var(--hx-text-4xl);line-height:var(--tw-leading,var(--hx-text-4xl--line-height));--tw-font-weight:var(--hx-font-weight-bold);font-weight:var(--hx-font-weight-bold);--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight);color:var(--hx-color-slate-900)}.content :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){color:var(--hx-color-slate-100)}.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 10);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--hx-color-neutral-200)}@supports (color:color-mix(in lab, red, red)){.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:color-mix(in oklab, var(--hx-color-neutral-200) 70%, transparent)}}.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){padding-bottom:calc(var(--hx-spacing) * 1);font-size:var(--hx-text-3xl);line-height:var(--tw-leading,var(--hx-text-3xl--line-height));--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold);--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight);color:var(--hx-color-slate-900)}@media (prefers-contrast:more){.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--hx-color-neutral-400)}}.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-primary-100)}@supports (color:color-mix(in lab, red, red)){.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-primary-100) 10%, transparent)}}.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){color:var(--hx-color-slate-100)}@media (prefers-contrast:more){.content :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-neutral-400)}}.content :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 8);font-size:var(--hx-text-2xl);line-height:var(--tw-leading,var(--hx-text-2xl--line-height));--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold);--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight);color:var(--hx-color-slate-900)}.content :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){color:var(--hx-color-slate-100)}.content :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 8);font-size:var(--hx-text-xl);line-height:var(--tw-leading,var(--hx-text-xl--line-height));--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold);--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight);color:var(--hx-color-slate-900)}.content :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){color:var(--hx-color-slate-100)}.content :where(h5):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 8);font-size:var(--hx-text-lg);line-height:var(--tw-leading,var(--hx-text-lg--line-height));--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold);--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight);color:var(--hx-color-slate-900)}.content :where(h5):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){color:var(--hx-color-slate-100)}.content :where(h6):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 8);font-size:var(--hx-text-base);line-height:var(--tw-leading,var(--hx-text-base--line-height));--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold);--tw-tracking:var(--hx-tracking-tight);letter-spacing:var(--hx-tracking-tight);color:var(--hx-color-slate-900)}.content :where(h6):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){color:var(--hx-color-slate-100)}.content :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 6);--tw-leading:calc(var(--hx-spacing) * 7);line-height:calc(var(--hx-spacing) * 7)}.content :where(p):not(:where([class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}.content :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--hx-color-primary-600);text-decoration-line:underline;text-decoration-thickness:from-font}.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 6);border-color:var(--hx-color-gray-300);color:var(--hx-color-gray-700);font-style:italic}.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-left-style:var(--tw-border-style);padding-left:calc(var(--hx-spacing) * 6);border-left-width:2px}.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-right-style:var(--tw-border-style);padding-right:calc(var(--hx-spacing) * 6);border-right-width:2px}.content :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-gray-700);color:var(--hx-color-gray-400)}.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){margin-bottom:calc(var(--hx-spacing) * 4);border-radius:var(--hx-radius-xl);background-color:var(--hx-color-primary-700);overflow-x:auto}@supports (color:color-mix(in lab, red, red)){.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){background-color:color-mix(in oklab, var(--hx-color-primary-700) 5%, transparent)}}.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){padding-block:calc(var(--hx-spacing) * 4);--tw-font-weight:var(--hx-font-weight-medium);font-size:.9em;font-weight:var(--hx-font-weight-medium);-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}@media (prefers-contrast:more){.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){border-style:var(--tw-border-style);border-width:1px;border-color:var(--hx-color-primary-900)}@supports (color:color-mix(in lab, red, red)){.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){border-color:color-mix(in oklab, var(--hx-color-primary-900) 20%, transparent)}}.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){--tw-contrast:contrast(150%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:var(--hx-color-primary-300)}@supports (color:color-mix(in lab, red, red)){.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-primary-300) 10%, transparent)}}@media (prefers-contrast:more){.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-primary-100)}@supports (color:color-mix(in lab, red, red)){.content :where(pre):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-primary-100) 40%, transparent)}}}.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)){border-radius:var(--hx-radius-md);border-style:var(--tw-border-style);border-width:1px;border-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)){border-color:color-mix(in oklab, var(--hx-color-black) 4%, transparent)}}.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)){background-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)){background-color:color-mix(in oklab, var(--hx-color-black) 3%, transparent)}}.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)){padding-inline:.25em;padding-block:calc(var(--hx-spacing) * .5);overflow-wrap:break-word;font-size:.9em}.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-white) 10%, transparent)}}.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.content :where(code):not(:where(.hextra-code-block code,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-white) 10%, transparent)}}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--hx-spacing) * 6);border-collapse:collapse;width:100%;padding:calc(var(--hx-spacing) * 0);font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height));--tw-leading:calc(var(--hx-spacing) * 5);line-height:calc(var(--hx-spacing) * 5);display:block;overflow-x:auto}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) thead{background-color:var(--hx-color-gray-50)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) thead:where(.dark,.dark *){background-color:var(--hx-color-gray-600)}@supports (color:color-mix(in lab, red, red)){.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) thead:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-gray-600) 20%, transparent)}}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) tr{margin:calc(var(--hx-spacing) * 0);border-top-style:var(--tw-border-style);border-top-width:1px;border-color:var(--hx-color-gray-300);padding:calc(var(--hx-spacing) * 0)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) tr:where(.dark,.dark *){border-color:var(--hx-color-gray-600)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) th{margin:calc(var(--hx-spacing) * 0);border-style:var(--tw-border-style);border-width:1px;border-color:var(--hx-color-gray-300);padding:calc(var(--hx-spacing) * 2);--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) th:where(.dark,.dark *){border-color:var(--hx-color-gray-600)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) td{margin:calc(var(--hx-spacing) * 0);border-style:var(--tw-border-style);border-width:1px;border-color:var(--hx-color-gray-300);padding:calc(var(--hx-spacing) * 2)}.content :where(table):not(:where(.hextra-code-block table,[class~=not-prose],[class~=not-prose] *)) td:where(.dark,.dark *){border-color:var(--hx-color-gray-600)}.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 6);list-style-type:decimal}.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)):where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--hx-spacing) * 6)}.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)):where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--hx-spacing) * 6)}.content :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)) li{margin-block:calc(var(--hx-spacing) * 2)}.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 6);list-style-type:disc}.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--hx-spacing) * 6)}.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--hx-spacing) * 6)}.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)) li{margin-block:calc(var(--hx-spacing) * 2)}.content :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):has(li input[type=checkbox]){list-style-type:none}.content :where(ul,ol)>li>:where(ul,ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:calc(var(--hx-spacing) * 0)}.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:var(--hx-radius-md);border-style:var(--tw-border-style);border-width:1px;border-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:color-mix(in oklab, var(--hx-color-black) 4%, transparent)}}.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:color-mix(in oklab, var(--hx-color-black) 3%, transparent)}}.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline:.25em;padding-block:calc(var(--hx-spacing) * .5);overflow-wrap:break-word;font-size:.9em}.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-white) 10%, transparent)}}.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.content :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-white) 10%, transparent)}}.content :where(pre.mermaid):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)){background-color:#0000;border-radius:0}.content :where(pre.mermaid):not(:where(.hextra-code-block pre,[class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){background-color:#0000}.content :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-inline:auto;margin-block:calc(var(--hx-spacing) * 4);border-radius:var(--hx-radius-md)}.content :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)) figcaption{margin-top:calc(var(--hx-spacing) * 2);text-align:center;font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height));color:var(--hx-color-gray-500);display:block}.content :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)) figcaption:where(.dark,.dark *){color:var(--hx-color-gray-400)}.content :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) dt{margin-top:calc(var(--hx-spacing) * 6);--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold)}.content :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) dd{margin-block:calc(var(--hx-spacing) * 2);padding-inline-start:calc(var(--hx-spacing) * 6)}.content :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-block:calc(var(--hx-spacing) * 10);border-color:var(--hx-color-gray-200)}.content :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}.content :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)):last-child{margin-bottom:calc(var(--hx-spacing) * 0)}.content :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)):where(.dark,.dark *){border-color:var(--hx-color-neutral-800)}.content .footnotes{margin-top:calc(var(--hx-spacing) * 12);font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height))}.content .footnotes hr{border-color:var(--hx-color-gray-200)}.content .footnotes hr:where(.dark,.dark *){border-color:var(--hx-color-neutral-800)}.content .subheading-anchor{opacity:0;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration))}.content .subheading-anchor:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--hx-spacing) * 1)}.content .subheading-anchor:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--hx-spacing) * 1)}span:target+:is(.content .subheading-anchor),:hover>:is(.content .subheading-anchor),.content .subheading-anchor:focus-visible{opacity:1}span+:is(.content .subheading-anchor),:hover>:is(.content .subheading-anchor){text-decoration-line:none!important}.content .subheading-anchor:after{content:var(--tw-content);color:var(--hx-color-gray-300)}.content .subheading-anchor:where(.dark,.dark *):after{content:var(--tw-content);color:var(--hx-color-neutral-700)}.content .subheading-anchor:after{padding-inline:calc(var(--hx-spacing) * 1);--tw-content:"#";content:var(--tw-content)}span:target+:is(){color:var(--hx-color-gray-400)}span:target+:is():where(.dark,.dark *){color:var(--hx-color-neutral-500)}article details>summary::-webkit-details-marker{display:none}article details>summary:before{vertical-align:-4px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='hx:h-5 hx:w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");width:1.2em;height:1.2em;padding:0 .6em}:lang(fa) ol{list-style-type:persian}.highlight .chroma .err{color:#a61717;background-color:#e3d2d2}.highlight .chroma .lnlinks{color:inherit;outline:none;text-decoration:none}.highlight .chroma .line{display:flex}.highlight .chroma .k,.highlight .chroma .kc,.highlight .chroma .kd,.highlight .chroma .kn,.highlight .chroma .kp,.highlight .chroma .kr{color:#000;font-weight:700}.highlight .chroma .kt{color:#458;font-weight:700}.highlight .chroma .na{color:teal}.highlight .chroma .nb{color:#0086b3}.highlight .chroma .bp{color:#999}.highlight .chroma .nc{color:#458;font-weight:700}.highlight .chroma .no{color:teal}.highlight .chroma .nd{color:#3c5d5d;font-weight:700}.highlight .chroma .ni{color:purple}.highlight .chroma .ne,.highlight .chroma .nf,.highlight .chroma .nl{color:#900;font-weight:700}.highlight .chroma .nn{color:#555}.highlight .chroma .nt{color:navy}.highlight .chroma .nv,.highlight .chroma .vc,.highlight .chroma .vg,.highlight .chroma .vi{color:teal}.highlight .chroma .s,.highlight .chroma .sa,.highlight .chroma .sb,.highlight .chroma .sc,.highlight .chroma .dl,.highlight .chroma .sd,.highlight .chroma .s2,.highlight .chroma .se,.highlight .chroma .sh,.highlight .chroma .si,.highlight .chroma .sx{color:#d14}.highlight .chroma .sr{color:#009926}.highlight .chroma .s1{color:#d14}.highlight .chroma .ss{color:#990073}.highlight .chroma .m,.highlight .chroma .mb,.highlight .chroma .mf,.highlight .chroma .mh,.highlight .chroma .mi,.highlight .chroma .il,.highlight .chroma .mo{color:#099}.highlight .chroma .o,.highlight .chroma .ow{color:#000;font-weight:700}.highlight .chroma .c,.highlight .chroma .ch,.highlight .chroma .cm,.highlight .chroma .c1{color:#998;font-style:italic}.highlight .chroma .cs,.highlight .chroma .cp,.highlight .chroma .cpf{color:#999;font-style:italic;font-weight:700}.highlight .chroma .gd{color:#000;background-color:#fdd}.highlight .chroma .ge{color:#000;font-style:italic}.highlight .chroma .gr{color:#a00}.highlight .chroma .gh{color:#999}.highlight .chroma .gi{color:#000;background-color:#dfd}.highlight .chroma .go{color:#888}.highlight .chroma .gp{color:#555}.highlight .chroma .gs{font-weight:700}.highlight .chroma .gu{color:#aaa}.highlight .chroma .gt{color:#a00}.highlight .chroma .gl{text-decoration:underline}.highlight .chroma .w{color:#bbb}.dark .highlight .chroma .err{color:#f85149}.dark .highlight .chroma .lnlinks{color:inherit;outline:none;text-decoration:none}.dark .highlight .chroma .line{display:flex}.dark .highlight .chroma .k{color:#ff7b72}.dark .highlight .chroma .kc{color:#79c0ff}.dark .highlight .chroma .kd,.dark .highlight .chroma .kn{color:#ff7b72}.dark .highlight .chroma .kp{color:#79c0ff}.dark .highlight .chroma .kr,.dark .highlight .chroma .kt{color:#ff7b72}.dark .highlight .chroma .nc{color:#f0883e;font-weight:700}.dark .highlight .chroma .no{color:#79c0ff;font-weight:700}.dark .highlight .chroma .nd{color:#d2a8ff;font-weight:700}.dark .highlight .chroma .ni{color:#ffa657}.dark .highlight .chroma .ne{color:#f0883e;font-weight:700}.dark .highlight .chroma .nf{color:#d2a8ff;font-weight:700}.dark .highlight .chroma .nl{color:#79c0ff;font-weight:700}.dark .highlight .chroma .nn{color:#ff7b72}.dark .highlight .chroma .py{color:#79c0ff}.dark .highlight .chroma .nt{color:#7ee787}.dark .highlight .chroma .nv{color:#79c0ff}.dark .highlight .chroma .l{color:#a5d6ff}.dark .highlight .chroma .ld{color:#79c0ff}.dark .highlight .chroma .s{color:#a5d6ff}.dark .highlight .chroma .sa{color:#79c0ff}.dark .highlight .chroma .sb,.dark .highlight .chroma .sc{color:#a5d6ff}.dark .highlight .chroma .dl{color:#79c0ff}.dark .highlight .chroma .sd,.dark .highlight .chroma .s2{color:#a5d6ff}.dark .highlight .chroma .se,.dark .highlight .chroma .sh{color:#79c0ff}.dark .highlight .chroma .si,.dark .highlight .chroma .sx{color:#a5d6ff}.dark .highlight .chroma .sr{color:#79c0ff}.dark .highlight .chroma .s1,.dark .highlight .chroma .ss,.dark .highlight .chroma .m,.dark .highlight .chroma .mb,.dark .highlight .chroma .mf,.dark .highlight .chroma .mh,.dark .highlight .chroma .mi,.dark .highlight .chroma .il,.dark .highlight .chroma .mo{color:#a5d6ff}.dark .highlight .chroma .o,.dark .highlight .chroma .ow{color:#ff7b72;font-weight:700}.dark .highlight .chroma .c,.dark .highlight .chroma .ch,.dark .highlight .chroma .cm,.dark .highlight .chroma .c1{color:#8b949e;font-style:italic}.dark .highlight .chroma .cs,.dark .highlight .chroma .cp,.dark .highlight .chroma .cpf{color:#8b949e;font-style:italic;font-weight:700}.dark .highlight .chroma .gd{color:#ffa198;background-color:#490202}.dark .highlight .chroma .ge{color:inherit;font-style:italic}.dark .highlight .chroma .gr{color:#ffa198}.dark .highlight .chroma .gh{color:#79c0ff;font-weight:700}.dark .highlight .chroma .gi{color:#56d364;background-color:#0f5323}.dark .highlight .chroma .go,.dark .highlight .chroma .gp{color:#8b949e}.dark .highlight .chroma .gs{font-weight:700}.dark .highlight .chroma .gu{color:#79c0ff}.dark .highlight .chroma .gt{color:#ff7b72}.dark .highlight .chroma .gl{text-decoration:underline}.dark .highlight .chroma .w{color:#6e7681}.hextra-code-block{--tw-leading:calc(var(--hx-spacing) * 5);font-size:.9em;line-height:calc(var(--hx-spacing) * 5)}.hextra-code-block pre{background-color:var(--hx-color-primary-700);overflow-x:auto}@supports (color:color-mix(in lab, red, red)){.hextra-code-block pre{background-color:color-mix(in oklab, var(--hx-color-primary-700) 5%, transparent)}}.hextra-code-block pre{--tw-font-weight:var(--hx-font-weight-medium);font-size:.9em;font-weight:var(--hx-font-weight-medium);-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}@media (prefers-contrast:more){.hextra-code-block pre{border-style:var(--tw-border-style);border-width:1px;border-color:var(--hx-color-primary-900)}@supports (color:color-mix(in lab, red, red)){.hextra-code-block pre{border-color:color-mix(in oklab, var(--hx-color-primary-900) 20%, transparent)}}.hextra-code-block pre{--tw-contrast:contrast(150%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.hextra-code-block pre:where(.dark,.dark *){background-color:var(--hx-color-primary-300)}@supports (color:color-mix(in lab, red, red)){.hextra-code-block pre:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-primary-300) 10%, transparent)}}@media (prefers-contrast:more){.hextra-code-block pre:where(.dark,.dark *){border-color:var(--hx-color-primary-100)}@supports (color:color-mix(in lab, red, red)){.hextra-code-block pre:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-primary-100) 40%, transparent)}}}.hextra-code-block .hextra-code-filename{top:calc(var(--hx-spacing) * 0);z-index:1;text-overflow:ellipsis;white-space:nowrap;border-top-left-radius:var(--hx-radius-xl);border-top-right-radius:var(--hx-radius-xl);background-color:var(--hx-color-primary-700);width:100%;position:absolute;overflow:hidden}@supports (color:color-mix(in lab, red, red)){.hextra-code-block .hextra-code-filename{background-color:color-mix(in oklab, var(--hx-color-primary-700) 5%, transparent)}}.hextra-code-block .hextra-code-filename{padding-inline:calc(var(--hx-spacing) * 4);padding-block:calc(var(--hx-spacing) * 2);font-size:var(--hx-text-xs);line-height:var(--tw-leading,var(--hx-text-xs--line-height));color:var(--hx-color-gray-700)}.hextra-code-block .hextra-code-filename:where(.dark,.dark *){background-color:var(--hx-color-primary-300)}@supports (color:color-mix(in lab, red, red)){.hextra-code-block .hextra-code-filename:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-primary-300) 10%, transparent)}}.hextra-code-block .hextra-code-filename:where(.dark,.dark *){color:var(--hx-color-gray-200)}.hextra-code-block .hextra-code-filename+pre:not(.lntable pre){padding-top:calc(var(--hx-spacing) * 12)}.hextra-code-block pre:not(.lntable pre){margin-bottom:calc(var(--hx-spacing) * 4);border-radius:var(--hx-radius-xl);padding-inline:calc(var(--hx-spacing) * 4);padding-block:calc(var(--hx-spacing) * 4)}.hextra-code-block div:nth-of-type(2) pre{padding-top:calc(var(--hx-spacing) * 12);padding-bottom:calc(var(--hx-spacing) * 4)}.chroma .lntable{margin:calc(var(--hx-spacing) * 0);border-radius:var(--hx-radius-xl);width:auto;display:block;overflow:auto}.chroma .lntable pre{padding-top:calc(var(--hx-spacing) * 4);padding-bottom:calc(var(--hx-spacing) * 4)}.chroma .ln,.chroma .lnt:not(.hl>.lnt),.chroma .hl:not(.line){min-width:2.6rem;padding-right:calc(var(--hx-spacing) * 4);padding-left:calc(var(--hx-spacing) * 4);color:var(--hx-color-neutral-600)}:is(.chroma .ln,.chroma .lnt:not(.hl>.lnt),.chroma .hl:not(.line)):where(.dark,.dark *){color:var(--hx-color-neutral-300)}.chroma .lntd{padding:calc(var(--hx-spacing) * 0);vertical-align:top}.chroma .lntd:last-of-type{width:100%}.chroma .hl{background-color:var(--hx-color-primary-800);width:100%;display:block}@supports (color:color-mix(in lab, red, red)){.chroma .hl{background-color:color-mix(in oklab, var(--hx-color-primary-800) 10%, transparent)}}.hextra-cards{grid-template-columns:repeat(auto-fill, minmax(max(250px, calc((100% - 1rem * 2) / var(--hextra-cards-grid-cols))), 1fr))}.hextra-card{position:relative}.hextra-card img{-webkit-user-select:none;user-select:none}.hextra-card:hover .hextra-card-icon svg{color:currentColor}.hextra-card .hextra-card-icon svg{color:#0003;width:1.5rem;transition:color .3s}.hextra-card p{margin-top:.5rem;position:relative}.dark .hextra-card .hextra-card-icon svg{color:#fff6}.dark .hextra-card:hover .hextra-card-icon svg{color:currentColor}.hextra-card-tag{z-index:10;position:absolute;top:5px}.hextra-card-tag:where(:dir(ltr)){right:5px}.hextra-card-tag:where(:dir(rtl)){left:5px}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker){counter-increment:step}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):where(:dir(ltr),[dir=ltr],[dir=ltr] *):before{content:var(--tw-content);margin-left:-41px}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):where(:dir(rtl),[dir=rtl],[dir=rtl] *):before{content:var(--tw-content);margin-right:-44px}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):before{content:var(--tw-content);background-color:var(--hx-color-gray-100)}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):where(.dark,.dark *):before{content:var(--tw-content);background-color:var(--hx-color-neutral-800)}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):before{content:var(--tw-content);border-style:var(--tw-border-style);content:var(--tw-content);border-width:4px;border-color:var(--hx-color-white)}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):where(.dark,.dark *):before{content:var(--tw-content);border-color:var(--hx-color-dark)}.hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):before{content:counter(step);text-align:center;text-indent:-1px;width:33px;height:33px;font-size:var(--hx-text-base);line-height:var(--tw-leading,var(--hx-text-base--line-height));--tw-font-weight:var(--hx-font-weight-normal);font-weight:var(--hx-font-weight-normal);color:var(--hx-color-neutral-400);border-radius:3.40282e38px;position:absolute}:lang(fa) .hextra-steps :where(h2,h3,h4,h5,h6):not(.no-step-marker):before{content:counter(step, persian)}.hextra-search-wrapper li{margin-inline:calc(var(--hx-spacing) * 2.5);border-radius:var(--hx-radius-md);overflow-wrap:break-word;color:var(--hx-color-gray-800)}@media (prefers-contrast:more){.hextra-search-wrapper li{border-style:var(--tw-border-style);border-width:1px;border-color:#0000}}.hextra-search-wrapper li:where(.dark,.dark *){color:var(--hx-color-gray-300)}.hextra-search-wrapper li a{scroll-margin:calc(var(--hx-spacing) * 12);padding-inline:calc(var(--hx-spacing) * 2.5);padding-block:calc(var(--hx-spacing) * 2);display:block}.hextra-search-wrapper li a:focus-visible{--tw-outline-style:none;outline-style:none}.hextra-search-wrapper li .hextra-search-title{font-size:var(--hx-text-base);line-height:var(--tw-leading,var(--hx-text-base--line-height));--tw-leading:calc(var(--hx-spacing) * 5);line-height:calc(var(--hx-spacing) * 5);--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold)}.hextra-search-wrapper li .hextra-search-active{border-radius:var(--hx-radius-md);background-color:var(--hx-color-primary-500)}@supports (color:color-mix(in lab, red, red)){.hextra-search-wrapper li .hextra-search-active{background-color:color-mix(in oklab, var(--hx-color-primary-500) 10%, transparent)}}@media (prefers-contrast:more){.hextra-search-wrapper li .hextra-search-active{border-color:var(--hx-color-primary-500)}}.hextra-search-wrapper .hextra-search-no-result{padding:calc(var(--hx-spacing) * 8);text-align:center;font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height));color:var(--hx-color-gray-400);-webkit-user-select:none;user-select:none;display:block}.hextra-search-wrapper .hextra-search-prefix{margin-inline:calc(var(--hx-spacing) * 2.5);margin-top:calc(var(--hx-spacing) * 6);margin-bottom:calc(var(--hx-spacing) * 2);border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.hextra-search-wrapper .hextra-search-prefix{border-color:color-mix(in oklab, var(--hx-color-black) 10%, transparent)}}.hextra-search-wrapper .hextra-search-prefix{padding-inline:calc(var(--hx-spacing) * 2.5);padding-bottom:calc(var(--hx-spacing) * 1.5);font-size:var(--hx-text-xs);line-height:var(--tw-leading,var(--hx-text-xs--line-height));--tw-font-weight:var(--hx-font-weight-semibold);font-weight:var(--hx-font-weight-semibold);color:var(--hx-color-gray-500);text-transform:uppercase;-webkit-user-select:none;user-select:none}.hextra-search-wrapper .hextra-search-prefix:first-child{margin-top:calc(var(--hx-spacing) * 0)}@media (prefers-contrast:more){.hextra-search-wrapper .hextra-search-prefix{border-color:var(--hx-color-gray-600);color:var(--hx-color-gray-900)}}.hextra-search-wrapper .hextra-search-prefix:where(.dark,.dark *){border-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.hextra-search-wrapper .hextra-search-prefix:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-white) 20%, transparent)}}.hextra-search-wrapper .hextra-search-prefix:where(.dark,.dark *){color:var(--hx-color-gray-300)}@media (prefers-contrast:more){.hextra-search-wrapper .hextra-search-prefix:where(.dark,.dark *){border-color:var(--hx-color-gray-50);color:var(--hx-color-gray-50)}}.hextra-search-wrapper .hextra-search-excerpt{margin-top:calc(var(--hx-spacing) * 1);font-size:var(--hx-text-sm);line-height:var(--tw-leading,var(--hx-text-sm--line-height));--tw-leading:1.35rem;text-overflow:ellipsis;color:var(--hx-color-gray-600);line-height:1.35rem;overflow:hidden}.hextra-search-wrapper .hextra-search-excerpt:where(.dark,.dark *){color:var(--hx-color-gray-400)}@media (prefers-contrast:more){.hextra-search-wrapper .hextra-search-excerpt:where(.dark,.dark *){color:var(--hx-color-gray-50)}}.hextra-search-wrapper .hextra-search-excerpt{line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box}.hextra-search-wrapper .hextra-search-match{color:var(--hx-color-primary-600)}@media (max-width:48rem){.hextra-sidebar-container{top:calc(var(--hx-spacing) * 0);bottom:calc(var(--hx-spacing) * 0);z-index:15;overscroll-behavior:contain;background-color:var(--hx-color-white);width:100%;padding-top:calc(var(--navbar-height) + var(--hextra-banner-height));position:fixed}.hextra-sidebar-container:where(.dark,.dark *){background-color:var(--hx-color-dark)}.hextra-sidebar-container{will-change:transform, opacity;contain:layout style;backface-visibility:hidden;transition:transform .4s cubic-bezier(.52,.16,.04,1)}}.hextra-sidebar-container li>.hextra-sidebar-children{height:calc(var(--hx-spacing) * 0)}.hextra-sidebar-container li.open>.hextra-sidebar-children{height:auto;padding-top:calc(var(--hx-spacing) * 1)}.hextra-sidebar-container li.open>.hextra-sidebar-item>.hextra-sidebar-collapsible-button>svg>path{rotate:90deg}.hextra-banner-hidden .hextra-banner{display:none}.hextra-banner :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){text-decoration-line:underline;text-decoration-thickness:from-font}.hextra-banner :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){--tw-leading:calc(var(--hx-spacing) * 7);line-height:calc(var(--hx-spacing) * 7)}.hextra-banner :where(p):not(:where([class~=not-prose],[class~=not-prose] *)):first-child{margin-top:calc(var(--hx-spacing) * 0)}nav .hextra-search-wrapper{display:none}@media (min-width:48rem){nav .hextra-search-wrapper{display:inline-block}}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.hextra-nav-container-blur{background-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.hextra-nav-container-blur{background-color:color-mix(in oklab, var(--hx-color-white) 85%, transparent)}}.hextra-nav-container-blur{--tw-backdrop-blur:blur(var(--hx-blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.hextra-nav-container-blur:where(.dark,.dark *){background-color:var(--hx-color-dark)!important}@supports (color:color-mix(in lab, red, red)){.hextra-nav-container-blur:where(.dark,.dark *){background-color:color-mix(in oklab, var(--hx-color-dark) 80%, transparent)!important}}}.hextra-hamburger-menu svg g{transform-origin:50%;transition-property:all;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration));--tw-duration:.1s;--tw-ease:var(--hx-ease-out);transition-duration:.1s;transition-timing-function:var(--hx-ease-out)}.hextra-hamburger-menu svg path{opacity:1;transition-property:all;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration));--tw-duration:.1s;--tw-ease:var(--hx-ease-out);transition-duration:.1s;transition-delay:.1s;transition-timing-function:var(--hx-ease-out)}.hextra-hamburger-menu svg.open path{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration));--tw-duration:.1s;--tw-ease:var(--hx-ease-out);transition-duration:.1s;transition-delay:0s;transition-timing-function:var(--hx-ease-out)}.hextra-hamburger-menu svg.open g{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration));--tw-duration:.1s;--tw-ease:var(--hx-ease-out);transition-duration:.1s;transition-delay:.1s;transition-timing-function:var(--hx-ease-out)}.hextra-hamburger-menu svg.open>path{opacity:0}.hextra-hamburger-menu svg.open>g:first-of-type{rotate:45deg}.hextra-hamburger-menu svg.open>g:first-of-type path{--tw-translate-y:calc(var(--hx-spacing) * 1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hextra-hamburger-menu svg.open>g:nth-of-type(2){rotate:-45deg}.hextra-hamburger-menu svg.open>g:nth-of-type(2) path{--tw-translate-y:calc(var(--hx-spacing) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.hextra-scrollbar,.hextra-scrollbar *{scrollbar-width:thin;scrollbar-color:oklch(55.55% 0 0/.4) transparent;scrollbar-gutter:stable}:is(.hextra-scrollbar,.hextra-scrollbar *)::-webkit-scrollbar{height:calc(var(--hx-spacing) * 3);width:calc(var(--hx-spacing) * 3)}:is(.hextra-scrollbar,.hextra-scrollbar *)::-webkit-scrollbar-track{background-color:#0000}:is(.hextra-scrollbar,.hextra-scrollbar *)::-webkit-scrollbar-thumb{border-radius:10px}:is(.hextra-scrollbar,.hextra-scrollbar *):hover::-webkit-scrollbar-thumb{background-color:var(--tw-shadow-color);--tw-shadow-color:var(--hx-color-neutral-500);background-clip:content-box;border:3px solid #0000}@supports (color:color-mix(in lab, red, red)){:is(.hextra-scrollbar,.hextra-scrollbar *):hover::-webkit-scrollbar-thumb{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--hx-color-neutral-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}@media (hover:hover){:is(.hextra-scrollbar,.hextra-scrollbar *):hover::-webkit-scrollbar-thumb:hover{--tw-shadow-color:var(--hx-color-neutral-500)}@supports (color:color-mix(in lab, red, red)){:is(.hextra-scrollbar,.hextra-scrollbar *):hover::-webkit-scrollbar-thumb:hover{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--hx-color-neutral-500) 40%, transparent) var(--tw-shadow-alpha), transparent)}}}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){.hextra-code-copy-btn{opacity:.85;--tw-backdrop-blur:blur(var(--hx-blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.hextra-code-copy-btn:where(.dark,.dark *){opacity:.8}}@media (min-width:1024px){.hextra-feature-grid{grid-template-columns:repeat(var(--hextra-feature-grid-cols), minmax(0, 1fr))}}.hextra-jupyter-code-cell{scrollbar-gutter:auto;margin-top:calc(var(--hx-spacing) * 6)}.hextra-jupyter-code-cell .hextra-jupyter-code-cell-outputs-container{font-size:var(--hx-text-xs);line-height:var(--tw-leading,var(--hx-text-xs--line-height));overflow:hidden}.hextra-jupyter-code-cell .hextra-jupyter-code-cell-outputs-container .hextra-jupyter-code-cell-outputs{max-height:50vh;overflow:auto}.hextra-jupyter-code-cell .hextra-jupyter-code-cell-outputs-container .hextra-jupyter-code-cell-outputs pre{max-width:100%;font-size:var(--hx-text-xs);line-height:var(--tw-leading,var(--hx-text-xs--line-height));overflow:auto}.hextra-badge{align-items:center;display:inline-flex}.hextra-toc a.hextra-toc-active{transition-property:all;transition-timing-function:var(--tw-ease,var(--hx-default-transition-timing-function));transition-duration:var(--tw-duration,var(--hx-default-transition-duration));--tw-duration:.2s;transition-duration:.2s;color:var(--hx-color-gray-900)!important}.hextra-toc a.hextra-toc-active:where(.dark,.dark *){color:var(--hx-color-gray-50)!important}.hextra-archive-timeline{border-left-style:var(--tw-border-style);border-left-width:2px;border-color:var(--hx-color-black)}@supports (color:color-mix(in lab, red, red)){.hextra-archive-timeline{border-color:color-mix(in oklab, var(--hx-color-black) 15%, transparent)}}.hextra-archive-timeline:where(.dark,.dark *){border-color:var(--hx-color-white)}@supports (color:color-mix(in lab, red, red)){.hextra-archive-timeline:where(.dark,.dark *){border-color:color-mix(in oklab, var(--hx-color-white) 15%, transparent)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
diff --git a/website/themes/hextra/assets/css/components/archives.css b/website/themes/hextra/assets/css/components/archives.css
new file mode 100644
index 00000000..de1ba3a9
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/archives.css
@@ -0,0 +1,3 @@
+.hextra-archive-timeline {
+ @apply hx:border-l-2 hx:border-black/15 hx:dark:border-white/15;
+}
diff --git a/website/themes/hextra/assets/css/components/badge.css b/website/themes/hextra/assets/css/components/badge.css
new file mode 100644
index 00000000..46f8f533
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/badge.css
@@ -0,0 +1,3 @@
+.hextra-badge {
+ @apply hx:inline-flex hx:items-center;
+}
diff --git a/website/themes/hextra/assets/css/components/banner.css b/website/themes/hextra/assets/css/components/banner.css
new file mode 100644
index 00000000..047bda37
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/banner.css
@@ -0,0 +1,12 @@
+.hextra-banner-hidden .hextra-banner {
+ display: none;
+}
+
+.hextra-banner {
+ :where(a):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:underline hx:decoration-from-font;
+ }
+ :where(p):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:leading-7 hx:first:mt-0;
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/cards.css b/website/themes/hextra/assets/css/components/cards.css
new file mode 100644
index 00000000..f4082249
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/cards.css
@@ -0,0 +1,46 @@
+.hextra-cards {
+ grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 1rem * 2) / var(--hextra-cards-grid-cols))), 1fr));
+}
+
+.hextra-card {
+ position: relative;
+}
+
+.hextra-card img {
+ user-select: none;
+}
+
+.hextra-card:hover .hextra-card-icon svg {
+ color: currentColor;
+}
+
+.hextra-card .hextra-card-icon svg {
+ width: 1.5rem;
+ color: #00000033;
+ transition: color 0.3s ease;
+}
+
+.hextra-card p {
+ margin-top: 0.5rem;
+ position: relative;
+}
+
+.dark .hextra-card .hextra-card-icon svg {
+ color: #ffffff66;
+}
+
+.dark .hextra-card:hover .hextra-card-icon svg {
+ color: currentColor;
+}
+
+.hextra-card-tag {
+ position: absolute;
+ z-index: 10;
+ top: 5px;
+ &:where(:dir(ltr)) {
+ right: 5px;
+ }
+ &:where(:dir(rtl)) {
+ left: 5px;
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/code-copy.css b/website/themes/hextra/assets/css/components/code-copy.css
new file mode 100644
index 00000000..ddc92825
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/code-copy.css
@@ -0,0 +1,7 @@
+@supports (
+ (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
+) {
+ .hextra-code-copy-btn {
+ @apply hx:backdrop-blur-md hx:opacity-85 hx:dark:opacity-80;
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/hextra/feature-grid.css b/website/themes/hextra/assets/css/components/hextra/feature-grid.css
new file mode 100644
index 00000000..a81c97b8
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/hextra/feature-grid.css
@@ -0,0 +1,5 @@
+.hextra-feature-grid {
+ @media (min-width: 1024px) {
+ grid-template-columns: repeat(var(--hextra-feature-grid-cols), minmax(0, 1fr));
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/jupyter.css b/website/themes/hextra/assets/css/components/jupyter.css
new file mode 100644
index 00000000..7e131f1f
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/jupyter.css
@@ -0,0 +1,17 @@
+.hextra-jupyter-code-cell {
+ scrollbar-gutter: auto;
+
+ @apply hx:mt-6;
+
+ .hextra-jupyter-code-cell-outputs-container {
+ @apply hx:text-xs hx:overflow-hidden;
+
+ .hextra-jupyter-code-cell-outputs {
+ @apply hx:overflow-auto hx:max-h-[50vh];
+
+ pre {
+ @apply hx:text-xs hx:overflow-auto hx:max-w-full;
+ }
+ }
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/navbar.css b/website/themes/hextra/assets/css/components/navbar.css
new file mode 100644
index 00000000..d58813f2
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/navbar.css
@@ -0,0 +1,50 @@
+nav {
+ .hextra-search-wrapper {
+ @apply hx:hidden hx:md:inline-block;
+ }
+}
+
+@supports (
+ (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))
+) {
+ .hextra-nav-container-blur {
+ @apply hx:backdrop-blur-md hx:bg-white/[.85] hx:dark:bg-dark/80!;
+ }
+}
+
+/* Hamburger Menu - Flattened Structure */
+.hextra-hamburger-menu svg g {
+ @apply hx:origin-center hx:transition-all hx:duration-100 hx:ease-out;
+}
+
+.hextra-hamburger-menu svg path {
+ @apply hx:opacity-100 hx:transition-all hx:duration-100 hx:ease-out hx:delay-100;
+}
+
+.hextra-hamburger-menu svg.open path {
+ @apply hx:transition-transform hx:duration-100 hx:ease-out hx:delay-0;
+}
+
+.hextra-hamburger-menu svg.open g {
+ @apply hx:transition-transform hx:duration-100 hx:ease-out hx:delay-100;
+}
+
+.hextra-hamburger-menu svg.open > path {
+ @apply hx:opacity-0;
+}
+
+.hextra-hamburger-menu svg.open > g:nth-of-type(1) {
+ @apply hx:rotate-45;
+}
+
+.hextra-hamburger-menu svg.open > g:nth-of-type(1) path {
+ @apply hx:translate-y-1;
+}
+
+.hextra-hamburger-menu svg.open > g:nth-of-type(2) {
+ @apply hx:-rotate-45;
+}
+
+.hextra-hamburger-menu svg.open > g:nth-of-type(2) path {
+ @apply hx:-translate-y-1;
+}
diff --git a/website/themes/hextra/assets/css/components/scrollbar.css b/website/themes/hextra/assets/css/components/scrollbar.css
new file mode 100644
index 00000000..a1fa8ef1
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/scrollbar.css
@@ -0,0 +1,21 @@
+.hextra-scrollbar, .hextra-scrollbar * {
+ scrollbar-width: thin; /* Firefox */
+ scrollbar-color: oklch(55.55% 0 0 / 40%) transparent; /* Firefox */
+
+ scrollbar-gutter: stable;
+ &::-webkit-scrollbar {
+ @apply hx:w-3 hx:h-3;
+ }
+ &::-webkit-scrollbar-track {
+ @apply hx:bg-transparent;
+ }
+ &::-webkit-scrollbar-thumb {
+ @apply hx:rounded-[10px];
+ }
+ &:hover::-webkit-scrollbar-thumb {
+ border: 3px solid transparent;
+ background-color: var(--tw-shadow-color);
+ background-clip: content-box;
+ @apply hx:shadow-neutral-500/20 hx:hover:shadow-neutral-500/40;
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/search.css b/website/themes/hextra/assets/css/components/search.css
new file mode 100644
index 00000000..71205ffd
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/search.css
@@ -0,0 +1,38 @@
+.hextra-search-wrapper {
+ li {
+ @apply hx:mx-2.5 hx:wrap-break-word hx:rounded-md hx:contrast-more:border hx:text-gray-800 hx:contrast-more:border-transparent hx:dark:text-gray-300;
+ a {
+ @apply hx:focus-visible:outline-none hx:block hx:scroll-m-12 hx:px-2.5 hx:py-2;
+ }
+
+ .hextra-search-title {
+ @apply hx:text-base hx:font-semibold hx:leading-5;
+ }
+
+ .hextra-search-active {
+ @apply hx:rounded-md hx:bg-primary-500/10 hx:contrast-more:border-primary-500;
+ }
+ }
+
+ .hextra-search-no-result {
+ @apply hx:block hx:select-none hx:p-8 hx:text-center hx:text-sm hx:text-gray-400;
+ }
+
+ .hextra-search-prefix {
+ @apply hx:mx-2.5 hx:mb-2 hx:mt-6 hx:select-none hx:border-b hx:border-black/10 hx:px-2.5 hx:pb-1.5 hx:text-xs hx:font-semibold
+ hx:uppercase hx:text-gray-500 hx:first:mt-0 hx:dark:border-white/20 hx:dark:text-gray-300 hx:contrast-more:border-gray-600
+ hx:contrast-more:text-gray-900 hx:contrast-more:dark:border-gray-50 hx:contrast-more:dark:text-gray-50;
+ }
+
+ .hextra-search-excerpt {
+ @apply hx:overflow-hidden hx:text-ellipsis hx:mt-1 hx:text-sm hx:leading-[1.35rem] hx:text-gray-600 hx:dark:text-gray-400 hx:contrast-more:dark:text-gray-50;
+ display: -webkit-box;
+ line-clamp: 1;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ }
+
+ .hextra-search-match {
+ @apply hx:text-primary-600;
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/sidebar.css b/website/themes/hextra/assets/css/components/sidebar.css
new file mode 100644
index 00000000..911876bc
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/sidebar.css
@@ -0,0 +1,21 @@
+@media (max-width: 48rem) {
+ .hextra-sidebar-container {
+ @apply hx:fixed hx:pt-[calc(var(--navbar-height)+var(--hextra-banner-height))] hx:top-0 hx:w-full hx:bottom-0 hx:z-15 hx:overscroll-contain hx:bg-white hx:dark:bg-dark;
+ transition: transform 0.4s cubic-bezier(0.52, 0.16, 0.04, 1);
+ will-change: transform, opacity;
+ contain: layout style;
+ backface-visibility: hidden;
+ }
+}
+
+.hextra-sidebar-container {
+ li > .hextra-sidebar-children {
+ @apply hx:h-0;
+ }
+ li.open > .hextra-sidebar-children {
+ @apply hx:h-auto hx:pt-1;
+ }
+ li.open > .hextra-sidebar-item > .hextra-sidebar-collapsible-button > svg > path {
+ @apply hx:rotate-90;
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/steps.css b/website/themes/hextra/assets/css/components/steps.css
new file mode 100644
index 00000000..329d2489
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/steps.css
@@ -0,0 +1,22 @@
+.hextra-steps {
+ :where(h2, h3, h4, h5, h6):not(.no-step-marker) {
+ counter-increment: step;
+ @apply hx:ltr:before:ml-[-41px] hx:rtl:before:mr-[-44px];
+ /* https://github.com/tailwindlabs/tailwindcss/issues/15597#issuecomment-2582673546 */
+ @apply hx:before:bg-gray-100 hx:dark:before:bg-neutral-800;
+ @apply hx:before:border-4 hx:before:border-white hx:dark:before:border-dark;
+ &:before {
+ content: counter(step);
+ @apply hx:absolute hx:size-[33px];
+ @apply hx:rounded-full hx:text-neutral-400 hx:text-base hx:font-normal hx:text-center hx:-indent-px;
+ }
+ }
+}
+
+:lang(fa) .hextra-steps {
+ :where(h2, h3, h4, h5, h6):not(.no-step-marker) {
+ &:before {
+ content: counter(step, persian);
+ }
+ }
+}
diff --git a/website/themes/hextra/assets/css/components/toc.css b/website/themes/hextra/assets/css/components/toc.css
new file mode 100644
index 00000000..0d8e115a
--- /dev/null
+++ b/website/themes/hextra/assets/css/components/toc.css
@@ -0,0 +1,4 @@
+/* Table of Contents Scroll Spy Styles */
+.hextra-toc a.hextra-toc-active {
+ @apply hx:text-gray-900! hx:dark:text-gray-50! hx:transition-all hx:duration-200;
+}
diff --git a/website/themes/hextra/assets/css/custom.css b/website/themes/hextra/assets/css/custom.css
new file mode 100644
index 00000000..e69de29b
diff --git a/website/themes/hextra/assets/css/highlight.css b/website/themes/hextra/assets/css/highlight.css
new file mode 100644
index 00000000..da239520
--- /dev/null
+++ b/website/themes/hextra/assets/css/highlight.css
@@ -0,0 +1,53 @@
+/* Code syntax highlight */
+@import "./chroma/light.css";
+@import "./chroma/dark.css";
+
+.hextra-code-block {
+ @apply hx:text-[.9em] hx:leading-5;
+
+ pre {
+ @apply hx:text-[.9em] hx:bg-primary-700/5 hx:overflow-x-auto hx:font-medium hx:subpixel-antialiased hx:dark:bg-primary-300/10 hx:contrast-more:border hx:contrast-more:border-primary-900/20 hx:contrast-more:contrast-150 hx:contrast-more:dark:border-primary-100/40;
+ }
+
+ .hextra-code-filename {
+ @apply hx:absolute hx:top-0 hx:z-1 hx:w-full hx:truncate hx:rounded-t-xl hx:bg-primary-700/5 hx:py-2 hx:px-4 hx:text-xs hx:text-gray-700 hx:dark:bg-primary-300/10 hx:dark:text-gray-200;
+ }
+
+ .hextra-code-filename + pre:not(.lntable pre) {
+ /* Override padding for code blocks with filename but no highlight */
+ @apply hx:pt-12;
+ }
+}
+
+.hextra-code-block pre:not(.lntable pre) {
+ @apply hx:px-4 hx:mb-4 hx:py-4 hx:rounded-xl;
+}
+
+.hextra-code-block div:nth-of-type(2) pre {
+ @apply hx:pt-12 hx:pb-4;
+}
+
+.chroma {
+ .lntable {
+ @apply hx:m-0 hx:block hx:w-auto hx:overflow-auto hx:rounded-xl;
+
+ pre {
+ @apply hx:pt-4 hx:pb-4;
+ }
+ }
+ .ln,
+ .lnt:not(.hl > .lnt),
+ .hl:not(.line) {
+ @apply hx:pl-4 hx:pr-4 hx:min-w-[2.6rem] hx:text-neutral-600 hx:dark:text-neutral-300;
+ }
+ .lntd {
+ @apply hx:p-0 hx:align-top;
+ }
+ .lntd:last-of-type {
+ @apply hx:w-full;
+ }
+ /* LineHighlight */
+ .hl {
+ @apply hx:block hx:w-full hx:bg-primary-800/10;
+ }
+}
diff --git a/website/themes/hextra/assets/css/safelist.txt b/website/themes/hextra/assets/css/safelist.txt
new file mode 100644
index 00000000..8ecf4686
--- /dev/null
+++ b/website/themes/hextra/assets/css/safelist.txt
@@ -0,0 +1 @@
+hx:max-w-full
diff --git a/website/themes/hextra/assets/css/styles.css b/website/themes/hextra/assets/css/styles.css
new file mode 100644
index 00000000..bafd9dfc
--- /dev/null
+++ b/website/themes/hextra/assets/css/styles.css
@@ -0,0 +1,91 @@
+@import "tailwindcss" prefix(hx);
+
+@custom-variant dark (&:where(.dark, .dark *));
+
+@theme {
+ --color-primary-50: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 47));
+ --color-primary-100: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 44));
+ --color-primary-200: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 36));
+ --color-primary-300: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 27));
+ --color-primary-400: hsl(var(--primary-hue) var(--primary-saturation) calc(var(--primary-lightness) + calc(calc(100% - var(--primary-lightness)) / 50) * 16));
+ --color-primary-500: hsl(var(--primary-hue) var(--primary-saturation) var(--primary-lightness));
+ --color-primary-600: hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 45));
+ --color-primary-700: hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 39));
+ --color-primary-800: hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 32));
+ --color-primary-900: hsl(var(--primary-hue) var(--primary-saturation) calc(calc(var(--primary-lightness) / 50) * 24));
+ --color-dark: #111;
+}
+
+html {
+ @apply hx:text-base hx:antialiased;
+}
+
+body {
+ @apply hx:w-full hx:bg-white hx:dark:bg-dark hx:dark:text-gray-100;
+}
+
+:root {
+ --primary-hue: 212deg;
+ --primary-saturation: 100%;
+ --primary-lightness: 50%;
+ --navbar-height: 4rem;
+ --hextra-banner-height: 2rem;
+ --menu-height: 3.75rem; /* 60px */
+}
+
+.dark {
+ --primary-hue: 204deg;
+ --primary-saturation: 100%;
+ --primary-lightness: 50%;
+}
+
+@utility hextra-focus {
+ @apply hx:outline-none hx:ring-2 hx:ring-primary-200 hx:ring-offset-1 hx:ring-offset-primary-300 hx:dark:ring-primary-800 hx:dark:ring-offset-primary-700;
+}
+
+@utility hextra-focus-visible {
+ @apply hx:focus-visible:outline-none hx:focus-visible:ring-2 hx:focus-visible:ring-primary-200 hx:focus-visible:ring-offset-1 hx:focus-visible:ring-offset-primary-300 hx:dark:focus-visible:ring-primary-800 hx:dark:focus-visible:ring-offset-primary-700;
+}
+
+@utility hextra-focus-visible-inset {
+ @apply hx:focus-visible:outline-none hx:focus-visible:ring-inset hx:focus-visible:ring-2 hx:focus-visible:ring-primary-200 hx:dark:focus-visible:ring-primary-800 hx:focus-visible:ring-offset-0;
+}
+
+@layer base {
+ abbr:where([title]) {
+ cursor: help;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ *, *::before, *::after {
+ animation-duration: 0.01ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.01ms !important;
+ scroll-behavior: auto !important;
+ }
+}
+
+@layer base {
+ :where(a, button, [role="tab"], [role="menuitem"], [role="menuitemradio"], input, select, textarea, [tabindex="0"]):not(
+ [class*="hextra-focus-visible"]
+ ):focus-visible {
+ @apply hx:hextra-focus;
+ }
+}
+
+@import "./typography.css";
+@import "./highlight.css";
+@import "./components/cards.css";
+@import "./components/steps.css";
+@import "./components/search.css";
+@import "./components/sidebar.css";
+@import "./components/banner.css";
+@import "./components/navbar.css";
+@import "./components/scrollbar.css";
+@import "./components/code-copy.css";
+@import "./components/hextra/feature-grid.css";
+@import "./components/jupyter.css";
+@import "./components/badge.css";
+@import "./components/toc.css";
+@import "./components/archives.css";
diff --git a/website/themes/hextra/assets/css/typography.css b/website/themes/hextra/assets/css/typography.css
new file mode 100644
index 00000000..0b9d7f0f
--- /dev/null
+++ b/website/themes/hextra/assets/css/typography.css
@@ -0,0 +1,147 @@
+.content {
+ :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mt-2 hx:text-4xl hx:font-bold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100;
+ }
+ :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-10 hx:border-b hx:pb-1 hx:text-3xl hx:border-neutral-200/70 hx:contrast-more:border-neutral-400 hx:dark:border-primary-100/10 hx:contrast-more:dark:border-neutral-400;
+ }
+ :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-2xl;
+ }
+ :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-xl;
+ }
+ :where(h5):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-lg;
+ }
+ :where(h6):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:font-semibold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100 hx:mt-8 hx:text-base;
+ }
+ :where(p):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mt-6 hx:leading-7 hx:first:mt-0;
+ }
+ :where(a):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:text-primary-600 hx:underline hx:decoration-from-font;
+ }
+ :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mt-6 hx:border-gray-300 hx:italic hx:text-gray-700 hx:dark:border-gray-700 hx:dark:text-gray-400 hx:first:mt-0 hx:ltr:border-l-2 hx:ltr:pl-6 hx:rtl:border-r-2 hx:rtl:pr-6;
+ }
+ :where(pre):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:bg-primary-700/5 hx:mb-4 hx:overflow-x-auto hx:rounded-xl hx:font-medium hx:subpixel-antialiased hx:dark:bg-primary-300/10 hx:text-[.9em] hx:contrast-more:border hx:contrast-more:border-primary-900/20 hx:contrast-more:contrast-150 hx:contrast-more:dark:border-primary-100/40 hx:py-4;
+ }
+ :where(code):not(:where(.hextra-code-block code, [class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:border-black/4 hx:bg-black/3 hx:wrap-break-word hx:rounded-md hx:border hx:py-0.5 hx:px-[.25em] hx:text-[.9em] hx:dark:border-white/10 hx:dark:bg-white/10;
+ }
+ :where(table):not(:where(.hextra-code-block table, [class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:block hx:overflow-x-auto hx:my-6 hx:p-0 hx:first:mt-0 hx:w-full hx:text-sm hx:leading-5 hx:border-collapse;
+
+ thead {
+ @apply hx:bg-gray-50 hx:dark:bg-gray-600/20;
+ }
+ tr {
+ @apply hx:m-0 hx:border-t hx:border-gray-300 hx:p-0 hx:dark:border-gray-600;
+ }
+ th {
+ @apply hx:m-0 hx:border hx:border-gray-300 hx:p-2 hx:font-semibold hx:dark:border-gray-600;
+ }
+ td {
+ @apply hx:m-0 hx:border hx:border-gray-300 hx:p-2 hx:dark:border-gray-600;
+ }
+ }
+ :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mt-6 hx:list-decimal hx:first:mt-0 hx:ltr:ml-6 hx:rtl:mr-6;
+ li {
+ @apply hx:my-2;
+ }
+ }
+ :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mt-6 hx:list-disc hx:first:mt-0 hx:ltr:ml-6 hx:rtl:mr-6;
+ li {
+ @apply hx:my-2;
+ }
+ }
+ /* Task lists - hide list markers for lists containing checkboxes */
+ :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)):has(li input[type="checkbox"]) {
+ @apply hx:list-none;
+ }
+ /* This CSS rule targets the first nested unordered (ul) or ordered (ol) list
+ inside the list item (li) of any parent ul or ol.
+ The rule sets the top margin of the selected list to zero. */
+ :where(ul, ol) > li > :where(ul, ol):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mt-0;
+ }
+ :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:border-black/4 hx:bg-black/3 hx:wrap-break-word hx:rounded-md hx:border hx:py-0.5 hx:px-[.25em] hx:text-[.9em] hx:dark:border-white/10 hx:dark:bg-white/10;
+ }
+ :where(pre.mermaid):not(:where(.hextra-code-block pre, [class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:bg-transparent hx:rounded-none hx:dark:bg-transparent;
+ }
+ :where(img):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:mx-auto hx:my-4 hx:rounded-md;
+ }
+ :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ figcaption {
+ @apply hx:text-sm hx:text-gray-500 hx:dark:text-gray-400 hx:mt-2 hx:block hx:text-center;
+ }
+ }
+ /* Definition list */
+ :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ dt {
+ @apply hx:mt-6 hx:font-semibold;
+ }
+ dd {
+ @apply hx:my-2 hx:ps-6;
+ }
+ }
+ /* Horizontal line */
+ :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)) {
+ @apply hx:my-10 hx:first:mt-0 hx:last:mb-0 hx:border-gray-200 hx:dark:border-neutral-800;
+ }
+ .footnotes {
+ @apply hx:mt-12 hx:text-sm;
+
+ hr {
+ @apply hx:border-gray-200 hx:dark:border-neutral-800;
+ }
+ }
+ .subheading-anchor {
+ @apply hx:opacity-0 hx:transition-opacity hx:ltr:ml-1 hx:rtl:mr-1;
+
+ span:target + &,
+ :hover > &,
+ &:focus-visible {
+ @apply hx:opacity-100;
+ }
+
+ span + &,
+ :hover > & {
+ @apply hx:no-underline!;
+ }
+
+ @apply hx:after:text-gray-300 hx:dark:after:text-neutral-700;
+ &:after {
+ @apply hx:content-['#'] hx:px-1;
+ span:target + & {
+ @apply hx:text-gray-400;
+ @apply hx:dark:text-neutral-500;
+ }
+ }
+ }
+}
+
+article details > summary {
+ &::-webkit-details-marker {
+ @apply hx:hidden;
+ }
+ &::before {
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='hx:h-5 hx:w-5' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z' clip-rule='evenodd' /%3E%3C/svg%3E");
+ height: 1.2em;
+ width: 1.2em;
+ vertical-align: -4px;
+ padding: 0 0.6em;
+ }
+}
+
+:lang(fa) ol {
+ list-style-type: persian;
+}
diff --git a/website/themes/hextra/assets/css/variables.css b/website/themes/hextra/assets/css/variables.css
new file mode 100644
index 00000000..99691826
--- /dev/null
+++ b/website/themes/hextra/assets/css/variables.css
@@ -0,0 +1,35 @@
+/* Hugo template to derive CSS variables from site and page parameters */
+
+/* Do not remove the following comment. It is used by Hugo to render CSS variables.
+{{- $layoutWidthValues := dict "normal" "80rem" "wide" "90rem" "full" "100%" -}}
+{{- $layoutWidthDefault := index $layoutWidthValues "normal" -}}
+
+{{- $maxPageWidth := (index $layoutWidthValues (site.Params.page.width | default "normal")) | default $layoutWidthDefault -}}
+{{- $maxNavbarWidth := (index $layoutWidthValues (site.Params.navbar.width | default "normal")) | default $layoutWidthDefault -}}
+{{- $maxFooterWidth := (index $layoutWidthValues (site.Params.footer.width | default "normal")) | default $layoutWidthDefault -}}
+
+{{- $maxContentWidth := "72rem" -}}
+*/
+
+:root {
+ --hextra-max-page-width: {{ $maxPageWidth }};
+ --hextra-max-content-width: {{ $maxContentWidth }};
+ --hextra-max-navbar-width: {{ $maxNavbarWidth }};
+ --hextra-max-footer-width: {{ $maxFooterWidth }};
+}
+
+.hextra-max-page-width {
+ max-width: var(--hextra-max-page-width);
+}
+
+.hextra-max-content-width {
+ max-width: var(--hextra-max-content-width);
+}
+
+.hextra-max-navbar-width {
+ max-width: var(--hextra-max-navbar-width);
+}
+
+.hextra-max-footer-width {
+ max-width: var(--hextra-max-footer-width);
+}
diff --git a/website/themes/hextra/assets/js/core/back-to-top.js b/website/themes/hextra/assets/js/core/back-to-top.js
new file mode 100644
index 00000000..8fc036c3
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/back-to-top.js
@@ -0,0 +1,26 @@
+// Back to top button
+
+document.addEventListener("DOMContentLoaded", function () {
+ const backToTop = document.querySelector("#backToTop");
+ if (backToTop) {
+ backToTop.addEventListener("click", scrollUp);
+ document.addEventListener("scroll", (e) => {
+ if (window.scrollY > 300) {
+ backToTop.classList.remove("hx:opacity-0");
+ backToTop.removeAttribute("tabindex");
+ } else {
+ backToTop.classList.add("hx:opacity-0");
+ backToTop.setAttribute("tabindex", "-1");
+ }
+ });
+ }
+});
+
+function scrollUp() {
+ const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
+ window.scroll({
+ top: 0,
+ left: 0,
+ behavior: prefersReducedMotion ? 'auto' : 'smooth',
+ });
+}
diff --git a/website/themes/hextra/assets/js/core/banner.js b/website/themes/hextra/assets/js/core/banner.js
new file mode 100644
index 00000000..05cf78a8
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/banner.js
@@ -0,0 +1,15 @@
+// {{- if site.Params.banner }}
+(function () {
+ const banner = document.querySelector(".hextra-banner")
+ document.documentElement.style.setProperty("--hextra-banner-height", banner.clientHeight+"px");
+
+ const closeBtn = banner.querySelector(".hextra-banner-close-button");
+
+ closeBtn.addEventListener("click", () => {
+ document.documentElement.classList.add("hextra-banner-hidden");
+ document.documentElement.style.setProperty("--hextra-banner-height", "0px");
+
+ localStorage.setItem('{{ site.Params.banner.key | default `banner-closed` }}', "0");
+ });
+})();
+// {{- end -}}
diff --git a/website/themes/hextra/assets/js/core/code-copy.js b/website/themes/hextra/assets/js/core/code-copy.js
new file mode 100644
index 00000000..37f556e9
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/code-copy.js
@@ -0,0 +1,91 @@
+// Copy button for code blocks
+
+document.addEventListener('DOMContentLoaded', function () {
+ const getCopyIcon = () => {
+ const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
+ svg.innerHTML = `
+
+ `;
+ svg.setAttribute('fill', 'none');
+ svg.setAttribute('viewBox', '0 0 24 24');
+ svg.setAttribute('stroke', 'currentColor');
+ svg.setAttribute('stroke-width', '2');
+ return svg;
+ }
+
+ const getSuccessIcon = () => {
+ const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
+ svg.innerHTML = `
+
+ `;
+ svg.setAttribute('fill', 'none');
+ svg.setAttribute('viewBox', '0 0 24 24');
+ svg.setAttribute('stroke', 'currentColor');
+ svg.setAttribute('stroke-width', '2');
+ return svg;
+ }
+
+ // Make scrollable code blocks focusable for keyboard users.
+ const updateScrollableCodeBlocks = () => {
+ document.querySelectorAll('.hextra-code-block pre, .highlight pre').forEach(function (pre) {
+ if (pre.scrollWidth > pre.clientWidth) {
+ pre.setAttribute('tabindex', '0');
+ } else {
+ pre.removeAttribute('tabindex');
+ }
+ });
+ };
+
+ updateScrollableCodeBlocks();
+
+ let resizeRaf;
+ window.addEventListener('resize', () => {
+ if (resizeRaf) {
+ cancelAnimationFrame(resizeRaf);
+ }
+ resizeRaf = requestAnimationFrame(updateScrollableCodeBlocks);
+ });
+
+ document.querySelectorAll('.hextra-code-copy-btn').forEach(function (button) {
+ // Add copy and success icons
+ button.querySelector('.hextra-copy-icon')?.appendChild(getCopyIcon());
+ button.querySelector('.hextra-success-icon')?.appendChild(getSuccessIcon());
+
+ // Add click event listener for copy button
+ button.addEventListener('click', function (e) {
+ e.preventDefault();
+ // Get the code target
+ const target = button.parentElement.previousElementSibling;
+ let codeElement;
+ if (target.tagName === 'CODE') {
+ codeElement = target;
+ } else {
+ // Select the last code element in case line numbers are present
+ const codeElements = target.querySelectorAll('code');
+ codeElement = codeElements[codeElements.length - 1];
+ }
+ if (codeElement) {
+ let code = codeElement.innerText;
+ // Replace double newlines with single newlines in the innerText
+ // as each line inside has trailing newline '\n'
+ if ("lang" in codeElement.dataset) {
+ code = code.replace(/\n\n/g, '\n');
+ }
+ navigator.clipboard.writeText(code).then(function () {
+ button.classList.add('copied');
+ var originalLabel = button.getAttribute('aria-label');
+ var copiedLabel = button.dataset.copiedLabel || 'Copied!';
+ button.setAttribute('aria-label', copiedLabel);
+ setTimeout(function () {
+ button.classList.remove('copied');
+ button.setAttribute('aria-label', originalLabel);
+ }, 1000);
+ }).catch(function (err) {
+ console.error('Failed to copy text: ', err);
+ });
+ } else {
+ console.error('Target element not found');
+ }
+ });
+ });
+});
diff --git a/website/themes/hextra/assets/js/core/favicon.js b/website/themes/hextra/assets/js/core/favicon.js
new file mode 100644
index 00000000..36fd1320
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/favicon.js
@@ -0,0 +1,22 @@
+// {{ $faviconDarkExists := fileExists (path.Join "static" "favicon-dark.svg") }}
+(function () {
+ const faviconEl = document.getElementById("favicon-svg");
+ const faviconDarkExists = "{{ $faviconDarkExists }}" === "true";
+
+ if (faviconEl && faviconDarkExists) {
+ const lightFavicon = '{{ "favicon.svg" | relURL }}';
+ const darkFavicon = '{{ "favicon-dark.svg" | relURL }}';
+
+ const darkModeQuery = window.matchMedia("(prefers-color-scheme: dark)");
+
+ function updateFavicon(e) {
+ faviconEl.href = e.matches ? darkFavicon : lightFavicon;
+ }
+
+ // Set favicon on load
+ updateFavicon(darkModeQuery);
+
+ // Listen for system preference changes
+ darkModeQuery.addEventListener("change", updateFavicon);
+ }
+})();
diff --git a/website/themes/hextra/assets/js/core/filetree.js b/website/themes/hextra/assets/js/core/filetree.js
new file mode 100644
index 00000000..26ff28e1
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/filetree.js
@@ -0,0 +1,15 @@
+// Script for filetree shortcode collapsing/expanding folders used in the theme
+// ======================================================================
+document.addEventListener("DOMContentLoaded", function () {
+ const folders = document.querySelectorAll(".hextra-filetree-folder");
+ folders.forEach(function (folder) {
+ folder.addEventListener("click", function () {
+ Array.from(folder.children).forEach(function (el) {
+ el.dataset.state = el.dataset.state === "open" ? "closed" : "open";
+ });
+ var newState = folder.nextElementSibling.dataset.state === "open" ? "closed" : "open";
+ folder.nextElementSibling.dataset.state = newState;
+ folder.setAttribute('aria-expanded', newState === 'open' ? 'true' : 'false');
+ });
+ });
+});
diff --git a/website/themes/hextra/assets/js/core/lang.js b/website/themes/hextra/assets/js/core/lang.js
new file mode 100644
index 00000000..221962a4
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/lang.js
@@ -0,0 +1,103 @@
+(function () {
+ const languageSwitchers = document.querySelectorAll('.hextra-language-switcher');
+ const closeSwitcher = (switcher, focusSwitcher = false) => {
+ switcher.dataset.state = 'closed';
+ switcher.setAttribute('aria-expanded', 'false');
+ const optionsElement = switcher.nextElementSibling;
+ optionsElement.classList.add('hx:hidden');
+ if (focusSwitcher) {
+ switcher.focus();
+ }
+ };
+
+ const openSwitcher = (switcher, focusTarget = "none") => {
+ switcher.dataset.state = 'open';
+ switcher.setAttribute('aria-expanded', 'true');
+ const optionsElement = switcher.nextElementSibling;
+ if (optionsElement.classList.contains('hx:hidden')) {
+ toggleMenu(switcher);
+ } else {
+ resizeMenu(switcher);
+ }
+
+ if (focusTarget !== "none") {
+ const items = Array.from(optionsElement.querySelectorAll('[role="menuitem"]'));
+ if (items.length > 0) {
+ const target = focusTarget === "last" ? items[items.length - 1] : items[0];
+ target.focus();
+ }
+ }
+ };
+
+ languageSwitchers.forEach((switcher) => {
+ switcher.addEventListener('click', (e) => {
+ e.preventDefault();
+
+ if (switcher.dataset.state === 'open') {
+ closeSwitcher(switcher);
+ } else {
+ openSwitcher(switcher);
+ }
+ });
+
+ switcher.addEventListener('keydown', (e) => {
+ if (e.key === 'ArrowDown') {
+ e.preventDefault();
+ openSwitcher(switcher, 'first');
+ } else if (e.key === 'ArrowUp') {
+ e.preventDefault();
+ openSwitcher(switcher, 'last');
+ }
+ });
+ });
+
+ document.querySelectorAll('.hextra-language-options[role=menu]').forEach((menu) => {
+ menu.addEventListener('keydown', (e) => {
+ const items = Array.from(menu.querySelectorAll('[role="menuitem"]'));
+ if (items.length === 0) return;
+
+ const currentIndex = items.indexOf(document.activeElement);
+ let newIndex;
+
+ switch (e.key) {
+ case 'ArrowDown':
+ e.preventDefault();
+ newIndex = (currentIndex + 1) % items.length;
+ items[newIndex].focus();
+ break;
+ case 'ArrowUp':
+ e.preventDefault();
+ newIndex = (currentIndex - 1 + items.length) % items.length;
+ items[newIndex].focus();
+ break;
+ case 'Home':
+ e.preventDefault();
+ items[0].focus();
+ break;
+ case 'End':
+ e.preventDefault();
+ items[items.length - 1].focus();
+ break;
+ case 'Escape': {
+ e.preventDefault();
+ const switcher = menu.previousElementSibling;
+ if (switcher) {
+ closeSwitcher(switcher, true);
+ }
+ break;
+ }
+ }
+ });
+ });
+
+ window.addEventListener("resize", () => languageSwitchers.forEach(resizeMenu));
+
+ // Dismiss language switcher when clicking outside.
+ document.addEventListener('click', (e) => {
+ if (!e.target.closest('.hextra-language-switcher') && !e.target.closest('.hextra-language-options')) {
+ languageSwitchers.forEach((switcher) => {
+ closeSwitcher(switcher);
+ });
+ }
+ });
+})();
diff --git a/website/themes/hextra/assets/js/core/menu.js b/website/themes/hextra/assets/js/core/menu.js
new file mode 100644
index 00000000..4ef878ca
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/menu.js
@@ -0,0 +1,84 @@
+// Hamburger menu for mobile navigation
+
+document.addEventListener('DOMContentLoaded', function () {
+ const menu = document.querySelector('.hextra-hamburger-menu');
+ const sidebarContainer = document.querySelector('.hextra-sidebar-container');
+ const mobileQuery = window.matchMedia('(max-width: 767px)');
+
+ function isMenuOpen() {
+ return menu.querySelector('svg').classList.contains('open');
+ }
+
+ // On mobile, the sidebar is off-screen so hide it from assistive tech
+ function syncAriaHidden() {
+ if (mobileQuery.matches) {
+ sidebarContainer.setAttribute('aria-hidden', isMenuOpen() ? 'false' : 'true');
+ } else {
+ sidebarContainer.removeAttribute('aria-hidden');
+ }
+ }
+
+ // Set initial state
+ syncAriaHidden();
+ mobileQuery.addEventListener('change', syncAriaHidden);
+
+ function toggleMenu(options = {}) {
+ const { focusOnOpen = true } = options;
+
+ // Toggle the hamburger menu
+ menu.querySelector('svg').classList.toggle('open');
+
+ // When the menu is open, we want to show the navigation sidebar
+ sidebarContainer.classList.toggle('hx:max-md:[transform:translate3d(0,-100%,0)]');
+ sidebarContainer.classList.toggle('hx:max-md:[transform:translate3d(0,0,0)]');
+
+ // When the menu is open, we want to prevent the body from scrolling
+ document.body.classList.toggle('hx:overflow-hidden');
+ document.body.classList.toggle('hx:md:overflow-auto');
+
+ // Sync aria-expanded and aria-hidden
+ const isOpen = isMenuOpen();
+ menu.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
+ syncAriaHidden();
+
+ // Move focus into sidebar when opening, restore when closing
+ if (isOpen) {
+ if (focusOnOpen) {
+ const firstFocusable = sidebarContainer.querySelector('a, button, input, [tabindex="0"]');
+ if (firstFocusable) firstFocusable.focus();
+ }
+ } else {
+ menu.focus();
+ }
+ }
+
+ menu.addEventListener('click', (e) => {
+ e.preventDefault();
+ // Pointer-initiated clicks on mobile should not force focus into the search input,
+ // which opens the software keyboard immediately.
+ toggleMenu({ focusOnOpen: e.detail === 0 });
+ });
+
+ // Close menu on Escape key (mobile only)
+ document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape' && mobileQuery.matches && isMenuOpen()) {
+ toggleMenu();
+ }
+ });
+
+ // Select all anchor tags in the sidebar container
+ const sidebarLinks = sidebarContainer.querySelectorAll('a');
+
+ // Add click event listener to each anchor tag
+ sidebarLinks.forEach(link => {
+ link.addEventListener('click', (e) => {
+ // Check if the href attribute contains a hash symbol (links to a heading)
+ if (link.getAttribute('href') && link.getAttribute('href').startsWith('#')) {
+ // Only dismiss overlay on mobile view
+ if (window.innerWidth < 768) {
+ toggleMenu();
+ }
+ }
+ });
+ });
+});
diff --git a/website/themes/hextra/assets/js/core/nav-menu.js b/website/themes/hextra/assets/js/core/nav-menu.js
new file mode 100644
index 00000000..9d5cf234
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/nav-menu.js
@@ -0,0 +1,126 @@
+(function () {
+ const hiddenClass = "hx:hidden";
+ const dropdownToggles = document.querySelectorAll(".hextra-nav-menu-toggle");
+ const closeDropdown = (toggle, focusToggle = false) => {
+ toggle.dataset.state = "closed";
+ toggle.setAttribute("aria-expanded", "false");
+ const menuItemsElement = toggle.nextElementSibling;
+ menuItemsElement.classList.add(hiddenClass);
+ if (focusToggle) {
+ toggle.focus();
+ }
+ };
+
+ const openDropdown = (toggle, focusTarget = "none") => {
+ // Close all other dropdowns first.
+ dropdownToggles.forEach((otherToggle) => {
+ if (otherToggle !== toggle) {
+ closeDropdown(otherToggle);
+ }
+ });
+
+ toggle.dataset.state = "open";
+ toggle.setAttribute("aria-expanded", "true");
+ const menuItemsElement = toggle.nextElementSibling;
+
+ // Position dropdown centered with toggle.
+ menuItemsElement.style.position = "absolute";
+ menuItemsElement.style.top = "100%";
+ menuItemsElement.style.left = "50%";
+ menuItemsElement.style.transform = "translateX(-50%)";
+ menuItemsElement.style.zIndex = "1000";
+ menuItemsElement.classList.remove(hiddenClass);
+
+ if (focusTarget !== "none") {
+ const items = Array.from(menuItemsElement.querySelectorAll('[role="menuitem"]'));
+ if (items.length > 0) {
+ const target = focusTarget === "last" ? items[items.length - 1] : items[0];
+ target.focus();
+ }
+ }
+ };
+
+ dropdownToggles.forEach((toggle) => {
+ toggle.addEventListener("click", (e) => {
+ e.preventDefault();
+ e.stopPropagation();
+
+ // Toggle current dropdown.
+ const isOpen = toggle.dataset.state === "open";
+ if (isOpen) {
+ closeDropdown(toggle);
+ } else {
+ openDropdown(toggle);
+ }
+ });
+
+ toggle.addEventListener("keydown", (e) => {
+ if (e.key === "ArrowDown") {
+ e.preventDefault();
+ openDropdown(toggle, "first");
+ } else if (e.key === "ArrowUp") {
+ e.preventDefault();
+ openDropdown(toggle, "last");
+ }
+ });
+ });
+
+ document.querySelectorAll(".hextra-nav-menu-items[role=menu]").forEach((menu) => {
+ menu.addEventListener("keydown", (e) => {
+ const items = Array.from(menu.querySelectorAll('[role="menuitem"]'));
+ if (items.length === 0) return;
+
+ const currentIndex = items.indexOf(document.activeElement);
+ let newIndex;
+
+ switch (e.key) {
+ case "ArrowDown":
+ e.preventDefault();
+ newIndex = (currentIndex + 1) % items.length;
+ items[newIndex].focus();
+ break;
+ case "ArrowUp":
+ e.preventDefault();
+ newIndex = (currentIndex - 1 + items.length) % items.length;
+ items[newIndex].focus();
+ break;
+ case "Home":
+ e.preventDefault();
+ items[0].focus();
+ break;
+ case "End":
+ e.preventDefault();
+ items[items.length - 1].focus();
+ break;
+ case "Escape": {
+ e.preventDefault();
+ const toggle = menu.previousElementSibling;
+ if (toggle) {
+ closeDropdown(toggle, true);
+ }
+ break;
+ }
+ }
+ });
+ });
+
+ // Dismiss dropdown when clicking outside.
+ document.addEventListener("click", (e) => {
+ if (!e.target.closest(".hextra-nav-menu-toggle") && !e.target.closest(".hextra-nav-menu-items")) {
+ dropdownToggles.forEach((toggle) => {
+ closeDropdown(toggle);
+ });
+ }
+ });
+
+ // Close dropdowns on escape key.
+ document.addEventListener("keydown", (e) => {
+ if (e.key === "Escape") {
+ dropdownToggles.forEach((toggle) => {
+ if (toggle.dataset.state === "open") {
+ closeDropdown(toggle, true);
+ }
+ });
+ }
+ });
+})();
diff --git a/website/themes/hextra/assets/js/core/page-context-menu.js b/website/themes/hextra/assets/js/core/page-context-menu.js
new file mode 100644
index 00000000..befaf6cb
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/page-context-menu.js
@@ -0,0 +1,172 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Pre-fetch markdown content for all copy buttons to avoid Safari NotAllowedError
+ // Safari requires clipboard writes to happen synchronously within user gesture
+ const copyButtons = document.querySelectorAll('.hextra-page-context-menu-copy');
+ const contentCache = new Map();
+
+ // Pre-fetch content for each button on page load
+ copyButtons.forEach(button => {
+ const url = button.dataset.url;
+ if (url) {
+ fetch(url)
+ .then(response => {
+ if (response.ok) return response.text();
+ throw new Error('Failed to fetch');
+ })
+ .then(markdown => contentCache.set(url, markdown))
+ .catch(error => console.error('Failed to pre-fetch markdown:', error));
+ }
+ });
+
+ // Initialize copy buttons with synchronous clipboard access
+ copyButtons.forEach(button => {
+ button.addEventListener('click', () => {
+ const url = button.dataset.url;
+ const markdown = contentCache.get(url);
+
+ if (markdown) {
+ // Synchronous clipboard write initiation - works in Safari
+ navigator.clipboard.writeText(markdown)
+ .then(() => {
+ button.classList.add('copied');
+ setTimeout(() => button.classList.remove('copied'), 1000);
+ })
+ .catch(error => console.error('Failed to copy markdown:', error));
+ } else {
+ // Fallback: fetch and copy (may fail in Safari if content not pre-fetched)
+ fetch(url)
+ .then(response => {
+ if (!response.ok) throw new Error('Failed to fetch');
+ return response.text();
+ })
+ .then(text => {
+ contentCache.set(url, text);
+ return navigator.clipboard.writeText(text);
+ })
+ .then(() => {
+ button.classList.add('copied');
+ setTimeout(() => button.classList.remove('copied'), 1000);
+ })
+ .catch(error => console.error('Failed to copy markdown:', error));
+ }
+ });
+ });
+
+ // Initialize dropdown toggles
+ const dropdownToggles = document.querySelectorAll('.hextra-page-context-menu-toggle');
+ dropdownToggles.forEach(toggle => {
+ const container = toggle.closest('.hextra-page-context-menu');
+ const menu = container.querySelector('.hextra-page-context-menu-dropdown');
+ const chevron = toggle.querySelector('[data-chevron]');
+
+ toggle.addEventListener('click', (e) => {
+ e.stopPropagation();
+ const isOpen = toggle.dataset.state === 'open';
+
+ // Close all other dropdowns first
+ dropdownToggles.forEach(t => {
+ if (t !== toggle) {
+ t.dataset.state = 'closed';
+ t.setAttribute('aria-expanded', 'false');
+ const otherContainer = t.closest('.hextra-page-context-menu');
+ const otherMenu = otherContainer.querySelector('.hextra-page-context-menu-dropdown');
+ const otherChevron = t.querySelector('[data-chevron]');
+ otherMenu.classList.add('hx:hidden');
+ if (otherChevron) {
+ otherChevron.style.transform = '';
+ }
+ }
+ });
+
+ // Toggle current
+ toggle.dataset.state = isOpen ? 'closed' : 'open';
+ toggle.setAttribute('aria-expanded', isOpen ? 'false' : 'true');
+ menu.classList.toggle('hx:hidden', isOpen);
+
+ // Rotate chevron icon
+ if (chevron) {
+ chevron.style.transform = isOpen ? '' : 'rotate(180deg)';
+ }
+ });
+ });
+
+ // Close dropdown when clicking outside
+ document.addEventListener('click', (e) => {
+ // Check if click is outside any dropdown container
+ const isOutside = !e.target.closest('.hextra-page-context-menu');
+ if (isOutside) {
+ dropdownToggles.forEach(toggle => {
+ toggle.dataset.state = 'closed';
+ toggle.setAttribute('aria-expanded', 'false');
+ const container = toggle.closest('.hextra-page-context-menu');
+ const menu = container.querySelector('.hextra-page-context-menu-dropdown');
+ const chevron = toggle.querySelector('[data-chevron]');
+ menu.classList.add('hx:hidden');
+ if (chevron) {
+ chevron.style.transform = '';
+ }
+ });
+ }
+ });
+
+ // Close dropdown on Escape key and return focus to toggle
+ document.addEventListener('keydown', (e) => {
+ if (e.key === 'Escape') {
+ dropdownToggles.forEach(toggle => {
+ if (toggle.dataset.state === 'open') {
+ const container = toggle.closest('.hextra-page-context-menu');
+ closeDropdown(container);
+ toggle.focus();
+ }
+ });
+ }
+ });
+
+ // Helper to close dropdown
+ const closeDropdown = (container) => {
+ if (!container) return;
+
+ const toggle = container.querySelector('.hextra-page-context-menu-toggle');
+ const menu = container.querySelector('.hextra-page-context-menu-dropdown');
+
+ if (!toggle || !menu) return;
+
+ const chevron = toggle.querySelector('[data-chevron]');
+ toggle.dataset.state = 'closed';
+ toggle.setAttribute('aria-expanded', 'false');
+ menu.classList.add('hx:hidden');
+ if (chevron) {
+ chevron.style.transform = '';
+ }
+ };
+
+ // Handle dropdown menu copy action
+ document.querySelectorAll('.hextra-page-context-menu-dropdown button[data-action="copy"]').forEach(btn => {
+ btn.addEventListener('click', async (e) => {
+ e.stopPropagation();
+ const container = btn.closest('.hextra-page-context-menu');
+ if (!container) return;
+
+ const copyBtn = container.querySelector('.hextra-page-context-menu-copy');
+ if (!copyBtn) return;
+
+ closeDropdown(container);
+ copyBtn.click();
+ });
+ });
+
+ // Handle dropdown menu view action
+ document.querySelectorAll('.hextra-page-context-menu-dropdown button[data-action="view"]').forEach(btn => {
+ btn.addEventListener('click', (e) => {
+ e.stopPropagation();
+ const container = btn.closest('.hextra-page-context-menu');
+ if (!container) return;
+
+ const url = btn.dataset.url;
+ if (!url) return;
+
+ closeDropdown(container);
+ window.open(url, '_blank', 'noopener,noreferrer');
+ });
+ });
+});
diff --git a/website/themes/hextra/assets/js/core/sidebar.js b/website/themes/hextra/assets/js/core/sidebar.js
new file mode 100644
index 00000000..2df02451
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/sidebar.js
@@ -0,0 +1,37 @@
+document.addEventListener("DOMContentLoaded", function () {
+ scrollToActiveItem();
+ enableCollapsibles();
+});
+
+function enableCollapsibles() {
+ const buttons = document.querySelectorAll(".hextra-sidebar-collapsible-button");
+ buttons.forEach(function (button) {
+ button.addEventListener("click", function (e) {
+ e.preventDefault();
+ const list = button.closest('li');
+ if (list) {
+ list.classList.toggle("open");
+ button.setAttribute('aria-expanded', list.classList.contains('open') ? 'true' : 'false');
+ }
+ });
+ });
+}
+
+function scrollToActiveItem() {
+ const sidebarScrollbar = document.querySelector("aside.hextra-sidebar-container > .hextra-scrollbar");
+ const activeItems = document.querySelectorAll(".hextra-sidebar-active-item");
+ const visibleActiveItem = Array.from(activeItems).find(function (activeItem) {
+ return activeItem.getBoundingClientRect().height > 0;
+ });
+
+ if (!visibleActiveItem) {
+ return;
+ }
+
+ const yOffset = visibleActiveItem.clientHeight;
+ const yDistance = visibleActiveItem.getBoundingClientRect().top - sidebarScrollbar.getBoundingClientRect().top;
+ sidebarScrollbar.scrollTo({
+ behavior: "instant",
+ top: yDistance - yOffset
+ });
+}
diff --git a/website/themes/hextra/assets/js/core/switcher-menu.js b/website/themes/hextra/assets/js/core/switcher-menu.js
new file mode 100644
index 00000000..96199056
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/switcher-menu.js
@@ -0,0 +1,52 @@
+function computeMenuTranslation(switcher, optionsElement) {
+ // Calculate the position of a language options element.
+ const switcherRect = switcher.getBoundingClientRect();
+
+ // Must be called before optionsElement.clientWidth.
+ optionsElement.style.minWidth = `${Math.max(switcherRect.width, 50)}px`;
+
+ const isOnTop = switcher.dataset.location === 'top';
+ const isOnBottom = switcher.dataset.location === 'bottom';
+ const isOnBottomRight = switcher.dataset.location === 'bottom-right';
+ const isRTL = document.documentElement.dir === 'rtl'
+
+ // Stuck on the left side of the switcher.
+ let x = switcherRect.left;
+
+ if (isOnTop && !isRTL || isOnBottom && isRTL || isOnBottomRight && !isRTL) {
+ // Stuck on the right side of the switcher.
+ x = switcherRect.right - optionsElement.clientWidth;
+ }
+
+ // Stuck on the top of the switcher.
+ let y = switcherRect.top - window.innerHeight - 10;
+
+ if (isOnTop) {
+ // Stuck on the bottom of the switcher.
+ y = switcherRect.top - window.innerHeight + optionsElement.clientHeight + switcher.clientHeight + 4;
+ }
+
+ return { x: x, y: y };
+}
+
+function toggleMenu(switcher) {
+ const optionsElement = switcher.nextElementSibling;
+
+ optionsElement.classList.toggle('hx:hidden');
+
+ // Calculate the position of a language options element.
+ const translate = computeMenuTranslation(switcher, optionsElement);
+
+ optionsElement.style.transform = `translate3d(${translate.x}px, ${translate.y}px, 0)`;
+}
+
+function resizeMenu(switcher) {
+ const optionsElement = switcher.nextElementSibling;
+
+ if (optionsElement.classList.contains('hx:hidden')) return;
+
+ // Calculate the position of a language options element.
+ const translate = computeMenuTranslation(switcher, optionsElement);
+
+ optionsElement.style.transform = `translate3d(${translate.x}px, ${translate.y}px, 0)`;
+}
diff --git a/website/themes/hextra/assets/js/core/tabs.js b/website/themes/hextra/assets/js/core/tabs.js
new file mode 100644
index 00000000..f02d51c4
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/tabs.js
@@ -0,0 +1,102 @@
+(function () {
+ function updateGroup(container, index) {
+ const tabs = Array.from(container.querySelectorAll('.hextra-tabs-toggle'));
+ tabs.forEach((tab, i) => {
+ tab.dataset.state = i === index ? 'selected' : '';
+ if (i === index) {
+ tab.setAttribute('aria-selected', 'true');
+ tab.tabIndex = 0;
+ } else {
+ tab.setAttribute('aria-selected', 'false');
+ tab.tabIndex = -1;
+ }
+ });
+ const panelsContainer = container.parentElement.nextElementSibling;
+ if (!panelsContainer) return;
+ Array.from(panelsContainer.children).forEach((panel, i) => {
+ panel.dataset.state = i === index ? 'selected' : '';
+ panel.setAttribute('aria-hidden', i === index ? 'false' : 'true');
+ if (i === index) {
+ panel.tabIndex = 0;
+ } else {
+ panel.removeAttribute('tabindex');
+ }
+ });
+ }
+
+ const syncGroups = document.querySelectorAll('[data-tab-group]');
+
+ syncGroups.forEach((group) => {
+ const key = encodeURIComponent(group.dataset.tabGroup);
+ const saved = localStorage.getItem('hextra-tab-' + key);
+ if (saved !== null) {
+ updateGroup(group, parseInt(saved, 10));
+ }
+ });
+
+ document.querySelectorAll('.hextra-tabs-toggle').forEach((button) => {
+ button.addEventListener('click', function (e) {
+ const targetButton = e.currentTarget;
+ const container = targetButton.parentElement;
+ const index = Array.from(container.querySelectorAll('.hextra-tabs-toggle')).indexOf(
+ targetButton
+ );
+
+ if (container.dataset.tabGroup) {
+ // Sync behavior: update all tab groups with the same name
+ const tabGroupValue = container.dataset.tabGroup;
+ const key = encodeURIComponent(tabGroupValue);
+ document
+ .querySelectorAll('[data-tab-group="' + tabGroupValue + '"]')
+ .forEach((grp) => updateGroup(grp, index));
+ localStorage.setItem('hextra-tab-' + key, index.toString());
+ } else {
+ // Non-sync behavior: update only this specific tab group
+ updateGroup(container, index);
+ }
+ });
+
+ // Keyboard navigation for tabs
+ button.addEventListener('keydown', function (e) {
+ const container = button.parentElement;
+ const tabs = Array.from(container.querySelectorAll('.hextra-tabs-toggle'));
+ const currentIndex = tabs.indexOf(button);
+ let newIndex;
+
+ switch (e.key) {
+ case 'ArrowRight':
+ case 'ArrowDown':
+ e.preventDefault();
+ newIndex = (currentIndex + 1) % tabs.length;
+ break;
+ case 'ArrowLeft':
+ case 'ArrowUp':
+ e.preventDefault();
+ newIndex = (currentIndex - 1 + tabs.length) % tabs.length;
+ break;
+ case 'Home':
+ e.preventDefault();
+ newIndex = 0;
+ break;
+ case 'End':
+ e.preventDefault();
+ newIndex = tabs.length - 1;
+ break;
+ default:
+ return;
+ }
+
+ if (container.dataset.tabGroup) {
+ const tabGroupValue = container.dataset.tabGroup;
+ const key = encodeURIComponent(tabGroupValue);
+ document
+ .querySelectorAll('[data-tab-group="' + tabGroupValue + '"]')
+ .forEach((grp) => updateGroup(grp, newIndex));
+ localStorage.setItem('hextra-tab-' + key, newIndex.toString());
+ } else {
+ updateGroup(container, newIndex);
+ }
+ tabs[newIndex].focus();
+ });
+ });
+})();
diff --git a/website/themes/hextra/assets/js/core/task-list.js b/website/themes/hextra/assets/js/core/task-list.js
new file mode 100644
index 00000000..73d09e81
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/task-list.js
@@ -0,0 +1,15 @@
+document.addEventListener("DOMContentLoaded", function () {
+ // Hugo task lists render bare checkboxes; provide an accessible name.
+ document.querySelectorAll("main#content li > input[type='checkbox']").forEach(function (checkbox) {
+ if (checkbox.hasAttribute("aria-label") || checkbox.hasAttribute("aria-labelledby")) {
+ return;
+ }
+ var listItem = checkbox.closest("li");
+ if (!listItem) return;
+
+ var labelText = listItem.textContent.replace(/\s+/g, " ").trim();
+ if (labelText) {
+ checkbox.setAttribute("aria-label", labelText);
+ }
+ });
+});
diff --git a/website/themes/hextra/assets/js/core/theme.js b/website/themes/hextra/assets/js/core/theme.js
new file mode 100644
index 00000000..8f51ed39
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/theme.js
@@ -0,0 +1,112 @@
+// Light / Dark theme toggle
+(function () {
+ const defaultTheme = '{{ site.Params.theme.default | default `system`}}'
+ const themes = ["light", "dark"];
+
+ const themeToggleButtons = document.querySelectorAll(".hextra-theme-toggle");
+ const themeToggleOptions = document.querySelectorAll(".hextra-theme-toggle-options button[role=menuitemradio]");
+
+ function applyTheme(theme) {
+ theme = themes.includes(theme) ? theme : "system";
+
+ themeToggleButtons.forEach((btn) => btn.parentElement.dataset.theme = theme );
+ themeToggleOptions.forEach((option) => {
+ option.setAttribute('aria-checked', option.dataset.item === theme ? 'true' : 'false');
+ });
+
+ localStorage.setItem("color-theme", theme);
+ }
+
+ function switchTheme(theme) {
+ setTheme(theme);
+ applyTheme(theme);
+ }
+
+ const colorTheme = "color-theme" in localStorage ? localStorage.getItem("color-theme") : defaultTheme;
+ switchTheme(colorTheme);
+
+ // Add click event handler to the menu items.
+ themeToggleOptions.forEach((option) => {
+ option.addEventListener("click", function (e) {
+ e.preventDefault();
+
+ switchTheme(option.dataset.item);
+ })
+ })
+
+ // Add click event handler to the buttons
+ themeToggleButtons.forEach((toggler) => {
+ toggler.addEventListener("click", function (e) {
+ e.preventDefault();
+
+ toggler.dataset.state = toggler.dataset.state === 'open' ? 'closed' : 'open';
+ toggleMenu(toggler);
+ const isOpen = toggler.dataset.state === 'open';
+ toggler.setAttribute('aria-expanded', isOpen ? 'true' : 'false');
+
+ // Focus first menuitem when opening
+ if (isOpen) {
+ const firstItem = toggler.nextElementSibling.querySelector('button[role=menuitemradio]');
+ if (firstItem) firstItem.focus();
+ }
+ });
+ });
+
+ window.addEventListener("resize", () => themeToggleButtons.forEach(resizeMenu))
+
+ // Dismiss the menu when clicking outside
+ document.addEventListener('click', (e) => {
+ if (e.target.closest('.hextra-theme-toggle') === null) {
+ themeToggleButtons.forEach((toggler) => {
+ toggler.dataset.state = 'closed';
+ toggler.setAttribute('aria-expanded', 'false');
+ toggler.nextElementSibling.classList.add('hx:hidden');
+ });
+ }
+ });
+
+ // Keyboard navigation for the theme menu
+ document.querySelectorAll('.hextra-theme-toggle-options[role=menu]').forEach(function (menu) {
+ menu.addEventListener('keydown', function (e) {
+ const items = Array.from(menu.querySelectorAll('button[role=menuitemradio]'));
+ const currentIndex = items.indexOf(document.activeElement);
+ let newIndex;
+
+ switch (e.key) {
+ case 'ArrowDown':
+ e.preventDefault();
+ newIndex = (currentIndex + 1) % items.length;
+ items[newIndex].focus();
+ break;
+ case 'ArrowUp':
+ e.preventDefault();
+ newIndex = (currentIndex - 1 + items.length) % items.length;
+ items[newIndex].focus();
+ break;
+ case 'Home':
+ e.preventDefault();
+ items[0].focus();
+ break;
+ case 'End':
+ e.preventDefault();
+ items[items.length - 1].focus();
+ break;
+ case 'Escape':
+ e.preventDefault();
+ var toggler = menu.previousElementSibling;
+ toggler.dataset.state = 'closed';
+ toggler.setAttribute('aria-expanded', 'false');
+ menu.classList.add('hx:hidden');
+ toggler.focus();
+ break;
+ }
+ });
+ });
+
+ // Listen for system theme changes
+ window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => {
+ if (localStorage.getItem("color-theme") === "system") {
+ setTheme("system");
+ }
+ });
+})();
diff --git a/website/themes/hextra/assets/js/core/toc-scroll.js b/website/themes/hextra/assets/js/core/toc-scroll.js
new file mode 100644
index 00000000..12a9b06a
--- /dev/null
+++ b/website/themes/hextra/assets/js/core/toc-scroll.js
@@ -0,0 +1,97 @@
+/**
+ * TOC Scroll - Highlights active TOC links based on visible headings
+ *
+ * Uses Intersection Observer to track heading visibility and applies
+ * 'hextra-toc-active' class to corresponding TOC links. Selects the
+ * topmost heading when multiple are visible.
+ *
+ * Requires: .hextra-toc element, matching heading IDs, toc.css styles
+ */
+document.addEventListener("DOMContentLoaded", function () {
+ const toc = document.querySelector(".hextra-toc");
+ if (!toc) return;
+
+ const tocLinks = toc.querySelectorAll('a[href^="#"]');
+ if (tocLinks.length === 0) return;
+
+ const headingIds = Array.from(tocLinks).map((link) => link.getAttribute("href").substring(1));
+
+ const headings = headingIds.map((id) => document.getElementById(decodeURIComponent(id))).filter(Boolean);
+ if (headings.length === 0) return;
+
+ let currentActiveLink = null;
+ let isHashNavigation = false;
+
+ // Create intersection observer
+ const observer = new IntersectionObserver(
+ (entries) => {
+ // Skip observer updates during hash navigation
+ if (isHashNavigation) return;
+
+ const visibleHeadings = entries.filter((entry) => entry.isIntersecting).map((entry) => entry.target);
+
+ if (visibleHeadings.length === 0) return;
+
+ // Find the heading closest to the top of the viewport
+ const topMostHeading = visibleHeadings.reduce((closest, heading) => {
+ const headingTop = heading.getBoundingClientRect().top;
+ const closestTop = closest.getBoundingClientRect().top;
+ return Math.abs(headingTop) < Math.abs(closestTop) ? heading : closest;
+ });
+
+ // Encode the id and make it lowercase to match the TOC link
+ const targetId = encodeURIComponent(topMostHeading.id).toLowerCase();
+ const targetLink = toc.querySelector(`a[href="#${targetId}"]`);
+
+ if (targetLink && targetLink !== currentActiveLink) {
+ // Remove active class from previous link
+ if (currentActiveLink) {
+ currentActiveLink.classList.remove("hextra-toc-active");
+ currentActiveLink.removeAttribute("aria-current");
+ }
+
+ // Add active class to current link
+ targetLink.classList.add("hextra-toc-active");
+ targetLink.setAttribute("aria-current", "location");
+ currentActiveLink = targetLink;
+ }
+ },
+ {
+ rootMargin: "-20px 0px -60% 0px", // Adjust sensitivity
+ threshold: [0, 0.1, 0.5, 1],
+ }
+ );
+
+ // Observe all headings
+ headings.forEach((heading) => observer.observe(heading));
+
+ // Handle direct navigation to page with hash
+ function handleHashNavigation() {
+ const hash = window.location.hash; // already url encoded
+ if (hash) {
+ const targetLink = toc.querySelector(`a[href="${hash}"]`);
+ if (targetLink) {
+ // Disable observer temporarily during hash navigation
+ isHashNavigation = true;
+
+ if (currentActiveLink) {
+ currentActiveLink.classList.remove("hextra-toc-active");
+ currentActiveLink.removeAttribute("aria-current");
+ }
+ targetLink.classList.add("hextra-toc-active");
+ targetLink.setAttribute("aria-current", "location");
+ currentActiveLink = targetLink;
+
+ // Re-enable observer after scroll settles
+ setTimeout(() => { isHashNavigation = false; }, 500);
+ return;
+ }
+ }
+ }
+
+ // Handle hash changes navigation
+ window.addEventListener("hashchange", handleHashNavigation);
+
+ // Handle initial load
+ setTimeout(handleHashNavigation, 100);
+});
diff --git a/website/themes/hextra/assets/js/flexsearch.js b/website/themes/hextra/assets/js/flexsearch.js
new file mode 100644
index 00000000..de0bab15
--- /dev/null
+++ b/website/themes/hextra/assets/js/flexsearch.js
@@ -0,0 +1,492 @@
+// Search functionality using FlexSearch.
+
+// Change shortcut key to cmd+k on Mac, iPad or iPhone.
+document.addEventListener("DOMContentLoaded", function () {
+ if (/iPad|iPhone|Macintosh/.test(navigator.userAgent)) {
+ // select the kbd element under the .hextra-search-wrapper class
+ const keys = document.querySelectorAll(".hextra-search-wrapper kbd");
+ keys.forEach(key => {
+ key.innerHTML = '⌘ K';
+ });
+ }
+});
+
+// Render the search data as JSON.
+// {{ $searchDataFile := printf "%s.search-data.json" .Language.Lang }}
+// {{ $searchData := resources.Get "json/search-data.json" | resources.ExecuteAsTemplate $searchDataFile . }}
+// {{ if hugo.IsProduction }}
+// {{ $searchData := $searchData | minify | fingerprint }}
+// {{ end }}
+// {{ $noResultsFound := (T "noResultsFound") | default "No results found." }}
+
+(function () {
+ const searchDataURL = '{{ $searchData.RelPermalink }}';
+ const resultsFoundTemplate = '{{ (T "resultsFound") | default "%d results found" }}';
+
+ const inputElements = document.querySelectorAll('.hextra-search-input');
+ for (const el of inputElements) {
+ el.addEventListener('focus', init);
+ el.addEventListener('keyup', search);
+ el.addEventListener('keydown', handleKeyDown);
+ el.addEventListener('input', handleInputChange);
+ }
+
+ const shortcutElements = document.querySelectorAll('.hextra-search-wrapper kbd');
+
+ function setShortcutElementsOpacity(opacity) {
+ shortcutElements.forEach(el => {
+ el.style.opacity = opacity;
+ });
+ }
+
+ function handleInputChange(e) {
+ const opacity = e.target.value.length > 0 ? 0 : 100;
+ setShortcutElementsOpacity(opacity);
+ }
+
+ // Get the search wrapper, input, and results elements.
+ function getActiveSearchElement() {
+ const inputs = Array.from(document.querySelectorAll('.hextra-search-wrapper')).filter(el => el.clientHeight > 0);
+ if (inputs.length === 1) {
+ return {
+ wrapper: inputs[0],
+ inputElement: inputs[0].querySelector('.hextra-search-input'),
+ resultsElement: inputs[0].querySelector('.hextra-search-results')
+ };
+ }
+ return undefined;
+ }
+
+ const INPUTS = ['input', 'select', 'button', 'textarea']
+
+ // Focus the search input when pressing ctrl+k/cmd+k or /.
+ document.addEventListener('keydown', function (e) {
+ const { inputElement } = getActiveSearchElement();
+ if (!inputElement) return;
+
+ const activeElement = document.activeElement;
+ const tagName = activeElement && activeElement.tagName;
+ if (
+ inputElement === activeElement ||
+ !tagName ||
+ INPUTS.includes(tagName) ||
+ (activeElement && activeElement.isContentEditable))
+ return;
+
+ if (
+ e.key === '/' ||
+ (e.key === 'k' &&
+ (e.metaKey /* for Mac */ || /* for non-Mac */ e.ctrlKey))
+ ) {
+ e.preventDefault();
+ inputElement.focus();
+ } else if (e.key === 'Escape' && inputElement.value) {
+ inputElement.blur();
+ }
+ });
+
+ // Dismiss the search results when clicking outside the search box.
+ document.addEventListener('mousedown', function (e) {
+ const { inputElement, resultsElement } = getActiveSearchElement();
+ if (!inputElement || !resultsElement) return;
+ if (
+ e.target !== inputElement &&
+ e.target !== resultsElement &&
+ !resultsElement.contains(e.target)
+ ) {
+ setShortcutElementsOpacity(100);
+ hideSearchResults();
+ }
+ });
+
+ // Get the currently active result and its index.
+ function getActiveResult() {
+ const { resultsElement } = getActiveSearchElement();
+ if (!resultsElement) return { result: undefined, index: -1 };
+
+ const result = resultsElement.querySelector('.hextra-search-active');
+ if (!result) return { result: undefined, index: -1 };
+
+ const index = parseInt(result.dataset.index, 10);
+ return { result, index };
+ }
+
+ // Set the active result by index.
+ function setActiveResult(index) {
+ const { resultsElement } = getActiveSearchElement();
+ if (!resultsElement) return;
+
+ const { result: activeResult } = getActiveResult();
+ activeResult && activeResult.classList.remove('hextra-search-active');
+ const result = resultsElement.querySelector(`[data-index="${index}"]`);
+ if (result) {
+ result.classList.add('hextra-search-active');
+ result.focus();
+ }
+ }
+
+ // Get the number of search results from the DOM.
+ function getResultsLength() {
+ const { resultsElement } = getActiveSearchElement();
+ if (!resultsElement) return 0;
+ return resultsElement.dataset.count;
+ }
+
+ // Finish the search by hiding the results and clearing the input.
+ function finishSearch() {
+ const { inputElement } = getActiveSearchElement();
+ if (!inputElement) return;
+ hideSearchResults();
+ inputElement.value = '';
+ inputElement.blur();
+ }
+
+ function hideSearchResults() {
+ const { resultsElement } = getActiveSearchElement();
+ if (!resultsElement) return;
+ resultsElement.classList.add('hx:hidden');
+ }
+
+ // Handle keyboard events.
+ function handleKeyDown(e) {
+ const { inputElement } = getActiveSearchElement();
+ if (!inputElement) return;
+
+ const resultsLength = getResultsLength();
+ const { result: activeResult, index: activeIndex } = getActiveResult();
+
+ switch (e.key) {
+ case 'ArrowUp':
+ e.preventDefault();
+ if (activeIndex > 0) setActiveResult(activeIndex - 1);
+ break;
+ case 'ArrowDown':
+ e.preventDefault();
+ if (activeIndex + 1 < resultsLength) setActiveResult(activeIndex + 1);
+ break;
+ case 'Enter':
+ e.preventDefault();
+ if (activeResult) {
+ activeResult.click();
+ }
+ finishSearch();
+ case 'Escape':
+ e.preventDefault();
+ hideSearchResults();
+ // Clear the input when pressing escape
+ inputElement.value = '';
+ inputElement.dispatchEvent(new Event('input'));
+ // Remove focus from the input
+ inputElement.blur();
+ break;
+ }
+ }
+
+ // Initializes the search.
+ function init(e) {
+ e.target.removeEventListener('focus', init);
+ if (!(window.pageIndex && window.sectionIndex)) {
+ preloadIndex();
+ }
+ }
+
+ /**
+ * Preloads the search index by fetching data and adding it to the FlexSearch index.
+ * @returns {Promise} A promise that resolves when the index is preloaded.
+ */
+ async function preloadIndex() {
+ const tokenize = '{{- site.Params.search.flexsearch.tokenize | default "forward" -}}';
+
+ // https://github.com/TryGhost/Ghost/pull/21148
+ const regex = new RegExp(
+ `[\u{4E00}-\u{9FFF}\u{3040}-\u{309F}\u{30A0}-\u{30FF}\u{AC00}-\u{D7A3}\u{3400}-\u{4DBF}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B73F}\u{2B740}-\u{2B81F}\u{2B820}-\u{2CEAF}\u{2CEB0}-\u{2EBEF}\u{30000}-\u{3134F}\u{31350}-\u{323AF}\u{2EBF0}-\u{2EE5F}\u{F900}-\u{FAFF}\u{2F800}-\u{2FA1F}]|[0-9A-Za-zа-я\u00C0-\u017F\u0400-\u04FF\u0600-\u06FF\u0980-\u09FF\u1E00-\u1EFF\u0590-\u05FF]+`,
+ 'mug'
+ );
+ const encode = (str) => { return ('' + str).toLowerCase().match(regex) ?? []; }
+
+ window.pageIndex = new FlexSearch.Document({
+ tokenize,
+ encode,
+ cache: 100,
+ document: {
+ id: 'id',
+ store: ['title', 'crumb'],
+ index: "content"
+ }
+ });
+
+ window.sectionIndex = new FlexSearch.Document({
+ tokenize,
+ encode,
+ cache: 100,
+ document: {
+ id: 'id',
+ store: ['title', 'content', 'url', 'display', 'crumb'],
+ index: "content",
+ tag: [{
+ field: "pageId"
+ }]
+ }
+ });
+
+ const resp = await fetch(searchDataURL);
+ const data = await resp.json();
+ let pageId = 0;
+ for (const route in data) {
+ let pageContent = '';
+ ++pageId;
+ const urlParts = route.split('/').filter(x => x != "" && !x.startsWith('#'));
+
+ let crumb = '';
+ let searchUrl = '/';
+ for (let i = 0; i < urlParts.length; i++) {
+ const urlPart = urlParts[i];
+ searchUrl += urlPart + '/'
+
+ const crumbData = data[searchUrl];
+ if (!crumbData) {
+ console.debug('Excluded page', searchUrl, '- will not be included for search result breadcrumb for', route);
+ continue;
+ }
+
+ let title = data[searchUrl].title;
+ if (title == "_index") {
+ title = urlPart.split("-").map(x => x).join(" ");
+ }
+ crumb += title;
+
+ if (i < urlParts.length - 1) {
+ crumb += ' > ';
+ }
+ }
+
+ for (const heading in data[route].data) {
+ const [hash, text] = heading.split('#');
+ const url = route.trimEnd('/') + (hash ? '#' + hash : '');
+ const title = text || data[route].title;
+
+ const content = data[route].data[heading] || '';
+ const paragraphs = content.split('\n').filter(Boolean);
+
+ sectionIndex.add({
+ id: url,
+ url,
+ title,
+ crumb,
+ pageId: `page_${pageId}`,
+ content: title,
+ ...(paragraphs[0] && { display: paragraphs[0] })
+ });
+
+ for (let i = 0; i < paragraphs.length; i++) {
+ sectionIndex.add({
+ id: `${url}_${i}`,
+ url,
+ title,
+ crumb,
+ pageId: `page_${pageId}`,
+ content: paragraphs[i]
+ });
+ }
+
+ pageContent += ` ${title} ${content}`;
+ }
+
+ window.pageIndex.add({
+ id: pageId,
+ title: data[route].title,
+ crumb,
+ content: pageContent
+ });
+
+ }
+ }
+
+ /**
+ * Performs a search based on the provided query and displays the results.
+ * @param {Event} e - The event object.
+ */
+ function search(e) {
+ const query = e.target.value;
+ if (!e.target.value) {
+ hideSearchResults();
+ return;
+ }
+
+ const { resultsElement } = getActiveSearchElement();
+ while (resultsElement.firstChild) {
+ resultsElement.removeChild(resultsElement.firstChild);
+ }
+ resultsElement.classList.remove('hx:hidden');
+
+ // Configurable search limits with sensible defaults
+ const maxPageResults = parseInt('{{- site.Params.search.flexsearch.maxPageResults | default 20 -}}', 10);
+ const maxSectionResults = parseInt('{{- site.Params.search.flexsearch.maxSectionResults | default 10 -}}', 10);
+ const pageResults = window.pageIndex.search(query, maxPageResults, { enrich: true, suggest: true })[0]?.result || [];
+
+ const results = [];
+ const pageTitleMatches = {};
+
+ for (let i = 0; i < pageResults.length; i++) {
+ const result = pageResults[i];
+ pageTitleMatches[i] = 0;
+
+ const sectionResults = window.sectionIndex.search(query,
+ { enrich: true, suggest: true, tag: { 'pageId': `page_${result.id}` } })[0]?.result || [];
+ let isFirstItemOfPage = true
+ const occurred = {}
+
+ const nResults = Math.min(sectionResults.length, maxSectionResults);
+ for (let j = 0; j < nResults; j++) {
+ const { doc } = sectionResults[j]
+ const isMatchingTitle = doc.display !== undefined
+ if (isMatchingTitle) {
+ pageTitleMatches[i]++
+ }
+ const { url, title } = doc
+ const content = doc.display || doc.content
+
+ if (occurred[url + '@' + content]) continue
+ occurred[url + '@' + content] = true
+ results.push({
+ _page_rk: i,
+ _section_rk: j,
+ route: url,
+ prefix: isFirstItemOfPage ? result.doc.crumb : undefined,
+ children: { title, content }
+ })
+ isFirstItemOfPage = false
+ }
+ }
+ const sortedResults = results
+ .sort((a, b) => {
+ // Sort by number of matches in the title.
+ if (a._page_rk === b._page_rk) {
+ return a._section_rk - b._section_rk
+ }
+ if (pageTitleMatches[a._page_rk] !== pageTitleMatches[b._page_rk]) {
+ return pageTitleMatches[b._page_rk] - pageTitleMatches[a._page_rk]
+ }
+ return a._page_rk - b._page_rk
+ })
+ .map(res => ({
+ id: `${res._page_rk}_${res._section_rk}`,
+ route: res.route,
+ prefix: res.prefix,
+ children: res.children
+ }));
+ displayResults(sortedResults, query);
+ }
+
+ /**
+ * Displays the search results on the page.
+ *
+ * @param {Array} results - The array of search results.
+ * @param {string} query - The search query.
+ */
+ function displayResults(results, query) {
+ const { resultsElement } = getActiveSearchElement();
+ if (!resultsElement) return;
+
+ if (!results.length) {
+ resultsElement.innerHTML = ``;
+ // Announce no results to screen readers
+ const wrapper = resultsElement.closest('.hextra-search-wrapper');
+ const statusEl = wrapper ? wrapper.querySelector('.hextra-search-status') : null;
+ if (statusEl) {
+ statusEl.textContent = '{{ $noResultsFound | safeHTML }}';
+ }
+ return;
+ }
+
+ // Append text with highlighted matches using safe text nodes.
+ function appendHighlightedText(container, text, query) {
+ if (!text) return;
+ if (!query) {
+ container.textContent = text;
+ return;
+ }
+
+ const escapedQuery = query.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&');
+ if (!escapedQuery) {
+ container.textContent = text;
+ return;
+ }
+
+ const regex = new RegExp(escapedQuery, 'gi');
+ let lastIndex = 0;
+ let match;
+ while ((match = regex.exec(text)) !== null) {
+ if (match.index > lastIndex) {
+ container.appendChild(document.createTextNode(text.slice(lastIndex, match.index)));
+ }
+ const span = document.createElement('span');
+ span.className = 'hextra-search-match';
+ span.textContent = match[0];
+ container.appendChild(span);
+ lastIndex = match.index + match[0].length;
+ }
+ if (lastIndex < text.length) {
+ container.appendChild(document.createTextNode(text.slice(lastIndex)));
+ }
+ }
+
+ function handleMouseMove(e) {
+ const target = e.target.closest('a');
+ if (target) {
+ const active = resultsElement.querySelector('a.hextra-search-active');
+ if (active) {
+ active.classList.remove('hextra-search-active');
+ }
+ target.classList.add('hextra-search-active');
+ }
+ }
+
+ const fragment = document.createDocumentFragment();
+ for (let i = 0; i < results.length; i++) {
+ const result = results[i];
+ if (result.prefix) {
+ const prefix = document.createElement('div');
+ prefix.className = 'hextra-search-prefix';
+ prefix.textContent = result.prefix;
+ fragment.appendChild(prefix);
+ }
+ const li = document.createElement('li');
+ const link = document.createElement('a');
+ link.dataset.index = i;
+ link.href = result.route;
+ if (i === 0) {
+ link.classList.add('hextra-search-active');
+ }
+
+ const title = document.createElement('div');
+ title.className = 'hextra-search-title';
+ appendHighlightedText(title, result.children.title, query);
+ link.appendChild(title);
+
+ if (result.children.content) {
+ const excerpt = document.createElement('div');
+ excerpt.className = 'hextra-search-excerpt';
+ appendHighlightedText(excerpt, result.children.content, query);
+ link.appendChild(excerpt);
+ }
+
+ li.appendChild(link);
+ li.addEventListener('mousemove', handleMouseMove);
+ li.addEventListener('keydown', handleKeyDown);
+ link.addEventListener('click', finishSearch);
+ fragment.appendChild(li);
+ }
+ resultsElement.appendChild(fragment);
+ resultsElement.dataset.count = results.length;
+
+ // Announce results count to screen readers
+ const wrapper = resultsElement.closest('.hextra-search-wrapper');
+ const statusEl = wrapper ? wrapper.querySelector('.hextra-search-status') : null;
+ if (statusEl) {
+ statusEl.textContent = results.length > 0
+ ? resultsFoundTemplate.replace('%d', results.length.toString())
+ : '{{ $noResultsFound | safeHTML }}';
+ }
+ }
+})();
diff --git a/website/themes/hextra/assets/js/head/banner.js b/website/themes/hextra/assets/js/head/banner.js
new file mode 100644
index 00000000..31282fdf
--- /dev/null
+++ b/website/themes/hextra/assets/js/head/banner.js
@@ -0,0 +1,6 @@
+// The section must not be in the banner.js (body) file because it can create a quick flash.
+
+if (localStorage.getItem('{{ site.Params.banner.key | default `banner-closed` }}')) {
+ document.documentElement.style.setProperty("--hextra-banner-height", "0px");
+ document.documentElement.classList.add("hextra-banner-hidden");
+}
diff --git a/website/themes/hextra/assets/js/head/theme.js b/website/themes/hextra/assets/js/head/theme.js
new file mode 100644
index 00000000..4c8cd369
--- /dev/null
+++ b/website/themes/hextra/assets/js/head/theme.js
@@ -0,0 +1,14 @@
+// The section must not be in the theme.js (body) file because it can create a quick flash (switch between light and dark).
+
+function setTheme(theme) {
+ document.documentElement.classList.remove("light", "dark");
+
+ if (theme !== "light" && theme !== "dark") {
+ theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
+ }
+
+ document.documentElement.classList.add(theme);
+ document.documentElement.style.colorScheme = theme;
+}
+
+setTheme("color-theme" in localStorage ? localStorage.getItem("color-theme") : '{{ site.Params.theme.default | default `system`}}')
diff --git a/website/themes/hextra/assets/json/search-data.json b/website/themes/hextra/assets/json/search-data.json
new file mode 100644
index 00000000..70f2eaaf
--- /dev/null
+++ b/website/themes/hextra/assets/json/search-data.json
@@ -0,0 +1,38 @@
+{{/* FlexSearch Index Data */}}
+{{- $indexType := site.Params.search.flexsearch.index | default "content" -}}
+
+{{- if not (in (slice "content" "summary" "heading" "title" ) $indexType) -}}
+ {{- errorf "unknown flexsearch index type: %s" $indexType -}}
+{{- end -}}
+
+{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
+{{- $pages = where $pages "Params.excludeSearch" "!=" true -}}
+{{- $pages = where $pages "Content" "!=" "" -}}
+
+{{- $output := dict -}}
+
+{{- range $index, $page := $pages -}}
+ {{- $pageTitle := $page.LinkTitle | default $page.File.BaseFileName -}}
+ {{- $pageLink := $page.RelPermalink -}}
+ {{- $data := partial "utils/fragments" (dict "context" $page "type" $indexType) -}}
+ {{- $output = $output | merge (dict $pageLink (dict "title" $pageTitle "data" $data)) -}}
+{{- end -}}
+
+{{/* Extract glossary data entries */}}
+{{- $glossaryEntries := dict -}}
+{{- $siteData := partial "utils/hugo-compat/site-data.html" . -}}
+{{- with (index $siteData .Site.Language.Lang "termbase") -}}
+ {{- range . -}}
+ {{- $entry := cond (.abbr) (printf "%s %s %s" .abbr .term .definition) (printf "%s %s" .term .definition) -}}
+ {{- $glossaryEntries = $glossaryEntries | merge (dict .term $entry) -}}
+ {{- end -}}
+{{- end -}}
+
+{{- $glossary := dict
+ "title" "Glossary"
+ "data" $glossaryEntries
+-}}
+
+{{- $output = $output | merge (dict (relLangURL "glossary") $glossary )}}
+
+{{- $output | jsonify -}}
diff --git a/website/themes/hextra/build.sh b/website/themes/hextra/build.sh
new file mode 100755
index 00000000..c8ccafea
--- /dev/null
+++ b/website/themes/hextra/build.sh
@@ -0,0 +1,56 @@
+#!/bin/bash
+set -e
+
+# Specify the base URL
+BASE_URL=${1:-"http://localhost:1313"}
+
+echo "Using base URL: $BASE_URL"
+
+# Version configuration - modify these arrays to specify versions to build
+# MAIN_VERSION format: "ref:display_name:source_dir"
+# VERSIONS format: "ref:display_name:source_dir" where source_dir is either "docs" or "exampleSite"
+MAIN_VERSION="$(git tag --list "v[0-9]*" --sort=-v:refname | head -n 1):latest:docs"
+VERSIONS=(
+ "main:latest:docs" # latest version always builds from main
+ "v0.11.3:v0.11:docs"
+ "v0.10.3:v0.10:exampleSite"
+)
+
+# Parse main version
+IFS=':' read -r MAIN_REF MAIN_NAME MAIN_DIR <<< "$MAIN_VERSION"
+
+# Ensure clean public directory
+rm -rf public
+mkdir -p public
+mkdir -p public/versions
+
+# Checkout and build main site
+git checkout $MAIN_REF
+GIT_HASH=$(git rev-parse --short HEAD)
+echo "Building main site from $MAIN_REF (commit: $GIT_HASH)"
+hugo \
+ --minify \
+ --themesDir=../.. --source=$MAIN_DIR \
+ --baseURL "$BASE_URL/" \
+ --destination=../public
+
+# Build all versions
+for VERSION in "${VERSIONS[@]}"; do
+ IFS=':' read -r REF NAME DIR <<< "$VERSION"
+
+ git checkout $REF
+ GIT_HASH=$(git rev-parse --short HEAD)
+ echo "Building version $NAME from $REF (commit: $GIT_HASH)"
+
+ mkdir -p "public/versions/$NAME"
+ hugo \
+ --minify \
+ --themesDir=../.. --source=$DIR \
+ --baseURL "$BASE_URL/versions/$NAME/" \
+ --destination="../public/versions/$NAME"
+done
+
+# Return to main branch
+git checkout main
+
+echo "Build completed"
diff --git a/website/themes/hextra/data/icons.yaml b/website/themes/hextra/data/icons.yaml
new file mode 100644
index 00000000..49170254
--- /dev/null
+++ b/website/themes/hextra/data/icons.yaml
@@ -0,0 +1,312 @@
+# SVG icons
+#
+# Example usage in templates using the icon.html partial:
+#
+# {{ partial "utils/icon.html" (dict "name" "github" "attributes" "height=24") }}
+
+contrast: >
+
+
+
+
+github: >
+
+
+
+
+codeberg: >
+
+
+
+
+gitlab: >
+
+
+
+
+bitbucket: >
+
+
+
+
+hextra:
+
+hugo:
+hugo-full: >
+
+
+
+
+
+
+
+
+jupyter:
+
+warning:
+one:
+cards:
+copy:
+hamburger-menu:
+markdown:
+folder-tree:
+card:
+
+arrow-up-right: >-
+
+
+
+arrow-up-left: >-
+
+
+
+
+# Icons from heroicons v1 outlined https://github.com/tailwindlabs/heroicons/tree/v1
+academic-cap:
+adjustments:
+annotation:
+archive:
+arrow-circle-down:
+arrow-circle-left:
+arrow-circle-right:
+arrow-circle-up:
+arrow-down:
+arrow-left:
+arrow-narrow-down:
+arrow-narrow-left:
+arrow-narrow-right:
+arrow-narrow-up:
+arrow-right:
+arrow-sm-down:
+arrow-sm-left:
+arrow-sm-right:
+arrow-sm-up:
+arrow-up:
+arrows-expand:
+at-symbol:
+backspace:
+badge-check:
+ban:
+beaker:
+bell:
+book-open:
+bookmark:
+bookmark-alt:
+briefcase:
+cake:
+calculator:
+calendar:
+camera:
+cash:
+chart-bar:
+chart-pie:
+chart-square-bar:
+chat:
+chat-alt:
+chat-alt-2:
+check:
+check-circle:
+chevron-double-down:
+chevron-double-left:
+chevron-double-right:
+chevron-double-up:
+chevron-down:
+chevron-left:
+chevron-right:
+chevron-up:
+chip:
+clipboard:
+clipboard-check:
+clipboard-copy:
+clipboard-list:
+clock:
+cloud:
+cloud-download:
+cloud-upload:
+code:
+cog:
+collection:
+color-swatch:
+credit-card:
+cube:
+cube-transparent:
+currency-bangladeshi:
+currency-dollar:
+currency-euro:
+currency-pound:
+currency-rupee:
+currency-yen:
+cursor-click:
+database:
+desktop-computer:
+device-mobile:
+device-tablet:
+document:
+document-add:
+document-download:
+document-duplicate:
+document-remove:
+document-report:
+document-search:
+document-text:
+dots-circle-horizontal:
+dots-horizontal:
+dots-vertical:
+download:
+duplicate:
+emoji-happy:
+emoji-sad:
+exclamation:
+exclamation-circle:
+external-link:
+eye:
+eye-off:
+fast-forward:
+film:
+filter:
+finger-print:
+fire:
+flag:
+folder:
+folder-add:
+folder-download:
+folder-open:
+folder-remove:
+gift:
+globe:
+globe-alt:
+hand:
+hashtag:
+heart:
+home:
+identification:
+inbox:
+inbox-in:
+information-circle:
+key:
+library:
+light-bulb:
+lightning-bolt:
+link:
+location-marker:
+lock-closed:
+lock-open:
+login:
+logout:
+mail:
+mail-open:
+map:
+menu:
+menu-alt-1:
+menu-alt-2:
+menu-alt-3:
+menu-alt-4:
+microphone:
+minus:
+minus-circle:
+minus-sm:
+moon:
+music-note:
+newspaper:
+office-building:
+paper-airplane:
+paper-clip:
+pause:
+pencil:
+pencil-alt:
+phone:
+phone-incoming:
+phone-missed-call:
+phone-outgoing:
+photograph:
+play:
+plus:
+plus-circle:
+plus-sm:
+presentation-chart-bar:
+presentation-chart-line:
+printer:
+puzzle:
+qrcode:
+question-mark-circle:
+receipt-refund:
+receipt-tax:
+refresh:
+reply:
+rewind:
+rss:
+save:
+save-as:
+scale:
+scissors:
+search:
+search-circle:
+selector:
+server:
+share:
+shield-check:
+shield-exclamation:
+shopping-bag:
+shopping-cart:
+sort-ascending:
+sort-descending:
+sparkles:
+speakerphone:
+star:
+status-offline:
+status-online:
+stop:
+sun:
+support:
+switch-horizontal:
+switch-vertical:
+table:
+tag:
+template:
+terminal:
+thumb-down:
+thumb-up:
+ticket:
+translate:
+trash:
+trending-down:
+trending-up:
+truck:
+upload:
+user:
+user-add:
+user-circle:
+user-group:
+user-remove:
+users:
+variable:
+video-camera:
+view-boards:
+view-grid:
+view-grid-add:
+view-list:
+volume-off:
+volume-up:
+wifi:
+x:
+x-circle:
+zoom-in:
+zoom-out:
+
+# Socials
+instagram:
+facebook:
+discord:
+twitter:
+mastodon:
+youtube:
+x-twitter:
+linkedin:
+slack:
+bluesky:
+telegram:
+
+# ai
+claude:
+chatgpt:
+gemini:
diff --git a/website/themes/hextra/dev.toml b/website/themes/hextra/dev.toml
new file mode 100644
index 00000000..4d925abc
--- /dev/null
+++ b/website/themes/hextra/dev.toml
@@ -0,0 +1,35 @@
+# Theme development config for documentation site
+# https://gohugo.io/configuration/build/#cache-busters
+[build]
+ [build.buildStats]
+ enable = true
+ disableIDs = true
+ [[build.cachebusters]]
+ source = 'assets/notwatching/hugo_stats\.json'
+ target = 'styles\.css'
+ [[build.cachebusters]]
+ source = '(postcss|tailwind)\.config\.mjs'
+ target = 'css'
+ [[build.cachebusters]]
+ source = 'assets/.*\.(js|ts|jsx|tsx)'
+ target = 'js'
+ [[build.cachebusters]]
+ source = 'assets/.*\.(.*)$'
+ target = '$1'
+
+[module]
+ [[module.mounts]]
+ source = "assets"
+ target = "assets"
+ [[module.mounts]]
+ source = "hugo_stats.json"
+ target = "assets/notwatching/hugo_stats.json"
+ disableWatch = true
+
+# Theme dev mode runs PostCSS from docs/, while Tailwind v4 loads native
+# dependencies from the theme root. Disable Hugo's Node permission sandbox
+# for this dev-only pipeline so the CSS is compiled instead of served raw.
+[security]
+ [security.node]
+ [security.node.permissions]
+ disable = true
diff --git a/website/themes/hextra/examples/README.md b/website/themes/hextra/examples/README.md
new file mode 100644
index 00000000..3ae0b4f8
--- /dev/null
+++ b/website/themes/hextra/examples/README.md
@@ -0,0 +1,13 @@
+# Examples
+
+This folder will host boilerplate example sites demonstrating Hextra for different use-cases.
+
+Planned examples:
+- docs/ (minimal docs boilerplate)
+- blog/ (blog-centric setup)
+- portfolio/ (personal site/portfolio)
+
+Each example will include:
+- A ready-to-run Hugo site
+- Recommended config and params
+- Customizations and best practices
diff --git a/website/themes/hextra/go.mod b/website/themes/hextra/go.mod
new file mode 100644
index 00000000..6209398b
--- /dev/null
+++ b/website/themes/hextra/go.mod
@@ -0,0 +1,3 @@
+module github.com/imfing/hextra
+
+go 1.21
diff --git a/website/themes/hextra/hugo.toml b/website/themes/hextra/hugo.toml
new file mode 100644
index 00000000..42aa4634
--- /dev/null
+++ b/website/themes/hextra/hugo.toml
@@ -0,0 +1,16 @@
+[module]
+ [module.hugoVersion]
+ min = '0.146.0'
+
+[outputFormats]
+ [outputFormats.llms]
+ name= 'llms'
+ baseName = 'llms'
+ mediaType = 'text/plain'
+ isPlainText = true
+ [outputFormats.markdown]
+ name = 'markdown'
+ baseName = 'index'
+ mediaType = 'text/markdown'
+ isPlainText = true
+ ugly = true
diff --git a/website/themes/hextra/i18n/cs.yaml b/website/themes/hextra/i18n/cs.yaml
new file mode 100644
index 00000000..92698822
--- /dev/null
+++ b/website/themes/hextra/i18n/cs.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Zavřít banner"
+menu: "Menu"
+mermaidDiagram: "Diagram"
+pdfViewer: "Prohlížeč PDF"
+permalinkLabel: "Trvalý odkaz na tuto sekci"
+playbackTime: "Doba přehrávání"
+searchResults: "Výsledky vyhledávání"
+skipToContent: "Přejít na obsah"
+tableOfContents: "Obsah"
+terminalRecording: "Záznam terminálu"
+togglePageContextMenu: "Přepnout kontextové menu stránky"
+toggleSection: "Přepnout sekci"
+
+# Accessibility live-region/status text
+resultsFound: "%d výsledků nalezeno"
+
+# User-facing UI text
+archives: "Archiv"
+backToTop: "Zpět nahoru"
+changeLanguage: "Změnit jazyk"
+changeTheme: "Změnit vzhled"
+copy: "Kopírovat"
+copied: "Zkopírováno!"
+copyAsMarkdown: "Kopírovat jako Markdown"
+copyPage: "Kopírovat stránku"
+copyCode: "Zkopírovat kód"
+copyright: "© 2026 Hextra Project."
+dark: "Tmavý"
+editThisPage: "Upravit tuto stránku na GitHubu →"
+lastUpdated: "Naposledy změněno"
+light: "Světlý"
+next: "Další"
+noResultsFound: "Nebylo nic nalezeno."
+onThisPage: "Na této stránce"
+more: "Více"
+poweredBy: "Powered by Hextra"
+previous: "Předchozí"
+readMore: "Přečíst víc →"
+searchPlaceholder: "Hledat..."
+system: "Systém"
+tags: "Tagy"
+viewAsMarkdown: "Zobrazit jako Markdown"
diff --git a/website/themes/hextra/i18n/de.yaml b/website/themes/hextra/i18n/de.yaml
new file mode 100644
index 00000000..ed0cf4d9
--- /dev/null
+++ b/website/themes/hextra/i18n/de.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Banner schließen"
+menu: "Menü"
+mermaidDiagram: "Diagramm"
+pdfViewer: "PDF-Betrachter"
+permalinkLabel: "Permalink für diesen Abschnitt"
+playbackTime: "Wiedergabezeit"
+searchResults: "Suchergebnisse"
+skipToContent: "Zum Inhalt springen"
+tableOfContents: "Inhaltsverzeichnis"
+terminalRecording: "Terminalaufzeichnung"
+togglePageContextMenu: "Seitenkontextmenü umschalten"
+toggleSection: "Abschnitt umschalten"
+
+# Accessibility live-region/status text
+resultsFound: "%d Ergebnisse gefunden"
+
+# User-facing UI text
+archives: "Archiv"
+backToTop: "Nach oben"
+changeLanguage: "Sprache ändern"
+changeTheme: "Darstellung ändern"
+copy: "Kopieren"
+copied: "Kopiert!"
+copyAsMarkdown: "Als Markdown kopieren"
+copyPage: "Seite kopieren"
+copyCode: "Code kopieren"
+copyright: "© 2026 Hextra Project."
+dark: "Dunkel"
+editThisPage: "Diese Seite auf GitHub bearbeiten →"
+lastUpdated: "Zuletzt aktualisiert am"
+light: "Hell"
+next: "Weiter"
+noResultsFound: "Keine Ergebnisse gefunden."
+onThisPage: "Auf dieser Seite"
+more: "Mehr"
+poweredBy: "Unterstützt durch Hextra"
+previous: "Zurück"
+readMore: "Mehr lesen →"
+searchPlaceholder: "Suchen..."
+system: "System"
+tags: "Schlagwörter"
+viewAsMarkdown: "Als Markdown anzeigen"
diff --git a/website/themes/hextra/i18n/en.yaml b/website/themes/hextra/i18n/en.yaml
new file mode 100644
index 00000000..c06ae377
--- /dev/null
+++ b/website/themes/hextra/i18n/en.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Close banner"
+menu: "Menu"
+mermaidDiagram: "Diagram"
+pdfViewer: "PDF viewer"
+permalinkLabel: "Permalink for this section"
+playbackTime: "Playback time"
+searchResults: "Search results"
+skipToContent: "Skip to content"
+tableOfContents: "Table of contents"
+terminalRecording: "Terminal recording"
+togglePageContextMenu: "Toggle page context menu"
+toggleSection: "Toggle section"
+
+# Accessibility live-region/status text
+resultsFound: "%d results found"
+
+# User-facing UI text
+archives: "Archives"
+backToTop: "Scroll to top"
+changeLanguage: "Change language"
+changeTheme: "Change theme"
+copy: "Copy"
+copied: "Copied!"
+copyAsMarkdown: "Copy as Markdown"
+copyPage: "Copy Page"
+copyCode: "Copy code"
+copyright: "© 2026 Hextra Project."
+dark: "Dark"
+editThisPage: "Edit this page on GitHub →"
+lastUpdated: "Last updated on"
+light: "Light"
+next: "Next"
+noResultsFound: "No results found."
+onThisPage: "On this page"
+more: "More"
+poweredBy: "Powered by Hextra"
+previous: "Prev"
+readMore: "Read more →"
+searchPlaceholder: "Search..."
+system: "System"
+tags: "Tags"
+viewAsMarkdown: "View as Markdown"
diff --git a/website/themes/hextra/i18n/es.yaml b/website/themes/hextra/i18n/es.yaml
new file mode 100644
index 00000000..62ab963d
--- /dev/null
+++ b/website/themes/hextra/i18n/es.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Cerrar banner"
+menu: "Menú"
+mermaidDiagram: "Diagrama"
+pdfViewer: "Visor de PDF"
+permalinkLabel: "Enlace permanente a esta sección"
+playbackTime: "Tiempo de reproducción"
+searchResults: "Resultados de búsqueda"
+skipToContent: "Saltar al contenido"
+tableOfContents: "Tabla de contenidos"
+terminalRecording: "Grabación de terminal"
+togglePageContextMenu: "Alternar menú contextual de la página"
+toggleSection: "Alternar sección"
+
+# Accessibility live-region/status text
+resultsFound: "%d resultados encontrados"
+
+# User-facing UI text
+archives: "Archivos"
+backToTop: "Subir al inicio"
+changeLanguage: "Cambiar idioma"
+changeTheme: "Cambiar tema"
+copy: "Copiar"
+copied: "¡Copiado!"
+copyAsMarkdown: "Copiar como Markdown"
+copyPage: "Copiar página"
+copyCode: "Copiar código"
+copyright: "© 2026 Proyecto Hextra."
+dark: "Oscuro"
+editThisPage: "Edita esta página en GitHub →"
+lastUpdated: "Última actualización"
+light: "Claro"
+next: "Siguiente"
+noResultsFound: "No hubo resultados."
+onThisPage: "En esta página"
+more: "Más"
+poweredBy: "Con tecnología de Hextra"
+previous: "Anterior"
+readMore: "Leer más →"
+searchPlaceholder: "Buscar..."
+system: "Sistema"
+tags: "Etiquetas"
+viewAsMarkdown: "Ver como Markdown"
diff --git a/website/themes/hextra/i18n/fa.yaml b/website/themes/hextra/i18n/fa.yaml
new file mode 100644
index 00000000..95d71ead
--- /dev/null
+++ b/website/themes/hextra/i18n/fa.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "بستن بنر"
+menu: "منو"
+mermaidDiagram: "نمودار"
+pdfViewer: "نمایشگر PDF"
+permalinkLabel: "پیوند ثابت به این بخش"
+playbackTime: "زمان پخش"
+searchResults: "نتایج جستجو"
+skipToContent: "رفتن به محتوا"
+tableOfContents: "فهرست مطالب"
+terminalRecording: "ضبط ترمینال"
+togglePageContextMenu: "تغییر وضعیت منوی زمینه صفحه"
+toggleSection: "تغییر وضعیت بخش"
+
+# Accessibility live-region/status text
+resultsFound: "%d نتیجه یافت شد"
+
+# User-facing UI text
+archives: "آرشیو"
+backToTop: "به بالا بروید"
+changeLanguage: "تغییر زبان"
+changeTheme: "تغییر تم"
+copy: "کپی"
+copied: "کپی شد!"
+copyAsMarkdown: "کپی به عنوان Markdown"
+copyPage: "کپی صفحه"
+copyCode: "کپی کد"
+copyright: "© ۲۰۲۴ پروژه هگزترا."
+dark: "تیره"
+editThisPage: "ویرایش این صفحه در گیتهاب ←"
+lastUpdated: "آخرین بهروزرسانی در"
+light: "روشن"
+next: "بعدی"
+noResultsFound: "هیچ نتیجهای پیدا نشد."
+onThisPage: "در این صفحه"
+more: "بیشتر"
+poweredBy: "طراحی شده توسط هگزترا"
+previous: "قبلی"
+readMore: "ادامه مطلب ←"
+searchPlaceholder: "جستجو..."
+system: "سیستم"
+tags: "برچسبها"
+viewAsMarkdown: "مشاهده به عنوان Markdown"
diff --git a/website/themes/hextra/i18n/fr.yaml b/website/themes/hextra/i18n/fr.yaml
new file mode 100644
index 00000000..1c97ade5
--- /dev/null
+++ b/website/themes/hextra/i18n/fr.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Fermer la bannière"
+menu: "Menu"
+mermaidDiagram: "Diagramme"
+pdfViewer: "Lecteur PDF"
+permalinkLabel: "Lien permanent vers cette section"
+playbackTime: "Temps de lecture"
+searchResults: "Résultats de recherche"
+skipToContent: "Aller au contenu"
+tableOfContents: "Table des matières"
+terminalRecording: "Enregistrement du terminal"
+togglePageContextMenu: "Basculer le menu contextuel de la page"
+toggleSection: "Basculer la section"
+
+# Accessibility live-region/status text
+resultsFound: "%d résultats trouvés"
+
+# User-facing UI text
+archives: "Archives"
+backToTop: "Revenir en haut"
+changeLanguage: "Changer la langue"
+changeTheme: "Thème d'affichage"
+copy: "Copier"
+copied: "Copié !"
+copyAsMarkdown: "Copier en Markdown"
+copyPage: "Copier la page"
+copyCode: "Copier le code"
+copyright: "© 2026 Hextra Project."
+dark: "Sombre"
+editThisPage: "Modifier cette page sur GitHub →"
+lastUpdated: "Dernière modification"
+light: "Clair"
+next: "Suivant"
+noResultsFound: "Pas de résultats trouvés"
+onThisPage: "Sur cette page"
+more: "Plus"
+poweredBy: "Propulsé par Hextra"
+previous: "Précédent"
+readMore: "Lire plus →"
+searchPlaceholder: "Rechercher..."
+system: "Système"
+tags: "Étiquettes"
+viewAsMarkdown: "Voir en Markdown"
diff --git a/website/themes/hextra/i18n/he.yaml b/website/themes/hextra/i18n/he.yaml
new file mode 100644
index 00000000..c149c87e
--- /dev/null
+++ b/website/themes/hextra/i18n/he.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "סגור באנר"
+menu: "תפריט"
+mermaidDiagram: "תרשים"
+pdfViewer: "מציג PDF"
+permalinkLabel: "קישור קבוע לפסקה זו"
+playbackTime: "זמן ניגון"
+searchResults: "תוצאות חיפוש"
+skipToContent: "דלג לתוכן"
+tableOfContents: "תוכן עניינים"
+terminalRecording: "הקלטת מסוף"
+togglePageContextMenu: "הצג/הסתר תפריט ההקשר של הדף"
+toggleSection: "הצג/הסתר מקטע"
+
+# Accessibility live-region/status text
+resultsFound: "%d תוצאות נמצאו"
+
+# User-facing UI text
+archives: "ארכיון"
+backToTop: "גלול למעלה"
+changeLanguage: "שנה שפה"
+changeTheme: "שנה ערכת צבעים"
+copy: "העתק"
+copied: "הועתק!"
+copyAsMarkdown: "העתק כ-Markdown"
+copyPage: "העתק עמוד"
+copyCode: "העתק קוד"
+copyright: "© 2026 פרוייקט Hextra"
+dark: "כהה"
+editThisPage: "← ערוך עמוד זה בגיטהאב"
+lastUpdated: "עודכן לאחרונה ב"
+light: "בהיר"
+next: "הבא"
+noResultsFound: "לא נמצאו תוצאות."
+onThisPage: "בעמוד זה"
+more: "עוד"
+poweredBy: "Hextra מופעל על-ידי"
+previous: "הקודם"
+readMore: "← קרא עוד"
+searchPlaceholder: "חיפוש..."
+system: "מערכת"
+tags: "תגיות"
+viewAsMarkdown: "הצג כ-Markdown"
diff --git a/website/themes/hextra/i18n/it.yaml b/website/themes/hextra/i18n/it.yaml
new file mode 100644
index 00000000..d56d053c
--- /dev/null
+++ b/website/themes/hextra/i18n/it.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Chiudi banner"
+menu: "Menu"
+mermaidDiagram: "Diagramma"
+pdfViewer: "Visualizzatore PDF"
+permalinkLabel: "Link permanente a questa sezione"
+playbackTime: "Tempo di riproduzione"
+searchResults: "Risultati della ricerca"
+skipToContent: "Vai al contenuto"
+tableOfContents: "Indice dei contenuti"
+terminalRecording: "Registrazione del terminale"
+togglePageContextMenu: "Attiva/disattiva il menu contestuale della pagina"
+toggleSection: "Attiva/disattiva sezione"
+
+# Accessibility live-region/status text
+resultsFound: "%d risultati trovati"
+
+# User-facing UI text
+archives: "Archivi"
+backToTop: "Torna all'inizio"
+changeLanguage: "Cambia lingua"
+changeTheme: "Cambia tema"
+copy: "Copia"
+copied: "Copiato!"
+copyAsMarkdown: "Copia come Markdown"
+copyPage: "Copia pagina"
+copyCode: "Copia codice"
+copyright: "© 2026 Hextra Project."
+dark: "Scuro"
+editThisPage: "Modifica questa pagina su GitHub →"
+lastUpdated: "Ultimo aggiornamento il"
+light: "Chiaro"
+next: "Successivo"
+noResultsFound: "Nessun risultato trovato."
+onThisPage: "In questa pagina"
+more: "Altro"
+poweredBy: "Realizzato da Hextra"
+previous: "Precedente"
+readMore: "Per saperne di più →"
+searchPlaceholder: "Cerca..."
+system: "Sistema"
+tags: "Etichette"
+viewAsMarkdown: "Visualizza come Markdown"
diff --git a/website/themes/hextra/i18n/ja.yaml b/website/themes/hextra/i18n/ja.yaml
new file mode 100644
index 00000000..a67f97ee
--- /dev/null
+++ b/website/themes/hextra/i18n/ja.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "バナーを閉じる"
+menu: "メニュー"
+mermaidDiagram: "図"
+pdfViewer: "PDFビューアー"
+permalinkLabel: "このセクションへのパーマリンク"
+playbackTime: "再生時間"
+searchResults: "検索結果"
+skipToContent: "コンテンツにスキップ"
+tableOfContents: "目次"
+terminalRecording: "ターミナル録画"
+togglePageContextMenu: "ページコンテキストメニューの切り替え"
+toggleSection: "セクションの切り替え"
+
+# Accessibility live-region/status text
+resultsFound: "%d件の結果が見つかりました"
+
+# User-facing UI text
+archives: "アーカイブ"
+backToTop: "トップにスクロール"
+changeLanguage: "言語を変更"
+changeTheme: "テーマを変更"
+copy: "コピー"
+copied: "コピーしました!"
+copyAsMarkdown: "Markdownとしてコピー"
+copyPage: "ページをコピー"
+copyCode: "コードをコピー"
+copyright: "© 2026 Hextra プロジェクト。"
+dark: "ダーク"
+editThisPage: "このページをGitHubで編集 →"
+lastUpdated: "最終更新日"
+light: "ライト"
+next: "次へ"
+noResultsFound: "結果が見つかりませんでした。"
+onThisPage: "このページの内容"
+more: "その他"
+poweredBy: "提供元 Hextra"
+previous: "前へ"
+readMore: "もっと読む →"
+searchPlaceholder: "検索..."
+system: "システム"
+tags: "タグ"
+viewAsMarkdown: "Markdownとして表示"
diff --git a/website/themes/hextra/i18n/ko.yaml b/website/themes/hextra/i18n/ko.yaml
new file mode 100644
index 00000000..273d9495
--- /dev/null
+++ b/website/themes/hextra/i18n/ko.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "배너 닫기"
+menu: "메뉴"
+mermaidDiagram: "다이어그램"
+pdfViewer: "PDF 뷰어"
+permalinkLabel: "이 섹션에 대한 고유 링크"
+playbackTime: "재생 시간"
+searchResults: "검색 결과"
+skipToContent: "본문으로 건너뛰기"
+tableOfContents: "목차"
+terminalRecording: "터미널 녹화"
+togglePageContextMenu: "페이지 컨텍스트 메뉴 전환"
+toggleSection: "섹션 전환"
+
+# Accessibility live-region/status text
+resultsFound: "%d개의 결과를 찾았습니다"
+
+# User-facing UI text
+archives: "아카이브"
+backToTop: "맨위로 스크롤"
+changeLanguage: "언어 변경"
+changeTheme: "테마 변경"
+copy: "복사"
+copied: "복사됨!"
+copyAsMarkdown: "Markdown으로 복사"
+copyPage: "페이지 복사"
+copyCode: "코드 복사"
+copyright: "© 2026 Hextra Project."
+dark: "어두운 테마"
+editThisPage: "GitHub에서 편집하기 →"
+lastUpdated: "마지막 수정 일자"
+light: "밝은 테마"
+next: "다음"
+noResultsFound: "결과 없음"
+onThisPage: "페이지 목차"
+more: "더보기"
+poweredBy: "Hextra로 제작됨"
+previous: "이전"
+readMore: "더보기 →"
+searchPlaceholder: "검색..."
+system: "시스템"
+tags: "태그"
+viewAsMarkdown: "Markdown으로 보기"
diff --git a/website/themes/hextra/i18n/nb.yaml b/website/themes/hextra/i18n/nb.yaml
new file mode 100644
index 00000000..23ed6374
--- /dev/null
+++ b/website/themes/hextra/i18n/nb.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Lukk banner"
+menu: "Meny"
+mermaidDiagram: "Diagram"
+pdfViewer: "PDF-visning"
+permalinkLabel: "Permanent lenke til denne seksjonen"
+playbackTime: "Avspillingstid"
+searchResults: "Søkeresultater"
+skipToContent: "Hopp til innhold"
+tableOfContents: "Innholdsfortegnelse"
+terminalRecording: "Terminalopptak"
+togglePageContextMenu: "Veksle sidekontekstmeny"
+toggleSection: "Veksle seksjon"
+
+# Accessibility live-region/status text
+resultsFound: "%d resultater funnet"
+
+# User-facing UI text
+archives: "Arkiv"
+backToTop: "Gå til toppen"
+changeLanguage: "Endre språk"
+changeTheme: "Endre tema"
+copy: "Kopier"
+copied: "Kopiert!"
+copyAsMarkdown: "Kopier som Markdown"
+copyPage: "Kopier side"
+copyCode: "Kopier kode"
+copyright: "© 2026 Hextra-prosjektet."
+dark: "Mørk"
+editThisPage: "Rediger denne siden på GitHub →"
+lastUpdated: "Sist oppdatert"
+light: "Lys"
+next: "Neste"
+noResultsFound: "Fant ingen treff."
+onThisPage: "På denne siden"
+more: "Mer"
+poweredBy: "Powered by Hextra"
+previous: "Forrige"
+readMore: "Les mer →"
+searchPlaceholder: "Søk..."
+system: "System"
+tags: "Stikkord"
+viewAsMarkdown: "Vis som Markdown"
diff --git a/website/themes/hextra/i18n/nl.yaml b/website/themes/hextra/i18n/nl.yaml
new file mode 100644
index 00000000..cb7764c3
--- /dev/null
+++ b/website/themes/hextra/i18n/nl.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Banner sluiten"
+menu: "Menu"
+mermaidDiagram: "Diagram"
+pdfViewer: "PDF-weergave"
+permalinkLabel: "Permanente link naar deze sectie"
+playbackTime: "Afspeeltijd"
+searchResults: "Zoekresultaten"
+skipToContent: "Ga naar inhoud"
+tableOfContents: "Inhoudsopgave"
+terminalRecording: "Terminalopname"
+togglePageContextMenu: "Paginacontextmenu wisselen"
+toggleSection: "Sectie wisselen"
+
+# Accessibility live-region/status text
+resultsFound: "%d resultaten gevonden"
+
+# User-facing UI text
+archives: "Archief"
+backToTop: "Terug naar boven"
+changeLanguage: "Taal veranderen"
+changeTheme: "Thema aanpassen"
+copy: "Kopiëren"
+copied: "Gekopieerd!"
+copyAsMarkdown: "Kopieer als Markdown"
+copyPage: "Pagina kopiëren"
+copyCode: "Kopieer code"
+copyright: "© 2026 Hextra Project."
+dark: "Donker"
+editThisPage: "Bewerk deze pagina op GitHub →"
+lastUpdated: "Laatst bijgewerkt op"
+light: "Licht"
+next: "Volgende"
+noResultsFound: "Geen resultaten gevonden."
+onThisPage: "Op deze pagina"
+more: "Meer"
+poweredBy: "Mogelijk gemaakt door Hextra"
+previous: "Vorige"
+readMore: "Lees meer →"
+searchPlaceholder: "Zoeken..."
+system: "Systeem"
+tags: "Labels"
+viewAsMarkdown: "Bekijk als Markdown"
diff --git a/website/themes/hextra/i18n/nn.yaml b/website/themes/hextra/i18n/nn.yaml
new file mode 100644
index 00000000..12076cdd
--- /dev/null
+++ b/website/themes/hextra/i18n/nn.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Lukk banner"
+menu: "Meny"
+mermaidDiagram: "Diagram"
+pdfViewer: "PDF-vising"
+permalinkLabel: "Permanent lenkje til denne seksjonen"
+playbackTime: "Avspelingstid"
+searchResults: "Søkjeresultat"
+skipToContent: "Hopp til innhald"
+tableOfContents: "Innhaldsliste"
+terminalRecording: "Terminalopptak"
+togglePageContextMenu: "Veksle sidekontekstmeny"
+toggleSection: "Veksle seksjon"
+
+# Accessibility live-region/status text
+resultsFound: "%d resultat funne"
+
+# User-facing UI text
+archives: "Arkiv"
+backToTop: "Gå til toppen"
+changeLanguage: "Endre språk"
+changeTheme: "Endre tema"
+copy: "Kopier"
+copied: "Kopiert!"
+copyAsMarkdown: "Kopier som Markdown"
+copyPage: "Kopier side"
+copyCode: "Kopier kode"
+copyright: "© 2026 Hextra-prosjektet."
+dark: "Mørk"
+editThisPage: "Rediger denne sida på GitHub →"
+lastUpdated: "Sist oppdatert"
+light: "Ljos"
+next: "Neste"
+noResultsFound: "Fann ingen treff."
+onThisPage: "På denne sida"
+more: "Meir"
+poweredBy: "Powered by Hextra"
+previous: "Førre"
+readMore: "Les meir →"
+searchPlaceholder: "Søk..."
+system: "System"
+tags: "Stikkord"
+viewAsMarkdown: "Vis som Markdown"
diff --git a/website/themes/hextra/i18n/pt.yaml b/website/themes/hextra/i18n/pt.yaml
new file mode 100644
index 00000000..5ad92121
--- /dev/null
+++ b/website/themes/hextra/i18n/pt.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Fechar banner"
+menu: "Menu"
+mermaidDiagram: "Diagrama"
+pdfViewer: "Visualizador de PDF"
+permalinkLabel: "Link permanente para esta secção"
+playbackTime: "Tempo de reprodução"
+searchResults: "Resultados da pesquisa"
+skipToContent: "Saltar para o conteúdo"
+tableOfContents: "Índice"
+terminalRecording: "Gravação de terminal"
+togglePageContextMenu: "Alternar menu de contexto da página"
+toggleSection: "Alternar secção"
+
+# Accessibility live-region/status text
+resultsFound: "%d resultados encontrados"
+
+# User-facing UI text
+archives: "Arquivo"
+backToTop: "Voltar ao topo"
+changeLanguage: "Mudar a língua"
+changeTheme: "Mudar tema"
+copy: "Copiar"
+copied: "Copiado!"
+copyAsMarkdown: "Copiar como Markdown"
+copyPage: "Copiar página"
+copyCode: "Copiar código"
+copyright: "© 2026 Projecto Hextra."
+dark: "Escuro"
+editThisPage: "Edita esta página no GitHub →"
+lastUpdated: "Última modificação"
+light: "Claro"
+next: "Seguinte"
+noResultsFound: "Nenhum resultado encontrado"
+onThisPage: "Nesta página"
+more: "Mais"
+poweredBy: "Com a tecnologia de Hextra"
+previous: "Anterior"
+readMore: "Ler mais →"
+searchPlaceholder: "Procurar..."
+system: "Sistema"
+tags: "Etiquetas"
+viewAsMarkdown: "Ver como Markdown"
diff --git a/website/themes/hextra/i18n/ro.yaml b/website/themes/hextra/i18n/ro.yaml
new file mode 100644
index 00000000..d5c796c9
--- /dev/null
+++ b/website/themes/hextra/i18n/ro.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Închide bannerul"
+menu: "Meniu"
+mermaidDiagram: "Diagramă"
+pdfViewer: "Vizualizator PDF"
+permalinkLabel: "Link permanent către această secțiune"
+playbackTime: "Timp de redare"
+searchResults: "Rezultatele căutării"
+skipToContent: "Salt la conținut"
+tableOfContents: "Cuprins"
+terminalRecording: "Înregistrare terminal"
+togglePageContextMenu: "Comutare meniu contextual pagină"
+toggleSection: "Comutare secțiune"
+
+# Accessibility live-region/status text
+resultsFound: "%d rezultate găsite"
+
+# User-facing UI text
+archives: "Arhivă"
+backToTop: "Înapoi sus"
+changeLanguage: "Schimbă limba"
+changeTheme: "Schimbă tema"
+copy: "Copiază"
+copied: "Copiat!"
+copyAsMarkdown: "Copiază ca Markdown"
+copyPage: "Copiază pagina"
+copyCode: "Copiază codul"
+copyright: "© 2026 Hextra Project."
+dark: "Întuneric"
+editThisPage: "Editați această pagină pe GitHub ←"
+lastUpdated: "Ultima actualizare la"
+light: "Lumină"
+next: "Următor"
+noResultsFound: "Nici un rezultat găsit."
+onThisPage: "Pe această pagină"
+more: "Mai mult"
+poweredBy: "Susținut de Hextra"
+previous: "Anterior"
+readMore: "Citește mai mult ←"
+searchPlaceholder: "Caută..."
+system: "Sistem"
+tags: "Etichete"
+viewAsMarkdown: "Vizualizează ca Markdown"
diff --git a/website/themes/hextra/i18n/ru.yaml b/website/themes/hextra/i18n/ru.yaml
new file mode 100644
index 00000000..7572fd05
--- /dev/null
+++ b/website/themes/hextra/i18n/ru.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Закрыть баннер"
+menu: "Меню"
+mermaidDiagram: "Диаграмма"
+pdfViewer: "Просмотр PDF"
+permalinkLabel: "Постоянная ссылка на этот раздел"
+playbackTime: "Время воспроизведения"
+searchResults: "Результаты поиска"
+skipToContent: "Перейти к содержимому"
+tableOfContents: "Содержание"
+terminalRecording: "Запись терминала"
+togglePageContextMenu: "Переключить контекстное меню страницы"
+toggleSection: "Переключить раздел"
+
+# Accessibility live-region/status text
+resultsFound: "%d результатов найдено"
+
+# User-facing UI text
+archives: "Архив"
+backToTop: "Прокрутить к началу"
+changeLanguage: "Изменить язык"
+changeTheme: "Изменить тему"
+copy: "Копировать"
+copied: "Скопировано!"
+copyAsMarkdown: "Копировать как Markdown"
+copyPage: "Копировать страницу"
+copyCode: "Скопировать код"
+copyright: "2026 Проект Hextra."
+dark: "Темная"
+editThisPage: "Отредактировать страницу на GitHub →"
+lastUpdated: "Последнее обновление"
+light: "Светлая"
+next: "Далее"
+noResultsFound: "Ничего не найдено."
+onThisPage: "На этой странице"
+more: "Ещё"
+poweredBy: "При поддержке Hextra"
+previous: "Назад"
+readMore: "Читать далее →"
+searchPlaceholder: "Поиск..."
+system: "Система"
+tags: "Теги"
+viewAsMarkdown: "Просмотреть как Markdown"
diff --git a/website/themes/hextra/i18n/sw.yaml b/website/themes/hextra/i18n/sw.yaml
new file mode 100644
index 00000000..100a4dc5
--- /dev/null
+++ b/website/themes/hextra/i18n/sw.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Funga bango"
+menu: "Menyu"
+mermaidDiagram: "Mchoro"
+pdfViewer: "Kitazamaji cha PDF"
+permalinkLabel: "Kiungo cha kudumu kwa sehemu hii"
+playbackTime: "Muda wa kucheza"
+searchResults: "Matokeo ya utafutaji"
+skipToContent: "Ruka hadi maudhui"
+tableOfContents: "Jedwali la yaliyomo"
+terminalRecording: "Rekodi ya terminal"
+togglePageContextMenu: "Badili menyu ya muktadha wa ukurasa"
+toggleSection: "Badili sehemu"
+
+# Accessibility live-region/status text
+resultsFound: "Matokeo %d yamepatikana"
+
+# User-facing UI text
+archives: "Kumbukumbu"
+backToTop: "Tembeza hadi juu"
+changeLanguage: "Badilisha lugha"
+changeTheme: "Badilisha mandhari"
+copy: "Nakili"
+copied: "Imenakiliwa!"
+copyAsMarkdown: "Nakili kama Markdown"
+copyPage: "Nakili ukurasa"
+copyCode: "Nakili msimbo"
+copyright: "© 2026 Hextra Project."
+dark: "Meusi"
+editThisPage: "Hariri ukurasa huu kwenye GitHub →"
+lastUpdated: "Ilisasishwa mwisho"
+light: "Meupe"
+next: "Ifuatayo"
+noResultsFound: "Hakuna matokeo yalipopatikana."
+onThisPage: "Kwenye ukurasa huu"
+more: "Zaidi"
+poweredBy: "Inaendeshwa na Hextra"
+previous: "Iliyotangulia"
+readMore: "Soma zaidi →"
+searchPlaceholder: "Tafuta..."
+system: "Mfumo"
+tags: "Lebo"
+viewAsMarkdown: "Tazama kama Markdown"
diff --git a/website/themes/hextra/i18n/uk.yaml b/website/themes/hextra/i18n/uk.yaml
new file mode 100644
index 00000000..178d3813
--- /dev/null
+++ b/website/themes/hextra/i18n/uk.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Закрити банер"
+menu: "Меню"
+mermaidDiagram: "Діаграма"
+pdfViewer: "Перегляд PDF"
+permalinkLabel: "Постійне посилання на цей розділ"
+playbackTime: "Час відтворення"
+searchResults: "Результати пошуку"
+skipToContent: "Перейти до вмісту"
+tableOfContents: "Зміст"
+terminalRecording: "Запис терміналу"
+togglePageContextMenu: "Перемкнути контекстне меню сторінки"
+toggleSection: "Перемкнути розділ"
+
+# Accessibility live-region/status text
+resultsFound: "%d результатів знайдено"
+
+# User-facing UI text
+archives: "Архів"
+backToTop: "Прокрутити до початку"
+changeLanguage: "Змінити мову"
+changeTheme: "Змінити тему"
+copy: "Копіювати"
+copied: "Скопійовано!"
+copyAsMarkdown: "Копіювати як Markdown"
+copyPage: "Копіювати сторінку"
+copyCode: "Скопіювати код"
+copyright: "2026 Проєкт Hextra."
+dark: "Темна"
+editThisPage: "Редагувати цю сторінку на GitHub →"
+lastUpdated: "Востаннє оновлено"
+light: "Світла"
+next: "Далі"
+noResultsFound: "Не знайдено результатів"
+onThisPage: "На цій сторінці"
+more: "Ще"
+poweredBy: "Працює завдяки Hextra"
+previous: "Назад"
+readMore: "Читати більше →"
+searchPlaceholder: "Пошук..."
+system: "Система"
+tags: "Теги"
+viewAsMarkdown: "Переглянути як Markdown"
diff --git a/website/themes/hextra/i18n/vi.yaml b/website/themes/hextra/i18n/vi.yaml
new file mode 100644
index 00000000..45f53df8
--- /dev/null
+++ b/website/themes/hextra/i18n/vi.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "Đóng biểu ngữ"
+menu: "Menu"
+mermaidDiagram: "Sơ đồ"
+pdfViewer: "Trình xem PDF"
+permalinkLabel: "Liên kết cố định đến phần này"
+playbackTime: "Thời gian phát"
+searchResults: "Kết quả tìm kiếm"
+skipToContent: "Chuyển đến nội dung"
+tableOfContents: "Mục lục"
+terminalRecording: "Bản ghi terminal"
+togglePageContextMenu: "Bật/tắt menu ngữ cảnh trang"
+toggleSection: "Bật/tắt mục"
+
+# Accessibility live-region/status text
+resultsFound: "%d kết quả được tìm thấy"
+
+# User-facing UI text
+archives: "Lưu trữ"
+backToTop: "Lướt lên đầu trang"
+changeLanguage: "Đổi ngôn ngữ"
+changeTheme: "Đổi chủ đề"
+copy: "Sao chép"
+copied: "Đã sao chép!"
+copyAsMarkdown: "Sao chép dạng Markdown"
+copyPage: "Sao chép trang"
+copyCode: "Sao chép mã"
+copyright: "© 2026 Hextra Project."
+dark: "Tối"
+editThisPage: "Sửa trang này trên GitHub →"
+lastUpdated: "Lần cuối cập nhật lúc"
+light: "Sáng"
+next: "Tiếp"
+noResultsFound: "Không tìm thấy kết quả."
+onThisPage: "Ở trang này"
+more: "Thêm"
+poweredBy: "Chạy bởi Hextra"
+previous: "Trước"
+readMore: "Đọc thêm →"
+searchPlaceholder: "Tìm kiếm..."
+system: "Hệ thống"
+tags: "Thẻ"
+viewAsMarkdown: "Xem dạng Markdown"
diff --git a/website/themes/hextra/i18n/zh-cn.yaml b/website/themes/hextra/i18n/zh-cn.yaml
new file mode 100644
index 00000000..2fb23c51
--- /dev/null
+++ b/website/themes/hextra/i18n/zh-cn.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "关闭横幅"
+menu: "菜单"
+mermaidDiagram: "图表"
+pdfViewer: "PDF 查看器"
+permalinkLabel: "此章节的永久链接"
+playbackTime: "播放时间"
+searchResults: "搜索结果"
+skipToContent: "跳至内容"
+tableOfContents: "目录"
+terminalRecording: "终端录像"
+togglePageContextMenu: "切换页面上下文菜单"
+toggleSection: "切换章节"
+
+# Accessibility live-region/status text
+resultsFound: "找到 %d 个结果"
+
+# User-facing UI text
+archives: "归档"
+backToTop: "返回顶部"
+changeLanguage: "切换语言"
+changeTheme: "切换主题"
+copy: "复制"
+copied: "已复制!"
+copyAsMarkdown: "复制为 Markdown"
+copyPage: "复制页面"
+copyCode: "复制代码"
+copyright: "© 2026 Hextra Project."
+dark: "深色"
+editThisPage: "在 GitHub 上编辑此页 →"
+lastUpdated: "最后更新于"
+light: "浅色"
+next: "下一页"
+noResultsFound: "无结果"
+onThisPage: "此页上"
+more: "更多"
+poweredBy: "由 Hextra 驱动"
+previous: "上一页"
+readMore: "更多 →"
+searchPlaceholder: "搜索文档..."
+system: "跟随系统"
+tags: "标签"
+viewAsMarkdown: "以 Markdown 查看"
diff --git a/website/themes/hextra/i18n/zh-tw.yaml b/website/themes/hextra/i18n/zh-tw.yaml
new file mode 100644
index 00000000..4c5b2c86
--- /dev/null
+++ b/website/themes/hextra/i18n/zh-tw.yaml
@@ -0,0 +1,43 @@
+# Accessibility labels (screen reader only)
+closeBanner: "關閉橫幅"
+menu: "選單"
+mermaidDiagram: "圖表"
+pdfViewer: "PDF 檢視器"
+permalinkLabel: "此章節的永久連結"
+playbackTime: "播放時間"
+searchResults: "搜尋結果"
+skipToContent: "跳至內容"
+tableOfContents: "目錄"
+terminalRecording: "終端機錄影"
+togglePageContextMenu: "切換頁面內容選單"
+toggleSection: "切換章節"
+
+# Accessibility live-region/status text
+resultsFound: "找到 %d 個結果"
+
+# User-facing UI text
+archives: "歸檔"
+backToTop: "返回頂部"
+changeLanguage: "切換語言"
+changeTheme: "切換主題"
+copy: "複製"
+copied: "已複製!"
+copyAsMarkdown: "複製為 Markdown"
+copyPage: "複製頁面"
+copyCode: "複製程式碼"
+copyright: "© 2026 Hextra Project."
+dark: "深色"
+editThisPage: "在 GitHub 上編輯此頁 →"
+lastUpdated: "最後更新於"
+light: "淺色"
+next: "下一頁"
+noResultsFound: "無結果"
+onThisPage: "此頁上"
+more: "更多"
+poweredBy: "由 Hextra 驅動"
+previous: "上一頁"
+readMore: "更多 →"
+searchPlaceholder: "搜尋文檔..."
+system: "系統"
+tags: "標籤"
+viewAsMarkdown: "以 Markdown 檢視"
diff --git a/website/themes/hextra/images/screenshot.jpg b/website/themes/hextra/images/screenshot.jpg
new file mode 100644
index 00000000..5dde7125
Binary files /dev/null and b/website/themes/hextra/images/screenshot.jpg differ
diff --git a/website/themes/hextra/images/tn.jpg b/website/themes/hextra/images/tn.jpg
new file mode 100644
index 00000000..7e3a0d14
Binary files /dev/null and b/website/themes/hextra/images/tn.jpg differ
diff --git a/website/themes/hextra/layouts/404.html b/website/themes/hextra/layouts/404.html
new file mode 100644
index 00000000..902db64c
--- /dev/null
+++ b/website/themes/hextra/layouts/404.html
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
This page could not be found.
+
+
+
+
diff --git a/website/themes/hextra/layouts/_markup/render-blockquote-alert.html b/website/themes/hextra/layouts/_markup/render-blockquote-alert.html
new file mode 100644
index 00000000..66518fc0
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-blockquote-alert.html
@@ -0,0 +1,9 @@
+{{- if not (in (slice "note" "tip" "important" "warning" "caution") .AlertType) -}}
+ {{- warnf "Alert type %s is not supported" .AlertType -}}
+{{- end -}}
+
+{{- $content := .Text -}}
+{{- $alertType := .AlertType -}}
+{{- $alertTitle := .AlertTitle -}}
+
+{{- partial "components/github-style-alert.html" (dict "content" $content "alertType" $alertType "alertTitle" $alertTitle) -}}
diff --git a/website/themes/hextra/layouts/_markup/render-blockquote-regular.html b/website/themes/hextra/layouts/_markup/render-blockquote-regular.html
new file mode 100644
index 00000000..652cb511
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-blockquote-regular.html
@@ -0,0 +1,3 @@
+
+ {{ .Text }}
+
diff --git a/website/themes/hextra/layouts/_markup/render-codeblock-mermaid.html b/website/themes/hextra/layouts/_markup/render-codeblock-mermaid.html
new file mode 100644
index 00000000..c2e8942f
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-codeblock-mermaid.html
@@ -0,0 +1,6 @@
+
+
+ {{ .Inner | htmlEscape | safeHTML }}
+
+
+{{- .Page.Store.Set "hasMermaid" true -}}
diff --git a/website/themes/hextra/layouts/_markup/render-codeblock.html b/website/themes/hextra/layouts/_markup/render-codeblock.html
new file mode 100644
index 00000000..0d1c9209
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-codeblock.html
@@ -0,0 +1,13 @@
+{{- $class := .Attributes.class | default "" -}}
+{{- $filename := .Attributes.filename | default "" -}}
+{{- $base_url := .Attributes.base_url | default "" -}}
+{{- $lang := .Attributes.lang | default .Type -}}
+
+
+
diff --git a/website/themes/hextra/layouts/_markup/render-heading.html b/website/themes/hextra/layouts/_markup/render-heading.html
new file mode 100644
index 00000000..c28dfb14
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-heading.html
@@ -0,0 +1,8 @@
+
+ {{- .Text | safeHTML -}}
+ {{- if gt .Level 1 -}}
+
+
+ {{- end -}}
+
+{{- /* Drop trailing newlines */ -}}
diff --git a/website/themes/hextra/layouts/_markup/render-image.html b/website/themes/hextra/layouts/_markup/render-image.html
new file mode 100644
index 00000000..2d3c8cf2
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-image.html
@@ -0,0 +1,59 @@
+{{- $alt := .PlainText | safeHTML -}}
+{{- $lazyLoading := .Page.Site.Params.enableImageLazyLoading | default true -}}
+{{- $enableImageZoom := .Page.Site.Params.imageZoom.enable | default false -}}
+{{- if not (eq .Page.Params.imageZoom nil) -}}
+ {{- $enableImageZoom = .Page.Params.imageZoom -}}
+{{- end -}}
+{{- $dest := .Destination -}}
+{{- $url := urls.Parse $dest -}}
+
+{{- $isLocal := not $url.Scheme -}}
+{{- $isPage := and (eq .Page.Kind "page") (not .Page.BundleType) -}}
+{{- $startsWithSlash := hasPrefix $dest "/" -}}
+{{- $startsWithRelative := hasPrefix $dest "../" -}}
+
+{{- if and $dest $isLocal -}}
+ {{- if $startsWithSlash -}}
+ {{- with or (.PageInner.Resources.Get $url.Path) (resources.Get $url.Path) -}}
+ {{/* Images under assets directory */}}
+ {{- $query := cond $url.RawQuery (printf "?%s" $url.RawQuery) "" -}}
+ {{- $fragment := cond $url.Fragment (printf "#%s" $url.Fragment) "" -}}
+ {{- $dest = printf "%s%s%s" .RelPermalink $query $fragment -}}
+ {{- else -}}
+ {{/* Images under static directory */}}
+ {{- $dest = (relURL (strings.TrimPrefix "/" $dest)) -}}
+ {{- end -}}
+ {{- else -}}
+ {{/* Resolve page bundle resource for multilingual permalink */}}
+ {{- with .PageInner.Resources.Get (strings.TrimPrefix "./" $url.Path) -}}
+ {{- $query := cond $url.RawQuery (printf "?%s" $url.RawQuery) "" -}}
+ {{- $fragment := cond $url.Fragment (printf "#%s" $url.Fragment) "" -}}
+ {{- $dest = printf "%s%s%s" .RelPermalink $query $fragment -}}
+ {{- else -}}
+ {{- if and $isPage (not $startsWithRelative) -}}
+ {{ $dest = (printf "../%s" $dest) }}
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+{{- $attributes := "" -}}
+{{- range $key, $value := .Attributes -}}
+ {{- if $value -}}
+ {{- $pair := printf "%s=%q" $key ($value | transform.HTMLEscape) -}}
+ {{- $attributes = printf "%s %s" $attributes $pair -}}
+ {{- end -}}
+{{- end -}}
+
+{{- if $enableImageZoom -}}
+ {{- .Page.Store.Set "hasImageZoom" true -}}
+{{- end -}}
+
+{{- with .Title -}}
+
+
+ {{ . }}
+
+{{- else -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_markup/render-link.html b/website/themes/hextra/layouts/_markup/render-link.html
new file mode 100644
index 00000000..a6738829
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-link.html
@@ -0,0 +1,28 @@
+{{- $dest := .Destination -}}
+{{- $url := urls.Parse $dest -}}
+
+{{- if and $dest (hasPrefix $dest "/") -}}
+ {{- with or (.PageInner.GetPage $url.Path) (.PageInner.Resources.Get $url.Path) (resources.Get $url.Path) -}}
+ {{- $query := cond $url.RawQuery (printf "?%s" $url.RawQuery) "" -}}
+ {{- $fragment := cond $url.Fragment (printf "#%s" $url.Fragment) "" -}}
+ {{- $dest = printf "%s%s%s" .RelPermalink $query $fragment -}}
+ {{- else -}}
+ {{- $hasBasePrefix := and (ne site.Home.RelPermalink "/") (hasPrefix $dest site.Home.RelPermalink) -}}
+ {{- if not $hasBasePrefix -}}
+ {{- $dest = (relURL (strings.TrimPrefix "/" $dest)) -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+{{- with . -}}
+{{- $isExternal := strings.HasPrefix .Destination "http" -}}
+
+ {{- .Text | safeHTML -}}
+ {{- if and .Page.Site.Params.externalLinkDecoration $isExternal -}}
+ {{- partial "utils/icon.html" (dict "name" "arrow-up-right" "attributes" `class="hx:inline hx:rtl:rotate-270 hx:align-baseline" height="1em" aria-hidden="true"`) -}}
+ {{- end -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_markup/render-passthrough.html b/website/themes/hextra/layouts/_markup/render-passthrough.html
new file mode 100644
index 00000000..3c23c6ae
--- /dev/null
+++ b/website/themes/hextra/layouts/_markup/render-passthrough.html
@@ -0,0 +1,20 @@
+{{- $engine := site.Params.math.engine | default "katex" -}}
+{{- if eq $engine "katex" -}}
+ {{- $opts := dict "output" "htmlAndMathml" "displayMode" (eq .Type "block") }}
+ {{- with try (transform.ToMath .Inner $opts) }}
+ {{- with .Err }}
+ {{ errorf "Unable to render mathematical markup to HTML using the transform.ToMath function. The KaTeX display engine threw the following error: %s: see %s." . $.Position }}
+ {{- else }}
+ {{- .Value }}
+ {{- $.Page.Store.Set "hasMath" true }}
+ {{- end }}
+ {{- end }}
+{{- else -}}
+ {{/* MathJax - need to add delimiters back in */}}
+ {{- $.Page.Store.Set "hasMath" true }}
+ {{- if eq .Type "block" -}}
+ \[{{- .Inner -}}\]
+ {{- else -}}
+ \( {{- .Inner -}} \)
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/banner.html b/website/themes/hextra/layouts/_partials/banner.html
new file mode 100644
index 00000000..d15b31c5
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/banner.html
@@ -0,0 +1,19 @@
+{{- if site.Params.banner }}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/breadcrumb.html b/website/themes/hextra/layouts/_partials/breadcrumb.html
new file mode 100644
index 00000000..1f4612e8
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/breadcrumb.html
@@ -0,0 +1,17 @@
+{{- $page := .page -}}
+{{- $enable := .enable -}}
+{{- if (default $enable $page.Params.breadcrumbs) -}}
+
+ {{- range $page.Ancestors.Reverse }}
+ {{- if not .IsHome }}
+
+
+
+ {{- partial "utils/icon.html" (dict "name" "chevron-right" "attributes" "class=\"hx:w-3.5 hx:shrink-0 hx:rtl:-rotate-180\"") -}}
+ {{ end -}}
+ {{ end -}}
+
+ {{- partial "utils/title" $page -}}
+
+
+{{ end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/analytics/analytics.html b/website/themes/hextra/layouts/_partials/components/analytics/analytics.html
new file mode 100644
index 00000000..6e56b523
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/analytics/analytics.html
@@ -0,0 +1,24 @@
+{{- if hugo.IsProduction -}}
+
+
+{{- if .Site.Config.Services.GoogleAnalytics.ID }}
+
+ {{ partial "google-analytics.html" . -}}
+{{- end }}
+
+
+{{- if .Site.Params.analytics.umami -}}
+ {{ partial "components/analytics/umami.html" . }}
+{{- end }}
+
+
+{{- if .Site.Params.analytics.matomo -}}
+ {{ partial "components/analytics/matomo.html" . }}
+{{- end }}
+
+
+{{- if .Site.Params.analytics.goatCounter -}}
+ {{ partial "components/analytics/goat-counter.html" . }}
+{{- end -}}
+
+{{- end }}
diff --git a/website/themes/hextra/layouts/_partials/components/analytics/goat-counter.html b/website/themes/hextra/layouts/_partials/components/analytics/goat-counter.html
new file mode 100644
index 00000000..3399bb0e
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/analytics/goat-counter.html
@@ -0,0 +1,17 @@
+{{- with .Site.Params.analytics.goatCounter -}}
+ {{- if not .code -}}
+ {{- errorf "Missing GoatCounter 'code' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#goatcounter-analytics" -}}
+ {{- end -}}
+
+
+{{- end -}}
\ No newline at end of file
diff --git a/website/themes/hextra/layouts/_partials/components/analytics/google-analytics.html b/website/themes/hextra/layouts/_partials/components/analytics/google-analytics.html
new file mode 100644
index 00000000..62e9d424
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/analytics/google-analytics.html
@@ -0,0 +1,13 @@
+{{- with site.Config.Services.GoogleAnalytics.ID }}
+
+
+
+{{ end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/analytics/matomo.html b/website/themes/hextra/layouts/_partials/components/analytics/matomo.html
new file mode 100644
index 00000000..02b81b52
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/analytics/matomo.html
@@ -0,0 +1,31 @@
+{{- /*
+Matomo Analytics.
+https://developer.matomo.org/guides/tracking-javascript-guide
+*/ -}}
+
+{{- with .Site.Params.analytics.matomo -}}
+
+{{- if not .serverURL }}
+ {{- errorf "Missing Matomo 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}}
+{{- end -}}
+
+{{- if not .websiteID }}
+ {{- errorf "Missing Matomo 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#matomo-analytics" -}}
+{{- end -}}
+
+
+
+
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/analytics/umami.html b/website/themes/hextra/layouts/_partials/components/analytics/umami.html
new file mode 100644
index 00000000..df073bea
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/analytics/umami.html
@@ -0,0 +1,57 @@
+{{- /*
+Umami Analytics
+https://umami.is/docs/tracker-configuration
+*/ -}}
+
+{{- with .Site.Params.analytics.umami -}}
+
+{{- if not .serverURL }}
+ {{- errorf "Missing Umami 'serverURL' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}}
+{{- end -}}
+
+{{- if not .websiteID }}
+ {{- errorf "Missing Umami 'websiteID' configuration. See https://imfing.github.io/hextra/versions/latest/docs/guide/configuration/#umami-analytics" -}}
+{{- end -}}
+
+{{- $attributes := newScratch -}}
+
+{{- $attributes.SetInMap "umami" "src" (printf "%s/%s" .serverURL (.scriptName | default "script.js")) -}}
+{{- $attributes.SetInMap "umami" "data-website-id" .websiteID -}}
+
+{{- if .hostURL -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-host-url */ -}}
+ {{- $attributes.SetInMap "umami" "data-host-url" .hostURL -}}
+{{- end -}}
+
+{{- if .autoTrack -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-auto-track */ -}}
+ {{- $attributes.SetInMap "umami" "data-auto-track" .autoTrack -}}
+{{- end -}}
+
+{{- if .tag -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-tag */ -}}
+ {{- $attributes.SetInMap "umami" "data-tag" .tag -}}
+{{- end -}}
+
+{{- if .excludeSearch -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-exclude-search */ -}}
+ {{- $attributes.SetInMap "umami" "data-exclude-search" .excludeSearch -}}
+{{- end -}}
+
+{{- if .excludeHash -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-exclude-hash */ -}}
+ {{- $attributes.SetInMap "umami" "data-exclude-hash" .excludeHash -}}
+{{- end -}}
+
+{{- if .doNotTrack -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-do-not-track */ -}}
+ {{- $attributes.SetInMap "umami" "data-do-not-track" .doNotTrack -}}
+{{- end -}}
+
+{{- if .domains -}}
+ {{- /* https://umami.is/docs/tracker-configuration#data-domains */ -}}
+ {{- $attributes.SetInMap "umami" "data-domains" .domains -}}
+{{- end -}}
+
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/blog-pager.html b/website/themes/hextra/layouts/_partials/components/blog-pager.html
new file mode 100644
index 00000000..1b6b130c
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/blog-pager.html
@@ -0,0 +1,39 @@
+{{/*
+ Blog pagination component for list pages (e.g., blog list, category list)
+
+ Usage: {{ partial "components/blog-pager.html" $paginator }}
+
+ Parameters:
+ - . (context): Hugo paginator object
+*/}}
+
+{{- $paginator := . -}}
+{{- $prevText := (T "previous") | default "Prev" -}}
+{{- $nextText := (T "next") | default "Next" -}}
+{{- $prevLabel := printf "%s %d/%d" $prevText (sub $paginator.PageNumber 1) $paginator.TotalPages -}}
+{{- $nextLabel := printf "%s %d/%d" $nextText (add $paginator.PageNumber 1) $paginator.TotalPages -}}
+
+{{- if or $paginator.HasPrev $paginator.HasNext -}}
+
+{{- end -}}
\ No newline at end of file
diff --git a/website/themes/hextra/layouts/_partials/components/codeblock-copy-button.html b/website/themes/hextra/layouts/_partials/components/codeblock-copy-button.html
new file mode 100644
index 00000000..78d0f0de
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/codeblock-copy-button.html
@@ -0,0 +1,17 @@
+{{/* TODO: remove filename variable */}}
+{{- $filename := .filename | default "" -}}
+{{- $display := site.Params.highlight.copy.display | default "hover" -}}
+{{- $copyCode := (T "copyCode") | default "Copy code" -}}
+
+
+
diff --git a/website/themes/hextra/layouts/_partials/components/codeblock.html b/website/themes/hextra/layouts/_partials/components/codeblock.html
new file mode 100644
index 00000000..cdee81f1
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/codeblock.html
@@ -0,0 +1,29 @@
+{{ $filename := .filename | default "" -}}
+{{ $base_url := .base_url | default "" -}}
+{{ $lang := .lang | default "" }}
+{{ $content := .content }}
+{{ $options := .options | default (dict) }}
+
+{{- if $filename -}}
+
+{{- end -}}
+
+{{- if transform.CanHighlight $lang -}}
+ {{- highlight $content $lang $options -}}
+{{- else -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/comments.html b/website/themes/hextra/layouts/_partials/components/comments.html
new file mode 100644
index 00000000..ac893a1b
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/comments.html
@@ -0,0 +1,11 @@
+{{- $enableComments := site.Params.comments.enable | default false -}}
+
+{{ if not (eq .Params.comments nil) }}
+ {{ $enableComments = .Params.comments }}
+{{ end }}
+
+{{- if $enableComments -}}
+ {{- if eq site.Params.comments.type "giscus" -}}
+ {{ partial "components/giscus.html" . }}
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/giscus.html b/website/themes/hextra/layouts/_partials/components/giscus.html
new file mode 100644
index 00000000..973e50b6
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/giscus.html
@@ -0,0 +1,89 @@
+{{- $lang := site.Language.Lang | default `en` -}}
+{{- if hasPrefix $lang "zh" -}}
+ {{- /* See: https://github.com/giscus/giscus/tree/main/locales */}}
+ {{- $lang = partial "utils/hugo-compat/language-locale.html" site.Language | default `zh-CN` -}}
+{{- end -}}
+
+{{- with site.Params.comments.giscus -}}
+
+
+
+{{- else -}}
+ {{ warnf "giscus is not configured" }}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/github-style-alert.html b/website/themes/hextra/layouts/_partials/components/github-style-alert.html
new file mode 100644
index 00000000..f03b261a
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/github-style-alert.html
@@ -0,0 +1,53 @@
+{{- $content := .content -}}
+{{- $alertType := .alertType -}}
+{{- $alertTitle := .alertTitle -}}
+
+{{- $styles := newScratch -}}
+{{- $styles.Set "default" (dict
+ "icon" "light-bulb"
+ "style" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200"
+ )
+-}}
+{{- $styles.Set "note" (dict
+ "icon" "information-circle"
+ "style" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200"
+ )
+-}}
+{{- $styles.Set "tip" (dict
+ "icon" "light-bulb"
+ "style" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200"
+ )
+-}}
+{{- $styles.Set "important" (dict
+ "icon" "information-circle"
+ "style" "hx:border-purple-200 hx:bg-purple-100 hx:text-purple-900 hx:dark:border-purple-200/30 hx:dark:bg-purple-900/30 hx:dark:text-purple-200"
+ )
+-}}
+{{- $styles.Set "warning" (dict
+ "icon" "exclamation"
+ "style" "hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200"
+ )
+-}}
+{{- $styles.Set "caution" (dict
+ "icon" "exclamation-circle"
+ "style" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200"
+ )
+-}}
+
+{{- $style := or ($styles.Get $alertType) ($styles.Get "default") -}}
+{{- $title := or $alertTitle (or (i18n $alertType) (title $alertType)) -}}
+
+
+
+ {{- with $style.icon -}}
+ {{- partial "utils/icon.html" (dict "name" . "attributes" `height=16px class="hx:inline-block hx:align-middle hx:mr-2"`) -}}
+ {{- end -}}
+ {{- $title -}}
+
+
+
+
diff --git a/website/themes/hextra/layouts/_partials/components/last-updated.html b/website/themes/hextra/layouts/_partials/components/last-updated.html
new file mode 100644
index 00000000..f900c0b8
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/last-updated.html
@@ -0,0 +1,20 @@
+{{- $lastUpdated := (T "lastUpdated") | default "Last updated on" -}}
+{{- $page := . -}}
+
+{{- if site.Params.displayUpdatedDate -}}
+ {{- with .Lastmod -}}
+ {{ $datetime := (time.Format "2006-01-02T15:04:05.000Z" .) }}
+
+ {{ $lastUpdated }} {{ partial "utils/format-date" . }}
+ {{- if site.Params.displayUpdatedAuthor -}}
+ {{- with $page.GitInfo -}}
+ {{ print " • " .AuthorName | safeHTML }}
+ {{- end -}}
+ {{- end -}}
+
+ {{- else -}}
+
+ {{- end -}}
+{{- else -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/page-context-menu.html b/website/themes/hextra/layouts/_partials/components/page-context-menu.html
new file mode 100644
index 00000000..3893d0e7
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/page-context-menu.html
@@ -0,0 +1,90 @@
+{{- $enableGlobal := site.Params.page.contextMenu.enable | default false -}}
+{{- $enablePage := .Params.contextMenu -}}
+{{- $enable := cond (ne $enablePage nil) $enablePage $enableGlobal -}}
+{{- $customLinks := site.Params.page.contextMenu.links | default slice -}}
+
+{{- if $enable -}}
+ {{- with .OutputFormats.Get "markdown" -}}
+ {{- $markdownURL := .Permalink -}}
+ {{- $pageURL := $.Permalink -}}
+ {{- $pageTitle := $.Title -}}
+
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/components/pager.html b/website/themes/hextra/layouts/_partials/components/pager.html
new file mode 100644
index 00000000..1adc43a1
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/components/pager.html
@@ -0,0 +1,53 @@
+{{/* Article navigation on the footer of the article */}}
+
+{{- $reversePagination := .Store.Get "reversePagination" | default false -}}
+
+{{- $prev := cond $reversePagination .PrevInSection .NextInSection -}}
+{{- $next := cond $reversePagination .NextInSection .PrevInSection -}}
+
+{{- if eq .Params.prev false }}
+ {{- if $reversePagination }}{{ $next = false }}{{ else }}{{ $prev = false }}{{ end -}}
+{{ else }}
+ {{- with .Params.prev -}}
+ {{- with $.Site.GetPage . -}}
+ {{- if $reversePagination }}{{ $next = . }}{{ else }}{{ $prev = . }}{{ end -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+{{- if eq .Params.next false }}
+ {{- if $reversePagination }}{{ $prev = false }}{{ else }}{{ $next = false }}{{ end -}}
+{{ else }}
+ {{- with .Params.next -}}
+ {{- with $.Site.GetPage . -}}
+ {{- if $reversePagination }}{{ $prev = . }}{{ else }}{{ $next = . }}{{ end -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+{{- if or $prev $next -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/custom/banner.html b/website/themes/hextra/layouts/_partials/custom/banner.html
new file mode 100644
index 00000000..e69de29b
diff --git a/website/themes/hextra/layouts/_partials/custom/footer.html b/website/themes/hextra/layouts/_partials/custom/footer.html
new file mode 100644
index 00000000..e69de29b
diff --git a/website/themes/hextra/layouts/_partials/custom/head-end.html b/website/themes/hextra/layouts/_partials/custom/head-end.html
new file mode 100644
index 00000000..e69de29b
diff --git a/website/themes/hextra/layouts/_partials/custom/navbar-title.html b/website/themes/hextra/layouts/_partials/custom/navbar-title.html
new file mode 100644
index 00000000..e69de29b
diff --git a/website/themes/hextra/layouts/_partials/favicons.html b/website/themes/hextra/layouts/_partials/favicons.html
new file mode 100644
index 00000000..78442d49
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/favicons.html
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/website/themes/hextra/layouts/_partials/footer.html b/website/themes/hextra/layouts/_partials/footer.html
new file mode 100644
index 00000000..bba76b5f
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/footer.html
@@ -0,0 +1,44 @@
+{{- $enableFooterSwitches := .Store.Get "enableFooterSwitches" | default false -}}
+{{- $displayThemeToggle := site.Params.theme.displayToggle | default true -}}
+{{- $footerSwitchesVisible := and $enableFooterSwitches (or hugo.IsMultilingual $displayThemeToggle) -}}
+{{- $copyrightSectionVisible := or (.Site.Params.footer.displayPoweredBy | default true) .Site.Params.footer.displayCopyright -}}
+
+{{- $copyright := (T "copyright") | default "© 2024 Hextra." -}}
+{{- $poweredBy := (T "poweredBy") | default "Powered by Hextra" -}}
+
+
+
+
+{{- define "theme-credit" -}}
+
+
+ {{- . | markdownify -}}
+ {{- if strings.Contains . "Hextra" -}}
+ {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="hx:inline-block hx:ltr:ml-1 hx:rtl:mr-1 hx:align-[-2.5px]"`) -}}
+ {{- end -}}
+
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/google-analytics.html b/website/themes/hextra/layouts/_partials/google-analytics.html
new file mode 100644
index 00000000..16ab488b
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/google-analytics.html
@@ -0,0 +1,2 @@
+{{- /* Only for compatibility. */ -}}
+{{- partial "components/analytics/google-analytics.html" . -}}
diff --git a/website/themes/hextra/layouts/_partials/head.html b/website/themes/hextra/layouts/_partials/head.html
new file mode 100644
index 00000000..eb06bc59
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/head.html
@@ -0,0 +1,81 @@
+
+
+
+ {{- $noindex := .Params.noindex | default false -}}
+ {{ if and (hugo.IsProduction) (not $noindex) -}}
+
+ {{ else -}}
+
+ {{ end -}}
+ {{ partialCached "favicons.html" . -}}
+
+ {{- if .IsHome -}}
+ {{ .Site.Title -}}
+ {{ else -}}
+ {{ with .Title }}{{ . }} – {{ end -}}
+ {{ .Site.Title -}}
+ {{ end -}}
+
+
+
+ {{- with .Params.canonical -}}
+
+ {{- else -}}
+
+ {{- end -}}
+
+ {{- partial "opengraph.html" . -}}
+ {{- partial "schema.html" . -}}
+ {{- partial "twitter_cards.html" . -}}
+
+ {{- $mainCss := resources.Get "css/compiled/main.css" -}}
+ {{- $customCss := resources.Get "css/custom.css" -}}
+ {{- $variablesCss := resources.Get "css/variables.css" | resources.ExecuteAsTemplate "css/variables.css" . -}}
+
+ {{- /* Production build */ -}}
+ {{- if hugo.IsProduction }}
+ {{- $styles := slice $variablesCss $mainCss $customCss | resources.Concat "css/compiled/main.css" | minify | fingerprint }}
+
+
+
+ {{- /* Theme development mode (non-production + theme environment) */ -}}
+ {{- else if eq hugo.Environment "theme" }}
+ {{- $devStyles := resources.Get "css/styles.css" | postCSS (dict "inlineImports" true) }}
+
+
+
+
+ {{- /* User local development */ -}}
+ {{- else }}
+ {{- $styles := resources.Get "css/compiled/main.css" -}}
+
+
+
+ {{- end }}
+
+ {{ partial "components/analytics/analytics.html" . }}
+
+ {{- $scriptsHead := slice -}}
+ {{- range resources.Match "js/head/*.js" -}}
+ {{ $scriptsHead = $scriptsHead | append (resources.ExecuteAsTemplate .Name $ .) }}
+ {{- end -}}
+
+ {{- $scripts := $scriptsHead | resources.Concat "js/main-head.js" -}}
+
+ {{- if hugo.IsProduction -}}
+ {{- $scripts = $scripts | minify | fingerprint -}}
+ {{- end -}}
+
+
+
+ {{ $noop := .WordCount -}}
+ {{- $engine := site.Params.math.engine | default "katex" -}}
+ {{ if and (.Page.Store.Get "hasMath") (eq $engine "katex") -}}
+ {{ partialCached "scripts/katex.html" . -}}
+ {{ else if and (.Page.Store.Get "hasMath") (eq $engine "mathjax") -}}
+ {{ partialCached "scripts/mathjax.html" . -}}
+ {{ end -}}
+
+ {{ partial "utils/page-width-override.html" . }}
+ {{ partial "custom/head-end.html" . -}}
+
diff --git a/website/themes/hextra/layouts/_partials/language-switch.html b/website/themes/hextra/layouts/_partials/language-switch.html
new file mode 100644
index 00000000..4603615a
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/language-switch.html
@@ -0,0 +1,58 @@
+{{- $page := .context -}}
+{{- $iconName := .iconName | default "globe-alt" -}}
+{{- $iconHeight := .iconHeight | default 12 -}}
+{{- $location := .location -}}
+
+{{- $class := .class | default "hx:h-7 hx:px-2 hx:text-xs hx:text-gray-600 hx:transition-colors hx:dark:text-gray-400 hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50" -}}
+
+{{- $grow := .grow -}}
+{{- $hideLabel := .hideLabel | default false -}}
+
+{{- $changeLanguage := (T "changeLanguage") | default "Change language" -}}
+{{- $currentLanguageLang := site.Language.Lang -}}
+{{- $currentLanguageLabel := partial "utils/hugo-compat/language-label.html" site.Language -}}
+
+{{- if hugo.IsMultilingual -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/navbar-link.html b/website/themes/hextra/layouts/_partials/navbar-link.html
new file mode 100644
index 00000000..06334712
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/navbar-link.html
@@ -0,0 +1,88 @@
+{{- $currentPage := .currentPage -}}
+{{- $link := .link -}}
+{{- $item := .item -}}
+{{- $icon := .icon -}}
+{{- $external := .external -}}
+
+{{- $active := or ($currentPage.HasMenuCurrent "main" $item) ($currentPage.IsMenuCurrent "main" $item) -}}
+{{- /* Additional check for section landing pages in multilingual sites (normalize trailing slashes) */ -}}
+{{- if and (not $active) $link -}}
+ {{- $currentPath := strings.TrimSuffix "/" $currentPage.RelPermalink -}}
+ {{- $linkPath := strings.TrimSuffix "/" $link -}}
+ {{- if eq $currentPath $linkPath -}}
+ {{- $active = true -}}
+ {{- end -}}
+{{- end -}}
+{{- $activeClass := cond $active "hx:font-medium" "hx:text-gray-600 hx:hover:text-gray-800 hx:dark:text-gray-400 hx:dark:hover:text-gray-200" -}}
+
+{{- if $item.HasChildren -}}
+{{- /* Dropdown menu for items with children */ -}}
+
+
+
+ {{ range $item.Children }}
+ {{- $link := .URL -}}
+ {{- $external := strings.HasPrefix $link "http" -}}
+ {{- with .PageRef -}}
+ {{- if hasPrefix . "/" -}}
+ {{- $link = relLangURL (strings.TrimPrefix "/" .) -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- end -}}
+
+
+{{- else -}}
+{{- /* Regular menu item without children */ -}}
+
+ {{- if $icon -}}
+
+ {{- partial "utils/icon" (dict "name" $icon "attributes" `height="1em" class="hx:inline-block"`) -}}
+
+ {{- end -}}
+
+ {{- or (T $item.Identifier) $item.Name | safeHTML -}}
+
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/navbar-title.html b/website/themes/hextra/layouts/_partials/navbar-title.html
new file mode 100644
index 00000000..36a9b64f
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/navbar-title.html
@@ -0,0 +1,16 @@
+{{- $logoPath := .Site.Params.navbar.logo.path | default "images/logo.svg" -}}
+{{- $logoLink := .Site.Params.navbar.logo.link | default .Site.Home.RelPermalink -}}
+{{- $logoWidth := .Site.Params.navbar.logo.width | default "20" -}}
+{{- $logoHeight := .Site.Params.navbar.logo.height | default "20" -}}
+{{- $logoDarkPath := .Site.Params.navbar.logo.dark | default $logoPath -}}
+
+
+ {{- $displayTitle := (.Site.Params.navbar.displayTitle | default true) }}
+ {{- if (.Site.Params.navbar.displayLogo | default true) }}
+
+
+ {{- end }}
+ {{- if $displayTitle }}
+
+ {{- end }}
+
diff --git a/website/themes/hextra/layouts/_partials/navbar.html b/website/themes/hextra/layouts/_partials/navbar.html
new file mode 100644
index 00000000..57452307
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/navbar.html
@@ -0,0 +1,59 @@
+{{- $navWidth := "hx:max-w-[90rem]" -}}
+{{- with .Site.Params.navbar.width -}}
+ {{ if eq . "normal" -}}
+ {{ $navWidth = "hx:max-w-screen-xl" -}}
+ {{ else if eq . "full" -}}
+ {{ $navWidth = "max-w-full" -}}
+ {{ end -}}
+{{- end -}}
+
+{{- $page := . -}}
+{{- $iconHeight := 24 -}}
+
+
diff --git a/website/themes/hextra/layouts/_partials/opengraph.html b/website/themes/hextra/layouts/_partials/opengraph.html
new file mode 100644
index 00000000..91b9d3f5
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/opengraph.html
@@ -0,0 +1,96 @@
+{{/* Adapted from https://github.com/gohugoio/hugo/blob/v0.149.0/docs/layouts/_partials/opengraph/opengraph.html */}}
+
+
+
+
+
+
+{{- with $.Params.images -}}
+ {{- range first 6 . }}
+ {{- with $.Resources.GetMatch . }}
+
+
+ {{- else }}
+
+ {{- $image := . -}}
+ {{- if hasPrefix $image "/" -}}
+ {{- $image = relURL (strings.TrimPrefix "/" $image) -}}
+ {{- end -}}
+
+ {{- end }}
+ {{- end }}
+{{- else -}}
+ {{- with $.Site.Params.images }}
+ {{- $image := index . 0 -}}
+ {{- if hasPrefix $image "/" -}}
+ {{- $image = relURL (strings.TrimPrefix "/" $image) -}}
+ {{- end -}}
+
+ {{- end }}
+{{- end -}}
+
+
+{{- if .IsPage }}
+{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
+
+{{ with .PublishDate }}
+
+{{ end }}
+{{ with .Lastmod }}
+
+{{ end }}
+{{- end -}}
+
+{{- with .Params.audio }} {{ end }}
+{{- with .Params.locale }}
+
+{{ end }}
+{{- with .Site.Params.title }}
+
+{{ end }}
+{{- with .Params.videos }}
+{{- range . }}
+
+{{ end }}
+
+{{ end }}
+
+{{- /* If it is part of a series, link to related articles */}}
+{{- $permalink := .Permalink }}
+{{- $siteSeries := .Site.Taxonomies.series }}
+{{ with .Params.series }}
+{{- range $name := . }}
+{{- $series := index $siteSeries ($name | urlize) }}
+{{- range $page := first 6 $series.Pages }}
+{{- if ne $page.Permalink $permalink }}
+
+{{ end }}
+{{- end }}
+{{ end }}
+
+{{ end }}
+
+{{- /* Facebook Page Admin ID for Domain Insights */}}
+{{- with site.Params.social.facebook_admin }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/_partials/scripts.html b/website/themes/hextra/layouts/_partials/scripts.html
new file mode 100644
index 00000000..abf6cd47
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts.html
@@ -0,0 +1,20 @@
+{{/* Core scripts (theme, menu, tabs, etc.) */}}
+{{- partial "scripts/core.html" . -}}
+
+{{/* Search */}}
+{{- partial "scripts/search.html" . -}}
+
+{{/* Mermaid */}}
+{{- if (.Store.Get "hasMermaid") -}}
+ {{- partial "scripts/mermaid.html" . -}}
+{{- end -}}
+
+{{/* Asciinema */}}
+{{- if (.Store.Get "hasAsciinema") -}}
+ {{- partial "scripts/asciinema.html" . -}}
+{{- end -}}
+
+{{/* Medium Zoom */}}
+{{- if (.Store.Get "hasImageZoom") -}}
+ {{- partial "scripts/medium-zoom.html" . -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/scripts/asciinema.html b/website/themes/hextra/layouts/_partials/scripts/asciinema.html
new file mode 100644
index 00000000..6db5a8b9
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/asciinema.html
@@ -0,0 +1,140 @@
+{{- /* Asciinema */ -}}
+
+{{- $asciinemaBase := "" -}}
+{{- $useDefaultCdn := true -}}
+{{- with site.Params.asciinema.base -}}
+ {{- $asciinemaBase = . -}}
+ {{- $useDefaultCdn = false -}}
+{{- end -}}
+
+{{- $asciinemaJsAsset := "" -}}
+{{- with site.Params.asciinema.js -}}
+ {{- $asciinemaJsAsset = . -}}
+{{- end -}}
+
+{{- $asciinemaCssAsset := "" -}}
+{{- with site.Params.asciinema.css -}}
+ {{- $asciinemaCssAsset = . -}}
+{{- end -}}
+
+{{- /* If only js/css is set without base, use local asset loading */ -}}
+{{- if and $useDefaultCdn (or (ne $asciinemaJsAsset "") (ne $asciinemaCssAsset "")) -}}
+ {{- $useDefaultCdn = false -}}
+{{- end -}}
+
+{{- /* Set default CDN base if needed */ -}}
+{{- if $useDefaultCdn -}}
+ {{- $asciinemaBase = "https://cdn.jsdelivr.net/npm/asciinema-player@latest/dist/bundle" -}}
+{{- end -}}
+
+{{- $isRemoteBase := or (strings.HasPrefix $asciinemaBase "http://") (strings.HasPrefix $asciinemaBase "https://") -}}
+{{- $minSuffix := cond hugo.IsProduction ".min" "" -}}
+
+{{- /* CSS retrieval: get raw CSS from either local asset or remote, then process */ -}}
+{{- if $isRemoteBase -}}
+ {{- $cssPath := cond (ne $asciinemaCssAsset "") $asciinemaCssAsset "asciinema-player.css" -}}
+ {{- $asciinemaCssUrl := urls.JoinPath $asciinemaBase $cssPath -}}
+ {{- with try (resources.GetRemote $asciinemaCssUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve Asciinema css file from %s. Reason: %s." $asciinemaCssUrl . -}}
+ {{- else with .Value -}}
+ {{- with resources.Copy "css/asciinema-player.css" . -}}
+ {{- $asciinemaCss := . | fingerprint -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+{{- else if $asciinemaCssAsset -}}
+ {{- with resources.Get $asciinemaCssAsset -}}
+ {{- $asciinemaCss := . | fingerprint -}}
+
+ {{- else -}}
+ {{- errorf "Asciinema css asset not found at %q" $asciinemaCssAsset -}}
+ {{- end -}}
+{{- end -}}
+
+{{- /* JS retrieval: get raw JS from either local asset or remote, then process */ -}}
+{{- if $isRemoteBase -}}
+ {{- $jsPath := cond (ne $asciinemaJsAsset "") $asciinemaJsAsset (printf "asciinema-player%s.js" $minSuffix) -}}
+ {{- $asciinemaJsUrl := urls.JoinPath $asciinemaBase $jsPath -}}
+ {{- with try (resources.GetRemote $asciinemaJsUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve Asciinema js file from %s. Reason: %s." $asciinemaJsUrl . -}}
+ {{- else with .Value -}}
+ {{- with resources.Copy (printf "js/asciinema-player%s.js" $minSuffix) . -}}
+ {{- $asciinemaJs := . | fingerprint -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+{{- else if $asciinemaJsAsset -}}
+ {{- with resources.Get $asciinemaJsAsset -}}
+ {{- $asciinemaJs := . | fingerprint -}}
+
+ {{- else -}}
+ {{- errorf "Asciinema js asset not found at %q" $asciinemaJsAsset -}}
+ {{- end -}}
+{{- end -}}
+
+
diff --git a/website/themes/hextra/layouts/_partials/scripts/core.html b/website/themes/hextra/layouts/_partials/scripts/core.html
new file mode 100644
index 00000000..c93c674c
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/core.html
@@ -0,0 +1,10 @@
+{{- $scriptsBody := slice }}
+{{- range resources.Match "js/core/*.js" -}}
+ {{ $scriptsBody = $scriptsBody | append (resources.ExecuteAsTemplate .Name $ .) }}
+{{- end -}}
+
+{{- $scripts := $scriptsBody | resources.Concat "js/main.js" -}}
+{{- if hugo.IsProduction -}}
+ {{- $scripts = $scripts | minify | fingerprint -}}
+{{- end -}}
+
diff --git a/website/themes/hextra/layouts/_partials/scripts/katex.html b/website/themes/hextra/layouts/_partials/scripts/katex.html
new file mode 100644
index 00000000..add36c04
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/katex.html
@@ -0,0 +1,92 @@
+{{- /* KaTeX CSS loader
+
+ Behavior (driven by site.params.math.katex):
+ - base (remote URL) + optional css:
+ - Construct remote CSS URL: "{{ base }}/{{ css | default "katex[.min].css" }}".
+ - Fetch via resources.GetRemote, rewrite font URLs to "{{ base }}/fonts/...".
+ - Build and fingerprint; emit .
+ - base (local path or not set) + css (asset path):
+ - Read CSS from Hugo assets via resources.Get; DO NOT rewrite font URLs.
+ - Build and fingerprint; emit .
+ - base (local path) only (no css):
+ - Link directly to "{{ base }}/katex[.min].css" (no processing).
+ - Nothing set:
+ - Default to CDN latest base; same as remote path above.
+
+ Additional:
+ - assets: optional list to publish extra assets. CSS/JS get tags with integrity (JS loads async).
+*/ -}}
+{{- $noop := .WordCount -}}
+
+{{- $katexBase := "" -}}
+{{- with site.Params.math.katex.base -}}
+ {{- $katexBase = . -}}
+{{- else -}}
+ {{- if not site.Params.math.katex.css -}}
+ {{- $katexBase = "https://cdn.jsdelivr.net/npm/katex@latest/dist" -}}
+ {{- end -}}
+{{- end -}}
+
+{{- $katexCssAsset := "" -}}
+{{- with site.Params.math.katex.css -}}
+ {{- $katexCssAsset = . -}}
+{{- end -}}
+
+{{- $s := newScratch -}}
+{{- $isRemoteBase := or (strings.HasPrefix $katexBase "http://") (strings.HasPrefix $katexBase "https://") -}}
+
+{{- /* CSS retrieval consolidated: get raw CSS from either local asset or remote, then process once */ -}}
+{{- $minSuffix := cond hugo.IsProduction ".min" "" -}}
+{{- if $isRemoteBase -}}
+ {{- $cssPath := cond (ne $katexCssAsset "") $katexCssAsset (printf "katex%s.css" $minSuffix) -}}
+ {{- $katexCssUrl := urls.JoinPath $katexBase $cssPath -}}
+ {{- with try (resources.GetRemote $katexCssUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve KaTeX css file from %s. Reason: %s." $katexCssUrl . -}}
+ {{- else with .Value -}}
+ {{- $s.Set "katexCssValue" .Content -}}
+ {{- end -}}
+ {{- end -}}
+{{- else if $katexCssAsset -}}
+ {{- with resources.Get $katexCssAsset -}}
+ {{- $s.Set "katexCssValue" .Content -}}
+ {{- else -}}
+ {{- errorf "KaTeX css asset not found at %q" $katexCssAsset -}}
+ {{- end -}}
+{{- end -}}
+
+{{- with $s.Get "katexCssValue" -}}
+ {{- $cssContent := . -}}
+ {{- if $isRemoteBase -}}
+ {{- $fontPattern := "url(fonts/" -}}
+ {{- $fontSub := printf "url(%s/" (urls.JoinPath $katexBase "fonts") -}}
+ {{- $cssContent = strings.Replace $cssContent $fontPattern $fontSub -}}
+ {{- end -}}
+ {{- with resources.FromString (printf "css/katex%s.css" $minSuffix) $cssContent -}}
+ {{- $css := . | fingerprint "sha512" -}}
+
+ {{- end -}}
+{{- else -}}
+ {{- if not $isRemoteBase -}}
+ {{- $cssPath := cond (ne $katexCssAsset "") $katexCssAsset (printf "katex%s.css" $minSuffix) -}}
+
+ {{- end -}}
+{{- end -}}
+
+{{- /* Optionally publish files (fonts, css, js, etc.) from assets and emit tags for css/js with integrity and crossorigin */ -}}
+{{- with site.Params.math.katex.assets -}}
+ {{- range . -}}
+ {{- with resources.Get . -}}
+ {{- $name := .Name | lower -}}
+ {{- if strings.HasSuffix $name ".css" -}}
+ {{- $built := . | fingerprint "sha512" -}}
+
+ {{- else if or (strings.HasSuffix $name ".js") (strings.HasSuffix $name ".mjs") -}}
+ {{- $built := . | fingerprint "sha512" -}}
+
+ {{- else -}}
+ {{- .Publish -}}
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/scripts/mathjax.html b/website/themes/hextra/layouts/_partials/scripts/mathjax.html
new file mode 100644
index 00000000..a05b543f
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/mathjax.html
@@ -0,0 +1,20 @@
+{{/* MathJax */}}
+{{ $mathjaxJsUrl := "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" -}}
+
+
diff --git a/website/themes/hextra/layouts/_partials/scripts/medium-zoom.html b/website/themes/hextra/layouts/_partials/scripts/medium-zoom.html
new file mode 100644
index 00000000..c11925cb
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/medium-zoom.html
@@ -0,0 +1,85 @@
+{{- /* Medium Zoom */ -}}
+
+{{- $zoomBase := "" -}}
+{{- $useDefaultCdn := true -}}
+{{- with site.Params.imageZoom.base -}}
+ {{- $zoomBase = . -}}
+ {{- $useDefaultCdn = false -}}
+{{- end -}}
+
+{{- $zoomJsAsset := "" -}}
+{{- with site.Params.imageZoom.js -}}
+ {{- $zoomJsAsset = . -}}
+{{- end -}}
+
+{{- /* If only js is set without base, use local asset loading */ -}}
+{{- if and $useDefaultCdn (ne $zoomJsAsset "") -}}
+ {{- $useDefaultCdn = false -}}
+{{- end -}}
+
+{{- /* Set default CDN base if needed */ -}}
+{{- if $useDefaultCdn -}}
+ {{- $zoomBase = "https://cdn.jsdelivr.net/npm/medium-zoom@latest/dist" -}}
+{{- end -}}
+
+{{- $isRemoteBase := or (strings.HasPrefix $zoomBase "http://") (strings.HasPrefix $zoomBase "https://") -}}
+{{- $minSuffix := cond hugo.IsProduction ".min" "" -}}
+
+{{- /* JS retrieval: get raw JS from either local asset or remote, then process */ -}}
+{{- if $isRemoteBase -}}
+ {{- $jsPath := cond (ne $zoomJsAsset "") $zoomJsAsset (printf "medium-zoom%s.js" $minSuffix) -}}
+ {{- $zoomJsUrl := urls.JoinPath $zoomBase $jsPath -}}
+ {{- with try (resources.GetRemote $zoomJsUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve Medium Zoom js file from %s. Reason: %s." $zoomJsUrl . -}}
+ {{- else with .Value -}}
+ {{- with resources.Copy (printf "js/medium-zoom%s.js" $minSuffix) . -}}
+ {{- $zoomJs := . | fingerprint -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+{{- else if $zoomJsAsset -}}
+ {{- with resources.Get $zoomJsAsset -}}
+ {{- $zoomJs := . | fingerprint -}}
+
+ {{- else -}}
+ {{- errorf "Medium Zoom js asset not found at %q" $zoomJsAsset -}}
+ {{- end -}}
+{{- end -}}
+
+
diff --git a/website/themes/hextra/layouts/_partials/scripts/mermaid.html b/website/themes/hextra/layouts/_partials/scripts/mermaid.html
new file mode 100644
index 00000000..60bc2307
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/mermaid.html
@@ -0,0 +1,79 @@
+{{- /* Mermaid */ -}}
+
+{{- $mermaidBase := "" -}}
+{{- $useDefaultCdn := true -}}
+{{- with site.Params.mermaid.base -}}
+ {{- $mermaidBase = . -}}
+ {{- $useDefaultCdn = false -}}
+{{- end -}}
+
+{{- $mermaidJsAsset := "" -}}
+{{- with site.Params.mermaid.js -}}
+ {{- $mermaidJsAsset = . -}}
+{{- end -}}
+
+{{- /* If only js is set without base, use local asset loading */ -}}
+{{- if and $useDefaultCdn (ne $mermaidJsAsset "") -}}
+ {{- $useDefaultCdn = false -}}
+{{- end -}}
+
+{{- /* Set default CDN base if needed */ -}}
+{{- if $useDefaultCdn -}}
+ {{- $mermaidBase = "https://cdn.jsdelivr.net/npm/mermaid@latest/dist" -}}
+{{- end -}}
+
+{{- $isRemoteBase := or (strings.HasPrefix $mermaidBase "http://") (strings.HasPrefix $mermaidBase "https://") -}}
+{{- $minSuffix := cond hugo.IsProduction ".min" "" -}}
+
+{{- /* JS retrieval: get raw JS from either local asset or remote, then process */ -}}
+{{- if $isRemoteBase -}}
+ {{- $jsPath := cond (ne $mermaidJsAsset "") $mermaidJsAsset (printf "mermaid%s.js" $minSuffix) -}}
+ {{- $mermaidJsUrl := urls.JoinPath $mermaidBase $jsPath -}}
+ {{- with try (resources.GetRemote $mermaidJsUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve Mermaid js file from %s. Reason: %s." $mermaidJsUrl . -}}
+ {{- else with .Value -}}
+ {{- with resources.Copy (printf "js/mermaid%s.js" $minSuffix) . -}}
+ {{- $mermaidJs := . | fingerprint -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+{{- else if $mermaidJsAsset -}}
+ {{- with resources.Get $mermaidJsAsset -}}
+ {{- $mermaidJs := . | fingerprint -}}
+
+ {{- else -}}
+ {{- errorf "Mermaid js asset not found at %q" $mermaidJsAsset -}}
+ {{- end -}}
+{{- end -}}
+
+
diff --git a/website/themes/hextra/layouts/_partials/scripts/search.html b/website/themes/hextra/layouts/_partials/scripts/search.html
new file mode 100644
index 00000000..363b3bce
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/scripts/search.html
@@ -0,0 +1,63 @@
+{{/* Search */}}
+{{- if (site.Params.search.enable | default true) -}}
+ {{- $searchType := site.Params.search.type | default "flexsearch" -}}
+ {{- if eq $searchType "flexsearch" -}}
+ {{- $jsSearchScript := printf "%s.search.js" .Language.Lang -}}
+ {{- $jsSearch := resources.Get "js/flexsearch.js" | resources.ExecuteAsTemplate $jsSearchScript . -}}
+ {{- if hugo.IsProduction -}}
+ {{- $jsSearch = $jsSearch | minify | fingerprint -}}
+ {{- end -}}
+
+ {{- $flexSearchBase := "" -}}
+ {{- $useDefaultCdn := true -}}
+ {{- with site.Params.search.flexsearch.base -}}
+ {{- $flexSearchBase = . -}}
+ {{- $useDefaultCdn = false -}}
+ {{- end -}}
+
+ {{- $flexSearchJsAsset := "" -}}
+ {{- with site.Params.search.flexsearch.js -}}
+ {{- $flexSearchJsAsset = . -}}
+ {{- end -}}
+
+ {{- /* If only js is set without base, use local asset loading. */ -}}
+ {{- if and $useDefaultCdn (ne $flexSearchJsAsset "") -}}
+ {{- $useDefaultCdn = false -}}
+ {{- end -}}
+
+ {{- $bundleSuffix := cond hugo.IsProduction ".min" ".debug" -}}
+ {{- if $useDefaultCdn -}}
+ {{- $flexSearchVersion := site.Params.search.flexsearch.version | default "0.8.143" -}}
+ {{- $flexSearchBase = printf "https://cdn.jsdelivr.net/npm/flexsearch@%s/dist" $flexSearchVersion -}}
+ {{- end -}}
+
+ {{- $isRemoteBase := or (strings.HasPrefix $flexSearchBase "http://") (strings.HasPrefix $flexSearchBase "https://") -}}
+ {{- if $isRemoteBase -}}
+ {{- $jsPath := cond (ne $flexSearchJsAsset "") $flexSearchJsAsset (printf "flexsearch.bundle%s.js" $bundleSuffix) -}}
+ {{- $flexSearchJsUrl := urls.JoinPath $flexSearchBase $jsPath -}}
+ {{- with try (resources.GetRemote $flexSearchJsUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve FlexSearch js file from %s. Reason: %s." $flexSearchJsUrl . -}}
+ {{- else with .Value -}}
+ {{- with resources.Copy "js/flexsearch.js" . -}}
+ {{- $flexSearchJs := . | fingerprint -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+ {{- else if $flexSearchJsAsset -}}
+ {{- with resources.Get $flexSearchJsAsset -}}
+ {{- $flexSearchJs := . | fingerprint -}}
+
+ {{- else -}}
+ {{- errorf "FlexSearch js asset not found at %q" $flexSearchJsAsset -}}
+ {{- end -}}
+ {{- else if not $useDefaultCdn -}}
+ {{- errorf "FlexSearch local loading requires params.search.flexsearch.js when using non-remote base %q" $flexSearchBase -}}
+ {{- end -}}
+
+
+ {{- else -}}
+ {{- warnf `search type "%s" is not supported` $searchType -}}
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/search.html b/website/themes/hextra/layouts/_partials/search.html
new file mode 100644
index 00000000..9e372e87
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/search.html
@@ -0,0 +1,30 @@
+{{- $placeholder := (T "searchPlaceholder") | default "Search..." -}}
+
+
+
diff --git a/website/themes/hextra/layouts/_partials/shortcodes/badge.html b/website/themes/hextra/layouts/_partials/shortcodes/badge.html
new file mode 100644
index 00000000..035d91a2
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/shortcodes/badge.html
@@ -0,0 +1,38 @@
+{{- $content := .content -}}
+{{- $color := .color | default .type | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
+{{- $class := .class | default "" -}}
+{{- $border := .border | default false -}}
+{{- $icon := .icon | default "" -}}
+
+{{- /* Compatibility with previous names. */ -}}
+{{- $mapping := (dict
+ "default" "gray"
+ "tip" "green"
+ "info" "blue"
+ "warning" "yellow"
+ "error" "red"
+ "important" "purple"
+ )
+-}}
+{{- $color = index $mapping $color | default $color | default "gray" -}}
+
+{{- $styleClass := newScratch -}}
+{{- $styleClass.Set "gray" "hx:text-gray-600 hx:bg-gray-100 hx:dark:bg-neutral-800 hx:dark:text-neutral-200 hx:border-gray-200 hx:dark:border-neutral-700" -}}
+{{- $styleClass.Set "purple" "hx:border-purple-200 hx:bg-purple-100 hx:text-purple-900 hx:dark:border-purple-200/30 hx:dark:bg-purple-900/30 hx:dark:text-purple-200" -}}
+{{- $styleClass.Set "indigo" "hx:border-indigo-200 hx:bg-indigo-100 hx:text-indigo-900 hx:dark:border-indigo-200/30 hx:dark:bg-indigo-900/30 hx:dark:text-indigo-200" -}}
+{{- $styleClass.Set "blue" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200" -}}
+{{- $styleClass.Set "green" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200" -}}
+{{- $styleClass.Set "yellow" "hx:border-yellow-100 hx:bg-yellow-50 hx:text-yellow-900 hx:dark:border-yellow-200/30 hx:dark:bg-yellow-700/30 hx:dark:text-yellow-200" -}}
+{{- $styleClass.Set "orange" "hx:border-orange-100 hx:bg-orange-50 hx:text-orange-800 hx:dark:border-orange-400/30 hx:dark:bg-orange-400/20 hx:dark:text-orange-300" -}}
+{{- $styleClass.Set "amber" "hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200" -}}
+{{- $styleClass.Set "red" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200" -}}
+
+{{- $borderClass := cond (eq $border true) "hx:border" "" -}}
+{{- $badgeClass := or ($styleClass.Get $color) ($styleClass.Get "gray") -}}
+
+{{- /* Strip trailing newline. */ -}}
diff --git a/website/themes/hextra/layouts/_partials/shortcodes/callout.html b/website/themes/hextra/layouts/_partials/shortcodes/callout.html
new file mode 100644
index 00000000..176fdfe8
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/shortcodes/callout.html
@@ -0,0 +1,28 @@
+{{- $content := .content -}}
+{{- $emoji := .emoji -}}
+{{- $icon := .icon -}}
+
+{{- $defaultClass := "hx:border-orange-100 hx:bg-orange-50 hx:text-orange-800 hx:dark:border-orange-400/30 hx:dark:bg-orange-400/20 hx:dark:text-orange-300" -}}
+
+{{- $class := .class | default $defaultClass -}}
+
+
+
+
+ {{- with $emoji -}}
+
+ {{- . -}}
+
+ {{- else -}}
+ {{- with $icon -}}
+ {{ partial "utils/icon.html" (dict "name" . "attributes" `height=1.2em class="hx:inline-block hx:align-middle"`) -}}
+ {{- end -}}
+ {{- end -}}
+
+
+
+
diff --git a/website/themes/hextra/layouts/_partials/shortcodes/card.html b/website/themes/hextra/layouts/_partials/shortcodes/card.html
new file mode 100644
index 00000000..514d522c
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/shortcodes/card.html
@@ -0,0 +1,70 @@
+{{- $link := .link -}}
+{{- $title := .title -}}
+{{- $icon := .icon -}}
+{{- $subtitle := .subtitle -}}
+{{- $image := .image -}}
+{{- $alt := .alt | default $title -}}
+{{- $width := .width -}}
+{{- $height := .height -}}
+{{- $imageStyle := .imageStyle -}}
+{{- $tag := .tag -}}
+{{- $tagColor := .tagColor | default .tagType | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
+{{- $tagBorder := not (eq .tagBorder false) | default true }}
+{{- $tagIcon := .tagIcon -}}
+
+{{ $linkClass := "hx:hover:border-gray-300 hx:bg-transparent hx:shadow-xs hx:dark:border-neutral-800 hx:hover:bg-slate-50 hx:hover:shadow-md hx:dark:hover:border-neutral-700 hx:dark:hover:bg-neutral-900" }}
+{{- with $image -}}
+ {{ $linkClass = "hx:hover:border-gray-300 hx:bg-gray-100 hx:shadow-sm hx:dark:border-neutral-700 hx:dark:bg-neutral-800 hx:dark:text-gray-50 hx:hover:shadow-lg hx:dark:hover:border-neutral-500 hx:dark:hover:bg-neutral-700" }}
+{{- end -}}
+
+{{- $external := strings.HasPrefix $link "http" -}}
+{{- $href := cond (strings.HasPrefix $link "/") ($link | relURL) $link -}}
+
+
+
+ {{- with $image -}}
+
+ {{- end -}}
+
+ {{- $padding := "hx:p-4" -}}
+ {{- with $subtitle -}}
+ {{- $padding = "hx:pt-4 hx:px-4" -}}
+ {{- end -}}
+
+
+
+ {{- with $subtitle -}}
+
+ {{- end -}}
+
+
+ {{- if $tag }}
+ {{- partial "shortcodes/badge.html" (dict
+ "content" $tag
+ "color" $tagColor
+ "class" "hextra-card-tag"
+ "border" $tagBorder
+ "icon" $tagIcon
+ )
+ -}}
+ {{- end -}}
+
+{{- /* Strip trailing newline. */ -}}
diff --git a/website/themes/hextra/layouts/_partials/shortcodes/cards.html b/website/themes/hextra/layouts/_partials/shortcodes/cards.html
new file mode 100644
index 00000000..dfd808b5
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/shortcodes/cards.html
@@ -0,0 +1,6 @@
+{{- $cols := .cols | default 3 -}}
+{{- $content := .content -}}
+
+
diff --git a/website/themes/hextra/layouts/_partials/shortcodes/tabs.html b/website/themes/hextra/layouts/_partials/shortcodes/tabs.html
new file mode 100644
index 00000000..a4f31d81
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/shortcodes/tabs.html
@@ -0,0 +1,48 @@
+{{- $tabsID := .id }}
+
+{{- /*
+The `tabs` parameter is a list of dict with the following keys:
+ - `id`: (int) the ID of the tab (the Ordinal of the tab shortcode).
+ - `name`: (string) the name of the tab (the title).
+ - `icon`: (string) the icon of the tab.
+ - `content`: (string) the content of the tab.
+ - `selected`: (bool) whether the tab is selected.
+*/ -}}
+{{- $tabs := .tabs }}
+
+{{- if eq (len $tabs) 0 -}}
+ {{ errorf "tabs must have at least one tab" }}
+{{- end -}}
+
+{{- $enableSync := .enableSync }}
+
+{{- /* Create group data for syncing and select the first tab if none is selected. */ -}}
+{{- $selectedIndex := 0 -}}
+{{ $dataTabGroup := slice -}}
+
+{{- range $i, $item := $tabs -}}
+ {{- $dataTabGroup = $dataTabGroup | append ($item.name) -}}
+
+ {{- if $item.selected -}}
+ {{- $selectedIndex = $i -}}
+ {{- end -}}
+{{- end -}}
+
+{{- /* Generate a unique ID for each tab group. */ -}}
+{{- $globalID := printf "tabs-%02v" $tabsID -}}
+
+{{- /* Keep HTML on single lines to avoid `>` being parsed as blockquote when nested in steps (#876) */ -}}
+
+
+ {{- range $i, $item := $tabs -}}
+
+ {{- end -}}
+
diff --git a/website/themes/hextra/layouts/_partials/sidebar.html b/website/themes/hextra/layouts/_partials/sidebar.html
new file mode 100644
index 00000000..4dbba232
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/sidebar.html
@@ -0,0 +1,325 @@
+{{- $context := .context -}}
+
+{{- $disableSidebar := .disableSidebar | default false -}}
+{{- $displayPlaceholder := .displayPlaceholder | default false -}}
+
+{{- $navRoot := cond (eq site.Home.Type "docs") site.Home $context.FirstSection -}}
+{{- $pageURL := $context.RelPermalink -}}
+
+{{- if .context.Params.sidebar.hide -}}
+ {{- $disableSidebar = true -}}
+ {{- $displayPlaceholder = false -}}
+{{- end -}}
+
+{{- $sidebarClass := "hx:md:sticky" -}}
+{{- if $disableSidebar -}}
+ {{- if $displayPlaceholder -}}
+ {{- $sidebarClass = "hx:md:hidden hx:xl:block" -}}
+ {{- else -}}
+ {{- $sidebarClass = "hx:md:hidden" -}}
+ {{- end -}}
+{{- end -}}
+
+
+
+{{- define "sidebar-main" -}}
+ {{ template "sidebar-tree" (dict "context" .context "level" 0 "page" .page "pageURL" .pageURL "toc" (.toc | default false)) }}
+{{- end -}}
+
+{{- define "sidebar-tree" -}}
+ {{- if ge .level 4 -}}
+ {{- return -}}
+ {{- end -}}
+
+ {{- $context := .context -}}
+ {{- $page := .page }}
+ {{- $pageURL := .page.RelPermalink -}}
+ {{- $level := .level -}}
+ {{- $toc := .toc | default false -}}
+ {{- $useMainMenu := and (eq $level 0) $toc -}}
+ {{- $mainMenuEntries := slice -}}
+
+ {{- $items := where (union .context.RegularPages .context.Sections) "Params.sidebar.exclude" "!=" true -}}
+ {{- if $useMainMenu -}}
+ {{- range $menuItem := site.Menus.main -}}
+ {{- $menuType := $menuItem.Params.type | default "" -}}
+ {{- $isIconOnly := and $menuItem.Params.icon (ne $menuType "link") -}}
+ {{- /* Keep only navigation links in the mobile sidebar. */ -}}
+ {{- if or (eq $menuType "search") (eq $menuType "theme-toggle") (eq $menuType "language-switch") $isIconOnly -}}
+ {{- continue -}}
+ {{- end -}}
+
+ {{- $menuTitle := or (T $menuItem.Identifier) $menuItem.Name -}}
+ {{- /* Dropdown parents mirror navbar behavior: render a labeled group of child links. */ -}}
+ {{- if $menuItem.HasChildren -}}
+ {{- $childEntries := slice -}}
+ {{- range $childItem := $menuItem.Children -}}
+ {{- $childType := $childItem.Params.type | default "" -}}
+ {{- $childIsIconOnly := and $childItem.Params.icon (ne $childType "link") -}}
+ {{- if or (eq $childType "search") (eq $childType "theme-toggle") (eq $childType "language-switch") $childIsIconOnly -}}
+ {{- continue -}}
+ {{- end -}}
+
+ {{- $childTitle := or (T $childItem.Identifier) $childItem.Name -}}
+ {{- $childPage := $childItem.Page -}}
+ {{- with $childItem.PageRef -}}
+ {{- with $page.Site.GetPage . -}}
+ {{- $childPage = . -}}
+ {{- end -}}
+ {{- end -}}
+ {{- with $childPage -}}
+ {{- if ne .Params.sidebar.exclude true -}}
+ {{- $childEntries = $childEntries | append (dict "title" $childTitle "link" .RelPermalink) -}}
+ {{- end -}}
+ {{- continue -}}
+ {{- end -}}
+
+ {{- $childLink := $childItem.URL -}}
+ {{- with $childItem.PageRef -}}
+ {{- if hasPrefix . "/" -}}
+ {{- $childLink = relLangURL (strings.TrimPrefix "/" .) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- if $childLink -}}
+ {{- $childEntries = $childEntries | append (dict "title" $childTitle "link" $childLink) -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- if gt (len $childEntries) 0 -}}
+ {{- $mainMenuEntries = $mainMenuEntries | append (dict "type" "group" "title" $menuTitle "children" $childEntries) -}}
+ {{- end -}}
+ {{- continue -}}
+ {{- end -}}
+
+ {{- /* Normalize page-backed entries so we keep nested tree behavior. */ -}}
+ {{- $menuPage := $menuItem.Page -}}
+ {{- with $menuItem.PageRef -}}
+ {{- with $page.Site.GetPage . -}}
+ {{- $menuPage = . -}}
+ {{- end -}}
+ {{- end -}}
+ {{- with $menuPage -}}
+ {{- if ne .Params.sidebar.exclude true -}}
+ {{- $mainMenuEntries = $mainMenuEntries | append (dict "type" "page" "item" . "title" $menuTitle) -}}
+ {{- end -}}
+ {{- continue -}}
+ {{- end -}}
+
+ {{- $link := $menuItem.URL -}}
+ {{- with $menuItem.PageRef -}}
+ {{- if hasPrefix . "/" -}}
+ {{- $link = relLangURL (strings.TrimPrefix "/" .) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- if $link -}}
+ {{- $mainMenuEntries = $mainMenuEntries | append (dict "type" "url" "link" $link "title" $menuTitle) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- $useMainMenuEntries := and $useMainMenu (gt (len $mainMenuEntries) 0) -}}
+ {{- $hasItems := or (gt (len $items) 0) $useMainMenuEntries -}}
+
+ {{- if $hasItems -}}
+ {{- if eq $level 0 -}}
+ {{- if $useMainMenuEntries -}}
+ {{- /* Mixed list: page entries render trees; url entries render leaf links. */ -}}
+ {{- range $entry := $mainMenuEntries -}}
+ {{- if eq (index $entry "type") "page" -}}
+ {{- $item := index $entry "item" -}}
+ {{- if $item.Params.sidebar.separator -}}
+
+ {{ index $entry "title" }}
+
+ {{- else -}}
+ {{- $active := eq (strings.TrimSuffix "/" $pageURL) (strings.TrimSuffix "/" $item.RelPermalink) -}}
+ {{- $shouldOpen := or ($item.Params.sidebar.open) ($item.IsAncestor $page) $active | default true }}
+
+ {{- template "sidebar-item-link" dict "context" $item "active" $active "open" $shouldOpen "title" (index $entry "title") "link" $item.RelPermalink -}}
+ {{- if and $toc $active (ne $item.Params.toc false) -}}
+ {{- template "sidebar-toc" dict "page" $item -}}
+ {{- end -}}
+ {{- template "sidebar-tree" dict "context" $item "page" $page "pageURL" $pageURL "level" (add $level 1) "toc" $toc -}}
+
+ {{- end -}}
+ {{- else if eq (index $entry "type") "group" -}}
+
+
+
+
+ {{- else -}}
+ {{- $link := index $entry "link" -}}
+ {{- $active := eq (strings.TrimSuffix "/" $pageURL) (strings.TrimSuffix "/" $link) -}}
+ {{ template "sidebar-item-link" dict "active" $active "open" false "title" (index $entry "title") "link" $link }}
+ {{- end -}}
+ {{- end -}}
+ {{- else -}}
+ {{- range $items.ByWeight }}
+ {{- if .Params.sidebar.separator -}}
+
+ {{ partial "utils/title" . }}
+
+ {{- else -}}
+ {{- $active := eq $pageURL .RelPermalink -}}
+ {{- $shouldOpen := or (.Params.sidebar.open) (.IsAncestor $page) $active | default true }}
+
+ {{- $linkTitle := partial "utils/title" . -}}
+ {{- template "sidebar-item-link" dict "context" . "active" $active "open" $shouldOpen "title" $linkTitle "link" .RelPermalink -}}
+ {{- if and $toc $active (ne .Params.toc false) -}}
+ {{- template "sidebar-toc" dict "page" . -}}
+ {{- end -}}
+ {{- template "sidebar-tree" dict "context" . "page" $page "pageURL" $pageURL "level" (add $level 1) "toc" $toc -}}
+
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+ {{- else -}}
+
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+{{- define "sidebar-toc" -}}
+ {{ $page := .page }}
+ {{ with $page.Fragments.Headings }}
+
+ {{- range . }}
+ {{- with .Headings }}
+ {{- range . -}}
+
+
+ {{- .Title | safeHTML | plainify | htmlUnescape -}}
+
+
+ {{ end -}}
+ {{ end -}}
+ {{ end -}}
+
+ {{ end }}
+{{- end -}}
+
+{{- define "sidebar-footer" -}}
+ {{- range site.Menus.sidebar -}}
+ {{- $name := or (T .Identifier) .Name -}}
+ {{ if eq .Params.type "separator" }}
+
+ {{ $name }}
+
+ {{ else }}
+ {{- $link := .URL -}}
+ {{- with .PageRef -}}
+ {{- if hasPrefix . "/" -}}
+ {{- $link = relLangURL (strings.TrimPrefix "/" .) -}}
+ {{- end -}}
+ {{- end -}}
+ {{ template "sidebar-item-link" dict "active" false "open" false "title" $name "link" $link }}
+ {{ end }}
+ {{- end -}}
+{{- end -}}
+
+{{- define "sidebar-item-link" -}}
+ {{- $external := strings.HasPrefix .link "http" -}}
+ {{- $open := .open | default true -}}
+ {{- $hasChildren := false -}}
+ {{- $linkClass := "hx:flex hx:items-center hx:justify-between hx:gap-2 hx:grow hx:cursor-pointer hx:rounded-sm hx:px-2 hx:py-1.5 hx:text-sm hx:transition-colors [-webkit-tap-highlight-color:transparent] [-webkit-touch-callout:none] hx:hextra-focus-visible-inset" -}}
+ {{- with .context }}{{ if or .RegularPages .Sections }}{{ $hasChildren = true }}{{ end }}{{ end -}}
+ {{- if $hasChildren -}}
+ {{- $linkClass = printf "%s hx:ltr:pr-8 hx:rtl:pl-8" $linkClass -}}
+ {{- end -}}
+ {{- if .active -}}
+ {{- $linkClass = printf "%s hextra-sidebar-active-item hx:bg-primary-100 hx:font-semibold hx:text-primary-800 hx:contrast-more:border hx:contrast-more:border-primary-500 hx:dark:bg-primary-400/10 hx:dark:text-primary-600 hx:contrast-more:dark:border-primary-500" $linkClass -}}
+ {{- else -}}
+ {{- $linkClass = printf "%s hx:text-gray-500 hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:contrast-more:border hx:contrast-more:border-transparent hx:contrast-more:text-gray-900 hx:contrast-more:hover:border-gray-900 hx:dark:text-neutral-400 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50 hx:contrast-more:dark:text-gray-50 hx:contrast-more:dark:hover:border-gray-50" $linkClass -}}
+ {{- end -}}
+
+{{- end -}}
+
+{{- define "sidebar-collapsible-button" -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/tags.html b/website/themes/hextra/layouts/_partials/tags.html
new file mode 100644
index 00000000..446fb9d4
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/tags.html
@@ -0,0 +1,7 @@
+{{- $context := .context -}}
+
+{{- range $tag := $context.Params.tags -}}
+ {{- with $context.Site.GetPage (printf "/tags/%s" $tag) -}}
+ #{{ $tag }}
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/theme-toggle.html b/website/themes/hextra/layouts/_partials/theme-toggle.html
new file mode 100644
index 00000000..e7b72ea1
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/theme-toggle.html
@@ -0,0 +1,83 @@
+{{- $hideLabel := .hideLabel -}}
+{{- $iconHeight := .iconHeight | default 12 -}}
+{{- $class := .class | default "hx:h-7 hx:px-2 hx:text-xs hx:hover:bg-gray-100 hx:hover:text-gray-900 hx:dark:hover:bg-primary-100/5 hx:dark:hover:text-gray-50 hx:font-medium hx:text-gray-600 hx:transition-colors hx:dark:text-gray-400" -}}
+{{- $location := .location | default "bottom" -}}
+
+{{- $changeTheme := (T "changeTheme") | default "Change theme" -}}
+{{- $light := (T "light") | default "Light" -}}
+{{- $dark := (T "dark") | default "Dark" -}}
+{{- $system := (T "system") | default "System" -}}
+
+
+
+
+
+
+ {{ $light }}
+
+ {{- partial "utils/icon" (dict "name" "check" "attributes" "height=1em width=1em") -}}
+
+
+
+
+
+ {{ $dark }}
+
+ {{- partial "utils/icon" (dict "name" "check" "attributes" "height=1em width=1em") -}}
+
+
+
+
+
+ {{ $system }}
+
+ {{- partial "utils/icon" (dict "name" "check" "attributes" "height=1em width=1em") -}}
+
+
+
+
+
diff --git a/website/themes/hextra/layouts/_partials/toc.html b/website/themes/hextra/layouts/_partials/toc.html
new file mode 100644
index 00000000..8084b45a
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/toc.html
@@ -0,0 +1,91 @@
+{{/* Table of Contents */}}
+{{/* TODO: toc bottom part should be able to hide */}}
+{{- $toc := .Params.toc | default true -}}
+{{- $onThisPage := (T "onThisPage") | default "On this page"}}
+{{- $tags := (T "tags") | default "Tags"}}
+{{- $editThisPage := (T "editThisPage") | default "Edit this page"}}
+{{- $backToTop := (T "backToTop") | default "Scroll to top" -}}
+
+
+
+{{/* TOC subheadings component. This is a recursive component that renders a list of headings. */}}
+{{- define "toc-subheading" -}}
+ {{- $headings := .headings -}}
+ {{- $level := .level -}}
+ {{- if ge $level 6 -}}
+ {{ return }}
+ {{- end -}}
+
+ {{- $padding := (mul $level 4) -}}
+ {{- $class := cond (eq $level 0) "hx:font-medium" (printf "hx:ltr:pl-%d hx:rtl:pr-%d" $padding $padding) -}}
+
+ {{- range $headings }}
+ {{- if .Title }}
+
+
+
+ {{- end -}}
+ {{- with .Headings -}}
+ {{ template "toc-subheading" (dict "headings" . "level" (add $level 1)) }}
+ {{- end -}}
+
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/extract-headings.html b/website/themes/hextra/layouts/_partials/utils/extract-headings.html
new file mode 100644
index 00000000..976d76e9
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/extract-headings.html
@@ -0,0 +1,31 @@
+{{- /*
+Extracts all headings from a page and adds them to the scratchpad.
+
+The keys can be obtained from the scratchpad by using the "keys" key.
+The titles can be obtained from the scratchpad by using the "titles" key.
+
+The scratchpad must be initialized with empty slices before calling this function for the keys "keys" and "titles"
+
+@param {any} target The element to extract headings from.
+@param {any} scratch The scratchpad to add the keys and titles to.
+
+@example {{ partial "utils/extract-headings.html" (dict "target" $h1 "scratch" $s) }}
+*/ -}}
+
+{{- range $heading := index .target.Headings -}}
+ {{- if and (eq $heading.Level 0) (not $heading.Title) -}}
+ {{- $.scratch.Add "keys" (slice $heading.Title) -}}
+ {{- else -}}
+ {{- $key := (printf "%s#%s" $heading.ID $heading.Title) -}}
+ {{- $.scratch.Add "keys" (slice $key) -}}
+ {{- end -}}
+
+ {{- $title := (printf "%s" $heading.Level $heading.Title) | htmlUnescape -}}
+ {{- $.scratch.Add "titles" (slice $title) -}}
+
+ {{- partial "utils/extract-headings.html" (dict
+ "target" $heading
+ "scratch" $.scratch
+ )
+ }}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/file-path.html b/website/themes/hextra/layouts/_partials/utils/file-path.html
new file mode 100644
index 00000000..17945517
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/file-path.html
@@ -0,0 +1,21 @@
+{{/* This utility is used to get the file path from absolute, relative path or URL. */}}
+
+{{- $path := .path -}}
+{{- $page := .page -}}
+
+{{- $isLocal := not (urls.Parse $path).Scheme -}}
+{{- $isPage := and (eq $page.Kind "page") (not $page.BundleType) -}}
+{{- $startsWithSlash := hasPrefix $path "/" -}}
+{{- $startsWithRelative := hasPrefix $path "../" -}}
+
+{{- if and $path $isLocal -}}
+ {{- if $startsWithSlash -}}
+ {{/* File under static directory */}}
+ {{- $path = (relURL (strings.TrimPrefix "/" $path)) -}}
+ {{- else if and $isPage (not $startsWithRelative) -}}
+ {{/* File is a sibling to the individual page file */}}
+ {{ $path = (printf "../%s" $path) }}
+ {{- end -}}
+{{- end -}}
+
+{{- return $path -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/format-date.html b/website/themes/hextra/layouts/_partials/utils/format-date.html
new file mode 100644
index 00000000..94cbdc4e
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/format-date.html
@@ -0,0 +1,3 @@
+{{- with . -}}
+ {{- . | time.Format (site.Params.dateFormat | default ":date_long") -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/fragments.html b/website/themes/hextra/layouts/_partials/utils/fragments.html
new file mode 100644
index 00000000..511a4dd0
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/fragments.html
@@ -0,0 +1,93 @@
+{{- /*
+ fragments.html - Split page content into searchable fragments
+
+ This partial processes a Hugo page and splits its content into fragments based on headings,
+ creating a data structure suitable for search indexing. It supports different fragment types
+ and handles hierarchical heading structures (h1, h2).
+
+ Parameters:
+ - .context (Page): The Hugo page to process
+ - .type (string): Fragment type - "content" (default), "heading", "title", or "summary"
+
+ Returns:
+ - dict: Map of heading keys to content fragments
+
+ Example:
+ Input page with content:
+ # Introduction
+ This is the intro text.
+ ## Setup
+ Setup instructions here.
+ # Configuration
+ Config details here.
+
+ Output (type "content"):
+ {
+ "": "This is the intro text.",
+ "intro#Introduction": "This is the intro text. Setup instructions here.",
+ "setup#Setup": "Setup instructions here.",
+ "config#Configuration": "Config details here."
+ }
+
+ Fragment types:
+ - "content": Splits page content by headings (default)
+ - "heading": Returns heading keys with empty content
+ - "title": Returns empty content (title handled elsewhere)
+ - "summary": Returns page summary only
+*/ -}}
+
+{{- /* Extract page context and fragment type */ -}}
+{{- $page := .context -}}
+{{- $type := .type | default "content" -}}
+
+{{- /* Process all headings */ -}}
+{{- $s := newScratch -}}
+{{- $s.Set "keys" slice -}}
+{{- $s.Set "titles" slice -}}
+
+{{- partial "utils/extract-headings.html" (dict "target" $page.Fragments "scratch" $s) -}}
+
+{{- $headingKeys := $s.Get "keys" -}}
+{{- $headingTitles := $s.Get "titles" -}}
+
+{{- $content := $page.Content | htmlUnescape -}}
+{{- $len := len $headingKeys -}}
+{{- $data := dict -}}
+
+{{ if eq $type "content" }}
+ {{/* Include full content of the page */}}
+ {{ if eq $len 0 }}
+ {{ $data = $data | merge (dict "" ($page.Plain | htmlUnescape | strings.TrimSpace)) }}
+ {{ else }}
+ {{/* Split the raw content from bottom to top */}}
+ {{ range seq $len }}
+ {{ $i := sub $len . }}
+ {{ $headingKey := index $headingKeys $i }}
+ {{ $headingTitle := index $headingTitles $i }}
+
+ {{ if eq $i 0 }}
+ {{ $data = $data | merge (dict $headingKey ($content | plainify | htmlUnescape | strings.TrimSpace)) }}
+ {{ else }}
+ {{ $parts := split $content (printf "%s" $headingTitle) }}
+ {{ $lastPart := index $parts (sub (len $parts) 1) }}
+
+ {{ $data = $data | merge (dict $headingKey ($lastPart | plainify | htmlUnescape | strings.TrimSpace)) }}
+ {{ $content = strings.TrimSuffix $lastPart $content }}
+ {{ $content = strings.TrimSuffix (printf "%s" $headingTitle) $content }}
+ {{ end }}
+ {{ end }}
+ {{ end }}
+{{ else if (eq $type "heading" ) }}
+ {{/* Put heading keys with empty content to the data object */}}
+ {{ $data = dict "" "" }}
+ {{ range $headingKeys }}
+ {{ $data = $data | merge (dict . "") }}
+ {{ end }}
+{{ else if (eq $type "title") }}
+ {{/* Use empty data object since title is included in search-data.json */}}
+ {{ $data = $data | merge (dict "" "") }}
+{{ else if (eq $type "summary" ) }}
+ {{ $data = $data | merge (dict "" ($page.Summary | plainify | htmlUnescape | strings.TrimSpace)) }}
+{{ end }}
+
+{{ return $data }}
diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-direction.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-direction.html
new file mode 100644
index 00000000..24a65c2d
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-direction.html
@@ -0,0 +1,15 @@
+{{/*
+Returns the language direction using the supported Hugo API for the running version.
+
+Hugo v0.158.0 deprecated Language.LanguageDirection in favor of Language.Direction.
+Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0.
+*/}}
+{{- $language := . -}}
+{{- $direction := "" -}}
+{{- if ge (hugo.Version) "0.158.0" -}}
+ {{- $direction = $language.Direction -}}
+{{- else -}}
+ {{- $direction = $language.LanguageDirection -}}
+{{- end -}}
+
+{{- return $direction -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-label.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-label.html
new file mode 100644
index 00000000..b6a58bbf
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-label.html
@@ -0,0 +1,15 @@
+{{/*
+Returns the language label using the supported Hugo API for the running version.
+
+Hugo v0.158.0 deprecated Language.LanguageName in favor of Language.Label.
+Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0.
+*/}}
+{{- $language := . -}}
+{{- $label := "" -}}
+{{- if ge (hugo.Version) "0.158.0" -}}
+ {{- $label = $language.Label -}}
+{{- else -}}
+ {{- $label = $language.LanguageName -}}
+{{- end -}}
+
+{{- return $label -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-locale.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-locale.html
new file mode 100644
index 00000000..1600218b
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/hugo-compat/language-locale.html
@@ -0,0 +1,15 @@
+{{/*
+Returns the language locale using the supported Hugo API for the running version.
+
+Hugo v0.158.0 deprecated Language.LanguageCode in favor of Language.Locale.
+Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0.
+*/}}
+{{- $language := . -}}
+{{- $locale := "" -}}
+{{- if ge (hugo.Version) "0.158.0" -}}
+ {{- $locale = $language.Locale -}}
+{{- else -}}
+ {{- $locale = $language.LanguageCode -}}
+{{- end -}}
+
+{{- return $locale -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/site-data.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/site-data.html
new file mode 100644
index 00000000..7ba05116
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/hugo-compat/site-data.html
@@ -0,0 +1,14 @@
+{{/*
+Returns site data using the supported Hugo API for the running version.
+
+Hugo v0.156.0 deprecated site.Data / .Site.Data in favor of hugo.Data.
+Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0.
+*/}}
+{{- $siteData := dict -}}
+{{- if ge (hugo.Version) "0.156.0" -}}
+ {{- $siteData = hugo.Data -}}
+{{- else -}}
+ {{- $siteData = site.Data -}}
+{{- end -}}
+
+{{- return $siteData -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/hugo-compat/sites.html b/website/themes/hextra/layouts/_partials/utils/hugo-compat/sites.html
new file mode 100644
index 00000000..3f91c7be
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/hugo-compat/sites.html
@@ -0,0 +1,14 @@
+{{/*
+Returns all sites using the supported Hugo API for the running version.
+
+Hugo v0.156.0 deprecated site.Sites / page.Sites in favor of hugo.Sites.
+Keep the fallback so Hextra can continue supporting Hugo >= 0.146.0.
+*/}}
+{{- $sites := slice -}}
+{{- if ge (hugo.Version) "0.156.0" -}}
+ {{- $sites = hugo.Sites -}}
+{{- else -}}
+ {{- $sites = site.Sites -}}
+{{- end -}}
+
+{{- return $sites -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/icon.html b/website/themes/hextra/layouts/_partials/utils/icon.html
new file mode 100644
index 00000000..fc31d38f
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/icon.html
@@ -0,0 +1,79 @@
+{{/* Render raw svg icon from site data */}}
+{{- $siteData := partial "utils/hugo-compat/site-data.html" . -}}
+{{- $name := .name -}}
+{{- $icon := index $siteData.icons $name -}}
+{{- $isRemoteIcon := false -}}
+
+{{- if not $icon -}}
+ {{- $remoteProvider := "" -}}
+ {{- $remoteName := "" -}}
+ {{- if strings.Contains $name ":" -}}
+ {{- $parts := split $name ":" -}}
+ {{- if eq (len $parts) 2 -}}
+ {{- $remoteProvider = index $parts 0 -}}
+ {{- $remoteName = index $parts 1 -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- if and $remoteProvider $remoteName -}}
+ {{- $remoteEnabled := true -}}
+ {{- $remoteProviders := dict
+ "lucide" (dict "url" "https://unpkg.com/lucide-static@1/icons/%s.svg")
+ "tabler" (dict "url" "https://unpkg.com/@tabler/icons@3/icons/outline/%s.svg")
+ "simple" (dict "url" "https://cdn.jsdelivr.net/npm/simple-icons@16/icons/%s.svg")
+ -}}
+ {{- with site.Params.icons.remote -}}
+ {{- if isset . "enable" -}}
+ {{- $remoteEnabled = .enable -}}
+ {{- end -}}
+ {{- with .providers -}}
+ {{- $remoteProviders = merge $remoteProviders . -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- if $remoteEnabled -}}
+ {{- if not (findRE "^[A-Za-z0-9_-]+$" $remoteProvider) -}}
+ {{- errorf "invalid remote icon provider %q" $remoteProvider -}}
+ {{- end -}}
+ {{- if or (in $remoteName "..") (not (findRE "^[A-Za-z0-9._/-]+$" $remoteName)) -}}
+ {{- errorf "invalid remote icon name %q" $remoteName -}}
+ {{- end -}}
+
+ {{- with index $remoteProviders $remoteProvider -}}
+ {{- $remoteUrl := printf .url $remoteName -}}
+ {{- with try (resources.GetRemote $remoteUrl) -}}
+ {{- with .Err -}}
+ {{- errorf "Could not retrieve remote icon %q from %s. Reason: %s." $name $remoteUrl . -}}
+ {{- else with .Value -}}
+ {{- $icon = .Content -}}
+ {{- $isRemoteIcon = true -}}
+ {{- if and (not (strings.Contains $icon "fill=")) (not (strings.Contains $icon "stroke=")) -}}
+ {{- $icon = replaceRE "]*?)\sclass=("[^"]*"|'[^']*'|[^\s>]+)` `$1` $icon -}}
+{{- end -}}
+
+{{- if .attributes -}}
+ {{- $attributes := .attributes -}}
+ {{- if $isRemoteIcon -}}
+ {{- $icon = replaceRE `(]*?)\swidth=("[^"]*"|'[^']*'|[^\s>]+)` `$1` $icon -}}
+ {{- $icon = replaceRE `(]*?)\sheight=("[^"]*"|'[^']*'|[^\s>]+)` `$1` $icon -}}
+ {{- end -}}
+ {{- $icon = replaceRE "
+:root {
+ --hextra-max-page-width: {{ $maxPageWidth }};
+}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/sort-pages.html b/website/themes/hextra/layouts/_partials/utils/sort-pages.html
new file mode 100644
index 00000000..4b8ee037
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/sort-pages.html
@@ -0,0 +1,32 @@
+{{- $page := .page -}}
+{{- $by := .by | default "weight" -}}
+{{- $order := .order | default "asc" -}}
+
+{{- $pages := slice }}
+
+{{- if eq $by "weight" }}
+ {{- $pages = $page.Pages.ByWeight }}
+{{- else if eq $by "date" }}
+ {{- $pages = $page.Pages.ByDate }}
+{{- else if eq $by "title" }}
+ {{- $pages = $page.Pages.ByTitle }}
+{{- else if eq $by "expiryDate" }}
+ {{- $pages = $page.Pages.ByExpiryDate }}
+{{- else if eq $by "publishDate" }}
+ {{- $pages = $page.Pages.ByPublishDate }}
+{{- else if eq $by "lastmod" }}
+ {{- $pages = $page.Pages.ByLastmod }}
+{{- else if eq $by "linkTitle" }}
+ {{- $pages = $page.Pages.ByLinkTitle }}
+{{- else if eq $by "length" }}
+ {{- $pages = $page.Pages.ByLength }}
+{{- else }}
+ {{- warnf "sort-pages: unknown sort field %q" $by -}}
+ {{- $pages = $page.Pages }}
+{{ end -}}
+
+{{- if eq $order "desc" }}
+ {{- $pages = $pages.Reverse }}
+{{- end -}}
+
+{{- return $pages -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/template-url.html b/website/themes/hextra/layouts/_partials/utils/template-url.html
new file mode 100644
index 00000000..9de73fde
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/template-url.html
@@ -0,0 +1,18 @@
+{{/*
+ This utility replaces placeholders in a URL template string.
+
+ Usage:
+ {{ partial "utils/template-url.html" (dict "template" .url "values" (dict "url" $pageURL "title" $pageTitle "markdown_url" $markdownURL)) }}
+
+ Placeholders use the format {key} and values are URL-encoded automatically.
+*/}}
+{{- $template := .template -}}
+{{- $values := .values | default dict -}}
+
+{{- range $key, $value := $values -}}
+ {{- $placeholder := printf "{%s}" $key -}}
+ {{- $encoded := $value | urlquery -}}
+ {{- $template = replace $template $placeholder $encoded -}}
+{{- end -}}
+
+{{- return $template -}}
diff --git a/website/themes/hextra/layouts/_partials/utils/title.html b/website/themes/hextra/layouts/_partials/utils/title.html
new file mode 100644
index 00000000..0ab0afae
--- /dev/null
+++ b/website/themes/hextra/layouts/_partials/utils/title.html
@@ -0,0 +1,19 @@
+{{/*
+ This utility is used to retrieve the title of a page or section.
+ If no title is set, it falls back to using the directory or file name.
+
+ Based on https://github.com/thegeeklab/hugo-geekdoc/blob/v0.44.0/layouts/partials/utils/title.html
+*/}}
+{{- $title := "" }}
+
+{{ if .LinkTitle }}
+ {{ $title = .LinkTitle }}
+{{ else if .Title }}
+ {{ $title = .Title }}
+{{ else if and .IsSection .File }}
+ {{ $title = path.Base .File.Dir | humanize | title }}
+{{ else if and .IsPage .File }}
+ {{ $title = .File.BaseFileName | humanize | title }}
+{{ end }}
+
+{{ return $title -}}
diff --git a/website/themes/hextra/layouts/_shortcodes/asciinema.html b/website/themes/hextra/layouts/_shortcodes/asciinema.html
new file mode 100644
index 00000000..167ef979
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/asciinema.html
@@ -0,0 +1,88 @@
+{{- /* Get parameters */ -}}
+{{- $castFile := .Get "file" | default (.Get 0) -}}
+{{- $theme := .Get "theme" | default "asciinema" -}}
+{{- $speed := .Get "speed" | default 1 -}}
+{{- $autoplay := .Get "autoplay" | default false -}}
+{{- $loop := .Get "loop" | default false -}}
+{{- $poster := .Get "poster" | default "" -}}
+{{- $markers := .Get "markers" | default "" -}}
+
+{{- /* Handle file path: support local files, absolute paths, and remote URLs */ -}}
+{{- $isLocal := not (urls.Parse $castFile).Scheme -}}
+{{- $isPage := and (eq .Page.Kind "page") (not .Page.BundleType) -}}
+
+{{- if $isLocal -}}
+ {{- /* Local file handling */ -}}
+ {{- $found := false -}}
+
+ {{- /* Try page resources first */ -}}
+ {{- if not $isPage -}}
+ {{- with .Page.Resources.Get $castFile -}}
+ {{- $castFile = .RelPermalink -}}
+ {{- $found = true -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- /* Try global resources if not found in page resources */ -}}
+ {{- if not $found -}}
+ {{- with resources.Get $castFile -}}
+ {{- $castFile = .RelPermalink -}}
+ {{- $found = true -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- /* Try static files if not found in resources */ -}}
+ {{- if not $found -}}
+ {{- if hasPrefix $castFile "/" -}}
+ {{- $castFile = relURL (strings.TrimPrefix "/" $castFile) -}}
+ {{- $found = true -}}
+ {{- else -}}
+ {{- /* For relative paths, assume they're in static directory */ -}}
+ {{- $castFile = relURL $castFile -}}
+ {{- $found = true -}}
+ {{- end -}}
+ {{- end -}}
+
+ {{- /* If still not found, raise an error */ -}}
+ {{- if not $found -}}
+ {{- errorf "Asciinema cast file not found: %s. Please ensure the file exists in your assets, static/, or provide a valid remote URL." $castFile -}}
+ {{- end -}}
+{{- end -}}
+
+{{- /* Build marker configuration */ -}}
+{{- $markerConfig := "" -}}
+{{- if $markers -}}
+ {{- $markerParts := slice -}}
+ {{- range (split $markers ",") -}}
+ {{- $item := trim . " " -}}
+ {{- $colonIndex := findRE ":" $item -}}
+ {{- if $colonIndex -}}
+ {{- /* Marker with label */ -}}
+ {{- $pair := split $item ":" -}}
+ {{- if ge (len $pair) 2 -}}
+ {{- $time := printf "%.1f" (float (trim (index $pair 0) " ")) -}}
+ {{- $label := trim (index $pair 1) " " -}}
+ {{- $markerParts = $markerParts | append (printf "[%s,\"%s\"]" $time $label) -}}
+ {{- end -}}
+ {{- else -}}
+ {{- /* Simple marker */ -}}
+ {{- $markerParts = $markerParts | append (printf "%.1f" (float $item)) -}}
+ {{- end -}}
+ {{- end -}}
+ {{- $markerConfig = printf "[%s]" (delimit $markerParts ",") -}}
+{{- end -}}
+
+{{- /* Mark page as using asciinema */ -}}
+{{- .Page.Store.Set "hasAsciinema" true -}}
+
+
+
\ No newline at end of file
diff --git a/website/themes/hextra/layouts/_shortcodes/badge.html b/website/themes/hextra/layouts/_shortcodes/badge.html
new file mode 100644
index 00000000..a8005c2b
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/badge.html
@@ -0,0 +1,54 @@
+{{- /*
+A shortcode to create a badge.
+
+@param {string} content The content of the badge.
+@param {string} color The color of the badge.
+@param {string} class The class of the badge.
+@param {string} link The link of the badge.
+@param {string} icon The icon of the badge.
+
+or
+
+@param {string} 0 The content of the badge.
+
+@example {{< badge content="Badge" color="blue" >}}
+@example {{< badge "Badge" >}}
+*/ -}}
+
+{{- if .IsNamedParams -}}
+ {{- $content := .Get "content" -}}
+ {{- $color := .Get "color" | default (.Get "type") | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
+ {{- $class := .Get "class" | default "" -}}
+ {{- $link := .Get "link" | default "" -}}
+ {{- $icon := .Get "icon" | default "" -}}
+ {{- $border := not (eq (.Get "border") false) | default true }}
+
+ {{- if $link -}}
+
+ {{- partial "shortcodes/badge.html" (dict
+ "content" $content
+ "color" $color
+ "class" $class
+ "border" $border
+ "icon" $icon
+ )
+ -}}
+
+ {{- else -}}
+ {{- partial "shortcodes/badge.html" (dict
+ "content" $content
+ "color" $color
+ "class" $class
+ "border" $border
+ "icon" $icon
+ )
+ -}}
+ {{- end -}}
+{{- else -}}
+ {{- $content := .Get 0 -}}
+ {{- partial "shortcodes/badge.html" (dict
+ "content" $content
+ "border" true
+ )
+ -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_shortcodes/callout.html b/website/themes/hextra/layouts/_shortcodes/callout.html
new file mode 100644
index 00000000..ba939a7e
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/callout.html
@@ -0,0 +1,57 @@
+{{- /*
+A shortcode to create a callout.
+
+@param {string} type The type of the callout (default, info, warning, error, important).
+@param {string} content The content of the callout.
+@param {string} emoji The emoji of the callout.
+@param {string} icon The icon of the callout (related to type or can be a custom icon).
+
+@example {{< callout type="info" >}}Content{{< /callout >}}
+*/ -}}
+
+{{- $type := .Get "type" | default "default" -}}
+{{- $emoji := .Get "emoji" -}}
+{{- $icon := .Get "icon" -}}
+
+{{- $styles := newScratch -}}
+{{- $styles.Set "default" (dict
+ "icon" "light-bulb"
+ "style" "hx:border-green-200 hx:bg-green-100 hx:text-green-900 hx:dark:border-green-200/30 hx:dark:bg-green-900/30 hx:dark:text-green-200"
+ )
+-}}
+{{- $styles.Set "info" (dict
+ "icon" "information-circle"
+ "style" "hx:border-blue-200 hx:bg-blue-100 hx:text-blue-900 hx:dark:border-blue-200/30 hx:dark:bg-blue-900/30 hx:dark:text-blue-200"
+ )
+-}}
+{{- $styles.Set "warning" (dict
+ "icon" "exclamation"
+ "style" "hx:border-amber-200 hx:bg-amber-100 hx:text-amber-900 hx:dark:border-amber-200/30 hx:dark:bg-amber-900/30 hx:dark:text-amber-200"
+ )
+-}}
+{{- $styles.Set "error" (dict
+ "icon" "ban"
+ "style" "hx:border-red-200 hx:bg-red-100 hx:text-red-900 hx:dark:border-red-200/30 hx:dark:bg-red-900/30 hx:dark:text-red-200"
+ )
+-}}
+{{- $styles.Set "important" (dict
+ "icon" "exclamation-circle"
+ "style" "hx:border-purple-200 hx:bg-purple-100 hx:text-purple-900 hx:dark:border-purple-200/30 hx:dark:bg-purple-900/30 hx:dark:text-purple-200"
+ )
+-}}
+
+{{- $style := or ($styles.Get $type) ($styles.Get "default") -}}
+
+{{- if and (not $emoji) (not $icon) -}}
+ {{- $icon = $style.icon -}}
+{{- end -}}
+
+{{- $content := .InnerDeindent | markdownify -}}
+
+{{- partial "shortcodes/callout.html" (dict
+ "content" $content
+ "emoji" $emoji
+ "icon" $icon
+ "class" $style.style
+ )
+-}}
diff --git a/website/themes/hextra/layouts/_shortcodes/card.html b/website/themes/hextra/layouts/_shortcodes/card.html
new file mode 100644
index 00000000..e3b47cee
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/card.html
@@ -0,0 +1,72 @@
+{{- /*
+ A shortcode to create a card.
+
+ @param {string} link The link to the card.
+ @param {string} title The title of the card.
+ @param {string} icon The icon of the card.
+ @param {string} subtitle The subtitle of the card.
+ @param {string} tag The tag of the card.
+ @param {string} tagColor The color of the tag.
+ @param {string} image The image of the card.
+ @param {string} alt The alt text for the image (defaults to title if not provided).
+ @param {string} method The method to process the image.
+ @param {string} options The options to process the image.
+ @param {string} imageStyle The style of the image.
+
+ @example {{< card link="/" title="Image Card"
+}}
+*/ -}}
+{{- $link := .Get "link" -}}
+{{- $title := .Get "title" -}}
+{{- $icon := .Get "icon" -}}
+{{- $subtitle := .Get "subtitle" -}}
+{{- $image := .Get "image" -}}
+{{- $alt := .Get "alt" | default $title -}}
+{{- $width := 0 -}}
+{{- $height := 0 -}}
+{{- $imageStyle := .Get "imageStyle" -}}
+{{- $tag := .Get "tag" -}}
+{{- $tagColor := .Get "tagColor" | default (.Get "tagType") | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
+{{- $tagBorder := not (eq (.Get "tagBorder") false) | default true }}
+{{- $tagIcon := .Get "tagIcon" | default "" -}}
+
+{{/* Image processing options */}}
+{{- $method := .Get "method" | default "Resize" | humanize -}}
+{{- $options := .Get "options" | default "800x webp q80" -}}
+{{- $process := .Get "process" | default (printf "%s %s" $method $options) -}}
+
+{{- if and $image (not (urls.Parse $image).Scheme) -}}
+ {{- with or (.Page.Resources.Get $image) (resources.Get $image) -}}
+ {{/* .Process does not work on svgs */}}
+ {{- if (not (eq .MediaType.SubType "svg")) -}}
+ {{/* Retrieve the $image resource from local or global resources */}}
+ {{- $processed := .Process $process -}}
+ {{- $width = $processed.Width -}}
+ {{- $height = $processed.Height -}}
+ {{- $image = $processed.RelPermalink -}}
+ {{- end -}}
+ {{ else }}
+ {{/* Otherwise, use relative link of the image */}}
+ {{- if hasPrefix $image "/" -}}
+ {{- $image = relURL (strings.TrimPrefix "/" $image) -}}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
+
+{{- partial "shortcodes/card" (dict
+ "page" .Page
+ "link" $link
+ "title" $title
+ "icon" $icon
+ "subtitle" $subtitle
+ "image" $image
+ "alt" $alt
+ "width" $width
+ "height" $height
+ "imageStyle" $imageStyle
+ "tag" $tag
+ "tagType" $tagColor
+ "tagBorder" $tagBorder
+ "tagIcon" $tagIcon
+ )
+-}}
diff --git a/website/themes/hextra/layouts/_shortcodes/cards.html b/website/themes/hextra/layouts/_shortcodes/cards.html
new file mode 100644
index 00000000..0b6667f3
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/cards.html
@@ -0,0 +1,11 @@
+{{- /*
+A shortcode for creating cards.
+
+@param {string} cols The number of columns.
+
+@example {{< cards cols="3" >}}{{< /cards >}}
+*/ -}}
+
+{{- $cols := .Get "cols" | default 3 -}}
+
+{{- partial "shortcodes/cards" (dict "cols" $cols "content" .Inner) -}}
diff --git a/website/themes/hextra/layouts/_shortcodes/details.html b/website/themes/hextra/layouts/_shortcodes/details.html
new file mode 100644
index 00000000..6835337c
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/details.html
@@ -0,0 +1,20 @@
+{{- /*
+A built-in component to display a collapsible content.
+
+@param {string} title The title of the details.
+@param {string} closed Whether the details are closed or not (default: false).
+
+@example {{% details title="Details" %}}Content{{% /details %}}
+*/ -}}
+
+{{- $title := .Get "title" | default "" -}}
+{{- $closed := eq (.Get "closed") "true" | default false -}}
+
+
+
+ {{ $title | markdownify }}
+
+
+ {{ .InnerDeindent | $.Page.RenderString (dict "display" "block") }}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/filetree/container.html b/website/themes/hextra/layouts/_shortcodes/filetree/container.html
new file mode 100644
index 00000000..184ce73d
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/filetree/container.html
@@ -0,0 +1,13 @@
+{{- /*
+A file tree container.
+
+@example {{< filetree/container >}}{{< /filetree/container >}}
+*/ -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/filetree/file.html b/website/themes/hextra/layouts/_shortcodes/filetree/file.html
new file mode 100644
index 00000000..c48c8c98
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/filetree/file.html
@@ -0,0 +1,16 @@
+{{- /*
+A file in a file tree.
+
+@param {string} name The name of the file.
+
+@example {{< filetree/file name="_index.md" >}}
+*/ -}}
+
+{{- $name := .Get "name" -}}
+
+
+
+ {{- partial "utils/icon" (dict "name" "document-text" "attributes" "width=1em") -}}
+ {{ $name | markdownify }}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/filetree/folder.html b/website/themes/hextra/layouts/_shortcodes/filetree/folder.html
new file mode 100644
index 00000000..58756eef
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/filetree/folder.html
@@ -0,0 +1,26 @@
+{{- /*
+A folder in a file tree.
+
+@param {string} name The name of the folder.
+@param {string} state The state of the folder.
+
+@example {{< filetree/folder name="docs" state="closed" >}}
+*/ -}}
+
+{{- $name := .Get "name" -}}
+{{- $state := .Get "state" | default "open" }}
+
+
+
+
+ {{- .InnerDeindent -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/feature-card.html b/website/themes/hextra/layouts/_shortcodes/hextra/feature-card.html
new file mode 100644
index 00000000..fd8a6486
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/feature-card.html
@@ -0,0 +1,51 @@
+{{- /*
+A shortcode for displaying a feature card.
+
+@param {string} title The title of the card.
+@param {string} subtitle The subtitle of the card.
+@param {string} class The class of the card.
+@param {string} image The image of the card.
+@param {string} imageClass The class of the image.
+@param {string} style The style of the card.
+@param {string} icon The icon of the card.
+@param {string} link The link of the card.
+
+@example {{< hextra/feature-card title="Feature Card" subtitle="This is a feature card." >}}
+*/ -}}
+
+{{- $title := .Get "title" -}}
+{{- $subtitle := .Get "subtitle" -}}
+{{- $class := .Get "class" -}}
+{{- $image := .Get "image" -}}
+{{- $imageClass := .Get "imageClass" -}}
+{{- $style := .Get "style" -}}
+{{- $icon := .Get "icon" -}}
+{{- $link := .Get "link" -}}
+
+{{- $external := hasPrefix $link "http" -}}
+{{- $href := cond (strings.HasPrefix $link "/") ($link | relURL) $link -}}
+
+{{- if hasPrefix $image "/" -}}
+ {{- $image = relURL (strings.TrimPrefix "/" $image) -}}
+{{- end -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/feature-grid.html b/website/themes/hextra/layouts/_shortcodes/hextra/feature-grid.html
new file mode 100644
index 00000000..aace898b
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/feature-grid.html
@@ -0,0 +1,21 @@
+{{- /*
+A shortcode for displaying a feature grid.
+
+@param {string} cols The number of columns.
+@param {string} style The style of the grid.
+
+@example {{< hextra/feature-grid cols="3" >}}{{< /hextra/feature-grid >}}
+*/ -}}
+
+{{- $cols := .Get "cols" | default 3 -}}
+{{- $style := .Get "style" | default "" -}}
+
+{{- $css := printf "--hextra-feature-grid-cols: %v; %s" $cols $style -}}
+
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-badge.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-badge.html
new file mode 100644
index 00000000..9fdcbbd3
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/hero-badge.html
@@ -0,0 +1,24 @@
+{{- /*
+A shortcode for rendering a badge with a link.
+
+@param {string} link The link of the badge.
+@param {string} class The class of the badge.
+@param {string} style The style of the badge.
+
+@example {{< hextra/hero-badge >}}{{< /hextra/hero-badge >}}
+*/ -}}
+
+{{- $link := .Get "link" -}}
+{{- $external := hasPrefix $link "http" -}}
+{{- $href := cond (hasPrefix $link "/") ($link | relURL) $link -}}
+{{- $class := .Get "class" }}
+{{- $style := .Get "style" -}}
+
+
+ {{ .Inner | markdownify }}
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-button.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-button.html
new file mode 100644
index 00000000..0295c2a0
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/hero-button.html
@@ -0,0 +1,25 @@
+{{- /*
+A shortcode for rendering a button with a link.
+
+@param {string} link The link of the button.
+@param {string} text The text of the button.
+@param {string} style The style of the button.
+
+@example {{< hextra/hero-button text="Get Started" link="docs" >}}
+*/ -}}
+
+{{- $link := .Get "link" -}}
+{{- $text := .Get "text" -}}
+{{- $style := .Get "style" -}}
+
+{{- $external := hasPrefix $link "http" -}}
+{{- $href := cond (hasPrefix $link "/") ($link | relURL) $link -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-container.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-container.html
new file mode 100644
index 00000000..a7153d4c
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/hero-container.html
@@ -0,0 +1,56 @@
+{{- /*
+A simple hero container with an image on the left side.
+
+@param {string} class The class of the container.
+@param {string} cols The number of columns (default: 2).
+@param {string} image The image of the container.
+@param {bool} imageCard Whether to display the image as a card (default: false).
+@param {string} imageClass The class of the image.
+@param {string} imageLink The link of the image.
+@param {string} imageStyle The style of the image.
+@param {string} imageTitle The title of the image.
+@param {int} imageWidth The width of the image (default: 350).
+@param {int} imageHeight The height of the image (default: 350).
+@param {string} style The style of the container.
+
+@example {{< hextra/hero-container image="image.png" imageLink="https://example.com" imageTitle="Example Image" >}}
+*/ -}}
+
+{{- $class := .Get "class" -}}
+{{- $cols := .Get "cols" | default 2 -}}
+{{- $image := .Get "image" -}}
+{{- $imageCard := .Get "imageCard" | default false -}}
+{{- $imageClass := .Get "imageClass" -}}
+{{- $imageLink := .Get "imageLink" -}}
+{{- $imageLinkExternal := hasPrefix $imageLink "http" -}}
+{{- $imageStyle := .Get "imageStyle" -}}
+{{- $imageTitle := .Get "imageTitle" -}}
+{{- $imageWidth := .Get "imageWidth" | default 350 -}}
+{{- $imageHeight := .Get "imageHeight" | default 350 -}}
+{{- $style := .Get "style" -}}
+
+{{- $css := printf "--hextra-feature-grid-cols: %v; %s" $cols $style -}}
+{{- $href := cond (hasPrefix $imageLink "/") ($imageLink | relURL) $imageLink -}}
+{{- if hasPrefix $image "/" -}}
+ {{- $image = relURL (strings.TrimPrefix "/" $image) -}}
+{{- end -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-headline.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-headline.html
new file mode 100644
index 00000000..6dd313ad
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/hero-headline.html
@@ -0,0 +1,16 @@
+{{- /*
+A shortcode for displaying a hero headline.
+
+@param {string} style The style of the headline.
+
+@example {{< hextra/hero-headline >}}{{< /hextra/hero-headline >}}
+*/ -}}
+
+{{- $style := .Get "style" -}}
+
+
+ {{ .Inner | markdownify }}
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-section.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-section.html
new file mode 100644
index 00000000..1e7131e0
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/hero-section.html
@@ -0,0 +1,20 @@
+{{- /*
+A simple hero section with a heading and optional style.
+
+@param {string} heading The heading level (default: h2).
+@param {string} style The style of the heading.
+@param {string} content The content of the heading.
+
+@example {{< hextra/hero-section heading="h3" >}}{{< /hextra/hero-section >}}>
+*/ -}}
+
+{{- $style := .Get "style" -}}
+{{- $heading := int (strings.TrimPrefix "h" (.Get "heading" | default "h2")) -}}
+{{- $size := cond (ge $heading 4) "xl" (cond (eq $heading 3) "2xl" "4xl") -}}
+
+
+ {{ .Inner | markdownify }}
+
diff --git a/website/themes/hextra/layouts/_shortcodes/hextra/hero-subtitle.html b/website/themes/hextra/layouts/_shortcodes/hextra/hero-subtitle.html
new file mode 100644
index 00000000..614c4278
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/hextra/hero-subtitle.html
@@ -0,0 +1,16 @@
+{{- /*
+A shortcode for displaying a hero subtitle.
+
+@param {string} style The style of the subtitle.
+
+@example {{< hextra/hero-subtitle >}}{{< /hextra/hero-subtitle >}}
+*/ -}}
+
+{{- $style := .Get "style" -}}
+
+
+ {{ .Inner | markdownify }}
+
diff --git a/website/themes/hextra/layouts/_shortcodes/icon.html b/website/themes/hextra/layouts/_shortcodes/icon.html
new file mode 100644
index 00000000..77f98c96
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/icon.html
@@ -0,0 +1,20 @@
+{{- /*
+Create an icon.
+
+@param {string} name The name of the icon.
+@param {string} attributes The attributes of the icon.
+
+or
+
+@param {string} 0 The name of the icon.
+
+@example {{< icon name="github" >}}
+@example {{< icon "github" >}}
+*/ -}}
+{{- $name := .Get "name" | default (.Get 0) -}}
+{{- $attributes := .Get "attributes" | default "height=1em" }}
+{{- $icon := partial "utils/icon.html" (dict "name" $name "attributes" $attributes) -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/include.html b/website/themes/hextra/layouts/_shortcodes/include.html
new file mode 100644
index 00000000..8bdf440f
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/include.html
@@ -0,0 +1,22 @@
+{{- /*
+https://github.com/gohugoio/gohugoioTheme/blob/master/layouts/shortcodes/include.html
+
+Renders the page using the RenderShortcode method on the Page object.
+
+You must call this shortcode using the {{% %}} notation.
+
+@param {string} (positional parameter 0) The path to the page, relative to the content directory.
+@returns template.HTML
+
+@example {{% include "functions/_common/glob-patterns" %}}
+*/}}
+
+{{- with .Get 0 }}
+ {{- with site.GetPage . }}
+ {{- .RenderShortcodes }}
+ {{- else }}
+ {{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}
+ {{- end }}
+{{- else }}
+ {{- errorf "The %q shortcode requires a positional parameter indicating the path of the file to include. See %s" .Name .Position }}
+{{- end }}
diff --git a/website/themes/hextra/layouts/_shortcodes/jupyter.html b/website/themes/hextra/layouts/_shortcodes/jupyter.html
new file mode 100644
index 00000000..08ca5935
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/jupyter.html
@@ -0,0 +1,88 @@
+{{- /*
+Render Jupyter Notebook
+
+@param {string} 0 The path of the Jupyter Notebook.
+
+@example {{% jupyter "notebook.ipynb" %}}
+*/ -}}
+
+{{- $path := .Get 0 -}}
+{{- $data := "" -}}
+{{- $page := .Page -}}
+
+{{- $isLocal := not (urls.Parse $path).Scheme -}}
+{{- $isPage := and (eq .Page.Kind "page") (not .Page.BundleType) -}}
+
+{{/* https://gohugo.io/functions/transform/unmarshal/ */}}
+{{- if (not $isLocal) -}}
+ {{- with resources.GetRemote $path -}}
+ {{- with unmarshal .Content -}}{{- $data = . -}}{{- end -}}
+ {{- else -}}
+ {{- errorf "Remote resource not found: %s" $path -}}
+ {{- end -}}
+{{- else if (not $isPage) -}}
+ {{- with .Page.Resources.Get $path -}}
+ {{- with unmarshal .Content -}}{{- $data = . -}}{{- end -}}
+ {{- else -}}
+ {{- errorf "Local resource not found: %s" $path -}}
+ {{- end -}}
+{{- else -}}
+ {{- with resources.Get $path -}}
+ {{- with unmarshal .Content -}}{{- $data = . -}}{{- end -}}
+ {{- else -}}
+ {{- errorf "Local resource not found: %s" $path -}}
+ {{- end -}}
+{{- end -}}
+
+{{- $language := index $data "metadata" "language_info" "name" | default "python" -}}
+
+{{- with index $data "cells" -}}
+ {{- range $cell := . -}}
+ {{- if eq (index $cell "cell_type") "code" -}}
+ {{- $source := index $cell "source" -}}
+ {{- $sourceContent := (cond (reflect.IsSlice $source) (delimit $source "") $source) -}}
+{{- with ($sourceContent | strings.Chomp) -}}
+{{ (printf "\n\n```%s\n%s\n```\n" $language .) | safeHTML -}}
+{{- end -}}
+
+
+ {{- else if eq (index $cell "cell_type") "markdown" -}}
+ {{- $source := index $cell "source" }}
+ {{- $sourceContent := (cond (reflect.IsSlice $source) (delimit $source "") $source) }}
+{{ (printf "\n%s\n" $sourceContent) | safeHTML }}
+ {{- end -}}
+ {{- end -}}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/_shortcodes/pdf.html b/website/themes/hextra/layouts/_shortcodes/pdf.html
new file mode 100644
index 00000000..991d6eb5
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/pdf.html
@@ -0,0 +1,15 @@
+{{- /*
+Shortcode to include a PDF file in a page.
+
+@param {string} 0 The path to the PDF file.
+
+@example {{< pdf "path/to/file.pdf" >}}
+*/ -}}
+
+{{- $path := .Get 0 -}}
+{{- $url := partial "utils/file-path" (dict "page" .Page "path" $path) -}}
+
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/steps.html b/website/themes/hextra/layouts/_shortcodes/steps.html
new file mode 100644
index 00000000..1bccad1e
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/steps.html
@@ -0,0 +1,9 @@
+{{- /*
+A shortcode for creating a step list.
+
+@example {{% steps %}}{{% /steps %}}
+*/ -}}
+
+
diff --git a/website/themes/hextra/layouts/_shortcodes/tab.html b/website/themes/hextra/layouts/_shortcodes/tab.html
new file mode 100644
index 00000000..e57c460c
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/tab.html
@@ -0,0 +1,28 @@
+{{- /*
+Create a tab.
+
+@param {string} name The name of the tab.
+@param {string} icon The icon of the tab.
+@param {string} selected Whether the tab is selected.
+
+@example {{< tab name="Foo" icon="document-text" selected=true >}}content{{< /tab >}}
+*/ -}}
+
+{{- $name := .Get "name" | default (printf "Tab %d" .Ordinal) -}}
+
+{{- $icon := .Get "icon" -}}
+
+{{- $selected := .Get "selected" -}}
+{{- if .Parent.Get "defaultIndex" -}}
+ {{- $selected = eq .Ordinal (int (.Parent.Get "defaultIndex")) -}}
+{{- end -}}
+
+{{- $tabs := .Parent.Store.Get "tabs" | default slice -}}
+{{ .Parent.Store.Set "tabs" ($tabs | append (dict
+ "id" .Ordinal
+ "name" $name
+ "icon" $icon
+ "content" .InnerDeindent
+ "selected" $selected
+ ))
+-}}
diff --git a/website/themes/hextra/layouts/_shortcodes/tabs.html b/website/themes/hextra/layouts/_shortcodes/tabs.html
new file mode 100644
index 00000000..efdf5a63
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/tabs.html
@@ -0,0 +1,39 @@
+{{- /*
+Create a tabbed interface with the given items.
+
+@example {{< tabs >}}...{{< /tabs >}}
+*/ -}}
+
+{{- /* Unused, but required for the shortcode to work. */ -}}
+{{- .Inner -}}
+
+{{- /* Enable syncing of tabs across the page. */ -}}
+{{- $enableSync := false -}}
+{{- if or (eq .Page.Params.tabs.sync false) (eq .Page.Params.tabs.sync true) -}}
+ {{- $enableSync = .Page.Params.tabs.sync -}}
+{{- else -}}
+ {{- $enableSync = site.Params.page.tabs.sync | default false -}}
+{{- end -}}
+
+{{- $tabs := ($.Store.Get "tabs") | default slice -}}
+
+{{- /* Compatibility with previous parameter "items". */ -}}
+{{- if .Get "defaultIndex" -}}
+ {{- warnf "The 'defaultIndex' parameter of the 'tabs' shortcode is deprecated. Please use 'selected' on 'tab' instead." -}}
+{{- end -}}
+
+{{- if .Get "items" -}}
+ {{- warnf "The 'items' parameter of the 'tabs' shortcode is deprecated. Please use 'name' on 'tab' instead." -}}
+
+ {{- $items := split (.Get "items") "," -}}
+
+ {{- $temp := slice -}}
+ {{- range $i, $item := $items -}}
+ {{- $tab := index $tabs $i -}}
+ {{- $temp = $temp | append (merge $tab (dict "name" $item)) -}}
+ {{- end -}}
+
+ {{- $tabs = $temp -}}
+{{- end -}}
+
+{{- partial "shortcodes/tabs" (dict "tabs" $tabs "enableSync" $enableSync "id" .Ordinal) -}}
diff --git a/website/themes/hextra/layouts/_shortcodes/term.html b/website/themes/hextra/layouts/_shortcodes/term.html
new file mode 100644
index 00000000..8d437bb1
--- /dev/null
+++ b/website/themes/hextra/layouts/_shortcodes/term.html
@@ -0,0 +1,33 @@
+{{- /*
+Highlight a glossary term
+
+@param {string} entry Either the glossary abbreviation or the term.
+
+or
+
+@param {string} 0 Either the glossary abbreviation or the term.
+
+@example {{< term entry="MAC" >}}
+@example {{< term "MAC" >}}
+*/ -}}
+
+{{- $entry := .Get "entry" | default (.Get 0) -}}
+{{- $entryLower := lower $entry -}}
+{{- $match := dict -}}
+{{- $siteData := partial "utils/hugo-compat/site-data.html" . -}}
+
+
+{{- range (index $siteData .Site.Language.Lang "termbase") -}}
+ {{- if or (eq (lower .abbr) $entryLower) (eq (lower .term) $entryLower) -}}
+ {{- $match = . -}}
+ {{- break -}}
+ {{- end -}}
+{{- end -}}
+
+{{- with $match }}
+
+ {{- $entry -}}
+
+{{- else }}
+ {{- $entry -}}
+{{- end }}
diff --git a/website/themes/hextra/layouts/archives.html b/website/themes/hextra/layouts/archives.html
new file mode 100644
index 00000000..14aac55e
--- /dev/null
+++ b/website/themes/hextra/layouts/archives.html
@@ -0,0 +1,38 @@
+{{ define "main" }}
+ {{- $section := site.Params.archives.section | default "blog" -}}
+ {{- $dateFormat := site.Params.archives.dateFormat | default "Jan 02" -}}
+ {{- $pages := where site.RegularPages "Section" $section -}}
+ {{- $groups := $pages.GroupByDate "2006" "desc" -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/baseof.html b/website/themes/hextra/layouts/baseof.html
new file mode 100644
index 00000000..6238ee6e
--- /dev/null
+++ b/website/themes/hextra/layouts/baseof.html
@@ -0,0 +1,16 @@
+
+
+ {{- partial "head.html" . -}}
+
+
+ {{- (T "skipToContent") | default "Skip to content" -}}
+
+ {{- partial "banner.html" . -}}
+ {{- partial "navbar.html" . -}}
+ {{- block "main" . }}{{ end -}}
+ {{- if or (eq .Site.Params.footer.enable nil) (.Site.Params.footer.enable) }}
+ {{ partial "footer.html" . }}
+ {{ end }}
+ {{ partial "scripts.html" . }}
+
+
diff --git a/website/themes/hextra/layouts/blog/list.html b/website/themes/hextra/layouts/blog/list.html
new file mode 100644
index 00000000..848f8085
--- /dev/null
+++ b/website/themes/hextra/layouts/blog/list.html
@@ -0,0 +1,39 @@
+{{ define "main" }}
+ {{- $readMore := (T "readMore") | default "Read more →" -}}
+
+{{- end -}}
diff --git a/website/themes/hextra/layouts/blog/single.html b/website/themes/hextra/layouts/blog/single.html
new file mode 100644
index 00000000..561031c8
--- /dev/null
+++ b/website/themes/hextra/layouts/blog/single.html
@@ -0,0 +1,55 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/docs/list.html b/website/themes/hextra/layouts/docs/list.html
new file mode 100644
index 00000000..c921e6c1
--- /dev/null
+++ b/website/themes/hextra/layouts/docs/list.html
@@ -0,0 +1,25 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/docs/single.html b/website/themes/hextra/layouts/docs/single.html
new file mode 100644
index 00000000..40f2eabd
--- /dev/null
+++ b/website/themes/hextra/layouts/docs/single.html
@@ -0,0 +1,25 @@
+{{ define "main" }}
+
+{{ end }}
\ No newline at end of file
diff --git a/website/themes/hextra/layouts/glossary.html b/website/themes/hextra/layouts/glossary.html
new file mode 100644
index 00000000..d2357413
--- /dev/null
+++ b/website/themes/hextra/layouts/glossary.html
@@ -0,0 +1,26 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/glossary.markdown.md b/website/themes/hextra/layouts/glossary.markdown.md
new file mode 100644
index 00000000..9e3197ff
--- /dev/null
+++ b/website/themes/hextra/layouts/glossary.markdown.md
@@ -0,0 +1,3 @@
+{{- .Title | replaceRE "\n" " " | printf "# %s" -}}
+
+{{ .RawContent }}
diff --git a/website/themes/hextra/layouts/hextra-home.html b/website/themes/hextra/layouts/hextra-home.html
new file mode 100644
index 00000000..265f84e7
--- /dev/null
+++ b/website/themes/hextra/layouts/hextra-home.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/home.html b/website/themes/hextra/layouts/home.html
new file mode 100644
index 00000000..47b9608a
--- /dev/null
+++ b/website/themes/hextra/layouts/home.html
@@ -0,0 +1,14 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/list.html b/website/themes/hextra/layouts/list.html
new file mode 100644
index 00000000..504eea2d
--- /dev/null
+++ b/website/themes/hextra/layouts/list.html
@@ -0,0 +1,18 @@
+{{ define "main" }}
+
+{{ end }}
\ No newline at end of file
diff --git a/website/themes/hextra/layouts/list.rss.xml b/website/themes/hextra/layouts/list.rss.xml
new file mode 100644
index 00000000..3586d3b6
--- /dev/null
+++ b/website/themes/hextra/layouts/list.rss.xml
@@ -0,0 +1,43 @@
+
+
+ {{ .Site.Title }} – {{ .Title }}
+ {{ .Permalink }}
+ Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}
+ Hugo -- gohugo.io {{ with partial "utils/hugo-compat/language-locale.html" .Site.Language }}
+ {{.}} {{end}}{{ with .Site.Params.Author.email }}
+ {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}} {{end}}{{ with .Site.Params.Author.email }}
+ {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}} {{end}}{{ with .Site.Copyright }}
+ {{.}} {{end}}{{ if not .Date.IsZero }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ end }}
+ {{ with .OutputFormats.Get "RSS" }}
+ {{ printf " " .Permalink .MediaType | safeHTML }}
+ {{ end }}
+ {{ if not $.Section }}
+ {{ $sections := .Site.Params.rss.sections | default (slice "blog") }}
+ {{ .Store.Set "rssPages" (first 50 (where $.Site.RegularPages "Type" "in" $sections )) }}
+ {{ else }}
+ {{ if $.Parent.IsHome }}
+ {{ .Store.Set "rssPages" (first 50 (where $.Site.RegularPages "Type" $.Section )) }}
+ {{ else }}
+ {{ .Store.Set "rssPages" (first 50 $.Pages) }}
+ {{ end }}
+ {{ end }}
+ {{ range (.Store.Get "rssPages") }}
+ -
+
{{ .Title }}
+ {{ .Permalink }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
+ {{ with .Site.Params.Author.email }}{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}} {{end}}
+ {{ .Permalink }}
+
+ {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }}
+ {{ with $img }}
+ {{ $img := .Resize "640x" }}
+ {{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
+ {{ end }}
+ {{ .Content | html }}
+
+
+ {{ end }}
+
+
diff --git a/website/themes/hextra/layouts/llms.txt b/website/themes/hextra/layouts/llms.txt
new file mode 100644
index 00000000..970e2062
--- /dev/null
+++ b/website/themes/hextra/layouts/llms.txt
@@ -0,0 +1,35 @@
+# {{ .Site.Title }}
+
+> {{ .Site.Params.description | default "" }}
+
+{{ range where site.Sections "Params.llms" "ne" false }}
+{{- template "llms-section-tree" dict "context" . "level" 2 }}
+{{ end }}
+
+{{- $rootPages := where (where site.RegularPages "Section" "") "Params.llms" "ne" false }}
+{{- if $rootPages }}
+## Root Pages
+{{- range $rootPages }}
+- [{{ .Title }}]({{ .Permalink }}): {{ .Summary | plainify | truncate 100 | strings.TrimSpace }}{{ if .Date }} - Published {{ .Date.Format "2006-01-02" }}{{ end }}
+{{- end }}
+{{- end }}
+
+---
+Generated on {{ now.Format "2006-01-02 15:04:05 UTC" }}
+Site: {{ .Site.BaseURL }}
+
+{{- define "llms-section-tree" -}}
+{{- $context := .context -}}
+{{- $level := .level | default 2 -}}
+{{- $headerHashes := strings.Repeat $level "#" -}}
+{{- "\n" -}}
+{{ $headerHashes }} {{ $context.Title }}
+
+{{- range where $context.RegularPages "Params.llms" "ne" false }}
+- [{{ .Title }}]({{ .Permalink }}): {{ .Summary | plainify | truncate 100 | strings.TrimSpace }}{{ if .Date }} - Published {{ .Date.Format "2006-01-02" }}{{ end }}
+{{- end }}
+
+{{- range where $context.Sections "Params.llms" "ne" false }}
+{{ template "llms-section-tree" dict "context" . "level" (add $level 1) }}
+{{- end }}
+{{- end -}}
diff --git a/website/themes/hextra/layouts/page.markdown.md b/website/themes/hextra/layouts/page.markdown.md
new file mode 100644
index 00000000..46afc77e
--- /dev/null
+++ b/website/themes/hextra/layouts/page.markdown.md
@@ -0,0 +1,2 @@
+{{- .Title | replaceRE "\n" " " | printf "# %s" }}
+{{ .RawContent }}
diff --git a/website/themes/hextra/layouts/section.markdown.md b/website/themes/hextra/layouts/section.markdown.md
new file mode 100644
index 00000000..46afc77e
--- /dev/null
+++ b/website/themes/hextra/layouts/section.markdown.md
@@ -0,0 +1,2 @@
+{{- .Title | replaceRE "\n" " " | printf "# %s" }}
+{{ .RawContent }}
diff --git a/website/themes/hextra/layouts/single.html b/website/themes/hextra/layouts/single.html
new file mode 100644
index 00000000..8244123b
--- /dev/null
+++ b/website/themes/hextra/layouts/single.html
@@ -0,0 +1,19 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/taxonomy.html b/website/themes/hextra/layouts/taxonomy.html
new file mode 100644
index 00000000..490f4ea8
--- /dev/null
+++ b/website/themes/hextra/layouts/taxonomy.html
@@ -0,0 +1,30 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/term.html b/website/themes/hextra/layouts/term.html
new file mode 100644
index 00000000..eee338da
--- /dev/null
+++ b/website/themes/hextra/layouts/term.html
@@ -0,0 +1,33 @@
+{{ define "main" }}
+
+{{ end }}
diff --git a/website/themes/hextra/layouts/wide.html b/website/themes/hextra/layouts/wide.html
new file mode 100644
index 00000000..fce2810c
--- /dev/null
+++ b/website/themes/hextra/layouts/wide.html
@@ -0,0 +1,12 @@
+{{ define "main" }}
+
+ {{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" false) }}
+
+
+ {{ if .Title }}{{ .Title }} {{ end }}
+
+ {{ .Content }}
+
+
+
+{{ end }}
\ No newline at end of file
diff --git a/website/themes/hextra/layouts/wide.markdown.md b/website/themes/hextra/layouts/wide.markdown.md
new file mode 100644
index 00000000..9e3197ff
--- /dev/null
+++ b/website/themes/hextra/layouts/wide.markdown.md
@@ -0,0 +1,3 @@
+{{- .Title | replaceRE "\n" " " | printf "# %s" -}}
+
+{{ .RawContent }}
diff --git a/website/themes/hextra/netlify.toml b/website/themes/hextra/netlify.toml
new file mode 100644
index 00000000..1788f059
--- /dev/null
+++ b/website/themes/hextra/netlify.toml
@@ -0,0 +1,12 @@
+[build]
+publish = "docs/public"
+command = "cd docs && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PRIME_URL}"
+
+# Always trigger a rebuild, even if the files haven't changed.
+# See https://docs.netlify.com/configure-builds/file-based-configuration/#ignore-builds
+ignore = "false"
+
+[build.environment]
+HUGO_VERSION = "0.156.0"
+GO_VERSION = "1.26.0"
+NODE_VERSION = "24.13.1"
diff --git a/website/themes/hextra/package-lock.json b/website/themes/hextra/package-lock.json
new file mode 100644
index 00000000..b6f28ca7
--- /dev/null
+++ b/website/themes/hextra/package-lock.json
@@ -0,0 +1,1564 @@
+{
+ "name": "hextra",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "devDependencies": {
+ "@axe-core/playwright": "^4.11.3",
+ "@playwright/test": "^1.60.0",
+ "@tailwindcss/postcss": "^4.3.0",
+ "postcss-cli": "^11.0.1",
+ "prettier": "^3.8.3",
+ "prettier-plugin-go-template": "^0.0.15",
+ "tailwindcss": "^4.3.0"
+ }
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@axe-core/playwright": {
+ "version": "4.11.3",
+ "resolved": "https://registry.npmjs.org/@axe-core/playwright/-/playwright-4.11.3.tgz",
+ "integrity": "sha512-h/kfksv4F0cVIDlKpT4700OehdRgpvuVskuQ2nb7/JmtWUXpe9ftHAPtwyXGvVSsa6SJ64A9ER7Zrzc/sIvC4w==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "axe-core": "~4.11.4"
+ },
+ "peerDependencies": {
+ "playwright-core": ">= 1.0.0"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@playwright/test": {
+ "version": "1.60.0",
+ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.60.0.tgz",
+ "integrity": "sha512-O71yZIbAh/PxDMNGns37GHBIfrVkEVyn+AXyIa5dOTfb4/xNvRWV+Vv/NMbNCtODB/pO7vLlF2OTmMVLhmr7Ag==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "playwright": "1.60.0"
+ },
+ "bin": {
+ "playwright": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@tailwindcss/node": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz",
+ "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/remapping": "^2.3.5",
+ "enhanced-resolve": "^5.21.0",
+ "jiti": "^2.6.1",
+ "lightningcss": "1.32.0",
+ "magic-string": "^0.30.21",
+ "source-map-js": "^1.2.1",
+ "tailwindcss": "4.3.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz",
+ "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 20"
+ },
+ "optionalDependencies": {
+ "@tailwindcss/oxide-android-arm64": "4.3.0",
+ "@tailwindcss/oxide-darwin-arm64": "4.3.0",
+ "@tailwindcss/oxide-darwin-x64": "4.3.0",
+ "@tailwindcss/oxide-freebsd-x64": "4.3.0",
+ "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0",
+ "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0",
+ "@tailwindcss/oxide-linux-arm64-musl": "4.3.0",
+ "@tailwindcss/oxide-linux-x64-gnu": "4.3.0",
+ "@tailwindcss/oxide-linux-x64-musl": "4.3.0",
+ "@tailwindcss/oxide-wasm32-wasi": "4.3.0",
+ "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0",
+ "@tailwindcss/oxide-win32-x64-msvc": "4.3.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-android-arm64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz",
+ "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-arm64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz",
+ "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-darwin-x64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz",
+ "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-freebsd-x64": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz",
+ "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz",
+ "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz",
+ "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz",
+ "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz",
+ "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-linux-x64-musl": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz",
+ "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-wasm32-wasi": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz",
+ "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==",
+ "bundleDependencies": [
+ "@napi-rs/wasm-runtime",
+ "@emnapi/core",
+ "@emnapi/runtime",
+ "@tybys/wasm-util",
+ "@emnapi/wasi-threads",
+ "tslib"
+ ],
+ "cpu": [
+ "wasm32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "@emnapi/core": "^1.10.0",
+ "@emnapi/runtime": "^1.10.0",
+ "@emnapi/wasi-threads": "^1.2.1",
+ "@napi-rs/wasm-runtime": "^1.1.4",
+ "@tybys/wasm-util": "^0.10.1",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz",
+ "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz",
+ "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+ "node_modules/@tailwindcss/postcss": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.3.0.tgz",
+ "integrity": "sha512-Jm05Tjx+9yCLGv5qw1c+84Psds8MnyrEQYCB+FFk2lgGiUjlRqdxke4mVTuYrj2xnVZqKim2Apr5ySuQRYAw/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "@tailwindcss/node": "4.3.0",
+ "@tailwindcss/oxide": "4.3.0",
+ "postcss": "^8.5.10",
+ "tailwindcss": "4.3.0"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/axe-core": {
+ "version": "4.11.4",
+ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.4.tgz",
+ "integrity": "sha512-KunSNx+TVpkAw/6ULfhnx+HWRecjqZGTOyquAoWHYLRSdK1tB5Ihce1ZW+UY3fj33bYAFWPu7W/GRSmmrCGuxA==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dependency-graph": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-1.0.0.tgz",
+ "integrity": "sha512-cW3gggJ28HZ/LExwxP2B++aiKxhJXMSIt9K48FOXQkm+vuG5gyatXnLsONRJdzO/7VfjDIiaOOa/bs4l464Lwg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/enhanced-resolve": {
+ "version": "5.21.4",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.4.tgz",
+ "integrity": "sha512-wE4fDO8OjJhrPFH69HUQStq5oKvGRTNXEyW+k5C/pUQLASSsTu7obd2V3GvCDgPcY9AWjhJ4jz9Kh7iRvrxhJg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "tapable": "^2.3.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/fs-extra": {
+ "version": "11.3.0",
+ "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.3.0.tgz",
+ "integrity": "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/graceful-fs": {
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",
+ "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/jsonfile": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
+ "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "universalify": "^2.0.0"
+ },
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/lightningcss": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
+ "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
+ "license": "MPL-2.0",
+ "dependencies": {
+ "detect-libc": "^2.0.3"
+ },
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ },
+ "optionalDependencies": {
+ "lightningcss-android-arm64": "1.32.0",
+ "lightningcss-darwin-arm64": "1.32.0",
+ "lightningcss-darwin-x64": "1.32.0",
+ "lightningcss-freebsd-x64": "1.32.0",
+ "lightningcss-linux-arm-gnueabihf": "1.32.0",
+ "lightningcss-linux-arm64-gnu": "1.32.0",
+ "lightningcss-linux-arm64-musl": "1.32.0",
+ "lightningcss-linux-x64-gnu": "1.32.0",
+ "lightningcss-linux-x64-musl": "1.32.0",
+ "lightningcss-win32-arm64-msvc": "1.32.0",
+ "lightningcss-win32-x64-msvc": "1.32.0"
+ }
+ },
+ "node_modules/lightningcss-android-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",
+ "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-arm64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",
+ "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-darwin-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",
+ "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-freebsd-x64": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",
+ "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm-gnueabihf": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",
+ "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",
+ "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-arm64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",
+ "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-gnu": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",
+ "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-linux-x64-musl": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",
+ "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-arm64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",
+ "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lightningcss-win32-x64-msvc": {
+ "version": "1.32.0",
+ "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",
+ "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MPL-2.0",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 12.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/parcel"
+ }
+ },
+ "node_modules/lilconfig": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.21",
+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.5"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",
+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/playwright": {
+ "version": "1.60.0",
+ "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.60.0.tgz",
+ "integrity": "sha512-hheHdokM8cdqCb0lcE3s+zT4t4W+vvjpGxsZlDnikarzx8tSzMebh3UiFtgqwFwnTnjYQcsyMF8ei2mCO/tpeA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "playwright-core": "1.60.0"
+ },
+ "bin": {
+ "playwright": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "fsevents": "2.3.2"
+ }
+ },
+ "node_modules/playwright-core": {
+ "version": "1.60.0",
+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.60.0.tgz",
+ "integrity": "sha512-9bW6zvX/m0lEbgTKJ6YppOKx8H3VOPBMOCFh2irXFOT4BbHgrx5hPjwJYLT40Lu+4qtD36qKc/Hn56StUW57IA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "playwright-core": "cli.js"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/playwright/node_modules/fsevents": {
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
+ "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.14",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz",
+ "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-cli": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-cli/-/postcss-cli-11.0.1.tgz",
+ "integrity": "sha512-0UnkNPSayHKRe/tc2YGW6XnSqqOA9eqpiRMgRlV1S6HdGi16vwJBx7lviARzbV1HpQHqLLRH3o8vTcB0cLc+5g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chokidar": "^3.3.0",
+ "dependency-graph": "^1.0.0",
+ "fs-extra": "^11.0.0",
+ "picocolors": "^1.0.0",
+ "postcss-load-config": "^5.0.0",
+ "postcss-reporter": "^7.0.0",
+ "pretty-hrtime": "^1.0.3",
+ "read-cache": "^1.0.0",
+ "slash": "^5.0.0",
+ "tinyglobby": "^0.2.12",
+ "yargs": "^17.0.0"
+ },
+ "bin": {
+ "postcss": "index.js"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "postcss": "^8.0.0"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-5.1.0.tgz",
+ "integrity": "sha512-G5AJ+IX0aD0dygOE0yFZQ/huFFMSNneyfp0e3/bT05a8OfPC5FUoZRPfGijUdGOJNMewJiwzcHJXFafFzeKFVA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "lilconfig": "^3.1.1",
+ "yaml": "^2.4.2"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "jiti": ">=1.21.0",
+ "postcss": ">=8.0.9",
+ "tsx": "^4.8.1"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-reporter": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-7.1.0.tgz",
+ "integrity": "sha512-/eoEylGWyy6/DOiMP5lmFRdmDKThqgn7D6hP2dXKJI/0rJSO1ADFNngZfDzxL0YAxFvws+Rtpuji1YIHj4mySA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "picocolors": "^1.0.0",
+ "thenby": "^1.3.4"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/prettier": {
+ "version": "3.8.3",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz",
+ "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "prettier": "bin/prettier.cjs"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/prettier/prettier?sponsor=1"
+ }
+ },
+ "node_modules/prettier-plugin-go-template": {
+ "version": "0.0.15",
+ "resolved": "https://registry.npmjs.org/prettier-plugin-go-template/-/prettier-plugin-go-template-0.0.15.tgz",
+ "integrity": "sha512-WqU92E1NokWYNZ9mLE6ijoRg6LtIGdLMePt2C7UBDjXeDH9okcRI3zRqtnWR4s5AloiqyvZ66jNBAa9tmRY5EQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ulid": "^2.3.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "prettier": "^3.0.0"
+ }
+ },
+ "node_modules/pretty-hrtime": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz",
+ "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/read-cache": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^2.3.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/slash": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/slash/-/slash-5.1.0.tgz",
+ "integrity": "sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz",
+ "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/tapable": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
+ "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/webpack"
+ }
+ },
+ "node_modules/thenby": {
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/thenby/-/thenby-1.3.4.tgz",
+ "integrity": "sha512-89Gi5raiWA3QZ4b2ePcEwswC3me9JIg+ToSgtE0JWeCynLnLxNr/f9G+xfo9K+Oj4AFdom8YNJjibIARTJmapQ==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.14",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",
+ "integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.4.4",
+ "picomatch": "^4.0.2"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyglobby/node_modules/fdir": {
+ "version": "6.4.6",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.6.tgz",
+ "integrity": "sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tinyglobby/node_modules/picomatch": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/ulid": {
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/ulid/-/ulid-2.4.0.tgz",
+ "integrity": "sha512-fIRiVTJNcSRmXKPZtGzFQv9WRrZ3M9eoptl/teFJvjOzmpU+/K/JH6HZ8deBfb5vMEpicJcLn7JmvdknlMq7Zg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "ulid": "bin/cli.js"
+ }
+ },
+ "node_modules/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yaml": {
+ "version": "2.8.3",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz",
+ "integrity": "sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "yaml": "bin.mjs"
+ },
+ "engines": {
+ "node": ">= 14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/eemeli"
+ }
+ },
+ "node_modules/yargs": {
+ "version": "17.7.2",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cliui": "^8.0.1",
+ "escalade": "^3.1.1",
+ "get-caller-file": "^2.0.5",
+ "require-directory": "^2.1.1",
+ "string-width": "^4.2.3",
+ "y18n": "^5.0.5",
+ "yargs-parser": "^21.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yargs-parser": {
+ "version": "21.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ }
+ }
+}
diff --git a/website/themes/hextra/package.json b/website/themes/hextra/package.json
new file mode 100644
index 00000000..37628762
--- /dev/null
+++ b/website/themes/hextra/package.json
@@ -0,0 +1,20 @@
+{
+ "scripts": {
+ "dev:theme": "hugo server --logLevel=debug --config=hugo.yaml,../dev.toml --environment=theme --source=docs --themesDir=../.. -D -F --port 1313",
+ "dev": "hugo server --source=docs --themesDir=../.. --disableFastRender -D --port 1313",
+ "build:css": "npx postcss --config postcss.config.mjs --env production assets/css/styles.css -o assets/css/compiled/main.css",
+ "build": "hugo --gc --minify --themesDir=../.. --source=docs",
+ "test": "npx playwright test",
+ "test:a11y": "npx playwright test tests/accessibility.spec.ts",
+ "test:mobile-menu": "npx playwright test tests/mobile-menu.spec.ts"
+ },
+ "devDependencies": {
+ "@axe-core/playwright": "^4.11.3",
+ "@playwright/test": "^1.60.0",
+ "@tailwindcss/postcss": "^4.3.0",
+ "postcss-cli": "^11.0.1",
+ "prettier": "^3.8.3",
+ "prettier-plugin-go-template": "^0.0.15",
+ "tailwindcss": "^4.3.0"
+ }
+}
diff --git a/website/themes/hextra/playwright.config.ts b/website/themes/hextra/playwright.config.ts
new file mode 100644
index 00000000..9f8a25f9
--- /dev/null
+++ b/website/themes/hextra/playwright.config.ts
@@ -0,0 +1,21 @@
+import { defineConfig } from "@playwright/test";
+
+const baseURL = process.env.BASE_URL || "http://localhost:1313";
+
+export default defineConfig({
+ testDir: "./tests",
+ timeout: 60_000,
+ retries: 0,
+ reporter: [["list"], ["html"]],
+ use: {
+ baseURL,
+ },
+ webServer: process.env.BASE_URL
+ ? undefined
+ : {
+ command: "npx serve docs/public -l tcp://localhost:1313 --no-clipboard",
+ url: baseURL,
+ reuseExistingServer: !process.env.CI,
+ timeout: 30_000,
+ },
+});
diff --git a/website/themes/hextra/postcss.config.mjs b/website/themes/hextra/postcss.config.mjs
new file mode 100644
index 00000000..c2ddf748
--- /dev/null
+++ b/website/themes/hextra/postcss.config.mjs
@@ -0,0 +1,5 @@
+export default {
+ plugins: {
+ "@tailwindcss/postcss": {},
+ },
+};
diff --git a/website/themes/hextra/static/android-chrome-192x192.png b/website/themes/hextra/static/android-chrome-192x192.png
new file mode 100644
index 00000000..7f0493c7
Binary files /dev/null and b/website/themes/hextra/static/android-chrome-192x192.png differ
diff --git a/website/themes/hextra/static/android-chrome-512x512.png b/website/themes/hextra/static/android-chrome-512x512.png
new file mode 100644
index 00000000..faea4c2f
Binary files /dev/null and b/website/themes/hextra/static/android-chrome-512x512.png differ
diff --git a/website/themes/hextra/static/apple-touch-icon.png b/website/themes/hextra/static/apple-touch-icon.png
new file mode 100644
index 00000000..eb281cbb
Binary files /dev/null and b/website/themes/hextra/static/apple-touch-icon.png differ
diff --git a/website/themes/hextra/static/favicon-16x16.png b/website/themes/hextra/static/favicon-16x16.png
new file mode 100644
index 00000000..0f2dd2b2
Binary files /dev/null and b/website/themes/hextra/static/favicon-16x16.png differ
diff --git a/website/themes/hextra/static/favicon-32x32.png b/website/themes/hextra/static/favicon-32x32.png
new file mode 100644
index 00000000..5c1aea58
Binary files /dev/null and b/website/themes/hextra/static/favicon-32x32.png differ
diff --git a/website/themes/hextra/static/favicon.ico b/website/themes/hextra/static/favicon.ico
new file mode 100644
index 00000000..553fa15d
Binary files /dev/null and b/website/themes/hextra/static/favicon.ico differ
diff --git a/website/themes/hextra/static/favicon.svg b/website/themes/hextra/static/favicon.svg
new file mode 100644
index 00000000..6a08d10d
--- /dev/null
+++ b/website/themes/hextra/static/favicon.svg
@@ -0,0 +1,13 @@
+
+
+
diff --git a/website/themes/hextra/static/images/logo-dark.svg b/website/themes/hextra/static/images/logo-dark.svg
new file mode 100644
index 00000000..28572640
--- /dev/null
+++ b/website/themes/hextra/static/images/logo-dark.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/website/themes/hextra/static/images/logo.svg b/website/themes/hextra/static/images/logo.svg
new file mode 100644
index 00000000..1ed7daf0
--- /dev/null
+++ b/website/themes/hextra/static/images/logo.svg
@@ -0,0 +1,3 @@
+
+
+
diff --git a/website/themes/hextra/static/site.webmanifest b/website/themes/hextra/static/site.webmanifest
new file mode 100644
index 00000000..c36f3b37
--- /dev/null
+++ b/website/themes/hextra/static/site.webmanifest
@@ -0,0 +1,20 @@
+{
+ "name": "Hextra",
+ "short_name": "Hextra",
+ "start_url": "index.html",
+ "icons": [
+ {
+ "src": "android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "android-chrome-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#000000",
+ "background_color": "#000000",
+ "display": "standalone"
+}
diff --git a/website/themes/hextra/tests/accessibility.spec.ts b/website/themes/hextra/tests/accessibility.spec.ts
new file mode 100644
index 00000000..ce0d510d
--- /dev/null
+++ b/website/themes/hextra/tests/accessibility.spec.ts
@@ -0,0 +1,103 @@
+import { test, expect } from "@playwright/test";
+import AxeBuilder from "@axe-core/playwright";
+
+const WCAG_TAGS = ["wcag2a", "wcag2aa", "wcag22aa"];
+// TODO: Re-enable once known baseline issues are resolved and tracked.
+const DISABLED_RULES = ["color-contrast", "target-size"];
+const EXCLUDED_SELECTORS = [
+ // Third-party player internals are outside the theme's control and can change
+ // independently, while the iframe element itself remains covered by page HTML.
+ "iframe[src*=\"youtube.com/embed\"]",
+ "iframe[src*=\"youtube-nocookie.com/embed\"]",
+];
+
+type Violation = Awaited<
+ ReturnType["analyze"]>
+>["violations"][number];
+
+function decodeXmlEntities(value: string): string {
+ return value
+ .replace(/&/g, "&")
+ .replace(/</g, "<")
+ .replace(/>/g, ">")
+ .replace(/"/g, '"')
+ .replace(/'/g, "'");
+}
+
+function parseLocUrlsFromSitemap(xml: string): string[] {
+ const locRegex = /\s*([^<]+?)\s*<\/loc>/gi;
+ const urls: string[] = [];
+ let match: RegExpExecArray | null;
+
+ while ((match = locRegex.exec(xml)) !== null) {
+ urls.push(decodeXmlEntities(match[1]));
+ }
+
+ return urls;
+}
+
+async function getEnglishPages(baseURL: string): Promise {
+ const sitemapUrl = `${baseURL}/en/sitemap.xml`;
+ const response = await fetch(sitemapUrl);
+ if (!response.ok) {
+ throw new Error(
+ `Failed to fetch sitemap (${response.status} ${response.statusText}) at ${sitemapUrl}`,
+ );
+ }
+
+ const xml = await response.text();
+ const pages = parseLocUrlsFromSitemap(xml)
+ .map((url) => {
+ try {
+ return new URL(url).pathname;
+ } catch {
+ return url;
+ }
+ });
+
+ if (pages.length === 0) {
+ throw new Error(`Sitemap at ${sitemapUrl} returned no URLs.`);
+ }
+
+ return pages;
+}
+
+function formatViolation(v: Violation): string {
+ return `• ${v.id} (${v.impact}) — ${v.nodes.length} element(s)\n ${v.help}\n ${v.helpUrl}`;
+}
+
+test("all English pages pass axe-core WCAG AA", async ({ page, baseURL }) => {
+ const pages = await getEnglishPages(baseURL!);
+ const failures: string[] = [];
+
+ for (const path of pages) {
+ await test.step(path, async () => {
+ await page.goto(path, { waitUntil: "load" });
+
+ const axe = new AxeBuilder({ page })
+ .withTags(WCAG_TAGS)
+ .disableRules(DISABLED_RULES);
+
+ for (const selector of EXCLUDED_SELECTORS) {
+ axe.exclude(selector);
+ }
+
+ const results = await axe.analyze();
+
+ if (results.violations.length === 0) {
+ return;
+ }
+
+ failures.push(
+ `--- ${path} ---\n${results.violations
+ .map(formatViolation)
+ .join("\n\n")}`,
+ );
+ });
+ }
+
+ expect(
+ failures,
+ `Accessibility violations found:\n\n${failures.join("\n\n")}`,
+ ).toHaveLength(0);
+});
diff --git a/website/themes/hextra/tests/mobile-menu.spec.ts b/website/themes/hextra/tests/mobile-menu.spec.ts
new file mode 100644
index 00000000..bc29e4d6
--- /dev/null
+++ b/website/themes/hextra/tests/mobile-menu.spec.ts
@@ -0,0 +1,157 @@
+import { test, expect } from "@playwright/test";
+import { execFileSync } from "node:child_process";
+import {
+ mkdirSync,
+ mkdtempSync,
+ readFileSync,
+ rmSync,
+ symlinkSync,
+ writeFileSync,
+} from "node:fs";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+
+test("clicking mobile hamburger does not focus the sidebar search input", async ({ page }) => {
+ await page.setViewportSize({ width: 375, height: 812 });
+ await page.goto("/", { waitUntil: "load" });
+
+ const menuButton = page.locator(".hextra-hamburger-menu");
+ await expect(menuButton).toBeVisible();
+
+ const sidebarSearchInput = page.locator(".hextra-sidebar-container .hextra-search-input").first();
+ await expect(sidebarSearchInput).toBeVisible();
+
+ await menuButton.click();
+
+ await expect(menuButton).toHaveAttribute("aria-expanded", "true");
+ await expect(sidebarSearchInput).not.toBeFocused();
+});
+
+test("mobile sidebar exposes main menu dropdown children", async ({ page }) => {
+ await page.setViewportSize({ width: 390, height: 844 });
+ await page.goto("/", { waitUntil: "load" });
+
+ await page.getByRole("button", { name: "Menu" }).click();
+
+ const sidebar = page.locator("aside.hextra-sidebar-container");
+ await expect(sidebar.getByRole("link", { name: "Development ↗" })).toBeVisible();
+ await expect(sidebar.getByRole("link", { name: "v0.10 ↗" })).toBeVisible();
+ await expect(sidebar.getByRole("link", { name: "v0.11 ↗" })).toBeVisible();
+});
+
+test("mobile sidebar uses localized page titles for zh-cn docs navigation", async ({ page }) => {
+ await page.setViewportSize({ width: 390, height: 844 });
+ await page.goto("/zh-cn/", { waitUntil: "load" });
+
+ await page.locator(".hextra-hamburger-menu").click();
+
+ const sidebar = page.locator("aside.hextra-sidebar-container");
+ const gettingStarted = sidebar.locator('a[href="/zh-cn/docs/getting-started/"]');
+ const guide = sidebar.locator('a[href="/zh-cn/docs/guide/"]');
+ const organizeFiles = sidebar.locator('a[href="/zh-cn/docs/guide/organize-files/"]');
+
+ await expect(gettingStarted).toBeVisible();
+ await expect(gettingStarted).toHaveText("快速开始");
+ await expect(guide).toBeVisible();
+ await expect(guide).toHaveText("指南");
+ await expect(organizeFiles).toBeVisible();
+ await expect(organizeFiles).toHaveText("文件组织");
+ await expect(gettingStarted).not.toHaveText("Getting Started");
+ await expect(guide).not.toHaveText("Guide");
+});
+
+test("mobile sidebar falls back to content tree when main menu has no eligible entries", async ({
+ page,
+}) => {
+ const siteDir = mkdtempSync(join(tmpdir(), "hextra-mobile-menu-"));
+ const contentDir = join(siteDir, "content");
+ const publishDir = join(siteDir, "public");
+ const themesDir = join(siteDir, "themes");
+
+ mkdirSync(join(contentDir, "docs"), { recursive: true });
+ mkdirSync(join(contentDir, "donate"), { recursive: true });
+ mkdirSync(themesDir);
+ symlinkSync(process.cwd(), join(themesDir, "hextra"), "dir");
+ writeFileSync(
+ join(siteDir, "hugo.yaml"),
+ `title: Test
+theme: hextra
+menu:
+ main:
+ - name: Donate
+ pageRef: /donate
+ weight: 1
+ - name: Search
+ weight: 2
+ params:
+ type: search
+ - name: GitHub
+ weight: 3
+ url: "https://github.com/imfing/hextra"
+ params:
+ icon: github
+`,
+ );
+ writeFileSync(
+ join(contentDir, "_index.md"),
+ `---
+title: Home
+cascade:
+ type: docs
+---
+`,
+ );
+ writeFileSync(
+ join(contentDir, "docs", "_index.md"),
+ `---
+title: Docs
+---
+`,
+ );
+ writeFileSync(
+ join(contentDir, "docs", "getting-started.md"),
+ `---
+title: Getting Started
+---
+`,
+ );
+ writeFileSync(
+ join(contentDir, "donate", "index.md"),
+ `---
+title: Donate
+sidebar:
+ exclude: true
+---
+`,
+ );
+
+ try {
+ execFileSync(
+ "hugo",
+ [
+ "--source",
+ siteDir,
+ "--themesDir",
+ themesDir,
+ "--destination",
+ publishDir,
+ ],
+ { cwd: process.cwd(), stdio: "pipe" },
+ );
+
+ const html = readFileSync(join(publishDir, "index.html"), "utf8");
+ await page.setContent(html);
+
+ const mobileSidebar = page
+ .locator("aside.hextra-sidebar-container ul")
+ .filter({ has: page.locator('a[href="/docs/"]') })
+ .first();
+
+ await expect(mobileSidebar.locator('a[href="/docs/"]')).toHaveText("Docs");
+ await expect(
+ mobileSidebar.locator('a[href="/docs/getting-started/"]'),
+ ).toHaveText("Getting Started");
+ } finally {
+ rmSync(siteDir, { recursive: true, force: true });
+ }
+});
diff --git a/website/themes/hextra/theme.toml b/website/themes/hextra/theme.toml
new file mode 100644
index 00000000..3e01ce1d
--- /dev/null
+++ b/website/themes/hextra/theme.toml
@@ -0,0 +1,16 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoiox/hugoThemes#themetoml for an example
+
+name = "Hextra"
+license = "MIT"
+licenselink = "https://github.com/imfing/hextra/blob/main/LICENSE"
+description = "Modern, responsive, batteries-included Hugo theme for creating beautiful static websites."
+homepage = "https://github.com/imfing/hextra/"
+demosite = "https://imfing.github.io/hextra/"
+tags = ["Modern", "Elegant", "Blog", "Documentation", "Responsive", "Clean", "Light", "Dark", "Minimal"]
+features = ["Responsive", "Dark Mode", "Search", "Syntax Highlighting", "Multilingual", "Social", "Blog", "RSS", "Customization"]
+min_version = "0.146.0"
+
+[author]
+ name = "Xin"
+ homepage = "https://imfing.com"