/* ASC Events 1.0. Colors and effects come from Events > Appearance (CSS variables printed after this file). */
:root {
	--asc-ev-accent: #d97719;
	--asc-ev-accent-hover: #b95e0e;
	--asc-ev-button-text: #fff;
	--asc-ev-text: #1f2328;
	--asc-ev-muted: #5f6670;
	--asc-ev-border: #e6e8eb;
	--asc-ev-card-bg: #fff;
	--asc-ev-bg: transparent;
	--asc-ev-single-bg: #fff;
	--asc-ev-page-bg: #f5f4f7;
	--asc-ev-radius: 14px;
	--asc-ev-radius-sm: calc(var(--asc-ev-radius) * .6);
	--asc-ev-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
	--asc-ev-card-hover: 0 2px 6px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .12);
	--asc-ev-lift: -3px;
	--asc-ev-zoom: 1.04;
	--asc-ev-list-pad: 0px;
	--asc-ev-tint: color-mix(in srgb, var(--asc-ev-accent) 12%, transparent);
	--asc-ev-placeholder: color-mix(in srgb, var(--asc-ev-text) 6%, transparent);
}

/* ---------- Lists [asc_events] and [asc_events_past] ---------- */
.asc-ev-list { container-type: inline-size; width: 100%; margin: 0 auto; padding: var(--asc-ev-list-pad); border-radius: var(--asc-ev-radius); background: var(--asc-ev-bg); color: var(--asc-ev-text); color-scheme: var(--asc-ev-scheme, light); font-family: inherit; }
.asc-ev-list, .asc-ev-list *, .asc-ev-single-wrap, .asc-ev-single-wrap * { box-sizing: border-box; }
.asc-ev-list select, .asc-ev-single-wrap select { color-scheme: var(--asc-ev-scheme, light); }
.asc-ev-list select option, .asc-ev-single-wrap select option { background-color: var(--asc-ev-option-bg, #fff); color: var(--asc-ev-text); }
.asc-ev-list .asc-ev-heading { position: relative; margin: 0 0 28px; padding: 0 0 12px; color: var(--asc-ev-text); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.asc-ev-list .asc-ev-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: var(--asc-ev-accent); }

.asc-ev-grid { --asc-ev-gap: 24px; display: grid; gap: var(--asc-ev-gap); }
/* Columns follow the space the list is in (page, Elementor column, sidebar), not the screen:
   at most --asc-ev-cols per row, and a card is never narrower than 270px. */
.asc-ev-grid { grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 270px), calc((100% - (var(--asc-ev-cols, 3) - 1) * var(--asc-ev-gap)) / var(--asc-ev-cols, 3))), 1fr)); }
/* Fewer events than columns: the cards share the full width instead of leaving empty slots. */
.asc-ev-fit .asc-ev-grid { grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 270px), calc((100% - (var(--asc-ev-cols, 3) - 1) * var(--asc-ev-gap)) / var(--asc-ev-cols, 3))), 1fr)); }

/* Card */
.asc-ev-card { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--asc-ev-border); border-radius: var(--asc-ev-radius); background: var(--asc-ev-card-bg); box-shadow: var(--asc-ev-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.asc-ev-card:hover, .asc-ev-card:focus-within { transform: translateY(var(--asc-ev-lift)); box-shadow: var(--asc-ev-card-hover); border-color: var(--asc-ev-hover-border, color-mix(in srgb, var(--asc-ev-accent) 30%, var(--asc-ev-border))); }
.asc-ev-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--asc-ev-placeholder); line-height: 0; }
.asc-ev-image img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; border: 0; border-radius: 0; object-fit: cover; transition: transform .45s ease; }
.asc-ev-card:hover .asc-ev-image img { transform: scale(var(--asc-ev-zoom)); }
@supports not (aspect-ratio: 1 / 1) { .asc-ev-image { height: 0; padding-top: 56.25%; } }
.asc-ev-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.asc-ev-card-head { display: flex; align-items: flex-start; gap: 14px; }
.asc-ev-card-titles { flex: 1; min-width: 0; }

/* Date badge */
.asc-ev-badge { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; padding: 8px 6px 7px; border-radius: var(--asc-ev-radius-sm); background: var(--asc-ev-accent); color: var(--asc-ev-button-text); line-height: 1; text-align: center; box-shadow: 0 4px 12px color-mix(in srgb, var(--asc-ev-accent) 28%, transparent); }
.asc-ev-badge-day { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.asc-ev-badge-month { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.asc-ev-badge-year { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; opacity: .85; }
.asc-ev-card.is-past .asc-ev-badge { background: var(--asc-ev-tint); color: var(--asc-ev-accent); box-shadow: none; }

.asc-ev-list .asc-ev-card-title { margin: 0 0 8px; padding: 0; color: var(--asc-ev-text); font-size: 18px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; overflow-wrap: break-word; word-break: normal; hyphens: manual; }
.asc-ev-list .asc-ev-card-title a { color: inherit; text-decoration: none; background: none; box-shadow: none; }
.asc-ev-list .asc-ev-card-title a:hover, .asc-ev-list .asc-ev-card-title a:focus-visible { color: var(--asc-ev-accent); }
.asc-ev-list .asc-ev-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.asc-ev-meta { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.asc-ev-meta li, .asc-ev-fact dd { position: relative; }
.asc-ev-meta li { margin: 0 0 3px; padding: 0 0 0 21px; color: var(--asc-ev-muted); font-size: 13.5px; line-height: 1.5; }
.asc-ev-meta li::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 14px; background: var(--asc-ev-accent); -webkit-mask: var(--asc-ev-icon) no-repeat center / contain; mask: var(--asc-ev-icon) no-repeat center / contain; }
.asc-ev-when { --asc-ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
.asc-ev-time { --asc-ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.asc-ev-where { --asc-ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.asc-ev-online { --asc-ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.asc-ev-local { --asc-ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
/* "Your time" line (filled in by local-time.js only when the visitor's time zone differs). */
.asc-ev-list [hidden], .asc-ev-single-wrap [hidden] { display: none !important; }
.asc-ev-meta .asc-ev-local { font-style: italic; }
.asc-ev-local-line { display: block; margin-top: 2px; color: var(--asc-ev-muted); font-size: 13.5px; font-style: italic; }
.asc-ev-host { --asc-ev-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6'/%3E%3C/svg%3E"); }
.asc-ev-list .asc-ev-summary { display: -webkit-box; margin: 14px 0 0; overflow: hidden; color: var(--asc-ev-muted); font-size: 14.5px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.asc-ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 18px; }

/* Buttons and links */
.asc-ev-button, .asc-ev-list a.asc-ev-button { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 20px; border: 0; border-radius: 999px; background: var(--asc-ev-accent); color: var(--asc-ev-button-text); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background .15s, transform .15s; }
.asc-ev-button:hover, .asc-ev-button:focus-visible { background: var(--asc-ev-accent-hover); color: var(--asc-ev-button-text); transform: translateY(-1px); }
.asc-ev-list .asc-ev-more { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: var(--asc-ev-accent); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.asc-ev-more span[aria-hidden] { transition: transform .2s ease; }
.asc-ev-list .asc-ev-more:hover, .asc-ev-list .asc-ev-more:focus-visible { color: var(--asc-ev-accent-hover); }
.asc-ev-card:hover .asc-ev-more span[aria-hidden] { transform: translateX(3px); }
.asc-ev-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 0; }
.asc-ev-links p { margin: 0; }
.asc-ev-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid color-mix(in srgb, var(--asc-ev-accent) 45%, var(--asc-ev-border)); border-radius: 999px; background: var(--asc-ev-card-bg); color: var(--asc-ev-text); font-size: 14px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.asc-ev-links a:hover, .asc-ev-links a:focus-visible { border-color: var(--asc-ev-accent); background: var(--asc-ev-accent); color: var(--asc-ev-button-text); }
.asc-ev-links a span { transition: transform .2s ease; }
.asc-ev-links a:hover span { transform: translateX(3px); }
.asc-ev-empty { margin: 0; padding: 28px; border: 1px dashed var(--asc-ev-border); border-radius: var(--asc-ev-radius); color: var(--asc-ev-muted); font-size: 15px; text-align: center; }
.asc-ev-list .screen-reader-text, .asc-ev-single-wrap .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pagination: pills; the current page uses the button colors */
.asc-ev-pagination { margin: 36px 0 0; }
.asc-ev-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.asc-ev-pagination li { margin: 0; padding: 0; }
.asc-ev-pagination a, .asc-ev-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--asc-ev-border); border-radius: 999px; background: var(--asc-ev-card-bg); color: var(--asc-ev-text); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.asc-ev-pagination a:hover, .asc-ev-pagination a:focus-visible { border-color: var(--asc-ev-accent); color: var(--asc-ev-accent); }
.asc-ev-pagination .current { border-color: var(--asc-ev-accent) !important; background: var(--asc-ev-accent) !important; color: var(--asc-ev-button-text) !important; }
.asc-ev-pagination .dots { min-width: 24px; border-color: transparent !important; background: transparent !important; }

/* One card per row, or a single event: picture beside the text when there is room. */
@container (min-width: 520px) {
	.asc-ev-row .asc-ev-card.has-image { flex-direction: row; }
	.asc-ev-row .asc-ev-card.has-image .asc-ev-image { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
	.asc-ev-row .asc-ev-card-body { padding: 24px 26px; justify-content: center; }
}
@media (max-width: 1024px) {
	.asc-ev-grid { --asc-ev-gap: 20px; }
}
@media (max-width: 640px) {
	.asc-ev-list .asc-ev-grid { --asc-ev-gap: 16px; }
	.asc-ev-card-body { padding: 16px 16px 18px; }
	.asc-ev-list .asc-ev-card-title { font-size: 17px; }
	.asc-ev-badge { min-width: 52px; }
	.asc-ev-badge-day { font-size: 21px; }
	.asc-ev-pagination a, .asc-ev-pagination span.page-numbers { min-width: 38px; height: 38px; }
}

/* ---------- Event page (theme-neutral wrapper) ---------- */
body.single-asc_event { background: var(--asc-ev-page-bg); }
body.single-asc_event .site-content, body.single-asc_event .content-area, body.single-asc_event #primary { width: 100%; max-width: 100%; float: none; margin: 0; }
.asc-ev-single-wrap { display: block; width: min(100% - 48px, 1180px); margin: 36px auto 64px; padding: clamp(28px, 4vw, 52px); border: 1px solid var(--asc-ev-border); border-radius: calc(var(--asc-ev-radius) * 1.4); background: var(--asc-ev-single-bg); color: var(--asc-ev-text); color-scheme: var(--asc-ev-scheme, light); box-shadow: var(--asc-ev-shadow); font-family: inherit; }
/* Themes often give articles a white box, padding or a max width: neutralize it inside our wrapper. */
.asc-ev-single-wrap > .asc-ev-single { max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--asc-ev-text); }
.asc-ev-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 28px; padding: 7px 14px; border: 1px solid var(--asc-ev-border); border-radius: 999px; background: var(--asc-ev-card-bg); color: var(--asc-ev-text) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: border-color .15s, color .15s; }
.asc-ev-back:hover, .asc-ev-back:focus-visible { border-color: var(--asc-ev-accent); color: var(--asc-ev-accent) !important; }
.asc-ev-single-header { display: flex; align-items: center; gap: 20px; margin: 0 0 32px; }
.asc-ev-badge-lg { min-width: 76px; padding: 12px 8px 10px; }
.asc-ev-badge-lg .asc-ev-badge-day { font-size: 32px; }
.asc-ev-badge-lg .asc-ev-badge-month { font-size: 13px; }
.asc-ev-status { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--asc-ev-tint); color: var(--asc-ev-accent); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.asc-ev-single-wrap .asc-ev-single-title { margin: 0; padding: 0; color: var(--asc-ev-text); font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.asc-ev-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 48px); align-items: start; }
.asc-ev-single-main { grid-column: 1; grid-row: 1; min-width: 0; }
.asc-ev-facts { position: sticky; top: 24px; grid-column: 2; grid-row: 1; padding: 22px; border: 1px solid var(--asc-ev-border); border-radius: var(--asc-ev-radius); background: var(--asc-ev-card-bg); }
.asc-ev-facts dl { margin: 0; }
.asc-ev-fact { margin: 0 0 16px; padding: 0 0 0 26px; }
.asc-ev-fact:last-child { margin-bottom: 0; }
.asc-ev-fact dt { margin: 0 0 2px; color: var(--asc-ev-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.asc-ev-fact dd { margin: 0; color: var(--asc-ev-text); font-size: 15.5px; line-height: 1.5; }
.asc-ev-fact { position: relative; }
.asc-ev-fact::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--asc-ev-accent); -webkit-mask: var(--asc-ev-icon) no-repeat center / contain; mask: var(--asc-ev-icon) no-repeat center / contain; }
.asc-ev-fact a { color: var(--asc-ev-accent); font-weight: 600; text-decoration: none; }
.asc-ev-fact a:hover { color: var(--asc-ev-accent-hover); text-decoration: underline; }
.asc-ev-facts .asc-ev-button { width: 100%; margin-top: 20px; }
.asc-ev-button-lg { min-height: 48px; font-size: 15px; }
.asc-ev-ended { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--asc-ev-radius-sm); background: var(--asc-ev-tint); color: var(--asc-ev-text); font-size: 14px; }
.asc-ev-single-image { margin: 0 0 28px; overflow: hidden; border-radius: var(--asc-ev-radius); background: var(--asc-ev-placeholder); line-height: 0; }
.asc-ev-single-image img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.asc-ev-description { color: var(--asc-ev-text); font-size: 17px; line-height: 1.75; }
.asc-ev-description > :first-child { margin-top: 0; }
.asc-ev-description p { margin: 0 0 18px; }
.asc-ev-description h2, .asc-ev-description h3, .asc-ev-description h4 { color: var(--asc-ev-text); line-height: 1.25; }
.asc-ev-description a { color: var(--asc-ev-accent); }
.asc-ev-description img { max-width: 100%; height: auto; border-radius: var(--asc-ev-radius-sm); }
@media (max-width: 900px) {
	.asc-ev-single-grid { grid-template-columns: 1fr; }
	.asc-ev-single-main, .asc-ev-facts { grid-column: 1; grid-row: auto; }
	.asc-ev-facts { position: static; }
}
@media (max-width: 760px) {
	.asc-ev-single-wrap { width: calc(100% - 24px); margin: 12px auto 36px; padding: 22px 18px 32px; }
	.asc-ev-single-header { gap: 14px; margin-bottom: 24px; }
	.asc-ev-badge-lg { min-width: 62px; }
	.asc-ev-badge-lg .asc-ev-badge-day { font-size: 26px; }
	.asc-ev-description { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.asc-ev-card, .asc-ev-image img, .asc-ev-button, .asc-ev-more span, .asc-ev-links a span { transition: none; }
	.asc-ev-card:hover, .asc-ev-card:focus-within { transform: none; }
	.asc-ev-card:hover .asc-ev-image img { transform: none; }
}
