/* ZE Event Calendar 1.2.1 — mobile-first, theme-neutral frontend. */
.zeec {
	--zeec-bg: var(--ze-bg, #fff);
	--zeec-surface: var(--ze-surface, #fff);
	--zeec-surface-2: var(--ze-surface-2, #f2f4f6);
	--zeec-text: var(--ze-text, #17191d);
	--zeec-muted: var(--ze-muted, #68707c);
	--zeec-border: var(--ze-border, #d8dce3);
	--zeec-accent: var(--ze-accent, #f24822);
	--zeec-link: var(--ze-link, #8a6400);
	--zeec-radius: var(--ze-radius, 12px);
	--zeec-shadow: var(--ze-card-shadow, 0 10px 28px rgba(20, 27, 36, .1));
	--zeec-max: var(--ze-max, 1240px);
	width: 100%;
	max-width: 100%;
	color: var(--zeec-text);
	font-family: Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
}
.zeec *, .zeec *::before, .zeec *::after { box-sizing: border-box; }
.zeec img, .zeec svg { display: block; max-width: 100%; }
.zeec img { height: auto; }
.zeec a { color: inherit; }
.zeec button, .zeec input, .zeec select, .zeec textarea { font: inherit; }
.zeec .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body.ze-mode-dark .zeec { color-scheme: dark; }
body.ze-mode-light .zeec { color-scheme: light; }
@media (prefers-color-scheme: dark) {
	body:not(.ze-mode-light) .zeec {
		--zeec-bg: var(--ze-bg, #0d0f12);
		--zeec-surface: var(--ze-surface, #15181d);
		--zeec-surface-2: var(--ze-surface-2, #1d2127);
		--zeec-text: var(--ze-text, #f6f7f8);
		--zeec-muted: var(--ze-muted, #aab0ba);
		--zeec-border: var(--ze-border, #30353e);
		--zeec-link: var(--ze-link, #ffd400);
		--zeec-shadow: 0 12px 30px rgba(0, 0, 0, .3);
		color-scheme: dark;
	}
}

/* Shared controls and headings. */
.zeec-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 7px;
	font-size: .78rem;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: .035em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
}
.zeec-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zeec-button--primary { border-color: var(--zeec-event-color, var(--zeec-accent)); background: var(--zeec-event-color, var(--zeec-accent)); color: var(--zeec-event-contrast, #111) !important; }
.zeec-button--secondary { border-color: var(--zeec-border); background: var(--zeec-surface-2); color: var(--zeec-text) !important; }
.zeec-button--ghost { border-color: var(--zeec-border); background: transparent; color: var(--zeec-text) !important; }
.zeec-button--live { border-color: #d71920; background: #d71920; color: #fff !important; }
.zeec-button:hover { filter: brightness(.94); transform: translateY(-1px); }
.zeec-button:focus-visible,
.zeec-event-card__link:focus-visible,
.zeec-related-card > a:focus-visible,
.zeec-social-links a:focus-visible { outline: 3px solid #ffd400; outline-offset: 3px; }
.zeec-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 17px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--zeec-border);
}
.zeec-section-heading h2,
.zeec-calendar-heading h2 {
	margin: 0;
	color: var(--zeec-text);
	font-size: clamp(1.35rem, 4vw, 2.2rem);
	font-weight: 950;
	line-height: .98;
	letter-spacing: -.045em;
	text-transform: uppercase;
}
.zeec-empty {
	margin: 0;
	padding: 22px;
	border: 1px dashed var(--zeec-border);
	border-radius: var(--zeec-radius);
	background: var(--zeec-surface);
	color: var(--zeec-muted);
	text-align: center;
}

/* Calendar filters. */
.zeec-calendar { width: min(100%, var(--zeec-max)); margin: 24px auto 56px; }
.zeec-calendar-heading { margin-bottom: 18px; }
.zeec-filters {
	margin: 0 0 22px;
	padding: 16px;
	border: 1px solid var(--zeec-border);
	border-radius: var(--zeec-radius);
	background: var(--zeec-surface);
}
.zeec-filter-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.zeec-filter-grid label { display: grid; gap: 5px; min-width: 0; }
.zeec-filter-grid label > span { color: var(--zeec-muted); font-size: .68rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.zeec-filter-grid select {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 8px 32px 8px 10px;
	border: 1px solid var(--zeec-border);
	border-radius: 6px;
	background-color: var(--zeec-bg);
	color: var(--zeec-text);
}
.zeec-filter-grid select:focus { border-color: var(--zeec-accent); outline: 2px solid color-mix(in srgb, var(--zeec-accent) 28%, transparent); outline-offset: 1px; }
.zeec-filter-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.zeec-filter-actions .zeec-button { flex: 1 1 145px; }
.zeec-legend {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
	margin: 14px 0 25px;
	color: var(--zeec-muted);
	font-size: .78rem;
}
.zeec-legend > strong { color: var(--zeec-text); text-transform: uppercase; }
.zeec-legend ul { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 0; padding: 0; list-style: none; }
.zeec-legend li { display: inline-flex; align-items: center; gap: 7px; }
.zeec-legend li > span { width: 13px; height: 13px; border-radius: 50%; background: var(--zeec-legend-color); box-shadow: 0 0 0 2px var(--zeec-surface), 0 0 0 3px var(--zeec-border); }
.zeec-calendar-section { margin-top: clamp(32px, 6vw, 62px); }
.zeec-calendar-section--past { opacity: .9; }
.zeec-month + .zeec-month { margin-top: 34px; }
.zeec-month-title { margin: 0 0 12px; color: var(--zeec-muted); font-size: .83rem; font-weight: 950; letter-spacing: .09em; }

/* Event cards. */
.zeec-event-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.zeec-event-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--zeec-border);
	border-left: 4px solid var(--zeec-event-color);
	border-radius: var(--zeec-radius);
	background: var(--zeec-surface);
	box-shadow: 0 1px 2px rgba(20, 27, 36, .05);
}
.zeec-event-card__link { display: block; height: 100%; color: var(--zeec-text) !important; text-decoration: none !important; }
.zeec-event-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--zeec-surface-2); }
.zeec-event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.zeec-event-card:hover { border-color: var(--zeec-event-color); box-shadow: var(--zeec-shadow); }
.zeec-event-card:hover .zeec-event-card__media img { transform: scale(1.025); }
.zeec-event-placeholder,
.zeec-single__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(145deg, var(--zeec-surface-2), var(--zeec-surface)); color: var(--zeec-event-color, var(--zeec-accent)); }
.zeec-event-placeholder svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .75; }
.zeec-event-card__date {
	position: absolute;
	left: 10px;
	bottom: 10px;
	max-width: calc(100% - 20px);
	padding: 6px 8px;
	background: rgba(5, 7, 9, .88);
	color: #fff;
	font-size: .67rem;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
}
.zeec-event-card__body { padding: 13px 14px 15px; }
.zeec-event-card__badges,
.zeec-single__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.zeec-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 7px; border-radius: 4px; font-size: .61rem; font-weight: 950; line-height: 1; letter-spacing: .045em; text-transform: uppercase; }
.zeec-badge--championship { border: 1px solid var(--zeec-event-color); background: color-mix(in srgb, var(--zeec-event-color) 16%, var(--zeec-surface)); color: var(--zeec-text); }
.zeec-badge--championship.is-primary { background: var(--zeec-event-color); color: var(--zeec-event-contrast, #fff); }
.zeec-status { border: 1px solid var(--zeec-border); background: var(--zeec-surface-2); color: var(--zeec-text); }
.zeec-status--registration_open { border-color: #238447; background: #e8f7ed; color: #12612f; }
.zeec-status--registration_closed { border-color: #7a818b; background: #eceef1; color: #444b55; }
.zeec-status--postponed { border-color: #b47b00; background: #fff3cf; color: #6f4a00; }
.zeec-status--cancelled { border-color: #b3232c; background: #fdebed; color: #8d1720; }
.zeec-status--completed { border-color: #566170; background: #e8eaed; color: #39414c; }
body.ze-mode-dark .zeec-status--registration_open,
body.ze-mode-dark .zeec-status--registration_closed,
body.ze-mode-dark .zeec-status--postponed,
body.ze-mode-dark .zeec-status--cancelled,
body.ze-mode-dark .zeec-status--completed { background: var(--zeec-surface-2); color: var(--zeec-text); }
.zeec-event-card__title { margin: 10px 0 8px; color: var(--zeec-text); font-size: clamp(1.15rem, 4.8vw, 1.55rem); font-weight: 950; line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.zeec-event-card__location { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--zeec-muted); font-size: .83rem; }
.zeec-event-card__location svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zeec-event-card__disciplines { margin: 8px 0 0; color: var(--zeec-muted); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.zeec-event-card__cta { display: inline-block; margin-top: 13px; color: var(--zeec-link); font-size: .7rem; font-weight: 950; text-transform: uppercase; }
.zeec-event-card.is-status-cancelled .zeec-event-card__media img { filter: grayscale(1); opacity: .65; }
.zeec-event-card--past { opacity: .92; }
.zeec-event-embed { max-width: 620px; margin: 1.5em auto; }

/* Single event. */
.zeec-single { padding: 22px 0 64px; background: var(--zeec-bg); }
.zeec-single__container { width: min(calc(100% - 20px), var(--zeec-max)); margin-inline: auto; }
.zeec-single__hero { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--zeec-radius); background: var(--zeec-surface-2); }
.zeec-single__hero img { width: 100%; height: 100%; object-fit: cover; }
.zeec-single__placeholder svg { width: clamp(72px, 14vw, 150px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.25; opacity: .7; }
.zeec-single__header { max-width: 1060px; padding: clamp(22px, 5vw, 48px) 0 20px; }
.zeec-single__header h1 { margin: 12px 0; color: var(--zeec-text); font-size: clamp(2.1rem, 12vw, 5rem); font-weight: 950; line-height: .88; letter-spacing: -.07em; text-transform: uppercase; text-wrap: balance; }
.zeec-single__edition,
.zeec-single__disciplines { margin: 7px 0 0; color: var(--zeec-muted); font-size: .79rem; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.zeec-key-facts { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 0 0 15px; }
.zeec-key-fact { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 13px; border: 1px solid var(--zeec-border); border-radius: 9px; background: var(--zeec-surface); }
.zeec-key-fact > svg { flex: 0 0 28px; width: 28px; height: 28px; fill: none; stroke: var(--zeec-event-color); stroke-width: 1.7; }
.zeec-key-fact span { display: grid; min-width: 0; gap: 2px; }
.zeec-key-fact small { color: var(--zeec-muted); font-size: .63rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.zeec-key-fact strong { overflow-wrap: anywhere; font-size: .95rem; line-height: 1.25; }
.zeec-important-note { display: flex; align-items: flex-start; gap: 12px; margin: 15px 0; padding: 15px; border-left: 4px solid #e6a400; border-radius: 7px; background: color-mix(in srgb, #e6a400 12%, var(--zeec-surface)); }
.zeec-important-note > svg { flex: 0 0 26px; width: 26px; height: 26px; fill: none; stroke: #b87900; stroke-width: 1.8; }
.zeec-important-note p { margin: 0; }
.zeec-important-note p + p { margin-top: .65em; }
.zeec-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 15px 0 22px; }
.zeec-event-section { max-width: 900px; margin: clamp(36px, 7vw, 70px) auto 0; }
.zeec-event-description { max-width: 820px; }
.zeec-event-content { color: var(--zeec-text); font-size: clamp(1rem, 1.5vw, 1.14rem); }
.zeec-event-content > * { margin-top: 0; margin-bottom: 1.2em; }
.zeec-event-content a { color: var(--zeec-link); text-decoration: underline; text-underline-offset: 3px; }
.zeec-event-content h2, .zeec-event-content h3, .zeec-event-content h4 { margin-top: 1.5em; color: var(--zeec-text); line-height: 1; letter-spacing: -.04em; }
.zeec-event-content img { max-width: 100%; height: auto; }
.zeec-event-content .alignwide { width: min(1100px, calc(100vw - 20px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.zeec-event-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.zeec-fee-list,
.zeec-class-list { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 0; padding: 0; list-style: none; }
.zeec-fee-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 13px 14px; border: 1px solid var(--zeec-border); border-radius: 7px; background: var(--zeec-surface); }
.zeec-fee-list li span { color: var(--zeec-event-color); font-weight: 950; }
.zeec-fee-list li small { grid-column: 1 / -1; color: var(--zeec-muted); }
.zeec-class-list { display: flex; flex-wrap: wrap; }
.zeec-class-list li { padding: 7px 10px; border: 1px solid var(--zeec-event-color); border-radius: 999px; background: color-mix(in srgb, var(--zeec-event-color) 10%, var(--zeec-surface)); font-size: .76rem; font-weight: 900; }
.zeec-schedule { padding: clamp(15px, 4vw, 24px); border: 1px solid var(--zeec-border); border-left: 4px solid var(--zeec-event-color); border-radius: 8px; background: var(--zeec-surface); }
.zeec-schedule > :first-child { margin-top: 0; }
.zeec-schedule > :last-child { margin-bottom: 0; }
.zeec-schedule a { color: var(--zeec-link); text-decoration: underline; }
.zeec-resource-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.zeec-contact-card { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--zeec-border); border-radius: 8px; background: var(--zeec-surface); }
.zeec-contact-card strong { font-size: 1.2rem; }
.zeec-contact-card a { width: fit-content; color: var(--zeec-link); text-decoration: underline; text-underline-offset: 3px; }
.zeec-social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 34px auto 0; }
.zeec-social-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; border: 1px solid var(--zeec-border); border-radius: 6px; background: var(--zeec-surface); color: var(--zeec-text); font-size: .75rem; font-weight: 900; text-decoration: none; }

/* Related articles. */
.zeec-related { max-width: 1100px; margin: clamp(42px, 8vw, 78px) auto 0; }
.zeec-related-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.zeec-related-card { overflow: hidden; border: 1px solid var(--zeec-border); border-radius: 9px; background: var(--zeec-surface); }
.zeec-related-card > a { display: grid; grid-template-columns: 112px minmax(0, 1fr); height: 100%; color: var(--zeec-text); text-decoration: none; }
.zeec-related-media { min-height: 118px; background: var(--zeec-surface-2); }
.zeec-related-media img { width: 100%; height: 100%; object-fit: cover; }
.zeec-related-body { align-self: center; min-width: 0; padding: 12px; }
.zeec-related-type { color: var(--zeec-event-color); font-size: .6rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; }
.zeec-related-card h3 { margin: 5px 0 7px; color: var(--zeec-text); font-size: 1rem; font-weight: 900; line-height: 1.05; }
.zeec-related-card time { color: var(--zeec-muted); font-size: .7rem; }

/* Rankings remains responsible for its own result tables. */
.zeec .zer-event-results { margin-top: 25px; }

@media (min-width: 560px) {
	.zeec-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zeec-actions { display: flex; flex-wrap: wrap; }
	.zeec-actions .zeec-button { flex: 0 1 auto; }
	.zeec-key-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.zeec-related-card > a { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (min-width: 680px) {
	.zeec-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.zeec-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zeec-single__container { width: min(calc(100% - 32px), var(--zeec-max)); }
	.zeec-fee-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
	.zeec-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.zeec-filters { padding: 18px 20px; }
	.zeec-legend { align-items: center; flex-direction: row; }
	.zeec-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.zeec-related-card > a { grid-template-columns: 1fr; }
	.zeec-related-media { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (min-width: 1080px) {
	.zeec-event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.zeec-filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.zeec-event-card__title { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
	.zeec *, .zeec *::before, .zeec *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Organizer portal: isolated, server-rendered and theme-neutral. */
.zeec-organizer-portal { width: min(calc(100% - 20px), 960px); margin: 24px auto 56px; }
.zeec-organizer-intro { margin: 0 0 20px; color: var(--zeec-muted); }
.zeec-organizer-form { display: grid; gap: 18px; }
.zeec-organizer-form fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--zeec-border); border-radius: var(--zeec-radius); background: var(--zeec-surface); }
.zeec-organizer-form legend { padding: 0 8px; color: var(--zeec-text); font-size: 1rem; font-weight: 950; letter-spacing: -.02em; text-transform: uppercase; }
.zeec-organizer-grid { display: grid; grid-template-columns: 1fr; gap: 13px; }
.zeec-organizer-grid label,
.zeec-organizer-login-form label { display: grid; gap: 5px; min-width: 0; }
.zeec-organizer-grid label > span:first-child,
.zeec-organizer-login-form label > span:first-child { color: var(--zeec-muted); font-size: .69rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.zeec-organizer-grid input,
.zeec-organizer-grid select,
.zeec-organizer-grid textarea,
.zeec-organizer-login-form input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid var(--zeec-border); border-radius: 6px; background: var(--zeec-bg); color: var(--zeec-text); }
.zeec-organizer-grid textarea { min-height: 110px; resize: vertical; }
.zeec-organizer-grid input[type="file"] { padding: 8px; }
.zeec-organizer-grid input:focus,
.zeec-organizer-grid select:focus,
.zeec-organizer-grid textarea:focus,
.zeec-organizer-login-form input:focus { border-color: var(--zeec-accent); outline: 3px solid color-mix(in srgb, var(--zeec-accent) 25%, transparent); outline-offset: 1px; }
.zeec-organizer-grid small { color: var(--zeec-muted); font-size: .72rem; }
.zeec-organizer-checkbox { display: flex !important; align-items: center; align-self: end; min-height: 44px; }
.zeec-organizer-checkbox input { flex: 0 0 20px; width: 20px; min-height: 20px; }
.zeec-organizer-current-file { display: grid; gap: 6px; margin-top: 7px; color: var(--zeec-muted); font-size: .72rem; }
.zeec-organizer-current-file img { width: 120px; height: auto; border-radius: 5px; }
.zeec-organizer-submit-note { margin: 0; color: var(--zeec-muted); font-size: .85rem; }
.zeec-organizer-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.zeec-organizer-errors { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #b3232c; border-radius: 8px; background: #fdebed; color: #8d1720; }
.zeec-organizer-errors ul { margin: 7px 0 0 18px; }
.zeec-organizer-notice,
.zeec-organizer-panel { padding: 26px; border: 1px solid var(--zeec-border); border-radius: var(--zeec-radius); background: var(--zeec-surface); }
.zeec-organizer-notice.is-success { border-color: #238447; }
.zeec-organizer-notice.is-error { border-color: #b3232c; }
.zeec-organizer-notice h2,
.zeec-organizer-panel h2 { margin-top: 0; }
.zeec-organizer-login { max-width: 560px; }
.zeec-organizer-login-form { display: grid; gap: 14px; }
@media (min-width: 680px) {
	.zeec-organizer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zeec-organizer-grid .is-wide { grid-column: 1 / -1; }
}
