/* =======================================================================================
   ECONOVETECH FINAL FIX LAYER (LOADS LAST)
   Purpose:
   - Ensure brand colors actually win (after stage1.brand.css)
   - Stop dropdown/sidemenu sigil pollution (big sigils/circle blobs)
   - Hide leftover quicknav/subheader strips
   ======================================================================================= */

:root{
  /* Keep these modest; eco-override carries primary palette.
     This file focuses on "winning" and removing pollution. */
  color-scheme: dark;
}

/* --- Kill known leftover mini-nav / subheader remnants safely --- */
#econQuickNav, .econQuickNav, .subheader, .subnav, .quicknav, .econ-quicknav,
header .subheader, header .subnav{
  display:none !important;
  visibility:hidden !important;
  height:0 !important;
  overflow:hidden !important;
}

/* --- NAV: prevent big sigils inside dropdown items / menu panels --- */
/* Keep ONE logo allowed, but stop repeated sigils showing as menu content. */
nav img[src*="sigil"],
nav svg[src*="sigil"]{
  max-height: 28px !important;
  width:auto !important;
}

/* If dropdown/menu containers exist, never show sigil images inside them */
nav .dropdown img[src*="sigil"],
nav .dropdown-menu img[src*="sigil"],
nav .menu img[src*="sigil"],
nav .panel img[src*="sigil"],
nav ul img[src*="sigil"]{
  display:none !important;
}

/* If a menu item accidentally became just an image, make it readable */
nav a{
  text-decoration:none;
}

/* --- Global layout guard: stop overlapping hub cards / stacked blocks --- */
.hubs-grid, .hub-grid, .card-grid{
  display:grid !important;
  gap:16px !important;
}

/* Hub cards: keep consistent spacing and prevent overlap */
.hub-card{
  position:relative !important;
  overflow:hidden !important;
}

/* Images should not explode layout */
img{
  max-width:100% !important;
  height:auto !important;
}