/* TESSIRVE Theme 5.17.311. Solo apariencia de navegación PC.
   La cabecera conserva el césped y el árbol de navegación existente. */
@media (min-width:1181px) {
  /* El bloque rectangular aclarado NO debe tapar la textura del header. */
  html body.tessirve-theme .ms-site-header .ms-header-submenus,
  html body.tessirve-theme .ms-site-header .ms-header-submenu,
  html body.tessirve-theme .ms-site-header .ms-header-submenu-inner {
    background: transparent!important;
    background-image: none!important;
    box-shadow: none!important;
    backdrop-filter: none!important;
  }
  html body.tessirve-theme .ms-site-header .ms-header-submenus {
    border-color:transparent!important;
  }
  /* 310 aplica un fondo especial al modo oscuro con más especificidad. */
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-site-header .ms-header-submenus,
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-site-header .ms-header-submenu,
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-site-header .ms-header-submenu-inner {
    background:transparent!important;
    background-color:transparent!important;
    background-image:none!important;
  }
  html body.tessirve-theme .ms-site-header .ms-cup-group-308.is-open {
    z-index:9500!important;
  }
  /* MODO CLARO: submenú legible, teñido con el color del switch, NO negro. */
  html:not([data-tessirve-color-mode="dark"]) body.tessirve-theme .ms-site-header .ms-cup-group-308 > .ms-country-competitions {
    background:
      linear-gradient(130deg,rgba(255,255,255,.69),rgba(255,255,255,.76)),
      linear-gradient(135deg,color-mix(in srgb,var(--theme-primary,#287c46) 45%,#ffffff),color-mix(in srgb,var(--theme-secondary,#1a5b3d) 38%,#ffffff)),
      url('tessirve-anime-grass.webp') center / cover no-repeat!important;
    background-color:color-mix(in srgb,var(--theme-primary,#287c46) 26%,#ffffff)!important;
    color:#18352a!important;
    border-color:color-mix(in srgb,var(--theme-primary,#287c46) 34%,#acb9af)!important;
    box-shadow:0 12px 24px rgba(16,25,23,.20),inset 0 1px rgba(255,255,255,.75)!important;
  }
  html:not([data-tessirve-color-mode="dark"]) body.tessirve-theme .ms-site-header .ms-cup-group-308 .ms-country-competition-link {
    color:#18372d!important;
    text-shadow:none!important;
    background:rgba(255,255,255,.70)!important;
    border:1px solid rgba(27,57,44,.15)!important;
    box-shadow:none!important;
  }
  html:not([data-tessirve-color-mode="dark"]) body.tessirve-theme .ms-site-header .ms-cup-group-308 .ms-country-competition-link:is(:hover,:focus-visible) {
    color:#10291e!important;
    background:rgba(255,255,255,.93)!important;
    border-color:color-mix(in srgb,var(--theme-primary,#287c46) 52%,#4a7f60)!important;
    outline:2px solid color-mix(in srgb,var(--theme-primary,#287c46) 48%,#9cbbab)!important;
  }
  /* MODO OSCURO: pastito coloreado, no bloque negro liso. */
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-site-header .ms-cup-group-308 > .ms-country-competitions {
    background:
      linear-gradient(140deg,rgba(7,18,15,.38),rgba(4,12,12,.52)),
      linear-gradient(130deg,color-mix(in srgb,var(--theme-primary,#285b4d) 70%,#22384e),color-mix(in srgb,var(--theme-secondary,#254b50) 70%,#1b3349)),
      url('tessirve-anime-grass.webp') center / cover no-repeat!important;
    color:#fff!important;
    border-color:rgba(235,248,244,.44)!important;
  }
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-site-header .ms-cup-group-308 .ms-country-competition-link {
    color:#fff!important;
    text-shadow:0 1px 2px rgba(0,0,0,.5)!important;
    background:rgba(255,255,255,.11)!important;
    border:1px solid rgba(255,255,255,.25)!important;
  }
  html[data-tessirve-color-mode="dark"] body.tessirve-theme .ms-site-header .ms-cup-group-308 .ms-country-competition-link:is(:hover,:focus-visible) {
    background:rgba(255,255,255,.23)!important;
    border-color:rgba(255,255,255,.65)!important;
  }
}
