/* Language switcher: flag pills, pushed to the right edge of the nav. */

nav .cc-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  order: 99;              /* rightmost element of the nav row */
  margin-left: 14px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

nav .cc-lang-a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.62);
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

nav .cc-lang-a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 234, 0.95);
  transform: translateY(-1px);
}

nav .cc-lang-a.cc-lang-on {
  background: rgba(255, 77, 45, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 45, 0.35);
}

.cc-lang-sep { display: none; }

.cc-flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

/* Mobile bar: same pill, sits right before the burger. */
.cc-mbar .cc-lang-mobile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 8px;
  padding: 7px 12px 7px 9px;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: rgba(244, 241, 234, 0.9);
  text-decoration: none;
  transition: background 0.22s ease, transform 0.22s ease;
}
.cc-mbar .cc-lang-mobile:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }

@media (max-width: 860px) {
  .cc-mbar .cc-lang-mobile { min-height: 44px; padding: 10px 14px 10px 11px; }
  .cc-mbar .cc-flag { width: 20px; height: 14px; }
}
