/* v3: search quick filters, results bar, empty state, event facts panel.
   Remove this file's enqueue (functions.php) to switch the styling off. */

/* ─── Quick filters under the search box ─── */
.neh-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 0;
}
.neh-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  color: #fff !important;
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--transition);
}
.neh-chip:hover,
.neh-chip:focus-visible {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
}
.neh-chip.is-active {
  background: var(--accent-color-yellow);
  border-color: var(--accent-color-yellow);
  color: var(--primary-color) !important;
}
.neh-chip-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, .35);
  margin: 0 4px;
}
/* The chips are rendered inside the form but shown BELOW the white search card,
   so the card itself stays exactly as it was. One scrollable row → fixed height. */
.em-search-form { position: relative; }
.em-search-form > .neh-quick-filters {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 14px 0 0;
  padding: 0 0 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
          mask-image: linear-gradient(to right, #000 92%, transparent);
}
/* fade only on the side(s) that can still scroll (classes set by search.js) */
.em-search-form > .neh-quick-filters.is-end { -webkit-mask-image: none; mask-image: none; }
.em-search-form > .neh-quick-filters:not(.is-start):not(.is-end) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.em-search-form > .neh-quick-filters.is-end:not(.is-start) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 48px);
          mask-image: linear-gradient(to right, transparent, #000 48px);
}
.neh-qf-arrow {
  position: absolute;
  top: calc(100% + 14px);
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #d4d7e3;
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(13, 22, 64, .18);
  cursor: pointer;
}
.neh-qf-arrow[hidden] { display: none; }
.neh-qf-arrow.is-prev { left: -6px; }
.neh-qf-arrow.is-next { right: -6px; }
.neh-qf-arrow:hover { border-color: var(--accent-color-blue); }
.neh-qf-arrow:focus-visible { outline: 2px solid var(--accent-color-bright-blue); outline-offset: 2px; }
.em-search-form > .neh-quick-filters::-webkit-scrollbar { display: none; }

/* inner pages: below the card is the white page — dark-on-light chips */
body:not(.home) .neh-quick-filters .neh-chip {
  border-color: #d4d7e3;
  background: #fff;
  color: var(--primary-color) !important;
}
body:not(.home) .neh-quick-filters .neh-chip:hover { border-color: var(--accent-color-blue); background: #f4f6fb; }
body:not(.home) .neh-quick-filters .neh-chip.is-active {
  background: var(--accent-color-yellow);
  border-color: var(--accent-color-yellow);
}
body:not(.home) .neh-chip-sep { background: #d4d7e3; }

/* loading state */
.em-search-form.neh-is-loading { opacity: .75; pointer-events: none; }
.em-search-form.neh-is-loading [aria-busy="true"] { cursor: progress; }
a.neh-reset { display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; }

/* ─── Results bar ─── */
.neh-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4f6fb;
  color: var(--primary-color);
  font-size: 15px;
}
.neh-results-bar strong { font-family: var(--font-family-secondary); font-weight: 600; margin-right: 4px; }
.neh-active-filter {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d4d7e3;
  color: var(--primary-color) !important;
  text-decoration: none !important;
  font-size: 14px;
}
.neh-active-filter:hover { border-color: #e5484d; }
.neh-active-filter span { color: #e5484d; font-size: 16px; line-height: 1; }
.neh-clear-all { margin-left: auto; font-size: 14px; color: var(--accent-color-blue) !important; }

/* ─── Empty state ─── */
.neh-empty {
  padding: 28px 24px;
  border: 1px dashed #c9cfe3;
  border-radius: 16px;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 28px;
}
.neh-empty h2 { font-family: var(--font-family-secondary); font-size: 22px; margin: 0 0 8px; }
.neh-empty p { margin: 6px 0; color: var(--secondary-text-color); }
.neh-empty .neh-dym { color: var(--primary-color); font-size: 17px; }
.neh-empty .neh-dym a { font-weight: 600; }
.neh-upcoming-title { font-family: var(--font-family-secondary); font-size: 20px; margin: 10px 0 16px; color: var(--primary-color); }

/* ─── Event facts panel ─── */
.neh-facts {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #f4f6fb;
  color: var(--primary-color);
  border-left: 5px solid var(--accent-color-blue);
}
.neh-facts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.neh-facts-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.4;
}
.neh-facts-list svg { flex: 0 0 18px; margin-top: 2px; color: var(--accent-color-blue); }
.neh-facts-list small { color: var(--secondary-text-color); font-size: 14px; }
.neh-facts-list a { color: var(--primary-color); }
.neh-facts-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.neh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #c9cfe3;
  background: #fff;
  color: var(--primary-color) !important;
  font-family: var(--font-family-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--transition);
}
.neh-btn:hover { border-color: var(--accent-color-blue); }
.neh-btn-primary {
  background: var(--accent-color-bright-blue);
  border-color: var(--accent-color-bright-blue);
  color: #fff !important;
}
.neh-btn-primary:hover { background: var(--accent-color-blue); border-color: var(--accent-color-blue); }
.neh-facts-note { margin: 0; font-size: 13px; color: var(--secondary-text-color); }

@media (min-width: 768px) {
  .neh-facts { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .neh-facts-actions { flex-direction: column; align-items: stretch; min-width: 230px; }
  .neh-facts-note { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .neh-facts-actions .neh-btn { flex: 1 1 calc(50% - 8px); }
  .neh-facts-actions .neh-btn-primary { flex-basis: 100%; }
}

/* hero background: stretch to the bottom of the header (+ room for the "Upcoming Events" title)
   instead of a fixed height, so the H1 and the quick filters always fit */
body.home .site-header .header-overlay:not(.filtered) { min-height: 0; bottom: -356px; }
/* theme link styles override the button background — be explicit */
.neh-facts .neh-btn.neh-btn-primary { background: var(--accent-color-bright-blue) !important; border-color: var(--accent-color-bright-blue) !important; color: #fff !important; }
.neh-facts .neh-btn.neh-btn-primary:hover { background: var(--accent-color-blue) !important; border-color: var(--accent-color-blue) !important; }
.neh-facts .neh-btn:not(.neh-btn-primary) { background: #fff !important; }

/* Events Manager forces link colours inside .em.pixelbones with !important — win on specificity */
.em .neh-quick-filters a.neh-chip { color: #fff !important; background-color: rgba(255, 255, 255, .08) !important; }
.em .neh-quick-filters a.neh-chip:hover { background-color: rgba(255, 255, 255, .2) !important; }
.em .neh-quick-filters a.neh-chip.is-active { color: var(--primary-color) !important; background-color: var(--accent-color-yellow) !important; }
body:not(.home) .em .neh-quick-filters a.neh-chip { color: var(--primary-color) !important; background-color: #fff !important; }
body:not(.home) .em .neh-quick-filters a.neh-chip:hover { background-color: #f4f6fb !important; }
body:not(.home) .em .neh-quick-filters a.neh-chip.is-active { background-color: var(--accent-color-yellow) !important; }
/* home: the chips sit under the card (outside the normal flow) — move the content below down a bit */
body.home .home-page-content { margin-top: 56px; }

/* ─── Events without a photo: a designed "date cover" instead of the grey calendar icon ───
   Uses the event's category colour (--default-border, set by Events Manager on each card). */
.em .em-item .em-item-image.has-placeholder,
.em .em-item .em-item-image:has(> .em-item-image-wrapper > .em-item-image-placeholder),
.em-list-view .em-item .em-item-image:has(.em-item-image-placeholder) {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--default-border, #0075ff) 70%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, #0b1c56 0%, #102470 55%, #0b1c56 100%) !important;
  overflow: hidden;
}
.em .em-item .em-item-image.has-placeholder::before,
.em .em-item .em-item-image:has(> .em-item-image-wrapper > .em-item-image-placeholder)::before {
  /* fine rings in the top-right corner instead of the default fade */
  background: repeating-radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .07) 0 1px, transparent 1px 26px) !important;
  opacity: 1 !important;
}
.em .em-item .em-item-image.has-placeholder .em-item-image-wrapper,
.em .em-item .em-item-image .em-item-image-wrapper:has(> .em-item-image-placeholder) {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.em .em-item .em-item-image .em-item-image-placeholder,
.em-list-view .em-item .em-item-image .em-item-image-placeholder {
  width: 100% !important;
  height: 100% !important;
  background: none !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 18px 20px !important;
  box-sizing: border-box;
}
.em .em-item .em-item-image .em-item-image-placeholder .date,
.em-list-view .em-item .em-item-image .em-item-image-placeholder .date {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: none !important;
}
.em .em-item .em-item-image .em-item-image-placeholder .date::before,
.em-list-view .em-item .em-item-image .em-item-image-placeholder .date::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--default-border, var(--accent-color-yellow));
  margin-bottom: 8px;
}
.em .em-item .em-item-image .em-item-image-placeholder .day,
.em-list-view .em-item .em-item-image .em-item-image-placeholder .day {
  font-family: var(--font-family-secondary) !important;
  font-size: 56px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #fff !important;
}
.em .em-item .em-item-image .em-item-image-placeholder .month,
.em-list-view .em-item .em-item-image .em-item-image-placeholder .month {
  font-family: var(--font-family-primary) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78) !important;
}
/* beat Events Manager's calendar-icon rule (.em.em-list … !important) and its 0.45 opacity */
.em .em-item .em-item-image .em-item-image-placeholder.em-item-image-placeholder.em-item-image-placeholder,
.em-list-view .em-item .em-item-image .em-item-image-placeholder.em-item-image-placeholder.em-item-image-placeholder {
  background: none !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
}
.em .em-item .em-item-image .em-item-image-placeholder .date > span,
.em-list-view .em-item .em-item-image .em-item-image-placeholder .date > span {
  width: auto !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}
.em .em-item .em-item-image-placeholder .date.date.date { width: auto !important; height: auto !important; align-items: flex-start !important; }
.em .em-item .em-item-image-placeholder .date.date.date > span { align-self: flex-start !important; text-align: left !important; margin: 0 !important; }

/* ─── "More filters" pop-up (Events Manager advanced search modal) ─── */
.em-modal.em-search-advanced .em-modal-popup {
  width: min(640px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(13, 22, 64, .35);
}
.em-modal.em-search-advanced .em-modal-popup > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px !important;
  border-bottom: 1px solid #e4e7f0;
  margin: 0 !important;
}
.em-modal.em-search-advanced .em-modal-title {
  font-family: var(--font-family-secondary);
  font-size: 22px !important;
  color: var(--primary-color);
}
.em-modal.em-search-advanced .em-modal-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 22px 8px !important;
  max-height: none !important;
}
.em-modal.em-search-advanced .em-modal-content section,
.em-modal.em-search-advanced .em-search-section { margin: 0 0 16px !important; }
.em-modal.em-search-advanced .em-search-section > header,
.em-modal.em-search-advanced .em-modal-content section > header,
.em-modal.em-search-advanced .em-modal-content > section > label:first-child,
.em-modal.em-search-advanced .em-search-advanced-section-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7390 !important;
  margin: 0 0 6px !important;
}
.em-modal.em-search-advanced input[type="text"],
.em-modal.em-search-advanced input[type="search"],
.em-modal.em-search-advanced select,
.em-modal.em-search-advanced .selectize-input {
  min-height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid #d4d7e3 !important;
  box-shadow: none !important;
  font-size: 15px !important;
}
.em-modal.em-search-advanced input:focus,
.em-modal.em-search-advanced select:focus,
.em-modal.em-search-advanced .selectize-input.focus {
  border-color: var(--accent-color-bright-blue, #2f6fed) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, .15) !important;
}
.em-modal.em-search-advanced .selectize-input { display: flex !important; align-items: center; padding: 8px 12px !important; }
.em-modal.em-search-advanced .selectize-dropdown { border-radius: 12px; box-shadow: 0 10px 30px rgba(13, 22, 64, .18); }
.em-modal.em-search-advanced footer.em-search-submit {
  display: flex !important;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px !important;
  border-top: 1px solid #e4e7f0;
  background: #fff;
  margin: 0 !important;
}
.em-modal.em-search-advanced footer.em-search-submit > div { flex: 0 0 auto; }
.em-modal.em-search-advanced footer.em-search-submit > div:last-of-type { flex: 1 1 auto; text-align: right; }
.em-modal.em-search-advanced footer .button-secondary {
  background: transparent !important;
  border: 1px solid #d4d7e3 !important;
  color: var(--primary-color) !important;
  border-radius: 999px !important;
  height: 46px;
  padding: 0 20px !important;
}
.em-modal.em-search-advanced footer button.em-search-submit {
  min-width: 200px;
  height: 46px;
  border-radius: 999px !important;
  background: var(--accent-color-bright-blue, #2f6fed) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700;
  text-transform: none !important;
}
@media (max-width: 575px) {
  .em-modal.em-search-advanced .em-modal-popup { max-height: calc(100vh - 16px); border-radius: 16px !important; }
  .em-modal.em-search-advanced footer button.em-search-submit { min-width: 0; width: 100%; }
}
.em-modal.em-search-advanced footer .button-secondary { font-size: 15px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; opacity: 1 !important; }
.em-modal.em-search-advanced footer .button-secondary:hover { border-color: var(--primary-color) !important; }

/* ─── Event page v4: no duplicate meta block, ended notice, related events, mobile CTA ─── */
.neh-facts ~ section.em-item-header { display: none !important; }
.neh-ended { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: #fff4e6; border-left: 4px solid #e8590c; color: #5c3b1e; }
.neh-ended a { font-weight: 600; }
.neh-related { margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid #e4e7f0; }
.neh-related h2 { font-family: var(--font-family-secondary); font-size: 22px; color: var(--primary-color); margin: 0 0 10px; }
.neh-related-rows { columns: 2 320px; column-gap: 36px; }
.neh-related-rows .neh-row { break-inside: avoid; }
.neh-related-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.neh-related-links a {
  display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid #d4d7e3;
  color: var(--primary-color) !important; font-size: 14px; text-decoration: none !important; background: #fff;
}
.neh-related-links a:hover { border-color: var(--accent-color-blue, #2f6fed); background: #f4f6fb; }
.neh-sticky-cta { display: none; }
@media (max-width: 767px) {
  .neh-sticky-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 16px rgba(13, 22, 64, .12);
  }
  .neh-sticky-cta .neh-btn { flex: 1; justify-content: center; text-align: center; }
  body.single-event { padding-bottom: 72px; }
}
.neh-related-links li { list-style: none !important; margin: 0; padding: 0; }
.neh-related-links li::before, .neh-related-links li::marker { content: none !important; display: none !important; }
.neh-related-links { padding-left: 0 !important; }

.neh-sticky-cta .neh-btn-primary { background: var(--accent-color-bright-blue, #2f6fed) !important; border-color: var(--accent-color-bright-blue, #2f6fed) !important; color: #fff !important; font-weight: 700; }

/* footer call-to-action text */
.footer-cta .neh-cta-text { text-align: left; }
.footer-cta .neh-cta-text h3 { margin: 0 0 6px; }
.footer-cta .neh-cta-sub { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; }
@media (max-width: 767px) {
  .footer-cta .neh-cta-text { text-align: center; margin-bottom: 14px; }
}

.footer-cta .neh-cta-sub { font-size: clamp(18px, 2vw, 22px) !important; font-weight: 500; color: #fff !important; }

/* footer CTA: clear size hierarchy — big headline, quieter subline */
.footer-cta .neh-cta-text h3 { font-size: clamp(24px, 3.2vw, 38px) !important; line-height: 1.12 !important; margin: 0 0 10px !important; letter-spacing: -.01em; }
.footer-cta .neh-cta-sub { font-size: clamp(16px, 1.6vw, 19px) !important; font-weight: 400 !important; color: rgba(255, 255, 255, .92) !important; }
.footer-cta .btn { font-size: 18px; padding-left: 28px; padding-right: 28px; }

.footer-cta .btn { width: auto !important; min-width: 200px; white-space: nowrap; }

.footer-cta .neh-cta-text h3 { font-size: clamp(21px, 2.6vw, 32px) !important; }

/* event facts: WHEN | WHERE columns (desktop), stacked on phones */
.neh-facts-cols { display: grid; gap: 14px 32px; }
@media (min-width: 768px) { .neh-facts-cols { grid-template-columns: 1fr 1fr; } }
.neh-facts-h { font-family: var(--font-family-primary) !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .1em; text-transform: uppercase; color: #6b7390 !important; margin: 0 0 6px !important; }
.neh-facts-col .neh-facts-list { margin: 0; }

/* share menu (desktop) */
.neh-facts-actions { position: relative; }
.neh-share-menu {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 6px);
  display: flex; flex-direction: column; min-width: 180px; padding: 6px;
  background: #fff; border: 1px solid #e4e7f0; border-radius: 12px; box-shadow: 0 12px 30px rgba(13, 22, 64, .18);
}
.neh-share-menu[hidden] { display: none; }
.neh-share-menu a, .neh-share-menu button {
  display: block; text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: 8px;
  color: var(--primary-color) !important; font-size: 14px; text-decoration: none !important; cursor: pointer;
}
.neh-share-menu a:hover, .neh-share-menu button:hover { background: #f4f6fb; }

.neh-share-wrap { position: relative; display: inline-flex; }
.neh-share-wrap .neh-share-menu { left: 0; right: auto; }

.neh-facts-actions .neh-share { color: #3372f0 !important; }
.neh-share-wrap { flex: 0 0 auto; }
@media (max-width: 575px) { .neh-share-wrap { flex: 1 1 calc(50% - 8px); } .neh-share-wrap .neh-btn { width: 100%; } }

.neh-facts-actions .neh-share { gap: 8px; min-width: 120px; }

/* ===== Login / Create account popup (v4.16) ===== */
html.neh-auth-open { overflow: hidden; }
.login-popup.neh-auth,
.reset-password-popup.neh-auth {
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 6vh 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.neh-auth .popup-overlay { position: fixed; inset: 0; }
.neh-auth .popup-content {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 18px 50px rgba(11, 28, 86, .25);
}
.neh-auth .close-btn {
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.neh-auth .close-btn:hover,
.neh-auth .close-btn:focus-visible { background: #eef1f9; }
.neh-auth .close-btn svg { width: 14px; height: 15px; }
.neh-auth-title {
  font-size: 22px; line-height: 1.25; margin: 0 40px 6px 0;
  color: var(--primary-color, #0b1c56);
}
.neh-auth-lead { font-size: 14px; line-height: 1.45; color: #4a5680; margin: 0 0 16px; }
.neh-auth .tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #eef1f9; border-radius: 10px; padding: 4px; gap: 4px;
  margin: 0 0 16px;
}
.neh-auth .tab {
  padding: 9px 8px; border-radius: 8px; font-size: 15px; line-height: 20px;
  border: 0; font-weight: 500; color: #4a5680;
}
.neh-auth .tab.active {
  background: #fff; color: var(--primary-color, #0b1c56); font-weight: 700;
  border: 0; box-shadow: 0 1px 3px rgba(11, 28, 86, .15);
}
.neh-auth form.sign-up-form,
.neh-auth #register-form { display: flex; flex-direction: column; gap: 14px; }
.neh-auth .field-group { display: flex; flex-direction: column; gap: 5px; }
.neh-auth form.sign-up-form label { margin: 0; font-size: 14px; font-weight: 600; }
.neh-auth .neh-opt { font-weight: 400; color: #7a84a8; }
.neh-auth form.sign-up-form input:not([type=checkbox]) {
  font-size: 16px; /* no iOS zoom */
  padding: 11px 13px; border-radius: 8px; min-height: 46px;
}
.neh-auth form.sign-up-form input:focus { outline: 2px solid #02a7ff; outline-offset: 1px; border-color: #02a7ff; }
.neh-pw-wrap { position: relative; }
.neh-pw-wrap input { padding-right: 48px !important; }
.neh-pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: none; color: #7a84a8;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer;
}
.neh-pw-toggle[aria-pressed="true"] { color: #02a7ff; }
.neh-pw-toggle:hover { background: #eef1f9; }
.neh-pw-hint { font-size: 13px; color: #7a84a8; }
.neh-pw-hint.is-ok { color: #16803c; }
.neh-auth .actions-wrapper { align-items: center; flex-wrap: wrap; gap: 8px; }
.neh-auth form.sign-up-form .actions-wrapper label { font-weight: 400; align-items: center; gap: 8px; cursor: pointer; }
.neh-auth form.sign-up-form .actions-wrapper input { width: 18px; height: 18px; margin: 0; }
.neh-auth form.sign-up-form .btn-primary,
.neh-auth .reset-password-form .btn-primary {
  height: 46px; font-size: 16px; font-weight: 600; width: 100%; margin: 4px 0 0; grid-column: auto;
}
.neh-auth .btn-primary:disabled { opacity: .7; cursor: progress; }
.neh-auth .register-tac { font-size: 12.5px; line-height: 1.45; color: #7a84a8; margin: 0; text-align: center; }
.neh-auth .register-tac a { color: inherit; text-decoration: underline; }
.neh-auth #messages,
.neh-auth #reset-messages { margin: 0; }
.neh-auth #messages:empty,
.neh-auth #reset-messages:empty { display: none; }
.neh-auth #messages p,
.neh-auth #reset-messages p { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.neh-auth #messages p.neh-msg-err,
.neh-auth #reset-messages p.neh-msg-err { background: #fdecec; border: 1px solid #f3b4b4; color: #a11d1d !important; }
.neh-auth #messages p.neh-msg-ok,
.neh-auth #reset-messages p.neh-msg-ok { background: #e9f7ee; border: 1px solid #a8dcb9; color: #16632f !important; }
.neh-auth #messages a { color: inherit; font-weight: 600; text-decoration: underline; }
.neh-auth #reset-messages { margin-top: 14px; }
.neh-auth-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 12px;
  color: #7a84a8; font-size: 13px;
}
.neh-auth-or::before, .neh-auth-or::after { content: ""; flex: 1; height: 1px; background: #dde2f0; }
.neh-auth .social-login { margin-top: 0; }
.neh-auth div.nsl-container .nsl-button-google[data-skin="light"] { height: 46px; }
.neh-auth .social-login div.nsl-container .nsl-button-default div.nsl-button-label-container { font-size: 15px; line-height: 20px; }
.neh-auth-back { margin: 16px 0 0; font-size: 14px; }
.neh-auth-back a { color: #02a7ff; }
@media (max-width: 480px) {
  .login-popup.neh-auth, .reset-password-popup.neh-auth { padding: 12px 10px 20px; }
  .neh-auth .popup-content { padding: 22px 18px 20px; max-width: 100%; }
  .neh-auth-title { font-size: 20px; }
}
.neh-auth .social-login div.nsl-container .nsl-button-label-container,
.neh-auth .social-login div.nsl-container .nsl-button-label-container b { color: #fff !important; font-weight: 600; }
.neh-auth .register-tac a { font-size: inherit; line-height: inherit; }
@media (max-width: 480px) { .neh-auth .tab { font-size: 14px; } }

/* Share = same size as the other action buttons (v4.17) */
.neh-facts-actions .neh-share-wrap { display: flex; }
.neh-facts-actions .neh-share-wrap > .neh-share { flex: 1 1 auto; width: 100%; justify-content: center; margin: 0; }
@media (min-width: 768px) { .neh-facts-actions .neh-share-wrap { width: 100%; } }

/* v4.22: "Notice an inaccuracy" banner — plain wrapping text (flex split the sentence into columns on phones) */
.contact-info-box .contact-info-text { display: block !important; text-align: center; line-height: 1.5; }
.contact-info-box .contact-info-text .info-icon { display: inline-block; vertical-align: -4px; margin-right: 8px; }
@media (max-width: 575px) { .contact-info-box .contact-info-text { border-radius: 18px !important; text-align: left; padding: 14px 18px !important; font-size: 15px; } }

/* v4.26: "Use my location" button inside the Near… field */
.em-search-geo.neh-has-geo-me { position: relative; }
.em-search-geo.neh-has-geo-me input.em-search-geo { padding-right: 42px !important; }
.neh-geo-me { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #02a7ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.neh-geo-me:hover, .neh-geo-me:focus-visible { background: #eef6ff; outline: none; }
.neh-geo-me.is-busy svg { animation: neh-spin 1s linear infinite; }
@keyframes neh-spin { to { transform: rotate(360deg); } }
/* v4.27: EM button styles were leaking into the location button */
.em .em-search-geo button.neh-geo-me, button.neh-geo-me { padding: 0 !important; width: 34px !important; min-width: 0 !important; height: 34px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; line-height: 1 !important; color: #02a7ff !important; }
.em .em-search-geo button.neh-geo-me:hover, button.neh-geo-me:focus-visible { background: #eef6ff !important; }
.em.pixelbones .input button.neh-geo-me, .em.pixelbones .em-search-field button.neh-geo-me { padding: 0 !important; width: 34px !important; min-width: 0 !important; height: 34px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; }

/* v4.29 — facts panel height follows the buttons; note sits under WHEN/WHERE. Related block spacing. */
@media (min-width: 768px) {
  .neh-facts { grid-template-rows: auto 1fr; }
  .neh-facts-actions { grid-column: 2; grid-row: 1 / span 2; }
  .neh-facts .neh-facts-note { grid-column: 1; grid-row: 2; align-self: end; }
}
.em.pixelbones section.neh-related { margin: 34px 0 10px !important; padding-top: 24px !important; }
.em.pixelbones .neh-related h2 { margin: 0 0 16px !important; }

/* v4.30 — inaccuracy notice: readable contrast */
.contact-info-box .contact-info-text { color: #5f5528 !important; }
.contact-info-box .contact-info-text a { color: #5f5528 !important; text-decoration: underline; font-weight: 600; }
.contact-info-box .contact-info-text .info-icon svg path { fill: #8a7a33; }
/* v4.30b — notice icon centred on the text line (was ~5px low) */
.contact-info-box .contact-info-text .info-icon { display: inline-flex !important; vertical-align: middle !important; line-height: 0 !important; margin-top: -2px; }
.contact-info-box .contact-info-text .info-icon svg { display: block; }

/* v4.31 — event description: heading + readable text (16px, width of WHEN/WHERE) */
.em.pixelbones .em-event-content .neh-about { flex: 0 0 100%; width: 100%; max-width: none; margin: 4px 0 8px; padding: 0; }
.em.pixelbones .neh-about-title { font-family: var(--font-family-secondary); font-size: 20px; font-weight: 400; color: #0075ff; margin: 0 0 10px; }
.em.pixelbones .em-event-content .neh-about-text,
.em.pixelbones .em-event-content .neh-about-text p { font-size: 16px !important; line-height: 1.6 !important; color: var(--primary-color); }
.em.pixelbones .em-event-content .neh-about-text p { margin: 0 0 12px; }
.em.pixelbones .em-event-content .neh-about-text p:last-child { margin-bottom: 0; }
