/* Language picker (okc-lang-*) on the 11 homepages; script in
   js/language-modal.js. */

.okc-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #3E524A;
  background: transparent;
  border: 1px solid rgba(14, 122, 65, 0.22);
  border-radius: 99px;
  padding: 5px 12px 5px 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.okc-lang-trigger:hover { border-color: #0E7A41; background: rgba(14, 122, 65, 0.07); color: #0E7A41; }
.okc-lang-trigger svg { width: 15px; height: 15px; flex-shrink: 0; }

.okc-lang-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 51, 43, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.okc-lang-scrim[open], .okc-lang-scrim.is-open { display: flex; }

.okc-lang-modal {
  font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(23, 51, 43, 0.3);
  position: relative;
  animation: okcLangRise 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes okcLangRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.okc-lang-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 6px; }
.okc-lang-head h2 {
  font-size: 19px;
  font-weight: 800;
  color: #17332B;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: normal;
}
.okc-lang-close {
  position: absolute;
  right: -6px;
  top: -4px;
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: #71817A;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.okc-lang-close:hover { color: #17332B; background: #F1F5F2; }
.okc-lang-note { text-align: center; font-size: 12px; color: #71817A; margin: 0 0 18px; line-height: 1.5; }

.okc-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.okc-lang-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 13px;
  text-decoration: none;
  background: var(--okc-lang-bg);
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.okc-lang-tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 51, 43, 0.12);
}
.okc-lang-native { font-size: 19px; font-weight: 750; color: var(--okc-lang-fg); line-height: 1.35; }
.okc-lang-english { font-size: 12.5px; font-weight: 600; color: var(--okc-lang-fg); opacity: 0.72; line-height: 1.35; }
.okc-lang-tile[aria-current="true"] { border-color: #0E7A41; }
.okc-lang-tick {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #0E7A41;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.22);
}

.okc-lang-trigger:focus-visible,
.okc-lang-tile:focus-visible,
.okc-lang-close:focus-visible {
  outline: 2.5px solid #0E7A41;
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .okc-lang-grid { grid-template-columns: 1fr; }
  .okc-lang-modal { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .okc-lang-modal { animation: none; }
  .okc-lang-tile { transition: none; }
}
