/* SEAQIS i18n v1.0 — pemilih bahasa, label terjemahan otomatis, penyesuaian aksara.
   File tambahan; CSS lama di halaman tidak diubah. */

/* ---------- Pemilih bahasa (di dalam .lang-switcher, bilah atas) ---------- */
.i18n-switch { position: relative; }
.i18n-switch > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-sm, 6px);
  background: var(--seaqis-yellow, #F0D919); color: var(--navy-deep, #0B1D3A);
  font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.4;
}
.i18n-switch > summary::-webkit-details-marker { display: none; }
.i18n-switch > summary::after {
  content: ""; width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
}
.i18n-switch[open] > summary::after { transform: rotate(180deg); }
.i18n-switch > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.i18n-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000;
  min-width: 220px; max-height: 70vh; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; color: #241615; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(11, 29, 58, .22), 0 2px 6px rgba(11, 29, 58, .12);
}
.i18n-menu li { margin: 0; }
.i18n-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; line-height: 1.5; color: inherit; text-decoration: none;
}
.i18n-menu a:hover, .i18n-menu a:focus-visible { background: #F1F8E9; outline: none; }
.i18n-menu a[aria-current] { color: #119849; font-weight: 700; }
.i18n-code {
  flex: 0 0 34px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #8a8a8a;
  font-family: var(--font-sans, sans-serif);
}
.i18n-menu a[aria-current] .i18n-code { color: #119849; }
@media (max-width: 640px) {
  .i18n-menu { min-width: 200px; max-width: calc(100vw - 32px); }
}

/* ---------- Label "diterjemahkan otomatis" ---------- */
.i18n-notice {
  background: #FFF8DB; color: #5B4A00; border-bottom: 1px solid #F0E2A0;
  font-size: 13px; line-height: 1.5; text-align: center; padding: 8px 16px;
}
.i18n-notice a { color: #0D6E36; font-weight: 700; text-decoration: underline; }

/* ---------- Aksara Thai, Lao, Khmer, Myanmar: huruf lebih tinggi ---------- */
html:is([lang="th"], [lang="lo"], [lang="km"], [lang="my"]) :is(h1, h2, h3, h4, h5, h6) {
  line-height: 1.4; letter-spacing: normal;
}
html:is([lang="km"], [lang="my"]) body { line-height: 1.75; }
html:is([lang="km"], [lang="my"], [lang="lo"]) :is(h1, h2) { word-break: normal; overflow-wrap: anywhere; }
