/* Heavenly Key Translator — Facebook-style language selector (28 Nov 2026).
   Client-side only: the visitor's device does the translation work.
   Approved palette: magenta #b40059, bright blue, gold, white. */
.hk-lang{position:relative;display:inline-flex;vertical-align:middle}
.hk-lang-btn{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;
  font:600 16px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#b40059;
  background:#ffffff;border:2px solid #b40059;border-radius:999px;cursor:pointer;
  box-shadow:0 2px 8px rgba(180,0,89,.18);white-space:nowrap}
.hk-lang-btn:hover{background:#fdf2f7}
.hk-lang-btn:focus-visible{outline:3px solid #c9a227;outline-offset:2px}
.hk-lang-btn svg{width:20px;height:20px;flex:0 0 auto}
.hk-lang-btn .hk-lang-caret{width:14px;height:14px}
.hk-lang-panel{position:absolute;top:calc(100% + 8px);right:0;z-index:1600;width:min(92vw,560px);
  max-height:min(70vh,560px);display:flex;flex-direction:column;background:#ffffff;color:#1c1c28;
  border:1px solid #e8d5a8;border-radius:16px;box-shadow:0 16px 48px rgba(8,20,60,.28);overflow:hidden}
.hk-lang-panel[hidden]{display:none}
.hk-lang-empty[hidden]{display:none}
.hk-lang-head{padding:12px 16px 8px;border-bottom:3px solid #c9a227}
.hk-lang-head h2{margin:0 0 8px;font:700 18px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#b40059}
.hk-lang-search{width:100%;min-height:48px;padding:10px 14px;font:400 16px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:#1c1c28;background:#fff8e7;border:2px solid #c9a227;border-radius:12px;box-sizing:border-box}
.hk-lang-search:focus-visible{outline:3px solid #1235ff;outline-offset:1px}
.hk-lang-list{overflow-y:auto;padding:8px;display:grid;grid-template-columns:1fr;gap:2px}
@media (min-width:720px){.hk-lang-list{grid-template-columns:1fr 1fr}}
.hk-lang-opt{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;text-align:left;
  font:400 16px/1.3 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1c1c28;
  background:transparent;border:0;border-radius:10px;cursor:pointer;width:100%;box-sizing:border-box}
.hk-lang-opt:hover,.hk-lang-opt:focus-visible{background:#fdf2f7;outline:none}
.hk-lang-opt:focus-visible{box-shadow:inset 0 0 0 2px #c9a227}
.hk-lang-opt .hk-lang-native{font-weight:600}
.hk-lang-opt .hk-lang-english{color:#5a5a6e;font-size:16px}
.hk-lang-opt .hk-lang-check{margin-left:auto;width:20px;height:20px;color:#b40059;visibility:hidden;flex:0 0 auto}
.hk-lang-opt[aria-selected="true"] .hk-lang-check{visibility:visible}
.hk-lang-opt[aria-selected="true"]{background:#fdf2f7}
.hk-lang-empty{padding:16px;font:400 16px/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#5a5a6e}
.hk-lang-fixed{position:fixed;top:calc(10px + env(safe-area-inset-top,0px));right:calc(10px + env(safe-area-inset-right,0px));z-index:1500}
/* Dark contexts (Bible Night mode + system dark): keep 4.5:1 contrast. */
@media (prefers-color-scheme:dark){
  .hk-lang-btn{background:#241a20;color:#ffb9d9;border-color:#ff7ab8}
  .hk-lang-btn:hover{background:#33202c}
  .hk-lang-panel{background:#241a20;color:#f5eef2;border-color:#6b5a2a}
  .hk-lang-head h2{color:#ffb9d9}
  .hk-lang-search{background:#33202c;color:#f5eef2}
  .hk-lang-opt{color:#f5eef2}
  .hk-lang-opt:hover,.hk-lang-opt:focus-visible,.hk-lang-opt[aria-selected="true"]{background:#33202c}
  .hk-lang-opt .hk-lang-english{color:#c9bcc4}
  .hk-lang-opt .hk-lang-check{color:#ffb9d9}
  .hk-lang-empty{color:#c9bcc4}
}
html[data-theme="dark"] .hk-lang-btn,body.night .hk-lang-btn,body.night-mode .hk-lang-btn,body.dark .hk-lang-btn{background:#241a20;color:#ffb9d9;border-color:#ff7ab8}
html[data-theme="dark"] .hk-lang-panel,body.night .hk-lang-panel,body.night-mode .hk-lang-panel,body.dark .hk-lang-panel{background:#241a20;color:#f5eef2;border-color:#6b5a2a}
html[data-theme="dark"] .hk-lang-opt,body.night .hk-lang-opt,body.night-mode .hk-lang-opt,body.dark .hk-lang-opt{color:#f5eef2}
html[data-theme="dark"] .hk-lang-search,body.night .hk-lang-search,body.night-mode .hk-lang-search,body.dark .hk-lang-search{background:#33202c;color:#f5eef2}
/* Hide the default Google Translate banner/menu — our selector is the face. */
.goog-te-banner-frame{display:none!important}
.goog-te-gadget{display:none!important}
body{top:0!important}
.goog-tooltip,.goog-tooltip:hover{display:none!important}
.goog-text-highlight{background:none!important;box-shadow:none!important}
#google_translate_element{display:none!important}
@media (prefers-reduced-motion:reduce){.hk-lang-btn,.hk-lang-opt{transition:none!important}}
