/* Pillan360 v10.9-RC-HF4 · legibilidad de pestañas y cambio de tema.
   Causa: css/45-light-palette aplica color blanco !important a hijos de
   contenedores con clases bg-slate-8, incluso si el fondo REAL es claro.
   Corregir exclusivamente controles concretos en modo claro. No modificar
   las reglas Windy validadas en HF3 ni la apariencia del modo oscuro. */

/* Texto y pictogramas de todas las pestañas: mismo azul marino sobre fondos claros.
   !important y el ID de la región son necesarios: la regla heredada
   contiene :not(#tab-maps *), que también suma especificidad de ID. */
body.light-mode #app-main #main-tabs > button.tab-btn,
body.light-mode #app-main #main-tabs > button.tab-btn:is(.active,[aria-selected="true"]),
body.light-mode #app-main #main-tabs > button.tab-btn:hover,
body.light-mode #app-main #main-tabs > button.tab-btn:focus-visible {
  color: #172554 !important;
}
body.light-mode #app-main #main-tabs > button.tab-btn :is(svg,i) {
  color: #172554 !important;
  stroke: currentColor;
}

/* Activador de modo oscuro: misma tinta, fondo y borde que los controles
   Windy inactivos, conservando su silueta circular y etiquetas accesibles. */
body.light-mode #main-header #pillan-theme-toggle {
  color: #172554 !important;
  background: #f8fafc !important;
  border: 1px solid #64748b !important;
  min-width: 2.15rem;
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.light-mode #main-header #pillan-theme-toggle:hover {
  background: #dbeafe !important;
  border-color: #1e40af !important;
  color: #172554 !important;
}
body.light-mode #main-header #pillan-theme-toggle:focus-visible {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}
body.light-mode #main-header #pillan-theme-toggle #theme-icon,
body.light-mode #main-header #pillan-theme-toggle svg {
  color: #172554 !important;
  stroke: #172554 !important;
}
