/* =========================================================
   FREETV — WORDPRESS NAV MENU COMPATIBILITY LAYER
   The original design was built with plain <a> tags in a flex
   row. wp_nav_menu() outputs <ul><li><a></a></li></ul>. Rather
   than rewrite the design, we "unwrap" the <ul>/<li> boxes with
   display:contents so the <a> tags become direct flex children
   again, and we map WordPress's "current-menu-item" class onto
   the same visual treatment the static site used for ".is-active".
   ========================================================= */

.ftv-nav__links ul,
.ftv-nav__links li,
.ftv-mobile-menu ul,
.ftv-mobile-menu li {
  display: contents;
}

.ftv-nav__links .current-menu-item > a,
.ftv-nav__links .current_page_item > a {
  color: var(--ftv-white);
  border-bottom-color: var(--ftv-red);
}

.ftv-mobile-menu .current-menu-item > a,
.ftv-mobile-menu .current_page_item > a {
  color: var(--ftv-red);
}

/* Fallback menu (only used before the primary menu location has an
   assigned menu, e.g. immediately after a manual file copy without
   running the activation hook). */
.ftv-nav__links .ftv-fallback-menu,
.ftv-mobile-menu .ftv-fallback-menu {
  display: contents;
}
