/* lang-pill.1.css - the header language button "Marquee" (variant B, the partner's pick of 2026-11-25; design and prototype:
   P:\live-it-up-data\deploy\lang-button-design-1125\RESULT.md, build: deploy\lang-button-b-1125). Linked only when the server renders the
   button (WEB_I18N on: the home, how-it-works, story, support and sources pages, in every language), after /styles.css and
   theme-pill.1.css, whose menu (.tp-menu, .tp-item, .tp-check) and stage layers (.tp-scene .scene-dark / .scene-lights) it reuses.
   The server sends a <details class="lang-pick lp-nojs"> with the marquee drawn in its <summary> and four plain links; with scripts on,
   assets/lang-pill.1.js swaps it for a button + menu of the SAME box (no layout shift).
   The shell is the Theme pill's: 88 x 36 (56 x 36 where the Theme pill is: under 640 px in .site-head, under 480 px elsewhere), the
   control boundary --border-control (3:1, the brandbook's border.input; the old picker's --border-color was about 1.4:1), a ::after
   reaching the 44 px hit area, the shared 2 px focus ring keeping the pill shape, the open border in accent-line.
   The bulbs are lit at night and off by day on the Theme pill's own clock (the same layer classes). Motion: one chase of light round the
   bulbs when the menu opens (about 0.5 s, once, never a loop) and a 220 ms roll of the code on a pick; opacity and transform only;
   reduced motion: none (this file's own rules and the script's check). Replaces lang-pick.1.css (the branch's first picker, never deployed). */
.lang-pick { position: relative; display: inline-flex; flex: 0 0 auto; margin: 0 0 0 8px; font-size: 14px; line-height: normal; }
.lp-pill, .lp-nojs > summary {
  position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-sizing: border-box;
  width: 88px; height: 36px; margin: 0; padding: 0;
  border: 1px solid var(--border-control); border-radius: 999px; background: transparent; color: var(--text-primary);
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lp-nojs > summary { list-style: none; }
.lp-nojs > summary::-webkit-details-marker { display: none; }
.lp-nojs > summary::marker { content: ''; }
.lp-pill::after, .lp-nojs > summary::after { content: ""; position: absolute; left: -1px; right: -1px; top: -5px; bottom: -5px; border-radius: 999px; }
@media (hover: hover) { .lp-pill:hover, .lp-nojs > summary:hover { border-color: var(--text-secondary); } }
.lp-wrap.is-open .lp-pill, .lp-nojs[open] > summary { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line); }
.lp-pill:focus-visible, .lp-nojs > summary:focus-visible { outline: 2px solid var(--border-focused); outline-offset: 2px; border-radius: 999px; }
.lp-pill.via-pointer:focus-visible { outline-color: transparent; }
.lp-pill .tp-scene, .lp-nojs .tp-scene { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }

/* The menu is the Theme pill's (.tp-menu); without scripts it is the open <details>' list, shown at once. */
.lp-menu { min-width: 212px; list-style: none; margin: 0; }
.lp-nojs .tp-menu { opacity: 1; transform: none; }
a.tp-item { text-decoration: none; }
.lp-item .tp-lab { padding-right: 12px; }
.lp-nojs a[aria-current="page"] { font-weight: 700; }
.lp-nojs a[aria-current="page"] .tp-check::before { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--accent-light); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* The sizes follow the Theme pill beside it: 56 px under 480 px (theme-pill.1.css), under 640 px in .site-head (header-story.4.css). */
@media (max-width: 479px) {
  .lang-pick { margin-left: 2px; }
  .lp-pill, .lp-nojs > summary { width: 56px; }
}
@media (max-width: 639px) {
  .site-head .lang-pick { margin-left: 2px; }
  .site-head .lp-pill, .site-head .lp-nojs > summary { width: 56px; }
}
/* Placement: the button sits right after the Theme pill, a pair at the row's end (the nav takes the free space before it). At 439.98 px and
   under the home / story links have their own row (header-story.4.css): the button moves up beside the wordmark, so that row keeps its room.
   The edges are 439.98 / 439.99 so no fractional width (zoom, an emulated viewport measured 439.2 px) falls between them. */
@media (min-width: 439.99px) { .site-head .site-nav { margin-left: auto; } }
.glass-header .nav-links { margin-left: auto; }
@media (min-width: 480px) { .glass-header .lang-pick { margin-left: 20px; } } /* the nav's own 20 px gap: the pair reads as the row's end */
@media (max-width: 439.98px) {
  .site-head .lang-pick { order: 1; margin-left: auto; }
  .site-head .site-nav { order: 2; }
}
/* From 440 px the one row (wordmark, links, Theme, Language) needs, measured 2026-11-25 in this build (Inter, the site's own font file):
   English 501 px at 460, 526 at 500, 584 at 600, 660 at 700; Spanish 563 / 727; French 584 / 599 / 673 / 749. Below that the row would
   wrap with the button alone on a third row. So up to each language's edge (the measured need, a 15 px classic scrollbar and about 16 px) the home / story header
   keeps the phone arrangement: the button beside the wordmark, the links on their own row ending with the Theme pill under it. */
@media (min-width: 439.99px) and (max-width: 691.98px) { html[lang="en"] .site-head .lang-pick { order: 1; margin-left: auto; }
  html[lang="en"] .site-head .site-nav { order: 2; flex: 1 1 100%; justify-content: flex-end; } }
@media (min-width: 439.99px) and (max-width: 757.98px) { html[lang="es"] .site-head .lang-pick { order: 1; margin-left: auto; }
  html[lang="es"] .site-head .site-nav { order: 2; flex: 1 1 100%; justify-content: flex-end; } }
@media (min-width: 439.99px) and (max-width: 779.98px) { html[lang^="fr"] .site-head .lang-pick { order: 1; margin-left: auto; }
  html[lang^="fr"] .site-head .site-nav { order: 2; flex: 1 1 100%; justify-content: flex-end; } }
/* A translated nav is longer than the English one: on a phone a long link ("Comment ça marche") breaks onto two lines inside its own
   44 px row instead of pushing the Theme pill off the screen (measured 2026-11-25: fr at 375 px was 398 px wide; from lang-pick.1.css). */
@media (max-width: 439.98px) {
  html:not([lang="en"]) .site-nav > a { white-space: normal; flex: 0 1 auto; min-width: 0; text-align: center; line-height: 1.15; }
}
/* The same for the home page's map link: home.8.css keeps it on one line up to 383 px, and the French text ("Ouvrir la carte des
   prochains concerts") is 307 px wide there, so at 320 px it stuck 24 px out of the card and the page scrolled sideways (measured
   2026-11-25, web-i18n-fixes-1125). A translated link wraps inside the card instead; the text itself is never shortened. */
html:not([lang="en"]) .teaser-link { white-space: normal; box-sizing: border-box; max-width: 100%; min-width: 0; overflow-wrap: break-word; }

/* The region chip (fr-CA only): the Theme pill's System chip, widened for two letters, on the same top-right corner. No flags. */
.lp-chip { position: absolute; top: -6px; right: -6px; z-index: 2; box-sizing: border-box; min-width: 20px; height: 15px; padding: 0 3px;
  border: 1px solid var(--border-control); border-radius: 999px; background: var(--background-card); color: var(--text-primary);
  font-size: 9px; font-weight: 700; line-height: 13px; letter-spacing: 0.3px; text-align: center; pointer-events: none; }
.lp-chip.is-leaving { opacity: 0; transform: scale(0.85); }

/* The marquee: the code on a plate framed by 20 bulbs (the drawing is in the summary, from the server). */
:root { --mq-ink: #FFFFFF; }
:root[data-theme="light"] { --mq-ink: #111A24; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --mq-ink: #111A24; } }
.mq-code { position: relative; z-index: 1; display: block; height: 16px; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 16px;
  letter-spacing: 1.2px; color: var(--mq-ink); }
.mq-roll { display: block; }
.mq-roll i { display: block; height: 16px; font-style: normal; text-align: center; padding-left: 1.2px; }
.mq-chase circle { opacity: 0; }
.mq-mini { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-left: auto; padding-left: 12px; font-size: 12px; font-weight: 800;
  letter-spacing: 1px; color: var(--text-secondary); }
.mq-bulb { width: 6px; height: 6px; border-radius: 50%; background: var(--border-default); }
.tp-item[aria-checked="true"] .mq-bulb, .lp-nojs a[aria-current="page"] .mq-bulb { background: #FBBF24; box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25); }

/* Motion only when the visitor has not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  .mq-roll.is-rolling { transform: translateY(-16px); transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
  .lp-pill.is-chasing .mq-chase circle { animation: mq-chase 200ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .lp-chip { transition: opacity 100ms cubic-bezier(0.23, 1, 0.32, 1), transform 100ms cubic-bezier(0.23, 1, 0.32, 1); }
  .lp-chip.is-arriving { animation: lp-chip-in 160ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both; }
  .mq-code { transition: color 360ms cubic-bezier(0.22, 1, 0.36, 1); } /* the ink follows the plate (theme-pill.1.css .scene-dark 360 ms) */
  .lp-pill { transition: border-color 150ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 150ms cubic-bezier(0.22, 1, 0.36, 1); }
}
@keyframes mq-chase { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lp-chip-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
