/*
Theme Name:     Child of purdue-home-theme
Theme URI:      
Description:    Purdue-home-theme child theme.
Author:         Auto-generated
Author URI:     
Template:       purdue-home-theme
Version:        0.2
*/

/* These 3 assist with ensuring only 1 item is underlined in all second nav bars */
/* 1. Underline the parent item when you're on a nested page */
.purdue-second-nav .menu-items .navbar-item.current-page-ancestor a:before {
  visibility: visible;
  transform: scaleX(1);
}

/* 2. If the current page is itself in the nav, don't also underline its ancestors */
.purdue-second-nav .menu-items:has(.current-menu-item) .navbar-item.current-page-ancestor a:not(:hover):before {
  visibility: hidden;
  transform: scaleX(0);
}

/* 3. If several ancestors are in the nav (e.g. Home + Explore Our Programs), only underline the closest one */
.purdue-second-nav .menu-items .navbar-item.current-page-ancestor:has(~ .navbar-item.current-page-ancestor) a:not(:hover):before {
  visibility: hidden;
  transform: scaleX(0);
}

/* Event popup lists */
.modal-wrapper .wp-post-modal #modal-content ul:not(.purdue-home-button-list) {
	padding-top: 0;
}

.modal-wrapper .wp-post-modal #modal-content ul:not(.purdue-home-button-list) li {
	line-height: 1.75;
	text-align: left;
}

/* forces buttons unclickable and grey out - for events */
.event-btn-disabled,
.event-btn-disabled a,
.event-btn-disabled button {
  opacity: 0.5 !important;
  filter: grayscale(100%) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* footer titles not displaying; adding this in till PBS can fix parent theme */
@media (min-width: 1024px) {
  .footer .resources__column.footer__links h2:not(:has(.footer-link-label)) .accordion__heading--footer {
    display: flex;
  }
  .footer .resources__column.footer__links h2:not(:has(.footer-link-label)) .accordion__icon {
    display: none;
  }
}