/* JereChess Web 2.4.13 F — pestañas con aspecto de botones.
   Afecta solo a las cuatro pestañas de Análisis. Colores desde la paleta activa.
   Se conserva el comportamiento anterior (aria-selected, click y teclado). */
.jere-analysis-workspace .jere-analysis-tabbar {
  gap: 6px;
  padding: 7px 8px;
  align-items: stretch;
}

html[data-jc-theme] body[data-jc-theme-module="analisis"] .jere-analysis-workspace .jere-analysis-tab {
  box-sizing: border-box;
  appearance: none;
  min-width: 0;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--an-accent, #e32936) 34%, transparent) !important;
  border-radius: 8px;
  background: color-mix(in srgb, var(--an-accent, #e32936) 7%, var(--an-bg, #080808)) !important;
  color: var(--an-text, #fff) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--an-text, #fff) 8%, transparent), 0 1px 2px #0002;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .12s ease;
  cursor: pointer;
}
html[data-jc-theme] body[data-jc-theme-module="analisis"] .jere-analysis-workspace .jere-analysis-tab:hover:not([aria-selected="true"]) {
  border-color: color-mix(in srgb, var(--an-accent, #e32936) 70%, transparent) !important;
  background: color-mix(in srgb, var(--an-accent, #e32936) 13%, var(--an-bg, #080808)) !important;
}
html[data-jc-theme] body[data-jc-theme-module="analisis"] .jere-analysis-workspace .jere-analysis-tab[aria-selected="true"] {
  border-color: var(--an-accent, #e32936) !important;
  background: color-mix(in srgb, var(--an-accent, #e32936) 20%, var(--an-bg, #080808)) !important;
  color: var(--an-accent, #e32936) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--an-accent, #e32936) 32%, transparent), 0 1px 2px #0002;
}
html[data-jc-theme] body[data-jc-theme-module="analisis"] .jere-analysis-workspace .jere-analysis-tab[aria-selected="true"] .jere-tab-symbol {
  color: inherit;
}
html[data-jc-theme] body[data-jc-theme-module="analisis"] .jere-analysis-workspace .jere-analysis-tab:focus-visible {
  outline: 2px solid var(--an-accent, #e32936) !important;
  outline-offset: 2px;
}
.jere-analysis-workspace .jere-analysis-tab:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .jere-analysis-workspace .jere-analysis-tabbar { gap: 4px; padding: 5px 5px; }
  html[data-jc-theme] body[data-jc-theme-module="analisis"] .jere-analysis-workspace .jere-analysis-tab {
    min-height: 46px;
    padding: 5px 1px;
    border-radius: 7px;
    font-size: clamp(9px, 2.45vw, 11px);
    line-height: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jere-analysis-workspace .jere-analysis-tab { transition: none; }
}
