/* Shared Resources menu: full-width backdrop and site-aligned inner grid. */
.nl-resource-item .nl-resource-panel {
  padding: 0 !important;
  border: 0;
  border-radius: 0;
}
.nl-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 1295px;
  margin: 0 auto;
  padding: 24px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.nl-resource-intro {
  padding: 12px 24px;
}
.nl-resource-item .nl-resource-panel a.nl-resource-link {
  display: flex !important;
  align-items: flex-start;
  gap: 14px;
  white-space: normal !important;
  padding: 12px 24px !important;
  border-radius: 0;
  min-width: 0;
}
.nl-resource-link:hover,
.nl-resource-link:focus-visible {
  background-color: #edf6fc;
}
/* All three menus use Hostco's .sub-menu transition and shared open/close handling. */
@media (prefers-reduced-motion: reduce) {
  .nl-matched-submenu > .sub-menu {
    transition: none;
  }
}
@media (max-width: 1199px) {
  .nl-resource-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
    border: 0;
  }
  .nl-resource-intro,
  .nl-resource-item .nl-resource-panel a.nl-resource-link {
    padding: 12px 8px !important;
  }
}

@media (min-width: 1200px) {
  .nl-resource-item { position: static !important; }
}

/* Nested theme grids must remain inside their bordered dropdown section. */
@media(min-width:1200px){
#pxl-wapper .nl-matched-submenu .elementor-top-section:not(.elementor-section-full_width) .elementor-section.elementor-inner-section > .elementor-container { margin:0; width:100%; }
.nl-resource-grid { gap:0; }
.nl-resource-intro, .nl-resource-item .nl-resource-panel a.nl-resource-link { margin:0 10px; padding:12px 14px !important; }
}
/* Other mega menus paint their white background on an Elementor child section;
   Resources has a native grid, so its panel supplies the same surface. */
.nl-resource-item > .nl-resource-panel { background: #fff !important; }
