.wpcom-connect-button-container {
    position: relative !important;
    margin-top: 15px !important;
    clear: both !important;
}
/* Fix Classic Editor link dialog hiding under WP admin bar */
#wp-link,
#wp-link-backdrop {
    z-index: 999999 !important;
}

/* Also raise TinyMCE modal windows (TablePress uses these) */
.mce-window,
.mce-container {
    z-index: 999999 !important;
}
#wp-link,
#wp-link-backdrop,
.tablepress-link-dialog,
.mce-window,
.mce-window .mce-container {
    z-index: 999999 !important;
}
#wpadminbar {
    z-index: 9999 !important;
}
#wp-link {
    top: 60px !important;
}
#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 500 !important;
}
#wp-content-editor-container,
#wp-content-wrap,
.tablepress-editor {
    margin-top: 32px !important;
}
/* Make the menu stretch edge-to-edge */
#site-navigation .menu {
    display: flex !important;
    flex-wrap: wrap !important;     /* allow wrapping */
    justify-content: space-between; /* spread items across width */
    width: 100% !important;
}

/* Allow items to shrink instead of forcing overflow */
#site-navigation .menu > li {
    flex: 0 1 auto !important;
}

/* Reduce padding so long headings fit better */
#site-navigation .menu > li > a {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 15px !important;     /* slightly smaller, still readable */
    white-space: normal !important; /* allow text to wrap if needed */
}

/* Prevent weird spacing on wrapped rows */
#site-navigation .menu > li {
    margin: 0 !important;
}
.main-navigation .menu-item a,
.menu-item a {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.main-navigation .menu-item,
.menu-item {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.main-navigation ul,
.menu {
  display: flex !important;
  
}
.main-navigation ul,
.menu {
  display: flex !important;
  justify-content: space-between !important;
}

.main-navigation .menu-item,
.menu-item {
  width: auto !important;
  flex: 0 0 auto !important;
}
.main-navigation a,
.menu-item a {
  white-space: normal !important;
}

.main-navigation .menu-item,
.menu-item {
  flex: 0 1 auto !important;
}
/* Green bar only as wide as the page content */
nav.main-navbar {
  background-color: transparent !important;
}

nav.main-navbar > .container {
  background-color: #6db33f;
}
   body:has(.gvf-page) h1.entry-title { display: none; }
/* GVF pages: no duplicate title */
body:has(.gvf-page) h1.entry-title { display: none; }
/* Phones: stop the site header pushing the page wider than the screen */
@media (max-width: 600px) {
  .site-slogan, .site-slogan .site-name, .site-slogan .slogan { white-space: normal !important; overflow-wrap: anywhere; }
  .site-slogan { min-width: 0 !important; max-width: calc(100vw - 110px) !important; }
}
/* Phones: larger text on GVF pages */
@media (max-width: 600px) {
  .gvf-page { font-size: 18px !important; }
  .gvf-page [style*="font-size: 13px"] { font-size: 15px !important; }
  .gvf-page [style*="font-size: 14px"] { font-size: 16px !important; }
  .gvf-page [style*="font-size: 15px"] { font-size: 17px !important; }
  .gvf-page [style*="font-size: 16px"] { font-size: 17px !important; }
}
