/* Site / language flag dropdown menu */
    .site-flags {
      position: relative;
      margin-right: 0.35rem;
      z-index: 5000;
    }
    .site-flags__btn {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      height: 36px;
      padding: 0 0.55rem 0 0.45rem;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      cursor: pointer;
      font-family: inherit;
      font-size: 0.8rem;
      font-weight: 600;
      transition: background 0.15s, border-color 0.15s;
    }
    .site-flags__btn:hover,
    .site-flags.is-open .site-flags__btn {
      background: rgba(255, 255, 255, 0.18);
      border-color: rgba(201, 162, 39, 0.55);
    }
    .site-flags__btn-flag {
      font-size: 1.25rem;
      line-height: 1;
    }
    .site-flags__btn-label {
      max-width: 4.5rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .site-flags__chevron {
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid rgba(255, 255, 255, 0.85);
      margin-left: 0.1rem;
      transition: transform 0.2s;
    }
    .site-flags.is-open .site-flags__chevron {
      transform: rotate(180deg);
    }
    .site-flags__menu {
      display: none !important;
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      min-width: 200px;
      padding: 0.45rem;
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 16px 40px rgba(74, 20, 32, 0.35);
      border: 1px solid #e8d9c8;
      list-style: none;
      margin: 0;
      z-index: 5000;
      max-height: min(80vh, 480px);
      overflow-y: auto;
    }
    .site-flags.is-open .site-flags__menu,
    .site-flags__menu:not([hidden]) {
      display: block !important;
    }
    .top-right {
      overflow: visible;
      position: relative;
      z-index: 2100;
    }
    .site-flags__menu a.flag-link {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.55rem 0.7rem;
      border-radius: 8px;
      text-decoration: none;
      color: #2c2c2c;
      font-size: 0.88rem;
      font-weight: 600;
      transition: background 0.15s;
    }
    .site-flags__menu a.flag-link:hover {
      background: #f8f4ec;
    }
    .site-flags__menu a.flag-link.is-active {
      background: #f0e6d8;
      color: #6b1e2a;
    }
    .site-flags__menu a.flag-link .flag-emoji {
      font-size: 1.25rem;
      line-height: 1;
    }
    .site-flags__menu a.flag-link .flag-name {
      flex: 1;
    }
    .site-flags__menu a.flag-link.is-active::after {
      content: "✓";
      color: #c9a227;
      font-weight: 800;
      font-size: 0.85rem;
    }
    @media (max-width: 900px) {
      .top-right .tagline {
        display: none;
      }
      .top-right {
        display: flex !important;
        margin-left: auto;
        margin-right: 0.35rem;
      }
      .site-flags__btn-label {
        display: none;
      }
      .site-flags__menu {
        right: 0;
        left: auto;
      }
    }

/* Flag icon images in language menu */
.site-flags__btn-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.site-flags__btn-flag img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.site-flags__menu .flag-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 24px;
  flex-shrink: 0;
}
.site-flags__menu .flag-emoji img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Hide Google Translate chrome — flags control language */
#google_translate_element {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-te-spinner-pos,
.skiptranslate iframe.skiptranslate {
  display: none !important;
}
body {
  top: 0 !important;
}
body > .skiptranslate {
  display: none !important;
}
/* Keep layout stable while Google rewrites text nodes */
font {
  vertical-align: inherit !important;
  font-size: inherit !important;
  background: none !important;
  color: inherit !important;
  box-shadow: none !important;
}

/* Translation processing overlay */
.wv-translate-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(74, 20, 32, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.wv-translate-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.wv-translate-overlay__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #c9a227;
  border-radius: 50%;
  animation: wv-spin 0.75s linear infinite;
}
.wv-translate-overlay__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: wv-pulse 1.1s ease-in-out infinite;
}
.wv-translate-overlay__text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
@keyframes wv-spin {
  to { transform: rotate(360deg); }
}
@keyframes wv-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
