/* ============================================
   Blog: Forzar ancho completo cuando no hay TOC
   ============================================ */
.md-content {
  max-width: none;
}
.blog-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ============================================
   Pestañas movidas con JS – Integración estable
   ============================================ */

/* Oculta la barra de pestañas original (se ha movido al header) */
.md-tabs[data-md-component="tabs"]:not(.tabs-moved) {
  display: none !important;
}

/* Las pestañas ahora dentro del header */
.md-tabs.tabs-moved {
  flex: 1 1 auto;
  margin: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: max-content;
}

.md-tabs.tabs-moved .md-grid {
  padding: 0;
  height: 100%;
  max-width: none;
}

.md-tabs.tabs-moved .md-tabs__list {
  display: flex;
  gap: 0.2rem;
  height: 100%;
  align-items: center;
}

/* Asegura que el header permita scroll si las pestañas son muchas */
.md-header__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
}
.md-header__inner::-webkit-scrollbar {
  display: none;                  /* Chrome/Safari */
}

/* Como no tienes título visible, ocultamos el contenedor del título para dar más espacio */
.md-header__title {
  display: none;
} 
.md-header__button.md-logo {
  display: none;                  /* también oculta el logo miniatura si prefieres */
}

/* ============================================
   Iconos en blanco nuclear en modo oscuro
   ============================================ */
[data-md-color-scheme="slate"] .md-header .md-icon,
[data-md-color-scheme="slate"] .md-source__icon svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}
