.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffffff;
  color: #000000;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

.lang-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 4px;
  padding: 0.2em 0.5em;
  font-size: 0.85em;
  margin-left: 0.75em;
  cursor: pointer;
  width: auto;
}
.lang-select option {
  color: #ffffff;
  background: #2e3141;
}

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] #header h1 { margin-left: auto; margin-right: 0; }
html[dir="rtl"] #header nav { right: auto; left: 0; }
html[dir="rtl"] #menu .close { right: auto; left: 0; }
html[dir="rtl"] .wrapper.spotlight .inner { flex-direction: row-reverse; }
html[dir="rtl"] .wrapper.spotlight .image { margin: 0 0 2em 3em; }
html[dir="rtl"] .wrapper.spotlight:nth-child(2n - 1) .inner { flex-direction: row; }

@media screen and (max-width: 736px) {
  .lang-select { margin: 0 0.5em; }
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3rem;
  height: 3rem;
  background: #4c5c96;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 9999;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
html[dir="rtl"] #back-to-top { right: auto; left: 1.5rem; }

#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 49, 65, 0.96);
  color: #ffffff;
  padding: 1rem;
  z-index: 10001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-actions button {
  background: #4c5c96;
  color: #ffffff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-actions button:hover { background: #5b6ba6; }
.cookie-actions .cookie-decline { background: rgba(255, 255, 255, 0.15); }
