/* STRAVIQ's mark in motion, one file for the app, the website and the story
   (api/Dockerfile copies it to site/brand.css). The needle lands when the page opens; then every
   8 seconds it swings and settles like a compass finding its way, and a light passes through the name. */
.needle { transform-box: view-box; transform-origin: 32px 42px;
  animation: needle-land 1.2s cubic-bezier(.2, .8, .2, 1) both, needle-sway 8s ease-in-out 1.6s infinite; }
.brand-word { display: inline-block; background: linear-gradient(100deg, currentColor 40%, var(--brand, #1F9D63) 50%, currentColor 60%) 100% 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: word-in .8s .2s cubic-bezier(.2, .8, .2, 1) both, word-light 8s ease-in-out 1.6s infinite; }
@keyframes needle-land { 0% { transform: translateY(10px) rotate(-25deg); opacity: 0; } 60% { transform: translateY(-2px) rotate(5deg); opacity: 1; } }
@keyframes needle-sway { 0%, 74%, 100% { transform: none; } 80% { transform: rotate(12deg); } 87% { transform: rotate(-7deg); } 93% { transform: rotate(3deg); } }
@keyframes word-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes word-light { 0%, 84% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .needle, .brand-word { animation: none; } }

/* light, dark, or as the device is set (shell/ThemePick.jsx in the app, site/theme.js on the site and
   the story): three round buttons on one pill, the chosen one lifted onto the panel colour */
.theme-pick { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tile, #F3F6F4); }
.theme-pick .tp { width: 34px; height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--mut, #5F7A6F); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.theme-pick .tp:hover { color: var(--ink, #0B2B22); }
.theme-pick .tp[aria-pressed=true] { background: var(--panel, #fff); color: var(--ink, #0B2B22); box-shadow: 0 1px 4px rgba(11, 43, 34, .14); }
.theme-pick .tp:focus-visible { outline: 2px solid var(--brand, #1F9D63); outline-offset: 1px; }
.theme-pick svg { width: 17px; height: 17px; }

/* the language button on the website and the story: the flag of the language it opens, and its name */
.lang-pick { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: auto; padding: 0 13px 0 11px; }
.lang-flag { width: 18px; height: 18px; border-radius: 50%; flex: none; display: block; }
html[lang=en] .lang-flag.gb, html:not([lang=en]) .lang-flag.sa { display: none; }
