/* /events/ list grouped by day + /events/categories/ tiles (inc/events-pages.php) */

/* the list replaces EM's grid: hide EM's grid/list view switcher, it no longer applies */
.neh-events-page .em-search-views { display: none !important; }

.neh-ev-list { display: grid; gap: 6px; margin: 8px 0 18px; }
.neh-ev-group .neh-day-title { font-size: 13px; margin-top: 18px; }
.neh-ev-group.is-now .neh-day-title span { color: #d6336c; }
.neh-ev-badge {
  font-style: normal;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-color-yellow, #ffd23f);
  color: var(--primary-color);
  font-size: 11px;
  letter-spacing: .04em;
}
/* wide screens: days flow top-to-bottom into 2–3 columns (newspaper style); "On now" spans the full width */
.neh-ev-list { display: block; columns: 340px 3; column-gap: 40px; }
.neh-ev-group { break-inside: avoid-column; margin-bottom: 6px; }
.neh-ev-group .neh-row { break-inside: avoid; }
.neh-ev-group.is-now { column-span: all; margin-bottom: 10px; }
@media (min-width: 768px) {
  .neh-ev-group.is-now .neh-rows { columns: 340px 3; column-gap: 40px; }
}
.neh-ev-list > .neh-ev-group:first-child .neh-day-title { margin-top: 4px !important; }
.neh-events-page .em-pagination { margin: 18px 0 8px; }

/* categories index */
.neh-cats-page { padding-top: 24px; padding-bottom: 48px; }
.neh-cats-page .neh-lp-head h1 { font-family: var(--font-family-secondary); font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; color: var(--primary-color); margin: 0 0 10px; }
.neh-cats-page .neh-lp-lead { max-width: 72ch; color: var(--muted, #6b7390); font-size: 16px; margin: 0 0 22px; }
.neh-cat-grid { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.neh-cat-card { border: 1px solid var(--line, #e4e7f0); border-top: 4px solid var(--c, #4c8ef7); border-radius: 14px; padding: 16px 16px 14px; background: #fff; }
.neh-cat-main { display: flex; flex-direction: column; gap: 2px; color: var(--primary-color) !important; text-decoration: none !important; }
.neh-cat-main:hover .neh-cat-name { text-decoration: underline; }
.neh-cat-name { font-family: var(--font-family-secondary); font-size: 19px; line-height: 1.2; }
.neh-cat-count { font-size: 13px; color: var(--muted, #6b7390); }
.neh-cat-kids { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.neh-cat-kids a { display: inline-flex; gap: 5px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #f4f6fb; color: var(--primary-color) !important; font-size: 13px; text-decoration: none !important; }
.neh-cat-kids a:hover { background: #e8ecf7; }
.neh-cat-kids span { font-size: 11px; font-weight: 700; color: var(--muted, #6b7390); }

/* Events Manager styles .em h2 — keep day titles like on the home page */
.em .neh-ev-list h2.neh-day-title,
.neh-ev-list h2.neh-day-title {
  font-family: var(--font-family-primary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  line-height: 1.4 !important;
  text-transform: uppercase;
  color: var(--muted, #6b7390) !important;
  margin: 18px 0 2px !important;
  padding-bottom: 8px !important;
}
.neh-ev-list h2.neh-day-title span { color: var(--primary-color) !important; }
.neh-ev-list .neh-ev-group.is-now h2.neh-day-title span { color: #d6336c !important; }

/* ─── tags & venues (template-venues-tags.php) ─── */
.neh-vt { padding-top: 24px; padding-bottom: 48px; }
.neh-vt-tags { margin-bottom: 18px; }
.neh-vt-more { color: #6b7390; }
.neh-vt-jump { margin: 4px 0 6px; }
.neh-vt-town { scroll-margin-top: 90px; }
.neh-vt-town .neh-sec-head h2 { font-family: var(--font-family-secondary); font-size: 22px; color: var(--primary-color); margin: 0; }
.neh-vt-venues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.neh-vt-venues a {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border: 1px solid #e4e7f0; border-radius: 14px; background: #fff;
  color: var(--primary-color) !important; text-decoration: none !important;
  transition: border-color .15s ease, background-color .15s ease;
}
.neh-vt-venues a:hover { border-color: var(--accent-color-bright-blue, #2f6fed); background: #f8f9fd; }
.neh-vt-name { font-weight: 700; line-height: 1.25; }
.neh-vt-addr { font-size: 13px; color: #6b7390; }
.neh-vt-count { margin-top: 4px; font-size: 12px; font-weight: 700; color: #6b7390; }
.neh-vt-actions { margin: 4px 0 12px; }
.neh-vt-desc { max-width: 72ch; color: #4a5275; }
.neh-vt .neh-related-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.neh-vt .neh-related-links li { list-style: none; }
.neh-vt .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; }

/* venue page: every row is at this venue — no need to repeat it */
.neh-vtk-venue .neh-ev-group:not(.is-now) .neh-row-meta { display: none; }

/* venues page spacing */
.neh-vt-jump { margin: 6px 0 34px !important; }
.neh-vt-town { margin-top: 0 !important; margin-bottom: 36px !important; padding-top: 0 !important; }
.neh-vt-town .neh-sec-head { margin-bottom: 14px; }

.neh-events-page .em-pagination { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 4px 6px; max-width: 100%; }
.neh-events-page .em-pagination .not-current { display: contents; }

/* v4.19: align day columns — no top margin on day titles (multicol drops it only at column tops), spacing goes below each day */
.em .neh-ev-list h2.neh-day-title, .neh-ev-list h2.neh-day-title { margin-top: 0 !important; }
.neh-ev-list .neh-ev-group { margin-bottom: 22px; }
.neh-ev-list .neh-ev-group.is-now { margin-bottom: 26px; }
