# Branchlane — Tailwind mega-menu kit

Free original responsive navigation component, visual link editor and portable project/HTML output. No framework, CDN, account, telemetry or payment. Original fictional Northline Supply example; no competitor code, brand or assets.

## First use
Unzip branchlane-1.0.0.zip. From the extracted root, run `python3 -m http.server 8804 --bind 127.0.0.1`, then open `http://127.0.0.1:8804/app/index.html`. Prebuilt files run without npm. Use the live top navigation or scroll to editor controls. Actual local development instructions never authorize bypassing a browser security denial.

1. Change Brand, Menu note, Theme and Accent, then **Apply identity**.
2. Choose a Section. Edit its label and Apply section; direct links also have Destination. Add a panel or direct link, or remove a section (at least one remains).
3. For a panel, choose a Column; change its heading, add/remove columns. Choose a Link; edit label, destination and description, and Apply link. Nested links use one `label | destination | optional description` per line (an unchanged two-field child keeps its current description; an empty third field clears it); blank removes nesting. This is one extra level only. Add/remove/reorder links with the labeled buttons.
4. Each Apply commits atomically. Unapplied fields are not saved/exported. Opening/closing a preview panel never changes the project. Changes are best-effort drafted in this browser; quota/security errors require portable JSON instead. **Save JSON** always downloads the complete project; download before replacing or making large edits.
5. **Open project** validates first. Use **Replace working project** or **Keep current project** inline; no native confirm modal. A malformed/unsafe/oversized input preserves current applied work. There is no undo history; saved JSON backups are the recovery path.
6. **Export HTML** saves a self-contained working navigation demo with current options and exact tested CSS/runtime. Included same-page destination sections are synthetic placeholders; replace them with your real content. The editor’s sample decorative scene is not part of your menu markup. Links are ordinary links: the developer must supply real safe destinations.
7. **Show integration markup** reveals editable Tailwind utility HTML with a labeled readonly code field. Select all and Ctrl/Cmd+C. **Download integration HTML** saves that markup with local style/runtime references. Place it in the extracted root beside `lib/` and `styles/`. The HTML contains your links; unlike the standalone demo it creates no destination content.

## Embed and maintain
Load `styles/tailwind.css`, `styles/component.css`, and `lib/navigation.js`. Copy the rendered `<div class="bl-menu ...">` from the integration output into your page and call `Branchlane.mount(document.getElementById('your-unique-root-id'))`. Use a unique root/panel/control ID set for every copy; use the editor export or core.render(project, uniqueId) to generate it. `samples/two-menus.html` is a complete isolated-instance example with destroy/reinitialize controls. Its page-scoped layout keeps both panels in document flow so the two open examples and lifecycle controls remain reachable; this override is confined to the demonstration page. Normal single-menu integration retains the supplied desktop dropdown styling. `samples/storefront.html` is a built example, not proof of actual user download testing.

`const controller = Branchlane.mount(root)` is idempotent for that exact root. `controller.closeAll()` closes category/nested panels; `controller.refresh()` rechecks root width; `controller.destroy()` removes root/document/resize listeners, observer and enhancement classes, restores the original static markup and unregisters the root. Reinitialize after changing markup. Destroy restores serialized DOM, not child DOM event handlers attached before mounting; attach application handlers outside the restored child content or rebind. Namespace all custom code. Component CSS is beneath `.bl-menu`; compiled Tailwind uses `bltw:` prefixed utilities, no preflight reset. Avoid loading a different unprefixed Tailwind reset just for this kit.

No-JS markup exposes all category links. Enhanced runtime uses ordinary semantic nav/list/anchor/button disclosure, not a desktop application menu role. Tab follows normal browser order; Enter/Space toggles buttons; Escape closes innermost active disclosure and restores its trigger, then the mobile menu. Outside pointer and focus leaving close panels. Other Branchlane roots retain independent state. Click activation, no hover-only path and no focus trap. The Menu toggle appears at **720px component width** via ResizeObserver; mobile panels stack in document flow. Desktop panels scroll internally if very tall; desktop page and mobile page can scroll normally. Reduced-motion avoids unnecessary animation; visible focus uses a thick outline. Real screen-reader, physical touch and other-browser-engine compatibility remain unverified until independent evidence exists.

## Data and bounds
Branchlane v1 JSON: format, version, brand, tagline, theme(light/dark), accent(moss/clay/indigo), sections. A section has label and either href or columns. A column has heading/links; a link has label/href/description and optional one-level children. Bounds:1–6sections,1–4columns,1–10links/column,1–6children,100total links,100KBJSON; labels60characters,description160,tagline140. URLs: relative path/hash or HTTP(S), no embedded credentials, protocol-relative or unsafe scheme. Text is escaped, never treated as HTML. No form/backend/cart/login/search/checkout implementation. Current-page highlighting is local to selected links; integrate your router if you need cross-page state.

## Rebuild
Node/npm are optional for editing the provided source and recompiling CSS. From the extracted root: `npm ci --ignore-scripts --no-audit --no-fund`, then `node scripts/build.cjs`. Tailwind CSS and CLI4.1.18 are locked. The build compiles styles/tailwind.input.css against lib/core.js/sample markup, refreshes exact export assets, the ordered app/runtime.js and sample HTML. There is no CSS CDN. If you add new Tailwind classes, ensure they occur literally in scanned sources or add an explicit @source, then rebuild. Native Tailwind compiler dependencies require supported Node/OS binaries; prebuilt kit use needs none. JSdom is development QA only. Full-checkout Node tests and Python packaging scripts are internal and excluded from the customer ZIP; the build script is included. Never relabel generated examples as real CUA evidence.

## Terms and verification
LICENSE.txt is the exact approved Nishvault Free Product Use Terms. Personal/commercial use and output sharing/embedding are allowed; redistribution/resale of the package as a competing product is not. Tailwind’s own MIT license remains separate in vendor/tailwind-LICENSE.txt. No guaranteed support/service level/update schedule. Future custom integration is separate and unpriced.

Technical tests and actual browser proof remain distinct. Product QA requires actual JSON download/native chooser/re-download field equality, actual HTML/integration interaction, keyboard/nested/mobile behavior, independent instances, and inspected1440×900/390×844 screenshots. Consult evidence/qa/report.json in the development handoff for current status; it is intentionally outside the customer ZIP. Local package preparation does not imply publication, traffic or sales. Optional hosted measurement is publisher-only, outside this offline kit.
