/* Armouria — language menu + Google Translate clean-up */

/* hide Google's own bar, balloon and highlight */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb, #arm-gt-el { display: none !important; }
html.arm-translated body { top: 0 !important; position: static; }
html.arm-translated body.login, html.arm-translated body.wp-admin { position: relative; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style*="vertical-align"] { vertical-align: baseline !important; background: none !important; box-shadow: none !important; }

/* ---- menu ---- */
.arm-lang { position: relative; font-family: "Figtree", system-ui, sans-serif; }
.arm-lang-item { display: flex; align-items: center; }
/* the theme hides header action items at 1365px and below and shows its mobile list only at 960px and below:
   keep the globe in between (found 2026-11-22; v1 had the same gap) */
@media screen and (min-width: 961px) and (max-width: 1365px) {
  .header .header-actions .action-item-wrap.arm-lang-item { display: flex; }
}
.arm-lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; margin: 0 6px;
  border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  color: var(--color-header-icon, #9fd3cc); font: 700 .8rem/1 "Rajdhani", "Figtree", sans-serif; letter-spacing: .06em;
  transition: color .2s, background-color .2s; width: auto !important; box-shadow: none !important;
}
.arm-lang-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.arm-lang-btn:hover, .arm-lang.is-open .arm-lang-btn { color: var(--color-header-icon-hover, #fff); background: rgba(255, 255, 255, .1); }
.arm-lang-btn:focus-visible { outline: 2px solid #E0A93B; outline-offset: 2px; }
.arm-lang-code { min-width: 1.4em; text-align: left; }

.arm-lang-panel {
  position: fixed; top: 70px; left: 12px; z-index: 2147483000; width: 250px;
  max-height: min(70vh, 520px); overflow: auto; padding: 14px 10px 10px;
  background: var(--color-box-background, #fff); color: var(--color-text, #1C2430);
  border: 1px solid var(--color-border, #dde5e3); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(14, 26, 26, .22); text-align: left;
  animation: arm-lang-pop .18s ease-out;
}
@keyframes arm-lang-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.arm-lang-head { margin: 0 8px; font: 700 .95rem/1.2 "Sora", sans-serif; color: var(--color-text, #1C2430); }
.arm-lang-sub { margin: 4px 8px 10px; font-size: .75rem; line-height: 1.4; color: var(--color-text-alt, #6b7a80); }
/* "translated automatically by Microsoft Translator" note under the heading */
.arm-lang-auto { display: flex; gap: 6px; margin: -2px 8px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(97, 93, 250, .08); font-size: .7rem; line-height: 1.45; color: var(--color-text-alt, #6b7a80); }
.arm-lang-auto span { flex: none; }
.arm-lang-panel ul { list-style: none; margin: 0; padding: 0; }
.arm-lang-panel li button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100% !important; height: auto;
  margin: 0; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; box-shadow: none !important;
  color: var(--color-text, #1C2430); font: 600 .9rem/1.25 "Figtree", system-ui, sans-serif; text-align: left; cursor: pointer;
}
.arm-lang-panel li button small { font-size: .7rem; font-weight: 600; color: var(--color-text-alt, #6b7a80); }
.arm-lang-panel li button:hover { background: var(--color-box-hover-background, #eaf2f0); }
.arm-lang-panel li button.is-on { background: rgba(15, 110, 106, .1); color: #0F6E6A; }
.arm-lang-panel li button.is-on::after { content: "✓"; font-weight: 800; color: #0F6E6A; }
.arm-lang-panel li button.is-on small { display: none; }
.arm-lang-panel li:first-child { border-bottom: 1px solid var(--color-divider, #e6ecea); padding-bottom: 6px; margin-bottom: 6px; }

/* pages without the site header (sign-in, join) */
.arm-lang-float { position: fixed; top: 14px; right: 14px; z-index: 100000; }
.arm-lang-float .arm-lang-btn {
  margin: 0; background: rgba(255, 255, 255, .92); color: #0F6E6A;
  border: 1px solid #dde5e3; box-shadow: 0 6px 20px rgba(14, 26, 26, .1) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.arm-lang-float .arm-lang-btn:hover, .arm-lang-float.is-open .arm-lang-btn { background: #fff; color: #0b5a57; }

/* ---- "showing in …" note ---- */
.arm-lang-note {
  position: fixed; left: 50%; bottom: 20px; z-index: 100001; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 10px 10px 10px 16px; border-radius: 999px;
  background: #0E1A1A; color: #fff; font: 500 .9rem/1.35 "Figtree", system-ui, sans-serif;
  box-shadow: 0 14px 40px rgba(14, 26, 26, .3);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .35s, transform .35s;
}
.arm-lang-note.is-in { opacity: 1; transform: translate(-50%, 0); }
.arm-lang-note b { color: #f1c76a; }
.arm-lang-note-ico { font-size: 1.1rem; }
.arm-lang-note button {
  flex: none; width: auto !important; height: auto; margin: 0; border: 0; cursor: pointer; box-shadow: none !important;
  font: 700 .8rem/1 "Figtree", system-ui, sans-serif;
}
.arm-lang-note-orig { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.arm-lang-note-orig:hover { background: rgba(255, 255, 255, .22); }
.arm-lang-note-x { width: 30px !important; height: 30px; border-radius: 50%; background: transparent; color: #9fd3cc; font-size: 1.2rem !important; }
.arm-lang-note-x:hover { color: #fff; }

@media (max-width: 680px) {
  .arm-lang-btn { margin: 0 2px; padding: 0 8px; }
  .arm-lang-btn .arm-lang-code { display: none; }
  .arm-lang-float .arm-lang-btn .arm-lang-code { display: inline; }
  .arm-lang-note { left: 12px; right: 12px; bottom: 12px; transform: translateY(16px); border-radius: 18px; }
  .arm-lang-note.is-in { transform: none; }
  .arm-lang-note-text { flex: 1; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .arm-lang-panel { animation: none; } .arm-lang-note { transition: none; } }

/* names stay in the original; keep a gap before the translated sentence that follows */
html.arm-translated .user-status-title > a.notranslate { margin-right: .3em; }

/* phone header twin (sits in Vikinger's mobile action list, before the search icon) */
.arm-lang-mobile { display: flex; align-items: center; }
.arm-lang-mobile .arm-lang-btn { height: 40px; padding: 0 8px; margin: 0; }
.arm-lang-mobile .arm-lang-btn .arm-lang-code { display: none; }

/* translated member content: "Translated by Microsoft · Show original" (arm-tx.js) */
.arm-tx-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .75rem; line-height: 1.4; color: var(--color-text-alt, #8f91ac); }
.arm-tx-bar button { border: 0; background: none; padding: 0; margin: 0; color: #615DFA; font: inherit; font-weight: 700; cursor: pointer; width: auto; height: auto; box-shadow: none; }
.arm-tx-bar button:hover { text-decoration: underline; background: none; }
