/* Events (2.15.0): loaded only on /events/ pages and on the homepage when its Events block shows. Tokens: DESIGN.md. */
.nv-ev { padding: var(--nv-s-8) 0 var(--nv-s-12); font-family: var(--font-article); color: var(--nv-text); }
.nv-ev a { color: var(--primary, #1c2b4b); }
.nv-ev > .container { max-width: 1000px; }
.nv-ev--calendar > .container { max-width: 1230px; }

/* Breadcrumb */
.nv-ev-crumb ol { display: flex; flex-wrap: wrap; gap: 0 var(--nv-s-2); margin: 0 0 var(--nv-s-3); padding: 0; list-style: none; font: var(--nv-fs-sm)/var(--nv-lh-snug) var(--font-quicklink, "Sora", sans-serif); color: var(--nv-muted); }
.nv-ev-crumb li { display: inline-flex; align-items: center; gap: var(--nv-s-2); min-width: 0; overflow-wrap: anywhere; }
.nv-ev-crumb li + li::before { content: "›"; color: var(--nv-faint); }
.nv-ev-crumb a { color: var(--nv-muted); }

/* Page head */
.nv-ev-head { display: flex; flex-wrap: wrap; gap: var(--nv-s-4); align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--nv-text); padding-bottom: var(--nv-s-4); margin-bottom: var(--nv-s-6); }
.nv-ev-head__txt { flex: 1 1 420px; min-width: 0; }
.nv-ev-head h1, .nv-ev-single__head h1 { margin: 0; font-size: var(--nv-fs-3xl); line-height: var(--nv-lh-tight); font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
@media (max-width: 575px) { .nv-ev-head h1, .nv-ev-single__head h1 { font-size: var(--nv-fs-2xl); } }
.nv-ev-lede { margin: var(--nv-s-2) 0 0; max-width: 680px; font-size: var(--nv-fs-base); line-height: var(--nv-lh-body); color: var(--nv-text-2); }
.nv-ev-head__act { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); }

/* Buttons + chips */
.nv-ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--nv-s-1); min-height: var(--nv-tap); max-width: 100%; padding: var(--nv-s-2) var(--nv-s-4); border: 2px solid var(--primary, #1c2b4b); border-radius: var(--nv-r-pill); background: var(--primary, #1c2b4b); color: #fff !important; font: 700 var(--nv-fs-md)/1.2 var(--font-quicklink, "Sora", sans-serif); text-decoration: none !important; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.nv-ev-btn:hover, .nv-ev-btn:focus-visible { filter: brightness(1.15); }
.nv-ev-btn--ghost { background: var(--nv-surface); color: var(--primary, #1c2b4b) !important; }
.nv-ev-chip { display: inline-flex; align-items: center; min-height: var(--nv-tap); max-width: 100%; padding: var(--nv-s-2) var(--nv-s-4); border: 1px solid var(--nv-border); border-radius: var(--nv-r-pill); background: var(--nv-surface); color: var(--nv-text) !important; font: 700 var(--nv-fs-sm)/1.2 var(--font-quicklink, "Sora", sans-serif); text-decoration: none !important; overflow-wrap: anywhere; cursor: pointer; }
.nv-ev-chip:hover, .nv-ev-chip:focus-visible { border-color: var(--primary, #1c2b4b); }
.nv-ev-chip[hidden] { display: none; }
.nv-ev-chip.is-on { background: var(--primary, #1c2b4b); border-color: var(--primary, #1c2b4b); color: #fff !important; }

/* Filters */
.nv-ev-filters { display: flex; flex-direction: column; gap: var(--nv-s-3); margin-bottom: var(--nv-s-8); padding: var(--nv-s-4); border: 1px solid var(--nv-border-soft); border-radius: var(--nv-r-md); background: var(--nv-surface-2); }
.nv-ev-filter { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); align-items: flex-start; min-width: 0; }
.nv-ev-filter__l { flex: 0 0 100%; font: 700 var(--nv-fs-xs)/1.3 var(--font-quicklink, "Sora", sans-serif); text-transform: uppercase; letter-spacing: .06em; color: var(--nv-muted); }
.nv-ev-filter__c { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); flex: 1 1 0; min-width: 0; }
@media (min-width: 768px) { .nv-ev-filter__l { flex: 0 0 56px; padding-top: var(--nv-s-4); } }
.nv-ev-count { margin: 0; font: var(--nv-fs-sm)/1.3 var(--font-quicklink, "Sora", sans-serif); color: var(--nv-muted); }

/* Section headings */
.nv-ev-h2 { margin: 0 0 var(--nv-s-4); font-size: var(--nv-fs-xl); line-height: var(--nv-lh-tight); font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
.nv-ev-h2--all { padding-bottom: var(--nv-s-2); border-bottom: 1px solid var(--nv-border); }
.nv-ev-sechead { display: flex; flex-wrap: wrap; gap: var(--nv-s-2) var(--nv-s-4); align-items: baseline; justify-content: space-between; margin-bottom: var(--nv-s-4); padding-bottom: var(--nv-s-2); border-bottom: 1px solid var(--nv-border); }
.nv-ev-sechead .nv-ev-h2 { margin: 0; }
.nv-ev-sechead a { display: inline-flex; align-items: center; min-height: var(--nv-tap); font: 700 var(--nv-fs-sm)/1.2 var(--font-quicklink, "Sora", sans-serif); }
.nv-ev-weekend, .nv-ev-related { margin-bottom: var(--nv-s-10); container-type: inline-size; }

/* Day groups */
.nv-ev-day { margin-bottom: var(--nv-s-8); }
.nv-ev-day__h { margin: 0 0 var(--nv-s-3); padding: var(--nv-s-2) 0; background: var(--nv-surface); border-bottom: 1px solid var(--nv-border-soft); font: 700 var(--nv-fs-base)/var(--nv-lh-snug) var(--font-quicklink, "Sora", sans-serif); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.nv-ev-day__h a { display: inline-flex; align-items: center; min-height: var(--nv-tap); color: var(--nv-text) !important; text-decoration: none; }
.nv-ev-day__h span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--nv-muted); font-size: var(--nv-fs-sm); }

/* Lists + grids */
.nv-ev-list { display: flex; flex-direction: column; gap: var(--nv-s-3); margin: 0; padding: 0; list-style: none; }
.nv-ev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--nv-s-4); margin: 0; padding: 0; list-style: none; }
@container (min-width: 560px) { .nv-ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 900px) { .nv-ev-related .nv-ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1100px) { .nv-ev-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nv-ev-related .nv-ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nv-ev-grid > li, .nv-ev-list > li { min-width: 0; display: flex; }
.nv-ev-grid > li > .nv-ev-card, .nv-ev-list > li > .nv-ev-card { flex: 1 1 auto; }

/* Card */
.nv-ev-card { display: flex; gap: var(--nv-s-3); align-items: flex-start; min-width: 0; padding: var(--nv-card-pad); border: 1px solid var(--nv-border); border-radius: var(--nv-r-md); background: var(--nv-surface); position: relative; overflow-wrap: anywhere; }
.nv-ev-card:hover, .nv-ev-card:focus-within { border-color: var(--primary, #1c2b4b); box-shadow: 0 2px 10px rgba(28, 43, 75, .08); }
.nv-ev-card.is-off .nv-ev-card__title a { text-decoration: line-through; text-decoration-thickness: 1px; }
.nv-ev-card__date { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; padding: var(--nv-s-1) 0; border-radius: var(--nv-r-sm); background: var(--nv-surface-2); border: 1px solid var(--nv-border-soft); font-family: var(--font-quicklink, "Sora", sans-serif); line-height: 1.2; text-transform: uppercase; }
.nv-ev-card__date span { font-size: var(--nv-fs-xs); font-weight: 700; color: var(--nv-accent-text); letter-spacing: .04em; }
.nv-ev-card__date span:last-child { color: var(--nv-muted); font-weight: 400; }
.nv-ev-card__date strong { font-size: var(--nv-fs-2xl); line-height: 1.1; color: var(--nv-text); }
.nv-ev-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--nv-s-1); }
.nv-ev-card__type { margin: 0; font: 700 var(--nv-fs-xs)/1.3 var(--font-quicklink, "Sora", sans-serif); text-transform: uppercase; letter-spacing: .04em; color: var(--nv-accent-text); }
.nv-ev-card__title { margin: 0; font-size: var(--nv-fs-lg); line-height: var(--nv-lh-snug); font-weight: 700; }
.nv-ev-card__title a { color: var(--nv-text) !important; text-decoration: none; }
.nv-ev-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--nv-r-md); } /* whole card clickable */
.nv-ev-card__title a:focus-visible { outline: none; }
.nv-ev-card:focus-within { outline: 2px solid var(--primary, #1c2b4b); outline-offset: 2px; }
.nv-ev-card__when, .nv-ev-card__where { margin: 0; font: var(--nv-fs-sm)/var(--nv-lh-snug) var(--font-quicklink, "Sora", sans-serif); color: var(--nv-text-2); }
.nv-ev-card__where { color: var(--nv-muted); }
.nv-ev-card__tags { display: flex; flex-wrap: wrap; gap: var(--nv-s-1) var(--nv-s-2); margin: var(--nv-s-1) 0 0; }
.nv-ev-card__img { flex: 0 0 96px; width: 96px; height: 96px; object-fit: cover; border-radius: var(--nv-r-sm); }
@media (max-width: 420px) { .nv-ev-card__img { flex-basis: 72px; width: 72px; height: 72px; } }
.nv-ev-badge { display: inline-flex; align-items: center; padding: 2px var(--nv-s-2); border-radius: var(--nv-r-pill); background: #eef1f6; color: var(--primary, #1c2b4b); font: 700 var(--nv-fs-xs)/1.5 var(--font-quicklink, "Sora", sans-serif); }
.nv-ev-badge--free { background: #ecfdf3; color: var(--nv-ok); }
.nv-ev-badge--bad { background: #fef3f2; color: var(--nv-bad); }
.nv-ev-badge--info { background: #fffaeb; color: #93370d; }

/* Empty state, pager, notes */
.nv-ev-empty { padding: var(--nv-s-6); border: 1px dashed var(--nv-border); border-radius: var(--nv-r-md); background: var(--nv-surface-2); font-size: var(--nv-fs-base); line-height: var(--nv-lh-body); color: var(--nv-text-2); }
.nv-ev-empty p { margin: 0 0 var(--nv-s-3); }
.nv-ev-empty__act { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); margin: 0 !important; }
.nv-ev-pager { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); align-items: center; justify-content: center; margin: var(--nv-s-8) 0; }
.nv-ev-pager--day, .nv-ev-pager--month { justify-content: space-between; margin: 0 0 var(--nv-s-6); }
.nv-ev-pager__n { font: var(--nv-fs-sm)/1.3 var(--font-quicklink, "Sora", sans-serif); color: var(--nv-muted); }
.nv-ev-note { margin-top: var(--nv-s-8); padding: var(--nv-card-pad); border: 1px solid var(--nv-border); border-radius: var(--nv-r-md); background: var(--nv-surface-2); font-size: var(--nv-fs-md); line-height: var(--nv-lh-body); color: var(--nv-text-2); overflow-wrap: anywhere; }

/* Single event */
.nv-ev-single__head { margin-bottom: var(--nv-s-6); padding-bottom: var(--nv-s-4); border-bottom: 2px solid var(--nv-text); display: flex; flex-direction: column; gap: var(--nv-s-2); }
.nv-ev-banner { margin: var(--nv-s-2) 0 0; padding: var(--nv-s-3) var(--nv-s-4); border-radius: var(--nv-r-md); font: var(--nv-fs-md)/var(--nv-lh-snug) var(--font-quicklink, "Sora", sans-serif); overflow-wrap: anywhere; }
.nv-ev-banner--bad { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.nv-ev-banner--info { background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; }
.nv-ev-banner--past { background: var(--nv-surface-2); border: 1px solid var(--nv-border); color: var(--nv-text-2); }
.nv-ev-single__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--nv-s-8); }
@media (min-width: 992px) { .nv-ev-single__grid { grid-template-columns: minmax(0, 1fr) 320px; } .nv-ev-facts { order: 2; position: sticky; top: 130px; align-self: start; } }
@media (max-width: 991px) { .nv-ev-facts { order: -1; } }
.nv-ev-single__img { margin: 0 0 var(--nv-s-6); }
.nv-ev-single__img img { display: block; width: 100%; height: auto; border-radius: var(--nv-r-md); }
.nv-ev-single__sum { margin: 0 0 var(--nv-s-4); font-size: var(--nv-fs-lg); line-height: var(--nv-lh-body); font-weight: 700; color: var(--nv-text); }
.nv-ev-single__desc { font-size: var(--nv-fs-lg); line-height: var(--nv-lh-body); overflow-wrap: anywhere; }
.nv-ev-single__desc p { margin: 0 0 var(--nv-s-4); }
.nv-ev-single__desc img { max-width: 100%; height: auto; }
.nv-ev-single__src { margin: var(--nv-s-6) 0; font: var(--nv-fs-sm)/var(--nv-lh-snug) var(--font-quicklink, "Sora", sans-serif); color: var(--nv-muted); }
.nv-ev-facts { padding: var(--nv-card-pad); border: 1px solid var(--nv-border); border-top: 3px solid var(--primary, #1c2b4b); border-radius: var(--nv-r-md); background: var(--nv-surface-2); min-width: 0; }
.nv-ev-facts dl { margin: 0; display: flex; flex-direction: column; gap: var(--nv-s-4); }
.nv-ev-fact dt { margin: 0 0 var(--nv-s-1); font: 700 var(--nv-fs-xs)/1.3 var(--font-quicklink, "Sora", sans-serif); text-transform: uppercase; letter-spacing: .06em; color: var(--nv-muted); }
.nv-ev-fact dd { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--nv-s-2); font-size: var(--nv-fs-base); line-height: var(--nv-lh-snug); overflow-wrap: anywhere; }
.nv-ev-fact address { margin: 0; font-style: normal; }
.nv-ev-fact dd > a:not(.nv-ev-btn) { display: inline-flex; align-items: center; min-height: var(--nv-tap); font-weight: 700; }
.nv-ev-fact--act dd { flex-direction: row; flex-wrap: wrap; }
.nv-ev-fact__note { font: var(--nv-fs-xs) var(--font-quicklink, "Sora", sans-serif); color: var(--nv-muted); }
.nv-ev-price { font: 700 var(--nv-fs-lg)/1.3 var(--font-quicklink, "Sora", sans-serif); }
.nv-ev-share { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); align-items: center; margin: var(--nv-s-6) 0 var(--nv-s-8); }
.nv-ev-share__l { font: 700 var(--nv-fs-xs)/1.3 var(--font-quicklink, "Sora", sans-serif); text-transform: uppercase; letter-spacing: .06em; color: var(--nv-muted); margin-right: var(--nv-s-2); }

/* Month calendar (table on wide screens, agenda list on phones) */
.nv-ev-cal-wrap { container-type: inline-size; }
.nv-ev-cal { width: 100%; table-layout: fixed; border-collapse: collapse; font-family: var(--font-quicklink, "Sora", sans-serif); }
.nv-ev-cal th { padding: var(--nv-s-2); background: var(--primary, #1c2b4b); color: #fff; font-size: var(--nv-fs-sm); font-weight: 700; text-align: left; }
.nv-ev-cal th abbr { text-decoration: none; border: 0; cursor: default; }
.nv-ev-cal td { vertical-align: top; height: 120px; padding: var(--nv-s-1) var(--nv-s-2) var(--nv-s-2); border: 1px solid var(--nv-border-soft); background: var(--nv-surface); overflow-wrap: anywhere; min-width: 0; }
.nv-ev-cal td.is-out { background: var(--nv-surface-2); }
.nv-ev-cal td.is-out .nv-ev-cal__num { color: var(--nv-faint); }
.nv-ev-cal td.is-today { box-shadow: inset 0 0 0 2px var(--primary, #1c2b4b); }
.nv-ev-cal__n { display: inline-flex; align-items: center; justify-content: center; min-width: var(--nv-tap); min-height: var(--nv-tap); margin-left: calc(-1 * var(--nv-s-2)); color: var(--nv-text) !important; text-decoration: none; font-weight: 700; font-size: var(--nv-fs-md); }
.nv-ev-cal td.is-today .nv-ev-cal__num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary, #1c2b4b); color: #fff; }
.nv-ev-cal__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nv-ev-cal ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--nv-s-1); }
.nv-ev-cal li a { display: block; padding: 2px var(--nv-s-1); border-radius: 4px; background: #eef1f6; color: var(--primary, #1c2b4b) !important; font-size: var(--nv-fs-xs); line-height: 1.35; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nv-ev-cal li a:hover, .nv-ev-cal li a:focus-visible { background: var(--primary, #1c2b4b); color: #fff !important; }
.nv-ev-cal li.is-off a { text-decoration: line-through; }
.nv-ev-cal li time { font-weight: 700; }
.nv-ev-cal td.is-past li a { opacity: .75; }
.nv-ev-cal__more { display: inline-flex; align-items: center; min-height: 28px; font-size: var(--nv-fs-xs); font-weight: 700; }
.nv-ev-cal-empty { margin-top: var(--nv-s-6); }
@container (max-width: 760px) {
	.nv-ev-cal, .nv-ev-cal tbody, .nv-ev-cal tr, .nv-ev-cal td { display: block; width: 100%; height: auto; }
	.nv-ev-cal thead { display: none; }
	.nv-ev-cal td { border: 0; border-bottom: 1px solid var(--nv-border-soft); padding: var(--nv-s-2) 0 var(--nv-s-3); }
	.nv-ev-cal td.is-empty, .nv-ev-cal td.is-out { display: none; }
	.nv-ev-cal.is-current td.is-past { display: none; } /* phones: this month's agenda starts today */
	.nv-ev-cal td.is-today { box-shadow: none; }
	.nv-ev-cal__n { margin-left: 0; justify-content: flex-start; gap: var(--nv-s-2); font-size: var(--nv-fs-base); }
	.nv-ev-cal__num { display: none !important; }
	.nv-ev-cal__full { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
	.nv-ev-cal td.is-today .nv-ev-cal__full::after { content: " · Today"; color: var(--nv-accent-text); }
	.nv-ev-cal li a { -webkit-line-clamp: unset; display: flex; gap: var(--nv-s-2); align-items: center; min-height: var(--nv-tap); padding: var(--nv-s-2) var(--nv-s-3); font-size: var(--nv-fs-md); background: var(--nv-surface-2); border: 1px solid var(--nv-border-soft); }
	.nv-ev-cal__more { min-height: var(--nv-tap); font-size: var(--nv-fs-sm); }
}

/* Submit form extras (base form styles come from community.css) */
.nv-ev-submit { padding: 0; }
.nv-ev-fs { margin: var(--nv-s-4) 0 0; padding: var(--nv-s-4); border: 1px solid var(--nv-border-soft); border-radius: var(--nv-r-md); min-width: 0; display: flex; flex-direction: column; gap: var(--nv-s-2); }
.nv-ev-fs legend { width: auto; margin: 0; padding: 0 var(--nv-s-2); border: 0; font: 700 var(--nv-fs-md)/1.3 var(--font-quicklink, "Sora", sans-serif); }
.nv-ev-fs legend small { font-weight: 400; color: var(--nv-muted); }
.nv-ev-2col, .nv-ev-3col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--nv-s-2) var(--nv-s-4); }
@media (min-width: 576px) { .nv-ev-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nv-ev-3col { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.nv-ev-2col > div, .nv-ev-3col > div, [data-nv-ev-price] { display: flex; flex-direction: column; gap: var(--nv-s-2); min-width: 0; }
.nv-ev-submit .nv-cm-form input[type=date], .nv-ev-submit .nv-cm-form input[type=time] { width: 100%; min-height: var(--nv-tap); padding: var(--nv-s-2) var(--nv-s-3); border: 1px solid #cfd5df; border-radius: 8px; font: var(--nv-fs-base)/1.5 var(--font-article); background: #fff; color: var(--nv-text); }
.nv-ev-submit [hidden] { display: none !important; }

/* Homepage block */
.nv-ev-home .container { container-type: inline-size; }
.nv-ev-home .nv-ev-grid { margin-top: var(--nv-s-4); }
.nv-ev-home .nv-ev-card { font-family: var(--font-article); }
.nv-ev-home__more { display: flex; flex-wrap: wrap; gap: var(--nv-s-2); margin: var(--nv-s-4) 0 0; }
