/* Baunti v8 layer for the public site. Loaded after the app CSS and the v4–v7 layers. */

/* 1. One fixed theme: no toggle anywhere (display:none also takes it out of the accessibility tree) */
[data-theme-toggle] { display: none !important; }

/* 2. The logo: no box, no ring, no glow on press ------------------------------------------- */
[data-bt-brand] {
  -webkit-tap-highlight-color: transparent;
  border-radius: 999px;
  outline: none;
  box-shadow: none !important;
  background: transparent !important;
}
/* the rabbit presses in; the wordmark stays put */
[data-bt-brand] > span > svg:first-child,
[data-bt-brand] > svg:first-child,
[data-bt-brand] > img:first-child {
  transform-origin: 50% 60%;
  transition: transform 220ms var(--bt-ease-out, cubic-bezier(.23, 1, .32, 1));
}
[data-bt-brand]:active > span > svg:first-child,
[data-bt-brand]:active > svg:first-child,
[data-bt-brand]:active > img:first-child,
[data-bt-brand].bt-glint > span > svg:first-child,
[data-bt-brand].bt-glint > svg:first-child,
[data-bt-brand].bt-glint > img:first-child { transform: scale(0.94); transition-duration: 90ms; }
/* the monocle catches the light for a moment */
[data-bt-brand].bt-glint circle[r="6"] { animation: bt-lens-glint 240ms var(--bt-ease-out, cubic-bezier(.23, 1, .32, 1)); }
@keyframes bt-lens-glint {
  0% { stroke: #ff6b5b; stroke-width: 2.8; }
  35% { stroke: #ffd9c2; stroke-width: 3.6; }
  100% { stroke: #ff6b5b; stroke-width: 2.8; }
}
/* keyboard focus keeps a clear ring; mouse and touch show none */
[data-bt-brand]:focus:not(:focus-visible) { outline: none; }
[data-bt-brand]:focus-visible {
  outline: 2px solid #ff6b5b !important;
  outline-offset: 4px;
  border-radius: 999px;
}
@media (prefers-reduced-motion: reduce) {
  [data-bt-brand] > span > svg:first-child,
  [data-bt-brand] > svg:first-child,
  [data-bt-brand] > img:first-child { transition: none; }
  [data-bt-brand]:active > span > svg:first-child,
  [data-bt-brand]:active > svg:first-child,
  [data-bt-brand]:active > img:first-child,
  [data-bt-brand].bt-glint > span > svg:first-child,
  [data-bt-brand].bt-glint > svg:first-child,
  [data-bt-brand].bt-glint > img:first-child { transform: none; }
  [data-bt-brand].bt-glint circle[r="6"] { animation-duration: 1ms; }
}

/* 3. Language button: a translate glyph (Material Symbols "translate", Apache 2.0)
   with the target language code beside it. The button's text and label stay
   the app's own, so screen readers still hear "Switch to English". */
:is(button[aria-label="Switch to English"], button[aria-label="Cambiar a español"],
    button[aria-label$=": Switch to English"], button[aria-label$=": Cambiar a español"],
    [data-lang-toggle]) {
  gap: 0.3rem;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
:is(button[aria-label="Switch to English"], button[aria-label="Cambiar a español"],
    button[aria-label$=": Switch to English"], button[aria-label$=": Cambiar a español"],
    [data-lang-toggle])::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z'/%3E%3C/svg%3E") center / contain no-repeat;
}
