/* Persistent override for article font-size on mobile/tablet
   The parent theme forces 12px up to 1479px; override that up to 1479px.
*/
@media (max-width: 1479px) {

  .post .entry-content,
  .entry-content,
  .single .entry-content {
    font-size: 18px !important;
    line-height: 1.6;
  }
}

/* Keep a narrower rule if you only want <=1199px behavior (left for reference)
@media (max-width: 1199px) {
  .post .entry-content,
  .entry-content,
  .single .entry-content {
    font-size: 18px !important;
    line-height: 1.6;
  }
}
*/

/* Global fallback if you want to force everywhere */
/*
.post .entry-content,
.entry-content,
.single .entry-content {
  font-size: 18px !important;
}
*/

/* Jet Menu mobile fix: make mega-menu containers flow inside the mobile panel
   JetMenu uses absolute positioned containers for dropdowns; on mobile these
   can get positioned off-screen. Force them to be static/100% width inside
   the `.main-navigation.mobile-menu` panel.
*/
@media (max-width: 1024px) {

  /* Hide Jet Menu dropdown containers by default when header switches to mobile.
     They will be shown and reflowed inside the mobile panel only when the
     mobile panel has the `mobile-menu-open` class. This avoids dropdowns
     appearing outside the panel or always visible. */
  .main-navigation.mobile-menu .jet-mega-menu .jet-mega-menu-container,
  .main-navigation.mobile-menu .jet-mega-menu--layout-dropdown .jet-mega-menu-container {
    display: none !important;
    /* keep original absolute positioning as fallback but keep hidden */
    position: absolute !important;
    top: 100% !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    overflow: hidden !important;
    z-index: 999 !important;
  }

  /* When the mobile panel is opened, reflow Jet Menu containers inside it */
  .main-navigation.mobile-menu.mobile-menu-open .jet-mega-menu .jet-mega-menu-container,
  .main-navigation.mobile-menu.mobile-menu-open .jet-mega-menu--layout-dropdown .jet-mega-menu-container {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    z-index: 99999 !important;
  }
}