/* LMCD language toggle — uses the lmcd theme's color tokens, with fallbacks. */

.site-header .header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lmcd-lang {
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
  border: 1px solid rgba(248, 244, 234, 0.45);
  border-radius: 999px;
  font-family: var(--font-body, inherit);
  line-height: 1;
}

.lmcd-lang button {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--cream, #f8f4ea);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45em 0.8em;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.lmcd-lang button:hover { background: rgba(248, 244, 234, 0.12); }
.lmcd-lang button:focus-visible {
  outline: 2px solid var(--amber-text, #e0a94f);
  outline-offset: 2px;
}
.lmcd-lang button[aria-pressed="true"] {
  background: var(--cream, #f8f4ea);
  color: var(--pine-dark, #142a21);
  cursor: default;
}

.lmcd-lang-short { display: none; }

/* Fallback if a page has no theme header. */
.lmcd-lang--floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--pine-dark, #142a21);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Theme collapses the nav at 1240px and hides the header button; keep the
   toggle visible, sitting just left of the menu button. */
@media (max-width: 1240px) {
  .site-header .header-cta { order: 1; margin-left: auto; }
}
/* Short EN/ES labels where the header is tight: small screens, and the
   full inline desktop nav (theme container caps at 1200px). */
@media (max-width: 860px), (min-width: 1241px) {
  .lmcd-lang-full { display: none; }
  .lmcd-lang-short { display: inline; }
  .lmcd-lang button { padding: 0.5em 0.7em; }
}

/* Spanish menu labels are much longer and overflow the inline desktop nav,
   so while translated use the theme's collapsed (hamburger) layout at all
   widths. Mirrors the theme's own max-width: 1240px rules. */
@media (min-width: 1241px) {
  html.translated-ltr .header-inner { flex-wrap: wrap; }
  html.translated-ltr .nav-toggle-mobile { display: inline-flex; order: 2; }
  html.translated-ltr .site-header .header-cta { order: 1; margin-left: auto; }
  html.translated-ltr .primary-nav { order: 4; flex-basis: 100%; display: none; }
  html.translated-ltr .primary-nav.mobile-open { display: block; }
  html.translated-ltr .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding-top: 0.5rem; border-top: 1px solid rgba(248,244,234,0.15); }
  html.translated-ltr .nav-list > li { width: 100%; }
  html.translated-ltr .nav-link,
  html.translated-ltr .nav-toggle { width: 100%; justify-content: space-between; }
  html.translated-ltr .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--amber, #c07f22); border-radius: 0; margin-left: 0.5rem; }
}

/* The Spanish district name is longer; let the brand block wrap instead of
   pushing off-screen (the theme sets it to flex-shrink: 0). */
html.translated-ltr .site-header .brand { flex-shrink: 1; min-width: 0; }

/* Machine-translation notice (Spanish only). */
.lmcd-mt-note {
  background: var(--paper, #fffbf3);
  border-bottom: 1px solid var(--line, #ddd2ba);
  color: var(--slate, #4c5b66);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.lmcd-mt-note a { color: var(--amber-deep, #8a5a17); font-weight: 600; }

/* Hide Google Translate's own chrome: top banner, hover tooltips, highlights. */
#lmcd-gt,
.skiptranslate > iframe,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-yAWNEb-L7lbkb,
.goog-tooltip {
  display: none !important;
}
body { top: 0 !important; }
.goog-text-highlight,
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  background: none !important;
  box-shadow: none !important;
}
