/* The site's bar (site-bar.js): the home page's floating bar, one look on every page. Loaded in the <head> of the home
   shell and, through site-shell.css, of every other page, so the bar is styled from the first paint. Everything is
   under .zm-bar and sets its own type and colours, so neither page's styles reach into it. */
.zm-bar-host { position: sticky; top: 0; z-index: 20; display: block; padding: 10px 12px 0; }
.zm-bar, .zm-bar * { box-sizing: border-box; }
.zm-bar {
  max-width: 1120px; margin: 0 auto; padding: 8px 10px 8px 12px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid #ECE6F8; border-radius: 22px; box-shadow: 0 6px 24px rgba(30, 22, 70, .06);
  font: 400 15px/1.5 Rubik, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #1E1646; text-align: start;
}
.zm-bar a { text-decoration: none; }
.zm-bar-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px; color: inherit; }
.zm-bar-wheel {
  display: block; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: radial-gradient(#fff 0 30%, transparent 31%), conic-gradient(#E4572E 0 72deg, #2E86AB 0 144deg, #6BAA75 0 216deg, #F3A712 0 288deg, #6C4CF1 0 360deg);
}
/* The other pages keep Zemi's face as their logo (owner, 2026-12-01): two eyes on white, in a ring of the five colours. */
.zm-bar-wheel.zm-bar-zemi {
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(30, 22, 70, .25);
  background:
    radial-gradient(2px 3px at 40% 50%, #1E1646 98%, transparent),
    radial-gradient(2px 3px at 60% 50%, #1E1646 98%, transparent),
    radial-gradient(circle, #fff 0 9.5px, transparent 10px),
    conic-gradient(#E4572E 0 70deg, #fff 0 72deg, #2E86AB 0 142deg, #fff 0 144deg, #6BAA75 0 214deg, #fff 0 216deg, #F3A712 0 286deg, #fff 0 288deg, #6C4CF1 0 358deg, #fff 0 360deg);
}
.zm-bar-word { display: flex; direction: ltr; font: 700 27px/1 Fredoka, Rubik, sans-serif; }
.zm-bar-nav { display: flex; gap: 22px; flex: 1; }
.zm-bar-nav a { padding: 6px 0; font-size: 15.5px; font-weight: 500; white-space: nowrap; color: #5B5670; border-bottom: 2px solid transparent; }
.zm-bar-nav a:hover { color: #1E1646; }
.zm-bar-nav a[aria-current="page"] { color: #1E1646; border-bottom-color: #6C4CF1; }
.zm-bar-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
/* Holds the globe's place until language-menu.js has drawn it, so the bar does not shift. */
.zm-bar-language { display: flex; min-width: 36px; min-height: 36px; }
.zm-bar-stores { display: contents; }
.zm-bar-store {
  display: flex; align-items: center; gap: 7px; background: #1E1646; color: #fff; border-radius: 12px;
  padding: 8px 12px; font-weight: 500; font-size: 13.5px; line-height: 1.5; white-space: nowrap;
}
.zm-bar-store:hover { background: #34295F; color: #fff; }
.zm-bar-store i { font-size: 17px; }
/* The menu button draws its own three lines (or a cross when open): no icon font needed. */
.zm-bar-menu {
  display: none; width: 44px; height: 44px; flex: none; padding: 0; cursor: pointer; place-items: center;
  border: 1.5px solid #E2DBF5; border-radius: 14px; background: #fff; color: #1E1646;
}
.zm-bar-menu span { position: relative; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.zm-bar-menu span::before, .zm-bar-menu span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .15s ease; }
.zm-bar-menu span::before { top: -6px; }
.zm-bar-menu span::after { top: 6px; }
.zm-bar.open .zm-bar-menu span { background: transparent; }
.zm-bar.open .zm-bar-menu span::before { top: 0; transform: rotate(45deg); }
.zm-bar.open .zm-bar-menu span::after { top: 0; transform: rotate(-45deg); }
.zm-bar-panel { display: none; flex-basis: 100%; flex-direction: column; gap: 2px; padding: 4px 0 6px; }
.zm-bar-panel > a { padding: 12px; border-radius: 14px; font: 600 20px/1.3 Fredoka, Rubik, sans-serif; color: #1E1646; }
.zm-bar-panel > a[aria-current="page"] { background: #F1EDFF; }
.zm-bar-panel-stores { display: flex; gap: 8px; padding-top: 8px; }
.zm-bar-panel-stores .zm-bar-store { flex: none; justify-content: center; gap: 6px; border-radius: 11px; font-weight: 600; }
.zm-bar-panel-stores .zm-bar-store i { font-size: 16px; }

/* Under 1080 px (as the home page always had it): the places and the stores move into the menu. */
@media (max-width: 1079px) {
  .zm-bar-nav, .zm-bar-stores { display: none; }
  .zm-bar-menu { display: grid; }
  .zm-bar.open .zm-bar-panel { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .zm-bar-menu span::before, .zm-bar-menu span::after { transition: none; }
}
