
@font-face {
  font-family: "Manrope Russian";
  src: url("/assets/manrope-russian.woff2?v=6470c62ea45a") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

html[lang="ru"] {
  --sans: "Manrope Russian", Arial, sans-serif;
  --serif: "Manrope Russian", Arial, sans-serif;
}
html[lang="ru"] .page-title h1 { -webkit-hyphens: auto; hyphens: auto; }

.language-switch {
  --language-trigger-width: 2.875rem;
  display: flex;
  align-items: center;
  flex: none;
}

.language-switch summary {
  display: grid;
  place-items: center;
  width: var(--language-trigger-width);
  min-height: 44px;
  border-radius: .6875rem;
  list-style: none;
  cursor: pointer;
}

.language-switch summary::-webkit-details-marker { display: none; }



.masthead:has(.language-switch[open], .nav.open) { z-index: 31; }

.language-options {
  max-block-size: max(44px, calc(100vh - 6rem - env(safe-area-inset-top, 0px)));
  max-block-size: max(44px, calc(100dvh - 6rem - env(safe-area-inset-top, 0px)));
  overflow-y: auto;
  overscroll-behavior: contain;
  position: absolute;
  z-index: 22;
  inset-block-start: calc(100% + var(--a2));
  margin-inline-start: var(--language-trigger-width);
  transform: translateX(-100%);
  min-inline-size: 5.75rem;
  padding: .25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: .75rem;
  box-shadow: 0 8px 28px var(--shadow);
}

.language-options a {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding-inline: .625rem;
  border-radius: .5rem;
  color: var(--ink);
  font-size: var(--s-etiket);
  font-weight: var(--w-strong);
  text-decoration: none;
}


.language-switch :is(summary, a)::before {
  content: "";
  flex: none;
  height: .9375rem;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  background: center / contain no-repeat;
  box-shadow: 0 0 0 1px var(--rule);
}

.language-switch :is([data-language="tr"], [hreflang="tr"])::before { background-image: url("flags/tr.png"); }
.language-switch :is([data-language="en"], [hreflang="en"])::before {
  aspect-ratio: 5 / 3;
  background-image: url("flags/gb.png");
}
.language-switch :is([data-language="ru"], [hreflang="ru"])::before { background-image: url("flags/ru.png"); }

.language-switch :is(summary, a):hover { background: var(--paper); color: var(--action); }
.language-options a[aria-current] { background: var(--tint); color: var(--action); }
.language-switch :is(summary, a):focus-visible { outline-offset: -3px; }

@media (prefers-reduced-motion: no-preference) {
  .language-switch[open]:not(.is-opening) .language-options {
    --language-motion: 200ms cubic-bezier(.32, .72, 0, 1);
    transition: transform var(--language-motion), border-radius var(--language-motion), opacity var(--language-motion);
  }
  .language-switch[open] .language-options { transform-origin: top left; }
  .language-switch[open]:not(.is-opening) .language-options a { transition: opacity var(--language-motion); }
  .language-switch.is-collapsed .language-options {
    transform: translateX(-100%) translateY(calc(-1 * var(--a2))) scale(.5, .32);
    border-radius: 50%;
  }
  .language-switch.is-collapsed .language-options,
  .language-switch.is-collapsed .language-options a { opacity: 0; }
}

@media not all and (min-width: 48em) {
  .language-switch { --language-trigger-width: min(2.875rem, 48px); }
}
@media not all and (min-width: 64em) {
  html:not(.js) .language-switch { position: relative; }
  html:not(.js) .language-options { inset: calc(100% + var(--a2)) 0 auto auto; margin: 0; transform: none; }
}

@media (min-width: 64em) {
  .language-switch { order: 1; }
  .language-switch ~ .nav { min-width: 0; }
  .language-switch ~ .nav :is(ul, li) { min-width: 0; }
  .language-switch ~ .nav .nav-route {
    justify-content: center;
    padding-inline: clamp(.325rem, .8vw, .85rem);
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}

@media print {
  .language-switch { display: none; }
  .petition-screen-only,
  .page-head:has(.petition-canonical-title) h1:not(.petition-canonical-title) { display: none !important; }
}
