# Footer Venue

> A footer for a place with opening hours: address and Directions, the week with today under an ink pill, a status worked out at the place's own time that rolls when it changes, the phone and Book.

Footer · footer, site footer, restaurant, opening hours, open now, address, directions, time zone, local business · HTML, CSS, vanilla JS · no dependencies · updated 2026-10-28
Demo: https://kodza.dev/components/footer-venue/
Source on GitHub: https://github.com/kodza-dev/kodza/tree/main/components/footer-venue

## Files

The code below, served as files: byte for byte what the Kodza site copies (the CSS includes its theme guard).

- [`kodza-footer-venue.css`](https://kodza.dev/registry/footer-venue/kodza-footer-venue.css) · 32.5 KB
- [`kodza-footer-venue.js`](https://kodza.dev/registry/footer-venue/kodza-footer-venue.js) · 15.9 KB
- [`kodza-footer-venue.html`](https://kodza.dev/registry/footer-venue/kodza-footer-venue.html) · 4.5 KB · the markup, to adapt and paste into your page

**Can you run shell commands? Download the CSS and the JS, don't retype them.** Retyping costs thousands of tokens and can drop or change lines of the CSS. Put the files where your stack expects them (Use it says where: change the `-o` paths):

```bash
curl -fsSL --create-dirs -o kodza/kodza-footer-venue.css https://kodza.dev/registry/footer-venue/kodza-footer-venue.css
curl -fsSL --create-dirs -o kodza/kodza-footer-venue.js https://kodza.dev/registry/footer-venue/kodza-footer-venue.js
```

Then load the files from your page as Use it shows, instead of pasting the content. The HTML is the part you adapt (text, links, modifiers): paste it from the Code section. Copy the CSS and the JS from the Code section only if you can't run commands, exactly as they are. (Windows PowerShell: `curl.exe`.)

## API

- Root: `.kodza-footer-venue`
- Variables (set them on the root element itself: it declares its own defaults):
  - `--kz-footer-venue-bg: #ffffff`
  - `--kz-footer-venue-fg: #0a0a0a`
  - `--kz-footer-venue-muted: rgba(10, 10, 10, 0.62)`
  - `--kz-footer-venue-line: rgba(10, 10, 10, 0.1)`
  - `--kz-footer-venue-width: 1200px` — the content, centred
  - `--kz-footer-venue-pad: 24px`
  - `--kz-footer-venue-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace`
  - `--kz-footer-venue-ease: cubic-bezier(0.22, 1, 0.36, 1)`
- Attributes:
  - `data-day` (e.g. `mon`, `tue`, `wed`, `thu`, `fri`, `sat`)
  - `data-now`
  - `data-soon`
  - `data-timezone` (e.g. `Europe/Paris`)
- Lifecycle: `kodza:init` / `kodza:destroy` on `document`, with `{ detail: { root } }` to target a container.

## Keyboard

What each key does, by where the focus is. Keep it working when you adapt the HTML: same elements, same classes.

- On All hours, on a phone (focus in `.kodza-footer-venue__all`):
  - `Enter` / `Space`: Unfolds the week, or folds it back to today

## Dark mode

The values Kodza uses on a dark background (`#0a0a0a`). For a page that follows the system theme, add them after the component's CSS:

```css
@media (prefers-color-scheme: dark) {
  .kodza-footer-venue {
    --kz-footer-venue-bg: #141414;
    --kz-footer-venue-fg: #f2f2f0;
    --kz-footer-venue-muted: rgba(242, 242, 240, 0.62);
    --kz-footer-venue-line: rgba(255, 255, 255, 0.12);
  }
}
```

A site with its own theme switch puts the same rules under its dark selector instead (`[data-theme="dark"] .kodza-footer-venue { … }`); a single dark section, under that section's class.

Every colour is a variable on the footer: set --kz-footer-venue-bg, -fg, -muted and -line (the demo's dark band has the recipe). The pill and its text follow -fg and -bg.

## Use it

### Plain HTML page

- CSS: `kodza/kodza-footer-venue.css` next to the page (the Files commands as they are), linked in `<head>`: `<link rel="stylesheet" href="kodza/kodza-footer-venue.css">`. Without a shell, paste it in a `<style>` in `<head>` instead. It only touches `kodza-` classes.
- HTML: where the component goes. Paste it as many times as you need: instances never interfere.
- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put the place's name, one line and the Book link in the head. (3) Write the address and the Directions link (a maps search for the address). (4) Write the week: a row per day, data-day="mon" to "sun", each opening as two <time datetime="HH:MM"> (a day with none is closed; past midnight, 23:00–02:00, works). (5) Set data-timezone to the place's zone; data-soon (60 by default) is how many minutes before closing the status counts down. --kz-footer-venue-width sets how wide the content runs (1200px by default).
- JS: `kodza/kodza-footer-venue.js`, loaded with `<script src="kodza/kodza-footer-venue.js" defer></script>` in `<head>`. Without a shell, paste it in a `<script>` before `</body>` (or in `<head>`: it waits for the page). One copy per page, whatever the number of instances.
- Restyle with the `--kz-…` variables, set on the component's root element itself (the root declares its own defaults, so a value on an ancestor is ignored), and with the modifiers / attributes listed under API.
- Font: it takes the page's own. The Kodza look is Geist: `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`.
- Content added later (AJAX navigation, a SPA route, a builder preview): start it with `document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: container } }))`; before removing it, the same call with `'kodza:destroy'` stops it and puts the original markup back.

### Claude artifact (claude.ai)

- Paste the CSS in a `<style>` and the JS in a `<script>` at the end, in the artifact itself: it loads stylesheets only from Google Fonts and scripts only from a few CDNs, so no `<link>` or `<script src>` to Kodza.
- Writing the artifact file with a shell? Insert the downloaded files (Files) with a command instead of retyping them: a line `KODZA-CSS` alone inside the `<style>`, `KODZA-JS` inside the `<script>`, then `sed -e '/^KODZA-CSS$/{r kodza/kodza-footer-venue.css' -e 'd' -e '}' -e '/^KODZA-JS$/{r kodza/kodza-footer-venue.js' -e 'd' -e '}' page.html > artifact.html`.
- Font: load Geist from Google Fonts (allowed): `<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap">`.
- Dark mode: the viewer sets `data-theme="dark"` or `"light"` on `<html>`, or nothing when it follows the system. Write the Dark mode rules twice: inside `@media (prefers-color-scheme: dark)` with `:root:not([data-theme="light"])` in front of each selector, and with `:root[data-theme="dark"]` in front of each selector.
- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put the place's name, one line and the Book link in the head. (3) Write the address and the Directions link (a maps search for the address). (4) Write the week: a row per day, data-day="mon" to "sun", each opening as two <time datetime="HH:MM"> (a day with none is closed; past midnight, 23:00–02:00, works). (5) Set data-timezone to the place's zone; data-soon (60 by default) is how many minutes before closing the status counts down. --kz-footer-venue-width sets how wide the content runs (1200px by default).

### WordPress

- HTML: a **Custom HTML** block (or a pattern / template part). WordPress keeps this markup as it is only for users allowed to post unfiltered HTML (Administrators; Super Admins on multisite): for anyone else it strips tags such as `<svg>`, `<input>` or `<dialog>`, so add it from the theme (a pattern or template part) instead.
- This one spans the page: a block theme keeps a Custom HTML block to the width of the text column, so put it inside a **Group** block set to **Full width**, with **Inner blocks use content width** turned off.
- CSS and JS: the downloaded files go in the theme, under `wp-content/themes/<your-theme>/kodza/` (the child theme if there is one), enqueued from its functions.php (or a code-snippets plugin):
  ```php
  add_action('wp_enqueue_scripts', function () {
    $dir = get_stylesheet_directory() . '/kodza/';
    $uri = get_stylesheet_directory_uri() . '/kodza/';
    wp_enqueue_style('kodza-footer-venue', $uri . 'kodza-footer-venue.css', [], filemtime($dir . 'kodza-footer-venue.css'));
    wp_enqueue_script('kodza-footer-venue', $uri . 'kodza-footer-venue.js', [], filemtime($dir . 'kodza-footer-venue.js'), true);
  });
  ```
  Scoped to `kodza-` classes, the CSS never touches the theme. One copy of the JS, whatever the number of blocks.
- No access to the theme files? The CSS can also go, as it is, in **Appearance → Customize → Additional CSS** (classic theme) or **Styles → Additional CSS** in the Site Editor (block theme).
- Theme with AJAX page transitions: fire `kodza:init` on the new content after each swap (and `kodza:destroy` on the old one).
- Performance plugin (WP Rocket, LiteSpeed Cache, Perfmatters…) with **Delay JavaScript execution** turned on: add `kodza` to the scripts it must not delay. Otherwise the component waits for the visitor's first scroll, tap or mouse move, and that first click can be lost.
- Colours: it takes the colour of the text around it (or keeps its own monochrome): nothing to point at the theme.
- WordPress turns straight quotes and `--` into typographic ones in the text of a Custom HTML block (not inside `<code>` or `<pre>`).
- Put it in the site footer (Site Editor → Patterns → Footer, or the theme's footer.php) in place of the theme's own footer. Write the week once, a row per day with data-day and its <time> pairs; data-timezone takes the place's time zone (Europe/Paris), whatever the server's. The script writes the year and the status.

#### With Elementor

- HTML: an **HTML** widget (Elementor shows it to administrators only). It keeps the code exactly as pasted, straight quotes included.
- This one spans the page: give the widget its own container, **Content Width: Full Width**, padding 0.
- CSS and JS: as above. Elementor's Site Settings → Theme Style styles every button, field, link and image of the page, components included; the theme guard at the end of the CSS keeps the component's buttons, fields and link colours as they are.
- The Elementor editor redraws each widget after the page has loaded: without the script below, the component stays still in the editor preview (the published page works). Add it once per site, in the footer like the component's script (`kodza/elementor-editor.js`, or a code-snippets plugin):

```js
// Kodza in the Elementor editor: the editor redraws each HTML widget after the page has loaded.
// Start Kodza in what it draws, stop it in what it replaces or removes. Once per site.
window.addEventListener('elementor/frontend/init', () => {
  if (!elementorFrontend.isEditMode()) return;
  class KodzaWidget extends elementorModules.frontend.handlers.Base {
    onInit() {
      super.onInit();
      this.kodza = [...this.$element[0].children];
      document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: this.$element[0] } }));
    }
    onDestroy() {
      super.onDestroy();
      this.kodza.forEach((root) => document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } })));
    }
  }
  elementorFrontend.elementsHandler.attachHandler('html', KodzaWidget);
});
```

- No child theme: everything can go in the HTML widget instead, `<style>` with the CSS, the HTML, then `<script>` with the JS. It works on the page and in the editor without the script above.

### Shopify

- Files: `assets/kodza-footer-venue.css` and `assets/kodza-footer-venue.js` (the Files commands with `-o assets/…`).
- In the section: `{{ 'kodza-footer-venue.css' | asset_url | stylesheet_tag }}` and `<script src="{{ 'kodza-footer-venue.js' | asset_url }}" defer></script>`, then the HTML.
- The theme editor re-renders sections: restart them with
  `document.addEventListener('shopify:section:load', (e) => document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root: e.target } })));`
  and the same with `shopify:section:unload` → `kodza:destroy`.
- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put the place's name, one line and the Book link in the head. (3) Write the address and the Directions link (a maps search for the address). (4) Write the week: a row per day, data-day="mon" to "sun", each opening as two <time datetime="HH:MM"> (a day with none is closed; past midnight, 23:00–02:00, works). (5) Set data-timezone to the place's zone; data-soon (60 by default) is how many minutes before closing the status counts down. --kz-footer-venue-width sets how wide the content runs (1200px by default).

### React / Next.js

- Files, side by side (e.g. in `components/kodza/`): `FooterVenue.tsx` (below), the CSS block under Code saved as `footer-venue.css` and the JS block as `footer-venue.js`, both as they are. The HTML block is already inside the component: skip it.
- Use it: `import { FooterVenue } from '@/components/kodza/FooterVenue';` then `<FooterVenue />`. Props: `timezone` (`data-timezone`: "Europe/Paris"), `vars` (the `--kz-…` variables listed under API, e.g. `vars={{ '--kz-footer-venue-bg': … }}`), `className`, `style` and the other props of its `<footer>` (`onClick`, `aria-…`).
- Next.js App Router: it is a Client Component already (`'use client'`). Pages Router: Next.js takes global CSS only in `pages/_app`, so move the `import './footer-venue.css'` line there.
- Safe under StrictMode, client-side navigation and prop changes: when a prop changes, the `key` gives React a fresh element, `kodza:destroy` stops the script on the old one and `kodza:init` starts it on the new one.
- Built from your data (tabs, rows, options)? Add what the markup is made of to the `key`, as plain values (ids, text, numbers). What the visitor changes (the open tab, the sort, what they type) is the script's: follow it with `onClick` or `onInput` on the root, and change it from your code as a visitor would (click the tab; set the field's value, then dispatch a bubbling `input` event). Fields stay uncontrolled (`defaultValue`, `name`).

```tsx
'use client';
// Kodza — Footer Venue, for React. From https://kodza.dev/components/footer-venue/
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Next to this file: footer-venue.css and footer-venue.js, the component's CSS and JS from Kodza, as they are.
// Yours to edit: the markup is plain JSX below.
// The script changes this markup once React has rendered it (it adds layers, splits text, moves
// nodes), so React must not patch it afterwards. When a prop changes, the key gives React a fresh
// element: kodza:destroy stops the script on the old one, kodza:init starts it on the new one.
// Built from your data (tabs, rows, options)? Put what the markup is made of in the key, as plain
// values (ids, text, numbers): a change starts the script again on fresh markup. What the visitor
// changes (the open tab, the sort, what they type) is the script's: keep it out of the key, follow
// it with onClick or onInput on the root, and change it from your code as a visitor would (click
// the tab; set the field's value, then dispatch a bubbling input event).
import { useRef, useEffect, type ComponentPropsWithoutRef, type ComponentRef, type CSSProperties } from 'react';
import './footer-venue.css';

export type FooterVenueProps = Omit<ComponentPropsWithoutRef<'footer'>, "children" | "vars" | "timezone"> & {
  /** data-timezone on the root (default: Europe/Paris) */
  timezone?: "Europe/Paris";
  /** Settings, as CSS variables on the root */
  vars?: {
    /** default: #ffffff */
    "--kz-footer-venue-bg"?: string | number;
    /** default: #0a0a0a */
    "--kz-footer-venue-fg"?: string | number;
    /** default: rgba(10, 10, 10, 0.62) */
    "--kz-footer-venue-muted"?: string | number;
    /** default: rgba(10, 10, 10, 0.1) */
    "--kz-footer-venue-line"?: string | number;
    /** the content, centred — default: 1200px */
    "--kz-footer-venue-width"?: string | number;
    /** default: 24px */
    "--kz-footer-venue-pad"?: string | number;
    /** default: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace */
    "--kz-footer-venue-mono"?: string | number;
    /** default: cubic-bezier(0.22, 1, 0.36, 1) */
    "--kz-footer-venue-ease"?: string | number;
  };
  className?: string;
};

export function FooterVenue({ timezone = "Europe/Paris", vars, className, style, ...rest }: FooterVenueProps) {
  const ref = useRef<ComponentRef<'footer'>>(null);
  const classes = ["kodza-footer-venue", className].filter(Boolean).join(' ');
  // Everything the markup is made of: when it changes, React gets a fresh element (see the top)
  const key = JSON.stringify([classes, timezone, vars, style, rest]);

  // Starts the script on this element once React has rendered it, stops it when it goes
  useEffect(() => {
    const root = ref.current;
    let live = true;
    // @ts-ignore: a plain script, no types to find
    import('./footer-venue.js').then(() => {
      if (live) document.dispatchEvent(new CustomEvent('kodza:init', { detail: { root } }));
    });
    return () => {
      live = false;
      document.dispatchEvent(new CustomEvent('kodza:destroy', { detail: { root } }));
    };
  }, [key]);

  return (
    <footer key={key} {...rest} className={classes} data-timezone={timezone} style={{ ...vars, ...style } as CSSProperties} ref={ref}>
      <div className="kodza-footer-venue__inner">
        <div className="kodza-footer-venue__head">
          <div className="kodza-footer-venue__brand">
            <a className="kodza-footer-venue__logo" href="#" aria-label="Le Quai, home">Le Quai</a>
            <p className="kodza-footer-venue__pitch">A table on the quay.</p>
          </div>
          <a className="kodza-footer-venue__book" href="#">Book a table</a>
        </div>
        <div className="kodza-footer-venue__main">
          <div className="kodza-footer-venue__block">
            <p className="kodza-footer-venue__label">Find us</p>
            <address className="kodza-footer-venue__address">
              <span>8 quai Frissard</span>
              <span>76600 Le Havre</span>
            </address>
            <a className="kodza-footer-venue__go" href={"https://www.google.com/maps/search/?api=1&query=8+quai+Frissard+Le+Havre"} target="_blank" rel="noopener">Directions<span className="kodza-footer-venue__arrow" aria-hidden="true"> <svg viewBox="0 0 12 12" width="12" height="12"> <path d="M3 9l6-6M4 3h5v5" /> </svg> <svg viewBox="0 0 12 12" width="12" height="12"> <path d="M3 9l6-6M4 3h5v5" /> </svg> </span></a>
          </div>
          <div className="kodza-footer-venue__block">
            <p className="kodza-footer-venue__label">Hours</p>
            <p className="kodza-footer-venue__status">
              <span className="kodza-footer-venue__dot" aria-hidden="true" />
              <span className="kodza-footer-venue__text">
                <span>Open Tue–Sun</span>
              </span>
            </p>
            <div className="kodza-footer-venue__window">
              <ul className="kodza-footer-venue__week" aria-label="Opening hours">
                <li className="kodza-footer-venue__day" data-day="mon">
                  <span className="kodza-footer-venue__name">Mon</span>
                  <span className="kodza-footer-venue__times">Closed</span>
                </li>
                <li className="kodza-footer-venue__day" data-day="tue">
                  <span className="kodza-footer-venue__name">Tue</span>
                  <span className="kodza-footer-venue__times"><time dateTime="12:00">12:00</time>–<time dateTime="14:30">14:30</time>, <time dateTime="19:00">19:00</time>–<time dateTime="22:30">22:30</time></span>
                </li>
                <li className="kodza-footer-venue__day" data-day="wed">
                  <span className="kodza-footer-venue__name">Wed</span>
                  <span className="kodza-footer-venue__times"><time dateTime="12:00">12:00</time>–<time dateTime="14:30">14:30</time>, <time dateTime="19:00">19:00</time>–<time dateTime="22:30">22:30</time></span>
                </li>
                <li className="kodza-footer-venue__day" data-day="thu">
                  <span className="kodza-footer-venue__name">Thu</span>
                  <span className="kodza-footer-venue__times"><time dateTime="12:00">12:00</time>–<time dateTime="14:30">14:30</time>, <time dateTime="19:00">19:00</time>–<time dateTime="22:30">22:30</time></span>
                </li>
                <li className="kodza-footer-venue__day" data-day="fri">
                  <span className="kodza-footer-venue__name">Fri</span>
                  <span className="kodza-footer-venue__times"><time dateTime="12:00">12:00</time>–<time dateTime="14:30">14:30</time>, <time dateTime="19:00">19:00</time>–<time dateTime="23:30">23:30</time></span>
                </li>
                <li className="kodza-footer-venue__day" data-day="sat">
                  <span className="kodza-footer-venue__name">Sat</span>
                  <span className="kodza-footer-venue__times"><time dateTime="12:00">12:00</time>–<time dateTime="14:30">14:30</time>, <time dateTime="19:00">19:00</time>–<time dateTime="23:30">23:30</time></span>
                </li>
                <li className="kodza-footer-venue__day" data-day="sun">
                  <span className="kodza-footer-venue__name">Sun</span>
                  <span className="kodza-footer-venue__times"><time dateTime="12:00">12:00</time>–<time dateTime="15:30">15:30</time></span>
                </li>
              </ul>
            </div>
            <button className="kodza-footer-venue__all" type="button" aria-expanded="false">All hours<svg viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"> <path d="M2.5 4.5L6 8l3.5-3.5" /> </svg></button>
          </div>
          <div className="kodza-footer-venue__block">
            <p className="kodza-footer-venue__label">Talk to us</p>
            <a className="kodza-footer-venue__phone" href="tel:+33261911806">02 61 91 18 06</a>
            {' '}
            <a className="kodza-footer-venue__link" href="mailto:table@example.com">table@example.com</a>
            <p className="kodza-footer-venue__note">Eight or more? Call us, we'll push two tables together.</p>
          </div>
        </div>
        <div className="kodza-footer-venue__base">
          <p className="kodza-footer-venue__copy">© <span className="kodza-footer-venue__year">2026</span> Le Quai</p>
          <ul className="kodza-footer-venue__row">
            <li>
              <a className="kodza-footer-venue__link" href="#">Legal</a>
            </li>
            <li>
              <a className="kodza-footer-venue__link" href="#">Privacy</a>
            </li>
            <li>
              <a className="kodza-footer-venue__link" href="#">Instagram</a>
            </li>
          </ul>
        </div>
      </div>
    </footer>
  );
}
```

- Where it goes, step by step. (1) At the end of the page, as its only footer, across the full width. (2) Put the place's name, one line and the Book link in the head. (3) Write the address and the Directions link (a maps search for the address). (4) Write the week: a row per day, data-day="mon" to "sun", each opening as two <time datetime="HH:MM"> (a day with none is closed; past midnight, 23:00–02:00, works). (5) Set data-timezone to the place's zone; data-soon (60 by default) is how many minutes before closing the status counts down. --kz-footer-venue-width sets how wide the content runs (1200px by default).

## Code

```html
<footer class="kodza-footer-venue" data-timezone="Europe/Paris">
  <div class="kodza-footer-venue__inner">
    <div class="kodza-footer-venue__head">
      <div class="kodza-footer-venue__brand">
        <a class="kodza-footer-venue__logo" href="#" aria-label="Le Quai, home">Le Quai</a>
        <p class="kodza-footer-venue__pitch">A table on the quay.</p>
      </div>
      <a class="kodza-footer-venue__book" href="#">Book a table</a>
    </div>
    <div class="kodza-footer-venue__main">
      <div class="kodza-footer-venue__block">
        <p class="kodza-footer-venue__label">Find us</p>
        <address class="kodza-footer-venue__address"><span>8 quai Frissard</span><span>76600 Le Havre</span></address>
        <a class="kodza-footer-venue__go" href="https://www.google.com/maps/search/?api=1&amp;query=8+quai+Frissard+Le+Havre" target="_blank" rel="noopener">Directions<span class="kodza-footer-venue__arrow" aria-hidden="true"><svg viewBox="0 0 12 12" width="12" height="12"><path d="M3 9l6-6M4 3h5v5"/></svg><svg viewBox="0 0 12 12" width="12" height="12"><path d="M3 9l6-6M4 3h5v5"/></svg></span></a>
      </div>
      <div class="kodza-footer-venue__block">
        <p class="kodza-footer-venue__label">Hours</p>
        <p class="kodza-footer-venue__status"><span class="kodza-footer-venue__dot" aria-hidden="true"></span><span class="kodza-footer-venue__text"><span>Open Tue–Sun</span></span></p>
        <div class="kodza-footer-venue__window">
          <ul class="kodza-footer-venue__week" aria-label="Opening hours">
            <li class="kodza-footer-venue__day" data-day="mon"><span class="kodza-footer-venue__name">Mon</span><span class="kodza-footer-venue__times">Closed</span></li>
            <li class="kodza-footer-venue__day" data-day="tue"><span class="kodza-footer-venue__name">Tue</span><span class="kodza-footer-venue__times"><time datetime="12:00">12:00</time>–<time datetime="14:30">14:30</time>, <time datetime="19:00">19:00</time>–<time datetime="22:30">22:30</time></span></li>
            <li class="kodza-footer-venue__day" data-day="wed"><span class="kodza-footer-venue__name">Wed</span><span class="kodza-footer-venue__times"><time datetime="12:00">12:00</time>–<time datetime="14:30">14:30</time>, <time datetime="19:00">19:00</time>–<time datetime="22:30">22:30</time></span></li>
            <li class="kodza-footer-venue__day" data-day="thu"><span class="kodza-footer-venue__name">Thu</span><span class="kodza-footer-venue__times"><time datetime="12:00">12:00</time>–<time datetime="14:30">14:30</time>, <time datetime="19:00">19:00</time>–<time datetime="22:30">22:30</time></span></li>
            <li class="kodza-footer-venue__day" data-day="fri"><span class="kodza-footer-venue__name">Fri</span><span class="kodza-footer-venue__times"><time datetime="12:00">12:00</time>–<time datetime="14:30">14:30</time>, <time datetime="19:00">19:00</time>–<time datetime="23:30">23:30</time></span></li>
            <li class="kodza-footer-venue__day" data-day="sat"><span class="kodza-footer-venue__name">Sat</span><span class="kodza-footer-venue__times"><time datetime="12:00">12:00</time>–<time datetime="14:30">14:30</time>, <time datetime="19:00">19:00</time>–<time datetime="23:30">23:30</time></span></li>
            <li class="kodza-footer-venue__day" data-day="sun"><span class="kodza-footer-venue__name">Sun</span><span class="kodza-footer-venue__times"><time datetime="12:00">12:00</time>–<time datetime="15:30">15:30</time></span></li>
          </ul>
        </div>
        <button class="kodza-footer-venue__all" type="button" aria-expanded="false">All hours<svg viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M2.5 4.5L6 8l3.5-3.5"/></svg></button>
      </div>
      <div class="kodza-footer-venue__block">
        <p class="kodza-footer-venue__label">Talk to us</p>
        <a class="kodza-footer-venue__phone" href="tel:+33261911806">02 61 91 18 06</a>
        <a class="kodza-footer-venue__link" href="mailto:table@example.com">table@example.com</a>
        <p class="kodza-footer-venue__note">Eight or more? Call us, we'll push two tables together.</p>
      </div>
    </div>
    <div class="kodza-footer-venue__base">
      <p class="kodza-footer-venue__copy">© <span class="kodza-footer-venue__year">2026</span> Le Quai</p>
      <ul class="kodza-footer-venue__row">
        <li><a class="kodza-footer-venue__link" href="#">Legal</a></li>
        <li><a class="kodza-footer-venue__link" href="#">Privacy</a></li>
        <li><a class="kodza-footer-venue__link" href="#">Instagram</a></li>
      </ul>
    </div>
  </div>
</footer>
```

```css
/* Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license */
/* Kodza — Footer Venue
   The end of a restaurant's site, or a café's, a hotel's, a shop's: the name and Book a table,
   then where to find it, the week of hours and how to call. The status works out, at the place's
   own time, whether it's open, and its words roll when they change. Today's row sits under an ink
   pill. On phones the week folds to today, and All hours unfolds it around it.
   Everything is tuned with the --kz-footer-venue-* variables. */
.kodza-footer-venue {
  --kz-footer-venue-bg: #ffffff;
  --kz-footer-venue-fg: #0a0a0a;
  --kz-footer-venue-muted: rgba(10, 10, 10, 0.62);
  --kz-footer-venue-line: rgba(10, 10, 10, 0.1);
  --kz-footer-venue-width: 1200px; /* the content, centred */
  --kz-footer-venue-pad: 24px;
  --kz-footer-venue-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --kz-footer-venue-ease: cubic-bezier(0.22, 1, 0.36, 1);

  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--kz-footer-venue-line);
  background: var(--kz-footer-venue-bg);
  color: var(--kz-footer-venue-fg);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  container: kodza-footer-venue / inline-size;
}

/* Centred by its margins (no margin: auto, which some browsers read late) */
.kodza-footer-venue__inner {
  box-sizing: border-box;
  margin: 0 max(0px, calc((100% - var(--kz-footer-venue-width)) / 2));
  padding-top: clamp(56px, 6vw, 80px);
  padding-bottom: 28px;
  padding-left: max(var(--kz-footer-venue-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--kz-footer-venue-pad), env(safe-area-inset-right, 0px));
}

/* The name and Book a table */
.kodza-footer-venue__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--kz-footer-venue-line);
}

.kodza-footer-venue__brand {
  min-width: 0;
}

.kodza-footer-venue__logo {
  display: inline-block;
  margin: 0;
  border-radius: 6px;
  color: inherit;
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.kodza-footer-venue__pitch {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kz-footer-venue-muted);
}

.kodza-footer-venue__book {
  display: inline-flex;
  flex: none;
  align-items: center;
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--kz-footer-venue-fg);
  color: var(--kz-footer-venue-bg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .kodza-footer-venue__book:hover {
    background: color-mix(in srgb, var(--kz-footer-venue-fg) 86%, transparent);
  }
}

.kodza-footer-venue__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px clamp(32px, 5vw, 80px);
  padding-top: clamp(40px, 5vw, 56px);
}

.kodza-footer-venue__block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.kodza-footer-venue__label,
.kodza-footer-venue__copy {
  margin: 0;
  font-family: var(--kz-footer-venue-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--kz-footer-venue-muted);
}

.kodza-footer-venue__label {
  margin-bottom: 16px;
}

.kodza-footer-venue__address {
  margin: 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.kodza-footer-venue__address span {
  display: block;
}

/* Links: the line grows from the left, and shrinks away to the right */
.kodza-footer-venue__link,
.kodza-footer-venue__go,
.kodza-footer-venue__phone {
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size 0.4s var(--kz-footer-venue-ease), color 0.2s ease;
}

@media (hover: hover) {
  .kodza-footer-venue__link:hover,
  .kodza-footer-venue__go:hover,
  .kodza-footer-venue__phone:hover {
    background-position: 0 100%;
    background-size: 100% 1px;
  }
}

/* Directions: its arrow leaves to the top right, and the next one comes in from the bottom left */
.kodza-footer-venue__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 500;
}

.kodza-footer-venue__arrow {
  position: relative;
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  overflow: clip;
}

.kodza-footer-venue__arrow svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--kz-footer-venue-ease);
}

.kodza-footer-venue__arrow svg + svg {
  transform: translate(-100%, 100%);
}

@media (hover: hover) {
  .kodza-footer-venue__go:hover .kodza-footer-venue__arrow svg {
    transform: translate(100%, -100%);
  }

  .kodza-footer-venue__go:hover .kodza-footer-venue__arrow svg + svg {
    transform: none;
  }
}

/* Open now, or when it opens: the words roll when they change */
.kodza-footer-venue__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 0 14px;
  font-family: var(--kz-footer-venue-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

/* Filled while it's open, a ring while it's closed: the words say it too */
.kodza-footer-venue__dot {
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.kodza-footer-venue__dot::before,
.kodza-footer-venue__dot::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: currentColor;
}

.kodza-footer-venue__dot::before {
  transform: scale(0);
  transition: transform 0.45s var(--kz-footer-venue-ease);
}

/* While it's open, a soft ring leaves the dot, again and again */
.kodza-footer-venue__dot::after {
  opacity: 0;
}

.kodza-footer-venue__status.is-open .kodza-footer-venue__dot::before {
  transform: none;
}

/* The words and the minutes each roll in their own window */
.kodza-footer-venue__text,
.kodza-footer-venue__num {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.kodza-footer-venue__text {
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}

.kodza-footer-venue__num {
  box-sizing: content-box;
  font-variant-numeric: tabular-nums;
}

.kodza-footer-venue__text > span,
.kodza-footer-venue__num > span {
  display: block;
}

/* What leaves stops sizing its window, so the width only follows the new words */
.kodza-footer-venue__text > .is-leaving,
.kodza-footer-venue__num > .is-leaving {
  position: absolute;
  top: 0;
  left: 0;
}

/* The week: as wide as its longest row, so the pill is the same on every day */
.kodza-footer-venue__window {
  position: relative;
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
}

.kodza-footer-venue__week {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-venue__day {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.kodza-footer-venue__name {
  flex: none;
  min-width: 3em;
  font-weight: 500;
}

.kodza-footer-venue__times {
  min-width: 0;
  color: var(--kz-footer-venue-muted);
}

.kodza-footer-venue__times time {
  font: inherit;
}

/* Today: an ink pill a little wider than the row, and in it the week again, in the paper colour */
.kodza-footer-venue__pill {
  position: absolute;
  top: 0;
  left: -12px;
  right: -12px;
  display: none;
  height: var(--kz-footer-venue-today-h, 0px);
  border-radius: 999px;
  background: var(--kz-footer-venue-fg);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  transform: translateY(var(--kz-footer-venue-today-y, 0px));
}

.kodza-footer-venue.has-today .kodza-footer-venue__pill {
  display: block;
}

.kodza-footer-venue__ghost {
  position: absolute;
  top: 0;
  left: 12px;
  width: calc(100% - 24px);
  color: var(--kz-footer-venue-bg);
  transform: translateY(calc(-1 * var(--kz-footer-venue-today-y, 0px)));
}

.kodza-footer-venue__ghost .kodza-footer-venue__times {
  color: inherit;
}

/* All hours: only on phones, once the script has folded the week */
.kodza-footer-venue__all {
  display: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.kodza-footer-venue__all svg {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--kz-footer-venue-ease);
}

.kodza-footer-venue.is-all .kodza-footer-venue__all svg {
  transform: rotate(180deg);
}

.kodza-footer-venue__phone {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.kodza-footer-venue__block .kodza-footer-venue__link {
  margin-top: 6px;
  font-size: 15px;
}

.kodza-footer-venue__note {
  max-width: 22em;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--kz-footer-venue-muted);
  text-wrap: pretty;
}

.kodza-footer-venue__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 20px;
  border-top: 1px solid var(--kz-footer-venue-line);
}

.kodza-footer-venue__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-venue__row li {
  margin: 0;
  padding: 0;
}

.kodza-footer-venue__row .kodza-footer-venue__link {
  font-size: 13px;
  color: var(--kz-footer-venue-muted);
}

@media (hover: hover) {
  .kodza-footer-venue__row .kodza-footer-venue__link:hover {
    color: var(--kz-footer-venue-fg);
  }
}

.kodza-footer-venue__logo:focus-visible,
.kodza-footer-venue__book:focus-visible,
.kodza-footer-venue__link:focus-visible,
.kodza-footer-venue__go:focus-visible,
.kodza-footer-venue__phone:focus-visible,
.kodza-footer-venue__all:focus-visible {
  outline: 2px solid var(--kz-footer-venue-fg);
  outline-offset: 3px;
}

.kodza-footer-venue__link:focus-visible,
.kodza-footer-venue__go:focus-visible,
.kodza-footer-venue__phone:focus-visible {
  border-radius: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .kodza-footer-venue__status.is-open .kodza-footer-venue__dot::after {
    animation: kodza-footer-venue-breathe 2.4s var(--kz-footer-venue-ease) infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kodza-footer-venue__book,
  .kodza-footer-venue__link,
  .kodza-footer-venue__go,
  .kodza-footer-venue__phone,
  .kodza-footer-venue__arrow svg,
  .kodza-footer-venue__dot::before,
  .kodza-footer-venue__all svg {
    transition: none;
  }
}

@keyframes kodza-footer-venue-breathe {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Tablets: the hours take the full row, where and who go side by side under them */
@container kodza-footer-venue (max-width: 900px) {
  .kodza-footer-venue__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kodza-footer-venue__block:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

/* Phones: one column, and the week folds to today */
@container kodza-footer-venue (max-width: 600px) {
  .kodza-footer-venue__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .kodza-footer-venue__block:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .kodza-footer-venue.is-ready .kodza-footer-venue__all {
    display: inline-flex;
  }

  .kodza-footer-venue.is-ready:not(.is-all) .kodza-footer-venue__window {
    height: var(--kz-footer-venue-today-h, auto);
  }

  .kodza-footer-venue.is-ready:not(.is-all) .kodza-footer-venue__window,
  .kodza-footer-venue.is-folding .kodza-footer-venue__window {
    overflow-x: visible;
    overflow-y: clip;
  }

  .kodza-footer-venue.is-ready:not(.is-all) .kodza-footer-venue__window > * {
    translate: 0 calc(-1 * var(--kz-footer-venue-today-y, 0px));
  }

  .kodza-footer-venue__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* kodza-guard 6d30168a95b4 — generated by Kodza, do not edit.
   Theme guard: keeps a site's own CSS (WordPress themes, Bootstrap, CSS resets…) off this
   component. :not(#_) is always true and weighs as much as an id, so these lines win over
   theme rules made of classes and tags. Customise the component through its --kz-* variables. */

/* What the browser gives, where the component sets it only in some states: at the lowest weight, so its own rules below put it back */

:where(.kodza-footer-venue):not(#_),
:where(.kodza-footer-venue__pitch):not(#_),
:where(.kodza-footer-venue__label):not(#_),
:where(.kodza-footer-venue__address):not(#_),
:where(.kodza-footer-venue__status):not(#_),
:where(.kodza-footer-venue__day):not(#_),
:where(.kodza-footer-venue__note):not(#_),
:where(.kodza-footer-venue__copy):not(#_),
:where(.kodza-footer-venue__row):not(#_),
:where(.kodza-footer-venue__times time:where(:not([class*="kodza-"]))):not(#_),
:where(.kodza-footer-venue__all svg:where(:not([class*="kodza-"]))):not(#_),
:where(.kodza-footer-venue__row li:where(:not([class*="kodza-"]):not(.kodza-footer-venue__row [class*="kodza-"] *))):not(#_) {
  position: revert;
}

:where(.kodza-footer-venue__logo):not(#_),
:where(.kodza-footer-venue__book):not(#_),
:where(.kodza-footer-venue__all):not(#_) {
  outline: revert;
  position: revert;
  outline-offset: revert;
}

:where(.kodza-footer-venue__go):not(#_),
:where(.kodza-footer-venue__phone):not(#_) {
  border-radius: revert;
  outline: revert;
  position: revert;
  outline-offset: revert;
}

:where(.kodza-footer-venue__week):not(#_) {
  position: revert;
  color: revert;
}

:where(.kodza-footer-venue__link):not(#_) {
  border-radius: revert;
  outline: revert;
  position: revert;
  margin-top: revert;
  outline-offset: revert;
}

/* What the browser gives, on everything the component leaves to it */

.kodza-footer-venue:not(#_) {
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  border-right-width: revert;
  border-bottom-width: revert;
  border-left-width: revert;
  border-right-style: revert;
  border-bottom-style: revert;
  border-left-style: revert;
  border-right-color: revert;
  border-bottom-color: revert;
  border-left-color: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__head:not(#_),
.kodza-footer-venue__brand:not(#_),
.kodza-footer-venue__main:not(#_),
.kodza-footer-venue__block:not(#_),
.kodza-footer-venue__arrow:not(#_),
.kodza-footer-venue__text:not(#_),
.kodza-footer-venue__name:not(#_),
.kodza-footer-venue__times:not(#_),
.kodza-footer-venue__pill:not(#_),
.kodza-footer-venue__base:not(#_),
.kodza-footer-venue__year:not(#_),
.kodza-footer-venue__address span:where(:not([class*="kodza-"])):not(#_),
.kodza-footer-venue__text span:where(:not([class*="kodza-"])):not(#_) {
  box-sizing: revert;
}

.kodza-footer-venue__logo:not(#_) {
  border: revert;
  padding: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-style: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__pitch:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__book:not(#_) {
  border: revert;
  list-style: revert;
  float: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-style: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__label:not(#_),
.kodza-footer-venue__copy:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-style: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__address:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-weight: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__go:not(#_) {
  border: revert;
  padding: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  margin-right: revert;
  margin-bottom: revert;
  margin-left: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__status:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-height: revert;
  color: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__week:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__day:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__all:not(#_) {
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
  white-space: revert;
  min-height: revert;
}

.kodza-footer-venue__phone:not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__link:not(#_) {
  border: revert;
  padding: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  margin-right: revert;
  margin-bottom: revert;
  margin-left: revert;
  box-shadow: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__note:not(#_) {
  border: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-height: revert;
  font-family: revert;
  font-weight: revert;
  font-style: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__row:not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__arrow svg:where(:not([class*="kodza-"])):not(#_),
.kodza-footer-venue__all svg:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__times time:where(:not([class*="kodza-"])):not(#_) {
  border: revert;
  margin: revert;
  padding: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__row li:where(:not([class*="kodza-"]):not(.kodza-footer-venue__row [class*="kodza-"] *)):not(#_) {
  border: revert;
  border-radius: revert;
  outline: revert;
  text-decoration: revert;
  transition: revert;
  list-style: revert;
  box-sizing: revert;
  float: revert;
  background-color: revert;
  background-image: revert;
  box-shadow: revert;
  outline-offset: revert;
  appearance: revert;
  max-width: revert;
  max-height: revert;
  color: revert;
  font-family: revert;
  font-size: revert;
  font-weight: revert;
  font-style: revert;
  line-height: revert;
  letter-spacing: revert;
  text-transform: revert;
  text-underline-offset: revert;
  text-align: revert;
  text-indent: revert;
  text-shadow: revert;
  vertical-align: revert;
}

.kodza-footer-venue__pitch:not(#_):where(:not([hidden])),
.kodza-footer-venue__label:not(#_):where(:not([hidden])),
.kodza-footer-venue__address:not(#_):where(:not([hidden])),
.kodza-footer-venue__week:not(#_):where(:not([hidden])),
.kodza-footer-venue__phone:not(#_):where(:not([hidden])),
.kodza-footer-venue__link:not(#_):where(:not([hidden])),
.kodza-footer-venue__note:not(#_):where(:not([hidden])),
.kodza-footer-venue__copy:not(#_):where(:not([hidden])),
.kodza-footer-venue__times time:where(:not([class*="kodza-"])):not(#_):where(:not([hidden])),
.kodza-footer-venue__row li:where(:not([class*="kodza-"]):not(.kodza-footer-venue__row [class*="kodza-"] *)):not(#_):where(:not([hidden])) {
  display: revert;
}

.kodza-footer-venue__pitch:not(#_):where([hidden]),
.kodza-footer-venue__label:not(#_):where([hidden]),
.kodza-footer-venue__address:not(#_):where([hidden]),
.kodza-footer-venue__week:not(#_):where([hidden]),
.kodza-footer-venue__phone:not(#_):where([hidden]),
.kodza-footer-venue__link:not(#_):where([hidden]),
.kodza-footer-venue__note:not(#_):where([hidden]),
.kodza-footer-venue__copy:not(#_):where([hidden]),
.kodza-footer-venue__times time:where(:not([class*="kodza-"])):not(#_):where([hidden]),
.kodza-footer-venue__row li:where(:not([class*="kodza-"]):not(.kodza-footer-venue__row [class*="kodza-"] *)):not(#_):where([hidden]) {
  display: none;
}

.kodza-footer-venue__dot:not(#_)::before,
.kodza-footer-venue__dot:not(#_)::after {
  box-sizing: revert;
}

/* The component's own rules, one step stronger: real buttons and fields, what it sets on tags themes style (links, lists, headings, images…), and the root width (a theme may narrow it, never widen it) */

.kodza-footer-venue:not(#_) {
  display: block;
  box-sizing: border-box;
  padding: 0;
  border-top: 1px solid var(--kz-footer-venue-line);
  background: var(--kz-footer-venue-bg);
  color: var(--kz-footer-venue-fg);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.kodza-footer-venue__logo:not(#_) {
  display: inline-block;
  margin: 0;
  border-radius: 6px;
  color: inherit;
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.kodza-footer-venue__pitch:not(#_) {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--kz-footer-venue-muted);
}

.kodza-footer-venue__book:not(#_) {
  display: inline-flex;
  box-sizing: border-box;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--kz-footer-venue-fg);
  color: var(--kz-footer-venue-bg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.2s;
}

@media (hover: hover) {
  .kodza-footer-venue__book:hover:not(#_) {
    background: color-mix(in srgb, var(--kz-footer-venue-fg) 86%, transparent);
  }
}

.kodza-footer-venue__label:not(#_),
.kodza-footer-venue__copy:not(#_) {
  margin: 0;
  font-family: var(--kz-footer-venue-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--kz-footer-venue-muted);
}

.kodza-footer-venue__label:not(#_) {
  margin-bottom: 16px;
}

.kodza-footer-venue__address:not(#_) {
  margin: 0;
  font-size: 15px;
  font-style: normal;
  line-height: 1.55;
}

.kodza-footer-venue__link:not(#_),
.kodza-footer-venue__go:not(#_),
.kodza-footer-venue__phone:not(#_) {
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  transition: background-size 0.4s var(--kz-footer-venue-ease), color 0.2s ease;
}

@media (hover: hover) {
  .kodza-footer-venue__link:hover:not(#_),
  .kodza-footer-venue__go:hover:not(#_),
  .kodza-footer-venue__phone:hover:not(#_) {
    background-position: 0 100%;
    background-size: 100% 1px;
  }
}

.kodza-footer-venue__go:not(#_) {
  display: inline-flex;
  margin-top: 14px;
  font-weight: 500;
}

.kodza-footer-venue__arrow svg:not(#_) {
  position: absolute;
  display: block;
  transition: transform 0.45s var(--kz-footer-venue-ease);
}

.kodza-footer-venue__status:not(#_) {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 14px;
  font-family: var(--kz-footer-venue-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.kodza-footer-venue__text > .is-leaving:not(#_) {
  position: absolute;
  top: 0;
  left: 0;
}

.kodza-footer-venue__num > .is-leaving:not(#_) {
  position: absolute;
  top: 0;
  left: 0;
}

.kodza-footer-venue__week:not(#_) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-venue__day:not(#_) {
  display: flex;
  margin: 0;
  padding: 5px 0;
  font-size: 14px;
  line-height: 22px;
}

.kodza-footer-venue__times time:not(#_) {
  font: inherit;
}

.kodza-footer-venue__ghost:not(#_) {
  position: absolute;
  color: var(--kz-footer-venue-bg);
}

.kodza-footer-venue__all:not(#_) {
  display: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.kodza-footer-venue__all svg:not(#_) {
  display: block;
  transition: transform 0.45s var(--kz-footer-venue-ease);
}

.kodza-footer-venue__phone:not(#_) {
  font-size: 15px;
  font-weight: 500;
}

.kodza-footer-venue__block .kodza-footer-venue__link:not(#_) {
  margin-top: 6px;
  font-size: 15px;
}

.kodza-footer-venue__note:not(#_) {
  max-width: 22em;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--kz-footer-venue-muted);
}

.kodza-footer-venue__row:not(#_) {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kodza-footer-venue__row li:not(#_) {
  margin: 0;
  padding: 0;
}

.kodza-footer-venue__row .kodza-footer-venue__link:not(#_) {
  font-size: 13px;
  color: var(--kz-footer-venue-muted);
}

@media (hover: hover) {
  .kodza-footer-venue__row .kodza-footer-venue__link:hover:not(#_) {
    color: var(--kz-footer-venue-fg);
  }
}

.kodza-footer-venue__logo:focus-visible:not(#_),
.kodza-footer-venue__book:focus-visible:not(#_),
.kodza-footer-venue__link:focus-visible:not(#_),
.kodza-footer-venue__go:focus-visible:not(#_),
.kodza-footer-venue__phone:focus-visible:not(#_) {
  outline: 2px solid var(--kz-footer-venue-fg);
  outline-offset: 3px;
}

.kodza-footer-venue__all:focus-visible:not(#_) {
  outline: 2px solid var(--kz-footer-venue-fg);
  outline-offset: 3px;
}

.kodza-footer-venue__link:focus-visible:not(#_),
.kodza-footer-venue__go:focus-visible:not(#_),
.kodza-footer-venue__phone:focus-visible:not(#_) {
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .kodza-footer-venue__book:not(#_),
  .kodza-footer-venue__link:not(#_),
  .kodza-footer-venue__go:not(#_),
  .kodza-footer-venue__phone:not(#_),
  .kodza-footer-venue__arrow svg:not(#_),
  .kodza-footer-venue__all svg:not(#_) {
    transition: none;
  }
}

@container kodza-footer-venue (max-width: 600px) {
  .kodza-footer-venue.is-ready .kodza-footer-venue__all:not(#_) {
    display: inline-flex;
  }
}
```

```js
// Kodza License: free to use, client work included. Not to resell or redistribute, ported or not: https://kodza.dev/docs/#print-license
// Kodza — Footer Venue
// Works out, at the place's own time, whether it's open. The hours are the week as written:
// each row (data-day="mon"…"sun") holds pairs of <time datetime="12:00">, an end before the
// start runs past midnight, and a row without them is a day off. The time zone comes from
// data-timezone (an IANA name such as Europe/Paris; the visitor's own time when it's missing or
// unknown). The status then reads "Open now · closes 22:30", "Closes in 25 min" in the last hour
// (data-soon, in minutes), "Closed · opens Wed 12:00" or "Opens in 20 min": its words come from
// the status's data-open, data-closing, data-closed and data-opening, with {time}, {min} and
// {when} in them, and {when} takes the day's name as written in its row. It's written again on
// every minute; a change of words rolls the line, a change of minutes rolls the number.
// Today's row goes under an ink pill, which slides to the next row when the day changes. On
// phones the week folds to today's row, and All hours unfolds it around it.
// data-now ("tue 22:35") pins the clock, to check a schedule before it goes live.
(() => {
  const SELECTOR = '.kodza-footer-venue';
  const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  const DAYS = ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'];
  const DAY = 1440; // minutes
  const WEEK = 7 * DAY;
  const EASE = 'cubic-bezier(0.22, 1, 0.36, 1)';
  const WORDS = {
    open: 'Open now · closes {time}',
    closing: 'Closes in {min} min',
    closed: 'Closed · opens {when}',
    opening: 'Opens in {min} min',
    always: 'Open 24/7',
  };

  const minutes = (time) => {
    const [h, m] = String(time).trim().split(':').map(Number);
    return h * 60 + (m || 0);
  };
  const clock = (n) => {
    const m = ((n % DAY) + DAY) % DAY;
    return `${String(Math.floor(m / 60)).padStart(2, '0')}:${String(m % 60).padStart(2, '0')}`;
  };

  // The open stretches of three weeks running (the one before and the one after catch the
  // nights across Sunday), in minutes from this Monday 00:00, joined where one runs into the next
  const stretches = (rows) => {
    const all = [];
    rows.forEach((row) => {
      const d = DAYS.indexOf(row.dataset.day);
      const times = [...row.querySelectorAll('time')].map((t) => minutes(t.getAttribute('datetime') || t.textContent));
      if (d < 0 || times.some(Number.isNaN)) return;
      for (let i = 0; i + 1 < times.length; i += 2) {
        const [a, b] = [times[i], times[i + 1]];
        [-WEEK, 0, WEEK].forEach((shift) => {
          const start = shift + d * DAY + a;
          all.push([start, start + ((b - a + DAY - 1) % DAY) + 1]);
        });
      }
    });
    all.sort((a, b) => a[0] - b[0]);
    return all.reduce((joined, [a, b]) => {
      const last = joined[joined.length - 1];
      if (last && a <= last[1]) last[1] = Math.max(last[1], b);
      else joined.push([a, b]);
      return joined;
    }, []);
  };

  // Now, at the place: minutes from Monday 00:00
  const zoned = (zone) => {
    const options = { weekday: 'short', hour: '2-digit', minute: '2-digit', hourCycle: 'h23' };
    try {
      return new Intl.DateTimeFormat('en-GB', { ...options, timeZone: zone || undefined });
    } catch {
      return new Intl.DateTimeFormat('en-GB', options);
    }
  };
  const at = (text) => {
    const m = (text || '').trim().toLowerCase().match(/^([a-z]{3})\s+(\d{1,2}:\d{2})$/);
    return m && DAYS.includes(m[1]) ? DAYS.indexOf(m[1]) * DAY + minutes(m[2]) : null;
  };

  const span = (text) => Object.assign(document.createElement('span'), { textContent: text });
  const shown = (el) => Boolean(el) && getComputedStyle(el).display !== 'none';

  // One instance, with its own state: two copies on a page never interfere. Everything it
  // starts is tied to `signal` (listeners get { signal }, observers and timers stop on its
  // 'abort' event), so kodza:destroy stops it all.
  function mount(root, signal) {
    root.querySelectorAll('.kodza-footer-venue__year').forEach((year) => {
      year.textContent = String(new Date().getFullYear());
    });

    const status = root.querySelector('.kodza-footer-venue__status');
    const text = status?.querySelector('.kodza-footer-venue__text');
    const frame = root.querySelector('.kodza-footer-venue__window');
    const week = frame?.querySelector('.kodza-footer-venue__week');
    const rows = week ? [...week.querySelectorAll('.kodza-footer-venue__day')] : [];
    const all = root.querySelector('.kodza-footer-venue__all');
    if (!text || !rows.length) return;
    const words = (key) => status.dataset[key] || WORDS[key];
    const rowOf = (d) => rows.find((row) => row.dataset.day === DAYS[d]);
    const nameOf = (d) => rowOf(d)?.querySelector('.kodza-footer-venue__name')?.textContent.trim() || DAYS[d];

    // The pill, and in it a copy of the week in the paper colour: the copy moves against the pill,
    // so the words turn exactly at its edges
    const pill = Object.assign(document.createElement('span'), { className: 'kodza-footer-venue__pill' });
    pill.setAttribute('aria-hidden', 'true');
    const ghost = week.cloneNode(true);
    ghost.classList.add('kodza-footer-venue__ghost');
    ghost.removeAttribute('aria-label');
    pill.append(ghost);
    frame.append(pill);

    // The old words rise out of their window as the new ones come from below, and the window's
    // width goes from one to the other. A change that lands mid-roll drops the words already
    // leaving, and the old ones leave from where they stand
    const roll = (box, next, moving) => {
      const old = box.lastElementChild;
      const from = box.offsetWidth;
      [...box.children].forEach((el) => el !== old && el.remove());
      box.append(next);
      if (!old) return;
      if (!moving || reduceMotion) return old.remove();
      const y = new DOMMatrixReadOnly(getComputedStyle(old).transform).m42;
      old.getAnimations().forEach((a) => a.cancel());
      old.classList.add('is-leaving');
      old.setAttribute('aria-hidden', 'true');
      const timing = { duration: 700, easing: EASE };
      old.animate([{ transform: `translateY(${y}px)` }, { transform: 'translateY(-100%)' }], { ...timing, fill: 'forwards' }).finished.then(() => old.remove(), () => {});
      next.animate([{ transform: 'translateY(100%)' }, { transform: 'none' }], timing);
      // The window opens a little ahead of the words, so their end isn't cut for long
      box.getAnimations().forEach((a) => a.cancel());
      box.animate([{ width: `${from}px` }, { width: `${box.offsetWidth}px` }], { ...timing, duration: 480 });
    };

    // A line of words, with the minutes in their own window
    const line = (template, values) => {
      const el = document.createElement('span');
      template.split(/(\{min\})/).forEach((part) => {
        if (part !== '{min}') return el.append(part.replace(/\{(time|when)\}/g, (_, key) => values[key]));
        const num = Object.assign(document.createElement('span'), { className: 'kodza-footer-venue__num' });
        num.append(span(values.min));
        el.append(num);
      });
      return el;
    };

    // Today's row: where the pill stands, and on phones what the folded window shows
    let today = -1;
    let place = { y: 0, h: 0 };
    const measure = () => {
      const row = rowOf(today);
      place = row ? { y: row.offsetTop, h: row.offsetHeight } : { y: 0, h: 0 };
      frame.style.setProperty('--kz-footer-venue-today-y', `${place.y}px`);
      frame.style.setProperty('--kz-footer-venue-today-h', `${place.h}px`);
    };
    const folded = () => shown(all) && !root.classList.contains('is-all');
    // Folded, the other days are out of sight: out of the reading order too
    const hide = () => rows.forEach((row) => {
      if (folded() && row !== rowOf(today)) row.setAttribute('aria-hidden', 'true');
      else row.removeAttribute('aria-hidden');
    });
    const slide = (from, timing) => {
      const ghostKeys = [{ transform: `translateY(${-from.y}px)` }, { transform: `translateY(${-place.y}px)` }];
      pill.animate([{ transform: `translateY(${from.y}px)`, height: `${from.h}px` }, { transform: `translateY(${place.y}px)`, height: `${place.h}px` }], timing);
      ghost.animate(ghostKeys, timing);
    };
    const mark = (d, moving) => {
      if (d === today) return;
      const before = today >= 0 ? place : null;
      today = d;
      rows.forEach((row) => (row === rowOf(d) ? row.setAttribute('aria-current', 'date') : row.removeAttribute('aria-current')));
      root.classList.toggle('has-today', Boolean(rowOf(d)));
      measure();
      hide();
      if (!before || !moving || reduceMotion || !rowOf(d)) return;
      const timing = { duration: 700, easing: EASE };
      slide(before, timing);
      // Folded, the week rolls under the window instead: the new day comes in where the old one was
      if (!folded()) return;
      const shift = [{ translate: `0 ${-before.y}px` }, { translate: `0 ${-place.y}px` }];
      week.animate(shift, timing);
      pill.animate(shift, timing);
      frame.animate([{ height: `${before.h}px` }, { height: `${place.h}px` }], timing);
    };

    let open = [];
    let format = null;
    let said = '';
    const now = () => {
      const pinned = at(root.dataset.now);
      if (pinned !== null) return pinned;
      const parts = Object.fromEntries(format.formatToParts(new Date()).map((p) => [p.type, p.value]));
      return DAYS.indexOf(parts.weekday.toLowerCase()) * DAY + minutes(`${parts.hour}:${parts.minute}`);
    };
    const read = () => {
      open = stretches(rows);
      format = zoned(root.dataset.timezone);
    };

    const update = (moving) => {
      const t = now();
      mark(Math.floor((((t % WEEK) + WEEK) % WEEK) / DAY), moving);
      if (!open.length) return;
      const soon = Number(root.dataset.soon) || 60;
      const current = open.find(([a, b]) => a <= t && t < b);
      const next = open.find(([a]) => a > t);
      let key;
      let values;
      if (current && current[1] - current[0] >= 2 * WEEK) {
        key = 'always';
      } else if (current) {
        key = current[1] - t < soon ? 'closing' : 'open';
        values = { time: clock(current[1]), min: String(current[1] - t) };
      } else {
        key = next[0] - t < soon ? 'opening' : 'closed';
        const day = Math.floor(next[0] / DAY);
        values = { min: String(next[0] - t), when: day === Math.floor(t / DAY) ? clock(next[0]) : `${nameOf(((day % 7) + 7) % 7)} ${clock(next[0])}` };
      }
      status.classList.toggle('is-open', Boolean(current));
      const template = words(key);
      const same = `${key}|${template}|${values?.time}|${values?.when}`;
      if (same === said && template.includes('{min}')) {
        // Only the minutes moved: they roll on their own
        const num = text.lastElementChild?.querySelector('.kodza-footer-venue__num');
        if (num && num.lastElementChild?.textContent !== values.min) roll(num, span(values.min), moving);
        return;
      }
      if (same === said) return;
      said = same;
      roll(text, line(template, values ?? {}), moving);
    };

    // All hours: the window opens to the whole week and the week slides back to its place, so the
    // days come out above and below today's row; closing folds it back the same way
    all?.addEventListener('click', () => {
      const opening = !root.classList.contains('is-all');
      const from = frame.offsetHeight;
      root.classList.toggle('is-all', opening);
      all.setAttribute('aria-expanded', String(opening));
      hide();
      if (reduceMotion) return;
      const to = opening ? week.offsetHeight : place.h;
      const shift = [{ translate: `0 ${opening ? -place.y : 0}px` }, { translate: `0 ${opening ? 0 : -place.y}px` }];
      const timing = { duration: 600, easing: EASE };
      [frame, week, pill].forEach((el) => el.getAnimations().forEach((a) => a.cancel()));
      root.classList.add('is-folding');
      frame.animate([{ height: `${from}px` }, { height: `${to}px` }], timing).finished.then(() => root.classList.remove('is-folding'), () => {});
      week.animate(shift, timing);
      pill.animate(shift, timing);
    }, { signal });

    // The words as written stay for a first paint without the script; they're replaced at once
    text.replaceChildren();
    read();
    update(false);

    // The rows may wrap on another line when the width changes, and the phone layout comes and goes
    const sized = new ResizeObserver(() => {
      measure();
      hide();
    });
    sized.observe(root);

    // Every minute on the minute, and at once when the tab comes back or the clock changes
    let timer = 0;
    const tick = () => {
      update(true);
      timer = setTimeout(tick, 60000 - (Date.now() % 60000) + 50);
    };
    timer = setTimeout(tick, 60000 - (Date.now() % 60000) + 50);
    document.addEventListener('visibilitychange', () => {
      if (!document.hidden) update(true);
    }, { signal });
    const watch = new MutationObserver(() => {
      read();
      update(true);
    });
    watch.observe(root, { attributes: true, attributeFilter: ['data-timezone', 'data-now', 'data-soon'] });
    signal.addEventListener('abort', () => {
      clearTimeout(timer);
      watch.disconnect();
      sized.disconnect();
    });
  }

  // Kodza lifecycle, the same in every component: `kodza:init` starts the instances inside
  // event.detail.root (the whole page by default), `kodza:destroy` stops them and puts their
  // markup back. For themes and apps that swap content without a page load. Each running root
  // keeps its markup as written under KODZA, shared by every Kodza script on the page: a Kodza
  // component inside another one is saved as written, not half-started, and stopped with it.
  const KODZA = Symbol.for('kodza');
  const instances = new WeakMap();
  const find = (scope = document) => [scope, ...scope.querySelectorAll(SELECTOR)].filter((el) => el.matches?.(SELECTOR));
  const attrsOf = (el) => [...el.attributes].map((a) => [a.name, a.value]);
  const put = (el, saved) => {
    [...el.attributes].forEach((a) => el.removeAttribute(a.name));
    saved.attrs.forEach(([name, value]) => el.setAttribute(name, value));
    el.innerHTML = saved.html;
  };
  // The markup inside a root as written: Kodza components already running in it give back their own
  const written = (root) => {
    const all = [...root.querySelectorAll('*')];
    if (!all.some((el) => el[KODZA])) return root.innerHTML;
    const copy = root.cloneNode(true);
    const twins = copy.querySelectorAll('*');
    let last = null;
    all.forEach((el, i) => {
      if (!el[KODZA] || last?.contains(el)) return;
      last = el;
      put(twins[i], el[KODZA]);
    });
    return copy.innerHTML;
  };
  const init = (scope) => find(scope).forEach((root) => {
    if (root.classList.contains('is-ready')) return; // already running, maybe from another copy of this script
    const controller = new AbortController();
    const saved = { html: written(root), attrs: attrsOf(root), stop: () => destroy(root) };
    instances.set(root, { controller, saved });
    root[KODZA] = saved;
    mount(root, controller.signal);
    root.classList.add('is-ready');
  });
  const destroy = (scope) => find(scope).forEach((root) => {
    const instance = instances.get(root);
    if (!instance) return;
    instances.delete(root);
    // The Kodza components running inside it stop first: once its markup is put back, their own
    // script could not find them any more
    root.querySelectorAll('*').forEach((el) => el[KODZA]?.stop());
    instance.controller.abort();
    delete root[KODZA];
    put(root, instance.saved);
  });
  document.addEventListener('kodza:init', (event) => init(event.detail?.root));
  document.addEventListener('kodza:destroy', (event) => destroy(event.detail?.root));
  init();
  // Loaded in <head>, the script runs before the markup exists: once more when it is parsed
  if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', () => init(), { once: true });
})();
```

Free to use, from Kodza (https://kodza.dev).
