/**
 * Site-wide color overrides (every page).
 * #006 / #000066 → #121212
 * Hover on #121212 color/background → #212121
 */

/* Leftover navy accents */
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link:focus,
.footer-menu__container #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link:hover,
#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link {
  border-bottom-color: #212121;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover {
  background-color: #212121 !important;
  color: #ffff !important;
}

#mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:focus {
  background-color: #121212 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  color: #ffff !important;
}

/* Header / buttons / pills: #121212 → #212121 on hover */
.site-header .primary-header .header-wrapper .header-container .right-container .search-wrap:hover,
.site-header .primary-header .header-wrapper .header-container .right-container .acct-wrap:hover,
.site-header .primary-header .header-wrapper .header-container .right-container .newsletter-container .newsletter-wrap:hover,
.button-container a.button:hover,
.button-container button.load-more:hover,
.contact-us .content_wrapper .nf-form-content .submit-container input:hover,
.glossary-highlight:hover,
.select2-results__option--highlighted,
.breadcrumbs-nav:hover {
  background: #212121;
  background-color: #212121;
}

a:hover,
a:focus,
a:active {
  color: #212121;
}

footer.site-footer a:hover,
footer.site-footer a:focus,
.site-header .newsletter-wrap:hover,
.site-header .newsletter-wrap:hover a,
#mega-menu-wrap-menu-1 a.mega-menu-link:hover,
.category-name:hover,
.category-name:hover a {
  color: #ffff;
}

.category-name:has(h1):hover,
.category-name:has(h1):hover a,
.category-name:has(h1):hover h1,
.category-name h1:hover,
.category-name h1 {
  background: none !important;
  background-color: transparent !important;
}
.category-name:has(h1):hover,
.category-name:has(h1):hover a,
.category-name:has(h1):hover h1,
.category-name h1:hover {
  color: #121212 !important;
}

.item-taxonomy a:hover,
.item-taxonomy a:focus {
  background: none !important;
  background-color: transparent !important;
  text-decoration: underline !important;
  color: inherit !important;
}

.featured-article.article-item .item-taxonomy a:hover,
.featured-article.article-item .item-taxonomy a:focus {
  background: #121212 !important;
  background-color: #121212 !important;
  color: #fff !important;
}

.mp_wrapper .gq-location button.gq-location__caret,
.gq-location button.gq-location__caret,
button.gq-location__caret {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 36px !important;
  height: 42px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.mp_wrapper .gq-location button.gq-location__caret::before,
.gq-location button.gq-location__caret::before,
button.gq-location__caret::before {
  margin: 0 !important;
  border-color: #888 transparent transparent transparent !important;
}
.gq-location.is-open .gq-location__caret::before,
.gq-location.is-open button.gq-location__caret::before {
  border-color: transparent transparent #888 transparent !important;
}
.gq-location.is-disabled .gq-location__caret::before {
  border-top-color: #888 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-container .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent !important;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b,
.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #888 transparent !important;
}

.search-filters-wrap {
  position: relative;
  min-width: 0;
  flex: 1;
  width: 100%;
  max-width: 100%;
}
.search-filters-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 75%);
  pointer-events: none;
  z-index: 2;
}

.search-result-group.categories-container .sub-item h3,
.search-result-group.categories-container .sub-item a:hover,
.search-result-group.categories-container .sub-item a:focus,
.search-result-group.categories-container .sub-item a:hover h3,
.search-result-group.categories-container .sub-item a:focus h3,
.search-result-group.categories-container .sub-item:hover h3 {
  text-decoration: none !important;
}

/* MemberPress dialog — match GQ Philippines (Inter Tight, #121212, square) */
.mepr-dialog-overlay {
  background: rgba(18, 18, 18, 0.55) !important;
  font-family: "inter-tight-variable", sans-serif;
}

.mepr-dialog-overlay .mepr-dialog-container {
  width: 100% !important;
  max-width: 448px !important;
  margin: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.mepr-dialog-content,
.mepr-dialog-content > * {
  width: 100% !important;
  max-width: 448px !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box;
}

.mepr-dialog-content {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin: 0 auto !important;
  padding: 48px 32px 32px !important;
  background: #fff !important;
  color: #121212 !important;
  font-family: "inter-tight-variable", sans-serif !important;
  text-align: center;
  border: 1px solid #121212 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.mepr-dialog-content > * {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.mepr-dialog-content h1,
.mepr-dialog-content h2,
.mepr-dialog-content h3,
.mepr-dialog-content h4,
.mepr-dialog-content h5,
.mepr-dialog-content h6,
.mepr-dialog-content p,
.mepr-dialog-content label,
.mepr-dialog-content li {
  font-family: "inter-tight-variable", sans-serif !important;
  color: #121212 !important;
}

.mepr-dialog-content h1,
.mepr-dialog-content h2,
.mepr-dialog-content h3,
.mepr-dialog-content h4,
.mepr-dialog-content h5,
.mepr-dialog-content h6 {
  flex: 1 0 100%;
  margin: 0 0 12px !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: center;
}

.mepr-dialog-content p {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 100% !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-align: center;
}

.mepr-dialog-close,
.mepr-switch-pm-dialog .mepr-dialog-close {
  color: #121212 !important;
  font-weight: 400 !important;
  font-size: 28px !important;
  right: 8px !important;
  top: 8px !important;
  background: transparent !important;
}

.mepr-dialog-close:hover,
.mepr-dialog-close:focus,
.mepr-dialog-close:focus-visible,
.mepr-switch-pm-dialog .mepr-dialog-close:hover,
.mepr-switch-pm-dialog .mepr-dialog-close:focus {
  color: #121212 !important;
  background: transparent !important;
  opacity: 1 !important;
}

.mepr-dialog-close-outside {
  color: #fff !important;
}

.mepr-dialog-content .mepr-switch-pm-popup {
  font-family: "inter-tight-variable", sans-serif !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  text-align: center;
}

.mepr-dialog-content .mepr-switch-pm-popup-buttons {
  margin-top: 12px !important;
  display: flex;
  gap: 12px;
  padding: 0 !important;
  width: 100%;
}

.mepr-dialog-content .mepr-btn,
.mepr-dialog-content .mepr-switch-pm-popup .mepr-btn,
.mepr-dialog-content .mepr-confirm-yes,
.mepr-dialog-content .mepr-confirm-no,
.mepr-dialog-content .mepr-upgrade-buy-now,
.mepr-dialog-content .mepr-upgrade-cancel,
.mepr-dialog-content a.mepr-confirm-yes,
.mepr-dialog-content a.mepr-confirm-no {
  flex: 1 1 calc(50% - 6px);
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 13px 18px !important;
  font-family: "inter-tight-variable", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.48px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center;
  border-radius: 0 !important;
  background: #121212 !important;
  border: 1px solid #121212 !important;
  color: #fff !important;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.mepr-dialog-content .mepr-btn:hover,
.mepr-dialog-content .mepr-btn:focus,
.mepr-dialog-content .mepr-btn:focus-visible,
.mepr-dialog-content .mepr-switch-pm-popup .mepr-btn:hover,
.mepr-dialog-content .mepr-switch-pm-popup .mepr-btn:focus,
.mepr-dialog-content .mepr-confirm-yes:hover,
.mepr-dialog-content .mepr-confirm-yes:focus,
.mepr-dialog-content .mepr-confirm-no:hover,
.mepr-dialog-content .mepr-confirm-no:focus,
.mepr-dialog-content .mepr-upgrade-buy-now:hover,
.mepr-dialog-content .mepr-upgrade-cancel:hover {
  background: #212121 !important;
  border-color: #121212 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.mepr-dialog-content .mepr-btn-secondary,
.mepr-dialog-content .mepr-switch-pm-popup .mepr-btn-secondary,
.mepr-dialog-content .mepr-confirm-no,
.mepr-dialog-content a.mepr-confirm-no,
.mepr-dialog-content .mepr-upgrade-cancel,
.mepr-dialog-content a.mepr-upgrade-cancel {
  background: #fff !important;
  color: #121212 !important;
  border: 1px solid #121212 !important;
}

.mepr-dialog-content .mepr-btn-secondary:hover,
.mepr-dialog-content .mepr-btn-secondary:focus,
.mepr-dialog-content .mepr-btn-secondary:focus-visible,
.mepr-dialog-content .mepr-switch-pm-popup .mepr-btn-secondary:hover,
.mepr-dialog-content .mepr-switch-pm-popup .mepr-btn-secondary:focus,
.mepr-dialog-content .mepr-confirm-no:hover,
.mepr-dialog-content .mepr-confirm-no:focus,
.mepr-dialog-content a.mepr-confirm-no:hover,
.mepr-dialog-content a.mepr-confirm-no:focus,
.mepr-dialog-content .mepr-upgrade-cancel:hover,
.mepr-dialog-content .mepr-upgrade-cancel:focus {
  background: #212121 !important;
  color: #fff !important;
}

.mepr-dialog-content input[type="text"],
.mepr-dialog-content input[type="email"],
.mepr-dialog-content input[type="password"],
.mepr-dialog-content select,
.mepr-dialog-content textarea {
  font-family: "inter-tight-variable", sans-serif !important;
  font-size: 14px !important;
  color: #121212 !important;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.mepr-dialog-content input:focus,
.mepr-dialog-content input:focus-visible,
.mepr-dialog-content select:focus,
.mepr-dialog-content textarea:focus {
  border: 1px solid #121212 !important;
  outline: none;
}

@media screen and (max-width: 428px) {
  .mepr-dialog-content {
    padding: 40px 20px 24px !important;
  }

  .mepr-dialog-content .mepr-switch-pm-popup-buttons,
  .mepr-dialog-content p {
    flex-direction: column;
  }

  .mepr-dialog-content .mepr-btn,
  .mepr-dialog-content .mepr-confirm-yes,
  .mepr-dialog-content .mepr-confirm-no,
  .mepr-dialog-content .mepr-upgrade-buy-now,
  .mepr-dialog-content .mepr-upgrade-cancel {
    flex: 1 1 100%;
    width: 100% !important;
  }
}
