html { --shell-paper: #101112; --shell-ink: #f1efe9; }
html[data-theme="light"] { --shell-paper: #f1efe9; --shell-ink: #101112; }
.skip-link:focus { z-index: 1002; }
a[data-edition-language] {
  position: fixed; z-index: 999; left: 20px; top: 68px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 3px; text-decoration: none;
  font: 600 13px/1 Arial, sans-serif; background: var(--shell-paper); color: var(--shell-ink);
}
a[data-edition-language]:focus-visible {
  outline: 2px solid var(--shell-ink); outline-offset: -4px;
}
a[data-edition-language][data-side="right"] { left: auto; right: 20px; }
html[data-type="festival"] { --return-clearance: 124px; }
html[data-type="festival"] a[data-edition-language] { top: 20px; left: 68px; }
@media (max-width: 767px) {
  a[data-edition-language] { top: calc(60px + env(safe-area-inset-top)); left: calc(12px + env(safe-area-inset-left)); }
  a[data-edition-language][data-side="right"] { left: auto; right: calc(12px + env(safe-area-inset-right)); }
  html[data-type="festival"] { --return-clearance: calc(111px + env(safe-area-inset-left)); }
  html[data-type="festival"] a[data-edition-language] {
    top: calc(12px + env(safe-area-inset-top)); left: calc(60px + env(safe-area-inset-left));
  }
  html[data-type="festival"] .hero__details { gap: 8px; }
  html[data-type="festival"] .hero__details p:first-child { flex-wrap: wrap; gap: 2px 5px; }
}
@media (max-width: 640px) {
  a[data-edition-language][data-side="right"] {
    position: sticky; grid-area: 1 / 1; place-self: start end; top: calc(12px + env(safe-area-inset-top));
    margin: calc(max(13px, env(safe-area-inset-top)) + 26vw + 8px) calc(60px + env(safe-area-inset-right)) 0 0;
  }
}
/* The festival's original display family covers Latin. Match its weight in Cyrillic. */
@font-face {
  font-family: Stereo Cyrillic; src: url('../fonts/wix-madefor-display-800-cyrillic.woff2') format('woff2');
  font-weight: 800; font-display: swap; unicode-range: U+0400-052F;
}
html[lang="ru"][data-type="festival"] h2 { font-family: 'Archivo Black', 'Stereo Cyrillic', sans-serif; font-weight: 800; }
html[lang="ru"][data-type="festival"] .days__text { min-width: 0; }
@media (max-width: 760px) {
  html[lang="ru"][data-type="festival"] .days__text { display: block; font-size: 1rem; }
  html[lang="ru"][data-type="festival"] .days__text small { display: block; margin-top: 4px; }
  html[lang="ru"][data-type="festival"] .fare__name { overflow-wrap: break-word; }
}
