/* Top navbar: menu link color (normal) */
.top-navigation a,
.top-navigation ul li a {
  color: #000000;
}

/* Top navbar: menu link hover/focus/active color */
.top-navigation a:hover,
.top-navigation a:focus,
.top-navigation .current-menu-item > a,
.top-navigation .current_page_item > a {
  color: #ffcc00;
}

/* Add breathing room after the BuddyPress registration form */
#buddypress form#signup_form,
#buddypress #signup-form {
  padding-bottom: 48px;
  margin-bottom: 48px;
}

/* BuddyPress Members grid: prevent action buttons overlapping member info */
#buddypress #members-list li,
#buddypress #members-list li .list-wrap {
  height: auto !important;
  min-height: 0 !important;
}

#buddypress #members-list li .list-wrap {
  display: flex;
  flex-direction: column;
}

#buddypress #members-list li .item,
#buddypress #members-list li .item-block,
#buddypress #members-list li .item-meta {
  position: static !important;
  height: auto !important;
}

#buddypress #members-list li .action,
#buddypress #members-list li .item-actions {
  position: static !important;
  margin-top: 12px;
  width: 100%;
}

#buddypress #members-list li .action,
#buddypress #members-list li .item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Keep right-edge dropdowns on-screen */
@media (min-width: 768px) {
  .main-navigation .menu > li:nth-last-child(-n+2) > ul {
    left: auto !important;
    right: 0 !important;
  }

  .main-navigation .menu > li:nth-last-child(-n+2) > ul ul {
    left: auto !important;
    right: 100% !important;
  }
}

/* Ensure singular page/post titles (already h1) use H1 sizing */
.pb-singular .entry-header > h1.entry-title,
.pb-article .entry-header > h1.entry-title,
.page-header > h1.page-title,
h1.entry-title {
  font-size: 2.25em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6em;
}


/* Advanced Sidebar - Pages widget: panel background */
section.widget.advanced-sidebar-menu.advanced-sidebar-page{
  background: #fff59d !important;  /* highlighter pastel */
  padding: 16px !important;
  border-radius: 12px !important;
}

/* Tidy widget title spacing */
section.widget.advanced-sidebar-menu.advanced-sidebar-page .widget-title{
  margin-top: 0 !important;
}

/* Remove default list indent/margins */
section.widget.advanced-sidebar-menu.advanced-sidebar-page ul.parent-sidebar-menu,
section.widget.advanced-sidebar-menu.advanced-sidebar-page ul.child-sidebar-menu{
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

/* Optional: make links feel like buttons */
section.widget.advanced-sidebar-menu.advanced-sidebar-page a{
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
}

section.widget.advanced-sidebar-menu.advanced-sidebar-page a:hover{
  background: rgba(0,0,0,.06);
}

/* Favorites plugin button: centered + icon never overlaps text */
button.simplefavorite-button{
  position: relative !important;
  display: block !important;              /* allows centering via margin auto */
  width: fit-content !important;          /* prevents full-width button */
  margin: 24px auto !important;           /* space + centered */
  padding: 10px 16px 10px 2.6em !important;/* left padding reserves icon lane */
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Keep the icon in its own lane */
button.simplefavorite-button .sf-icon-bookmark{
  position: absolute !important;
  left: 0.9em !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Normalize icon rendering (prevents odd sizing/line-height) */
button.simplefavorite-button .sf-icon-bookmark:before{
  font-size: 1em !important;
  line-height: 1 !important;
}


/* Ensure the icon reserves space and doesn't sit "on top" of text */
button.simplefavorite-button .sf-icon-bookmark{
  display: inline-block !important;
  flex: 0 0 auto;
  width: 1.1em;              /* forces a consistent icon box */
  height: 1.1em;
  line-height: 1.1em;
}