/* Addresses bug in Wordpress' theme where light/dark modes are being confused with their class implementation. Bug last seen on version 6.8.1 */
.has-brand-primary-color,
.theme-dark.has-brand-primary-color,
.theme-dark.has-brand-primary-color > a,
.has-brand-primary-color.has-text-color {
  color: var(--theme-color-brand_primary) !important;
}

.has-brand-secondary-color,
.theme-dark.has-brand-secondary-color,
.theme-dark.has-brand-secondary-color > a,
.has-brand-secondary-color.has-text-color {
  color: var(--theme-color-brand_secondary) !important;
}

.has-text-primary-color,
.theme-dark.has-text-primary-color,
.theme-dark.has-text-primary-color > a,
.has-text-primary-color.has-text-color {
  color: var(--theme-color-text_primary) !important;
}

.has-text-secondary-color,
.theme-dark.has-text-secondary-color,
.theme-dark.has-text-secondary-color > a,
.has-text-secondary-color.has-text-color {
  color: var(--theme-color-text_secondary) !important;
}

.has-text-primary-color time {
  color: var(--theme-color-text_primary) !important;
}

.has-text-secondary-color time {
  color: var(--theme-color-text_secondary) !important;
}

/* Addresses bug where dropdown menu is hidden behind Hero block */

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  z-index: 5;
}

/* Add smooth scroll for anchor links on page */

html {
  scroll-behavior: smooth;
}

/* Custom text selection colors to match theme */

::selection {
  background-color: var(--theme-color-brand_primary);
  color: var(--theme-color-text_on_brand_primary);
}
