/* Public agenda: the same visual system used by the approved static prototype. */
.te-events {
	--te-sea: #296070;
	--te-sea-dark: #1f4d5a;
	--te-terracotta: #895835;
	--te-cream: #f7ebcc;
	--te-paper: #fffaf0;
	--te-ink: #183e48;
	--te-muted: #617277;
	--te-line: rgba(41, 96, 112, .18);
	--te-shadow: 0 18px 45px rgba(41, 96, 112, .12);
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	padding: clamp(55px, 8vw, 105px) clamp(20px, 10vw, 150px);
	color: var(--te-ink);
	background: var(--te-paper);
	font-family: "Dosis", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.35;
}

.te-events *, .te-proposal *, .te-success *, .te-empty * { box-sizing: border-box; }

.te-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 35px; }
.te-eyebrow { margin: 0 0 8px; color: var(--te-terracotta); font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.te-events h2 { margin: 0 !important; color: var(--te-sea) !important; font-family: "Barriecito", cursive !important; font-size: clamp(48px, 6.5vw, 92px) !important; font-weight: 400 !important; line-height: .96 !important; letter-spacing: -.03em; }
.te-result-count { margin: 0 0 7px; color: var(--te-muted); font-size: 19px !important; white-space: nowrap; }
.te-events-groups { display: grid; gap: 45px; }
.te-filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 12px; margin: -12px 0 36px; padding: 14px 0; border-top: 1px solid var(--te-line); border-bottom: 1px solid var(--te-line); }
.te-filter-control { display: grid; gap: 3px; min-width: 150px; color: var(--te-sea); font-size: 13px !important; font-weight: 700; }
.te-filter-control span { color: var(--te-terracotta); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.te-filter-control select { width: 100%; min-height: 34px; padding: 5px 28px 5px 9px; border: 1px solid var(--te-line); border-radius: 5px; color: var(--te-sea); background: #fffdf7; font: 600 16px "Dosis", Arial, sans-serif; }
.te-filter-reset { min-height: 34px; padding: 6px 10px; border: 0; color: var(--te-terracotta); background: transparent; font: 700 15px "Dosis", Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.te-group-title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px !important; color: var(--te-terracotta) !important; font-family: "Barriecito", cursive !important; font-size: 30px !important; font-weight: 400 !important; line-height: 1 !important; }
.te-group-title::after { content: ""; flex: 1; height: 1px; background: var(--te-line); }
.te-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.te-card { display: flex; min-width: 0; height: 590px; overflow: hidden; flex-direction: column; border: 1px solid var(--te-line); background: #fffdf7; box-shadow: 0 8px 22px rgba(41, 96, 112, .06); transition: transform .2s ease, box-shadow .2s ease; }
.te-card:hover { transform: translateY(-5px); box-shadow: var(--te-shadow); }

.te-poster { position: relative; isolation: isolate; display: block; flex: 0 0 220px; min-height: 220px; overflow: hidden; padding: 22px; color: var(--te-cream); background: var(--te-sea); }
.te-poster-placeholder::before, .te-poster-placeholder::after { position: absolute; z-index: -1; border-radius: 50%; background: var(--te-terracotta); content: ""; }
.te-poster-placeholder::before { top: -45px; right: -42px; width: 160px; height: 160px; opacity: .84; }
.te-poster-placeholder::after { bottom: -33px; left: -19px; width: 90px; height: 90px; border-radius: 40% 60% 55% 45%; opacity: .85; }
.te-poster-image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.te-poster-shade { position: absolute; z-index: -1; inset: 0; display: none; background: linear-gradient(145deg, rgba(24, 62, 72, .74), rgba(24, 62, 72, .14) 72%); }
.te-poster-has-image .te-poster-shade { display: block; }
.te-poster-kicker { display: block; margin-bottom: 13px; font-size: 11px !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.te-poster strong { display: block; max-width: 245px; font-family: "Barriecito", cursive !important; font-size: clamp(27px, 2.3vw, 38px) !important; font-weight: 400 !important; line-height: .9 !important; }
.te-poster-shape { position: absolute; right: 17px; bottom: 13px; width: 42px; height: 42px; border: 2px solid var(--te-cream); border-radius: 50% 48% 45% 55%; opacity: .6; transform: rotate(-18deg); }

.te-card-body { display: grid; flex: 1; grid-template-rows: 24px 63px 28px 42px 34px minmax(52px, 1fr) 42px; padding: 17px 18px 15px; }
.te-event-meta, .te-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.te-date { margin: 0 !important; color: var(--te-terracotta) !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .07em; line-height: 1.2 !important; text-transform: uppercase; }
.te-source-badge { padding: 3px 8px; border-radius: 99px; font-size: 12px !important; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.te-source-manual { color: var(--te-sea); background: #e5f0f0; }.te-source-web { color: #715119; background: #f7e9bd; }

.te-card h3 { display: -webkit-box; min-height: 0; max-height: 2.15em; margin: 0 !important; overflow: hidden; color: var(--te-sea) !important; font-family: "Dosis", Arial, sans-serif !important; font-size: 27px !important; font-weight: 700 !important; line-height: 1.05 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.te-card .te-title-long { font-size: 22px !important; }.te-card .te-title-extra-long { max-height: 3.12em; font-size: 18px !important; line-height: 1.02 !important; -webkit-line-clamp: 3; }
.te-when, .te-venue { display: -webkit-box; margin: 0 !important; overflow: hidden; color: var(--te-sea-dark) !important; font-family: "Dosis", Arial, sans-serif !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.2 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.te-when { align-self: end; }.te-venue { align-self: start; }.te-venue::before { color: var(--te-terracotta); content: "⌖ "; }
.te-card-filter-tags { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.te-filter-tag { flex: 0 0 auto; max-width: 160px; overflow: hidden; padding: 3px 7px; border: 1px solid var(--te-line); border-radius: 99px; color: var(--te-sea); background: #fffdf7; font: 600 12px/1.2 "Dosis", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.te-filter-tag:hover, .te-filter-tag:focus { color: var(--te-cream); border-color: var(--te-sea); background: var(--te-sea); }.te-filter-tag span { color: var(--te-terracotta); }.te-filter-tag:hover span, .te-filter-tag:focus span { color: var(--te-cream); }
.te-description { display: -webkit-box; align-self: start; margin: 0 !important; overflow: hidden; color: var(--te-muted) !important; font-family: "Dosis", Arial, sans-serif !important; font-size: 16px !important; line-height: 1.2 !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.te-card-bottom { align-self: stretch; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--te-line); }
.te-card-bottom strong { color: var(--te-terracotta); font-size: 16px !important; font-weight: 700; }.te-save-mark { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--te-line); border-radius: 50%; color: var(--te-terracotta); font-size: 21px; line-height: 1; }

.te-empty, .te-success { padding: 28px; border-left: 4px solid var(--te-terracotta); color: var(--te-sea); background: var(--te-cream); font: 20px/1.3 "Dosis", Arial, sans-serif; }
.te-proposal { max-width: 780px; padding: 26px; border: 1px solid var(--te-line); color: var(--te-sea); background: var(--te-paper); font-family: "Dosis", Arial, sans-serif; }.te-proposal label { display: block; margin: 0 0 13px; font-weight: 700; }.te-proposal input, .te-proposal textarea { box-sizing: border-box; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--te-line); border-radius: 4px; color: var(--te-ink); font: inherit; }.te-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }.te-consent { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; }.te-consent input { width: auto !important; margin-top: 4px; }.te-proposal button { padding: 11px 18px; border: 1px solid var(--te-terracotta); border-radius: 999px; color: var(--te-cream); background: var(--te-terracotta); font: 700 17px "Dosis", Arial, sans-serif; cursor: pointer; }.te-hp { position: absolute !important; left: -9999px !important; }

@media (max-width: 800px) { .te-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.te-card { height: 570px; } }
@media (max-width: 560px) { .te-events { padding: 55px 18px; }.te-section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }.te-events h2 { font-size: 48px !important; }.te-result-count { margin: 0; }.te-filter-bar { align-items: stretch; margin-bottom: 26px; }.te-filter-control { flex: 1 1 140px; }.te-grid, .te-form-grid { grid-template-columns: 1fr; }.te-group-title { font-size: 30px !important; }.te-card { height: 550px; }.te-poster { flex-basis: 200px; min-height: 200px; } }
