/* WEP Wydarzenia – kalendarz i formularz (korzysta ze zmiennych motywu „WEP Społeczność”) */
.wepev {
	--ev-ink: var(--wep-ink, #14261D);
	--ev-mut: var(--wep-mut, #5C6B62);
	--ev-green: var(--wep-green, #1F4D3A);
	--ev-green2: var(--wep-green2, #2E6B50);
	--ev-mint: var(--wep-mint, #DCEBDD);
	--ev-sand: var(--wep-sand, #EFE4CF);
	--ev-coral: var(--wep-coral, #C24E28);
	--ev-line: var(--wep-line, #E1E6DC);
	--ev-bg: var(--wep-bg, #F3F5EF);
	--ev-r-lg: var(--wep-r-lg, 28px);
	--ev-r-md: var(--wep-r-md, 20px);
	--ev-r-sm: var(--wep-r-sm, 14px);
	font-family: var(--wep-font, "Manrope", system-ui, sans-serif);
	color: var(--ev-ink);
}
.wepev *, .wepev *::before, .wepev *::after { box-sizing: border-box; }
.wepev [hidden] { display: none !important; }
.wepev-ico { flex: none; vertical-align: -3px; }
.wepev .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Plakietka typu */
.wepev-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--c, #1F4D3A); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1;
	padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.wepev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #1F4D3A); flex: none; }

/* Linki i przyciski pomocnicze */
.wepev-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ev-green2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wepev-link:hover { color: var(--ev-green); }
.wepev-btn-sec {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: var(--ev-green); border: 1.5px solid var(--ev-green);
	font: inherit; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.wepev-btn-sec:hover { background: var(--ev-mint); }
.wepev-btn-sm { padding: 5px 12px; font-size: 14px; margin-left: 4px; }
.wepev .wep-btn { display: inline-flex; align-items: center; gap: 8px; }
.wepev :focus-visible { outline: 3px solid var(--ev-coral); outline-offset: 2px; }

/* ---------------- Kalendarz ---------------- */
.wepev-cal__top {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
	margin-bottom: 28px;
}
.wepev-cal__intro { max-width: 720px; }
.wepev-cal__intro p:last-child { margin-bottom: 0; color: var(--ev-mut); }
.wepev-cta { flex: none; font-size: 17px; }

.wepev-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wepev-filter {
	display: inline-flex; align-items: center; gap: 8px;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--ev-ink);
	background: #fff; border: 1px solid var(--ev-line); border-radius: 999px;
	padding: 7px 14px; cursor: pointer; line-height: 1.2;
}
.wepev-filter:hover { border-color: var(--ev-green2); }
.wepev-filter.is-active { background: var(--ev-green); border-color: var(--ev-green); color: #fff; }
.wepev-filter.is-active .wepev-dot { box-shadow: 0 0 0 2px #fff; }

.wepev-month {
	background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r-lg);
	padding: 20px; box-shadow: 0 8px 24px rgba(20, 38, 29, .05);
}
.wepev-month__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wepev-month__title { margin: 0 !important; font-size: 22px !important; font-weight: 800; min-width: 0; flex: 1; text-align: center; color: var(--ev-ink); }
.wepev-nav, .wepev-today {
	font: inherit; cursor: pointer; background: var(--ev-bg); color: var(--ev-green);
	border: 1px solid var(--ev-line); border-radius: 999px;
}
.wepev-nav { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.wepev-today { order: 4; padding: 9px 16px; font-weight: 700; font-size: 14px; }
.wepev-nav:hover, .wepev-today:hover { background: var(--ev-mint); }

.wepev-wd, .wepev-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wepev-wd { margin-bottom: 4px; }
.wepev-wd span { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ev-mut); padding: 6px 0; }
.wepev-wd abbr { text-decoration: none; border: 0; cursor: default; }
.wepev-week { margin-bottom: 4px; }
.wepev-day {
	position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
	min-height: 96px; padding: 6px; border-radius: 12px;
	background: var(--ev-bg); border: 1px solid transparent;
	font: inherit; text-align: left; color: var(--ev-ink); min-width: 0;
}
button.wepev-day { cursor: pointer; }
button.wepev-day:hover { border-color: var(--ev-green2); background: #fff; }
.wepev-day.is-outside { opacity: .45; }
.wepev-day.is-past .wepev-day__num { color: var(--ev-mut); }
.wepev-day__num { font-size: 14px; font-weight: 700; line-height: 1; padding: 4px 2px; }
.wepev-day.is-today .wepev-day__num {
	display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
	width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--ev-coral); color: #fff;
}
.wepev-day.is-selected { border-color: var(--ev-green); background: #fff; box-shadow: inset 0 0 0 1px var(--ev-green); }
.wepev-day__chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wepev-chip {
	display: block; background: var(--c); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.25;
	padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wepev-chip.is-cont { opacity: .8; }
.wepev-chip-more { font-size: 11.5px; font-weight: 700; color: var(--ev-mut); padding-left: 2px; }
.wepev-day__dots { display: none; gap: 3px; justify-content: center; }
.wepev-day__dots .wepev-dot { width: 7px; height: 7px; }

.wepev-panel { margin-top: 14px; padding: 16px 18px; background: var(--ev-bg); border-radius: var(--ev-r-md); }
.wepev-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.wepev-panel__title { margin: 0 !important; font-size: 17px !important; font-weight: 800; text-transform: capitalize; }
.wepev-panel__close { font: inherit; font-size: 24px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ev-line); background: #fff; color: var(--ev-ink); cursor: pointer; }
.wepev-panel__list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; }
.wepev-panel__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: #fff; border-left: 4px solid var(--c); border-radius: 10px; padding: 10px 12px; margin: 0 !important; }
.wepev-panel__link { font-weight: 800; color: var(--ev-ink); text-decoration: none; }
.wepev-panel__link:hover { text-decoration: underline; color: var(--ev-green); }
.wepev-panel__meta { flex-basis: 100%; font-size: 14px; color: var(--ev-mut); }
.wepev-panel__hint { margin: 0 !important; color: var(--ev-mut); }
.wepev-panel__hint a { color: var(--ev-green2); font-weight: 700; }
.wepev-muted { color: var(--ev-mut); font-size: 14px; }

/* Kafelki */
.wepev-list-title { margin: 48px 0 20px !important; }
.wepev-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.wepev-tile {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ev-line);
	border-radius: var(--ev-r-lg); overflow: hidden; box-shadow: 0 8px 24px rgba(20, 38, 29, .05);
	transition: transform .15s ease, box-shadow .15s ease;
}
.wepev-tile:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20, 38, 29, .1); }
.wepev-tile__media { display: block; aspect-ratio: 16 / 10; background: var(--ev-mint); overflow: hidden; }
.wepev-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wepev-tile__media--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c), var(--ev-green)); text-decoration: none; }
.wepev-tile__media--ph span { color: rgba(255, 255, 255, .85); font-weight: 800; font-size: 42px; letter-spacing: .08em; }
.wepev-tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.wepev-tile__date { display: flex; align-items: center; gap: 8px; margin: 2px 0 0 !important; font-weight: 800; color: var(--ev-green); }
.wepev-tile__title { margin: 0 !important; font-size: 20px !important; line-height: 1.3 !important; }
.wepev-tile__title a { color: var(--ev-ink); text-decoration: none; }
.wepev-tile__title a:hover { color: var(--ev-green); text-decoration: underline; }
.wepev-tile__meta { display: flex; gap: 8px; margin: 0 !important; font-size: 15px; color: var(--ev-mut); }
.wepev-tile__meta a { color: var(--ev-green2); font-weight: 700; }
.wepev-tile__desc { margin: 0 !important; font-size: 15px; color: var(--ev-ink); line-height: 1.55; }
.wepev-tile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 6px; }
.wepev-tile__actions .wep-btn { margin-top: 0; }
.wepev-empty { color: var(--ev-mut); }
.wepev-empty-card { background: var(--ev-bg); border-radius: var(--ev-r-lg); padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wepev-empty-card p { margin: 0 !important; }

/* ---------------- Formularz ---------------- */
.wepev-form { max-width: 880px; }
.wepev-form__intro { font-size: 17px; color: var(--ev-mut); margin-bottom: 24px; }
.wepev-alert { background: #FBEAE4; border: 1px solid #E9B8A6; color: #7A2A10; border-radius: var(--ev-r-sm); padding: 14px 18px; margin-bottom: 24px; }
.wepev-alert p { margin: 0 !important; }
.wepev-alert p + p { margin-top: 6px !important; }
.wepev-fs {
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
	background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-r-lg);
	padding: 24px 26px 26px; margin: 0 0 20px; min-width: 0;
}
.wepev-fs legend { float: left; width: 100%; grid-column: 1 / -1; font-size: 20px; font-weight: 800; color: var(--ev-green); padding: 0; margin: 0 0 2px; }
.wepev-fs legend + * { clear: both; }
.wepev-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wepev-field--full, .wepev-map { grid-column: 1 / -1; }
.wepev-field label, .wepev-consent label { font-weight: 700; font-size: 15px; color: var(--ev-ink); }
.wepev-req { color: var(--ev-coral); }
.wepev-field input[type="text"], .wepev-field input[type="email"], .wepev-field input[type="tel"],
.wepev-field input[type="date"], .wepev-field select, .wepev-field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--ev-ink);
	background: #fff; border: 1.5px solid #C9D2C6; border-radius: 12px; padding: 11px 14px; min-height: 48px;
}
.wepev-field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.wepev-field input:focus, .wepev-field select:focus, .wepev-field textarea:focus { border-color: var(--ev-green2); outline: 3px solid rgba(46, 107, 80, .2); outline-offset: 0; }
.wepev-field input[type="file"] { font: inherit; font-size: 15px; padding: 10px; border: 1.5px dashed #C9D2C6; border-radius: 12px; background: var(--ev-bg); width: 100%; }
.wepev-field__help { margin: 0 !important; font-size: 14px; color: var(--ev-mut); }
.wepev-field__err { margin: 0 !important; font-size: 14px; font-weight: 700; color: #A3381A; }
.wepev-field.is-error input, .wepev-field.is-error select, .wepev-field.is-error textarea { border-color: #C24E28; }
.wepev-map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 8px; }
.wepev-map__frame { border-radius: var(--ev-r-md); overflow: hidden; border: 1px solid var(--ev-line); margin-bottom: 8px; }
.wepev-map__frame iframe { display: block; width: 100%; height: 300px; border: 0; }
.wepev-consent { background: var(--ev-bg); border-radius: var(--ev-r-md); padding: 18px 20px; margin-bottom: 22px; }
.wepev-consent label { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.wepev-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ev-green); }
.wepev-consent.is-error { outline: 2px solid #C24E28; }
.wepev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.wepev-actions .wep-btn { margin-top: 0; }
.wepev-submit { font-size: 17px; border: 0; cursor: pointer; }
.wepev-submit[disabled] { opacity: .7; cursor: progress; }
.wepev-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wepev-ok { background: var(--ev-mint); border-radius: var(--ev-r-lg); padding: 32px; }
.wepev-ok p { font-size: 17px; }

/* ---------------- Strona wydarzenia ---------------- */
.wepev-single { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 20px; }
.wepev-single__pdf { margin-top: 0 !important; }
.wepev-single__note { font-size: 14px; color: var(--wep-mut, #5C6B62); border-top: 1px solid var(--wep-line, #E1E6DC); padding-top: 14px; margin-top: 24px; }

/* ---------------- Responsywność ---------------- */
@media (max-width: 900px) {
	.wepev-day { min-height: 76px; }
	.wepev-chip { font-size: 10.5px; padding: 2px 4px; }
}
@media (max-width: 640px) {
	.wepev-month { padding: 14px 10px; border-radius: var(--ev-r-md); }
	.wepev-month__title { font-size: 18px !important; }
	.wepev-month__head { flex-wrap: wrap; }
	.wepev-today { order: 0; margin-left: auto; }
	.wepev-month__head .wepev-nav:first-child { order: 1; }
	.wepev-month__title { order: 2; }
	.wepev-month__head .wepev-nav[data-nav="1"] { order: 3; }
	.wepev-wd, .wepev-week { gap: 3px; }
	.wepev-wd span { font-size: 11px; letter-spacing: 0; }
	.wepev-day { min-height: 50px; padding: 4px 2px; align-items: center; gap: 3px; border-radius: 10px; }
	.wepev-day__num { font-size: 14px; padding: 3px 0; }
	.wepev-day.is-today .wepev-day__num { align-self: center; }
	.wepev-day__chips { display: none; }
	.wepev-day__dots { display: flex; }
	button.wepev-day.has-events { background: #fff; border-color: var(--ev-line); }
	.wepev-tiles { grid-template-columns: 1fr; }
	.wepev-fs { grid-template-columns: 1fr; padding: 20px 16px; }
	.wepev-cta { width: 100%; justify-content: center; }
	.wepev-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.wepev-filter { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
	.wepev-tile { transition: none; }
	.wepev-tile:hover { transform: none; }
}

/* 1.0.1 */
.wepev-form { margin-left: auto; margin-right: auto; }
.wepev-empty-card { background: #fff; border: 1px solid var(--ev-line); }
.wepev-single-map { margin-top: 28px; }
.wepev-single-map__title { font-size: 22px !important; margin: 0 0 12px !important; }
.wepev-single-map .wepev-map__frame iframe { height: 340px; }
.wepev-panel__title { text-transform: none !important; }
